/* ilovasi.com — App Store iPhone (dark mode, sidebar + content) */

:root {
  /* Brand (ilovasi logo: navy + neon green) */
  --brand-navy: #000028;
  --brand-lime: #39ff14;
  --bg-main: #050508;
  --bg-sidebar: #0a0a14;
  --bg-elevated: #2c2c2e;
  --bg-hover: rgba(255, 255, 255, 0.06);
  --text: #ffffff;
  /* WCAG AA on #050508 / #2c2c2e (oldingi #8e8e93 kichik shrift uchun yetarli emas edi) */
  --text-secondary: #a8a8ad;
  --text-tertiary: #74747a;
  --accent: #35e015;
  --accent-hover: #58ff3a;
  --border: rgba(255, 255, 255, 0.08);
  --radius: 12px;
  --radius-pill: 980px;
  --sidebar-w: 280px;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", "Segoe UI", Roboto, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  /* Oldinga keyinga siljishni kamaytiradi (scrollbar paydo bo‘lganda) */
  scrollbar-gutter: stable;
  overflow-y: scroll;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg-main);
  color: var(--text);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.4;
  letter-spacing: -0.02em;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* ========== Shell: sidebar + main ========== */
.app-shell {
  display: flex;
  min-height: 100vh;
  align-items: stretch;
}

/* ----- Sidebar ----- */
.sidebar {
  width: var(--sidebar-w);
  flex-shrink: 0;
  background: var(--bg-sidebar);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  padding: 16px 12px 24px;
  position: sticky;
  top: 0;
  align-self: flex-start;
  height: 100vh;
  overflow-y: auto;
}

.sidebar-brand {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 10px 16px;
  margin-bottom: 4px;
}

.sidebar-brand__main {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.sidebar-brand__logo {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  flex-shrink: 0;
  object-fit: cover;
}

.sidebar-brand__titles {
  min-width: 0;
}

.sidebar-brand__text {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  line-height: 1.25;
}

.sidebar-brand__sub {
  display: block;
  font-size: 11px;
  font-weight: 500;
  color: var(--text-secondary);
  margin-top: 2px;
}

.sidebar-brand__chevron {
  color: var(--text-secondary);
  flex-shrink: 0;
}

.sidebar-search {
  margin-bottom: 20px;
}

.sidebar-search input[type="search"] {
  width: 100%;
  padding: 10px 12px 10px 36px;
  border: none;
  border-radius: var(--radius);
  background: var(--bg-elevated);
  color: var(--text);
  font-size: 15px;
  outline: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%238e8e93' stroke-width='2'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='M20 20l-4-4'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: 12px center;
}

.sidebar-search input::placeholder {
  color: var(--text-secondary);
}

.sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-bottom: 24px;
}

.sidebar-nav a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 10px;
  border-radius: var(--radius);
  color: var(--text);
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
}

.sidebar-nav a:hover {
  background: var(--bg-hover);
  text-decoration: none;
}

.sidebar-nav a.is-active {
  background: rgba(255, 255, 255, 0.1);
  font-weight: 600;
}

.sidebar-nav svg {
  flex-shrink: 0;
  opacity: 0.9;
}

.sidebar-nav a.is-active svg {
  color: var(--accent);
}

.sidebar-section-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 8px 10px 8px;
}

.sidebar-cats {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-bottom: auto;
}

.sidebar-cats a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: var(--radius);
  color: var(--text);
  font-size: 14px;
  text-decoration: none;
}

.sidebar-cats a:hover {
  background: var(--bg-hover);
  text-decoration: none;
}

.sidebar-cats svg {
  color: var(--accent);
  flex-shrink: 0;
}

.sidebar-footer {
  padding-top: 16px;
  margin-top: 16px;
  border-top: 1px solid var(--border);
}

.sidebar-footer label {
  display: block;
  font-size: 11px;
  color: var(--text-secondary);
  margin-bottom: 6px;
}

.sidebar-footer select {
  width: 100%;
  padding: 8px 28px 8px 10px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--bg-elevated)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 12 12'%3E%3Cpath fill='%238e8e93' d='M6 8L2 4h8z'/%3E%3C/svg%3E")
    no-repeat right 10px center;
  color: var(--text);
  font-size: 13px;
  appearance: none;
  cursor: pointer;
}

/* ----- Main panel ----- */
.main-panel {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  background: var(--bg-main);
}

.main-inner {
  flex: 1;
  padding: 28px 32px 48px;
  max-width: 1200px;
}

.main-inner--product {
  padding: 0 0 48px;
  max-width: none;
}

/* Home / search: same full-width main panel as app detail, with centered content */
.main-inner.main-inner--product.main-inner--store {
  padding: 24px 32px 48px;
  max-width: 1200px;
  margin: 0 auto;
  box-sizing: border-box;
  width: 100%;
}

/* Home: /api/sections kutish va kontent o‘rtasidagi siljishni yumshatish */
body[data-ilovasi-page="home"] #sections-root {
  min-height: min(2000px, 82vh);
  contain: layout;
}

.detail-error-pad {
  padding: 20px 32px 0;
  max-width: 1200px;
  margin: 0 auto;
}

.detail-loading {
  padding: 24px 16px 48px;
  max-width: 1200px;
  margin: 0 auto;
}

