/* WatchTrove: "Night Trove" theme. Plum-black surfaces, warm off-white type, lime for action, lavender for labels. */
:root {
  --bg: #110A14;
  --surface: #1A1020;
  --surface-2: #24172C;
  --surface-3: #2F2039;
  --line: #3B2A46;
  --line-soft: #2A1D32;
  --ink: #F5EFE6;
  --text-2: #D3C8D9;
  --muted: #A898B3;
  --lime: #C9F35B;
  --lime-hi: #DCFF86;
  --on-lime: #110A14;
  --lav: #B9A6E3;
  --lav-soft: #2C2140;
  --lav-ink: #D9CCF5;
  --notice-bg: #33241A;
  --notice-ink: #F7DCC0;
  --font-display: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --font-body: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --radius: 14px;
  --radius-sm: 9px;
  --gutter: 16px;
  --mast-h: 64px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

@font-face {
  font-family: 'Plus Jakarta Sans';
  src: url('../fonts/plus-jakarta-sans.woff2') format('woff2');
  font-weight: 400 700;
  font-style: normal;
  font-display: optional;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: calc(var(--mast-h) + 56px); }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 400 1rem/1.6 var(--font-body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body.is-locked { overflow: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 700; line-height: 1.14; letter-spacing: -.018em; margin: 0; text-wrap: balance; }
h1 { font-size: clamp(2rem, 1.4rem + 2.6vw, 3.2rem); line-height: 1.1; letter-spacing: -.022em; }
h3 { font-weight: 600; }
h2 { font-size: clamp(1.45rem, 1.15rem + 1.3vw, 2.05rem); }
h3 { font-size: 1.1rem; }
p { margin: 0 0 1rem; }
ul, ol { margin: 0; padding: 0; }
:focus-visible { outline: 2px solid var(--lime); outline-offset: 3px; border-radius: 4px; }
main:focus { outline: none; }
::selection { background: var(--lime); color: var(--on-lime); }
.sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
.wrap { width: 100%; max-width: 1320px; margin-inline: auto; padding-inline: var(--gutter); }
.icon { flex: none; vertical-align: middle; }
.muted { color: var(--muted); }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--lime); color: var(--on-lime); padding: 10px 16px; border-radius: 8px; font-weight: 700; text-decoration: none; }
.skip:focus { top: 12px; }
.kicker {
  display: inline-flex; align-items: center; gap: 8px; margin: 0 0 12px;
  font: 600 .75rem/1.2 var(--font-display); letter-spacing: .14em; text-transform: uppercase; color: var(--lav);
}
.kicker::before { content: ''; width: 18px; height: 2px; background: var(--lime); border-radius: 2px; }
.textlink { color: var(--lime); font-weight: 600; text-decoration: none; display: inline-flex; align-items: center; gap: 6px; }
.textlink:hover { text-decoration: underline; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 10px 20px;
  border: 1px solid transparent; border-radius: 999px; font: 600 .95rem/1.1 var(--font-display); letter-spacing: .01em;
  text-decoration: none; white-space: nowrap; background: none; transition: background-color .2s, border-color .2s, color .2s, transform .2s var(--ease);
}
.btn:active { transform: scale(.97); }
.btn--lime { background: var(--lime); color: var(--on-lime); }
.btn--lime:hover { background: var(--lime-hi); }
.btn--ghost { background: rgba(245, 239, 230, .06); border-color: rgba(245, 239, 230, .22); color: var(--ink); }
.btn--ghost:hover { border-color: var(--lav); background: rgba(185, 166, 227, .12); }
.btn--ghost[aria-pressed="true"] { background: var(--lav-soft); border-color: var(--lav); color: var(--lav-ink); }
.btn--line { border-color: var(--line); color: var(--ink); }
.btn--line:hover { border-color: var(--lime); color: var(--lime); }
.btn--small { min-height: 38px; padding: 7px 14px; font-size: .88rem; }
.btn[disabled] { opacity: .45; cursor: not-allowed; }
.btn[hidden] { display: none; }

