/* 剧喵 — cinema-dark, editorial titles, glass only over video. Tokens match the design canvas. */
:root {
  --ground: #0C0C0E; --ground-2: #09090B; --surface: #111114; --surface-2: #16161A; --surface-3: #1C1C21;
  --line: rgba(255,255,255,.08); --line-2: rgba(255,255,255,.14);
  --text: #EDEDEF; --text-2: #C9C9D1; --dim: #A3A3AD; --mute: #8A8A94;
  --ember: #FF6B3D; --ember-ink: #1A0B05; --ember-soft: #FF8A62; --gold: #F2C14E; --green: #7DD36F;
  --light: #F4F4F6;
  --r-sm: 10px; --r: 14px; --r-lg: 20px;
  --pad: 48px;
  --ease: cubic-bezier(.2,.8,.2,1);
}
* { box-sizing: border-box; }
html { background: var(--ground); color-scheme: dark; }
body { margin: 0; background: var(--ground); color: var(--text); font: 15px/1.6 "Noto Sans SC", Inter, -apple-system, "PingFang SC", sans-serif; -webkit-font-smoothing: antialiased; min-height: 100vh; overflow-x: hidden; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; }
img { display: block; }
svg { display: block; }
.serif { font-family: "Noto Serif SC", "Songti SC", serif; }
.num { font-family: Inter, sans-serif; font-variant-numeric: tabular-nums; }
.dim { color: var(--dim); }
.small { font-size: 12px; }
.gold { color: var(--gold); font-weight: 700; }
.grow { flex: 1; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.glass { background: rgba(22,22,26,.55); -webkit-backdrop-filter: blur(28px) saturate(1.5); backdrop-filter: blur(28px) saturate(1.5); border: 1px solid var(--line-2); }
.st { fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
kbd { font-family: Inter, sans-serif; font-size: 12px; border: 1px solid var(--line-2); border-radius: 6px; padding: 1px 7px; color: var(--text); background: rgba(255,255,255,.03); }
:focus-visible { outline: 2px solid var(--ember); outline-offset: 2px; }
.skiplink { position: absolute; left: -999px; top: 8px; z-index: 99; background: var(--light); color: var(--ground); padding: 8px 14px; border-radius: 8px; }
.skiplink:focus { left: 8px; }
[hidden] { display: none !important; }

/* ---------- views ---------- */

/* ---------- nav ---------- */
.nav { position: relative; z-index: 5; max-width: 1440px; margin: 0 auto; padding: 18px var(--pad); display: flex; align-items: center; gap: 28px; }
.brand { display: flex; align-items: center; gap: 10px; flex: none; }
.mark { width: 34px; height: 34px; border-radius: 10px; background: var(--ember); color: #140A06; display: grid; place-items: center; font-weight: 900; font-size: 19px; }
.word { font-size: 20px; font-weight: 900; letter-spacing: 2px; }
.navlinks { display: flex; gap: 4px; }
.navlinks a { padding: 8px 14px; border-radius: 999px; color: var(--dim); }
.navlinks a:hover { color: var(--text); }
.navlinks a.on { background: rgba(255,255,255,.08); color: var(--text); }
.search { display: flex; align-items: center; gap: 10px; width: min(440px, 100%); height: 44px; padding: 0 10px 0 16px; border-radius: 999px; transition: border-color .2s, box-shadow .2s, background .2s; }
.search svg { width: 18px; height: 18px; color: var(--dim); flex: none; }
.search input { flex: 1; min-width: 0; background: none; border: 0; outline: none; font-size: 15px; }
.search input::-webkit-search-cancel-button { filter: invert(1) opacity(.6); }
.search:focus-within { border-color: var(--ember); box-shadow: 0 0 0 4px rgba(255,107,61,.18); background: var(--surface-3); }
.search:focus-within kbd { display: none; }

/* page ambient glow (from the featured poster) */
.pageglow { position: absolute; left: -10%; top: -280px; width: 120%; height: 980px; pointer-events: none; filter: blur(40px); opacity: 0; transition: opacity 1s, background 1s;
  background: radial-gradient(55% 55% at 72% 40%, var(--g1, rgba(196,84,46,.42)), transparent 70%), radial-gradient(40% 40% at 20% 30%, var(--g2, rgba(70,90,140,.28)), transparent 70%); }
body.p-home .pageglow.on { opacity: 1; }

#content { position: relative; z-index: 1; }

/* ---------- buttons ---------- */
.ib { width: 44px; height: 44px; border-radius: 12px; border: 0; background: none; display: grid; place-items: center; color: var(--text); flex: none; transition: background .15s; }
.ib:hover { background: rgba(255,255,255,.12); }
.ib svg { width: 22px; height: 22px; fill: currentColor; }
.ib svg text { font: 700 7px Inter, sans-serif; fill: currentColor; stroke: none; }
.ib.sm { width: 36px; height: 36px; }
.ib.txt { width: auto; padding: 0 10px; font-size: 14px; font-weight: 600; }
.btn-primary { display: inline-flex; align-items: center; gap: 12px; height: 56px; padding: 0 28px 0 22px; border-radius: 999px; background: var(--light); color: var(--ground); font-size: 17px; font-weight: 700; transition: transform .2s var(--ease); }
.btn-primary:hover { transform: scale(1.03); }
.btn-primary svg { width: 22px; height: 22px; fill: var(--ground); }
.btn-primary .sub { font-weight: 500; color: #55555E; font-size: 15px; }
.btn-glass { display: inline-flex; align-items: center; gap: 10px; height: 56px; padding: 0 22px; border-radius: 999px; font-size: 16px; }
.btn-glass svg { width: 20px; height: 20px; }
.btn-ghost { display: block; margin: 28px auto 0; height: 48px; padding: 0 28px; border-radius: 999px; background: rgba(255,255,255,.06); border: 1px solid var(--line-2); font-size: 15px; }
.btn-ghost:hover { background: rgba(255,255,255,.1); }
.pill { height: 40px; padding: 0 16px; border-radius: 999px; border: 0; font-size: 14px; font-weight: 700; display: inline-flex; align-items: center; gap: 8px; }
.pill.light { background: var(--light); color: var(--ground); padding-left: 10px; }
.pill.dark { background: rgba(255,255,255,.12); color: var(--text); }
.linkbtn { background: none; border: 0; color: var(--dim); font-size: 13px; padding: 6px 4px; min-height: 32px; display: inline-flex; align-items: center; gap: 6px; }
.linkbtn:hover { color: var(--text); }
.eyebrow { font-size: 12px; color: var(--ember-soft); font-weight: 700; letter-spacing: 1px; }

/* ---------- home ---------- */
main.page { max-width: 1440px; margin: 0 auto; padding: 0 var(--pad) 80px; position: relative; z-index: 1; }
body.p-watch main.page { max-width: none; padding: 0; }
.hero { display: flex; gap: 56px; align-items: flex-end; padding: 48px 0 56px; }
.hero-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 20px; padding-bottom: 12px; }
.hero-tags { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; font-size: 13px; color: var(--text-2); }
.hero-tags .hot { background: var(--ember); color: var(--ember-ink); font-weight: 700; padding: 4px 10px; border-radius: 999px; }
.hero-tags .sep { color: #6E6E78; }
.hero-title { margin: 0; font-size: clamp(48px, 7.2vw, 104px); line-height: 1.05; font-weight: 900; letter-spacing: 4px; }
.hero-meta { display: flex; gap: 14px; color: var(--text-2); font-size: 15px; flex-wrap: wrap; }
.hero-meta .rate { color: var(--gold); font-weight: 700; }
.hero-desc { margin: 0; max-width: 580px; color: #B4B4BD; font-size: 16px; line-height: 1.75; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 8px; }
.hero-prog { display: flex; align-items: center; gap: 12px; max-width: 420px; margin-top: 4px; font-size: 13px; color: var(--dim); }
.hero-prog .track { flex: 1; height: 4px; border-radius: 2px; background: rgba(255,255,255,.14); overflow: hidden; }
.hero-prog i { display: block; height: 100%; background: var(--ember); border-radius: 2px; }
.hero-art { width: 340px; flex: none; perspective: 1200px; }
.hero-poster { aspect-ratio: 2/3; border-radius: 18px; overflow: hidden; background: var(--surface-2); box-shadow: 0 40px 80px -20px rgba(0,0,0,.8), 0 0 0 1px rgba(255,255,255,.08); transform: rotateY(-8deg) rotateX(2deg); transition: transform .6s var(--ease); }
.hero-poster:hover { transform: rotateY(-2deg) rotateX(0); }
.hero-poster img { width: 100%; height: 100%; object-fit: cover; }

.sec { display: flex; flex-direction: column; gap: 20px; margin-bottom: 64px; scroll-margin-top: 20px; }
.sec-h { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.sec-h h2 { margin: 0; font-size: 26px; font-weight: 900; }
.sec-h .dim { font-size: 14px; }
.sub-h { margin: 0; font-size: 15px; font-weight: 500; color: var(--dim); }
.check { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--text-2); cursor: pointer; min-height: 44px; }
.check input, .toggle input { width: 18px; height: 18px; accent-color: var(--ember); margin: 0; }

.seg { display: flex; gap: 2px; padding: 4px; border-radius: 999px; width: fit-content; max-width: 100%; overflow-x: auto; scrollbar-width: none; }
.seg button { background: none; border: 0; color: var(--dim); font-size: 14px; padding: 8px 16px; border-radius: 999px; min-height: 36px; white-space: nowrap; }
.seg button:hover { color: var(--text); }
.seg button[aria-selected="true"] { background: var(--light); color: var(--ground); font-weight: 700; }

/* continue: landscape cards */
.cgrid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 20px; }
.ccard { display: flex; flex-direction: column; gap: 10px; min-width: 0; position: relative; }
.ccard .pic { aspect-ratio: 16/9; border-radius: var(--r); position: relative; overflow: hidden; background: var(--surface-2); box-shadow: 0 0 0 1px rgba(255,255,255,.06) inset; transition: transform .35s var(--ease); }
.ccard:hover .pic { transform: translateY(-4px); }
.ccard .pic img { width: 100%; height: 100%; object-fit: cover; object-position: center 22%; }
.ccard .pic::after { content: ""; position: absolute; inset: 40% 0 0 0; background: linear-gradient(transparent, rgba(0,0,0,.78)); }
.ccard .newtag { position: absolute; left: 10px; top: 10px; z-index: 1; font-size: 12px; font-weight: 700; color: var(--ember-ink); background: var(--ember); padding: 2px 9px; border-radius: 999px; box-shadow: 0 4px 12px rgba(0,0,0,.4); }
.ccard .ep { position: absolute; left: 12px; bottom: 14px; z-index: 1; font-size: 13px; }
.ccard .left { position: absolute; right: 12px; bottom: 14px; z-index: 1; font-size: 12px; color: var(--text-2); }
.ccard .bar4 { position: absolute; left: 0; right: 0; bottom: 0; height: 4px; z-index: 1; background: rgba(255,255,255,.18); }
.ccard .bar4 i { display: block; height: 100%; background: var(--ember); }
.ccard .name { font-size: 15px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ccard .rm { position: absolute; right: 8px; top: 8px; z-index: 2; width: 32px; height: 32px; border-radius: 50%; border: 0; background: rgba(12,12,14,.7); color: var(--text); display: grid; place-items: center; opacity: 0; transition: opacity .15s; }
.ccard:hover .rm, .ccard .rm:focus-visible { opacity: 1; }
.ccard .rm svg { width: 14px; height: 14px; }

/* poster grid */
.pgrid { display: grid; grid-template-columns: repeat(6, minmax(0,1fr)); gap: 32px 20px; }
.tile { display: flex; flex-direction: column; gap: 10px; min-width: 0; cursor: pointer; }
.tile .pic { aspect-ratio: 2/3; border-radius: var(--r); position: relative; overflow: hidden; background: var(--surface-2); box-shadow: 0 18px 40px -18px rgba(0,0,0,.9), 0 0 0 1px rgba(255,255,255,.07) inset; transition: transform .35s var(--ease), opacity .3s; }
.tile:hover .pic { transform: translateY(-6px) scale(1.02); }
.tile .pic img { width: 100%; height: 100%; object-fit: cover; }
.tile .rank { position: absolute; left: 10px; top: 10px; font-size: 12px; font-weight: 700; color: var(--ground); background: rgba(244,244,246,.92); padding: 2px 8px; border-radius: 6px; }
.tile .kind { position: absolute; left: 10px; top: 10px; font-size: 11px; color: var(--text); background: rgba(12,12,14,.7); padding: 2px 8px; border-radius: 6px; }
.tile .rate { position: absolute; right: 10px; top: 10px; font-size: 12px; font-weight: 700; color: var(--gold); background: rgba(12,12,14,.72); padding: 2px 8px; border-radius: 6px; }
.tile .note { position: absolute; inset: auto 0 0 0; padding: 26px 12px 10px; background: linear-gradient(transparent, rgba(0,0,0,.75)); font-size: 12px; color: #DADAE0; }
.tile .name { font-size: 15px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tile .meta { font-size: 12px; color: var(--dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: -8px; }
.tile.checking .pic::after { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, transparent 30%, rgba(255,255,255,.07) 50%, transparent 70%); animation: shine 1.2s infinite; }
@keyframes shine { from { transform: translateX(-100%); } to { transform: translateX(100%); } }
.tile.na { cursor: default; }
.tile.na .pic { opacity: .35; transform: none; }
.tile.na .note { color: var(--text-2); }
body.only-avail #hotGrid .tile.na { display: none; }
.empty { color: var(--dim); padding: 60px 0; text-align: center; }

/* ---------- search ---------- */
.search-head { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; padding-top: 24px; }
.search-head h1 { margin: 0; font-size: 40px; font-weight: 900; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; margin: 24px 0 32px; }
.chips button { height: 40px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line-2); background: none; color: var(--text-2); font-size: 14px; display: inline-flex; align-items: center; gap: 8px; }
.chips button:hover { color: var(--text); border-color: rgba(255,255,255,.24); }
.chips button .num { color: var(--mute); }
.chips button[aria-selected="true"] { background: var(--light); border-color: var(--light); color: var(--ground); font-weight: 700; }
.chips button[aria-selected="true"] .num { color: var(--ground); }
.best { display: flex; gap: 32px; padding: 24px; border-radius: 24px; align-items: stretch; margin-bottom: 48px; }
.best .art { width: 220px; flex: none; aspect-ratio: 2/3; border-radius: 16px; overflow: hidden; background: var(--surface-2); position: relative; box-shadow: 0 30px 60px -24px rgba(0,0,0,.8); }
.best .art img { width: 100%; height: 100%; object-fit: cover; }
.best .art .tag { position: absolute; left: 12px; top: 12px; font-size: 12px; padding: 3px 10px; border-radius: 999px; background: rgba(12,12,14,.7); }
.best .body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 14px; justify-content: center; }
.best .tags { display: flex; gap: 10px; align-items: center; font-size: 13px; flex-wrap: wrap; color: var(--text-2); }
.best .tags .k { padding: 3px 10px; border-radius: 6px; background: rgba(255,255,255,.08); }
.best h2 { margin: 0; font-size: 44px; font-weight: 900; line-height: 1.15; }
.best h2 mark { background: none; color: var(--ember-soft); }
.best p { margin: 0; color: #B4B4BD; font-size: 15px; line-height: 1.75; max-width: 720px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.best .acts { display: flex; gap: 12px; margin-top: 8px; flex-wrap: wrap; }
.best .acts .btn-primary { height: 52px; font-size: 16px; }
.best .acts .sec-btn { display: inline-flex; align-items: center; height: 52px; padding: 0 22px; border-radius: 999px; border: 1px solid var(--line-2); font-size: 15px; }

/* ---------- watch ---------- */
body.p-watch { background: var(--ground-2); }
.theater { position: relative; max-width: 1440px; margin: 0 auto; padding: 8px 40px 0; }
/* ambilight: colour sits at the frame's edges so it spills out around the player */
.ambi { position: absolute; left: 0; right: 0; top: -20px; bottom: -90px; pointer-events: none; filter: blur(70px); opacity: .9; transition: background 1.6s linear;
  background: radial-gradient(30% 60% at 14% 50%, var(--al, rgba(214,120,60,.5)), transparent 80%), radial-gradient(30% 60% at 86% 50%, var(--ar, rgba(60,90,150,.45)), transparent 80%), radial-gradient(40% 30% at 50% 96%, var(--al, rgba(214,120,60,.3)), transparent 80%); }
/* The player = a 16:9 "screen" (video + everything drawn over the picture) and the controls.
   Normal view: controls are docked UNDER the screen, so they never cover the burned-in subtitles.
   Fullscreen (.fs): controls float at the bottom. When the display is taller than the video
   (.fsbars, e.g. 16:10 Macs) the picture is pinned to the top and the controls sit in the black
   strip below it; otherwise they overlay the picture, kept light and quick to hide. */
.stage { position: relative; margin: 0 auto; max-width: calc((100vh - 200px) * 16 / 9); border-radius: var(--r-lg); overflow: hidden; background: var(--surface); box-shadow: 0 50px 120px -30px rgba(0,0,0,.9); user-select: none; -webkit-user-select: none; }
.screen { position: relative; aspect-ratio: 16/9; background: #000; overflow: hidden; touch-action: manipulation; }
.stage.fs { max-width: none; width: 100%; height: 100%; border-radius: 0; background: #000; }
.stage.fs .screen { position: absolute; inset: 0; aspect-ratio: auto; }
.stage.fs.fsbars .screen { bottom: auto; height: var(--pic-h, 100%); }
video { position: absolute; inset: 0; width: 100%; height: 100%; background: #000; transform-origin: 0 0; transition: transform .7s var(--ease), border-radius .7s, box-shadow .7s; }
.stage.idle .screen { cursor: none; }
.scrim-top { position: absolute; inset: 0 0 auto 0; height: 130px; padding: 22px 28px; background: linear-gradient(rgba(0,0,0,.55), transparent); pointer-events: none; transition: opacity .25s; }
.st-title { font-size: 26px; font-weight: 900; text-shadow: 0 2px 12px rgba(0,0,0,.6); line-height: 1.25; }
.st-ep { font-size: 14px; color: #DADAE0; }
.stage:not(.fs) .scrim-top, .stage.fs.idle .scrim-top { opacity: 0; }

/* docked (normal view) */
.controls { position: relative; z-index: 2; padding: 0 12px 6px; background: var(--surface); display: flex; flex-direction: column; transition: opacity .25s, transform .25s var(--ease); }
.controls .bar { margin: -14px -12px 0; }           /* scrubber straddles the picture's bottom edge */
.controls .cbar { background: none; border: 0; -webkit-backdrop-filter: none; backdrop-filter: none; padding: 2px 0; }
/* fullscreen: floating, no glass (blur made covered subtitles unreadable) */
.stage.fs .controls { position: absolute; inset: auto 0 0 0; padding: 34px 20px 8px; background: linear-gradient(transparent, rgba(0,0,0,.45)); }
.stage.fs .controls .bar { margin: 0; }
.stage.fs.fsbars .controls { background: none; padding-top: 4px; }
.stage.fs .cbar .ib svg, .stage.fs .time { filter: drop-shadow(0 1px 2px rgba(0,0,0,.7)); }
.stage.fs.idle .controls, .stage.fs.credits .controls { opacity: 0; transform: translateY(8px); pointer-events: none; }

.bar { position: relative; height: 28px; cursor: pointer; touch-action: none; outline: none; }
.bar .track { position: absolute; left: 0; right: 0; top: 11px; height: 6px; border-radius: 4px; background: rgba(255,255,255,.2); overflow: hidden; transition: top .15s, height .15s; }
.bar:hover .track, .bar.drag .track, .bar:focus-visible .track { top: 9px; height: 10px; }
.buf, .prog, .hoverfill, .zone { position: absolute; top: 0; bottom: 0; left: 0; }
.buf { background: rgba(255,255,255,.28); }
.zone { background: rgba(242,193,78,.5); width: 0; }
.hoverfill { background: rgba(255,255,255,.4); width: 0; opacity: 0; }
.bar:hover .hoverfill { opacity: 1; }
.prog { background: var(--ember); width: 0; }
.knob { position: absolute; top: 14px; left: 0; width: 18px; height: 18px; margin: -9px 0 0 -9px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 5px rgba(255,107,61,.45), 0 2px 8px rgba(0,0,0,.5); pointer-events: none; transform: scale(.75); transition: transform .15s; }
.bar:hover .knob, .bar.drag .knob { transform: scale(1); }
.bubble { position: absolute; bottom: 32px; left: 0; transform: translateX(-50%); display: none; align-items: baseline; gap: 8px; background: rgba(12,12,14,.9); padding: 6px 12px; border-radius: 10px; box-shadow: 0 10px 24px rgba(0,0,0,.5); white-space: nowrap; pointer-events: none; }
.bar:hover .bubble, .bar.drag .bubble { display: flex; }
.b-t { font-size: 16px; font-weight: 700; }
.b-d { font-size: 12px; color: var(--ember-soft); }

.cbar { display: flex; align-items: center; gap: 2px; padding: 6px 8px; border-radius: 18px; }
.bar .track { box-shadow: 0 0 0 1px rgba(0,0,0,.15); }
.time { font-size: 15px; margin: 0 10px; white-space: nowrap; }
.time b { font-weight: 600; }
.time span { color: var(--dim); }
.res { font-size: 12px; font-weight: 700; color: var(--text-2); border: 1.5px solid rgba(255,255,255,.5); padding: 1px 7px; border-radius: 6px; margin-right: 6px; }
.res.hd { color: var(--gold); border-color: rgba(242,193,78,.7); }
.volwrap { display: flex; align-items: center; }
.vol { width: 0; opacity: 0; transition: width .2s, opacity .2s; accent-color: var(--ember); }
.volwrap:hover .vol, .vol:focus-visible { width: 80px; opacity: 1; margin-right: 6px; }

.spinner { position: absolute; left: 50%; top: 50%; width: 46px; height: 46px; margin: -23px; border: 4px solid rgba(255,255,255,.18); border-top-color: #fff; border-radius: 50%; animation: spin 1s linear infinite; display: none; pointer-events: none; }
.stage.loading .spinner { display: block; }
@keyframes spin { to { transform: rotate(360deg); } }

/* seek feedback */
.seekfx { position: absolute; top: -10%; bottom: -10%; width: 40%; display: grid; place-items: center; pointer-events: none; opacity: 0; transition: opacity .35s; }
.seekfx.r { right: -8%; border-radius: 50% 0 0 50%; background: radial-gradient(closest-side at 60% 50%, rgba(255,255,255,.14), rgba(255,255,255,.05)); }
.seekfx.l { left: -8%; border-radius: 0 50% 50% 0; background: radial-gradient(closest-side at 40% 50%, rgba(255,255,255,.14), rgba(255,255,255,.05)); }
.seekfx.show { opacity: 1; transition: none; }
.seekfx-in { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.seekfx svg { width: 40px; height: 24px; fill: #fff; }
.seekfx span { font-size: 20px; font-weight: 700; text-shadow: 0 2px 10px rgba(0,0,0,.5); }
.timechip { position: absolute; left: 50%; bottom: 26px; transform: translateX(-50%); padding: 6px 14px; border-radius: 999px; background: rgba(12,12,14,.72); font-size: 15px; opacity: 0; transition: opacity .35s; pointer-events: none; white-space: nowrap; }
.timechip.show { opacity: 1; transition: none; }
.timechip span { color: var(--dim); }
.timechip em { font-style: normal; color: var(--ember-soft); margin-left: 6px; }
.stage.fs:not(.idle):not(.fsbars) .timechip { bottom: 110px; }

/* toasts */
.toasts { position: absolute; left: 20px; bottom: 24px; display: flex; flex-direction: column; gap: 10px; align-items: flex-start; pointer-events: none; transition: bottom .25s; }
.stage.fs:not(.idle):not(.fsbars) .toasts { bottom: 110px; }
.toast { pointer-events: auto; display: flex; align-items: center; gap: 12px; padding: 8px 14px; border-radius: 999px; font-size: 14px; animation: tin .35s var(--ease); }
.toast.has-btn { padding-right: 8px; }
.toast button { height: 32px; padding: 0 14px; border-radius: 999px; border: 0; background: rgba(255,255,255,.14); font-size: 13px; font-weight: 700; }
.toast svg { width: 16px; height: 16px; }
.toast.out { opacity: 0; transform: translateY(6px); transition: .3s; }
@keyframes tin { from { opacity: 0; transform: translateY(8px); } }

/* skip intro */
.skip { position: absolute; right: 24px; bottom: 24px; height: 44px; padding: 0 16px; border-radius: 999px; display: flex; align-items: center; gap: 10px; font-size: 15px; font-weight: 700; overflow: hidden; transition: bottom .25s, background .2s; animation: tin .35s var(--ease); }
.skip:hover { background: rgba(40,40,46,.75); }
.stage.fs:not(.idle):not(.fsbars) .skip { bottom: 110px; }
.skipfill { position: absolute; inset: 0 auto 0 0; width: 0; background: rgba(255,255,255,.14); }
.rel { position: relative; }

/* up next (credits shrink) */
.stage.credits .screen { background: var(--ground); }
.stage.credits video { transform: translate(24px, 24px) scale(.42); border-radius: 18px; box-shadow: 0 20px 50px rgba(0,0,0,.6); }
.upnext { position: absolute; right: 32px; bottom: 36px; width: min(340px, 46%); display: flex; flex-direction: column; gap: 14px; animation: tin .5s var(--ease); }
.un-row { display: flex; gap: 14px; align-items: center; }
.un-thumb { width: 132px; flex: none; aspect-ratio: 16/9; border-radius: 10px; background: var(--surface-2) center 22% / cover no-repeat; }
.un-title { font-size: 22px; font-weight: 900; }
.un-sub { font-size: 13px; }
.un-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.ring { width: 26px; height: 26px; }
.ring-bg { fill: none; stroke: rgba(12,12,14,.18); stroke-width: 4; }
.ring-fg { fill: none; stroke: var(--ember); stroke-width: 4; stroke-dasharray: 94.25; stroke-dashoffset: 0; transform: rotate(-90deg); transform-origin: 18px 18px; stroke-linecap: round; transition: stroke-dashoffset 1s linear; }
.ring text { font: 700 14px Inter, sans-serif; fill: var(--ground); }

/* episode drawer */
.drawer { position: absolute; top: 12px; right: 12px; bottom: 12px; width: min(300px, 70%); border-radius: 16px; padding: 14px; display: flex; flex-direction: column; gap: 10px; animation: din .3s var(--ease); z-index: 3; }
@keyframes din { from { opacity: 0; transform: translateX(24px); } }
.drawer-h { display: flex; align-items: center; gap: 8px; }
.drawer-h .serif { font-size: 18px; font-weight: 900; }
.drawer-h .dim { font-size: 12px; }
.drawer-list { overflow-y: auto; display: flex; flex-direction: column; gap: 4px; padding-right: 2px; }
.dl-item { display: flex; align-items: center; gap: 12px; min-height: 44px; padding: 0 12px; border-radius: 10px; border: 0; background: none; text-align: left; width: 100%; }
.dl-item:hover { background: rgba(255,255,255,.08); }
.dl-item .n { width: 28px; font-weight: 700; font-family: Inter, sans-serif; }
.dl-item .s { flex: 1; font-size: 13px; color: var(--text-2); }
.dl-item .p { width: 44px; height: 3px; border-radius: 2px; background: rgba(255,255,255,.18); overflow: hidden; }
.dl-item .p i { display: block; height: 100%; background: var(--green); }
.dl-item.on { background: rgba(255,107,61,.92); color: var(--ember-ink); }
.dl-item.on .s { color: var(--ember-ink); }

/* settings popover */
.settings { position: absolute; right: 16px; bottom: 70px; width: 310px; border-radius: 16px; padding: 16px; display: flex; flex-direction: column; gap: 14px; font-size: 14px; animation: tin .25s var(--ease); z-index: 3; }
.set-row { display: flex; align-items: center; gap: 10px; min-height: 32px; }
.set-row.col { flex-direction: column; align-items: stretch; gap: 8px; }
.set-l { flex: 1; color: var(--text-2); }
.speedseg { display: flex; gap: 3px; background: rgba(0,0,0,.28); padding: 3px; border-radius: 10px; }
.speedseg button { flex: 1; border: 0; background: none; padding: 6px 0; border-radius: 8px; font: 600 12px Inter, sans-serif; }
.speedseg button:hover { background: rgba(255,255,255,.1); }
.speedseg button.on { background: var(--light); color: var(--ground); }
.stepper { display: flex; align-items: center; gap: 2px; background: rgba(255,255,255,.08); border-radius: 8px; }
.stepper button { width: 30px; height: 30px; border: 0; background: none; border-radius: 8px; font-size: 16px; }
.stepper button:hover { background: rgba(255,255,255,.12); }
.stepper span { min-width: 46px; text-align: center; font-size: 13px; }
.switch { appearance: none; -webkit-appearance: none; width: 40px; height: 22px; border-radius: 11px; background: rgba(255,255,255,.2); position: relative; cursor: pointer; transition: background .2s; margin: 0; flex: none; }
.switch::after { content: ""; position: absolute; left: 3px; top: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: transform .2s var(--ease); }
.switch:checked { background: var(--ember); }
.switch:checked::after { transform: translateX(18px); }

/* shortcuts */
.keyshelp { position: absolute; left: 50%; top: 50%; transform: translate(-50%,-50%); width: min(440px, 90%); max-height: 86%; overflow: auto; border-radius: 18px; padding: 20px 24px; z-index: 4; animation: tin .25s var(--ease); }
.keyshelp h3 { margin: 0 0 12px; font-size: 20px; }
.keyshelp dl { display: grid; grid-template-columns: auto 1fr; gap: 10px 18px; margin: 0; font-size: 14px; align-items: center; }
.keyshelp dt { white-space: nowrap; }
.keyshelp dd { margin: 0; color: var(--text-2); }

/* gesture hint (touch, first run) */
.ghint { position: absolute; inset: 0; background: rgba(0,0,0,.62); display: flex; z-index: 5; animation: tin .3s; }
.gz { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; text-align: center; font-size: 13px; color: var(--text-2); }
.gz b { color: var(--text); font-size: 14px; }
.gz svg { width: 34px; height: 20px; fill: #fff; margin-bottom: 4px; }
.gz.left, .gz.right { width: 30%; }
.gz.left { border-right: 1px dashed rgba(255,255,255,.25); }
.gz.right { border-left: 1px dashed rgba(255,255,255,.25); }
.gz.mid { flex: 1; gap: 22px; }
.gz.mid > div { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.gz.mid svg { width: 44px; color: #fff; fill: none; }
.gh-ok { position: absolute; left: 50%; bottom: 16px; transform: translateX(-50%); height: 44px; padding: 0 24px; color: var(--text); }

/* below the player */
.below { max-width: 1440px; margin: 0 auto; padding: 40px 40px 80px; display: flex; gap: 40px; align-items: flex-start; }
.info { flex: 999 1 560px; min-width: 0; display: flex; flex-direction: column; gap: 22px; }
.w-title { margin: 0; font-size: 44px; font-weight: 900; letter-spacing: 2px; line-height: 1.2; }
.w-ep { font-size: 24px; color: var(--dim); font-weight: 600; letter-spacing: 0; }
.w-meta { display: flex; gap: 14px; color: var(--text-2); font-size: 14px; flex-wrap: wrap; margin-top: -10px; }
.w-desc { margin: 0; max-width: 760px; color: #B4B4BD; font-size: 15px; line-height: 1.85; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; cursor: pointer; }
.w-desc.open { -webkit-line-clamp: unset; }
.w-cast { font-size: 13px; margin-top: -8px; }
.habits { display: flex; flex-direction: column; gap: 12px; margin-top: 6px; }
.hgrid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 10px; max-width: 760px; }
.toggle { display: flex; align-items: center; gap: 12px; min-height: 48px; padding: 0 16px; border-radius: var(--r); background: var(--surface-2); border: 1px solid rgba(255,255,255,.06); font-size: 14px; color: var(--text-2); cursor: pointer; }
.toggle:hover { border-color: var(--line-2); }
.toggle .hv { margin-left: auto; color: var(--text); }
.hint { margin: 0; font-size: 13px; color: var(--mute); }
.kbdrow { display: flex; gap: 18px; flex-wrap: wrap; font-size: 13px; color: var(--dim); align-items: center; }
.side { width: 400px; flex: none; display: flex; flex-direction: column; gap: 20px; }
.card { background: var(--surface); border: 1px solid rgba(255,255,255,.06); border-radius: var(--r-lg); padding: 20px; display: flex; flex-direction: column; gap: 16px; }
.card-h { display: flex; align-items: baseline; gap: 10px; }
.card-h h2 { margin: 0; font-size: 20px; font-weight: 900; }
.card-h .dim { font-size: 13px; }
.epgrid { display: grid; grid-template-columns: repeat(5, minmax(0,1fr)); gap: 8px; max-height: 340px; overflow-y: auto; padding: 2px; }
.epb { height: 52px; border-radius: 12px; border: 1px solid rgba(255,255,255,.08); background: var(--surface-2); color: var(--text); font: 600 16px Inter, "Noto Sans SC", sans-serif; position: relative; overflow: hidden; padding: 0 4px; white-space: nowrap; text-overflow: ellipsis; }
.epb:hover { border-color: rgba(255,255,255,.24); }
.epb.done { color: var(--mute); }
.epb.on { background: var(--ember); border-color: var(--ember); color: var(--ember-ink); }
.epb i { position: absolute; left: 0; bottom: 0; height: 3px; background: var(--green); }
.epb.small { font-size: 13px; }
.epb .dot { position: absolute; right: 6px; top: 6px; width: 7px; height: 7px; border-radius: 50%; background: var(--ember); }
.ranges { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; margin-bottom: -4px; }
.ranges button { flex: none; height: 32px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--line-2); background: none; color: var(--dim); font-size: 13px; }
.ranges button:hover { color: var(--text); }
.ranges button[aria-selected="true"] { background: var(--light); border-color: var(--light); color: var(--ground); font-weight: 700; }
.nextcard { flex-direction: row; align-items: center; gap: 14px; padding: 14px; }
.nextcard:hover { border-color: var(--line-2); }
.nc-thumb { width: 148px; flex: none; aspect-ratio: 16/9; border-radius: 12px; background: var(--surface-2) center 22% / cover no-repeat; display: grid; place-items: center; }
.nc-thumb svg { width: 30px; height: 30px; }
.nc-title { font-size: 16px; font-weight: 500; }

.foot { max-width: 1440px; margin: 0 auto; padding: 24px var(--pad) 48px; color: #6E6E78; font-size: 12px; display: flex; gap: 16px; flex-wrap: wrap; border-top: 1px solid rgba(255,255,255,.06); }

/* ---------- responsive ---------- */
@media (max-width: 1200px) { .pgrid { grid-template-columns: repeat(5, minmax(0,1fr)); } .cgrid { grid-template-columns: repeat(3, minmax(0,1fr)); } }
@media (max-width: 980px) {
  :root { --pad: 28px; }
  .pgrid { grid-template-columns: repeat(4, minmax(0,1fr)); }
  .hero-art { width: 260px; }
  .below { flex-direction: column; padding: 28px 24px 60px; }
  .side { width: 100%; }
  .theater { padding: 0 24px; }
}
@media (max-width: 760px) {
  :root { --pad: 18px; }
  .nav { gap: 12px; padding: 14px var(--pad); }
  .navlinks, .hide-sm { display: none !important; }
  .search { width: auto; flex: 1; max-width: 420px; }
  .hero { flex-direction: column-reverse; align-items: stretch; gap: 20px; padding: 12px 0 40px; }
  .hero-art { width: 100%; perspective: none; }
  .hero-poster { aspect-ratio: 16/10; transform: none; border-radius: 20px; }
  .hero-poster img { object-position: center 20%; }
  .hero-title { letter-spacing: 2px; }
  .hero-desc { font-size: 15px; -webkit-line-clamp: 2; }
  .hero-actions a { flex: 1; justify-content: center; }
  .pgrid { grid-template-columns: repeat(3, minmax(0,1fr)); gap: 18px 10px; }
  .tile .name { font-size: 13px; } .tile .meta { display: none; }
  .tile .note { font-size: 11px; padding: 18px 8px 6px; }
  .cgrid { grid-auto-flow: column; grid-auto-columns: 72%; grid-template-columns: none; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 4px; }
  .ccard { scroll-snap-align: start; }
  .best { flex-direction: column; padding: 16px; gap: 18px; }
  .best .art { width: 100%; aspect-ratio: 16/10; }
  .best .art img { object-position: center 20%; }
  .best h2 { font-size: 32px; }
  .search-head h1 { font-size: 30px; }
  .theater { padding: 0; }
  .ambi { display: none; }
  .stage { border-radius: 0; max-width: none; }
  .controls { padding: 0 6px 4px; }
  .controls .bar { margin: -14px -6px 0; }
  .stage.fs .controls { padding: 30px 8px 6px; }
  .time { font-size: 13px; margin: 0 4px; }
  .hide-xs { display: none !important; }
  .scrim-top { display: none; }
  .skip { right: 12px; bottom: 12px; } .toasts { left: 12px; bottom: 12px; }
  .settings { right: 8px; left: 8px; width: auto; bottom: 60px; }
  .upnext { right: 16px; bottom: 16px; width: 54%; gap: 8px; }
  .un-thumb { display: none; }
  .stage.credits video { transform: translate(12px, 12px) scale(.4); }
  .below { padding: 20px 18px 60px; gap: 24px; }
  .w-title { font-size: 30px; }
  .w-ep { font-size: 18px; }
  .hgrid { grid-template-columns: 1fr; }
  .epgrid { grid-template-columns: repeat(5, minmax(0,1fr)); }
  .epb { height: 48px; }
  .nc-thumb { width: 120px; }
}
@media (hover: none) { .hide-touch { display: none !important; } .vol { display: none; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; } }

/* =================== v2 pages =================== */
.chev { width: 14px; height: 14px; }
.more { font-size: 14px; color: var(--dim); display: inline-flex; align-items: center; gap: 4px; }
.more:hover { color: var(--text); }
.crumbs { display: flex; gap: 8px; flex-wrap: wrap; font-size: 13px; color: var(--mute); padding: 4px 0 18px; }
.crumbs a { color: var(--mute); }
.crumbs a:hover { color: var(--text); }
.crumbs [aria-current] { color: var(--text-2); }
.watch-crumbs { max-width: 1440px; margin: 0 auto; padding: 0 40px; }
.block { display: flex; flex-direction: column; gap: 16px; margin-bottom: 52px; }
.block h2 { margin: 0; }
.block-h { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.block-h h2 { font-size: 24px; font-weight: 900; }
.block-h .dim { font-size: 13px; }
.ph { width: 100%; height: 100%; display: grid; place-items: center; padding: 12px; text-align: center; font-size: 18px; font-weight: 900; color: rgba(255,248,240,.85); background: linear-gradient(160deg, #3A3A44, #141418); }
.pill { height: 34px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line-2); color: var(--text-2); font-size: 13px; display: inline-flex; align-items: center; }
.pill:hover { color: var(--text); border-color: rgba(255,255,255,.24); }
.pill.accent { border-color: rgba(255,107,61,.5); color: #FFB79C; }
.door-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.door { border-radius: 16px; padding: 14px 16px; background: var(--surface); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 2px; min-height: 84px; justify-content: flex-end; }
.door:hover { border-color: rgba(255,255,255,.2); }
.door .serif { font-size: 19px; font-weight: 900; }
.door .dim { font-size: 12px; }
.quick { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.quick .dim { font-size: 13px; margin-right: 4px; }
.hero-desc[hidden] { display: none; }

/* show page */
.backdrop { position: absolute; inset: 0 0 auto 0; height: 760px; overflow: hidden; z-index: 0; pointer-events: none; }
.backdrop img { width: 100%; height: 100%; object-fit: cover; filter: blur(60px) saturate(1.2); opacity: .45; transform: scale(1.2); }
.backdrop::after { content: ""; position: absolute; inset: 0; background: linear-gradient(rgba(12,12,14,.25), var(--ground) 92%); }
.show-top { display: flex; gap: 44px; align-items: flex-start; margin-bottom: 48px; }
.show-poster { width: 300px; flex: none; aspect-ratio: 2/3; border-radius: 18px; overflow: hidden; background: var(--surface-2); box-shadow: 0 40px 90px -20px rgba(0,0,0,.85), 0 0 0 1px rgba(255,255,255,.08); }
.show-poster img { width: 100%; height: 100%; object-fit: cover; }
.show-info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 16px; padding-top: 12px; }
.show-info h1 { margin: 0; font-size: clamp(34px, 5vw, 64px); font-weight: 900; letter-spacing: 3px; line-height: 1.1; }
.show-meta { display: flex; gap: 8px; flex-wrap: wrap; font-size: 14px; color: #DADAE0; }
.show-meta a { color: #DADAE0; }
.show-meta a:hover { color: #fff; text-decoration: underline; }
.show-meta .sep { color: #6E6E78; }
.show-stats { display: flex; gap: 24px; align-items: center; flex-wrap: wrap; }
.score { display: flex; align-items: baseline; gap: 8px; }
.score b { font-size: 38px; color: var(--gold); }
.score span { font-size: 13px; color: var(--dim); }
.in-lists { display: flex; flex-direction: column; gap: 2px; font-size: 13px; }
.in-lists b { color: var(--ember-soft); }
.show-desc { margin: 0; max-width: 760px; color: var(--text-2); font-size: 15px; line-height: 1.85; display: -webkit-box; -webkit-line-clamp: 5; -webkit-box-orient: vertical; overflow: hidden; cursor: pointer; }
.show-desc.open { -webkit-line-clamp: unset; }
.show-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.btn-glass[aria-pressed="true"] { color: var(--green); }
.show-body { display: flex; gap: 40px; align-items: flex-start; }
.show-main { flex: 999 1 560px; min-width: 0; }
.show-side { width: 340px; flex: none; display: flex; flex-direction: column; gap: 12px; }
.show-side h2 { margin: 0; font-size: 20px; font-weight: 900; }
.in-list { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); }
.in-list .serif { width: 52px; height: 40px; border-radius: 10px; background: rgba(255,107,61,.14); color: var(--ember-soft); display: grid; place-items: center; font-weight: 900; font-size: 14px; flex: none; }
.eps-wrap .epgrid { grid-template-columns: repeat(auto-fill, minmax(56px, 1fr)); max-height: none; }
a.epb { display: grid; place-items: center; }
.epgrid[hidden] { display: none !important; }
.eps-wrap .ranges { margin-bottom: 10px; }
.people { display: flex; gap: 10px; flex-wrap: wrap; }
.person { display: flex; align-items: center; gap: 10px; padding: 6px 14px 6px 6px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--line); font-size: 14px; }
.person:hover { border-color: rgba(255,255,255,.2); }
.person .av { width: 32px; height: 32px; border-radius: 50%; background: #2A2A32; display: grid; place-items: center; font-weight: 700; font-size: 13px; }
.person small { color: var(--mute); font-size: 12px; }

/* library */
.lib-head { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; margin-bottom: 18px; }
.lib-head h1 { margin: 0; font-size: 36px; font-weight: 900; }
.facets { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 10px 16px; display: flex; flex-direction: column; gap: 2px; position: relative; margin-bottom: 18px; }
.facet { display: flex; align-items: flex-start; gap: 10px; min-height: 40px; padding: 4px 0; }
.facet-l { width: 40px; flex: none; font-size: 13px; color: var(--mute); padding-top: 7px; }
.facet-opts { display: flex; gap: 2px; flex-wrap: wrap; flex: 1; min-width: 0; }
.facet-opts a, .year-custom { height: 32px; padding: 0 12px; border-radius: 8px; color: var(--text-2); font-size: 14px; display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; border: 0; background: none; }
.facet-opts a:hover, .year-custom:hover { color: #fff; background: rgba(255,255,255,.06); }
.facet-opts a.on { background: var(--light); color: var(--ground); font-weight: 700; }
.year-custom { border: 1px dashed rgba(255,255,255,.22); }
.year-custom svg { width: 14px; height: 14px; }
.year-custom.on { background: var(--ember); color: var(--ember-ink); border-color: var(--ember); font-weight: 700; }
.lib-bar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 22px; }
.chip-x { height: 34px; padding: 0 10px 0 14px; border-radius: 999px; background: rgba(255,107,61,.16); color: #FFB79C; font-size: 13px; font-weight: 700; display: inline-flex; align-items: center; gap: 6px; }
.chip-x svg { width: 12px; height: 12px; }
.clear-all { font-size: 13px; color: var(--dim); padding: 0 6px; }
.sorts { display: flex; gap: 2px; background: var(--surface); border: 1px solid var(--line); padding: 3px; border-radius: 999px; }
.sorts a { height: 34px; padding: 0 14px; border-radius: 999px; font-size: 13px; color: var(--text-2); display: inline-flex; align-items: center; }
.sorts a.on { background: var(--light); color: var(--ground); font-weight: 700; }
.pager { display: flex; gap: 6px; justify-content: center; align-items: center; margin-top: 36px; flex-wrap: wrap; }
.pager a { min-width: 40px; height: 40px; padding: 0 12px; border-radius: 10px; display: grid; place-items: center; color: var(--text-2); font: 600 14px Inter, "Noto Sans SC", sans-serif; border: 1px solid var(--line); }
.pager a:hover { color: #fff; border-color: rgba(255,255,255,.24); }
.pager a.on { background: var(--light); color: var(--ground); border-color: var(--light); }
.pager span { color: #6E6E78; }

/* year picker */
.ypick { position: absolute; left: 56px; z-index: 20; width: min(760px, calc(100% - 72px)); border-radius: 18px; padding: 18px; box-shadow: 0 30px 80px rgba(0,0,0,.7); display: flex; flex-direction: column; gap: 14px; animation: tin .2s var(--ease); }
.ypick-h { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.ypick-h b { font: 900 17px "Noto Serif SC", serif; }
.ypick-h .dim { font-size: 13px; }
.ypick-h .grow { flex: 1; }
.ypick-h label { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--text-2); }
.ypick-h input { width: 66px; height: 34px; border-radius: 8px; border: 1px solid var(--line-2); background: var(--ground); color: var(--text); text-align: center; font: 600 14px Inter, sans-serif; }
.ydecs { display: flex; flex-direction: column; gap: 6px; max-height: 340px; overflow-y: auto; padding-right: 4px; }
.ydec { display: flex; align-items: center; gap: 10px; }
.ydec > span { width: 64px; flex: none; font-size: 12px; color: var(--mute); text-align: right; }
.ydec > div { flex: 1; display: grid; grid-template-columns: repeat(10, minmax(0, 1fr)); gap: 4px; }
.ydec button { height: 34px; border-radius: 8px; border: 1px solid transparent; background: rgba(255,255,255,.04); color: var(--text-2); font: 500 13px Inter, sans-serif; }
.ydec button:hover { border-color: rgba(255,255,255,.3); color: #fff; }
.ydec button.in { background: rgba(255,107,61,.22); color: #FFD3C2; }
.ydec button.edge { background: var(--ember); color: var(--ember-ink); font-weight: 700; }
.ydec button[disabled] { visibility: hidden; }
.ypick-f { display: flex; gap: 10px; justify-content: flex-end; align-items: center; }
.ypick-f .dim { margin-right: auto; font-size: 13px; }
.ypick-f button { height: 40px; padding: 0 20px; border-radius: 999px; font-size: 14px; }
.ypick-f .ghost { border: 1px solid var(--line-2); background: none; color: var(--text); }
.ypick-f .go { border: 0; background: var(--light); color: var(--ground); font-weight: 700; }

/* footer, 404 */
.foot { flex-direction: column; }
.foot-cols { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; width: 100%; }
.foot-cols div { display: flex; flex-direction: column; gap: 8px; }
.foot-cols b { color: var(--text-2); }
.foot-cols a { color: var(--mute); }
.foot-cols a:hover { color: var(--text); }
.foot-note { margin: 16px 0 0; }
.notfound { padding-top: 60px; display: flex; flex-direction: column; gap: 16px; align-items: flex-start; }
.notfound h1 { margin: 0; font-size: 40px; }
.nf-search { display: flex; gap: 10px; width: min(520px, 100%); }
.nf-search input { flex: 1; height: 52px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--surface); padding: 0 20px; color: var(--text); }
.nf-search .btn-primary { height: 52px; }
.search-head { padding-top: 0; }
.chips a { height: 40px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line-2); color: var(--text-2); font-size: 14px; display: inline-flex; align-items: center; gap: 8px; }
.chips a .num { color: var(--mute); }
.chips a.on { background: var(--light); border-color: var(--light); color: var(--ground); font-weight: 700; }
.chips a.on .num { color: var(--ground); }

@media (max-width: 980px) {
  .show-top { gap: 28px; } .show-poster { width: 220px; }
  .show-body { flex-direction: column; } .show-side { width: 100%; }
  .watch-crumbs { padding: 0 24px; }
}
@media (max-width: 760px) {
  .show-top { flex-direction: column; align-items: flex-start; } .show-poster { width: 160px; }
  .foot-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .facet { flex-direction: column; gap: 4px; } .facet-l { padding-top: 0; }
  .facet-opts { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; width: 100%; }
  .ypick { left: 8px; right: 8px; width: auto; }
  .ydec > div { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .watch-crumbs { padding: 0 16px; }
  .lib-head h1 { font-size: 28px; }
}

/* lists */
.lists-head { display: flex; flex-direction: column; gap: 8px; max-width: 760px; margin-bottom: 40px; }
.lists-head h1 { margin: 0; font-size: 44px; font-weight: 900; }
.lists-head p { margin: 0; color: #B4B4BD; font-size: 16px; line-height: 1.7; }
.lc-grid { display: grid; gap: 16px; }
.lc-grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.lc-grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.lc-grid.four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.lc { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 18px; display: flex; flex-direction: column; gap: 12px; transition: border-color .2s; min-width: 0; }
.lc:hover { border-color: rgba(255,255,255,.2); }
.lc-name { font-size: 19px; font-weight: 900; }
.lc-name.big { font-size: 28px; display: block; }
.lc-how { font-size: 12px; color: var(--mute); line-height: 1.6; }
.lc-eyebrow { font-size: 13px; font-weight: 700; color: var(--gold); }
.lc-intro { font-size: 14px; color: var(--text-2); line-height: 1.7; max-width: 560px; display: block; }
.lc-badge { align-self: flex-start; font-size: 12px; font-weight: 700; color: var(--ember-ink); padding: 2px 9px; border-radius: 999px; background: var(--ember); }
.lc.now.n0 { background: linear-gradient(150deg, rgba(125,211,111,.10), var(--surface) 55%); }
.lc.now.n0 .lc-badge { background: var(--green); }
.lc.now.n1 { background: linear-gradient(150deg, rgba(242,193,78,.10), var(--surface) 55%); }
.lc.now.n1 .lc-badge { background: var(--gold); }
.lc.now.n2 { background: linear-gradient(150deg, rgba(255,107,61,.12), var(--surface) 55%); }
.lc-posters { display: flex; gap: 8px; }
.lc-posters img, .lc-posters .ph { flex: 1; min-width: 0; aspect-ratio: 2/3; border-radius: 8px; object-fit: cover; }
.lc.canon { flex-direction: row; align-items: center; gap: 22px; padding: 22px; background: linear-gradient(120deg, rgba(255,107,61,.12), var(--surface) 60%); }
.lc.canon > div:first-child { display: flex; flex-direction: column; gap: 6px; min-width: 170px; }
.lc-ranked { flex: 1; display: flex; gap: 8px; justify-content: flex-end; min-width: 0; }
.lc-ranked span { width: 70px; flex: none; aspect-ratio: 2/3; border-radius: 8px; overflow: hidden; position: relative; background: var(--surface-2); }
.lc-ranked img { width: 100%; height: 100%; object-fit: cover; }
.lc-ranked b { position: absolute; left: 5px; top: 0; font-size: 18px; font-weight: 900; color: #FFB79C; text-shadow: 0 2px 8px rgba(0,0,0,.7); }
.lc-links { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.lc-links .dim { font-size: 13px; width: 52px; }
.lc-years { display: flex; gap: 6px; flex-wrap: wrap; }
.pill.on { background: var(--light); color: var(--ground); border-color: var(--light); font-weight: 700; }
.lc.featured { flex-direction: row; align-items: center; gap: 28px; padding: 26px; background: linear-gradient(120deg, #3A1812, var(--surface) 65%); }
.lc.featured > div:first-child { flex: 1; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.lc.featured .lc-posters { width: 380px; flex: none; }
.list-head { display: flex; gap: 40px; align-items: flex-end; margin-bottom: 28px; }
.list-title { flex: 1; display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.list-title h1 { margin: 0; font-size: clamp(34px, 5vw, 54px); font-weight: 900; letter-spacing: 2px; line-height: 1.1; }
.list-title p { margin: 0; font-size: 16px; color: var(--text-2); line-height: 1.8; max-width: 640px; }
.list-how { width: 330px; flex: none; padding: 18px; border-radius: 18px; background: rgba(17,17,20,.85); border: 1px solid var(--line-2); display: flex; flex-direction: column; gap: 8px; font-size: 13px; color: var(--text-2); }
.list-how b { color: var(--text); }
.ranked { list-style: none; margin: 0 0 40px; padding: 0; display: flex; flex-direction: column; gap: 2px; max-width: 1120px; }
.rk { display: flex; gap: 20px; align-items: center; padding: 12px 16px; border-radius: 18px; transition: background .2s; }
.rk:hover { background: #141417; }
.rk-n { width: 48px; flex: none; text-align: center; font-size: 24px; font-weight: 900; color: #6E6E78; }
.rk-n.top { font-size: 34px; color: var(--gold); }
.rk-p { width: 72px; flex: none; aspect-ratio: 2/3; border-radius: 9px; overflow: hidden; background: var(--surface-2); box-shadow: 0 10px 24px -10px rgba(0,0,0,.8); }
.rk-p img { width: 100%; height: 100%; object-fit: cover; }
.rk-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.rk-t { font-size: 18px; font-weight: 700; }
.rk-m { font-size: 13px; color: var(--dim); }
.rk-d { font-size: 13px; color: var(--mute); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rk-r { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; flex: none; }
.rk-r b { font-size: 22px; color: var(--gold); }
.rk-r small { font-size: 12px; color: var(--mute); }
@media (max-width: 980px) { .lc-grid.three, .lc-grid.four { grid-template-columns: repeat(2, minmax(0, 1fr)); } .lc-grid.two { grid-template-columns: 1fr; } .lc.featured .lc-posters { width: 260px; } .list-head { flex-direction: column; align-items: stretch; } .list-how { width: auto; } }
@media (max-width: 760px) { .lc-grid.three, .lc-grid.four { grid-template-columns: 1fr; } .lc.canon, .lc.featured { flex-direction: column; align-items: stretch; } .lc.featured .lc-posters { width: auto; } .rk { gap: 12px; padding: 10px 4px; } .rk-n { width: 30px; font-size: 18px; } .rk-n.top { font-size: 24px; } .rk-p { width: 56px; } .rk-t { font-size: 16px; } .rk-d { display: none; } }

/* rating range panel */
.rpick { width: min(520px, calc(100% - 72px)); }
.rlabel { font-size: 15px; font-weight: 700; color: var(--gold); }
.rslider { position: relative; height: 32px; }
.rtrack { position: absolute; left: 9px; right: 9px; top: 13px; height: 6px; border-radius: 3px; background: rgba(255,255,255,.16); }
.rfill { position: absolute; top: 0; bottom: 0; background: var(--gold); border-radius: 3px; }
.rslider input[type=range] { position: absolute; inset: 0; width: 100%; margin: 0; background: none; pointer-events: none; -webkit-appearance: none; appearance: none; }
.rslider input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; pointer-events: auto; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 4px rgba(242,193,78,.45); cursor: pointer; }
.rslider input[type=range]::-moz-range-thumb { pointer-events: auto; width: 20px; height: 20px; border: 0; border-radius: 50%; background: #fff; box-shadow: 0 0 0 4px rgba(242,193,78,.45); cursor: pointer; }
.rslider input[type=range]::-webkit-slider-runnable-track, .rslider input[type=range]::-moz-range-track { background: none; }
.rticks { display: flex; justify-content: space-between; padding: 0 4px; font-size: 11px; color: var(--mute); margin-top: -6px; }
.rvotes { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.rvotes .dim { font-size: 13px; margin-right: 6px; }
.rvotes button { height: 34px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line-2); background: none; color: var(--text-2); font-size: 13px; }
.rvotes button[aria-pressed="true"] { background: var(--light); color: var(--ground); border-color: var(--light); font-weight: 700; }
.rpick .small { margin: 0; }
.btn-primary, .btn-glass { white-space: nowrap; }
@media (max-width: 760px) { .hero-actions .btn-primary, .hero-actions .btn-glass { height: 50px; padding: 0 18px; font-size: 15px; } .hero-actions .btn-primary .sub { display: none; } }

/* ---------- channel: browse bar (sticky) + banner ---------- */
.browsebar { position: sticky; top: 0; z-index: 30; transition: background .2s, box-shadow .2s; }
.browsebar.stuck { background: rgba(12,12,14,.82); -webkit-backdrop-filter: blur(20px) saturate(1.4); backdrop-filter: blur(20px) saturate(1.4); box-shadow: 0 1px 0 var(--line); }
.bb-in { max-width: 1440px; margin: 0 auto; padding: 6px var(--pad) 14px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.browsebar.stuck .bb-in { padding-top: 10px; padding-bottom: 10px; }
.bb-title { margin: 0 10px 0 0; font-size: 32px; font-weight: 900; transition: font-size .2s; }
.browsebar.stuck .bb-title { font-size: 20px; }
.bb-regions { display: flex; gap: 4px; flex-wrap: wrap; }
.bb-regions a { height: 38px; padding: 0 14px; border-radius: 999px; display: inline-flex; align-items: center; background: var(--surface-2); border: 1px solid var(--line); color: var(--text-2); font-size: 14px; }
.bb-regions a:hover { color: var(--text); border-color: rgba(255,255,255,.24); }
.dd { position: relative; }
.dd summary { list-style: none; height: 38px; padding: 0 12px 0 14px; border-radius: 999px; display: inline-flex; align-items: center; gap: 4px; border: 1px solid var(--line-2); color: var(--text); font-size: 14px; cursor: pointer; user-select: none; }
.dd summary::-webkit-details-marker { display: none; }
.dd summary:hover, .dd[open] summary { background: rgba(255,255,255,.08); }
.dd .caret { width: 14px; height: 14px; transition: transform .2s; }
.dd[open] .caret { transform: rotate(180deg); }
.dd-menu { position: absolute; top: calc(100% + 8px); left: 0; z-index: 40; min-width: 180px; padding: 8px; border-radius: 14px; background: rgba(28,28,33,.96); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px); border: 1px solid var(--line-2); box-shadow: 0 20px 50px rgba(0,0,0,.6); display: flex; flex-direction: column; gap: 2px; animation: tin .15s var(--ease); }
.dd-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); min-width: 300px; }
.dd-menu a, .dd-pick { height: 36px; padding: 0 12px; border-radius: 8px; display: flex; align-items: center; color: var(--text-2); font-size: 14px; white-space: nowrap; background: none; border: 0; text-align: left; }
.dd-menu a:hover, .dd-pick:hover { background: rgba(255,255,255,.08); color: var(--text); }
.dd-pick { color: #FFB79C; border-top: 1px solid var(--line); border-radius: 0 0 8px 8px; margin-top: 4px; padding-top: 4px; height: 40px; }
.bb-all { height: 38px; padding: 0 16px; border-radius: 999px; display: inline-flex; align-items: center; gap: 8px; background: var(--light); color: var(--ground); font-size: 14px; font-weight: 700; }
.bb-all svg { width: 16px; height: 16px; }
.bb-all:hover { color: var(--ground); filter: brightness(.92); }
.browsebar .ypick { left: auto; }

.banner { position: relative; height: 340px; border-radius: 24px; overflow: hidden; margin: 6px 0 44px; background: var(--surface); }
.bn-slide { position: absolute; inset: 0; opacity: 0; visibility: hidden; transition: opacity .6s var(--ease), visibility .6s; }
.bn-slide.on { opacity: 1; visibility: visible; }
.bn-bg { position: absolute; inset: 0; }
.bn-bg img { width: 100%; height: 100%; object-fit: cover; object-position: center 25%; filter: blur(26px) saturate(1.3); transform: scale(1.15); opacity: .7; }
.bn-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(12,12,14,.92) 0%, rgba(12,12,14,.6) 50%, rgba(12,12,14,.15) 100%); }
.bn-text { position: absolute; left: 40px; top: 50%; transform: translateY(-50%); max-width: 560px; display: flex; flex-direction: column; gap: 14px; }
.bn-title { margin: 0; font-size: clamp(32px, 4.4vw, 56px); font-weight: 900; letter-spacing: 3px; line-height: 1.1; }
.bn-text .btn-primary, .bn-text .btn-glass { height: 48px; font-size: 15px; }
.bn-poster { position: absolute; right: 170px; top: 50%; transform: translateY(-50%) rotate(2deg); width: 170px; aspect-ratio: 2/3; border-radius: 14px; overflow: hidden; box-shadow: 0 30px 60px -20px rgba(0,0,0,.9); }
.bn-poster img { width: 100%; height: 100%; object-fit: cover; }
.bn-thumbs { position: absolute; right: 22px; top: 50%; transform: translateY(-50%); display: flex; flex-direction: column; gap: 8px; }
.bn-thumb { width: 52px; aspect-ratio: 2/3; border-radius: 8px; overflow: hidden; padding: 0; border: 2px solid transparent; background: var(--surface-2); opacity: .55; transition: opacity .2s, border-color .2s; }
.bn-thumb[aria-selected="true"] { opacity: 1; border-color: var(--light); }
.bn-thumb:hover { opacity: 1; }
.bn-thumb img { width: 100%; height: 100%; object-fit: cover; }

/* home hero: a little tighter */
body.p-home .hero { padding: 24px 0 40px; }
body.p-home .hero-title { font-size: clamp(44px, 6vw, 88px); }
body.p-home .hero-art { width: 300px; }

@media (max-width: 980px) { .bn-poster { right: 110px; width: 130px; } .bn-thumbs { right: 14px; } .bn-thumb { width: 44px; } }
@media (max-width: 760px) {
  .bb-in { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; padding: 4px var(--pad) 10px; }
  .bb-title { font-size: 22px; flex: none; }
  .bb-regions { flex-wrap: nowrap; }
  .bb-regions a, .dd summary, .bb-all { flex: none; height: 36px; }
  .dd-menu { position: fixed; left: 12px; right: 12px; top: auto; }
  .banner { height: 280px; margin-bottom: 32px; border-radius: 18px; }
  .bn-text { left: 18px; right: 18px; max-width: none; gap: 10px; }
  .bn-poster, .bn-thumbs { display: none; }
  .bn-text .hero-meta { font-size: 13px; }
}
.bn-thumbs { gap: 6px; }
.bn-thumb { width: 38px; border-radius: 6px; }
@media (max-width: 980px) { .bn-thumb { width: 36px; } }
.browsebar .ypick { max-height: calc(100vh - 140px); overflow-y: auto; }