/* Branded loading state (home, search, app detail) */
.ilovasi-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  padding: 32px 20px 48px;
  min-height: 200px;
  box-sizing: border-box;
}

.ilovasi-loading--search {
  min-height: min(1200px, 78vh);
  padding: 40px 16px 56px;
}

/* Home: yuklash balandligi ~bo‘limlar gridiga yaqin — CLS kamayadi */
.ilovasi-loading--home {
  min-height: min(1800px, 78vh);
  padding: 40px 20px 48px;
}

.ilovasi-loading--detail {
  min-height: min(1200px, 72vh);
  padding: 48px 20px 64px;
}

.ilovasi-loading__visual {
  position: relative;
  width: 80px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ilovasi-loading__ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 3px solid rgba(53, 224, 21, 0.12);
  border-top-color: var(--accent);
  border-right-color: rgba(53, 224, 21, 0.45);
  animation: ilovasi-loading-spin 1s cubic-bezier(0.5, 0.1, 0.4, 0.9) infinite;
}

.ilovasi-loading__glow {
  position: absolute;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(53, 224, 21, 0.28) 0%,
    rgba(53, 224, 21, 0.06) 45%,
    transparent 72%
  );
  animation: ilovasi-loading-glow 2.2s ease-in-out infinite;
}

.ilovasi-loading__logo {
  position: relative;
  z-index: 1;
  width: 40px;
  height: 40px;
  object-fit: contain;
  filter: drop-shadow(0 0 12px rgba(53, 224, 21, 0.35));
  animation: ilovasi-loading-pulse 1.5s ease-in-out infinite;
}

.ilovasi-loading__label {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--text);
  text-align: center;
}

.ilovasi-loading__dots {
  display: inline-flex;
  gap: 2px;
  margin-top: -10px;
  font-size: 22px;
  font-weight: 700;
  line-height: 1;
  color: var(--accent);
  letter-spacing: 2px;
}

.ilovasi-loading__dots span {
  display: inline-block;
  animation: ilovasi-loading-dot 1.35s ease-in-out infinite both;
}

.ilovasi-loading__dots span:nth-child(2) {
  animation-delay: 0.2s;
}

.ilovasi-loading__dots span:nth-child(3) {
  animation-delay: 0.4s;
}

@keyframes ilovasi-loading-spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes ilovasi-loading-glow {
  0%,
  100% {
    opacity: 0.65;
    transform: scale(0.96);
  }
  50% {
    opacity: 1;
    transform: scale(1.05);
  }
}

@keyframes ilovasi-loading-pulse {
  0%,
  100% {
    transform: scale(1);
    opacity: 0.92;
  }
  50% {
    transform: scale(1.06);
    opacity: 1;
  }
}

@keyframes ilovasi-loading-dot {
  0%,
  40%,
  100% {
    opacity: 0.15;
    transform: translateY(0);
  }
  20% {
    opacity: 1;
    transform: translateY(-3px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .ilovasi-loading__ring,
  .ilovasi-loading__glow,
  .ilovasi-loading__logo,
  .ilovasi-loading__dots span {
    animation: none !important;
  }

  .ilovasi-loading__ring {
    border-top-color: var(--accent);
    opacity: 0.9;
  }
}

/* Section headers (Must-Have >) */
.app-section {
  margin-bottom: 40px;
}

.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.section-head h2,
.section-head__link-title {
  margin: 0;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--text);
}

.section-head__link-title {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--text);
  text-decoration: none;
}

.section-head__link-title:hover {
  color: var(--accent);
  text-decoration: none;
}

.section-head__chevron {
  font-weight: 400;
  color: var(--text-secondary);
  font-size: 20px;
  line-height: 1;
}

/* 3-column Must-Have grid */
.must-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
}

.must-cell {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  background: var(--bg-main);
  min-height: 88px;
}

.must-cell__link {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
  min-width: 0;
  color: inherit;
  text-decoration: none;
}

.must-cell__link:hover .must-cell__name {
  color: var(--accent);
}

.must-cell__icon {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
}

.must-cell__meta {
  min-width: 0;
}

