@font-face {
  font-family: Gotham;
  src: url("assets/gotham-medium.otf") format("opentype");
  font-weight: 500;
  font-display: swap;
}

@font-face {
  font-family: Gotham;
  src: url("assets/gotham-bold.otf") format("opentype");
  font-weight: 700;
  font-display: swap;
}

:root {
  --ink: #fff;
  --muted: #bbb4c3;
  --muted-strong: #d8d2dd;
  --canvas: #09070c;
  --surface: #15111a;
  --surface-2: #211a27;
  --surface-3: #2b2233;
  --line: #39303f;
  --brand: #bf0096;
  --brand-hover: #dc18ae;
  --yellow: #ffbd18;
  --live: #f04452;
  --success: #38c98d;
  --warning: #ffbd18;
  --error: #ff6b76;
  --focus: #ffd15c;
  --shell: min(100% - 72px, 1440px);
  --header: 76px;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --z-sticky: 20;
  --z-dialog: 40;
  --z-review: 50;
  --mobile-gutter: 20px;
  --mobile-nav-height: 76px;
}

* { box-sizing: border-box; }
html { min-width: 320px; background: var(--canvas); scroll-behavior: smooth; }
body { margin: 0; background: var(--canvas); color: var(--ink); font-family: Gotham, Arial, sans-serif; font-size: 16px; }
button, input, select, textarea { color: inherit; font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
svg { display: block; width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }

.skip-link {
  position: fixed;
  z-index: calc(var(--z-review) + 1);
  top: 10px;
  left: 10px;
  padding: 10px 14px;
  background: #fff;
  color: #161019;
  border-radius: var(--radius-sm);
  transform: translateY(-150%);
  min-height: 44px;
}
.skip-link:focus { transform: none; }

.review-badge {
  position: fixed;
  z-index: var(--z-review);
  right: 16px;
  bottom: 16px;
  padding: 8px 11px;
  border-radius: 999px;
  background: #fff;
  color: #161019;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .04em;
}

.topbar {
  position: sticky;
  z-index: var(--z-sticky);
  top: 0;
  height: var(--header);
  display: flex;
  align-items: center;
  background: rgba(9, 7, 12, .94);
  border-bottom: 1px solid rgba(255, 255, 255, .09);
  backdrop-filter: blur(12px);
}
.topbar__inner { width: var(--shell); margin: auto; display: flex; align-items: center; gap: 24px; }
.brand-link { min-height: 44px; display: inline-flex; align-items: center; flex: 0 0 auto; }
.brand { width: 116px; height: 32px; object-fit: contain; }
.desktop-nav { display: flex; align-items: center; gap: 4px; }
.desktop-nav a { padding: 11px 13px; border-radius: var(--radius-sm); color: var(--muted-strong); font-size: 14px; }
.desktop-nav a:hover, .desktop-nav a[aria-current="page"] { background: rgba(255, 255, 255, .09); color: #fff; }
.topbar__actions { margin-left: auto; display: flex; align-items: center; gap: 8px; }

.icon-button {
  width: 44px;
  min-width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: var(--radius-sm);
  cursor: pointer;
}
.icon-button:hover { background: rgba(255, 255, 255, .1); }
.button {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 0 18px;
  border: 0;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-weight: 700;
  transition: background-color 180ms cubic-bezier(.22, 1, .36, 1), transform 180ms cubic-bezier(.22, 1, .36, 1);
}
.button:hover { transform: translateY(-1px); }
.button--primary { background: var(--brand); }
.button--primary:hover { background: var(--brand-hover); }
.button--secondary { background: #fff; color: #151017; }
.button--secondary:hover { background: #eee9f0; }
.button--quiet { background: transparent; }
.button--quiet:hover { background: rgba(255, 255, 255, .1); }
.button--danger { background: #5b2027; color: #fff; }
.button[aria-disabled="true"], .button:disabled { opacity: .48; pointer-events: none; }

#app { min-height: calc(100vh - var(--header)); padding-bottom: 96px; }
.page-shell { width: var(--shell); margin: 0 auto; padding-top: 42px; }
.page-shell--wide { width: min(100% - 40px, 1600px); }
.page-heading { max-width: 760px; margin-bottom: 30px; }
.page-heading h1 { margin: 7px 0 10px; font-size: 38px; line-height: 1.06; letter-spacing: -.035em; text-wrap: balance; }
.page-heading p { max-width: 68ch; margin: 0; color: var(--muted); line-height: 1.55; text-wrap: pretty; }
.context-label { margin: 0; color: var(--yellow); font-size: 12px; font-weight: 700; }
.section-title { margin: 0 0 14px; font-size: 20px; letter-spacing: -.015em; }
.section-note { color: var(--muted); font-size: 13px; }

.state-toolbar {
  width: var(--shell);
  margin: 0 auto;
  padding: 13px 0;
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
  border-bottom: 1px solid rgba(255, 255, 255, .08);
}
.state-toolbar::-webkit-scrollbar { display: none; }
.state-toolbar__label { flex: 0 0 auto; margin-right: 4px; color: var(--muted); font-size: 12px; }
.state-chip { flex: 0 0 auto; padding: 7px 10px; border-radius: 999px; background: var(--surface); color: var(--muted-strong); font-size: 12px; }
.state-chip:hover, .state-chip[aria-current="true"] { background: #fff; color: #171018; }

.hero {
  position: relative;
  min-height: 540px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background: #1b1230;
}
.hero__art { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 66% center; }
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(90deg, rgba(9, 7, 12, .98) 0%, rgba(9, 7, 12, .84) 30%, rgba(9, 7, 12, .12) 70%), linear-gradient(0deg, var(--canvas) 0%, transparent 38%);
}
.hero__content { position: relative; z-index: 2; width: var(--shell); margin: 0 auto; padding: 120px 0 76px; }
.hero__copy { max-width: 560px; }
.hero h1 { max-width: 12ch; margin: 16px 0 13px; font-size: 58px; line-height: .98; letter-spacing: -.035em; text-wrap: balance; }
.hero p { max-width: 58ch; margin: 0; color: #e6e0ea; font-size: 17px; line-height: 1.55; text-wrap: pretty; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 25px; }
.hero__meta { margin-top: 20px; display: flex; flex-wrap: wrap; gap: 16px; color: var(--muted); font-size: 13px; }
.status-line { display: flex; align-items: center; gap: 10px; color: #f1edf4; font-size: 13px; }
.live-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--live); box-shadow: 0 0 0 5px rgba(240, 68, 82, .16); }

.content-stack { min-width: 0; display: grid; gap: 36px; }
.content-stack > *, .page-shell > * { min-width: 0; max-width: 100%; }
.section-head { min-height: 40px; display: flex; align-items: center; gap: 16px; margin-bottom: 10px; }
.section-head h2 { margin: 0; font-size: 20px; letter-spacing: -.015em; }
.section-head a { min-height: 44px; display: inline-flex; align-items: center; margin-left: auto; color: var(--muted-strong); font-size: 13px; }
.section-head a:hover { color: #fff; text-decoration: underline; text-underline-offset: 4px; }
.rail { width: 100%; max-width: 100%; display: flex; gap: 12px; overflow-x: auto; padding: 3px 3px 12px; scroll-snap-type: x proximity; scrollbar-width: none; }
.rail::-webkit-scrollbar { display: none; }
.poster-card { flex: 0 0 168px; scroll-snap-align: start; }
.poster-card__image { position: relative; overflow: hidden; aspect-ratio: 248 / 347; border-radius: var(--radius-md); background: var(--surface); }
.poster-card img, .landscape-card img, .channel-card img { width: 100%; height: 100%; object-fit: cover; transition: transform 220ms cubic-bezier(.22, 1, .36, 1); }
.poster-card:hover img, .landscape-card:hover img, .channel-card:hover img { transform: scale(1.025); }
.poster-card h3, .landscape-card h3, .channel-card h3 { margin: 10px 0 4px; overflow: hidden; font-size: 13px; line-height: 1.35; text-overflow: ellipsis; white-space: nowrap; }
.poster-card p, .landscape-card p, .channel-card p { margin: 0; color: var(--muted); font-size: 12px; }
.landscape-card, .channel-card { flex: 0 0 254px; scroll-snap-align: start; }
.landscape-card__image, .channel-card__image { position: relative; overflow: hidden; aspect-ratio: 16 / 9; border-radius: var(--radius-md); background: var(--surface); }
.badge { position: absolute; z-index: 2; top: 10px; left: 10px; padding: 6px 8px; border-radius: 6px; font-size: 10px; font-weight: 700; letter-spacing: .04em; }
.badge--live { background: var(--live); }
.badge--free { background: #fff; color: #130c16; }
.badge--locked { background: rgba(9, 7, 12, .9); border: 1px solid rgba(255, 255, 255, .38); }

.catalog-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 24px 14px; }
.catalog-grid .poster-card { min-width: 0; }
.catalog-grid .poster-card__image { width: 100%; }
.channel-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(235px, 1fr)); gap: 18px; }
.channel-grid .channel-card { min-width: 0; }

.filter-row { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 24px; }
.filter-chip { min-height: 40px; padding: 0 14px; border: 0; border-radius: 999px; background: var(--surface); color: var(--muted-strong); cursor: pointer; }
.filter-chip[aria-pressed="true"], .filter-chip:hover { background: #fff; color: #171018; }

.search-box { display: flex; align-items: center; gap: 12px; max-width: 780px; padding: 0 15px; background: var(--surface); border-radius: var(--radius-md); }
.search-box input { width: 100%; min-height: 56px; background: transparent; border: 0; outline: 0; }
.search-box input::placeholder { color: #aaa3ae; }
.search-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }

.detail-hero { display: grid; grid-template-columns: minmax(180px, 260px) minmax(0, 720px); gap: 38px; align-items: end; padding: 44px 0; }
.detail-poster { overflow: hidden; aspect-ratio: 248 / 347; border-radius: var(--radius-md); background: var(--surface); }
.detail-poster img { width: 100%; height: 100%; object-fit: cover; }
.detail-copy h1 { margin: 12px 0; font-size: 44px; line-height: 1.02; letter-spacing: -.035em; text-wrap: balance; }
.detail-copy p { max-width: 65ch; color: var(--muted-strong); line-height: 1.6; }
.detail-meta { display: flex; flex-wrap: wrap; gap: 10px 16px; color: var(--muted); font-size: 13px; }
.detail-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.episode-list { display: grid; gap: 10px; }
.episode { display: grid; grid-template-columns: 160px minmax(0, 1fr) auto; gap: 16px; align-items: center; padding: 12px; background: var(--surface); border-radius: var(--radius-md); }
.episode img { width: 160px; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--radius-sm); }
.episode h3 { margin: 0 0 5px; font-size: 15px; }
.episode p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.45; }

.player-shell { min-height: calc(100vh - var(--header) - 54px); display: grid; place-items: center; padding: 26px; background: #030203; }
.player-stage { position: relative; width: min(100%, 1280px); overflow: hidden; aspect-ratio: 16 / 9; background: #120d16; border-radius: var(--radius-sm); }
.player-stage__art { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .48; }
.player-stage::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(0, 0, 0, .92), transparent 40%), linear-gradient(90deg, rgba(0, 0, 0, .45), transparent 30%); }
.player-top, .player-bottom, .player-center { position: absolute; z-index: 2; }
.player-top { inset: 18px 20px auto; display: flex; align-items: center; gap: 12px; }
.player-top img { width: 90px; margin-left: auto; }
.player-center { inset: 50% auto auto 50%; width: min(calc(100% - 40px), 460px); transform: translate(-50%, -50%); text-align: center; }
.player-center .play-button { width: 70px; height: 70px; display: grid; place-items: center; margin: auto; border: 0; border-radius: 50%; background: #fff; color: #111; }
.player-center h2 { margin: 18px 0 6px; font-size: 20px; line-height: 1.15; text-wrap: balance; }
.player-center p { margin: 0; color: #ded7e2; font-size: 14px; line-height: 1.45; text-wrap: pretty; }
.player-bottom { inset: auto 22px 20px; }
.timeline { position: relative; height: 5px; margin-bottom: 15px; background: rgba(255, 255, 255, .28); border-radius: 999px; }
.timeline__played { display: block; width: 34%; height: 100%; background: var(--brand-hover); border-radius: inherit; }
.timeline__ad { position: absolute; top: -2px; width: 9px; height: 9px; border-radius: 50%; background: var(--yellow); }
.player-controls { display: flex; align-items: center; gap: 14px; font-size: 12px; }
.player-controls__spacer { margin-left: auto; }
.player-state-panel { width: 100%; padding: 26px; background: rgba(13, 9, 15, .94); border-radius: var(--radius-md); }
.player-state-panel h2 { margin: 0 0 8px; }
.player-state-panel .button { margin-top: 18px; }

.guide-wrap { overflow-x: auto; border-radius: var(--radius-md); background: var(--surface); }
.guide-grid { min-width: 920px; display: grid; grid-template-columns: 170px repeat(4, minmax(180px, 1fr)); }
.guide-cell { min-height: 72px; padding: 13px; display: flex; flex-direction: column; justify-content: center; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.guide-cell--time { min-height: 45px; color: var(--muted); font-size: 12px; }
.guide-cell--channel { flex-direction: row; align-items: center; gap: 10px; font-size: 13px; }
.guide-cell--channel img { width: 44px; height: 44px; object-fit: cover; border-radius: 50%; }
.guide-cell strong { font-size: 13px; }
.guide-cell span { margin-top: 5px; color: var(--muted); font-size: 11px; }
.guide-cell--now { background: #33213a; box-shadow: inset 3px 0 var(--brand-hover); }
.guide-cell--offline { background: #111; color: #8c8690; }

.form-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(340px, 480px); min-height: calc(100vh - var(--header) - 54px); }
.form-aside { min-height: 520px; display: flex; align-items: flex-end; padding: 48px; background: linear-gradient(135deg, #291238, #08070b 72%); }
.form-aside h1 { max-width: 11ch; margin: 0; font-size: 46px; line-height: 1.03; letter-spacing: -.035em; }
.form-panel { display: flex; flex-direction: column; justify-content: center; padding: 48px; background: var(--surface); }
.form-panel h2 { margin: 0 0 8px; font-size: 28px; letter-spacing: -.025em; }
.form-panel > p { margin: 0 0 24px; color: var(--muted); line-height: 1.5; }
.field { display: grid; gap: 7px; margin-bottom: 16px; }
.field label { font-size: 14px; }
.field input, .field select, .field textarea { width: 100%; min-height: 48px; padding: 11px 13px; background: #0e0b10; border: 1px solid #55495d; border-radius: var(--radius-sm); }
.field textarea { min-height: 110px; resize: vertical; }
.field small { color: var(--muted); font-size: 13px; line-height: 1.45; }
.field--error input { border-color: var(--error); }
.field--error small { color: #ffadb4; }
.form-actions { display: grid; gap: 10px; margin-top: 8px; }
.form-link { min-height: 44px; display: inline-flex; align-items: center; color: #f1b7e5; font-size: 13px; text-decoration: underline; text-underline-offset: 3px; }
.divider { display: flex; align-items: center; gap: 12px; margin: 18px 0; color: var(--muted); font-size: 12px; }
.divider::before, .divider::after { content: ""; height: 1px; flex: 1; background: var(--line); }

.profile-grid { display: flex; flex-wrap: wrap; gap: 28px; }
.profile-tile { width: 150px; text-align: center; }
.profile-avatar { width: 150px; height: 150px; display: grid; place-items: center; overflow: hidden; background: var(--surface-2); border-radius: var(--radius-md); color: #fff; font-size: 42px; font-weight: 700; }
.profile-avatar--kids { background: var(--yellow); color: #161018; }
.profile-tile h2 { margin: 11px 0 4px; font-size: 15px; }
.profile-tile p { margin: 0; color: var(--muted); font-size: 12px; }

.settings-layout { display: grid; grid-template-columns: 230px minmax(0, 760px); gap: 38px; }
.settings-nav { display: grid; align-content: start; gap: 4px; }
.settings-nav a { padding: 12px; border-radius: var(--radius-sm); color: var(--muted-strong); font-size: 13px; }
.settings-nav a[aria-current="page"], .settings-nav a:hover { background: var(--surface); color: #fff; }
.settings-content { display: grid; gap: 12px; }
.setting-row { display: flex; align-items: center; gap: 20px; min-height: 72px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.setting-row__copy { min-width: 0; }
.setting-row h3 { margin: 0 0 5px; font-size: 14px; }
.setting-row p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.45; }
.setting-row .button, .toggle { margin-left: auto; }
.toggle { position: relative; width: 46px; height: 44px; flex: 0 0 auto; padding: 0; border: 0; background: transparent; }
.toggle::before { content: ""; position: absolute; top: 9px; left: 0; width: 46px; height: 26px; border-radius: 999px; background: #4a414f; }
.toggle::after { content: ""; position: absolute; top: 13px; left: 4px; width: 18px; height: 18px; border-radius: 50%; background: #fff; transition: transform 180ms cubic-bezier(.22, 1, .36, 1); }
.toggle[aria-pressed="true"]::before { background: var(--brand); }
.toggle[aria-pressed="true"]::after { transform: translateX(20px); }

.plan-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.plan { padding: 26px; background: var(--surface); border-radius: var(--radius-md); }
.plan--featured { background: #2c1933; box-shadow: inset 0 0 0 2px var(--brand-hover); }
.plan h2 { margin: 0 0 6px; font-size: 20px; }
.plan__price { margin: 18px 0; font-size: 30px; font-weight: 700; }
.plan__price span { color: var(--muted); font-size: 12px; font-weight: 500; }
.plan ul { min-height: 138px; padding-left: 20px; color: var(--muted-strong); font-size: 13px; line-height: 1.8; }
.plan .button { width: 100%; }

.summary-box { padding: 22px; background: var(--surface); border-radius: var(--radius-md); }
.summary-line { display: flex; justify-content: space-between; gap: 20px; padding: 11px 0; border-bottom: 1px solid var(--line); color: var(--muted-strong); font-size: 13px; }
.summary-line:last-child { border: 0; color: #fff; font-weight: 700; }
.payment-options { display: grid; grid-template-columns: repeat(3, 1fr); gap: 9px; }
.payment-option { min-height: 74px; padding: 12px; background: #0e0b10; border: 1px solid #55495d; border-radius: var(--radius-sm); text-align: left; }
.payment-option[aria-pressed="true"] { border-color: var(--brand-hover); box-shadow: inset 0 0 0 1px var(--brand-hover); }

.notice { display: flex; gap: 12px; padding: 14px 16px; background: var(--surface-2); border-radius: var(--radius-sm); color: var(--muted-strong); font-size: 13px; line-height: 1.5; }
.notice--error { background: #3b181e; color: #ffd3d6; }
.notice--success { background: #143529; color: #c5f5df; }
.notice--warning { background: #3d3012; color: #ffe9ac; }
.notice strong { color: inherit; }

.empty-state { max-width: 560px; margin: 74px auto; padding: 36px; text-align: center; background: var(--surface); border-radius: var(--radius-md); }
.empty-state__icon { width: 58px; height: 58px; display: grid; place-items: center; margin: 0 auto 18px; border-radius: 50%; background: var(--surface-3); color: var(--yellow); }
.empty-state h2 { margin: 0 0 9px; font-size: 22px; }
.empty-state p { margin: 0 auto 22px; max-width: 48ch; color: var(--muted); line-height: 1.5; }
.empty-state .button { margin: 4px; }

.skeleton { overflow: hidden; background: var(--surface); border-radius: var(--radius-sm); }
.skeleton::after { content: ""; display: block; height: 100%; background: linear-gradient(90deg, transparent, rgba(255,255,255,.06), transparent); animation: skeleton 1.3s infinite; }
.skeleton--title { width: min(60%, 480px); height: 42px; margin-bottom: 14px; }
.skeleton--text { width: min(82%, 660px); height: 16px; margin-bottom: 9px; }
.skeleton--card { height: 250px; }
.skeleton-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 14px; margin-top: 30px; }
@keyframes skeleton { from { transform: translateX(-100%); } to { transform: translateX(100%); } }

.legal-copy { max-width: 760px; }
.legal-copy h2 { margin: 34px 0 9px; font-size: 20px; }
.legal-copy p, .legal-copy li { color: var(--muted-strong); line-height: 1.65; }
.faq-list { display: grid; gap: 8px; max-width: 820px; }
.faq-list details { padding: 16px 18px; background: var(--surface); border-radius: var(--radius-sm); }
.faq-list summary { min-height: 44px; display: flex; align-items: center; cursor: pointer; font-weight: 700; }
.faq-list p { color: var(--muted); line-height: 1.55; }

.page-map {
  width: min(94vw, 940px);
  max-height: 88vh;
  padding: 28px;
  background: #110e14;
  color: #fff;
  border: 0;
  border-radius: var(--radius-lg);
}
.page-map::backdrop { background: rgba(0, 0, 0, .72); backdrop-filter: blur(6px); }
.page-map__top { position: sticky; top: -28px; z-index: 2; display: flex; align-items: flex-start; gap: 20px; margin: -28px -28px 22px; padding: 28px; background: #110e14; border-bottom: 1px solid var(--line); }
.page-map__top h2 { margin: 5px 0 0; font-size: 28px; }
.page-map__top .icon-button { margin-left: auto; }
.page-map__group { margin-top: 24px; }
.page-map__group h3 { margin: 0 0 10px; color: var(--yellow); font-size: 13px; }
.page-map__links { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 7px; }
.page-map__links a { padding: 11px 12px; background: var(--surface); border-radius: var(--radius-sm); color: var(--muted-strong); font-size: 13px; }
.page-map__links a:hover, .page-map__links a[aria-current="page"] { background: #fff; color: #171018; }

.mobile-nav { display: none; }

@media (max-width: 900px) {
  .desktop-nav { display: none; }
  .plan-grid { grid-template-columns: 1fr; }
  .plan ul { min-height: 0; }
  .settings-layout { grid-template-columns: 1fr; gap: 24px; }
  .settings-nav { display: flex; overflow-x: auto; }
  .settings-nav a { flex: 0 0 auto; }
}

@media (max-width: 760px) {
  :root { --shell: calc(100% - (var(--mobile-gutter) * 2)); --header: 64px; }
  body { padding-bottom: calc(var(--mobile-nav-height) + env(safe-area-inset-bottom, 0px)); font-size: 15px; }
  .topbar { position: sticky; backdrop-filter: none; }
  .topbar__inner { justify-content: space-between; gap: 0; }
  .brand { width: 102px; height: 28px; }
  .topbar__sign-in, .topbar__watch { display: none; }
  .topbar__actions { margin-left: 0; }
  .review-badge { display: none; }
  #app { padding-bottom: 30px; }
  .page-shell, .page-shell--wide { width: var(--shell); padding-top: 32px; }
  .page-heading { margin-bottom: 28px; padding-right: 0; }
  .page-heading h1 { margin-top: 8px; font-size: 28px; line-height: 1.08; }
  .page-heading p { font-size: 14px; line-height: 1.55; }
  .context-label { font-size: 13px; }
  .state-toolbar { width: 100%; min-height: 58px; padding: 7px var(--mobile-gutter); gap: 8px; }
  .state-toolbar__label { font-size: 13px; }
  .state-chip { min-height: 42px; display: inline-flex; align-items: center; padding: 0 14px; font-size: 14px; }
  .hero { min-height: 545px; }
  .hero__art { inset: 44px -12% auto; width: 124%; height: auto; object-fit: contain; opacity: .72; }
  .hero::before { background: linear-gradient(0deg, var(--canvas) 0%, rgba(9, 7, 12, .84) 46%, rgba(9, 7, 12, .08) 78%); }
  .hero__content { padding: 245px 0 48px; }
  .hero h1 { font-size: 36px; letter-spacing: -.03em; }
  .hero p { display: -webkit-box; overflow: hidden; font-size: 15px; line-height: 1.5; -webkit-line-clamp: 3; -webkit-box-orient: vertical; }
  .hero__meta { display: none; }
  .section-head { min-height: 44px; margin-bottom: 12px; }
  .section-head h2 { font-size: 19px; }
  .section-head a { font-size: 14px; }
  .poster-card { flex-basis: 128px; }
  .landscape-card, .channel-card { flex-basis: 218px; }
  .catalog-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px 10px; }
  .poster-card h3, .landscape-card h3, .channel-card h3, .catalog-grid .poster-card h3 { margin-top: 9px; font-size: 13px; line-height: 1.35; }
  .poster-card p, .landscape-card p, .channel-card p { font-size: 13px; line-height: 1.35; }
  .badge { font-size: 11px; }
  .channel-grid { grid-template-columns: 1fr 1fr; gap: 16px 10px; }
  .filter-chip { min-height: 44px; font-size: 14px; }
  .detail-hero { grid-template-columns: 104px minmax(0, 1fr); gap: 16px; padding: 32px 0; align-items: start; }
  .detail-poster { grid-column: 1; grid-row: 1 / span 3; }
  .detail-copy { display: contents; }
  .detail-copy > .context-label, .detail-copy > h1, .detail-copy > .detail-meta { grid-column: 2; }
  .detail-copy > .context-label { align-self: end; }
  .detail-copy h1 { align-self: start; margin: 4px 0 6px; font-size: 27px; line-height: 1.05; }
  .detail-meta { align-self: start; gap: 8px 12px; font-size: 13px; line-height: 1.4; }
  .detail-copy > p, .detail-copy > .detail-actions { grid-column: 1 / -1; }
  .detail-copy > p { margin: 6px 0 0; font-size: 14px; line-height: 1.55; }
  .detail-actions { margin-top: 10px; }
  .detail-actions .button { flex: 1; min-width: 130px; }
  .episode { grid-template-columns: 100px minmax(0, 1fr); }
  .episode img { width: 100px; }
  .episode h3 { font-size: 15px; }
  .episode p { font-size: 14px; }
  .episode > .button { grid-column: 1 / -1; width: 100%; }
  .guide-cell span { font-size: 12px; }
  body[data-page-kind="player"] { padding-bottom: 0; }
  body[data-page-kind="player"] .topbar, body[data-page-kind="player"] .mobile-nav, body[data-page-kind="player"] .review-badge { display: none; }
  body[data-page-kind="player"] #app { min-height: 100dvh; padding: 0; background: #030203; }
  body[data-page-kind="player"] .state-toolbar { height: 58px; border-bottom-color: rgba(255,255,255,.12); background: #0d0a0f; }
  body[data-page-kind="player"] .state-chip { min-height: 40px; }
  .player-shell { min-height: calc(100dvh - 58px); padding: 0; align-items: stretch; }
  .player-stage { width: 100%; min-height: calc(100dvh - 58px); aspect-ratio: auto; border-radius: 0; }
  .player-stage__art { opacity: .56; object-position: center; }
  body[data-page="live-player"] .player-stage { background: #160f21; }
  body[data-page="live-player"] .player-stage__art { object-fit: contain; opacity: .62; }
  .player-stage::after { background: linear-gradient(0deg, rgba(0,0,0,.9), transparent 48%), linear-gradient(90deg, rgba(0,0,0,.28), transparent 45%); }
  .player-top { inset: calc(14px + env(safe-area-inset-top, 0px)) 14px auto; min-width: 0; }
  .player-top strong { overflow: hidden; font-size: 14px; text-overflow: ellipsis; white-space: nowrap; }
  .player-top img { width: 72px; }
  .player-center { width: min(calc(100% - 40px), 380px); }
  .player-center .play-button { width: 64px; height: 64px; }
  .player-center h2 { margin-top: 16px; font-size: 21px; }
  .player-center p { font-size: 14px; }
  .player-state-panel { padding: 24px 20px; }
  .player-state-panel h2 { font-size: 21px; }
  .player-bottom { inset: auto 16px calc(18px + env(safe-area-inset-bottom, 0px)); }
  .timeline { height: 6px; margin-bottom: 17px; }
  .player-controls { gap: 12px; font-size: 13px; line-height: 1.2; }
  .player-controls .hide-mobile { display: none; }
  .form-layout { grid-template-columns: 1fr; min-height: auto; }
  .form-aside { display: none; }
  .form-panel { min-height: calc(100dvh - var(--header) - 58px - var(--mobile-nav-height)); justify-content: flex-start; padding: 48px var(--mobile-gutter) calc(36px + env(safe-area-inset-bottom, 0px)); }
  .form-panel h2 { font-size: 27px; line-height: 1.1; }
  .form-panel > p { font-size: 14px; line-height: 1.55; }
  .field { margin-bottom: 18px; }
  .field input, .field select, .field textarea { min-height: 52px; font-size: 16px; }
  .notice { font-size: 14px; }
  .profile-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px 16px; }
  .profile-tile { width: auto; }
  .profile-avatar { width: 100%; height: auto; aspect-ratio: 1; }
  .profile-tile h2 { font-size: 15px; }
  .profile-tile p { font-size: 13px; }
  .settings-nav a { min-height: 44px; display: inline-flex; align-items: center; font-size: 14px; }
  .setting-row { min-height: 82px; padding: 18px 0; }
  .setting-row h3 { font-size: 15px; }
  .setting-row p { font-size: 14px; }
  .summary-line { font-size: 14px; }
  .empty-state { margin: 44px auto; padding: 30px 22px; }
  .empty-state h2 { font-size: 22px; line-height: 1.15; }
  .empty-state p { font-size: 14px; line-height: 1.55; }
  .button { min-height: 46px; font-size: 14px; }
  .payment-options { grid-template-columns: 1fr; }
  .page-map { width: 100vw; max-width: none; height: 100dvh; max-height: none; margin: 0; border-radius: 0; }
  .page-map__links { grid-template-columns: 1fr 1fr; }
  .mobile-nav {
    position: fixed;
    z-index: var(--z-sticky);
    inset: auto 0 0;
    height: calc(var(--mobile-nav-height) + env(safe-area-inset-bottom, 0px));
    padding-bottom: env(safe-area-inset-bottom, 0px);
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    background: #151217;
    border-top: 1px solid rgba(255, 255, 255, .11);
  }
  .mobile-nav a { min-height: 44px; display: grid; place-items: center; align-content: center; gap: 5px; color: #bbb5c0; font-size: 12px; }
  .mobile-nav a svg { width: 22px; height: 22px; }
  .mobile-nav a[aria-current="page"] { color: #fff; }
  .mobile-nav a[aria-current="page"] svg { color: var(--brand-hover); }
}

@media (max-width: 430px) {
  .catalog-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .page-map__links { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}

/* Variant B: persistent discovery rail and editorial application shell. */
:root {
  --sidebar: 208px;
  --control-height: 62px;
  --shell: min(calc(100% - 64px), 1420px);
  --surface: #14121b;
  --surface-2: #1d1a25;
  --surface-3: #272230;
  --line: #312b39;
  --brand: #c8008f;
  --brand-hover: #e000a0;
  --focus: #82d9ff;
}

body { line-height: 1.5; }

.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: var(--z-sticky);
  width: var(--sidebar);
  padding: 30px 20px 26px;
  display: flex;
  flex-direction: column;
  background: #0e0c13;
  border-right: 1px solid var(--line);
}

.sidebar .brand-link { width: 136px; margin: 0 12px 34px; }
.sidebar .brand { width: 112px; height: auto; }
.primary-nav { display: grid; gap: 6px; }
.primary-nav a {
  min-height: 48px;
  padding: 0 12px;
  display: flex;
  align-items: center;
  gap: 13px;
  border-radius: 10px;
  color: var(--muted);
  font-size: .875rem;
  font-weight: 700;
  transition: color 180ms cubic-bezier(.22, 1, .36, 1), background-color 180ms cubic-bezier(.22, 1, .36, 1), transform 180ms cubic-bezier(.22, 1, .36, 1);
}
.primary-nav a > span { width: 22px; color: #9b94a4; font-size: 1.15rem; text-align: center; }
.primary-nav a:hover { color: var(--ink); background: var(--surface); transform: translateX(2px); }
.primary-nav a[aria-current="page"] { color: var(--ink); background: var(--surface-2); }
.primary-nav a[aria-current="page"] > span { color: #ff4fc7; }
.sidebar__footer { margin-top: auto; padding: 18px 12px 0; display: grid; gap: 4px; border-top: 1px solid var(--line); }
.sidebar__footer a, .page-map-trigger { min-height: 44px; display: flex; align-items: center; color: var(--muted); font-size: .8125rem; }
.page-map-trigger { padding: 0; background: none; border: 0; cursor: pointer; text-align: left; }
.sidebar__footer a:hover, .page-map-trigger:hover { color: var(--ink); }
.sidebar__footer p { margin: 12px 0 0; color: #d7d1dc; font-size: .6875rem; line-height: 1.55; }
.sidebar__footer p span { color: #958e9e; }

.shell { min-height: 100vh; margin-left: var(--sidebar); }
.topbar {
  height: 104px;
  padding: 0 34px 0 36px;
  justify-content: space-between;
  gap: 28px;
  background: #0a0910;
  backdrop-filter: none;
}
.topbar__welcome p { margin: 0 0 2px; color: #9992a1; font-size: .75rem; }
.topbar__welcome strong { font-size: 1.375rem; line-height: 1.2; letter-spacing: -.02em; }
.topbar__actions { margin-left: 0; }
.search-trigger {
  width: 300px;
  min-height: 44px;
  padding: 0 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  border-radius: 10px;
  background: var(--surface);
  color: var(--muted);
}
.search-trigger:hover { background: var(--surface-2); color: var(--ink); }
.search-trigger span { flex: 1; font-size: .75rem; }
.search-trigger kbd { padding: 2px 7px; border-radius: 5px; background: #2a2632; font: .6875rem/1.125rem Gotham, sans-serif; }
.mobile-brand, .mobile-menu { display: none; }

#app { min-height: calc(100vh - 104px); padding-bottom: 64px; }
.state-toolbar {
  position: sticky;
  z-index: calc(var(--z-sticky) + 2);
  top: 0;
  width: 100%;
  min-height: var(--control-height);
  margin: 0;
  padding: 8px 32px;
  gap: 8px;
  background: #eeeaf0;
  color: #17131a;
  border-bottom: 1px solid #c9c1cd;
  box-shadow: 0 3px 7px rgba(0, 0, 0, .24);
}
.state-toolbar__label { min-width: 138px; margin-right: 8px; display: grid; gap: 1px; color: #17131a; font-size: .75rem; line-height: 1.2; }
.state-toolbar__label strong { font-size: .8125rem; }
.state-toolbar__label small { color: #655d69; font-size: .6875rem; }
.state-chip { min-height: 40px; padding: 0 14px; display: inline-flex; align-items: center; background: #dcd5df; color: #312b35; font-size: .75rem; font-weight: 700; }
.state-chip:hover { background: #cac1ce; color: #17131a; }
.state-chip[aria-current="true"] { background: #241c27; color: #fff; }

.page-shell { width: var(--shell); padding-top: 44px; }
.page-shell--wide { width: min(calc(100% - 40px), 1560px); }
.page-heading { margin-bottom: 36px; }
.page-heading h1 { font-size: 2.375rem; }
.page-heading p { color: #c0bac8; }
.context-label { color: #ffcf46; }
.content-stack { gap: 48px; }

.editorial-home {
  width: var(--shell);
  margin: 26px auto 0;
  display: grid;
  grid-template-columns: minmax(0, 1.68fr) minmax(330px, .82fr);
  gap: 18px;
}
.editorial-home .hero { min-height: 394px; border-radius: 14px; }
.editorial-home .hero__content { width: 100%; padding: 42px 38px 34px; }
.editorial-home .hero__copy { max-width: 31rem; }
.editorial-home .hero h1 { font-size: 3.375rem; line-height: .98; }
.editorial-home .hero p { font-size: .9375rem; }
.editorial-now { min-width: 0; padding: 24px 22px; border-radius: 14px; background: var(--surface); }
.editorial-now .section-head { align-items: flex-start; margin-bottom: 18px; }
.editorial-now .section-head h2 { margin-bottom: 3px; font-size: 1.25rem; }
.editorial-now .section-head p { margin: 0; color: #9992a1; font-size: .75rem; }
.editorial-channel-list { display: grid; gap: 8px; }
.editorial-channel-list .channel-card {
  min-height: 84px;
  padding: 8px;
  display: grid;
  grid-template-columns: 104px minmax(0, 1fr);
  grid-template-rows: auto auto;
  align-content: center;
  column-gap: 12px;
  border-radius: 10px;
}
.editorial-channel-list .channel-card:hover { background: var(--surface-2); }
.editorial-channel-list .channel-card__image { grid-row: 1 / span 2; width: 104px; aspect-ratio: 16 / 9; }
.editorial-channel-list .channel-card h3 { align-self: end; margin: 0 0 2px; font-size: .8125rem; }
.editorial-channel-list .channel-card p { align-self: start; font-size: .75rem; }
.editorial-channel-list .badge { top: 5px; left: 5px; padding: 3px 5px; font-size: .5625rem; }
.editorial-rails { padding-top: 36px; }

.button:active, .primary-nav a:active, .state-chip:active, .poster-card:active, .channel-card:active { transform: translateY(1px); }
.filter-chip:disabled, .payment-option:disabled, .icon-button:disabled { opacity: .48; cursor: not-allowed; }

@media (hover: hover) {
  .poster-card:hover img, .channel-card:hover img { filter: brightness(1.08); }
}

@media (max-width: 1080px) {
  :root { --sidebar: 184px; --shell: min(calc(100% - 40px), 1420px); }
  .sidebar { padding-inline: 14px; }
  .topbar { padding-inline: 24px; }
  .search-trigger { width: 250px; }
  .editorial-home { grid-template-columns: minmax(0, 1.5fr) minmax(300px, .9fr); }
}

@media (max-width: 760px) {
  :root { --shell: calc(100% - 40px); --header: 64px; --control-height: 66px; }
  body { padding-bottom: calc(var(--mobile-nav-height) + env(safe-area-inset-bottom, 0px)); }
  .sidebar { display: none; }
  .shell { margin-left: 0; }
  .topbar {
    position: relative;
    height: var(--header);
    padding: env(safe-area-inset-top, 0px) 20px 0;
    gap: 10px;
    justify-content: flex-start;
  }
  .topbar__welcome, .topbar__actions { display: none; }
  .mobile-menu { display: grid; margin-left: -10px; }
  .mobile-brand { min-height: 44px; display: flex; align-items: center; }
  .mobile-brand img { width: 100px; }
  #app { min-height: calc(100dvh - var(--header)); padding-bottom: 30px; }
  .state-toolbar {
    min-height: var(--control-height);
    padding: 8px 20px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, .3);
  }
  .state-toolbar__label { min-width: 128px; }
  .state-chip { min-height: 44px; font-size: .8125rem; }
  .page-shell, .page-shell--wide { width: var(--shell); padding-top: 36px; }
  .page-heading { margin-bottom: 30px; }
  .page-heading h1 { font-size: 1.75rem; }
  .page-heading p { font-size: .9375rem; line-height: 1.6; }
  .content-stack { gap: 42px; }

  .editorial-home { width: 100%; margin: 0; display: block; }
  .editorial-home .hero { min-height: 530px; border-radius: 0; }
  .editorial-home .hero__art { inset: 18px 0 auto; width: 100%; height: 224px; object-fit: contain; object-position: center top; opacity: .8; }
  .editorial-home .hero::before { background: linear-gradient(0deg, var(--canvas) 8%, rgba(9,7,12,.91) 42%, rgba(9,7,12,.12) 78%); }
  .editorial-home .hero__content { align-self: end; padding: 258px 20px 42px; }
  .editorial-home .hero h1 { margin-top: 14px; font-size: 2.25rem; line-height: 1.02; }
  .editorial-home .hero p { font-size: .9375rem; line-height: 1.55; }
  .editorial-home .hero__actions { display: grid; grid-template-columns: 1fr 1fr; }
  .editorial-home .hero__meta { display: none; }
  .editorial-now { padding: 28px 20px 8px; border-radius: 0; background: var(--canvas); }
  .editorial-channel-list { display: flex; gap: 12px; overflow-x: auto; padding: 2px 2px 16px; scroll-snap-type: x proximity; scrollbar-width: none; }
  .editorial-channel-list::-webkit-scrollbar { display: none; }
  .editorial-channel-list .channel-card { flex: 0 0 224px; min-height: 0; padding: 0; display: block; scroll-snap-align: start; }
  .editorial-channel-list .channel-card__image { width: 100%; aspect-ratio: 16 / 9; }
  .editorial-channel-list .channel-card h3 { margin-top: 9px; font-size: .875rem; }
  .editorial-channel-list .channel-card p { font-size: .8125rem; }
  .editorial-rails { padding-top: 36px; }

  .catalog-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 12px; }
  .channel-grid { grid-template-columns: 1fr; }
  .poster-card { flex-basis: 136px; }
  .landscape-card, .channel-card { flex-basis: 224px; }
  .section-head h2 { font-size: 1.1875rem; }
  .section-head a { font-size: .8125rem; }
  .section-head > a { min-width: 44px; padding-inline: 4px; }
  .search-box input { font-size: 1rem; }
  .filter-row { flex-wrap: nowrap; overflow-x: auto; margin-inline: -20px; padding-inline: 20px; scrollbar-width: none; }
  .filter-chip { flex: 0 0 auto; min-height: 44px; }

  .detail-hero { padding-top: 36px; }
  .form-panel { min-height: calc(100dvh - var(--header) - var(--control-height) - var(--mobile-nav-height)); }
  .page-map { padding-bottom: max(28px, env(safe-area-inset-bottom, 0px)); }

  body[data-page-kind="player"] { padding-bottom: 0; }
  body[data-page-kind="player"] .sidebar, body[data-page-kind="player"] .topbar, body[data-page-kind="player"] .mobile-nav { display: none; }
  body[data-page-kind="player"] .shell { margin-left: 0; }
  body[data-page-kind="player"] #app { min-height: 100dvh; }
  body[data-page-kind="player"] .state-toolbar { min-height: var(--control-height); background: #eeeaf0; color: #17131a; border-bottom-color: #c9c1cd; }
  body[data-page-kind="player"] .state-toolbar__label { color: #17131a; }
  body[data-page-kind="player"] .state-toolbar__label small { color: #655d69; }
  body[data-page-kind="player"] .state-chip { min-height: 44px; }
  body[data-page-kind="player"] .player-shell { min-height: calc(100dvh - var(--control-height)); }
  body[data-page-kind="player"] .player-stage { min-height: calc(100dvh - var(--control-height)); }
}

@media (pointer: coarse) {
  .primary-nav a, .sidebar__footer a, .page-map-trigger, .button, .icon-button, .state-chip, .filter-chip, .form-link, .settings-nav a, .section-head a { min-height: 44px; }
}
