:root {
  --ink: #080b14;
  --panel: #101521;
  --panel-high: #171d2a;
  --coral: #ff5c72;
  --coral-soft: #ff8797;
  --cyan: #6ce5d5;
  --lavender: #afa8ff;
  --paper: #f4f1fa;
  --muted: #9b9caf;
  --line: rgba(255, 255, 255, 0.1);
  --display: "Arial Narrow", "Helvetica Neue", Arial, sans-serif;
  --body: "Avenir Next", "Helvetica Neue", Arial, sans-serif;
  --utility: Menlo, Monaco, Consolas, monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--body);
  -webkit-font-smoothing: antialiased;
}
body.is-locked { overflow: hidden; }
button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { color: inherit; }
a { color: inherit; text-decoration: none; }
svg { fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.8; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; }

.app-shell { min-height: 100vh; }
.side-rail {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 30;
  width: 84px;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 24px 0;
  border-right: 1px solid var(--line);
  background: rgba(8, 11, 20, 0.88);
  backdrop-filter: blur(18px);
}
.brand-mark { display: block; width: 48px; height: 48px; border-radius: 14px; transition: transform .2s ease; }
.brand-mark:hover, .brand-mark:focus-visible { outline: none; transform: translateY(-2px); }
.brand-mark img { display: block; width: 48px; height: 48px; }
.rail-nav { display: flex; flex-direction: column; gap: 12px; margin-top: 11vh; }
.rail-link {
  width: 56px;
  min-height: 56px;
  padding: 8px 0;
  border: 0;
  border-radius: 18px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  justify-content: center;
  align-items: center;
  color: #9395a3;
  background: transparent;
  cursor: pointer;
  transition: color .2s ease, background .2s ease;
}
.rail-link svg { width: 20px; height: 20px; }
.rail-link span { font-size: 10px; }
.rail-link:hover, .rail-link:focus-visible, .rail-link.is-active { color: var(--paper); background: var(--panel-high); outline: none; }
.rail-link.is-active svg { color: var(--coral); fill: rgba(255, 92, 114, .16); }
main { margin-left: 84px; overflow: hidden; }
.topbar {
  position: relative;
  z-index: 20;
  height: 92px;
  padding: 0 clamp(28px, 4vw, 72px);
  display: flex;
  align-items: center;
  gap: clamp(32px, 5vw, 80px);
}
.wordmark { display: inline-flex; align-items: baseline; gap: 10px; white-space: nowrap; }
.wordmark span { font-size: 21px; font-weight: 900; letter-spacing: -.065em; }
.wordmark small { color: var(--coral-soft); font: 9px/1 var(--utility); letter-spacing: .12em; }
.text-nav { display: flex; align-items: center; gap: 32px; height: 100%; }
.text-nav a { position: relative; color: var(--muted); font-size: 14px; }
.text-nav a:hover, .text-nav a.is-active { color: var(--paper); }
.text-nav a.is-active::after { content: ""; position: absolute; left: 50%; bottom: -13px; width: 5px; height: 5px; border-radius: 50%; background: var(--coral); transform: translateX(-50%); }
.top-actions { display: flex; align-items: center; gap: 12px; margin-left: auto; }
.search-box {
  width: min(250px, 21vw);
  height: 42px;
  padding: 0 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255,255,255,.035);
}
.search-box:focus-within { border-color: rgba(255,92,114,.6); box-shadow: 0 0 0 3px rgba(255,92,114,.1); }
.search-box svg { width: 17px; height: 17px; flex: none; }
.search-box input { min-width: 0; flex: 1; color: var(--paper); border: 0; outline: 0; background: transparent; font-size: 12px; }
.search-box input::placeholder { color: #666978; }
.search-box kbd { padding: 3px 5px; color: #aaabb7; border: 1px solid var(--line); border-radius: 5px; font: 9px var(--utility); }
.icon-button { position: relative; width: 42px; height: 42px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 14px; background: rgba(255,255,255,.035); cursor: pointer; }
.icon-button svg { width: 18px; }
.notification-button i { position: absolute; top: 9px; right: 9px; width: 5px; height: 5px; border: 1px solid var(--ink); border-radius: 50%; background: var(--coral); }

.hero {
  min-height: min(720px, calc(100vh - 92px));
  padding: 24px clamp(28px, 4vw, 72px) 48px;
  display: grid;
  grid-template-columns: minmax(300px, .9fr) minmax(340px, 1.15fr) 180px;
  align-items: center;
  gap: clamp(28px, 4vw, 64px);
  position: relative;
}
.hero::before { content: ""; position: absolute; width: 520px; height: 520px; right: 11%; top: 3%; border-radius: 50%; background: rgba(71, 80, 123, .14); filter: blur(70px); pointer-events: none; }
.hero-copy { position: relative; z-index: 2; padding-bottom: 3vh; }
.eyebrow { display: flex; align-items: center; gap: 9px; margin-bottom: 26px; color: var(--coral-soft); font: 10px var(--utility); letter-spacing: .08em; text-transform: uppercase; }
.eyebrow i { width: 3px; height: 3px; border-radius: 50%; background: currentColor; }
.hero h1 { margin: 0; font-family: var(--display); font-size: clamp(56px, 6.2vw, 102px); line-height: .9; letter-spacing: -.075em; font-weight: 900; }
.hero h1 em { color: transparent; -webkit-text-stroke: 1px rgba(244,241,250,.56); font-style: normal; white-space: nowrap; }
.hero-copy > p { max-width: 440px; margin: 30px 0 20px; color: var(--muted); font-size: 14px; line-height: 1.85; }
.hero-meta { display: flex; align-items: center; gap: 10px; color: #b5b5c2; font-size: 11px; }
.hero-meta span:not(.score)::before { content: ""; display: inline-block; width: 2px; height: 2px; margin: 0 10px 3px 0; border-radius: 50%; background: #5d6070; }
.hero-meta .score { padding: 4px 8px; color: var(--ink); border-radius: 7px; background: var(--cyan); font: 700 11px var(--utility); }
.hero-actions { display: flex; gap: 12px; margin-top: 32px; }
.primary-button, .soft-button {
  min-height: 48px;
  border: 0;
  border-radius: 15px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 0 22px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: transform .2s ease, background .2s ease, color .2s ease;
}
.primary-button { color: #fff; background: var(--coral); box-shadow: 0 12px 36px rgba(255,92,114,.2); }
.primary-button svg, .soft-button svg { width: 17px; height: 17px; }
.primary-button svg { fill: currentColor; stroke: none; }
.soft-button { color: var(--paper); border: 1px solid var(--line); background: rgba(255,255,255,.055); }
.primary-button:hover, .soft-button:hover { transform: translateY(-2px); }
.soft-button.is-favorite { color: var(--coral-soft); border-color: rgba(255,92,114,.4); background: rgba(255,92,114,.09); }
.soft-button.is-favorite svg { fill: currentColor; }

.hero-stage { position: relative; z-index: 2; justify-self: center; width: min(380px, 100%); }
.hero-image-wrap { position: relative; aspect-ratio: 3 / 4.35; overflow: hidden; border-radius: 44% 44% 28px 28px / 18% 18% 28px 28px; background: var(--panel); box-shadow: 0 40px 100px rgba(0,0,0,.52); }
.hero-image-wrap::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 42%, rgba(8,11,20,.16) 62%, rgba(8,11,20,.92) 100%); }
.hero-image-wrap img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.78) contrast(1.04); }
.hero-caption { position: absolute; z-index: 2; left: 26px; right: 26px; bottom: 25px; }
.hero-caption span { display: block; margin-bottom: 7px; color: var(--cyan); font: 9px var(--utility); letter-spacing: .12em; }
.hero-caption b { font-size: clamp(17px, 1.6vw, 23px); line-height: 1.35; }
.hero-play { position: absolute; z-index: 3; right: -24px; top: 47%; width: 66px; height: 66px; display: grid; place-items: center; color: var(--ink); border: 8px solid var(--ink); border-radius: 50%; background: var(--paper); cursor: pointer; box-shadow: 0 14px 30px rgba(0,0,0,.4); }
.hero-play svg { width: 22px; fill: currentColor; stroke: none; margin-left: 3px; }

.premiere-rail { align-self: stretch; position: relative; z-index: 2; padding: 0 0 8px 24px; border-left: 1px solid var(--line); display: flex; flex-direction: column; justify-content: center; min-height: 510px; }
.premiere-rail::before, .premiere-rail::after { content: ""; position: absolute; left: -4px; width: 7px; height: 7px; border-radius: 50%; background: var(--coral); box-shadow: 0 0 0 5px var(--ink); }
.premiere-rail::before { top: 8%; }
.premiere-rail::after { bottom: 8%; background: #3f4351; }
.rail-heading { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 14px; color: var(--muted); font-size: 11px; }
.rail-heading b { color: var(--paper); font: 22px var(--utility); }
.rail-track { display: grid; gap: 10px; }
.premiere-item { width: 100%; padding: 0; border: 0; border-radius: 11px; overflow: hidden; position: relative; aspect-ratio: 2.2 / 1; background: var(--panel); cursor: pointer; text-align: left; }
.premiere-item img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; opacity: .62; transition: transform .3s ease, opacity .3s ease; }
.premiere-item::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(8,11,20,.85), transparent 80%); }
.premiere-item span { position: absolute; z-index: 2; left: 10px; bottom: 8px; font-size: 10px; font-weight: 700; }
.premiere-item:hover img { transform: scale(1.06); opacity: .82; }