.must-cell__name {
  font-size: 15px;
  font-weight: 600;
  margin: 0 0 4px;
  color: var(--text);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.must-cell__sub {
  font-size: 12px;
  color: var(--text-secondary);
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.btn-view-pill {
  flex-shrink: 0;
  padding: 6px 16px;
  font-size: 14px;
  font-weight: 600;
  color: var(--accent);
  background: var(--bg-elevated);
  border-radius: var(--radius-pill);
  text-decoration: none;
  border: none;
  cursor: pointer;
}

.btn-view-pill:hover {
  background: #3a3a3c;
  text-decoration: none;
  color: var(--accent-hover);
}

/* Top Free horizontal cards */
.topfree-track {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  padding-bottom: 8px;
  scroll-snap-type: x proximity;
  -webkit-overflow-scrolling: touch;
}

.topfree-track::-webkit-scrollbar {
  height: 4px;
}

.topfree-track::-webkit-scrollbar-thumb {
  background: var(--text-tertiary);
  border-radius: 4px;
}

.topfree-card {
  position: relative;
  flex: 0 0 200px;
  scroll-snap-align: start;
  background: var(--bg-elevated);
  border-radius: var(--radius);
  padding: 20px 14px 16px;
  text-align: center;
  border: 1px solid var(--border);
}

.topfree-card__rank {
  position: absolute;
  top: 10px;
  left: 12px;
  font-size: 28px;
  font-weight: 700;
  color: #a8a8ad;
  line-height: 1;
}

.topfree-card__link {
  display: block;
  color: inherit;
  text-decoration: none;
}

.topfree-card__icon {
  width: 88px;
  height: 88px;
  border-radius: 20px;
  margin: 12px auto 12px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
}

.topfree-card__name {
  font-size: 14px;
  font-weight: 600;
  margin: 0 0 6px;
  color: var(--text);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.topfree-card__sub {
  font-size: 11px;
  color: #c4c4c9;
  margin: 0 0 14px;
  min-height: 2.6em;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.topfree-card .btn-view-pill {
  display: inline-flex;
  width: auto;
}

/* Legacy / search grid */
.page-head {
  margin-bottom: 24px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
}

.breadcrumb {
  font-size: 12px;
  color: var(--text-secondary);
  margin: 0 0 12px;
}

.breadcrumb a {
  color: var(--text-secondary);
}

.breadcrumb a:hover {
  color: var(--accent);
}

.page-head h1 {
  font-size: 28px;
  font-weight: 700;
  margin: 0 0 16px;
  letter-spacing: -0.03em;
}

.search-page-title {
  font-size: 34px;
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.15;
  margin: 0 0 18px;
}

.page-head--search {
  margin-bottom: 10px;
}

.search-bar {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.search-bar input[type="search"] {
  flex: 1;
  min-width: 200px;
  padding: 12px 16px 12px 40px;
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  background: var(--bg-elevated)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%238e8e93' stroke-width='2'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='M20 20l-4-4'/%3E%3C/svg%3E")
    no-repeat 14px center;
  color: var(--text);
  font-size: 16px;
}

.search-bar button {
  padding: 12px 22px;
  background: var(--accent);
  /* Oq matn yashil fon ustida AA kontrastni bajarolmaydi — qora-kulrang matn */
  color: #0a0a0a;
  border: none;
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
}

.search-bar button:hover {
  background: var(--accent-hover);
  color: #0a0a0a;
}

.search-bar button:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
}

.result-count {
  color: var(--text-secondary);
  font-size: 13px;
  margin-bottom: 20px;
}

/* App Store–style search results (grid + cards + screenshot strip) */
.search-results-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  align-items: stretch;
}

/* Discover / search: maydonni oldindan band qilish — yuklash → grid almashishini yumshatadi */
body[data-ilovasi-page="search"] #search-grid.search-results-grid {
  min-height: min(1600px, 82vh);
  contain: layout;
}

/* App: yuklash → app ma'lumoti (CLS) — home/search bilan bir xil g'oya */
body[data-ilovasi-page="app"] #detail-root {
  min-height: min(1400px, 78vh);
  contain: layout;
}

@media (max-width: 1100px) {
  .search-results-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .search-results-grid {
    grid-template-columns: 1fr;
  }

  .search-page-title {
    font-size: 26px;
  }
}

.result-card {
  display: flex;
  flex-direction: column;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 14px 14px;
  transition: background 0.15s ease;
}

.result-card:hover {
  background: #323234;
}

.result-card__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.result-card__info {
  display: flex;
  gap: 12px;
  flex: 1;
  min-width: 0;
  color: inherit;
  text-decoration: none;
}

.result-card__info:hover .result-card__name {
  color: var(--accent);
}

.result-card__icon {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  flex-shrink: 0;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.45);
}

.result-card__text {
  min-width: 0;
  flex: 1;
}

.result-card__name {
  font-size: 15px;
  font-weight: 600;
  margin: 0 0 4px;
  line-height: 1.25;
  letter-spacing: -0.02em;
  color: var(--text);
}

.result-card__genre {
  font-size: 12px;
  color: #c4c4c9;
  margin: 0 0 4px;
}

.result-card__rating {
  font-size: 12px;
  color: #c4c4c9;
  margin: 0;
}

.result-card__stars {
  color: #ffd60a;
}

.result-card__dot {
  opacity: 0.65;
}

.result-card__view {
  flex-shrink: 0;
  margin-top: 2px;
}

.result-card__shots {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
  min-height: 128px;
}

.result-card__shots--empty {
  display: none;
}

.result-card__phone {
  flex: 1;
  min-width: 0;
  height: 128px;
  border-radius: 10px;
  border: 2px solid rgba(255, 255, 255, 0.2);
  overflow: hidden;
  background: #0a0a0a;
  box-shadow:
    inset 0 0 0 1px rgba(0, 0, 0, 0.5),
    0 2px 8px rgba(0, 0, 0, 0.35);
}

.result-card__phone img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
}

.search-hint {
  grid-column: 1 / -1;
  max-width: 520px;
}

.app-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 14px;
}

.app-tile {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 14px;
  text-align: center;
  transition: transform 0.15s ease, background 0.15s ease;
}

.app-tile:hover {
  transform: translateY(-2px);
  background: #323234;
}

.app-tile__main {
  display: block;
  color: inherit;
  text-decoration: none;
}