/* ---------- Masthead ---------- */
.mast { position: sticky; top: 0; z-index: 40; background: var(--bg); border-bottom: 1px solid var(--line-soft); }
.mast__bar { position: relative; display: flex; align-items: center; gap: 14px; height: var(--mast-h); max-width: 1320px; margin-inline: auto; padding-inline: var(--gutter); }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; flex: none; }
.brand__mark { display: block; }
.brand__word { font: 700 1.26rem/1 var(--font-display); letter-spacing: -.025em; color: var(--ink); }
.brand__word b { font-weight: 700; color: var(--lime); }
.nav { display: none; }
.nav__list { list-style: none; display: flex; align-items: center; gap: 2px; }
.nav__list > li > a, .drop > summary {
  display: inline-flex; align-items: center; gap: 5px; height: 40px; padding: 0 13px; border-radius: 999px;
  font: 500 .93rem/1 var(--font-display); color: var(--text-2); text-decoration: none; cursor: pointer; list-style: none;
}
.drop > summary::-webkit-details-marker { display: none; }
.nav__list > li > a:hover, .drop > summary:hover { color: var(--ink); background: var(--surface-2); }
.nav__list a[aria-current="page"], .drop > summary[data-current] { color: var(--ink); box-shadow: inset 0 -2px 0 var(--lime); border-radius: 0; }
.drop { position: relative; }
.drop[open] > summary .icon { transform: rotate(180deg); }
.drop__panel {
  position: absolute; top: calc(100% + 8px); left: 0; min-width: 230px; list-style: none; padding: 8px;
  background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 24px 50px rgba(0, 0, 0, .5);
}
.drop__panel a { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 9px; text-decoration: none; color: var(--text-2); font-weight: 500; }
.drop__panel a:hover { background: var(--surface-3); color: var(--ink); }
.drop__panel .icon { color: var(--lav); }
.mast__search { display: none; flex: 1; max-width: 420px; margin-left: auto; }
.tools { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.tool {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-width: 44px; height: 44px; padding: 0 10px;
  border: 0; border-radius: 999px; background: transparent; color: var(--text-2); text-decoration: none; font: 600 .85rem/1 var(--font-display);
}
.tool:hover, .tool[aria-current="page"] { background: var(--surface-2); color: var(--ink); }
.tool--region span { letter-spacing: .06em; }
.tool__label { display: none; }
.count {
  min-width: 19px; height: 19px; padding: 0 5px; border-radius: 999px; background: var(--lime); color: var(--on-lime);
  font: 700 .7rem/19px var(--font-body); text-align: center;
}
.count[hidden] { display: none; }
.tool .count { position: absolute; top: 3px; right: 1px; }
.mast.is-searching .mast__search {
  display: block; position: absolute; left: 0; right: 0; top: 100%; max-width: none; padding: 10px var(--gutter) 14px;
  background: var(--bg); border-bottom: 1px solid var(--line-soft);
}

/* Drawer (phones and tablets) */
.drawer { position: fixed; inset: var(--mast-h) 0 0; z-index: 39; overflow-y: auto; background: var(--bg); padding: 10px var(--gutter) 40px; }
.drawer[hidden] { display: none; }
.drawer__list { list-style: none; counter-reset: d; }
.drawer__list > li { border-bottom: 1px solid var(--line-soft); }
.drawer__list > li > a, .drawer__group > summary {
  display: flex; align-items: baseline; gap: 14px; padding: 15px 2px; text-decoration: none; list-style: none; cursor: pointer;
  font: 700 1.5rem/1.1 var(--font-display); letter-spacing: -.02em;
}
.drawer__group > summary::-webkit-details-marker { display: none; }
.drawer__list > li > a::before, .drawer__group > summary::before {
  counter-increment: d; content: counter(d, decimal-leading-zero); font: 600 .75rem/1 var(--font-display); color: var(--lav); letter-spacing: .08em;
}
.drawer__group > summary .icon { margin-left: auto; align-self: center; color: var(--muted); }
.drawer__group[open] > summary .icon { transform: rotate(180deg); }
.drawer__sub { list-style: none; padding: 0 0 14px 34px; display: grid; gap: 2px; }
.drawer__sub a { display: block; padding: 9px 0; color: var(--text-2); text-decoration: none; font-weight: 500; }
.drawer a[aria-current="page"] { color: var(--lime); }
.drawer__list > .drawer__small > a { font-size: 1.05rem; color: var(--text-2); }

/* ---------- Search with suggestions ---------- */
.finder { position: relative; display: flex; align-items: center; background: var(--surface-2); border: 1px solid var(--line); border-radius: 999px; transition: border-color .2s; }
.finder:focus-within { border-color: var(--lav); }
.finder__icon { display: flex; padding-left: 15px; color: var(--muted); }
.finder input { flex: 1; min-width: 0; height: 44px; padding: 0 10px; border: 0; background: transparent; outline: none; font-size: 1rem; }
.finder input::placeholder { color: var(--muted); }
.finder__go { flex: none; height: 36px; margin-right: 4px; padding: 0 16px; border: 0; border-radius: 999px; background: var(--lime); color: var(--on-lime); font: 700 .88rem/1 var(--font-display); }
.finder__go:hover { background: var(--lime-hi); }
.finder--head .finder__go { display: none; }
.finder--hero { border-width: 1.5px; border-color: rgba(185, 166, 227, .45); background: var(--surface); }
.finder--hero input { height: 58px; font-size: 1.08rem; }
.finder--hero .finder__go { height: 46px; padding: 0 22px; margin-right: 6px; font-size: .98rem; }
.finder--page { max-width: 640px; margin-bottom: 26px; }
.suggest {
  position: absolute; top: calc(100% + 8px); left: 0; right: 0; z-index: 50; list-style: none; padding: 6px; max-height: min(70vh, 470px); overflow-y: auto;
  background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 26px 60px rgba(0, 0, 0, .55);
}
.suggest[hidden] { display: none; }
.suggest a { display: flex; align-items: center; gap: 12px; padding: 7px 9px; border-radius: 10px; text-decoration: none; }
.suggest [aria-selected="true"] a, .suggest a:hover { background: var(--surface-3); }
.suggest img, .suggest__blank { width: 36px; height: 54px; border-radius: 6px; object-fit: cover; background: var(--surface-3); flex: none; }
.suggest strong { display: block; font-weight: 600; line-height: 1.25; }
.suggest small { color: var(--muted); }
.suggest__score { margin-left: auto; color: var(--lime); font: 700 .85rem/1 var(--font-display); }
.suggest__state { padding: 12px; color: var(--muted); }

/* ---------- Page header and crumbs ---------- */
.pagehead { position: relative; padding: 26px 0 30px; border-bottom: 1px solid var(--line-soft); margin-bottom: 30px; background: radial-gradient(900px 260px at 0% 0%, rgba(185, 166, 227, .1), transparent 70%); }
.pagehead h1 { max-width: 22ch; }
.pagehead__lede { max-width: 68ch; margin: 14px 0 0; color: var(--text-2); font-size: 1.06rem; }
.pagehead__links { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 0; }
.crumbs { margin-bottom: 18px; font-size: .86rem; }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 4px 0; }
.crumbs li { display: inline-flex; align-items: center; color: var(--muted); min-width: 0; }
.crumbs li + li::before { content: '/'; margin: 0 9px; color: var(--muted); }
.crumbs a { color: var(--text-2); text-decoration: none; }
.crumbs a:hover { color: var(--lime); }
.crumbs [aria-current] { color: var(--ink); max-width: 32ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---------- Poster card ---------- */
.card { position: relative; }
.card__link { display: block; text-decoration: none; }
.card__art {
  position: relative; display: block; aspect-ratio: 2 / 3; overflow: hidden; border-radius: var(--radius-sm);
  background: linear-gradient(160deg, var(--surface-3), var(--surface)); box-shadow: 0 0 0 1px var(--line-soft);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.card__art img { width: 100%; height: 100%; object-fit: cover; }
.card__link:hover .card__art, .card__link:focus-visible .card__art { transform: translateY(-4px); box-shadow: 0 0 0 1.5px var(--lav), 0 18px 34px rgba(0, 0, 0, .45); }
.card__blank { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; padding: 12px; color: var(--muted); text-align: center; font-size: .78rem; }
.card__shade { position: absolute; inset: auto 0 0; height: 42%; background: linear-gradient(transparent, rgba(17, 10, 20, .85)); pointer-events: none; }
.card__kind {
  position: absolute; top: 9px; left: 9px; padding: 3px 7px; border-radius: 5px; background: rgba(17, 10, 20, .8);
  color: var(--lav-ink); font: 700 .64rem/1.2 var(--font-display); letter-spacing: .12em; text-transform: uppercase;
}
.card__score { position: absolute; left: 9px; bottom: 9px; display: inline-flex; align-items: center; gap: 4px; color: var(--lime); font: 700 .86rem/1 var(--font-display); }
.card__score--soon { color: var(--lav-ink); font-size: .74rem; letter-spacing: .1em; text-transform: uppercase; }
.card__title { margin: 11px 0 3px; font: 600 .94rem/1.32 var(--font-display); letter-spacing: -.005em; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card__link:hover .card__title { color: var(--lime); }
.card__meta { margin: 0; color: var(--muted); font-size: .82rem; }
.save {
  position: absolute; top: 7px; right: 7px; z-index: 2; display: flex; align-items: center; justify-content: center; width: 36px; height: 36px;
  border: 0; border-radius: 50%; background: rgba(17, 10, 20, .75); color: var(--ink); transition: background-color .2s, color .2s, transform .2s var(--ease);
}
.save:hover { background: var(--bg); color: var(--lime); transform: scale(1.06); }
.save[aria-pressed="true"] { background: var(--lime); color: var(--on-lime); }
.save[aria-pressed="true"] .icon { fill: currentColor; }
.liststate { margin-top: 8px; padding: 6px 0; border: 0; background: none; color: var(--lav); font-size: .84rem; font-weight: 600; text-align: left; }
.liststate:hover { color: var(--lime); text-decoration: underline; }

/* Wide card: a backdrop frame, used for recommendations */
.card--wide .card__art { aspect-ratio: 16 / 9; }
.card--wide .card__title { -webkit-line-clamp: 1; font-size: 1.04rem; }
.card__why { margin: 4px 0 0; color: var(--text-2); font-size: .84rem; }
.card__why strong { color: var(--lime); font-weight: 700; }

/* ---------- Grids and rails ---------- */
.grid { list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px 14px; }
.grid.is-loading { opacity: .5; transition: opacity .2s; }
.grid--ranked > li { position: relative; }
.grid--ranked > li::after {
  content: attr(data-rank); position: absolute; top: -10px; left: -6px; z-index: 3; min-width: 32px; height: 32px; padding: 0 7px; border-radius: 999px;
  background: var(--lime); color: var(--on-lime); font: 700 .9rem/32px var(--font-display); text-align: center; box-shadow: 0 0 0 4px var(--bg);
}
.rail {
  list-style: none; display: grid; grid-auto-flow: column; grid-auto-columns: 136px; gap: 14px; overflow-x: auto; overscroll-behavior-x: contain;
  scroll-snap-type: x proximity; scroll-padding-inline: var(--gutter); padding: 6px var(--gutter) 10px; margin-inline: calc(var(--gutter) * -1);
  scrollbar-width: none;
}
.rail::-webkit-scrollbar { display: none; }
.rail > li { scroll-snap-align: start; }
.rail--wide { grid-auto-columns: min(78vw, 300px); }
.shelf { margin: 0 0 52px; }
.sechead { display: flex; align-items: flex-end; justify-content: space-between; gap: 18px; margin-bottom: 18px; }
.sechead__note { margin: 6px 0 0; color: var(--muted); font-size: .9rem; }
.sechead__tools { display: flex; align-items: center; gap: 8px; flex: none; }
.more { display: inline-flex; align-items: center; gap: 6px; color: var(--lime); font: 600 .92rem/1 var(--font-display); text-decoration: none; white-space: nowrap; }
.more .icon { transition: transform .2s var(--ease); }
.more:hover .icon { transform: translateX(3px); }
.railbtn {
  display: none; width: 40px; height: 40px; align-items: center; justify-content: center; border: 1px solid var(--line); border-radius: 50%;
  background: transparent; color: var(--ink);
}
.railbtn:hover:not([disabled]) { border-color: var(--lime); color: var(--lime); }
.railbtn[disabled] { opacity: .3; cursor: default; }

/* ---------- Homepage: opening ---------- */
.opening { position: relative; padding: 30px 0 40px; overflow: hidden; }
.opening::before {
  content: ''; position: absolute; inset: -20% -10% auto; height: 560px; pointer-events: none;
  background: radial-gradient(520px 320px at 12% 30%, rgba(201, 243, 91, .1), transparent 70%), radial-gradient(640px 420px at 88% 10%, rgba(185, 166, 227, .16), transparent 70%);
}
.opening__grid { position: relative; display: grid; gap: 34px; }
.opening h1 { font-size: clamp(2.3rem, 1.45rem + 2.9vw, 4.1rem); line-height: 1.08; letter-spacing: -.028em; max-width: 16ch; }
.opening h1 em { font-style: normal; color: var(--lime); }
.opening__lede { max-width: 54ch; margin: 18px 0 24px; color: var(--text-2); font-size: 1.08rem; }
.opening__jumps { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.opening__jumps a {
  display: inline-flex; align-items: center; gap: 7px; min-height: 38px; padding: 6px 14px; border: 1px solid var(--line); border-radius: 999px;
  color: var(--text-2); font: 600 .86rem/1 var(--font-display); text-decoration: none;
}
.opening__jumps a:hover { border-color: var(--lime); color: var(--lime); }
.opening__jumps .icon { color: var(--lav); }
.ticker { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 18px 18px 8px; }
.ticker__head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 6px; }
.ticker__head h2 { font-size: 1.05rem; letter-spacing: -.01em; }
.ticker__head a { color: var(--lime); font-size: .85rem; font-weight: 600; text-decoration: none; }
.ticker ol { list-style: none; }
.ticker li + li { border-top: 1px solid var(--line-soft); }
.ticker__item { display: grid; grid-template-columns: 34px 40px 1fr; align-items: center; gap: 12px; padding: 10px 0; text-decoration: none; }
.ticker__rank { font: 700 1.45rem/1 var(--font-display); color: transparent; -webkit-text-stroke: 1px var(--lav); letter-spacing: -.04em; }
.ticker__item img, .ticker__blank { width: 40px; height: 60px; border-radius: 6px; object-fit: cover; background: var(--surface-3); }
.ticker__item strong { display: block; font: 600 .98rem/1.25 var(--font-display); }
.ticker__item small { color: var(--muted); font-size: .8rem; }
.ticker__item:hover strong { color: var(--lime); }
.ticker__item:hover .ticker__rank { color: var(--lime); -webkit-text-stroke-color: var(--lime); }

/* ---------- Homepage: cover story ---------- */
.cover { position: relative; margin: 0 0 56px; border-radius: 22px; overflow: hidden; background: var(--surface); border: 1px solid var(--line-soft); }
.cover__media { display: none; }
.cover__body { position: relative; display: grid; grid-template-columns: 104px 1fr; gap: 0 16px; padding: 20px; }
.cover__poster { grid-row: span 2; border-radius: 10px; overflow: hidden; box-shadow: 0 14px 30px rgba(0, 0, 0, .5); align-self: start; }
.cover__label { justify-self: start; display: inline-flex; gap: 8px; align-items: center; margin: 0 0 10px; padding: 5px 10px; border-radius: 999px; background: var(--lime); color: var(--on-lime); font: 700 .7rem/1.1 var(--font-display); letter-spacing: .12em; text-transform: uppercase; }
.cover__title { font-size: clamp(1.6rem, 1.1rem + 2.6vw, 3.4rem); font-weight: 700; letter-spacing: -.025em; line-height: 1.05; }
.cover__title a { text-decoration: none; }
.cover__title a:hover { color: var(--lime); }
.cover__meta { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 6px 14px; margin: 14px 0 12px; color: var(--text-2); font-size: .9rem; list-style: none; }
.cover__meta .score { color: var(--lime); font-weight: 700; display: inline-flex; gap: 4px; align-items: center; }
.cover__story { grid-column: 1 / -1; color: var(--text-2); max-width: 60ch; }
.cover__actions { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 10px; }
.cover .save { position: static; width: 46px; height: 46px; border: 1px solid rgba(245, 239, 230, .22); background: rgba(245, 239, 230, .06); }
.cover .save[aria-pressed="true"] { border-color: var(--lime); background: var(--lime); }

/* ---------- Homepage: ranked lists ---------- */
.ranks { display: grid; gap: 28px 40px; margin: 0 0 56px; }
.ranks > .sechead { grid-column: 1 / -1; margin-bottom: 0; }
.searchpage .shelf { margin-top: 56px; }
.ranks__col h3 { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; font-size: 1.15rem; }
.ranks__col h3 .icon { color: var(--lime); }
.ranked { list-style: none; display: grid; grid-auto-flow: column; grid-auto-columns: 152px; gap: 10px; overflow-x: auto; padding: 4px var(--gutter) 10px; margin-inline: calc(var(--gutter) * -1); scrollbar-width: none; scroll-snap-type: x proximity; }
.ranked::-webkit-scrollbar { display: none; }
.ranked > li { scroll-snap-align: start; }
.ranked__item { position: relative; display: block; padding-left: 40px; text-decoration: none; }
.ranked__num {
  position: absolute; left: -2px; bottom: 40px; z-index: 0; font: 700 6.2rem/.8 var(--font-display); letter-spacing: -.08em;
  color: var(--bg); -webkit-text-stroke: 2px var(--lav); pointer-events: none;
}
.ranked__art { position: relative; z-index: 1; display: block; aspect-ratio: 2 / 3; border-radius: 9px; overflow: hidden; background: var(--surface-3); box-shadow: -8px 0 18px rgba(0, 0, 0, .45); }
.ranked__art img { width: 100%; height: 100%; object-fit: cover; }
.ranked__name { display: block; margin-top: 9px; font: 600 .92rem/1.25 var(--font-display); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ranked__score { display: block; color: var(--lime); font: 700 .8rem/1.3 var(--font-display); }
.ranked__item:hover .ranked__num { -webkit-text-stroke-color: var(--lime); }
.ranked__item:hover .ranked__name { color: var(--lime); }

/* ---------- Homepage: genre index ---------- */
.genre-index { margin: 0 0 56px; padding: 30px 0; border-block: 1px solid var(--line-soft); }
.genre-index ul { list-style: none; display: flex; flex-wrap: wrap; gap: 6px 0; margin-top: 16px; }
.genreword { display: inline-flex; align-items: baseline; gap: 8px; padding: 4px 16px 4px 0; text-decoration: none; }
.genreword strong { font: 700 clamp(1.4rem, 1rem + 1.9vw, 2.4rem)/1.1 var(--font-display); letter-spacing: -.025em; color: var(--ink); transition: color .2s; }
.genreword small { color: var(--muted); font-size: .8rem; max-width: 15ch; line-height: 1.25; }
.genreword:hover strong { color: var(--lime); }
.genre-index li + li .genreword::before { content: '/'; font: 400 clamp(1.2rem, .9rem + 1.6vw, 2.1rem)/1 var(--font-display); color: var(--line); margin-right: 8px; }

/* ---------- Homepage: calendar ---------- */
.agenda { list-style: none; display: grid; gap: 10px; }
.agenda__item { display: grid; grid-template-columns: 56px 44px 1fr; align-items: center; gap: 14px; padding: 10px 12px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line-soft); text-decoration: none; transition: border-color .2s; height: 100%; }
.agenda__item:hover { border-color: var(--lav); }
.agenda__date { display: flex; flex-direction: column; align-items: center; justify-content: center; height: 56px; border-radius: 10px; background: var(--lav-soft); color: var(--lav-ink); }
.agenda__date small { font: 700 .66rem/1 var(--font-display); letter-spacing: .14em; text-transform: uppercase; }
.agenda__date b { font: 700 1.45rem/1.05 var(--font-display); color: var(--ink); }
.agenda__item img, .agenda__blank { width: 44px; height: 66px; border-radius: 6px; object-fit: cover; background: var(--surface-3); }
.agenda__item strong { display: block; font: 600 1rem/1.25 var(--font-display); }
.agenda__item small { color: var(--muted); font-size: .82rem; }
.agenda__item:hover strong { color: var(--lime); }

/* ---------- Homepage: region and guide panels ---------- */
.panels { display: grid; gap: 18px; margin: 0 0 20px; }
.panel { position: relative; padding: 26px 22px; border-radius: 22px; background: var(--surface); border: 1px solid var(--line-soft); overflow: hidden; }
.panel h2 { font-size: clamp(1.4rem, 1.1rem + 1.2vw, 1.9rem); margin-bottom: 10px; }
.panel p { color: var(--text-2); }
.panel--lime { background: linear-gradient(140deg, #222E17, var(--surface) 70%); border-color: #3A4A21; }
.regionpick { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0 4px; }
.regionpick .btn[aria-pressed="true"] { background: var(--lime); color: var(--on-lime); border-color: var(--lime); }
.steps { list-style: none; counter-reset: s; display: grid; gap: 12px; margin: 14px 0 20px; }
.steps li { counter-increment: s; display: grid; grid-template-columns: 34px 1fr; gap: 12px; color: var(--text-2); }
.steps li::before { content: counter(s); display: flex; align-items: center; justify-content: center; width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--lav); color: var(--lav); font: 700 .85rem/1 var(--font-display); }
.steps strong { color: var(--ink); }

/* ---------- Title page ---------- */
.dossier { position: relative; isolation: isolate; padding: 18px 0 30px; overflow: hidden; }
.dossier .backdrop { position: absolute; inset: 0 0 auto; z-index: -2; height: min(70vh, 620px); }
.dossier .backdrop img { width: 100%; height: 100%; object-fit: cover; object-position: center 22%; opacity: .55; }
.dossier::before { content: ''; position: absolute; inset: 0 0 auto; z-index: -1; height: min(70vh, 620px); background: linear-gradient(180deg, rgba(17, 10, 20, .55) 0%, rgba(17, 10, 20, .25) 30%, rgba(17, 10, 20, .9) 78%, var(--bg) 100%), linear-gradient(90deg, rgba(17, 10, 20, .85), transparent 65%); }
.dossier--flat::before { background: radial-gradient(900px 400px at 10% 0%, rgba(185, 166, 227, .14), transparent 70%); }
.dossier__grid { display: grid; grid-template-columns: 112px 1fr; gap: 18px; align-items: end; margin-top: clamp(90px, 16vh, 160px); }
.dossier--flat .dossier__grid { margin-top: 12px; }
.dossier__poster { position: relative; border-radius: 12px; overflow: hidden; box-shadow: 0 0 0 1px rgba(245, 239, 230, .12), 0 26px 50px rgba(0, 0, 0, .6); align-self: start; background: var(--surface-3); aspect-ratio: 2 / 3; }
.dossier__poster img { width: 100%; height: 100%; object-fit: cover; }
.dossier__copy { min-width: 0; }
.dossier h1 { font-size: clamp(1.9rem, 1.2rem + 3.2vw, 3.8rem); letter-spacing: -.028em; line-height: 1.04; overflow-wrap: anywhere; }
.dossier__orig { margin: 8px 0 0; color: var(--muted); font-size: .9rem; }
.dossier__tag { margin: 12px 0 0; color: var(--lav-ink); font: 500 1.08rem/1.35 var(--font-display); font-style: italic; }
.dossier__meta { display: flex; flex-wrap: wrap; gap: 6px; margin: 14px 0 0; list-style: none; }
.dossier__meta li { padding: 4px 10px; border: 1px solid rgba(245, 239, 230, .22); border-radius: 6px; font-size: .84rem; color: var(--text-2); }
.dossier__credit { margin: 12px 0 0; color: var(--text-2); }
.dossier__credit strong { color: var(--ink); }
.dossier__extra { grid-column: 1 / -1; }
.pills { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 0; }
.pills a { display: inline-block; padding: 6px 13px; border-radius: 999px; background: var(--lav-soft); color: var(--lav-ink); font: 600 .84rem/1.2 var(--font-display); text-decoration: none; }
.pills a:hover { background: var(--lav); color: var(--on-lime); }
.verdict { display: flex; align-items: center; gap: 14px; margin: 22px 0 0; }
.ring { position: relative; flex: none; width: 64px; height: 64px; }
.ring svg { width: 64px; height: 64px; transform: rotate(-90deg); }
.ring__track { stroke: var(--line); }
.ring__fill { stroke: var(--lime); }
.ring b { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font: 700 1.2rem/1 var(--font-display); }
.verdict p { margin: 0; font-size: .9rem; color: var(--text-2); line-height: 1.4; }
.verdict p strong { color: var(--ink); font-family: var(--font-display); }
.verdict--none p { color: var(--muted); }
.dossier__actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 22px 0 0; }

.jumpbar { position: sticky; top: var(--mast-h); z-index: 30; background: var(--bg); border-block: 1px solid var(--line-soft); }
.jumpbar .wrap { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; }
.jumpbar .wrap::-webkit-scrollbar { display: none; }
.jumpbar a { flex: none; padding: 14px 12px; color: var(--muted); font: 600 .9rem/1 var(--font-display); text-decoration: none; border-bottom: 2px solid transparent; }
.jumpbar a:hover { color: var(--ink); border-bottom-color: var(--lime); }

.casefile { display: grid; gap: 44px; padding-top: 34px; padding-bottom: 20px; }
.casefile__main { display: grid; gap: 50px; min-width: 0; }
.casefile__main > section > h2 { margin-bottom: 16px; }
.story { font-size: 1.08rem; line-height: 1.7; color: var(--text-2); max-width: 70ch; }
.callout { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: 12px; background: var(--lav-soft); color: var(--lav-ink); font-size: .94rem; }
.callout strong { color: var(--ink); }
.callout .icon { margin-top: 2px; }

/* Where to watch */
.watch { padding: 22px 18px; border-radius: 20px; background: var(--surface); border: 1px solid var(--line); }
.watch__head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 14px; margin-bottom: 18px; }
.watch__head p { margin: 6px 0 0; color: var(--muted); font-size: .9rem; }
.regionform { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.regionform label { font-size: .84rem; color: var(--muted); }
.regionquick { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; }
.regionquick a { display: inline-block; padding: 9px 13px; border: 1px solid var(--line); border-radius: 999px; font: 600 .82rem/1 var(--font-display); text-decoration: none; color: var(--text-2); }
.regionquick a:hover { border-color: var(--lime); color: var(--lime); }
.regionquick a[aria-current="true"] { background: var(--lime); border-color: var(--lime); color: var(--on-lime); }
select {
  height: 42px; padding: 0 36px 0 13px; border: 1px solid var(--line); border-radius: 10px; background-color: var(--surface-2); color: var(--ink);
  appearance: none; -webkit-appearance: none; max-width: 100%;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none' stroke='%23B9A6E3' stroke-width='1.8'%3E%3Cpath d='m1 1.5 5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 13px center;
}
select:focus-visible { border-color: var(--lav); }
.offers { display: grid; gap: 12px; }
.offer { display: grid; gap: 10px; padding: 14px; border-radius: 14px; background: var(--surface-2); }
.offer__head { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; }
.offer__type { display: inline-block; font: 700 .72rem/1 var(--font-display); letter-spacing: .12em; text-transform: uppercase; padding: 6px 9px; border-radius: 6px; }
.offer--flatrate .offer__type { background: var(--lime); color: var(--on-lime); }
.offer--free .offer__type, .offer--ads .offer__type { background: var(--lav); color: var(--on-lime); }
.offer--rent .offer__type, .offer--buy .offer__type { box-shadow: inset 0 0 0 1px var(--text-2); color: var(--ink); }
.offer__head small { color: var(--muted); font-size: .84rem; }
.providers__list { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; }
.providers__list li { display: inline-flex; align-items: center; gap: 9px; padding: 5px 12px 5px 5px; border-radius: 999px; background: var(--surface-3); font-size: .9rem; font-weight: 500; }
.providers__list img { width: 30px; height: 30px; border-radius: 8px; }
.watch__empty { padding: 16px; border-radius: 12px; background: var(--surface-2); color: var(--text-2); }
.watch__note { margin: 16px 0 0; color: var(--muted); font-size: .84rem; }
.watch__note a { color: var(--lav-ink); }
.watch__more { margin: 14px 0 0; }

/* Trailer */
.trailer { position: relative; display: block; aspect-ratio: 16 / 9; border-radius: 18px; overflow: hidden; background: #000; max-width: 880px; }
.trailer img { width: 100%; height: 100%; object-fit: cover; opacity: .75; transition: opacity .3s, transform .5s var(--ease); }
.trailer:hover img { opacity: .9; transform: scale(1.02); }
.trailer__play { position: absolute; inset: 0; margin: auto; width: 76px; height: 76px; display: flex; align-items: center; justify-content: center; border-radius: 50%; background: var(--lime); color: var(--on-lime); box-shadow: 0 0 0 10px rgba(201, 243, 91, .2); }
.trailer iframe { width: 100%; height: 100%; border: 0; }
.trailer + p { margin-top: 10px; font-size: .84rem; }

/* People */
.people { list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 14px; }
.people li { display: grid; grid-template-columns: 56px 1fr; align-items: center; gap: 12px; }
.people img, .people__blank { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; background: var(--surface-3); }
.people__blank { display: flex; align-items: center; justify-content: center; color: var(--lav); font: 700 1.2rem/1 var(--font-display); }
.people p { margin: 0; font-size: .86rem; color: var(--muted); line-height: 1.35; min-width: 0; }
.people strong { display: block; color: var(--ink); font: 600 .95rem/1.25 var(--font-display); }
.crew { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 190px), 1fr)); gap: 12px; margin: 26px 0 0; }
.crew div { padding: 14px 16px; border-radius: 12px; border: 1px solid var(--line-soft); }
.crew dt { color: var(--lav); font: 700 .7rem/1.2 var(--font-display); letter-spacing: .12em; text-transform: uppercase; }
.crew dd { margin: 6px 0 0; font-weight: 600; }

/* Seasons */
.seasons { list-style: none; display: grid; gap: 10px; }
.seasons a { display: grid; grid-template-columns: 54px 1fr auto; align-items: center; gap: 14px; padding: 9px 14px 9px 9px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line-soft); text-decoration: none; }
.seasons a:hover { border-color: var(--lav); }
.seasons img, .seasons__blank { width: 54px; height: 80px; border-radius: 8px; object-fit: cover; background: var(--surface-3); display: flex; align-items: center; justify-content: center; color: var(--muted); }
.seasons strong { display: block; font: 600 1rem/1.25 var(--font-display); }
.seasons small { color: var(--muted); }
.seasons .icon { color: var(--lav); }

