/* PlotNest "Night Edition": warm ink, ivory type, one coral-ember accent. Editorial serif headlines. */
@font-face { font-family: "Instrument Sans"; src: url("../fonts/instrument-sans.woff2") format("woff2"); font-weight: 400 700; font-display: optional; }
@font-face { font-family: "Instrument Serif"; src: url("../fonts/instrument-serif.woff2") format("woff2"); font-weight: 400; font-display: optional; }
@font-face { font-family: "Instrument Serif"; src: url("../fonts/instrument-serif-italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: optional; }

:root {
  --bg: #0d0b0f;
  --bg-1: #141116;
  --bg-2: #1b171e;
  --bg-3: #262029;
  --line: #322b35;
  --text: #f4efe7;
  --text-2: #d2cbc1;
  --muted: #a59d95;
  --accent: #ff7a59;
  --accent-2: #ff9a7e;
  --accent-ink: #1a0d09;
  --accent-soft: rgba(255, 122, 89, .12);
  --glow: rgba(255, 122, 89, .18);
  --radius: 18px;
  --radius-sm: 12px;
  --serif: "Instrument Serif", "Iowan Old Style", Georgia, serif;
  --sans: "Instrument Sans", "Segoe UI", system-ui, -apple-system, sans-serif;
  --gutter: 16px;
  --mast: 64px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  color-scheme: dark;
}
@media (min-width: 768px) { :root { --gutter: 32px; } }
@media (min-width: 1280px) { :root { --gutter: 48px; --mast: 74px; } }

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--mast) + 60px); }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 1rem/1.6 var(--sans); overflow-x: hidden; }
body.is-locked { overflow: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration-color: rgba(255, 122, 89, .55); text-underline-offset: 3px; }
a:hover { color: var(--accent-2); }
h1, h2, h3 { margin: 0 0 .45em; font-weight: 400; line-height: 1.08; letter-spacing: -.01em; }
h1, h2 { font-family: var(--serif); }
h1 { font-size: clamp(2.4rem, 1.6rem + 3.4vw, 4.4rem); text-wrap: balance; }
h2 { font-size: clamp(1.6rem, 1.3rem + 1vw, 2.15rem); }
h3 { font-family: var(--sans); font-size: 1.02rem; font-weight: 650; letter-spacing: 0; }
h1 em, h2 em, .foot__tag em { font-style: italic; color: var(--accent); }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; }
button, input, select { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
main:focus { outline: none; }
.icon { flex: none; vertical-align: middle; }
.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: 1440px; margin: 0 auto; padding: 0 var(--gutter); }
.muted { color: var(--muted); }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--accent); color: var(--accent-ink); padding: 10px 16px; border-radius: 10px; font-weight: 700; }
.skip:focus { top: 12px; }
.eyebrow { display: inline-flex; align-items: center; gap: 7px; margin: 0 0 .8em; color: var(--accent); font-size: .74rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; }
.eyebrow::before { content: ""; width: 22px; height: 1px; background: currentColor; }
.eyebrow .icon { margin-left: -2px; }
.textlink { color: var(--accent); 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: 11px 20px; border-radius: 999px; border: 1px solid transparent; font-weight: 600; font-size: .95rem; line-height: 1.2; text-decoration: none; cursor: pointer; transition: background-color .2s, border-color .2s, color .2s, transform .2s var(--ease); }
.btn:active { transform: scale(.98); }
.btn--accent { background: var(--accent); color: var(--accent-ink); box-shadow: 0 8px 24px -10px var(--accent); }
.btn--accent:hover { background: var(--accent-2); color: var(--accent-ink); }
.btn--ghost, .btn--line { background: rgba(244, 239, 231, .05); border-color: rgba(244, 239, 231, .16); color: var(--text); }
.btn--ghost:hover, .btn--line:hover { border-color: var(--accent); color: var(--text); background: var(--accent-soft); }
.btn--small { min-height: 38px; padding: 7px 15px; font-size: .88rem; }
.btn[aria-pressed="true"] { background: var(--accent-soft); border-color: var(--accent); color: var(--accent-2); }
.btn:disabled { opacity: .5; cursor: default; }
.more { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; color: var(--text-2); font-weight: 600; font-size: .9rem; text-decoration: none; white-space: nowrap; }
.more .icon { color: var(--accent); transition: transform .2s var(--ease); }
.more:hover { color: var(--text); }
.more:hover .icon { transform: translateX(3px); }