.app-tile__main:hover h2 {
  color: var(--accent);
}

.app-tile img {
  width: 88px;
  height: 88px;
  border-radius: 20px;
  margin-bottom: 12px;
}

.app-tile h2 {
  font-size: 14px;
  font-weight: 600;
  margin: 0 0 6px;
  color: var(--text);
}

.app-dev {
  font-size: 12px;
  color: var(--text-secondary);
  margin: 0;
}

.btn-store {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 12px;
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
  background: rgba(10, 132, 255, 0.12);
  border-radius: var(--radius-pill);
  text-decoration: none;
}

.btn-store:hover {
  background: rgba(10, 132, 255, 0.22);
  text-decoration: none;
}

.btn-store--block {
  width: 100%;
}

.app-tile .btn-view-pill.btn-store--block {
  width: 100%;
  justify-content: center;
  margin-top: 8px;
}

.app-tile .btn-store.btn-store--block {
  margin-top: 8px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border);
}

.empty,
.hint {
  color: var(--text-secondary);
}

.error {
  color: #ff453a;
}

/* App product page (App Store–style) */
.detail-product {
  max-width: 1200px;
  margin: 0 auto;
}

.detail-breadcrumb {
  font-size: 13px;
  color: var(--text-secondary);
  padding: 20px 32px 16px;
}

.detail-breadcrumb a {
  color: var(--text-secondary);
}

.detail-breadcrumb a:hover {
  color: var(--accent);
}

.detail-breadcrumb__sep {
  margin: 0 6px;
  opacity: 0.7;
}

.detail-hero {
  position: relative;
  margin-bottom: 0;
  overflow: hidden;
}

.detail-hero__bg {
  position: absolute;
  inset: 0;
  /* Fallback until JS samples the app icon (see applyDetailHeroArtworkTint) */
  background: linear-gradient(90deg, #3a3a40 0%, #2a2a30 100%);
  filter: blur(48px);
  transform: scale(1.12);
  opacity: 1;
}

.detail-hero__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  /* Lighter veil so the hero feels more open */
  background: rgba(0, 0, 0, 0.14);
}

.detail-hero__inner {
  position: relative;
  z-index: 1;
  display: flex;
  gap: 24px;
  align-items: flex-start;
  flex-wrap: nowrap;
  padding: 32px 32px 36px;
  max-width: 1200px;
}

.detail-hero__icon {
  width: 128px;
  height: 128px;
  border-radius: 27px;
  box-shadow:
    0 12px 40px rgba(0, 0, 0, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    inset 0 -2px 6px rgba(0, 0, 0, 0.25);
  flex-shrink: 0;
}

.detail-hero__main {
  flex: 1;
  min-width: 0;
  padding-top: 2px;
}

.detail-hero__main h1 {
  font-size: 34px;
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.08;
  margin: 0 0 6px;
  color: #fff;
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.3);
}

.detail-hero__subtitle {
  font-size: 17px;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.95);
  margin: 0 0 10px;
  line-height: 1.35;
  max-width: 640px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.detail-hero__meta {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.62);
  margin: 0 0 16px;
  line-height: 1.4;
}

.detail-hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.detail-store-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 600;
  color: #041004;
  text-decoration: none;
  background: var(--accent);
  box-shadow: 0 2px 14px rgba(53, 224, 21, 0.35);
  transition: background 0.15s ease, transform 0.1s ease;
}

.detail-store-btn:hover {
  background: var(--accent-hover);
  color: #041004;
}

.detail-store-btn:active {
  transform: scale(0.98);
}

.detail-store-btn__icon {
  flex-shrink: 0;
  opacity: 0.95;
}

.detail-share {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: rgba(55, 55, 58, 0.92);
  color: #fff;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
  transition: background 0.15s ease, transform 0.1s ease;
}

.detail-share:hover {
  background: rgba(70, 70, 74, 0.95);
}

.detail-share:active {
  transform: scale(0.96);
}

.detail-share svg {
  display: block;
}

/* App Store–style metadata row (matches App Store product page) */
.detail-specs {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: #121212;
  padding: 26px 0 22px;
  overflow: hidden;
}

.detail-specs__scroll {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 0 80px;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: x proximity;
  padding: 10px 48px 14px;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.detail-specs__scroll::-webkit-scrollbar {
  display: none;
  height: 0;
}

.detail-specs__cell {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  flex: 0 0 auto;
  min-width: 72px;
  max-width: 96px;
  width: 84px;
  text-align: center;
  scroll-snap-align: start;
  gap: 0;
}

.detail-specs__cell--category,
.detail-specs__cell--dev {
  min-width: 120px;
  width: 136px;
  max-width: 200px;
}

.detail-specs__label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #8e8e93;
  text-transform: uppercase;
  margin-bottom: 12px;
  line-height: 1.15;
}

.detail-specs__hero {
  display: block;
  font-size: 30px;
  font-weight: 700;
  letter-spacing: -0.045em;
  line-height: 1;
  min-height: 34px;
  color: #ffffff;
  font-variant-numeric: tabular-nums;
}

.detail-specs__meta {
  display: block;
  margin-top: 10px;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.3;
  color: #8e8e93;
  max-width: 100%;
}