/* Side facts */
.casefile__side { align-self: start; padding: 22px 20px; border-radius: 20px; background: var(--surface); border: 1px solid var(--line-soft); }
.casefile__side h2 { font-size: 1.25rem; margin-bottom: 12px; }
.facts { margin: 0; }
.facts div { display: grid; grid-template-columns: 9rem 1fr; gap: 12px; padding: 11px 0; border-top: 1px solid var(--line-soft); font-size: .92rem; }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; overflow-wrap: anywhere; }
.outlinks { list-style: none; display: grid; gap: 8px; margin: 16px 0 0; }
.outlinks a { display: inline-flex; align-items: center; gap: 6px; color: var(--lime); font-weight: 600; text-decoration: none; }
.outlinks a:hover { text-decoration: underline; }
.side__source { margin: 16px 0 0; color: var(--muted); font-size: .84rem; }
.side__source a { color: var(--lav-ink); }

/* ---------- Episodes ---------- */
.episodes__intro { display: grid; grid-template-columns: 110px 1fr; gap: 18px; margin-bottom: 30px; }
.episodes__intro img { border-radius: 10px; }
.eplist { list-style: none; display: grid; gap: 10px; }
.eplist a { display: grid; grid-template-columns: 46px 1fr; gap: 14px; padding: 16px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line-soft); text-decoration: none; }
.eplist a:hover { border-color: var(--lav); }
.eplist__num { font: 700 1.6rem/1 var(--font-display); color: transparent; -webkit-text-stroke: 1px var(--lav); }
.eplist__text strong { display: block; font: 600 1.05rem/1.3 var(--font-display); }
.eplist__text small { display: block; margin: 3px 0 6px; color: var(--muted); }
.eplist__story { color: var(--text-2); font-size: .92rem; }
.episode { display: grid; gap: 30px; }
.episode__still { border-radius: 16px; margin-bottom: 24px; }
.episode__main h2 { margin: 26px 0 12px; font-size: 1.4rem; }
.guestlist { list-style: none; display: grid; gap: 6px; color: var(--text-2); }
.guestlist strong { color: var(--ink); }
.epnav { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 34px; }
.epnav a { display: inline-flex; align-items: center; gap: 6px; padding: 10px 16px; border: 1px solid var(--line); border-radius: 999px; text-decoration: none; font: 600 .9rem/1 var(--font-display); }
.epnav a:hover { border-color: var(--lime); color: var(--lime); }

