@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%);
}
.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: 42px;
  min-width: 42px;
  height: 42px;
  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 C — live-first broadcast canvas */
:root {
  --prototype-height: 68px;
  --dock-width: 96px;
  --canvas: #070711;
  --surface: #111322;
  --surface-2: #191c30;
  --surface-3: #24283e;
  --line: #32364d;
  --muted: #b7b9c9;
  --muted-strong: #dcdeea;
  --brand: #c9009d;
  --brand-hover: #e51bb8;
  --focus: #ffce45;
  --shell: min(100% - 64px, 1360px);
}

body { min-height: 100dvh; padding-left: var(--dock-width); font-kerning: normal; }

.prototype-bar {
  position: sticky;
  z-index: var(--z-review);
  top: 0;
  min-height: var(--prototype-height);
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 8px 20px;
  background: #f3f4f7;
  color: #171925;
  border-bottom: 1px solid #cfd2dc;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  box-shadow: 0 3px 0 rgba(0, 0, 0, .18);
  width: calc(100% + var(--dock-width));
  margin-left: calc(-1 * var(--dock-width));
}
.prototype-bar__identity { min-width: 224px; display: flex; align-items: center; gap: 12px; }
.prototype-bar__identity > div { display: grid; gap: 2px; }
.prototype-bar__identity strong { font-size: .875rem; line-height: 1.2; }
.prototype-bar__identity span:last-child { color: #626677; font-size: .75rem; line-height: 1.3; }
.prototype-bar__mark { width: 40px; height: 40px; display: grid; place-items: center; flex: 0 0 auto; background: #171925; color: #fff; border-radius: 8px; font-size: .875rem; font-weight: 700; }
.prototype-states { min-width: 0; display: flex; align-items: center; gap: 6px; overflow-x: auto; scrollbar-width: none; }
.prototype-states::-webkit-scrollbar { display: none; }
.prototype-state { min-height: 44px; display: inline-flex; align-items: center; flex: 0 0 auto; padding: 0 14px; border: 1px solid #c8cbd6; border-radius: 8px; background: #fff; color: #3b3e4d; font-size: .8125rem; font-weight: 600; }
.prototype-state:hover { background: #e8eaf0; }
.prototype-state[aria-current="page"] { border-color: #171925; background: #171925; color: #fff; }
.prototype-state:active { transform: translateY(1px); }
.prototype-state:focus-visible { outline-color: #8a5700; }
.state-toolbar { display: none; }
#app:focus-visible { outline: none; }

.topbar {
  position: fixed;
  inset: var(--prototype-height) auto 0 0;
  width: var(--dock-width);
  height: auto;
  align-items: stretch;
  background: #0c0d18;
  border: 0;
  border-right: 1px solid var(--line);
  backdrop-filter: none;
}
.topbar__inner { width: 100%; height: 100%; padding: 16px 8px; flex-direction: column; gap: 12px; }
.topbar__inner > .icon-button { order: 2; }
.brand-link { order: 1; justify-content: center; width: 100%; }
.brand { width: 72px; height: 28px; }
.desktop-nav { order: 3; width: 100%; flex-direction: column; gap: 4px; }
.desktop-nav a { width: 100%; min-height: 56px; display: grid; place-items: center; gap: 2px; padding: 6px 4px; border-radius: 8px; font-size: .6875rem; line-height: 1.1; }
.desktop-nav a span { color: #85889d; font-size: .625rem; font-variant-numeric: tabular-nums; }
.desktop-nav a[aria-current="page"] { background: var(--brand); }
.desktop-nav a[aria-current="page"] span { color: #fff; }
.topbar__actions { order: 4; width: 100%; margin: auto 0 0; justify-content: center; }
.topbar__actions .topbar__sign-in, .topbar__actions .topbar__watch { display: none; }

#app { min-height: calc(100dvh - var(--prototype-height)); padding-bottom: 88px; }
.page-shell { padding-top: 52px; }
.page-heading { position: relative; max-width: 680px; margin-bottom: 38px; padding-left: 20px; }
.page-heading::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 3px; background: var(--brand-hover); }
.page-heading h1 { font-size: 2.5rem; letter-spacing: -.035em; }
.page-heading p { font-size: 1rem; }
.content-stack { gap: 52px; }
.section-head { margin-bottom: 16px; }
.section-head h2 { font-size: 1.375rem; }
.section-head a { min-height: 44px; display: inline-flex; align-items: center; margin-left: auto; color: #f0b8e4; font-size: .875rem; }

.broadcast-canvas { min-height: 620px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(320px, 370px); background: #0a0c18; }
.broadcast-feature { position: relative; min-height: 620px; overflow: hidden; }
.broadcast-feature__art { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; opacity: .86; }
.broadcast-feature::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(7, 7, 17, .98) 0%, rgba(7, 7, 17, .34) 58%, rgba(7, 7, 17, .08)), linear-gradient(90deg, rgba(7, 7, 17, .54), transparent 60%); }
.broadcast-feature__copy { position: absolute; z-index: 1; inset: auto 48px 48px; max-width: 620px; }
.broadcast-feature h1 { margin: 16px 0 14px; font-size: 4rem; line-height: .92; letter-spacing: -.04em; }
.broadcast-feature p { max-width: 56ch; margin: 0; color: #e9eaf2; font-size: 1rem; line-height: 1.6; }
.broadcast-lineup { padding: 28px 20px; background: #111426; border-left: 1px solid var(--line); }
.broadcast-lineup__head { min-height: 56px; display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 12px; }
.broadcast-lineup__head > div { display: grid; gap: 3px; }
.broadcast-lineup__head span { color: #aeb1c4; font-size: .75rem; }
.broadcast-lineup__head strong { font-size: 1.25rem; }
.broadcast-lineup__head a { min-height: 44px; display: inline-flex; align-items: center; color: #f1b8e5; font-size: .875rem; }
.broadcast-item { min-height: 92px; display: grid; grid-template-columns: 46px 56px minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 12px 0; border-top: 1px solid var(--line); }
.broadcast-item:hover strong { color: #fff; }
.broadcast-item__time { color: var(--yellow); font-size: .75rem; font-variant-numeric: tabular-nums; }
.broadcast-item img { width: 56px; height: 56px; object-fit: cover; border-radius: 8px; }
.broadcast-item > span:nth-of-type(2) { min-width: 0; display: grid; gap: 5px; }
.broadcast-item strong, .broadcast-item small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.broadcast-item strong { color: #e5e7f0; font-size: .8125rem; }
.broadcast-item small { color: var(--muted); font-size: .75rem; }
.broadcast-item .badge { position: static; }

.live-wall { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(360px, .75fr); gap: 16px; }
.live-wall__lead { position: relative; min-height: 510px; overflow: hidden; background: #111426; border-radius: var(--radius-md); }
.live-wall__lead > img { width: 100%; height: 100%; object-fit: cover; }
.live-wall__lead::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(5, 6, 13, .94), transparent 62%); }
.live-wall__lead > span { position: absolute; z-index: 1; inset: auto 28px 28px; display: grid; gap: 8px; }
.live-wall__lead strong { font-size: 1.75rem; }
.live-wall__lead small { color: #d7d9e5; font-size: .875rem; }
.live-wall__channels { display: grid; grid-template-columns: 1fr 1fr; align-content: start; gap: 16px 12px; }
.live-wall__channels .channel-card { min-width: 0; }
.live-wall__channels .channel-card__image { aspect-ratio: 16 / 9; }

.poster-card__image, .channel-card__image, .plan, .summary-box, .empty-state, .faq-list details { background: var(--surface); }
.poster-card__image { border-radius: 6px; }
.channel-card__image { border-radius: 8px; }
.catalog-grid { column-gap: 16px; row-gap: 28px; }
.filter-chip { min-height: 44px; }

body[data-page-kind="player"] { padding-left: 0; }
body[data-page-kind="player"] .prototype-bar { position: sticky; }
body[data-page-kind="player"] .prototype-bar { width: 100%; margin-left: 0; }
body[data-page-kind="player"] #app { min-height: calc(100dvh - var(--prototype-height)); }
body[data-page-kind="player"] .player-shell { min-height: calc(100dvh - var(--prototype-height)); padding: 0; }
body[data-page-kind="player"] .player-stage { width: 100%; min-height: calc(100dvh - var(--prototype-height)); aspect-ratio: auto; border-radius: 0; }

@media (min-width: 761px) {
  .desktop-nav { display: flex; }
  .mobile-nav { display: none; }
}

@media (max-width: 1040px) and (min-width: 761px) {
  :root { --dock-width: 84px; --shell: calc(100% - 40px); }
  .broadcast-canvas { grid-template-columns: minmax(0, 1fr) 320px; }
  .broadcast-feature__copy { inset: auto 32px 40px; }
  .broadcast-item { grid-template-columns: 40px 48px minmax(0, 1fr); }
  .broadcast-item img { width: 48px; height: 48px; }
  .broadcast-item .badge { display: none; }
}

@media (max-width: 760px) {
  :root { --prototype-height: 112px; --shell: calc(100% - 40px); }
  body { padding-left: 0; padding-bottom: calc(var(--mobile-nav-height) + env(safe-area-inset-bottom, 0px)); font-size: 1rem; }
  .prototype-bar { min-height: var(--prototype-height); display: grid; grid-template-rows: 44px 48px; gap: 4px; padding: max(8px, env(safe-area-inset-top, 0px)) 16px 8px; }
  .prototype-bar { width: 100%; margin-left: 0; }
  .prototype-bar__identity { min-width: 0; }
  .prototype-bar__mark { width: 36px; height: 36px; }
  .prototype-bar__identity strong { font-size: .8125rem; }
  .prototype-state { min-height: 44px; padding-inline: 13px; font-size: .8125rem; }
  .topbar { position: sticky; inset: auto; top: var(--prototype-height); width: 100%; height: 64px; align-items: center; border-right: 0; border-bottom: 1px solid var(--line); }
  .topbar__inner { width: 100%; height: 64px; padding: 0 20px; flex-direction: row; justify-content: space-between; }
  .topbar__inner > .icon-button { order: 1; }
  .brand-link { order: 2; width: auto; }
  .brand { width: 104px; }
  .desktop-nav { display: none; }
  .topbar__actions { order: 3; width: auto; margin: 0; }
  #app { min-height: calc(100dvh - var(--prototype-height) - 64px); padding-bottom: 32px; }
  .page-shell, .page-shell--wide { width: var(--shell); padding-top: 36px; }
  .page-heading { margin-bottom: 32px; padding-left: 16px; }
  .page-heading h1 { font-size: 2rem; }
  .page-heading p { font-size: 1rem; line-height: 1.6; }
  .content-stack { gap: 44px; }
  .broadcast-canvas { min-height: 0; display: flex; flex-direction: column; }
  .broadcast-feature { min-height: 500px; }
  .broadcast-feature__art { object-position: 56% center; }
  .broadcast-feature__copy { inset: auto 20px 28px; }
  .broadcast-feature h1 { margin: 14px 0 12px; font-size: 2.5rem; line-height: .96; }
  .broadcast-feature p { font-size: 1rem; line-height: 1.55; }
  .broadcast-lineup { padding: 20px; border-top: 1px solid var(--line); border-left: 0; }
  .broadcast-item { min-height: 88px; grid-template-columns: 42px 52px minmax(0, 1fr); }
  .broadcast-item img { width: 52px; height: 52px; }
  .broadcast-item .badge { display: none; }
  .section-head h2 { max-width: 70%; font-size: 1.25rem; }
  .live-wall { grid-template-columns: 1fr; }
  .live-wall__lead { min-height: 330px; }
  .live-wall__lead > span { inset: auto 20px 20px; }
  .live-wall__lead strong { font-size: 1.5rem; }
  .live-wall__channels { grid-template-columns: 1fr 1fr; }
  .catalog-grid { gap: 24px 12px; }
  body[data-page-kind="player"] { padding-bottom: 0; }
  body[data-page-kind="player"] .topbar, body[data-page-kind="player"] .mobile-nav { display: none; }
  body[data-page-kind="player"] #app, body[data-page-kind="player"] .player-shell, body[data-page-kind="player"] .player-stage { min-height: calc(100dvh - var(--prototype-height)); }
  .player-top { inset: calc(14px + env(safe-area-inset-top, 0px)) 16px auto; }
  .player-bottom { inset: auto 16px calc(18px + env(safe-area-inset-bottom, 0px)); }
  .mobile-nav { background: #0c0d18; border-top-color: var(--line); }
}

@media (max-width: 390px) {
  .prototype-bar { padding-inline: 12px; }
  .prototype-bar__identity span:last-child { max-width: 250px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .broadcast-feature { min-height: 470px; }
  .live-wall__channels { gap: 14px 10px; }
}