.detail-specs__glyph + .detail-specs__meta {
  margin-top: 0;
}

.detail-specs__meta--twoline {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-align: center;
  word-break: break-word;
}

.detail-specs__meta--ellipsis {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.detail-specs__glyph {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  margin-bottom: 8px;
}

.detail-specs__svg {
  display: block;
  flex-shrink: 0;
  overflow: visible;
}

.detail-screens {
  padding: 28px 32px 8px;
}

.detail-screens__heading {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0 0 18px;
  color: var(--text);
}

.detail-screens__track {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  padding-bottom: 16px;
  scroll-snap-type: x proximity;
  -webkit-overflow-scrolling: touch;
}

.detail-phone-frame {
  flex: 0 0 auto;
  width: min(220px, 42vw);
  scroll-snap-align: start;
  border-radius: 32px;
  border: 3px solid #e8e8ed;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.45);
}

.detail-phone-frame img {
  display: block;
  width: 100%;
  height: auto;
  vertical-align: top;
}

.detail-screens + .detail-screens {
  padding-top: 12px;
}

.detail-ipad-frame {
  flex: 0 0 auto;
  width: min(300px, 58vw);
  scroll-snap-align: start;
  border-radius: 20px;
  border: 3px solid #e8e8ed;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.38);
}

.detail-ipad-frame img {
  display: block;
  width: 100%;
  height: auto;
  vertical-align: top;
}

.detail-tv-frame {
  flex: 0 0 auto;
  width: min(360px, 78vw);
  scroll-snap-align: start;
  border-radius: 14px;
  border: 3px solid #e8e8ed;
  overflow: hidden;
  background: #0a0a0b;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.45);
  aspect-ratio: 16 / 9;
}

.detail-tv-frame img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  vertical-align: top;
}

.detail-watch-frame {
  flex: 0 0 auto;
  width: min(148px, 34vw);
  scroll-snap-align: start;
  border-radius: 36px;
  border: 3px solid #e8e8ed;
  overflow: hidden;
  background: #000;
  box-shadow: 0 10px 32px rgba(0, 0, 0, 0.42);
}

.detail-watch-frame img {
  display: block;
  width: 100%;
  height: auto;
  vertical-align: top;
}

.detail-about {
  padding: 12px 32px 8px;
  max-width: 800px;
}

.detail-about__h {
  font-size: 22px;
  font-weight: 700;
  margin: 0 0 14px;
  letter-spacing: -0.02em;
}

.detail-about__body {
  position: relative;
}

.detail-about__text {
  color: var(--text-secondary);
  font-size: 15px;
  line-height: 1.55;
}