.continue-section, .library-section { padding: 50px clamp(28px, 4vw, 72px); }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 28px; }
.section-kicker { display: block; margin-bottom: 8px; color: var(--coral-soft); font: 9px var(--utility); letter-spacing: .12em; text-transform: uppercase; }
.section-heading h2 { margin: 0; font-family: var(--display); font-size: clamp(27px, 3vw, 42px); letter-spacing: -.045em; }
.continue-card { display: grid; grid-template-columns: 130px minmax(160px, 1fr) auto; align-items: center; gap: 24px; max-width: 700px; padding: 14px; border: 1px solid var(--line); border-radius: 20px; background: var(--panel); }
.continue-card img { width: 130px; height: 76px; object-fit: cover; object-position: center 30%; border-radius: 12px; }
.continue-card h3 { margin: 0 0 7px; font-size: 15px; }
.continue-card p { margin: 0; color: var(--muted); font-size: 11px; }
.continue-card .progress { height: 3px; margin-top: 12px; border-radius: 3px; overflow: hidden; background: #303440; }
.continue-card .progress i { display: block; height: 100%; background: var(--coral); }
.continue-card button { width: 42px; height: 42px; display: grid; place-items: center; border: 0; border-radius: 50%; color: var(--ink); background: var(--paper); cursor: pointer; }
.continue-card button svg { width: 17px; fill: currentColor; stroke: none; }

.library-section { padding-top: 70px; background: #0b0f19; border-top: 1px solid rgba(255,255,255,.05); }
.filter-tabs { display: flex; gap: 4px; padding: 4px; border: 1px solid var(--line); border-radius: 14px; overflow-x: auto; }
.filter-tabs button { padding: 8px 14px; color: var(--muted); border: 0; border-radius: 9px; background: transparent; font-size: 11px; white-space: nowrap; cursor: pointer; }
.filter-tabs button.is-active { color: var(--ink); background: var(--paper); font-weight: 700; }
.series-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 34px 16px; }
.series-card { min-width: 0; opacity: 0; transform: translateY(12px); animation: cardIn .4s ease forwards; }
.poster-shell { position: relative; width: 100%; aspect-ratio: 3 / 4.15; }
.poster-button { position: relative; width: 100%; height: 100%; padding: 0; border: 0; border-radius: 18px; overflow: hidden; background: var(--panel-high); cursor: pointer; box-shadow: 0 10px 35px rgba(0,0,0,.16); }
.poster-button img { width: 100%; height: 100%; object-fit: cover; transition: transform .45s cubic-bezier(.2,.8,.2,1), filter .3s ease; }
.poster-button::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(5,8,14,.83)); opacity: .7; }
.series-card:hover .poster-button img { transform: scale(1.045); filter: saturate(1.1); }
.poster-play { position: absolute; z-index: 2; left: 12px; bottom: 12px; width: 36px; height: 36px; display: grid; place-items: center; border-radius: 50%; color: var(--ink); background: rgba(244,241,250,.94); opacity: 0; transform: translateY(5px); transition: opacity .25s ease, transform .25s ease; }
.poster-play svg { width: 14px; fill: currentColor; stroke: none; margin-left: 2px; }
.series-card:hover .poster-play, .poster-button:focus-visible .poster-play { opacity: 1; transform: translateY(0); }
.card-badge { position: absolute; z-index: 2; top: 10px; left: 10px; padding: 5px 7px; border-radius: 7px; color: #fff; background: rgba(8,11,20,.72); backdrop-filter: blur(8px); font: 8px var(--utility); letter-spacing: .05em; }
.card-badge.new { color: var(--ink); background: var(--cyan); font-weight: 700; }
.favorite-button { position: absolute; z-index: 3; top: 8px; right: 8px; width: 32px; height: 32px; display: grid; place-items: center; color: #fff; border: 0; border-radius: 50%; background: rgba(8,11,20,.55); backdrop-filter: blur(8px); cursor: pointer; }
.favorite-button svg { width: 15px; }
.favorite-button.is-favorite { color: var(--coral-soft); }
.favorite-button.is-favorite svg { fill: currentColor; }
.series-info { padding: 11px 3px 0; }
.series-info h3 { overflow: hidden; margin: 0; font-size: 14px; font-weight: 650; white-space: nowrap; text-overflow: ellipsis; }
.series-info p { overflow: hidden; margin: 5px 0 0; color: #a1a2b0; font-size: 10px; white-space: nowrap; text-overflow: ellipsis; }
.coming-poster { position: relative; display: grid; place-items: center; height: 100%; overflow: hidden; background: #161b28; }
.coming-poster::before { content: ""; position: absolute; width: 180%; height: 26%; transform: rotate(-38deg); background: var(--placeholder); opacity: .78; }
.coming-poster::after { content: ""; position: absolute; width: 100px; height: 100px; border: 1px solid rgba(255,255,255,.14); border-radius: 50%; }
.coming-poster strong { position: relative; z-index: 1; color: rgba(255,255,255,.9); font: 900 clamp(38px, 5vw, 76px) var(--display); letter-spacing: -.08em; }
.poster-button.is-coming { cursor: default; }
.poster-button.is-coming::after { background: linear-gradient(180deg, transparent, rgba(5,8,14,.7)); }
.empty-state { padding: 80px 20px; text-align: center; border: 1px dashed var(--line); border-radius: 22px; }
.empty-state span { font-size: 20px; font-weight: 700; }
.empty-state p { color: var(--muted); font-size: 13px; }
.empty-state .soft-button { margin-top: 8px; }

footer { display: flex; align-items: center; gap: 28px; padding: 40px clamp(28px, 4vw, 72px) 50px; color: var(--muted); border-top: 1px solid var(--line); font-size: 11px; }
footer > span { margin-left: auto; font-family: var(--utility); font-size: 9px; }
footer nav { display: flex; gap: 16px; }
footer nav a:hover { color: var(--paper); }
.footer-mark { color: var(--paper); }

.format-section {
  position: relative;
  padding: 100px clamp(28px, 7vw, 120px);
  display: grid;
  grid-template-columns: minmax(260px, .85fr) minmax(340px, 1.15fr);
  gap: clamp(48px, 8vw, 120px);
  border-top: 1px solid var(--line);
  background: #080b14;
  overflow: hidden;
}
.format-copy h2 { max-width: 650px; margin: 14px 0 24px; font: 900 clamp(48px, 6vw, 88px)/.86 var(--display); letter-spacing: -.075em; }
.format-copy p { max-width: 620px; color: var(--muted); font-size: 14px; line-height: 1.85; }
.format-links { display: grid; align-content: end; border-top: 1px solid var(--line); }
.format-links a { min-height: 82px; display: grid; grid-template-columns: 70px 1fr auto; align-items: center; gap: 15px; border-bottom: 1px solid var(--line); }
.format-links a:hover { border-color: rgba(255,92,114,.55); }
.format-links b { color: var(--coral-soft); font: 9px var(--utility); text-transform: uppercase; }
.format-links span { font-size: 13px; }
.format-links small { color: var(--cyan); font-size: 18px; }
.format-path { position: absolute; left: 43%; top: -18%; width: 1px; height: 85%; background: linear-gradient(transparent, rgba(255,92,114,.65), rgba(255,255,255,.08)); transform: rotate(31deg); transform-origin: top; }
.format-path i { position: absolute; left: -4px; width: 9px; height: 9px; border-radius: 50%; background: var(--ink); border: 2px solid var(--coral); }
.format-path i:nth-child(1) { top: 28%; }
.format-path i:nth-child(2) { top: 58%; border-color: var(--cyan); }
.format-path i:nth-child(3) { top: 86%; }

.player-dialog { width: 100%; max-width: none; height: 100%; max-height: none; margin: 0; padding: 0; overflow: hidden; border: 0; color: var(--paper); background: #03050a; }
.player-dialog::backdrop { background: #03050a; }
.player-dialog[open] { display: block; animation: dialogIn .3s ease; }
.player-ambience { position: absolute; z-index: 0; inset: -60px; overflow: hidden; pointer-events: none; }
.player-ambience img { width: 100%; height: 100%; object-fit: cover; opacity: .28; filter: blur(42px) saturate(.65); transform: scale(1.12); transition: opacity .4s ease; }
.player-ambience::after { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 50% 48%, rgba(3,5,10,.18), rgba(3,5,10,.8) 56%, #03050a 83%); }
.watch-topbar { position: absolute; z-index: 11; top: 34px; left: clamp(20px, 3vw, 48px); right: clamp(20px, 3vw, 48px); display: flex; align-items: center; justify-content: space-between; transition: opacity .3s ease, transform .3s ease; }
.watch-brand { display: flex; align-items: baseline; gap: 8px; }
.watch-brand b { font: 900 19px/1 var(--display); letter-spacing: -.06em; }
.watch-brand span { color: var(--coral-soft); font: 7px var(--utility); letter-spacing: .13em; }
.watch-context { position: absolute; left: 50%; display: flex; align-items: center; gap: 10px; color: rgba(244,241,250,.6); font: 8px var(--utility); letter-spacing: .08em; transform: translateX(-50%); }
.watch-context i { width: 3px; height: 3px; border-radius: 50%; background: var(--coral); }
.dialog-close { width: 42px; height: 42px; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.16); border-radius: 50%; background: rgba(8,11,20,.52); backdrop-filter: blur(16px); cursor: pointer; }
.dialog-close svg { width: 17px; }
.immersive-stage { position: relative; z-index: 2; width: 100%; height: 100%; display: grid; place-items: center; overscroll-behavior: contain; touch-action: pan-x; }
.video-column { height: 100%; min-height: 0; padding: 62px 0 22px; display: grid; place-items: center; }
.video-frame { position: relative; height: 100%; max-height: 880px; aspect-ratio: 9 / 16; overflow: hidden; border: 1px solid rgba(255,255,255,.1); border-radius: 22px; background: #000; box-shadow: 0 34px 100px rgba(0,0,0,.72); }
.video-frame::after { content: ""; position: absolute; inset: 46% 0 0; background: linear-gradient(180deg, transparent, rgba(0,0,0,.64)); pointer-events: none; }
.video-frame video { width: 100%; height: 100%; object-fit: contain; }
.video-frame.swipe-out-up { animation: swipeOutUp .2s cubic-bezier(.4,0,1,1) forwards; }
.video-frame.swipe-out-down { animation: swipeOutDown .2s cubic-bezier(.4,0,1,1) forwards; }
.video-frame.swipe-in-up { animation: swipeInUp .32s cubic-bezier(.16,.8,.25,1) both; }
.video-frame.swipe-in-down { animation: swipeInDown .32s cubic-bezier(.16,.8,.25,1) both; }
.video-frame.edge-bump-up { animation: edgeBumpUp .3s ease; }
.video-frame.edge-bump-down { animation: edgeBumpDown .3s ease; }
.video-badge { position: absolute; z-index: 2; top: 14px; left: 14px; padding: 5px 7px; border-radius: 5px; color: rgba(255,255,255,.72); background: rgba(0,0,0,.4); font: 7px var(--utility); letter-spacing: .09em; pointer-events: none; }
.video-story-copy { position: absolute; z-index: 3; left: 20px; right: 20px; bottom: 54px; pointer-events: none; transition: opacity .3s ease, transform .3s ease; }
.video-story-copy span { color: var(--cyan); font: 8px var(--utility); letter-spacing: .11em; }
.video-story-copy h2 { margin: 6px 0 0; font: 800 clamp(18px, 2vw, 25px)/1.1 var(--display); letter-spacing: -.04em; }
.watch-actions { position: absolute; z-index: 5; left: calc(50% + min(27vh, 245px)); bottom: 62px; display: flex; flex-direction: column; gap: 9px; transition: opacity .3s ease, transform .3s ease; }
.watch-action { width: 58px; min-height: 58px; padding: 8px 3px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; color: rgba(244,241,250,.84); border: 1px solid rgba(255,255,255,.13); border-radius: 19px; background: rgba(8,11,20,.48); backdrop-filter: blur(14px); cursor: pointer; }
.watch-action:hover, .watch-action:focus-visible { color: var(--paper); border-color: rgba(255,255,255,.28); background: rgba(20,25,37,.8); outline: none; }
.watch-action svg { width: 19px; height: 19px; }
.watch-action span { font-size: 8px; }
.watch-action.dialog-favorite { width: 58px; height: 58px; }
.watch-action.dialog-favorite.is-favorite { color: var(--coral-soft); border-color: rgba(255,92,114,.45); }
.watch-action.dialog-favorite.is-favorite svg { fill: currentColor; }
.watch-action:disabled { opacity: .28; cursor: default; }
.next-action { color: var(--ink); border-color: var(--paper); background: var(--paper); }
.next-action:hover { color: var(--ink); background: #fff; }
.episode-panel { position: absolute; z-index: 15; inset: 0 0 0 auto; width: min(410px, 92vw); padding: 76px 32px 34px; overflow-y: auto; border-left: 1px solid rgba(255,255,255,.12); background: rgba(8,11,20,.94); box-shadow: -28px 0 80px rgba(0,0,0,.5); backdrop-filter: blur(28px); transform: translateX(102%); transition: transform .35s cubic-bezier(.22,.8,.22,1); }
.episode-panel.is-open { transform: translateX(0); }
.drawer-close { position: absolute; top: 24px; right: 24px; width: 38px; height: 38px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 50%; background: transparent; cursor: pointer; }
.drawer-close svg { width: 16px; }
.episode-title-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; }
.episode-title-row span { color: var(--coral-soft); font: 9px var(--utility); letter-spacing: .1em; }
.episode-title-row h2 { margin: 8px 0 0; font: 900 clamp(26px, 3vw, 44px)/1 var(--display); letter-spacing: -.06em; }
.episode-panel > p { margin: 22px 0 18px; color: var(--muted); font-size: 12px; line-height: 1.75; }
.dialog-meta { display: flex; gap: 7px; flex-wrap: wrap; }
.dialog-meta span { padding: 5px 8px; color: #a9abba; border: 1px solid var(--line); border-radius: 7px; font-size: 9px; }
.episode-label { display: flex; align-items: center; justify-content: space-between; margin: 32px 0 12px; }
.episode-label span { font-size: 13px; font-weight: 700; }
.episode-label small { color: var(--muted); font: 9px var(--utility); }
.episode-list { display: grid; gap: 8px; }
.episode-button { width: 100%; padding: 11px 12px; display: grid; grid-template-columns: 38px 1fr auto; align-items: center; gap: 10px; color: var(--muted); border: 1px solid transparent; border-radius: 12px; background: rgba(255,255,255,.035); text-align: left; cursor: pointer; }
.episode-button b { color: #656978; font: 18px var(--utility); }
.episode-button span { font-size: 11px; }
.episode-button small { color: #656978; font: 8px var(--utility); }
.episode-button:hover, .episode-button.is-active { color: var(--paper); border-color: rgba(255,92,114,.34); background: rgba(255,92,114,.08); }
.episode-button.is-active b { color: var(--coral-soft); }
.watch-hint { position: absolute; z-index: 4; left: 34px; bottom: 24px; display: flex; align-items: center; gap: 5px; color: rgba(244,241,250,.38); font: 8px var(--utility); letter-spacing: .04em; transition: opacity .3s ease; }
.watch-hint span { width: 20px; height: 20px; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.12); border-radius: 6px; }
.player-dialog.controls-hidden:not(.drawer-open) .watch-topbar,
.player-dialog.controls-hidden:not(.drawer-open) .watch-actions,
.player-dialog.controls-hidden:not(.drawer-open) .video-story-copy,
.player-dialog.controls-hidden:not(.drawer-open) .watch-hint { opacity: 0; pointer-events: none; }
.player-dialog.controls-hidden:not(.drawer-open) .watch-topbar { transform: translateY(-8px); }
.player-dialog.controls-hidden:not(.drawer-open) .watch-actions { transform: translateX(8px); }
.player-dialog.controls-hidden:not(.drawer-open) .video-story-copy { transform: translateY(8px); }
.player-dialog.controls-hidden .watch-topbar:focus-within,
.player-dialog.controls-hidden .watch-actions:focus-within { opacity: 1; pointer-events: auto; transform: none; }
.toast { position: fixed; z-index: 80; left: 50%; bottom: 26px; padding: 11px 16px; color: var(--paper); border: 1px solid var(--line); border-radius: 11px; background: #202532; box-shadow: 0 12px 36px rgba(0,0,0,.35); font-size: 12px; opacity: 0; transform: translate(-50%, 12px); pointer-events: none; transition: opacity .2s ease, transform .2s ease; }
.toast.is-visible { opacity: 1; transform: translate(-50%, 0); }
.mobile-nav { display: none; }

@keyframes cardIn { to { opacity: 1; transform: translateY(0); } }
@keyframes dialogIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes swipeOutUp { to { opacity: 0; transform: translateY(-22%) scale(.96); } }
@keyframes swipeOutDown { to { opacity: 0; transform: translateY(22%) scale(.96); } }
@keyframes swipeInUp { from { opacity: 0; transform: translateY(24%) scale(.96); } to { opacity: 1; transform: none; } }
@keyframes swipeInDown { from { opacity: 0; transform: translateY(-24%) scale(.96); } to { opacity: 1; transform: none; } }
@keyframes edgeBumpUp { 50% { transform: translateY(-2.5%); } }
@keyframes edgeBumpDown { 50% { transform: translateY(2.5%); } }

@media (max-width: 1180px) {
  .hero { grid-template-columns: minmax(280px,.85fr) minmax(320px,1fr) 145px; gap: 28px; }
  .series-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .text-nav { display: none; }
}

@media (max-width: 920px) {
  .side-rail { display: none; }
  main { margin-left: 0; }
  .topbar { height: 78px; }
  .hero { min-height: auto; grid-template-columns: .8fr 1fr; padding-top: 28px; }
  .premiere-rail { grid-column: 1 / -1; min-height: 0; padding: 22px 0 0; border-left: 0; border-top: 1px solid var(--line); }
  .premiere-rail::before, .premiere-rail::after { display: none; }
  .rail-heading { max-width: 160px; }
  .rail-track { grid-template-columns: repeat(4, 1fr); }
  .series-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

@media (max-width: 700px) {
  body { padding-bottom: 68px; }
  .topbar { height: 66px; padding: 0 18px; }
  .wordmark small { display: none; }
  .top-actions .icon-button, .search-box kbd { display: none; }
  .search-box { width: 42px; padding: 0; justify-content: center; border: 0; background: transparent; }
  .search-box input { position: fixed; z-index: 50; left: 16px; right: 16px; top: 10px; width: calc(100% - 32px); height: 46px; padding: 0 42px; border: 1px solid rgba(255,92,114,.5); border-radius: 14px; background: #111722; opacity: 0; pointer-events: none; transform: translateY(-10px); transition: .2s ease; }
  .search-box:focus-within input { opacity: 1; pointer-events: auto; transform: translateY(0); }
  .search-box svg { position: relative; z-index: 51; }
  .hero { display: flex; flex-direction: column; align-items: stretch; padding: 10px 18px 32px; gap: 26px; }
  .hero-stage { order: -1; width: 100%; }
  .hero-image-wrap { aspect-ratio: 4 / 4.7; border-radius: 28px; }
  .hero-image-wrap img { object-position: 50% 30%; }
  .hero-caption { left: 20px; bottom: 18px; }
  .hero-play { width: 58px; height: 58px; right: 16px; top: auto; bottom: 17px; border-width: 6px; }
  .hero-copy { padding: 0 4px; }
  .eyebrow { margin-bottom: 18px; }
  .hero h1 { font-size: clamp(50px, 16vw, 72px); }
  .hero-copy > p { margin: 20px 0 14px; font-size: 13px; }
  .hero-actions { margin-top: 24px; }
  .primary-button { flex: 1; }
  .premiere-rail { padding-top: 20px; }
  .rail-track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
  .premiere-item { flex: 0 0 42%; scroll-snap-align: start; }
  .continue-section, .library-section { padding: 36px 18px; }
  .library-section { padding-top: 48px; }
  .section-heading { align-items: flex-start; flex-direction: column; }
  .library-heading { margin-bottom: 24px; }
  .filter-tabs { width: 100%; }
  .series-grid { grid-template-columns: repeat(2, minmax(0,1fr)); gap: 26px 12px; }
  .poster-button { border-radius: 16px; }
  .poster-play { opacity: 1; transform: none; }
  .continue-card { grid-template-columns: 88px 1fr auto; gap: 12px; padding: 10px; }
  .continue-card img { width: 88px; height: 64px; }
  footer { align-items: flex-start; flex-direction: column; gap: 10px; padding: 35px 18px 42px; }
  footer > span { margin-left: 0; }
  footer nav { flex-wrap: wrap; }
  .format-section { padding: 70px 18px; grid-template-columns: 1fr; gap: 38px; }
  .format-copy h2 { font-size: clamp(50px, 16vw, 72px); }
  .format-path { display: none; }
  .mobile-nav { position: fixed; z-index: 40; inset: auto 0 0; height: 68px; display: grid; grid-template-columns: repeat(3,1fr); padding: 6px 10px 5px; border-top: 1px solid var(--line); background: rgba(8,11,20,.94); backdrop-filter: blur(18px); }
  .mobile-nav a, .mobile-nav button { padding: 3px; display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 3px; color: #717482; border: 0; background: transparent; font-size: 9px; }
  .mobile-nav svg { width: 19px; height: 19px; }
  .mobile-nav .is-active { color: var(--coral-soft); }
  .player-ambience img { opacity: .2; filter: blur(28px) saturate(.7); }
  .player-ambience::after { background: rgba(3,5,10,.58); }
  .watch-topbar { top: 22px; left: 15px; right: 15px; }
  .watch-brand b { font-size: 17px; }
  .watch-context { left: auto; right: 52px; transform: none; }
  .watch-context i { display: none; }
  .watch-context span:last-child { color: var(--cyan); }
  .dialog-close { width: 38px; height: 38px; }
  .video-column { width: 100%; padding: 0; }
  .video-frame { width: 100%; height: 100%; max-height: none; aspect-ratio: auto; border: 0; border-radius: 0; box-shadow: none; }
  .video-frame video { object-fit: contain; }
  .video-badge { top: 70px; }
  .video-story-copy { left: 16px; right: 76px; bottom: 66px; }
  .video-story-copy h2 { font-size: 20px; }
  .watch-actions { left: auto; right: 10px; bottom: 82px; gap: 7px; }
  .watch-action, .watch-action.dialog-favorite { width: 50px; min-height: 50px; height: 50px; border-radius: 17px; }
  .watch-action span { font-size: 7px; }
  .watch-action svg { width: 17px; height: 17px; }
  .watch-hint { display: none; }
  .episode-panel { inset: auto 0 0; width: 100%; max-height: 78vh; padding: 62px 20px 34px; border: 0; border-top: 1px solid rgba(255,255,255,.13); border-radius: 24px 24px 0 0; transform: translateY(102%); }
  .episode-panel.is-open { transform: translateY(0); }
  .drawer-close { top: 14px; right: 16px; }
  .toast { bottom: 84px; }
}

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