/* ---------- Header ---------- */
.mast { position: sticky; top: 0; z-index: 40; background: rgba(13, 11, 15, .96); border-bottom: 1px solid rgba(50, 43, 53, .8); }
.mast__bar { display: flex; align-items: center; gap: 14px; height: var(--mast); max-width: 1440px; margin: 0 auto; padding: 0 var(--gutter); }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; flex: none; }
.brand:hover { color: var(--text); }
.brand__mark { border-radius: 10px; }
.brand__word { font: 400 1.62rem/1 var(--serif); letter-spacing: -.01em; }
.brand__word em { color: var(--accent); }
.nav { display: none; }
.nav__list { list-style: none; display: flex; align-items: center; gap: 2px; padding: 4px; border-radius: 999px; background: var(--bg-1); border: 1px solid var(--line); }
.nav__list > li > a, .drop > summary { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 7px 15px; border-radius: 999px; color: var(--text-2); font-weight: 600; font-size: .92rem; text-decoration: none; cursor: pointer; list-style: none; transition: background-color .2s, color .2s; }
.drop > summary::-webkit-details-marker { display: none; }
.nav__list > li > a:hover, .drop > summary:hover { color: var(--text); background: var(--bg-3); }
.nav__list a[aria-current="page"], .drop > summary[data-current] { color: var(--accent-ink); background: var(--text); }
.nav__finder { color: var(--accent) !important; }
.nav__finder[aria-current="page"] { color: var(--accent-ink) !important; background: var(--accent) !important; }
.drop { position: relative; }
.drop[open] > summary { color: var(--text); background: var(--bg-3); }
.drop[open] > summary .icon { transform: rotate(180deg); }
.drop__panel { position: absolute; top: calc(100% + 10px); left: 0; min-width: 230px; list-style: none; padding: 8px; background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius-sm); box-shadow: 0 24px 60px rgba(0, 0, 0, .55); }
.drop__panel a { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 8px; color: var(--text-2); font-weight: 600; text-decoration: none; }
.drop__panel a:hover { background: var(--bg-3); color: var(--text); }
.drop__panel .icon { color: var(--accent); }
.mast__search { display: none; flex: 1; max-width: 340px; 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: 5px; min-width: 44px; height: 44px; padding: 0 9px; border: 0; border-radius: 999px; background: transparent; color: var(--text-2); text-decoration: none; cursor: pointer; font-weight: 700; font-size: .8rem; letter-spacing: .04em; }
.tool:hover, .tool[aria-current="page"] { color: var(--text); background: var(--bg-2); }
.tool--region { display: none; }
.count { position: absolute; top: 3px; right: 1px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--accent); color: var(--accent-ink); font-size: .66rem; font-weight: 800; line-height: 18px; text-align: center; }
.count--on { position: static; display: inline-block; }
.mast.is-searching .mast__search { display: block; position: absolute; left: 0; right: 0; top: var(--mast); max-width: none; margin: 0; padding: 10px var(--gutter) 14px; background: var(--bg-1); border-bottom: 1px solid var(--line); }
@media (min-width: 640px) { .tool--region { display: inline-flex; } }
@media (min-width: 1100px) {
  .nav { display: block; margin-left: 18px; }
  .mast__search { display: block; }
  .tools { margin-left: 0; }
  .tool--search, .tool--menu { display: none; }
}
.drawer { position: fixed; inset: var(--mast) 0 0; z-index: 39; overflow-y: auto; background: var(--bg); padding: 14px var(--gutter) 40px; }
.drawer__list { list-style: none; }
.drawer__list > li { border-bottom: 1px solid var(--line); }
.drawer__list a, .drawer__group summary { display: flex; align-items: center; gap: 10px; min-height: 58px; color: var(--text); font: 400 1.5rem/1.2 var(--serif); text-decoration: none; cursor: pointer; list-style: none; }
.drawer__group summary::-webkit-details-marker { display: none; }
.drawer__group summary .icon { margin-left: auto; transition: transform .2s; }
.drawer__group[open] summary .icon { transform: rotate(180deg); }
.drawer__sub { list-style: none; padding: 0 0 10px 14px; }
.drawer__sub a { min-height: 46px; font: 500 1rem/1.3 var(--sans); color: var(--text-2); }
.drawer__list a[aria-current="page"], .drawer__finder { color: var(--accent) !important; }

/* ---------- Search ---------- */
.finder { position: relative; display: flex; align-items: center; background: var(--bg-2); border: 1px solid var(--line); border-radius: 999px; transition: border-color .2s, box-shadow .2s; }
.finder:focus-within { border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.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; }
.finder input::placeholder { color: var(--muted); opacity: 1; }
.finder input::-webkit-search-cancel-button { filter: invert(1); }
.finder__go { flex: none; height: 36px; margin-right: 4px; padding: 0 18px; border: 0; border-radius: 999px; background: var(--accent); color: var(--accent-ink); font-weight: 700; cursor: pointer; }
.finder__go:hover { background: var(--accent-2); }
.finder--head .finder__go { display: none; }
.finder--hero { max-width: 560px; background: rgba(20, 17, 22, .9); border-color: rgba(244, 239, 231, .18); }
.finder--hero input { height: 58px; font-size: 1.05rem; }
.finder--hero .finder__go { height: 46px; padding: 0 24px; margin-right: 6px; }
.finder--page { max-width: 680px; margin-bottom: 20px; }
.finder--page input { height: 54px; }
.suggest { position: absolute; top: calc(100% + 8px); left: 0; right: 0; z-index: 50; list-style: none; max-height: min(70vh, 460px); overflow-y: auto; padding: 6px; background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius-sm); box-shadow: 0 24px 60px rgba(0, 0, 0, .6); }
.suggest a { display: flex; align-items: center; gap: 12px; padding: 7px 8px; border-radius: 8px; color: var(--text); text-decoration: none; }
.suggest [aria-selected="true"] a, .suggest a:hover { background: var(--bg-3); color: var(--text); }
.suggest img, .suggest__blank { width: 36px; height: 54px; flex: none; border-radius: 5px; background: var(--bg-3); object-fit: cover; }
.suggest span { display: flex; flex-direction: column; min-width: 0; }
.suggest strong { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.suggest small { color: var(--muted); text-transform: capitalize; }
.suggest__score { margin-left: auto; color: var(--accent); font-weight: 700; flex-direction: row !important; }
.suggest__state { padding: 12px; color: var(--muted); }

/* ---------- Page header ---------- */
.pagehead { position: relative; overflow: hidden; padding: 34px 0 30px; margin-bottom: 30px; border-bottom: 1px solid var(--line); background: radial-gradient(80% 140% at 100% 0%, var(--glow), transparent 60%), var(--bg); }
.pagehead h1 { font-size: clamp(2.3rem, 1.6rem + 2.6vw, 3.8rem); margin-bottom: .3em; }
.pagehead__lede { max-width: 68ch; color: var(--text-2); font-size: 1.06rem; margin: 0; }
.pagehead__links { display: flex; flex-wrap: wrap; gap: 8px; margin: 20px 0 0; }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 4px 8px; margin-bottom: 18px; color: var(--muted); font-size: .84rem; }
.crumbs li + li::before { content: "›"; margin-right: 8px; color: var(--muted); }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--accent); }
.crumbs [aria-current] { color: var(--text-2); }