.detail-about__text--collapsible:not(.is-expanded) {
  max-height: 7.75em;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to bottom, #000 45%, transparent);
  mask-image: linear-gradient(to bottom, #000 45%, transparent);
}

.detail-about__text--collapsible.is-expanded {
  -webkit-mask-image: none;
  mask-image: none;
}

.detail-about__more {
  margin-top: 6px;
  padding: 4px 0;
  border: none;
  background: none;
  color: var(--accent);
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  font-family: inherit;
}

.detail-about__more:hover {
  text-decoration: underline;
}

.detail-compatibility {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 32px 18px;
  border-bottom: 1px solid var(--border);
  color: var(--text);
}

.detail-compatibility__icons {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  color: var(--text-secondary);
  flex-shrink: 0;
}

.detail-compatibility__icon--phone {
  opacity: 0.95;
}

.detail-compatibility__icon--pad {
  opacity: 0.85;
}

.detail-compatibility__text {
  flex: 1;
  font-size: 15px;
  font-weight: 400;
}

.detail-compatibility__chev {
  color: var(--text-tertiary);
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.detail-section-head {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 18px;
}

.detail-section-head__title {
  font-size: 22px;
  font-weight: 700;
  margin: 0;
  letter-spacing: -0.02em;
  color: var(--text);
}

.detail-section-head__chev {
  display: flex;
  align-items: center;
  color: var(--text-tertiary);
  opacity: 0.85;
}

.detail-section-head--split {
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 8px 16px;
}

.detail-section-head__left {
  display: flex;
  align-items: center;
  gap: 6px;
}

.detail-ratings {
  padding: 24px 32px 28px;
  border-top: 1px solid var(--border);
}

.detail-ratings__summary {
  display: flex;
  flex-direction: row;
  align-items: stretch;
  gap: 28px;
  margin-bottom: 10px;
}

.detail-ratings__scorecol {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  flex-shrink: 0;
  min-width: 76px;
}

.detail-ratings__big {
  font-size: 56px;
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 0.95;
  color: #fff;
}

.detail-ratings__outof {
  font-size: 13px;
  font-weight: 400;
  color: var(--text-secondary);
  margin-top: 8px;
}

.detail-ratings__chart {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 5px;
  justify-content: center;
  padding-top: 4px;
}

.detail-ratings__bar-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.detail-ratings__bar-star {
  width: 32px;
  font-size: 11px;
  font-weight: 600;
  color: var(--text-secondary);
  text-align: right;
  flex-shrink: 0;
  line-height: 1;
}

.detail-ratings__bar-track {
  flex: 1;
  height: 5px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 3px;
  overflow: hidden;
}

.detail-ratings__bar-fill {
  height: 100%;
  background: rgba(255, 255, 255, 0.5);
  border-radius: 3px;
  min-width: 3px;
  transition: width 0.2s ease;
}

.detail-ratings__total {
  margin: 0 0 14px;
  text-align: right;
  font-size: 13px;
  color: var(--text-secondary);
}

.detail-ratings__hint {
  margin: 0 0 14px;
  font-size: 12px;
  line-height: 1.45;
  color: var(--text-tertiary);
}

.detail-ratings__applink {
  margin: 0;
}

.detail-ratings__applink a {
  color: var(--accent);
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
}

.detail-ratings__applink a:hover {
  text-decoration: underline;
}

.detail-ratings__empty {
  margin: 0 0 12px;
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.45;
}

.detail-whatsnew {
  padding: 24px 32px 28px;
  border-top: 1px solid var(--border);
}

.detail-whatsnew__vermeta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
  text-align: right;
}

.detail-whatsnew__ver {
  font-size: 15px;
  font-weight: 500;
  color: var(--text);
}

.detail-whatsnew__ago {
  font-size: 13px;
  color: var(--text-secondary);
}

.detail-whatsnew__body {
  font-size: 15px;
  line-height: 1.5;
  color: var(--text-secondary);
}

.detail-whatsnew__empty {
  margin: 0;
  font-size: 15px;
}

.detail-privacy {
  padding: 24px 32px 32px;
  border-top: 1px solid var(--border);
}

.detail-privacy__text {
  margin: 0 0 12px;
  font-size: 15px;
  line-height: 1.5;
  color: var(--text-secondary);
}

.detail-privacy__links {
  margin: 0;
  font-size: 15px;
  line-height: 1.45;
}

.detail-privacy__links a {
  color: var(--accent);
  font-weight: 500;
  text-decoration: none;
}

.detail-privacy__links a:hover {
  text-decoration: underline;
}

.detail-privacy__sep {
  color: var(--text-tertiary);
}

/* App Store–style Information block (App Privacy, grid, footer) */
.detail-store-info {
  padding: 28px 32px 36px;
  border-top: 1px solid var(--border);
  background: var(--bg-main);
}

.detail-app-privacy {
  margin-bottom: 32px;
  max-width: 900px;
}

.detail-app-privacy__open {
  display: block;
  width: 100%;
  margin: 0 0 14px;
  padding: 0;
  border: none;
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.detail-app-privacy__open:hover .detail-section-head__title,
.detail-app-privacy__open:hover .detail-section-head__chev {
  opacity: 0.88;
}

.detail-app-privacy__open:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 6px;
}

.detail-app-privacy__head {
  margin-bottom: 0;
}

.detail-app-privacy__lead,
.detail-privacy-modal__p {
  margin: 0;
  font-size: 15px;
  line-height: 1.55;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.72);
  letter-spacing: -0.01em;
}

body.detail-privacy-modal-open {
  overflow: hidden;
}

.detail-privacy-modal {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: none;
  align-items: flex-end;
  justify-content: center;
  padding: 0;
  font-family: var(--font);
}

.detail-privacy-modal.is-open {
  display: flex;
}

.detail-privacy-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.52);
}

.detail-privacy-modal__panel {
  position: relative;
  width: 100%;
  max-width: 720px;
  max-height: min(92vh, 900px);
  margin: 0 auto;
  padding: 12px 24px 28px;
  background: #000000;
  border-radius: 14px 14px 0 0;
  border: 1px solid var(--border);
  border-bottom: none;
  box-shadow: 0 -8px 40px rgba(0, 0, 0, 0.45);
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.detail-privacy-modal__close {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  margin: 0 0 4px -6px;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 50%;
  background: transparent;
  color: var(--text-secondary);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.detail-privacy-modal__close:hover {
  color: var(--text);
}

.detail-privacy-modal__close:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.detail-privacy-modal__title {
  margin: 0 0 18px;
  padding: 0;
  font-size: 34px;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
  color: var(--text);
}

.detail-privacy-modal__body {
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding-right: 4px;
}

@media (min-width: 720px) {
  .detail-privacy-modal {
    align-items: center;
    padding: 24px;
  }

  .detail-privacy-modal__panel {
    border-radius: 14px;
    border-bottom: 1px solid var(--border);
    max-height: min(85vh, 880px);
  }
}

.detail-app-privacy__seller {
  font-weight: 700;
  color: var(--text);
}

.detail-app-privacy__link {
  color: var(--accent);
  font-weight: 600;
  text-decoration: none;
}

.detail-app-privacy__link:hover {
  text-decoration: underline;
}

.detail-app-privacy__rule {
  border: none;
  border-top: 1px solid var(--border);
  margin: 18px 0;
}

.detail-store-info__body {
  margin: 0 0 28px;
  font-size: 15px;
  line-height: 1.55;
  font-weight: 500;
  color: var(--text-secondary);
  max-width: 900px;
}

.detail-store-info__link {
  color: var(--accent);
  font-weight: 600;
  text-decoration: none;
}

.detail-store-info__link:hover {
  text-decoration: underline;
}

.detail-store-info__access {
  margin-bottom: 32px;
}

.detail-store-info__subh {
  margin: 0 0 12px;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
}

.detail-store-info__h {
  margin: 0 0 22px;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
}

.detail-store-info__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 32px 48px;
  margin-bottom: 36px;
}

.detail-store-info__grid--compact {
  margin-bottom: 16px;
}

.detail-store-info__copyright {
  margin: 0 0 22px;
  font-size: 15px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.72);
  letter-spacing: -0.01em;
  max-width: 900px;
}