/* ---------- Catalog (browse) ---------- */
.refine { margin-bottom: 22px; border: 1px solid var(--line); border-radius: 18px; background: var(--surface); }
.refine > summary { display: flex; align-items: center; gap: 10px; padding: 14px 18px; min-height: 52px; cursor: pointer; list-style: none; font: 700 1rem/1 var(--font-display); }
.refine > summary::-webkit-details-marker { display: none; }
.refine > summary > .icon:last-child { margin-left: auto; transition: transform .2s; }
.refine[open] > summary > .icon:last-child { transform: rotate(180deg); }
.filters { padding: 4px 18px 20px; border-top: 1px solid var(--line-soft); }
.filters__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 12px; margin-top: 12px; }
.field { display: grid; gap: 6px; min-width: 0; align-content: start; }
.field label { font-size: .8rem; font-weight: 600; color: var(--text-2); }
.field select { width: 100%; }
.field small { color: var(--muted); font-size: .76rem; line-height: 1.35; }
.filters__group { grid-column: 1 / -1; margin: 12px 0 0; color: var(--lav); font: 700 .7rem/1 var(--font-display); letter-spacing: .14em; text-transform: uppercase; }
.filters__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.chips { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.chips a { display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: 999px; background: var(--lav-soft); color: var(--lav-ink); font-size: .86rem; font-weight: 600; text-decoration: none; }
.chips a small { color: var(--lav); font-weight: 500; }
.chips a:hover { background: var(--surface-3); }
.chips .chips__clear { background: transparent; color: var(--lime); }
.resultcount { margin: 0 0 18px; color: var(--muted); font-size: .9rem; }
.resultcount strong { color: var(--ink); }

/* Format switch */
.segment { display: inline-flex; flex-wrap: wrap; gap: 4px; padding: 4px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line-soft); }
.segment a, .segment button { padding: 10px 16px; border: 0; border-radius: 999px; background: none; color: var(--text-2); font: 600 .9rem/1 var(--font-display); text-decoration: none; }
.segment a:hover, .segment button:hover { color: var(--ink); }
.segment [aria-current="page"], .segment [aria-pressed="true"] { background: var(--lime); color: var(--on-lime); }
.segment [aria-current="page"]:hover, .segment [aria-pressed="true"]:hover { color: var(--on-lime); }
.searchpage .segment { margin-bottom: 22px; }
.hubbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 26px; }
.hubbar__rule { display: flex; align-items: center; gap: 8px; margin: 0; color: var(--muted); font-size: .88rem; }
.hubbar__rule .icon { color: var(--lav); }