/* ---------- Section heads ---------- */
.sechead { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.sechead h2 { margin-bottom: .1em; }
.sechead__note { margin: 0; color: var(--muted); font-size: .9rem; }
.sechead__index { margin: 0 0 4px; color: var(--accent); font: italic 400 1.05rem/1 var(--serif); }

/* ---------- Cards ---------- */
.card { position: relative; display: flex; flex-direction: column; min-width: 0; contain: layout style; }
.card__link { display: block; color: var(--text); text-decoration: none; }
.card__art { position: relative; display: block; aspect-ratio: 2 / 3; overflow: hidden; border-radius: var(--radius-sm); background: var(--bg-2); box-shadow: 0 0 0 1px rgba(244, 239, 231, .06) inset; transition: transform .35s var(--ease), box-shadow .35s var(--ease); }
.card__art img { width: 100%; height: 100%; object-fit: cover; }
.card__shade { position: absolute; inset: 55% 0 0; background: linear-gradient(0deg, rgba(13, 11, 15, .85), transparent); pointer-events: none; }
.card__link:hover .card__art { transform: translateY(-4px); box-shadow: 0 0 0 1px rgba(255, 122, 89, .5) inset, 0 18px 36px -18px rgba(0, 0, 0, .9); }
.card__link:hover .card__title { color: var(--accent-2); }
.card__blank { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; height: 100%; padding: 12px; color: var(--muted); text-align: center; font-size: .78rem; }
.card__kind { position: absolute; top: 8px; left: 8px; padding: 3px 8px; border-radius: 6px; background: rgba(13, 11, 15, .8); color: var(--text-2); font-size: .66rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.card__score { position: absolute; left: 8px; bottom: 8px; display: inline-flex; align-items: center; gap: 4px; color: var(--text); font-size: .86rem; font-weight: 700; }
.card__score .icon { color: var(--accent); }
.card__score--soon { padding: 2px 8px; border-radius: 6px; background: var(--accent); color: var(--accent-ink); font-size: .72rem; letter-spacing: .06em; text-transform: uppercase; }
.card__title { margin: 11px 0 2px; font: 600 .95rem/1.3 var(--sans); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; transition: color .2s; }
.card__meta { margin: 0; color: var(--muted); font-size: .8rem; }
.save { position: absolute; top: 7px; right: 7px; display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border: 0; border-radius: 50%; background: rgba(13, 11, 15, .75); color: var(--text); cursor: pointer; transition: background-color .2s, color .2s, opacity .2s; }
.save:hover { background: var(--bg); color: var(--accent); }
.save[aria-pressed="true"] { background: var(--accent); color: var(--accent-ink); opacity: 1; }
.save[aria-pressed="true"] .icon path { fill: currentColor; }
@media (hover: hover) and (min-width: 768px) { .card .save { opacity: 0; } .card:hover .save, .card .save:focus-visible { opacity: 1; } }
.save--wide { position: static; width: auto; height: auto; border-radius: 999px; }
.save--wide[aria-pressed="true"] span::after { content: "d"; }
.liststate { margin-top: 8px; min-height: 36px; padding: 6px 12px; border: 1px solid var(--line); border-radius: 999px; background: transparent; color: var(--text-2); font-size: .8rem; font-weight: 600; cursor: pointer; }
.liststate:hover { border-color: var(--accent); color: var(--accent-2); }
.why { list-style: none; display: flex; flex-direction: column; gap: 4px; margin-top: 9px; padding-top: 9px; border-top: 1px dashed var(--line); color: var(--text-2); font-size: .78rem; }
.why li { position: relative; padding-left: 14px; }
.why li::before { content: ""; position: absolute; left: 1px; top: .55em; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.is-partial .why li:nth-child(2)::before { background: var(--muted); }
.is-partial .card__art { opacity: .78; }

/* ---------- Rails and grids ---------- */
.shelf { margin: 0 0 52px; }
.rail { list-style: none; display: flex; gap: 14px; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scroll-padding: 0 var(--gutter); padding: 6px var(--gutter) 12px; margin: -6px calc(var(--gutter) * -1) 0; scrollbar-width: thin; scrollbar-color: var(--bg-3) transparent; }
.rail > li { flex: 0 0 136px; scroll-snap-align: start; }
@media (min-width: 640px) { .rail { gap: 18px; } .rail > li { flex-basis: 152px; } }
@media (min-width: 1024px) { .rail { gap: 22px; } .rail > li { flex-basis: 172px; } }
.grid { list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 14px; }
@media (min-width: 560px) { .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 768px) { .grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 30px 18px; } }
@media (min-width: 1280px) { .grid { grid-template-columns: repeat(auto-fill, minmax(168px, 1fr)); gap: 32px 22px; } }
.grid > li { contain: layout style; }
.grid.is-loading { opacity: .45; transition: opacity .2s; }
.grid--ranked > li { position: relative; }
.grid--ranked > li::before { content: attr(data-rank); position: absolute; z-index: 1; top: -12px; left: -6px; display: flex; align-items: center; justify-content: center; min-width: 34px; height: 34px; padding: 0 8px; border-radius: 999px; background: var(--bg); border: 1px solid var(--accent); color: var(--accent); font: italic 400 1.1rem/1 var(--serif); }
@media (min-width: 768px) { .grid--finder { grid-template-columns: repeat(auto-fill, minmax(182px, 1fr)); } }

/* ---------- Homepage hero ---------- */
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.hero { position: relative; isolation: isolate; overflow: hidden; padding: 34px 0 30px; margin-bottom: 44px; }
.hero .backdrop { position: absolute; inset: 0; z-index: -2; }
.hero .backdrop img { width: 100%; height: 100%; object-fit: cover; object-position: center 22%; opacity: .55; }
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(13, 11, 15, .55) 0%, rgba(13, 11, 15, .82) 45%, var(--bg) 100%), linear-gradient(90deg, rgba(13, 11, 15, .9), rgba(13, 11, 15, .2) 70%); }
.hero__inner { display: grid; grid-template-columns: minmax(0, 1fr); gap: 34px; }
.hero__intro { animation: rise .7s var(--ease) both; }
.hero h1 { max-width: 13ch; font-size: clamp(2.7rem, 1.6rem + 4.6vw, 5.6rem); line-height: .98; margin-bottom: .32em; }
.hero__lede { max-width: 50ch; color: var(--text-2); font-size: 1.08rem; margin-bottom: 24px; }
.hero__moods { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.hero__moods a { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 7px 14px; border-radius: 999px; background: rgba(20, 17, 22, .8); border: 1px solid rgba(244, 239, 231, .14); color: var(--text-2); font-size: .88rem; font-weight: 600; text-decoration: none; transition: border-color .2s, color .2s; }
.hero__moods a:hover { border-color: var(--accent); color: var(--text); }
.hero__moods .icon { color: var(--accent); }
.marquee { display: grid; gap: 14px; animation: rise .7s .12s var(--ease) both; }
.spotlight { display: flex; gap: 16px; align-items: flex-start; padding: 16px; border-radius: var(--radius); background: rgba(20, 17, 22, .88); border: 1px solid rgba(244, 239, 231, .1); }
.spotlight__poster { flex: none; width: 104px; border-radius: 10px; overflow: hidden; box-shadow: 0 14px 30px -12px #000; }
.spotlight__body { min-width: 0; }
.spotlight__label { display: flex; align-items: center; gap: 8px; margin: 0 0 6px; color: var(--muted); font-size: .72rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; }
.spotlight__label span { color: var(--accent); font: italic 400 1.05rem/1 var(--serif); letter-spacing: 0; }
.spotlight__title { margin-bottom: .2em; font-size: clamp(1.6rem, 1.3rem + 1.4vw, 2.4rem); }
.spotlight__title a { text-decoration: none; }
.spotlight__meta { margin-bottom: 8px; color: var(--text-2); font-size: .88rem; }
.spotlight__score { display: inline-flex; align-items: center; gap: 4px; margin-left: 4px; color: var(--accent); font-weight: 700; }
.spotlight__story { display: none; color: var(--text-2); font-size: .93rem; }
.spotlight__actions { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; }
.upnext { list-style: none; display: grid; gap: 8px; }
.upnext a { display: flex; align-items: center; gap: 12px; padding: 8px 12px 8px 8px; border-radius: var(--radius-sm); background: rgba(20, 17, 22, .72); border: 1px solid rgba(244, 239, 231, .08); text-decoration: none; transition: border-color .2s; }
.upnext a:hover { border-color: var(--accent); color: var(--text); }
.upnext__n { width: 28px; flex: none; color: var(--accent); font: italic 400 1.2rem/1 var(--serif); text-align: center; }
.upnext img { width: 44px; height: 66px; flex: none; border-radius: 6px; object-fit: cover; background: var(--bg-3); }
.upnext__text { display: flex; flex-direction: column; min-width: 0; }
.upnext__text strong { font-weight: 600; font-size: .93rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.upnext__text small { color: var(--muted); font-size: .8rem; }
@media (min-width: 560px) { .spotlight__story { display: block; } }
@media (min-width: 960px) {
  .hero { padding: 84px 0 64px; min-height: 620px; }
  .hero__inner { grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 56px; align-items: end; }
  .spotlight { padding: 22px; gap: 22px; }
  .spotlight__poster { width: 150px; }
}

/* ---------- Homepage sections ---------- */
.home > section, .home > .boards { margin-bottom: 60px; }
/* Below-the-fold sections skip rendering (and their lazy posters) until scrolled near. */
.home > .shelf ~ .shelf, .home > .boards, .home > .editorial, .home > .presets, .home > .genrestrip { content-visibility: auto; contain-intrinsic-size: auto 440px; }
.moods__list { list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
@media (min-width: 720px) { .moods__list { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; } }
.moods__list li:last-child:nth-child(odd) { grid-column: 1 / -1; }
@media (min-width: 720px) { .moods__list li:last-child:nth-child(odd) { grid-column: auto; } }
.mood { position: relative; display: flex; flex-direction: column; gap: 2px; height: 100%; min-height: 150px; padding: 18px; overflow: hidden; border-radius: var(--radius); background: var(--bg-1); border: 1px solid var(--line); text-decoration: none; transition: border-color .25s, transform .25s var(--ease); }
.mood::after { content: ""; position: absolute; right: -40px; bottom: -40px; width: 120px; height: 120px; border-radius: 50%; background: radial-gradient(circle, var(--glow), transparent 70%); transition: transform .4s var(--ease); }
.mood:hover { border-color: rgba(255, 122, 89, .6); color: var(--text); transform: translateY(-3px); }
.mood:hover::after { transform: scale(1.4); }
.mood__icon { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; margin-bottom: auto; border-radius: 50%; background: var(--accent-soft); color: var(--accent); }
.mood strong { margin-top: 18px; font: italic 400 1.7rem/1.05 var(--serif); }
.mood__line { color: var(--muted); font-size: .84rem; }
.boards { display: grid; grid-template-columns: minmax(0, 1fr); gap: 28px; }
@media (min-width: 900px) { .boards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; } }
.board { min-width: 0; padding: 24px; border-radius: var(--radius); background: linear-gradient(160deg, var(--bg-2), var(--bg-1) 60%); border: 1px solid var(--line); }
.board__list { list-style: none; }
.board__list li + li { border-top: 1px solid var(--line); }
.board__list a { display: flex; align-items: center; gap: 14px; padding: 11px 0; text-decoration: none; }
.board__list a:hover strong { color: var(--accent-2); }
.board__rank { width: 34px; flex: none; color: var(--accent); font: italic 400 2.3rem/1 var(--serif); text-align: center; }
.board__list img { width: 46px; height: 69px; flex: none; border-radius: 6px; object-fit: cover; background: var(--bg-3); }
.board__text { display: flex; flex-direction: column; min-width: 0; }
.board__text strong { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; transition: color .2s; }
.board__text small { color: var(--muted); }
.board__score { margin-left: auto; padding: 4px 10px; border-radius: 999px; border: 1px solid rgba(255, 122, 89, .4); color: var(--accent); font-weight: 700; font-size: .88rem; }
.editorial { display: grid; gap: 26px; padding: 30px 24px; border-radius: var(--radius); background: radial-gradient(70% 120% at 0% 0%, var(--glow), transparent 60%), var(--bg-1); border: 1px solid var(--line); }
@media (min-width: 960px) { .editorial { grid-template-columns: minmax(0, .9fr) minmax(0, 1.6fr); gap: 50px; padding: 44px; } }
.editorial__intro p { color: var(--text-2); }
.editorial__intro p:last-child { margin: 0; }
.editorial__steps { list-style: none; counter-reset: step; display: grid; gap: 18px; }
@media (min-width: 640px) { .editorial__steps { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px; } }
.editorial__steps li { counter-increment: step; padding-top: 14px; border-top: 1px solid var(--line); color: var(--muted); font-size: .92rem; }
.editorial__steps li::before { content: counter(step, decimal-leading-zero); display: block; margin-bottom: 6px; color: var(--accent); font: italic 400 1.5rem/1 var(--serif); }
.editorial__steps strong { display: block; margin-bottom: 2px; color: var(--text); font-weight: 600; font-size: 1rem; }
.presets__list { list-style: none; display: grid; gap: 10px; }
@media (min-width: 768px) { .presets__list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .presets__list { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.presets__list a { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 64px; padding: 14px 18px; border-radius: var(--radius-sm); background: var(--bg-1); border: 1px solid var(--line); font-weight: 600; text-decoration: none; transition: border-color .2s; }
.presets__list a:hover { border-color: var(--accent); color: var(--text); }
.presets__list .icon { color: var(--accent); }
.pillcloud { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; }
.pillcloud a, .pills a { display: inline-flex; align-items: center; min-height: 40px; padding: 7px 16px; border-radius: 999px; background: var(--bg-1); border: 1px solid var(--line); color: var(--text-2); font-weight: 600; font-size: .9rem; text-decoration: none; transition: border-color .2s, color .2s; }
.pillcloud a:hover, .pills a:hover { border-color: var(--accent); color: var(--text); }

/* ---------- Title page ---------- */
.titlehero { position: relative; isolation: isolate; overflow: hidden; padding: 22px 0 36px; }
.titlehero .backdrop { position: absolute; inset: 0; z-index: -2; }
.titlehero .backdrop img { width: 100%; height: 100%; object-fit: cover; object-position: center 20%; opacity: .45; }
.titlehero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, var(--bg) 0%, rgba(13, 11, 15, .6) 55%, rgba(13, 11, 15, .75) 100%), linear-gradient(90deg, rgba(13, 11, 15, .85), transparent 75%); }
.titlehero__grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; align-items: end; }
.titlehero__poster { width: 132px; overflow: hidden; border-radius: var(--radius-sm); background: var(--bg-2); aspect-ratio: 2 / 3; box-shadow: 0 30px 60px -20px #000, 0 0 0 1px rgba(244, 239, 231, .08); }
.titlehero__poster img { width: 100%; height: 100%; object-fit: cover; }
.titlehero__copy { min-width: 0; animation: rise .6s var(--ease) both; }
.titlehero h1 { max-width: 20ch; font-size: clamp(2.2rem, 1.4rem + 3.4vw, 4.4rem); margin-bottom: .15em; }
.titlehero__orig { margin-bottom: 6px; color: var(--muted); font-size: .9rem; }
.titlehero__tag { margin-bottom: 10px; color: var(--text-2); font: italic 400 1.3rem/1.3 var(--serif); }
.titlehero__meta { margin-bottom: 6px; color: var(--text); font-weight: 600; letter-spacing: .02em; }
.titlehero__credit { margin-bottom: 14px; color: var(--muted); }
.titlehero__credit strong { color: var(--text); font-weight: 600; }
.pills { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 18px; }
.pills a { min-height: 34px; padding: 4px 13px; font-size: .84rem; background: rgba(20, 17, 22, .7); }
.titlehero__score { display: flex; align-items: center; gap: 14px; margin-bottom: 20px; }
.titlehero__score p { margin: 0; color: var(--muted); font-size: .86rem; line-height: 1.4; }
.titlehero__score strong { color: var(--text); }
.scoredisc { display: inline-flex; align-items: center; justify-content: center; width: 62px; height: 62px; flex: none; border-radius: 50%; border: 2px solid var(--accent); background: rgba(13, 11, 15, .6); color: var(--text); font: 400 1.7rem/1 var(--serif); }
.titlehero__noscore { color: var(--muted) !important; }
.titlehero__actions { display: flex; flex-wrap: wrap; gap: 8px; }
@media (min-width: 560px) { .titlehero__grid { grid-template-columns: 180px minmax(0, 1fr); gap: 28px; } .titlehero__poster { width: auto; } }
@media (min-width: 960px) { .titlehero { padding: 34px 0 56px; min-height: 560px; display: flex; align-items: flex-end; } .titlehero .wrap { width: 100%; } .titlehero__grid { grid-template-columns: 270px minmax(0, 1fr); gap: 48px; } }
.sectionbar { position: sticky; top: var(--mast); z-index: 20; margin-bottom: 34px; background: rgba(13, 11, 15, .96); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.sectionbar .wrap { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; }
.sectionbar a { flex: none; display: inline-flex; align-items: center; min-height: 48px; padding: 0 14px; color: var(--muted); font-size: .9rem; font-weight: 600; text-decoration: none; border-bottom: 2px solid transparent; }
.sectionbar a:hover { color: var(--text); border-bottom-color: var(--accent); }
.titlebody { display: grid; grid-template-columns: minmax(0, 1fr); gap: 34px; margin-bottom: 40px; }
@media (min-width: 1024px) { .titlebody { grid-template-columns: minmax(0, 1fr) 330px; gap: 56px; } }
.titlebody__main > section, .titlebody__main > .finderlink { margin-bottom: 44px; }
.titlebody__main h2 { font-size: clamp(1.6rem, 1.35rem + .8vw, 2rem); }
.story { max-width: 70ch; color: var(--text-2); font-size: 1.1rem; line-height: 1.7; }
.callout { display: flex; gap: 10px; align-items: flex-start; padding: 14px 16px; border-radius: var(--radius-sm); background: var(--bg-1); border: 1px solid var(--line); color: var(--text-2); font-size: .92rem; }
.callout .icon { margin-top: 2px; color: var(--accent); }
.providers { padding: 24px; border-radius: var(--radius); background: var(--bg-1); border: 1px solid var(--line); }
.providers__head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.providers__head h2 { margin: 0; }
.regionform { display: flex; align-items: center; gap: 8px; }
.regionform label { color: var(--muted); font-size: .86rem; }
.providers__intro { color: var(--text-2); }
.providers__group { margin-bottom: 18px; }
.providers__group h3 { margin-bottom: 9px; color: var(--muted); font: 700 .72rem/1.4 var(--sans); letter-spacing: .16em; text-transform: uppercase; }
.providers__list { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; }
.providers__list li { display: inline-flex; align-items: center; gap: 9px; padding: 6px 13px 6px 6px; border-radius: 999px; background: var(--bg-2); border: 1px solid var(--line); font-size: .88rem; font-weight: 600; }
.providers__list img { width: 30px; height: 30px; border-radius: 8px; }
.providers__none { color: var(--text-2); }
.providers__note { margin: 16px 0 0; color: var(--muted); font-size: .82rem; }
.finderlink { display: flex; align-items: center; gap: 16px; padding: 20px 22px; border-radius: var(--radius); background: radial-gradient(90% 160% at 0% 50%, var(--glow), transparent 70%), var(--bg-1); border: 1px solid rgba(255, 122, 89, .35); text-decoration: none; transition: border-color .2s; }
.finderlink:hover { border-color: var(--accent); color: var(--text); }
.finderlink > .icon { color: var(--accent); }
.finderlink span { color: var(--text-2); font-size: .92rem; }
.finderlink strong { display: block; color: var(--text); font: italic 400 1.35rem/1.2 var(--serif); }
.trailer { position: relative; display: block; max-width: 800px; aspect-ratio: 16 / 9; overflow: hidden; border-radius: var(--radius); background: #000; }
.trailer img { width: 100%; height: 100%; object-fit: cover; opacity: .75; transition: opacity .3s; }
.trailer:hover img { opacity: .9; }
.trailer iframe { width: 100%; height: 100%; border: 0; }
.trailer__play { position: absolute; inset: 0; margin: auto; display: flex; align-items: center; justify-content: center; width: 78px; height: 78px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); box-shadow: 0 0 0 10px rgba(255, 122, 89, .2); transition: transform .25s var(--ease); }
.trailer:hover .trailer__play { transform: scale(1.08); }
.people { list-style: none; display: flex; gap: 16px; overflow-x: auto; padding: 4px 2px 12px; scroll-snap-type: x mandatory; scrollbar-width: thin; scrollbar-color: var(--bg-3) transparent; }
.people li { flex: 0 0 112px; scroll-snap-align: start; text-align: center; }
.people img, .people__blank { width: 92px; height: 92px; margin: 0 auto 9px; border-radius: 50%; object-fit: cover; background: var(--bg-3); box-shadow: 0 0 0 1px var(--line); }
.people__blank { display: flex; align-items: center; justify-content: center; color: var(--muted); font: 400 1.8rem/1 var(--serif); }
.people p { margin: 0; color: var(--muted); font-size: .82rem; line-height: 1.35; }
.people strong { color: var(--text); font-weight: 600; }
.seasons { list-style: none; display: grid; gap: 10px; }
@media (min-width: 640px) { .seasons { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.seasons a { display: flex; align-items: center; gap: 14px; padding: 10px; border-radius: var(--radius-sm); background: var(--bg-1); border: 1px solid var(--line); text-decoration: none; transition: border-color .2s; }
.seasons a:hover { border-color: var(--accent); color: var(--text); }
.seasons img, .seasons__blank { width: 52px; height: 78px; flex: none; display: flex; align-items: center; justify-content: center; border-radius: 6px; object-fit: cover; background: var(--bg-3); color: var(--muted); }
.seasons span { display: flex; flex-direction: column; }
.seasons small { color: var(--muted); }
.titlebody__side { align-self: start; padding: 24px; border-radius: var(--radius); background: var(--bg-1); border: 1px solid var(--line); }
.titlebody__side h2 { font-size: 1.6rem; }
@media (min-width: 1024px) { .titlebody__side { position: sticky; top: calc(var(--mast) + 70px); } }
.facts { margin: 0 0 16px; }
.facts div { padding: 10px 0; border-bottom: 1px solid var(--line); }
.facts dt { color: var(--muted); font-size: .72rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.facts dd { margin: 3px 0 0; }
.outlinks { list-style: none; display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.outlinks a { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; color: var(--accent); font-weight: 600; text-decoration: none; }
.side__source { margin: 0; color: var(--muted); font-size: .82rem; }

/* ---------- Catalog and filters ---------- */
.browse, .finderpage { display: grid; grid-template-columns: minmax(0, 1fr); gap: 22px; margin-bottom: 44px; }
@media (min-width: 1100px) { .browse, .finderpage { grid-template-columns: 300px minmax(0, 1fr); gap: 44px; align-items: start; } .browse__side, .finderpage__form { position: sticky; top: calc(var(--mast) + 16px); max-height: calc(100vh - var(--mast) - 32px); overflow-y: auto; scrollbar-width: thin; } }
.finderpage:not(.finderpage--results) { grid-template-columns: minmax(0, 1fr); }
@media (min-width: 1100px) { .finderpage:not(.finderpage--results) { grid-template-columns: 430px minmax(0, 1fr); } }
.filterbox > summary { width: 100%; list-style: none; }
.filterbox > summary::-webkit-details-marker { display: none; }
.filterbox[open] > summary { margin-bottom: 14px; }
@media (min-width: 1100px) { .filterbox > summary { display: none; } }
.filters, .sf { padding: 22px; border-radius: var(--radius); background: var(--bg-1); border: 1px solid var(--line); }
.filters__title { font: 400 1.6rem/1.1 var(--serif); }
.filters fieldset, .sf__group { min-width: 0; margin: 0 0 20px; padding: 0; border: 0; }
.filters legend, .sf__group legend { margin-bottom: 10px; color: var(--accent); font-size: .72rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 13px; }
.field label { font-size: .88rem; font-weight: 600; }
.field small { color: var(--muted); font-size: .78rem; }
select { width: 100%; min-height: 46px; padding: 9px 38px 9px 14px; border-radius: var(--radius-sm); border: 1px solid var(--line); background: var(--bg-2) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23ff7a59' stroke-width='2.4' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 13px center; appearance: none; cursor: pointer; transition: border-color .2s; }
select:hover { border-color: #4a404e; }
select:focus { border-color: var(--accent); outline: none; box-shadow: 0 0 0 4px var(--accent-soft); }
.regionform select { width: auto; min-width: 180px; }
.filters__actions, .sf__actions { display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 0 0; }
.choices { display: grid; gap: 8px; }
.choices--two { grid-template-columns: 1fr 1fr; }
.choices--moods { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 560px) and (max-width: 1099px) { .choices--moods { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.choice { position: relative; display: block; cursor: pointer; }
.choice input { position: absolute; inset: 0; margin: 0; opacity: 0; cursor: pointer; }
.choice span { display: flex; align-items: center; gap: 8px; min-height: 50px; padding: 10px 13px; border-radius: var(--radius-sm); background: var(--bg-2); border: 1px solid var(--line); font-size: .92rem; font-weight: 600; transition: border-color .2s, background-color .2s; }
.choice .icon { color: var(--muted); }
.choice:hover span { border-color: #4a404e; }
.choice input:checked + span { border-color: var(--accent); background: var(--accent-soft); }
.choice input:checked + span .icon { color: var(--accent); }
.choice input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.sf__row { display: grid; gap: 4px 14px; }
@media (min-width: 560px) and (max-width: 1099px) { .sf__row { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.sf__actions .btn--accent { flex: 1; }
.chips { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.chips a { display: inline-flex; align-items: center; gap: 6px; min-height: 38px; padding: 6px 13px; border-radius: 999px; background: var(--accent-soft); border: 1px solid rgba(255, 122, 89, .35); font-size: .86rem; font-weight: 600; text-decoration: none; }
.chips a small { color: var(--muted); font-weight: 500; }
.chips a:hover { border-color: var(--accent); color: var(--text); }
.chips .chips__clear { background: transparent; border-color: var(--line); color: var(--text-2); }
.resultcount { color: var(--muted); font-size: .9rem; }
.resultcount strong { color: var(--text); }
.notice { display: flex; align-items: flex-start; gap: 10px; padding: 13px 16px; border-radius: var(--radius-sm); background: var(--bg-1); border: 1px solid var(--line); border-left: 3px solid var(--accent); color: var(--text-2); font-size: .92rem; }
.notice .icon { margin-top: 2px; color: var(--accent); }
.empty { padding: 44px 22px; border-radius: var(--radius); background: var(--bg-1); border: 1px dashed var(--line); color: var(--text-2); text-align: center; }
.empty > .icon { margin: 0 auto 10px; color: var(--accent); }
.empty h2 { font-size: 1.8rem; }
.empty__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 18px 0 0; }
.pager { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px; margin: 38px 0 10px; }
.pager ol { list-style: none; display: flex; gap: 6px; }
.pager a, .pager span[aria-current] { display: inline-flex; align-items: center; justify-content: center; gap: 4px; min-width: 44px; min-height: 44px; padding: 0 13px; border-radius: 999px; border: 1px solid var(--line); font-weight: 600; text-decoration: none; }
.pager a:hover { border-color: var(--accent); color: var(--text); }
.pager span[aria-current] { background: var(--text); border-color: var(--text); color: var(--accent-ink); }
.pager__gap { align-self: center; color: var(--muted); }
.loadmore { display: flex; flex-direction: column; align-items: center; gap: 6px; margin-top: 34px; }
.loadmore p { margin: 0; }
.hubbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 26px; }
.hubbar__rule { display: flex; align-items: center; gap: 6px; margin: 0; color: var(--muted); font-size: .86rem; }
.segment { display: inline-flex; flex-wrap: wrap; gap: 4px; margin-bottom: 16px; padding: 4px; border-radius: 999px; background: var(--bg-1); border: 1px solid var(--line); }
.hubbar .segment { margin-bottom: 0; }
.segment a, .segment button { display: inline-flex; align-items: center; gap: 4px; min-height: 40px; padding: 6px 17px; border: 0; border-radius: 999px; background: transparent; color: var(--text-2); font-size: .9rem; font-weight: 600; text-decoration: none; cursor: pointer; }
.segment a:hover, .segment button:hover { color: var(--text); }
.segment [aria-current="page"], .segment [aria-pressed="true"] { background: var(--text); color: var(--accent-ink); }
.related { margin: 50px 0 44px; padding-top: 24px; border-top: 1px solid var(--line); }
.related__head { color: var(--text-2); font-size: 1.4rem; }
.related ul { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; }
.related a { display: inline-flex; align-items: center; min-height: 40px; padding: 6px 15px; border-radius: 999px; border: 1px solid var(--line); color: var(--text-2); font-size: .88rem; font-weight: 600; text-decoration: none; }
.related a:hover { border-color: var(--accent); color: var(--text); }

/* ---------- Story Finder ---------- */
.sfguide { padding: 26px; border-radius: var(--radius); background: var(--bg-1); border: 1px solid var(--line); }
.sfguide > h2:not(:first-child) { margin-top: 30px; }
.sfguide p { color: var(--text-2); }
.tablewrap { overflow-x: auto; margin-bottom: 18px; border-radius: var(--radius-sm); border: 1px solid var(--line); }
.moodtable { width: 100%; min-width: 560px; border-collapse: collapse; font-size: .88rem; }
.moodtable th, .moodtable td { padding: 12px 14px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.moodtable thead th { background: var(--bg-2); color: var(--muted); font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; }
.moodtable tbody th { white-space: nowrap; font: italic 400 1.15rem/1.2 var(--serif); }
.moodtable tbody th .icon { margin-right: 4px; color: var(--accent); }
.moodtable td { color: var(--text-2); }
.moodtable tr:last-child > * { border-bottom: 0; }
.sfhead { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 16px; margin-bottom: 12px; }
.sfhead h2, .sfhead p { margin: 0; }
.sfrules { margin-bottom: 24px; border-radius: var(--radius-sm); background: var(--bg-1); border: 1px solid var(--line); }
.sfrules summary { display: flex; align-items: center; gap: 8px; min-height: 48px; padding: 8px 16px; color: var(--accent); font-weight: 600; cursor: pointer; list-style: none; }
.sfrules summary::-webkit-details-marker { display: none; }
.sfrules ul { padding: 0 16px 14px 34px; color: var(--text-2); font-size: .9rem; }
.sfrules li + li { margin-top: 3px; }
.sfmore { display: flex; justify-content: center; margin: 38px 0 0; }

/* ---------- Explore and genres ---------- */
.explore > section { margin-bottom: 46px; }
.tiles { list-style: none; display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); }
.tile { display: flex; flex-direction: column; gap: 4px; height: 100%; padding: 20px; border-radius: var(--radius); background: var(--bg-1); border: 1px solid var(--line); text-decoration: none; transition: border-color .2s, transform .25s var(--ease); }
.tile:hover { border-color: var(--accent); color: var(--text); transform: translateY(-2px); }
.tile .icon { margin-bottom: 8px; color: var(--accent); }
.tile strong { font: 400 1.5rem/1.1 var(--serif); }
.tile span { color: var(--muted); font-size: .86rem; }
.pairs { list-style: none; display: grid; gap: 8px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); }
.pairs li { display: flex; align-items: center; gap: 6px; padding: 6px 6px 6px 15px; border-radius: var(--radius-sm); background: var(--bg-1); border: 1px solid var(--line); }
.pairs span { flex: 1; font-weight: 600; }
.pairs a { display: inline-flex; align-items: center; min-height: 38px; padding: 4px 13px; border-radius: 999px; background: var(--bg-3); color: var(--text-2); font-size: .84rem; font-weight: 600; text-decoration: none; }
.pairs a:hover { background: var(--accent); color: var(--accent-ink); }
.genregrid { list-style: none; display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); margin-bottom: 50px; }
.genrecard { position: relative; display: flex; flex-direction: column; gap: 4px; height: 100%; min-height: 150px; padding: 22px; overflow: hidden; border-radius: var(--radius); background: var(--bg-1); border: 1px solid var(--line); text-decoration: none; transition: border-color .2s, transform .25s var(--ease); }
.genrecard::after { content: ""; position: absolute; right: -50px; top: -50px; width: 140px; height: 140px; border-radius: 50%; background: radial-gradient(circle, var(--glow), transparent 70%); }
.genrecard:hover { border-color: var(--accent); color: var(--text); transform: translateY(-2px); }
.genrecard strong { font: 400 1.9rem/1.05 var(--serif); }
.genrecard span { color: var(--text-2); font-size: .9rem; }
.genrecard small { margin-top: auto; padding-top: 10px; color: var(--accent); font-size: .7rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }

/* ---------- Seasons and episodes ---------- */
.episodes__intro { display: flex; align-items: flex-start; gap: 20px; margin-bottom: 28px; }
.episodes__intro img { width: 120px; flex: none; border-radius: var(--radius-sm); }
.eplist { list-style: none; display: grid; gap: 10px; margin-bottom: 30px; }
.eplist a { display: flex; gap: 16px; padding: 15px 17px; border-radius: var(--radius-sm); background: var(--bg-1); border: 1px solid var(--line); text-decoration: none; transition: border-color .2s; }
.eplist a:hover { border-color: var(--accent); color: var(--text); }
.eplist__num { width: 36px; flex: none; color: var(--accent); font: italic 400 1.8rem/1 var(--serif); }
.eplist__text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.eplist__text small { color: var(--muted); }
.eplist__story { margin-top: 4px; color: var(--text-2); font-size: .9rem; }
.episode { display: grid; grid-template-columns: minmax(0, 1fr); gap: 30px; margin-bottom: 44px; }
@media (min-width: 1024px) { .episode { grid-template-columns: minmax(0, 1fr) 330px; gap: 56px; } }
.episode__still { width: 100%; max-width: 800px; margin-bottom: 24px; border-radius: var(--radius); }
.guestlist { margin-bottom: 22px; padding-left: 20px; color: var(--text-2); }
.epnav { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; }
.epnav a { display: inline-flex; align-items: center; gap: 4px; min-height: 44px; padding: 8px 17px; border-radius: 999px; border: 1px solid var(--line); font-weight: 600; text-decoration: none; }
.epnav a:hover { border-color: var(--accent); color: var(--text); }

/* ---------- My List, preferences, search ---------- */
.mylist { margin-bottom: 54px; }
.mylist__bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 24px; }
.mylist__bar .segment { margin: 0; }
.mylist__tools { display: flex; flex-wrap: wrap; gap: 8px; }
.mylist__import { position: relative; overflow: hidden; }
.mylist__import input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.mylist__import:focus-within { outline: 2px solid var(--accent); outline-offset: 2px; }
.prefs { max-width: 640px; margin-bottom: 54px; }
.prefs__form { margin-bottom: 18px; padding: 24px; border-radius: var(--radius); background: var(--bg-1); border: 1px solid var(--line); }
.prefs__form .field { margin-bottom: 18px; }
.searchpage { margin-bottom: 44px; }
.searchpage .shelf { margin-top: 44px; }

/* ---------- Article and legal ---------- */
.prose { max-width: 740px; margin-bottom: 64px; color: var(--text-2); font-size: 1.05rem; line-height: 1.75; }
.prose h2 { margin-top: 1.7em; color: var(--text); font-size: 1.9rem; }
.prose h2:first-child { margin-top: 0; }
.prose ul, .prose ol { margin-bottom: 1.1em; padding-left: 22px; }
.prose li { margin-bottom: .45em; }
.prose li::marker { color: var(--accent); }
.prose a { color: var(--accent-2); }
.prose strong { color: var(--text); }
.prose__lede { color: var(--text); font: italic 400 1.45rem/1.45 var(--serif); }
.pagehead--article { margin-bottom: 34px; }
.article__meta { margin: 16px 0 0; color: var(--muted); font-size: .86rem; }
.article__layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 26px; }
@media (min-width: 1024px) { .article__layout { grid-template-columns: 250px minmax(0, 1fr); gap: 64px; } .toc { position: sticky; top: calc(var(--mast) + 20px); align-self: start; } }
.toc { padding: 20px 22px; border-radius: var(--radius); background: var(--bg-1); border: 1px solid var(--line); }
.toc h2 { margin-bottom: .8em; color: var(--accent); font: 700 .72rem/1.4 var(--sans); letter-spacing: .16em; text-transform: uppercase; }
.toc ol { list-style: none; counter-reset: toc; }
.toc li { counter-increment: toc; }
.toc a { display: flex; gap: 10px; padding: 6px 0; color: var(--text-2); font-size: .9rem; text-decoration: none; }
.toc a::before { content: counter(toc, decimal-leading-zero); color: var(--accent); font: italic 400 1rem/1.4 var(--serif); }
.toc a:hover { color: var(--text); }
.article__body { margin-bottom: 64px; }
.article__next { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 32px; }
.article__next a { color: inherit; }
.article__next .btn--accent { color: var(--accent-ink); }

/* ---------- Status pages ---------- */
.statuspage { max-width: 680px; padding-top: 70px; padding-bottom: 90px; text-align: center; }
.statuspage > .icon { margin: 0 auto 14px; color: var(--accent); }
.statuspage__code { margin: 0; color: var(--accent); font: italic 400 clamp(5rem, 3rem + 9vw, 9rem)/1 var(--serif); }
.statuspage p { color: var(--text-2); }
.statuspage .finder { margin: 26px auto; text-align: left; }

/* ---------- Footer ---------- */
.foot { margin-top: 56px; padding: 0 0 32px; background: var(--bg-1); border-top: 1px solid var(--line); }
.foot__band { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; padding-top: 44px; padding-bottom: 40px; border-bottom: 1px solid var(--line); }
.foot__tag { max-width: 18ch; margin: 0; font: 400 clamp(2rem, 1.4rem + 2.4vw, 3.4rem)/1.02 var(--serif); }
.foot__top { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 30px; padding-top: 40px; }
.foot__brand { grid-column: 1 / -1; max-width: 440px; color: var(--muted); font-size: .9rem; }
.foot__brand p { margin-top: 14px; }
@media (min-width: 900px) { .foot__top { grid-template-columns: 1.6fr repeat(4, minmax(0, 1fr)); } .foot__brand { grid-column: auto; } }
.foot__head { margin-bottom: 10px; color: var(--accent); font: 700 .72rem/1.4 var(--sans); letter-spacing: .16em; text-transform: uppercase; }
.foot ul { list-style: none; }
.foot nav a { display: inline-flex; align-items: center; min-height: 36px; color: var(--text-2); font-size: .92rem; text-decoration: none; }
.foot nav a:hover { color: var(--accent-2); }
.foot__credits { margin-top: 36px; padding-top: 22px; border-top: 1px solid var(--line); color: var(--muted); font-size: .82rem; }
.foot__credits a { color: var(--text-2); }
.foot__tmdb { display: inline-block; margin-bottom: 12px; }

/* ---------- Back to top ---------- */
.totop { position: fixed; right: 16px; bottom: 16px; z-index: 30; display: flex; align-items: center; justify-content: center; width: 46px; height: 46px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); box-shadow: 0 10px 26px rgba(0, 0, 0, .45); transition: opacity .2s, transform .2s, visibility .2s; }
.totop:hover { color: var(--accent-ink); }
.js .totop:not(.is-on) { opacity: 0; visibility: hidden; transform: translateY(12px); pointer-events: none; }

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