.detail-info-cell {
  min-width: 0;
}

.detail-info-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 10px;
  letter-spacing: -0.01em;
}

.detail-info-value {
  font-size: 15px;
  font-weight: 600;
  color: #fff;
  line-height: 1.35;
}

.detail-info-value--row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 6px;
}

.detail-info-value-text {
  flex: 1;
  min-width: 0;
}

.detail-info-cat-ico {
  display: flex;
  color: rgba(255, 255, 255, 0.85);
  flex-shrink: 0;
}

.detail-info-chev {
  display: flex;
  color: var(--text-tertiary);
  flex-shrink: 0;
  opacity: 0.9;
}

.detail-store-info__foot {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 20px 40px;
  padding-top: 8px;
}

.detail-store-info__footlink {
  font-size: 15px;
  font-weight: 600;
  color: var(--accent);
  text-decoration: none;
}

.detail-store-info__footlink:hover {
  text-decoration: underline;
}

.detail-store-info__ext {
  font-size: 14px;
  opacity: 0.95;
}

.detail-store-info__api-note {
  margin: 24px 0 0;
  font-size: 12px;
  line-height: 1.45;
  color: var(--text-tertiary);
  max-width: 720px;
}

/* More by developer + You Might Also Like */
.detail-related-wrap {
  padding: 28px 32px 44px;
  border-top: 1px solid var(--border);
  background: var(--bg-main);
}

.detail-related__block {
  margin-bottom: 36px;
}

.detail-related__block:last-child {
  margin-bottom: 0;
}

.detail-related__head {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 0 0 16px;
  text-decoration: none;
  color: var(--text);
}

.detail-related__head:hover .detail-related__head-title {
  color: var(--accent);
}

.detail-related__head-title {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.detail-related__chev {
  display: flex;
  color: var(--text-tertiary);
  opacity: 0.9;
}

.detail-related__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 4px 18px;
}

.detail-related__item {
  margin: 0;
  min-width: 0;
}

.detail-related__row {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  padding: 10px 8px;
  margin: 0 -8px;
  text-decoration: none;
  color: inherit;
  border-radius: 12px;
}

.detail-related__row:hover {
  background: var(--bg-hover);
}

.detail-related__icon {
  width: 64px;
  height: 64px;
  border-radius: 14px;
  flex-shrink: 0;
  object-fit: cover;
}