/* Pagination */
.pager { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px; margin: 40px 0 10px; }
.pager ol { list-style: none; display: flex; gap: 4px; }
.pager a, .pager span { display: inline-flex; align-items: center; justify-content: center; gap: 4px; min-width: 42px; height: 42px; padding: 0 12px; border-radius: 999px; text-decoration: none; font: 600 .9rem/1 var(--font-display); }
.pager a { color: var(--text-2); }
.pager a:hover { background: var(--surface-2); color: var(--ink); }
.pager [aria-current="page"] { background: var(--lime); color: var(--on-lime); }
.pager__gap { color: var(--muted); align-self: center; }
.pager .pager__step { border: 1px solid var(--line); }
.loadmore { display: flex; flex-direction: column; align-items: center; gap: 8px; margin-top: 36px; }
.loadmore p { margin: 0; }

/* Empty and notices */
.empty { padding: 44px 22px; text-align: center; border: 1px dashed var(--line); border-radius: 20px; }
.empty > .icon { color: var(--lav); margin: 0 auto 12px; display: block; }
.empty h2 { font-size: 1.4rem; margin-bottom: 10px; }
.empty p { color: var(--text-2); max-width: 54ch; margin-inline: auto; }
.empty__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 18px; }
.notice { display: flex; gap: 10px; align-items: flex-start; padding: 13px 16px; margin-bottom: 20px; border-radius: 12px; background: var(--notice-bg); color: var(--notice-ink); font-size: .92rem; }
.notice--ok { background: #233016; color: #DCF2B4; }
.notice[hidden] { display: none; }

/* Link lists (other lists, genres) */
.related { margin: 56px 0 10px; }
.related__head { font-size: 1.2rem; margin-bottom: 14px; }
.related ul { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; }
.related a { display: inline-block; padding: 9px 14px; border: 1px solid var(--line); border-radius: 999px; color: var(--text-2); text-decoration: none; font-size: .9rem; }
.related a:hover { border-color: var(--lime); color: var(--lime); }

/* ---------- Explore and genres ---------- */
.explore { display: grid; gap: 52px; }
.explore h2 { margin-bottom: 8px; }
.explore .sechead__note { margin-bottom: 18px; }
.tiles { list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); gap: 12px; }
.tile { display: grid; gap: 6px; align-content: start; height: 100%; padding: 20px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line-soft); text-decoration: none; transition: border-color .2s, transform .25s var(--ease); }
.tile:hover { border-color: var(--lime); transform: translateY(-3px); }
.tile .icon { color: var(--lime); margin-bottom: 6px; }
.tile strong { font: 700 1.2rem/1.2 var(--font-display); }
.tile span { color: var(--muted); font-size: .9rem; }
.tile--genre strong { font-size: 1.45rem; letter-spacing: -.02em; }
.tile small { color: var(--lav); font-size: .78rem; font-weight: 600; letter-spacing: .04em; }
.pairs { list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); gap: 8px; }
.pairs li { display: flex; align-items: center; gap: 8px; padding: 10px 10px 10px 16px; border-radius: 12px; background: var(--surface); }
.pairs li > span { flex: 1; font-weight: 600; }
.pairs a { padding: 8px 12px; border-radius: 999px; border: 1px solid var(--line); color: var(--text-2); font-size: .84rem; text-decoration: none; }
.pairs a:hover { border-color: var(--lime); color: var(--lime); }
.pillcloud { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; }
.pillcloud a { display: inline-block; padding: 9px 15px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line-soft); text-decoration: none; font-weight: 600; font-size: .92rem; }
.pillcloud a:hover { border-color: var(--lime); color: var(--lime); }