.detail-related__text {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.detail-related__name {
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  line-height: 1.25;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.detail-related__cat {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.detail-related__view {
  flex-shrink: 0;
  font-size: 15px;
  font-weight: 600;
  color: var(--accent);
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  background: rgba(10, 132, 255, 0.14);
  pointer-events: none;
}

.detail-related__row:hover .detail-related__view {
  background: rgba(10, 132, 255, 0.22);
}

@media (max-width: 900px) {
  .detail-related__list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 600px) {
  .detail-related-wrap {
    padding-left: 20px;
    padding-right: 20px;
  }

  .detail-related__list {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 900px) {
  .detail-store-info__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px 32px;
  }
}

@media (max-width: 600px) {
  .detail-store-info__grid {
    grid-template-columns: 1fr;
    gap: 26px;
  }

  .detail-store-info__foot {
    flex-direction: column;
    gap: 14px;
  }
}

/* Mobile App Store–style chrome (app detail page only) */
.detail-mobile-header {
  display: none;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  min-height: 48px;
  background: var(--bg-sidebar);
  border-bottom: 1px solid var(--border);
}

.detail-mobile-header__menu {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  margin: 0;
  padding: 0;
  border: none;
  border-radius: 10px;
  background: transparent;
  color: var(--accent);
  cursor: pointer;
}

.detail-mobile-header__menu:hover {
  background: var(--bg-hover);
}

.detail-mobile-header__brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex: 1;
  color: var(--text);
  text-decoration: none;
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.detail-mobile-header__brand:hover {
  text-decoration: none;
  opacity: 0.9;
}

.detail-mobile-header__mark {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  object-fit: contain;
}

.detail-sidebar-backdrop {
  position: fixed;
  inset: 0;
  z-index: 190;
  background: rgba(0, 0, 0, 0.45);
  border: none;
  padding: 0;
  margin: 0;
  cursor: pointer;
}

.detail-sidebar-backdrop[hidden] {
  display: none;
}

body.detail-menu-open {
  overflow: hidden;
  touch-action: none;
}

@media (max-width: 900px) {
  .detail-hero__inner {
    padding: 24px 20px 28px;
    flex-wrap: wrap;
  }

  .detail-breadcrumb,
  .detail-screens,
  .detail-compatibility,
  .detail-about,
  .detail-ratings,
  .detail-whatsnew,
  .detail-privacy,
  .detail-store-info {
    padding-left: 20px;
    padding-right: 20px;
  }

  .detail-specs__scroll {
    padding-left: 28px;
    padding-right: 28px;
  }

  .detail-hero__main h1 {
    font-size: 26px;
  }

  .detail-store-btn {
    font-size: 14px;
    padding: 9px 16px;
  }
}

@media (max-width: 520px) {
  .detail-specs__cell {
    min-width: 72px;
    width: 82px;
  }

  .detail-specs__cell--category,
  .detail-specs__cell--dev {
    min-width: 108px;
    width: 120px;
    max-width: 160px;
  }

  .detail-specs__hero {
    font-size: 28px;
  }

  .detail-specs__scroll {
    gap: 0 56px;
    padding-left: 28px;
    padding-right: 28px;
  }

  .detail-ratings__summary {
    flex-direction: column;
    align-items: stretch;
    gap: 18px;
  }

  .detail-ratings__total {
    text-align: left;
  }

  .detail-ratings__big {
    font-size: 48px;
  }

  .detail-hero__inner {
    align-items: flex-start;
  }

  .detail-hero__icon {
    width: 100px;
    height: 100px;
    border-radius: 22px;
  }

  .detail-hero__actions {
    width: 100%;
  }

  .detail-store-btn {
    flex: 1;
    min-width: 0;
    justify-content: center;
  }
}

.muted {
  color: var(--text-secondary);
}

.site-footer {
  padding: 20px 32px 32px;
  border-top: 1px solid var(--border);
  font-size: 11px;
  color: var(--text-secondary);
  line-height: 1.5;
  max-width: 1200px;
}

.site-footer a {
  color: var(--text-secondary);
}

.site-footer a:hover {
  color: var(--accent);
}

/* App Store–style legal footer (no language row); WCAG AA contrast on #1d1d1f */
.site-footer--store {
  margin: 0;
  max-width: none;
  padding: 28px 32px 36px;
  border-top: none;
  background: #1d1d1f;
  font-size: 12px;
  line-height: 1.45;
  color: #b8b8bd;
  /* Pastki qatorlar o‘ralganda vertikal siljishni kamaytirish */
  min-height: 180px;
  box-sizing: border-box;
}

.site-footer--store a {
  color: #d1d1d6;
  text-decoration: none;
}

.site-footer--store a:hover {
  color: #f5f5f7;
  text-decoration: underline;
}

.site-footer__copy {
  margin: 0 0 10px;
  padding: 0;
}

.site-footer__links {
  margin: 0 0 14px;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 0;
  row-gap: 6px;
}

.site-footer__links a {
  white-space: nowrap;
}

.site-footer__sep {
  display: inline-block;
  padding: 0 7px;
  color: #8e8e93;
  font-weight: 400;
}

.site-footer__note {
  margin: 0;
  padding: 0;
  font-size: 11px;
  line-height: 1.5;
  color: #a8a8ad;
  max-width: 720px;
}

@media (max-width: 600px) {
  .site-footer--store {
    padding-left: 20px;
    padding-right: 20px;
  }
}

/* Responsive */
@media (max-width: 1060px) {
  .must-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 900px) {
  .app-shell {
    flex-direction: column;
  }

  .sidebar {
    position: relative;
    width: 100%;
    height: auto;
    border-right: none;
    border-bottom: 1px solid var(--border);
  }

  .main-inner {
    padding: 20px 16px 40px;
  }

  .main-inner--product {
    padding: 0 0 40px;
  }

  .must-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 734px) {
  .topfree-card {
    flex: 0 0 160px;
  }

  .screenshots__row img {
    height: 260px;
  }

  .page-detail .detail-phone-frame {
    width: min(240px, 74vw);
  }

  .page-detail .detail-ipad-frame {
    width: min(280px, 88vw);
  }

  .page-detail .detail-tv-frame {
    width: min(320px, 92vw);
  }

  .page-detail .detail-watch-frame {
    width: min(132px, 42vw);
  }

  .page-detail .detail-share {
    background: rgba(110, 62, 32, 0.92);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.35);
  }

  .page-detail .detail-share:hover {
    background: rgba(130, 75, 40, 0.95);
  }

  .page-detail .detail-screens__heading {
    font-size: 17px;
    margin-bottom: 12px;
  }
}

/* App detail (`app.html`): drawer nav + full-width content on small screens */
@media (max-width: 900px) {
  .page-detail .app-shell--detail {
    display: block;
  }

  .page-detail .detail-mobile-header {
    display: flex;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 100;
  }

  .page-detail .app-shell--detail > .sidebar {
    position: fixed;
    left: 0;
    top: 0;
    bottom: 0;
    width: min(300px, 88vw);
    height: 100vh;
    max-height: 100dvh;
    z-index: 200;
    transform: translateX(-100%);
    transition: transform 0.28s cubic-bezier(0.4, 0, 0.2, 1);
    border-right: 1px solid var(--border);
    border-bottom: none;
    box-shadow: 12px 0 40px rgba(0, 0, 0, 0.4);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  .page-detail .app-shell--detail > .sidebar.is-open {
    transform: translateX(0);
  }

  .page-detail .main-panel {
    width: 100%;
  }

  .page-detail .detail-breadcrumb {
    display: none;
  }

  .page-detail .main-inner.main-inner--product.main-inner--store {
    padding: 16px 20px 40px;
  }
}