/* ---------- My List and preferences ---------- */
.mylist__bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 26px; }
.mylist__bar[hidden], .empty[hidden] { display: none; }
.mylist__tools { display: flex; flex-wrap: wrap; gap: 8px; }
.mylist__import { position: relative; overflow: hidden; cursor: pointer; }
.mylist__import input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.prefs { max-width: 720px; }
.prefs__form { display: grid; gap: 22px; padding: 24px 20px; margin-bottom: 20px; border-radius: 20px; background: var(--surface); border: 1px solid var(--line-soft); }
.prefs__form .field label { font-size: .95rem; color: var(--ink); }
.prefs__form .field small { font-size: .84rem; }
.prefs__form .btn { justify-self: start; }

/* ---------- Article and legal prose ---------- */
.prose { max-width: 760px; padding-bottom: 30px; }
.prose h2 { margin: 46px 0 14px; font-size: clamp(1.4rem, 1.15rem + 1vw, 1.85rem); scroll-margin-top: calc(var(--mast-h) + 20px); }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin: 28px 0 10px; font-size: 1.15rem; }
.prose p, .prose li { color: var(--text-2); font-size: 1.04rem; line-height: 1.75; }
.prose ul, .prose ol { padding-left: 1.3rem; margin: 0 0 1.1rem; }
.prose li { margin-bottom: .45rem; }
.prose li::marker { color: var(--lime); }
.prose strong { color: var(--ink); }
.prose a { color: var(--lime); }
.prose a:hover { color: var(--lime-hi); }
.prose .lead { font-size: 1.18rem; color: var(--ink); line-height: 1.6; }
.article { display: grid; gap: 40px; padding-bottom: 30px; }
.article__byline { display: flex; flex-wrap: wrap; gap: 6px 16px; margin: 16px 0 0; color: var(--muted); font-size: .88rem; }
.toc { align-self: start; padding: 20px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line-soft); }
.toc h2 { font-size: 1rem; margin-bottom: 12px; color: var(--lav); letter-spacing: .02em; }
.toc ol { list-style: none; counter-reset: t; display: grid; gap: 2px; }
.toc li { counter-increment: t; }
.toc a { display: grid; grid-template-columns: 28px 1fr; padding: 6px 0; color: var(--text-2); text-decoration: none; font-size: .92rem; }
.toc a::before { content: counter(t, decimal-leading-zero); color: var(--muted); font: 600 .78rem/1.7 var(--font-display); }
.toc a:hover { color: var(--lime); }
.keypoint { margin: 24px 0; padding: 18px 20px; border-left: 3px solid var(--lime); border-radius: 0 14px 14px 0; background: var(--surface); }
.keypoint p { margin: 0; color: var(--ink); }
.prose .typelegend { list-style: none; padding: 0; display: grid; gap: 12px; }
.typelegend li { display: grid; grid-template-columns: 136px 1fr; gap: 14px; align-items: start; margin: 0; }
.typelegend .offer { padding: 0; background: none; }

/* ---------- Status pages ---------- */
.statuspage { max-width: 680px; padding-block: 70px 80px; text-align: center; }
.statuspage > .icon { color: var(--lav); margin: 0 auto 14px; display: block; }
.statuspage__code { margin: 0; font: 700 clamp(5rem, 3rem + 10vw, 9rem)/.9 var(--font-display); letter-spacing: -.06em; color: transparent; -webkit-text-stroke: 2px var(--lav); }
.statuspage h1 { margin: 16px 0 14px; font-size: clamp(1.8rem, 1.3rem + 2vw, 2.6rem); }
.statuspage > p { color: var(--text-2); }
.statuspage .finder { margin: 26px auto 0; text-align: left; }

/* ---------- Footer ---------- */
.foot { margin-top: 70px; padding: 46px 0 30px; background: linear-gradient(180deg, var(--bg), #0B060D); border-top: 1px solid var(--line-soft); }
.foot__top { display: grid; gap: 34px; }
.foot__brand p { max-width: 42ch; margin-top: 14px; color: var(--muted); font-size: .92rem; }
.foot__guide { display: inline-flex; align-items: center; gap: 8px; color: var(--lime); font: 700 .98rem/1 var(--font-display); text-decoration: none; }
.foot__guide:hover { text-decoration: underline; }
.foot__cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 18px; }
.foot__head { margin-bottom: 12px; font: 700 .72rem/1 var(--font-display); letter-spacing: .14em; text-transform: uppercase; color: var(--lav); }
.foot ul { list-style: none; display: grid; gap: 2px; }
.foot nav a { display: inline-block; padding: 6px 0; color: var(--text-2); text-decoration: none; font-size: .92rem; }
.foot nav a:hover { color: var(--lime); }
.foot__credits { display: grid; gap: 10px; margin-top: 38px; padding-top: 24px; border-top: 1px solid var(--line-soft); color: var(--muted); font-size: .84rem; }
.foot__credits p { margin: 0; max-width: 90ch; }
.foot__credits a { color: var(--text-2); }
.foot__tmdb { display: inline-block; width: max-content; margin-bottom: 4px; }

.totop { position: fixed; right: 16px; bottom: 16px; z-index: 35; display: flex; align-items: center; justify-content: center; width: 46px; height: 46px; border-radius: 50%; background: var(--lime); color: var(--on-lime); opacity: 0; pointer-events: none; transform: translateY(10px); transition: opacity .25s, transform .25s var(--ease); }
.totop.is-on { opacity: 1; pointer-events: auto; transform: none; }

/* ---------- Entrance animation (JS adds .reveal only to sections below the fold) ---------- */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.js .reveal.is-in { opacity: 1; transform: none; }

/* ---------- Breakpoints ---------- */
@media (min-width: 560px) {
  .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .people { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .filters__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .cover__body { grid-template-columns: 140px 1fr; gap: 0 22px; padding: 24px; }
  .dossier__grid { grid-template-columns: 170px 1fr; gap: 0 26px; }
  .dossier__poster { grid-row: 1 / span 2; }
  .dossier__extra { grid-column: 2; }
  .agenda { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .foot__cols { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (min-width: 640px) {
  .rail { grid-auto-columns: 152px; }
  .ranked { grid-auto-columns: 168px; }
}
@media (min-width: 768px) {
  :root { --gutter: 28px; }
  .grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 30px 18px; }
  .cover { min-height: 440px; display: flex; align-items: flex-end; }
  .cover__media { display: block; position: absolute; inset: 0; }
  .cover__media img { width: 100%; height: 100%; object-fit: cover; object-position: center 25%; }
  .cover__media::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(17, 10, 20, .95) 0%, rgba(17, 10, 20, .72) 45%, rgba(17, 10, 20, .1) 100%), linear-gradient(0deg, rgba(17, 10, 20, .85), transparent 55%); }
  .cover__body { display: block; max-width: 640px; padding: 40px; }
  .cover__poster { display: none; }
  .cover__story { margin-bottom: 22px; }
  .panels { grid-template-columns: 1fr 1fr; }
  .panel { padding: 32px 30px; }
  .watch { padding: 26px; }
  .episode { grid-template-columns: 1fr 300px; }
  .episodes__intro { grid-template-columns: 150px 1fr; }
}
@media (min-width: 1024px) {
  .grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .rail { grid-auto-columns: 172px; gap: 18px; }
  .rail--wide { grid-auto-columns: 330px; }
  .railbtn { display: inline-flex; }
  .opening { padding: 54px 0 60px; }
  .opening__grid { grid-template-columns: minmax(0, 1.35fr) minmax(320px, .65fr); gap: 56px; align-items: center; }
  .ranks { grid-template-columns: 1fr 1fr; gap: 48px; }
  .ranked { grid-auto-flow: row; grid-template-columns: repeat(5, minmax(0, 1fr)); overflow: visible; margin: 0; padding: 4px 0 0; gap: 6px; }
  .ranked__item { padding-left: 22px; }
  .ranked__num { font-size: 4.4rem; bottom: 44px; }
  .agenda { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .agenda__item { grid-template-columns: 52px 1fr; }
  .agenda__item img, .agenda__item .agenda__blank { display: none; }
  .dossier { padding-bottom: 44px; }
  .dossier__grid { grid-template-columns: 260px 1fr; gap: 0 40px; margin-top: clamp(120px, 20vh, 220px); }
  .casefile { grid-template-columns: minmax(0, 1fr) 340px; gap: 56px; }
  .casefile__side { position: sticky; top: calc(var(--mast-h) + 70px); }
  .people { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .filters__grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .article { grid-template-columns: minmax(0, 760px) 260px; justify-content: space-between; }
  .toc { position: sticky; top: calc(var(--mast-h) + 24px); order: 2; }
  .foot__top { grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); gap: 60px; }
}
@media (min-width: 1100px) {
  .nav { display: block; margin-left: 10px; }
  .mast__search { display: block; }
  .mast__search + .tools { margin-left: 0; }
  .tool--search, .tool--menu { display: none; }
  .tool__label { display: inline; }
  .drawer { display: none !important; }
}
@media (min-width: 1280px) {
  :root { --gutter: 40px; }
  .grid { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .cover { min-height: 520px; }
  .cover__body { padding: 52px; max-width: 700px; }
}

@media (hover: none) {
  .card__link:hover .card__art { transform: none; box-shadow: 0 0 0 1px var(--line-soft); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; scroll-behavior: auto !important; }
  .js .reveal { opacity: 1; transform: none; }
}
@media print {
  .mast, .drawer, .foot, .totop, .jumpbar, .save, .dossier__actions { display: none !important; }
  body { background: #fff; color: #000; }
}
