/* WatchFilms — single stylesheet, no build step. Charcoal surfaces, one ember accent. */
:root {
  --bg: #0c0c0e;
  --bg-2: #111114;
  --surface: #17171b;
  --surface-2: #1f1f25;
  --surface-3: #2a2a31;
  --line: rgba(255, 255, 255, 0.08);
  --line-2: rgba(255, 255, 255, 0.15);
  --text: #f5f3f0;
  --text-2: #cdc8c1;
  --muted: #9a948c;
  --accent: #ff5b3a;
  --accent-2: #ff8a3d;
  --accent-hover: #ff7356;
  --accent-ink: #1b0802;
  --accent-soft: rgba(255, 91, 58, 0.14);
  --gold: #ffc65c;
  --ok: #7ee2a8;
  --warn: #ffb27a;
  --focus: #ffd0a8;
  --radius: 14px;
  --radius-sm: 9px;
  --radius-lg: 22px;
  --container: 1360px;
  --gutter: clamp(16px, 4vw, 40px);
  --header-h: 64px;
  --font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  --shadow: 0 20px 44px -22px rgba(0, 0, 0, 0.8);
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 16px/1.6 var(--font);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration-color: rgba(255, 255, 255, 0.35); text-underline-offset: 3px; }
a:hover { color: #fff; }
h1, h2, h3, h4 { margin: 0; line-height: 1.2; letter-spacing: -0.015em; text-wrap: balance; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; border-radius: 6px; }
code { font-size: 0.9em; background: var(--surface-2); padding: 0.1em 0.4em; border-radius: 5px; }
.icon { flex: none; }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 100; padding: 10px 16px;
  background: var(--accent); color: var(--accent-ink); font-weight: 700; border-radius: var(--radius-sm);
}
.skip-link:focus { top: 12px; }
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.site-main { min-height: 60vh; outline: none; }
.muted { color: var(--muted); }
.small { font-size: 0.875rem; }
.eyebrow { margin: 0 0 8px; color: var(--accent-2); font-size: 0.78rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; }
.eyebrow a { display: inline-flex; align-items: center; min-height: 32px; text-decoration: none; }

/* ---------- Buttons, chips, fields ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 10px 18px; border: 1px solid transparent; border-radius: 999px;
  font-weight: 650; font-size: 0.95rem; line-height: 1.1; text-decoration: none; white-space: nowrap;
  transition: background-color 0.18s var(--ease), border-color 0.18s var(--ease), transform 0.18s var(--ease);
}
.btn:active { transform: translateY(1px); }
.btn { max-width: 100%; }
@media (max-width: 480px) { .btn { white-space: normal; text-align: center; } }
.btn--primary { background: var(--accent); color: var(--accent-ink); }
.btn--primary:hover { background: var(--accent-hover); color: var(--accent-ink); }
.btn--light { background: rgba(255, 255, 255, 0.92); color: #121214; }
.btn--light:hover { background: #fff; color: #000; }
.btn--ghost { background: rgba(255, 255, 255, 0.06); border-color: var(--line-2); color: var(--text); }
.btn--ghost:hover { background: rgba(255, 255, 255, 0.12); }
.btn--sm { min-height: 36px; padding: 7px 14px; font-size: 0.875rem; }
.btn--lg { min-height: 50px; padding: 12px 24px; font-size: 1rem; }
.btn[hidden] { display: none; }
.btn.is-saved { background: var(--accent-soft); border-color: rgba(255, 91, 58, 0.5); color: #ffd5c9; }

.icon-btn {
  position: relative; display: inline-grid; place-items: center; width: 42px; height: 42px;
  border: 1px solid var(--line); border-radius: 50%; background: rgba(255, 255, 255, 0.04); color: var(--text);
  text-decoration: none; transition: background-color 0.18s var(--ease);
}
.icon-btn:hover { background: rgba(255, 255, 255, 0.1); }
.icon-btn--sm { width: 36px; height: 36px; }
.icon-btn:disabled { opacity: 0.35; cursor: default; }

.chip {
  display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 6px 14px;
  border: 1px solid var(--line-2); border-radius: 999px; background: var(--surface);
  font-size: 0.9rem; text-decoration: none; color: var(--text-2);
  transition: border-color 0.18s var(--ease), color 0.18s var(--ease), background-color 0.18s var(--ease);
}
.chip:hover { border-color: var(--accent); color: #fff; }
.chip--sm { min-height: 28px; padding: 3px 11px; font-size: 0.82rem; }
.chip--active { background: var(--accent-soft); border-color: rgba(255, 91, 58, 0.55); color: #ffe0d6; }
.chip-list { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; }

.field { display: grid; gap: 6px; min-width: 0; }
.field label { font-size: 0.82rem; font-weight: 600; color: var(--text-2); }
.field input, .field select, .field textarea, .compare-find input, .region-form select {
  width: 100%; min-height: 44px; padding: 9px 12px; border: 1px solid var(--line-2); border-radius: var(--radius-sm);
  background: var(--bg-2); color: var(--text);
}
.field select, .region-form select {
  appearance: none; padding-right: 34px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%23cdc8c1' stroke-width='1.6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center;
}
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--accent); outline: none; box-shadow: 0 0 0 3px var(--accent-soft); }
.field--inline { grid-template-columns: auto; }
.field__error { margin: 0; color: var(--warn); font-size: 0.85rem; }
.has-error input, .has-error select, .has-error textarea { border-color: var(--warn); }
.field--check { grid-template-columns: auto 1fr; align-items: start; gap: 10px; }
.field--check input { width: 20px; min-height: 20px; height: 20px; margin-top: 3px; accent-color: var(--accent); }
.field--check label { font-weight: 400; font-size: 0.9rem; }
.field--check .field__error { grid-column: 1 / -1; }
.field--honeypot { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(12, 12, 14, 0.86); border-bottom: 1px solid var(--line);
  -webkit-backdrop-filter: saturate(150%) blur(14px); backdrop-filter: saturate(150%) blur(14px);
}
.site-header__inner { display: flex; align-items: center; gap: 20px; min-height: var(--header-h); }
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; flex: none; }
.logo__mark { width: 34px; height: 34px; }
.logo__word { font-size: 1.28rem; font-weight: 800; letter-spacing: -0.03em; color: #fff; }
.logo__word span { color: var(--accent); }
.site-nav { flex: 1; min-width: 0; }
.site-nav__list { display: flex; align-items: center; gap: 2px; list-style: none; }
.site-nav a {
  display: block; padding: 8px 12px; border-radius: 999px; font-size: 0.93rem; font-weight: 550;
  color: var(--text-2); text-decoration: none; white-space: nowrap;
}
.site-nav a:hover { color: #fff; background: rgba(255, 255, 255, 0.06); }
.site-nav a[aria-current="page"] { color: #fff; background: rgba(255, 255, 255, 0.09); box-shadow: inset 0 -2px 0 var(--accent); }
.site-nav__extra { display: none; }
.header-tools { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.header-search { position: relative; display: flex; align-items: center; }
.header-search__input {
  width: 230px; height: 42px; padding: 0 44px 0 16px; border: 1px solid var(--line-2); border-radius: 999px;
  background: var(--bg-2); color: var(--text); transition: width 0.25s var(--ease), border-color 0.2s;
}
.header-search__input:focus { outline: none; border-color: var(--accent); width: 280px; }
.header-search__btn { position: absolute; right: 4px; display: grid; place-items: center; width: 34px; height: 34px; border: 0; border-radius: 50%; background: transparent; color: var(--text-2); }
.header-search-link { display: none; }
.header-list__count {
  position: absolute; top: -4px; right: -4px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px;
  background: var(--accent); color: var(--accent-ink); font-size: 0.7rem; font-weight: 800; line-height: 18px; text-align: center;
}
.header-list__count[hidden] { display: none; }
.icon-btn[aria-current="page"] { border-color: var(--accent); }
.menu-toggle__close { display: none; }
.menu-toggle[aria-expanded="true"] .menu-toggle__open { display: none; }
.menu-toggle[aria-expanded="true"] .menu-toggle__close { display: block; }

@media (max-width: 1180px) {
  .header-search { display: none; }
  .header-search-link { display: inline-grid; }
}
@media (max-width: 1023px) {
  .site-header__inner { flex-wrap: wrap; gap: 12px; }
  .site-nav { order: 3; flex-basis: 100%; display: none; }
  .site-nav.is-open { display: block; }
  .site-nav__list { flex-direction: column; align-items: stretch; gap: 2px; padding: 4px 0 14px; }
  .site-nav a { padding: 12px 14px; border-radius: var(--radius-sm); font-size: 1rem; }
  .site-nav a[aria-current="page"] { box-shadow: inset 3px 0 0 var(--accent); }
  .site-nav__extra { display: block; }
}
@media (min-width: 1024px) { .menu-toggle { display: none !important; } }
@media (max-width: 380px) {
  .logo__word { font-size: 1.12rem; }
  .logo__mark { width: 30px; height: 30px; }
  .header-tools { gap: 6px; }
  .icon-btn { width: 38px; height: 38px; }
}

/* Autocomplete */
.suggest {
  position: absolute; top: calc(100% + 8px); left: 0; right: 0; z-index: 60; min-width: 280px;
  padding: 6px; border: 1px solid var(--line-2); border-radius: var(--radius); background: var(--surface);
  box-shadow: var(--shadow); list-style: none;
}
.suggest[hidden] { display: none; }
.suggest a { display: flex; align-items: center; gap: 12px; padding: 7px 8px; border-radius: var(--radius-sm); text-decoration: none; }
.suggest a:hover, .suggest [aria-selected="true"] a { background: var(--surface-3); }
.suggest img, .suggest__ph { width: 34px; height: 51px; border-radius: 5px; object-fit: cover; background: var(--surface-3); flex: none; }
.suggest strong { display: block; font-size: 0.93rem; line-height: 1.3; }
.suggest span { color: var(--muted); font-size: 0.8rem; }
.suggest__all a { justify-content: center; color: var(--accent-2); font-weight: 600; font-size: 0.88rem; }

/* ---------- Hero ---------- */
.hero { position: relative; isolation: isolate; overflow: hidden; border-bottom: 1px solid var(--line); }
.hero__media { position: absolute; inset: 0; z-index: -2; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; object-position: center 25%; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(90deg, rgba(12, 12, 14, 0.97) 0%, rgba(12, 12, 14, 0.86) 42%, rgba(12, 12, 14, 0.45) 75%, rgba(12, 12, 14, 0.6) 100%),
    linear-gradient(0deg, var(--bg) 0%, rgba(12, 12, 14, 0) 45%);
}
.hero--plain::before { background: radial-gradient(1000px 420px at 15% 0%, rgba(255, 91, 58, 0.16), transparent 70%); }
.hero__inner {
  display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 72px);
  align-items: end; padding-block: clamp(40px, 7vw, 92px) clamp(36px, 5vw, 64px);
}
.hero__heading { font-size: clamp(2rem, 4.4vw, 3.4rem); font-weight: 800; letter-spacing: -0.035em; max-width: 15ch; }
.hero__heading em { font-style: normal; background: linear-gradient(90deg, var(--accent-2), var(--accent)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero__lede { margin: 16px 0 26px; max-width: 54ch; color: var(--text-2); font-size: clamp(1rem, 1.4vw, 1.12rem); }
.hero-search {
  position: relative; display: flex; align-items: center; gap: 10px; max-width: 620px; padding: 6px 6px 6px 18px;
  border: 1px solid var(--line-2); border-radius: 999px; background: rgba(23, 23, 27, 0.92); box-shadow: var(--shadow);
}
.hero-search:focus-within { border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft), var(--shadow); }
.hero-search > .icon { color: var(--muted); }
.hero-search__input { flex: 1 1 0; width: 0; min-width: 0; height: 46px; border: 0; background: transparent; color: var(--text); font-size: 1.05rem; }
.hero-search__input:focus { outline: none; }
.hero-search--compact { margin: 24px auto; }
.hero__quick { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 20px; list-style: none; }
.hero__quick a { display: inline-flex; align-items: center; gap: 7px; min-height: 32px; color: var(--text-2); font-size: 0.92rem; text-decoration: none; }
.hero__quick a:hover { color: #fff; }
.hero__quick .icon { color: var(--accent-2); }
.hero-feature {
  padding: 22px 24px; border: 1px solid var(--line-2); border-radius: var(--radius-lg);
  background: linear-gradient(160deg, rgba(31, 31, 37, 0.82), rgba(17, 17, 20, 0.82));
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
}
.hero-feature__eyebrow { display: flex; align-items: center; gap: 8px; margin: 0 0 8px; color: var(--text-2); font-size: 0.8rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.hero-feature__title { font-size: clamp(1.4rem, 2.3vw, 1.9rem); font-weight: 800; }
.hero-feature__title a { text-decoration: none; }
.hero-feature__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; margin: 10px 0 12px; color: var(--text-2); font-size: 0.9rem; }
.hero-feature__overview { color: var(--text-2); font-size: 0.95rem; }
.score-pill { display: inline-flex; align-items: center; gap: 5px; padding: 2px 10px; border-radius: 999px; background: rgba(255, 198, 92, 0.13); color: var(--gold); font-weight: 700; }
.score-pill small { color: var(--muted); font-weight: 600; font-size: 0.72rem; }

@media (max-width: 899px) {
  .hero__inner { grid-template-columns: 1fr; align-items: start; }
  .hero::before { background: linear-gradient(0deg, var(--bg) 0%, rgba(12, 12, 14, 0.9) 55%, rgba(12, 12, 14, 0.7) 100%); }
}
@media (max-width: 560px) {
  .hero-search { padding-left: 14px; }
  .hero-search .btn { padding-inline: 14px; }
  .hero-feature { padding: 18px; }
}

/* ---------- Home sections ---------- */
.home-body { padding-block: 12px 24px; }
.rail { margin-block: clamp(26px, 4vw, 44px); }
.rail__head, .section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 14px; }
.rail__title, .section-head h2 { font-size: clamp(1.2rem, 2vw, 1.5rem); font-weight: 750; }
.rail__title::before, .section-head h2::before {
  content: ""; display: inline-block; width: 4px; height: 0.9em; margin-right: 10px; border-radius: 2px;
  background: linear-gradient(180deg, var(--accent-2), var(--accent)); vertical-align: -0.08em;
}
.rail__note { margin: 4px 0 0 14px; color: var(--muted); font-size: 0.85rem; }
.rail__actions { display: flex; align-items: center; gap: 12px; flex: none; }
.rail__more { display: inline-flex; align-items: center; gap: 4px; min-height: 36px; color: var(--accent-2); font-size: 0.9rem; font-weight: 650; text-decoration: none; white-space: nowrap; }
.rail__more:hover { color: #fff; }
.rail__controls { display: flex; gap: 6px; }
.rail__controls[hidden] { display: none; }
.rail__viewport { overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x proximity; scroll-padding-inline: var(--gutter); scrollbar-width: none; margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); }
.rail__viewport::-webkit-scrollbar { display: none; }
.rail__track { display: grid; grid-auto-flow: column; grid-auto-columns: clamp(132px, 38vw, 180px); gap: clamp(12px, 1.6vw, 18px); padding-bottom: 6px; }
@media (min-width: 768px) { .rail__track { grid-auto-columns: 160px; } }
@media (min-width: 1280px) { .rail__track { grid-auto-columns: 178px; } }
.rail__track .card { scroll-snap-align: start; }
@media (max-width: 599px) { .rail__controls { display: none !important; } }

.browse-block { margin-block: clamp(34px, 5vw, 56px); }
.section-lede { margin: -4px 0 16px; color: var(--muted); font-size: 0.92rem; }
.browse-split { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.browse-split__label { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; color: var(--text-2); font-size: 0.95rem; font-weight: 650; }
@media (max-width: 767px) { .browse-split { grid-template-columns: 1fr; } }
.country-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 168px), 1fr)); gap: 10px; list-style: none; }
.country-tile {
  display: flex; align-items: center; gap: 12px; min-height: 52px; padding: 8px 14px; border: 1px solid var(--line);
  border-radius: var(--radius); background: var(--surface); font-weight: 600; font-size: 0.93rem; text-decoration: none;
  transition: border-color 0.18s var(--ease), transform 0.18s var(--ease);
}
.country-tile:hover { border-color: var(--accent); transform: translateY(-1px); }
.country-tile__code { display: grid; place-items: center; width: 34px; height: 26px; border-radius: 6px; background: var(--surface-3); color: var(--accent-2); font-size: 0.72rem; font-weight: 800; letter-spacing: 0.06em; flex: none; }
.country-grid--large .country-tile { min-height: 60px; }

/* Guide */
.guide { margin-block: clamp(40px, 6vw, 72px) 20px; padding: clamp(22px, 4vw, 44px); border: 1px solid var(--line); border-radius: var(--radius-lg); background: linear-gradient(180deg, var(--surface), var(--bg-2)); }
.guide__head { max-width: 760px; margin-bottom: 28px; }
.guide__head h2 { font-size: clamp(1.45rem, 2.6vw, 2rem); font-weight: 800; }
.guide__lede { margin: 12px 0 0; color: var(--text-2); }
.guide__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 16px; }
.guide__item { padding: 20px; border: 1px solid var(--line); border-radius: var(--radius); background: rgba(255, 255, 255, 0.02); }
.guide__item h3 { margin-bottom: 8px; font-size: 1.05rem; font-weight: 700; }
.guide__item p { margin: 0; color: var(--text-2); font-size: 0.95rem; }
.guide__item a { color: #ffd9cc; }
.guide__item--wide { grid-column: 1 / -1; border-color: rgba(255, 91, 58, 0.35); background: var(--accent-soft); }

/* ---------- Cards and grids ---------- */
.card { position: relative; min-width: 0; }
.card__link { display: block; text-decoration: none; }
.card__poster {
  position: relative; aspect-ratio: 2 / 3; overflow: hidden; border-radius: var(--radius); background: var(--surface-2);
  box-shadow: 0 10px 24px -16px rgba(0, 0, 0, 0.9); transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.card__poster img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s var(--ease), filter 0.25s; }
.card__poster::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.07); pointer-events: none; }
.card__link:hover .card__poster, .card__link:focus-visible .card__poster { transform: translateY(-3px); box-shadow: 0 18px 32px -16px rgba(0, 0, 0, 0.95), 0 0 0 2px var(--accent); }
.card__link:hover .card__poster img { transform: scale(1.04); filter: brightness(1.06); }
@media (prefers-reduced-motion: reduce) { .card__poster, .card__poster img { transition: none; } .card__link:hover .card__poster img { transform: none; } }
.card__poster--empty, .img-broken { background: linear-gradient(160deg, var(--surface-3), var(--surface)); }
.img-broken img { opacity: 0; }
.card__placeholder { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 10px; padding: 12px; color: var(--muted); text-align: center; font-size: 0.82rem; line-height: 1.3; }
.card__type {
  position: absolute; top: 8px; left: 8px; padding: 2px 8px; border-radius: 6px; font-size: 0.68rem; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase;
  background: rgba(12, 12, 14, 0.82); color: var(--text-2);
}
.card__type--tv { color: #9fd8ff; }
.card__score {
  position: absolute; top: 8px; right: 8px; display: inline-flex; align-items: center; gap: 3px; padding: 2px 7px; border-radius: 6px;
  background: rgba(12, 12, 14, 0.85); color: var(--gold); font-size: 0.78rem; font-weight: 800;
}
.card__title { margin: 10px 0 2px; font-size: 0.95rem; font-weight: 650; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; }
.card__meta { margin: 0; color: var(--muted); font-size: 0.82rem; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(46%, 168px), 1fr)); gap: clamp(14px, 2vw, 22px) clamp(12px, 1.6vw, 18px); }
@media (min-width: 1280px) { .grid { grid-template-columns: repeat(auto-fill, minmax(178px, 1fr)); } }

/* ---------- Generic page layout ---------- */
.page { padding-block: 18px 56px; }
.page--narrow { max-width: 880px; }
.breadcrumbs { margin-bottom: 16px; font-size: 0.85rem; color: var(--muted); }
.breadcrumbs ol { display: flex; flex-wrap: wrap; gap: 4px; list-style: none; }
.breadcrumbs li:not(:last-child)::after { content: "/"; margin-left: 6px; color: var(--surface-3); }
.breadcrumbs a { text-decoration: none; }
.breadcrumbs a:hover { color: #fff; text-decoration: underline; }
.breadcrumbs [aria-current] { color: var(--text-2); }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-bottom: 22px; }
.page-head--stack { display: block; }
.page-title { font-size: clamp(1.6rem, 3.2vw, 2.4rem); font-weight: 800; letter-spacing: -0.03em; overflow-wrap: anywhere; }
.page-lede { max-width: 72ch; margin: 10px 0 0; color: var(--text-2); }
.page-count { margin: 8px 0 0; color: var(--muted); font-size: 0.9rem; }
.segmented { display: inline-flex; padding: 4px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); flex-wrap: wrap; }
.segmented a { padding: 7px 16px; border-radius: 999px; font-size: 0.9rem; font-weight: 600; color: var(--text-2); text-decoration: none; }
.segmented a[aria-current="page"] { background: var(--accent); color: var(--accent-ink); }

.filters { margin-bottom: 18px; padding: 16px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); }
.filters__grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; }
.filters__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
@media (max-width: 1100px) { .filters__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 600px) { .filters__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 359px) { .filters__grid { grid-template-columns: 1fr; } }
.active-filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; list-style: none; }

.empty-state { display: grid; justify-items: center; gap: 10px; padding: clamp(32px, 6vw, 64px) 20px; border: 1px dashed var(--line-2); border-radius: var(--radius-lg); text-align: center; color: var(--text-2); }
.empty-state h2 { font-size: 1.3rem; color: var(--text); }
.empty-state p { max-width: 52ch; margin: 0; }
.empty-state > .icon { color: var(--accent-2); }
.empty-state--big { border: 0; }
.empty-state > form { width: 100%; max-width: 560px; }
.error-code { margin: 0; font-size: clamp(4rem, 12vw, 7rem); font-weight: 900; line-height: 1; letter-spacing: -0.05em; background: linear-gradient(90deg, var(--accent-2), var(--accent)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.notice { margin-bottom: 20px; padding: 16px 18px; border: 1px solid var(--line-2); border-radius: var(--radius); background: var(--surface); }
.notice h2 { font-size: 1.1rem; margin-bottom: 6px; }
.notice p:last-child { margin-bottom: 0; }
.notice--warn { border-color: rgba(255, 178, 122, 0.45); background: rgba(255, 178, 122, 0.08); }
.notice--success { border-color: rgba(126, 226, 168, 0.45); background: rgba(126, 226, 168, 0.08); }
.notice__dev { margin-top: 8px; color: var(--warn); font-size: 0.85rem; }

.pagination { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px; margin-top: 36px; }
.pagination__pages { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; }
.pagination__page, .pagination__step {
  display: inline-flex; align-items: center; justify-content: center; gap: 4px; min-width: 42px; height: 42px; padding: 0 12px;
  border: 1px solid var(--line-2); border-radius: 999px; font-weight: 600; font-size: 0.92rem; text-decoration: none;
}
.pagination__page:hover, .pagination__step:hover { border-color: var(--accent); }
.pagination__page.is-current { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.pagination__gap { align-self: center; color: var(--muted); }
@media (max-width: 420px) { .pagination__step span { display: none; } }

/* ---------- Title page ---------- */
.title-hero { position: relative; isolation: isolate; overflow: hidden; padding-block: 18px clamp(28px, 4vw, 48px); }
.title-hero__media { position: absolute; inset: 0; z-index: -2; }
.title-hero__media img { width: 100%; height: 100%; object-fit: cover; object-position: center 20%; }
.title-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(12, 12, 14, 0.97) 0%, rgba(12, 12, 14, 0.85) 50%, rgba(12, 12, 14, 0.6) 100%), linear-gradient(0deg, var(--bg) 0%, rgba(12, 12, 14, 0) 50%); }
.title-hero__grid { display: grid; grid-template-columns: minmax(0, 300px) minmax(0, 1fr); gap: clamp(24px, 4vw, 52px); align-items: start; }
.title-poster { position: relative; aspect-ratio: 2 / 3; overflow: hidden; border-radius: var(--radius-lg); background: var(--surface-2); box-shadow: var(--shadow), 0 0 0 1px var(--line-2); }
.title-poster img { width: 100%; height: 100%; object-fit: cover; }
.title-info__kind { display: inline-flex; align-items: center; gap: 7px; margin: 0 0 10px; color: var(--accent-2); font-size: 0.82rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }
.title-info__heading { font-size: clamp(1.9rem, 4.2vw, 3.2rem); font-weight: 850; letter-spacing: -0.035em; overflow-wrap: anywhere; }
.title-info__year { color: var(--muted); font-weight: 500; }
.title-info__tagline { margin: 10px 0 0; color: var(--text-2); font-style: italic; }
.meta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin: 16px 0; list-style: none; color: var(--text-2); font-size: 0.93rem; }
.meta-row li { display: inline-flex; align-items: center; gap: 6px; }
.cert { padding: 1px 8px; border: 1px solid var(--line-2); border-radius: 5px; font-size: 0.8rem; font-weight: 700; }
.score-block { display: flex; align-items: center; gap: 14px; margin: 6px 0 20px; }
.score-block p { margin: 0; line-height: 1.4; }
.score-block .muted { display: inline-flex; align-items: center; gap: 6px; }
.score-ring { display: grid; place-items: center; width: 56px; height: 56px; border: 3px solid var(--gold); border-radius: 50%; background: rgba(12, 12, 14, 0.75); box-shadow: 0 0 0 4px rgba(255, 198, 92, 0.12); flex: none; }
.score-ring span { color: var(--gold); font-size: 1.05rem; font-weight: 800; }
.title-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 22px; }
.overview p { max-width: 75ch; color: var(--text-2); font-size: 1.04rem; }
@media (max-width: 767px) {
  .title-hero__grid { grid-template-columns: minmax(0, 150px) minmax(0, 1fr); gap: 18px; }
  .title-info { display: contents; }
  .title-info__kind, .title-info__heading, .title-info__tagline { grid-column: 2; }
  .title-info__kind { align-self: end; margin-top: 4px; }
  .title-poster { grid-row: 1 / span 3; }
  .meta-row, .score-block, .title-actions, .overview, .title-info > p.muted { grid-column: 1 / -1; }
  .title-actions .btn { flex: 1 1 auto; }
}
@media (max-width: 420px) { .title-hero__grid { grid-template-columns: minmax(0, 112px) minmax(0, 1fr); } }

.title-body { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: clamp(20px, 3vw, 36px); align-items: start; padding-block: 8px 12px; }
@media (max-width: 1023px) { .title-body { grid-template-columns: 1fr; } }
.title-main { display: grid; gap: 20px; min-width: 0; }
.title-side { position: sticky; top: calc(var(--header-h) + 16px); min-width: 0; }
@media (max-width: 1023px) { .title-side { position: static; } }
.panel { padding: clamp(18px, 2.4vw, 26px); border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); min-width: 0; }
.panel__head { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin-bottom: 16px; }
.panel__head h2 { font-size: 1.25rem; font-weight: 750; }
.region-form { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.region-form label { display: inline-flex; align-items: center; gap: 6px; color: var(--text-2); font-size: 0.88rem; font-weight: 600; }
.region-form select { width: auto; min-width: 180px; max-width: 100%; min-height: 40px; }
.region-form [data-autosubmit-button] { display: none; }
.region-form--compare { margin: 24px 0 14px; }
.watch-now { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 18px; padding: 16px; border: 1px solid rgba(255, 91, 58, 0.45); border-radius: var(--radius); background: var(--accent-soft); }
.watch-now img { width: 48px; height: 48px; border-radius: 12px; }
.watch-now > div { flex: 1 1 240px; }
.watch-now p { margin: 0; }
.providers { display: grid; gap: 18px; }
.providers__group h3 { margin-bottom: 10px; color: var(--text-2); font-size: 0.85rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; }
.providers__list { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 190px), 1fr)); gap: 8px; list-style: none; }
.provider { display: flex; align-items: center; gap: 10px; padding: 8px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--bg-2); font-size: 0.9rem; font-weight: 600; min-width: 0; }
.provider span { overflow-wrap: anywhere; }
.provider img, .provider__fallback { width: 40px; height: 40px; border-radius: 9px; flex: none; }
.provider__fallback { display: grid; place-items: center; background: var(--surface-3); font-weight: 800; }
.watch__more { margin: 18px 0 0; }
.attribution { margin: 16px 0 0; color: var(--muted); }
.empty-inline { padding: 14px 16px; border: 1px dashed var(--line-2); border-radius: var(--radius); }
.empty-inline p { margin: 0 0 4px; }
.pill { display: inline-flex; align-items: center; gap: 6px; margin: 0; padding: 4px 12px; border-radius: 999px; background: var(--surface-3); color: var(--text-2); font-size: 0.85rem; }

.trailer__frame { position: relative; aspect-ratio: 16 / 9; overflow: hidden; border-radius: var(--radius); background: #000; }
.trailer__frame > img { width: 100%; height: 100%; object-fit: cover; opacity: 0.55; }
.trailer__frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.trailer__launch { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 12px; padding: 16px; text-align: center; text-decoration: none; }
.trailer__play { display: grid; place-items: center; width: 74px; height: 74px; padding-left: 5px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); box-shadow: 0 0 0 10px rgba(255, 91, 58, 0.22); transition: transform 0.2s var(--ease); }
.trailer__launch:hover .trailer__play { transform: scale(1.06); }
.trailer__label { max-width: 40ch; font-weight: 650; text-shadow: 0 1px 8px #000; }
.trailer + p, .trailer p { margin: 10px 0 0; }

.season-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr)); gap: 10px; list-style: none; }
.season-card { display: flex; align-items: center; gap: 12px; padding: 8px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg-2); text-decoration: none; transition: border-color 0.18s; }
.season-card:hover { border-color: var(--accent); }
.season-card__poster { display: grid; place-items: center; width: 52px; aspect-ratio: 2 / 3; overflow: hidden; border-radius: 7px; background: var(--surface-3); color: var(--muted); flex: none; }
.season-card__poster img { width: 100%; height: 100%; object-fit: cover; }
.season-card__body { display: grid; gap: 2px; min-width: 0; }

.cast-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(46%, 128px), 1fr)); gap: 16px 12px; list-style: none; }
@media (max-width: 599px) {
  .cast-list { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 112px; overflow-x: auto; scroll-snap-type: x proximity; padding-bottom: 6px; scrollbar-width: thin; }
  .person { scroll-snap-align: start; }
  .providers__list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .provider { font-size: 0.84rem; gap: 8px; }
  .provider img, .provider__fallback { width: 34px; height: 34px; }
}
.person { display: grid; gap: 2px; min-width: 0; font-size: 0.88rem; }
.person__photo { display: grid; place-items: center; aspect-ratio: 2 / 3; overflow: hidden; margin-bottom: 6px; border-radius: var(--radius-sm); background: var(--surface-3); }
.person__photo img { width: 100%; height: 100%; object-fit: cover; }
.person__initials { color: var(--muted); font-size: 2rem; font-weight: 800; }
.person__name { line-height: 1.3; overflow-wrap: anywhere; }
.person__role, .person__eps { color: var(--muted); line-height: 1.3; overflow-wrap: anywhere; }
.person__eps { font-size: 0.8rem; }

.facts { display: grid; gap: 12px; margin: 0; }
.facts div { display: grid; gap: 2px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.facts div:last-child { border-bottom: 0; padding-bottom: 0; }
.facts dt { color: var(--muted); font-size: 0.8rem; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; }
.facts dd { margin: 0; overflow-wrap: anywhere; }
.source-links { margin: 16px 0 0; }
.more-links { margin: 8px 0 40px; color: var(--text-2); }
.more-links a { color: #ffd9cc; }

/* Season page */
.season-head { display: flex; gap: 24px; align-items: flex-start; margin-bottom: 28px; }
.season-head__poster { width: 140px; border-radius: var(--radius); box-shadow: var(--shadow); flex: none; }
@media (max-width: 560px) { .season-head { flex-direction: column; } .season-head__poster { width: 110px; } }
.episodes { display: grid; gap: 14px; list-style: none; }
.episode { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 18px; padding: 14px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); }
.episode__still { display: grid; place-items: center; aspect-ratio: 16 / 9; overflow: hidden; border-radius: var(--radius-sm); background: var(--surface-3); color: var(--muted); }
.episode__still img { width: 100%; height: 100%; object-fit: cover; }
.episode__title { font-size: 1.08rem; font-weight: 700; }
.episode__num { color: var(--accent-2); }
.episode__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; margin: 4px 0 8px; color: var(--muted); font-size: 0.86rem; }
.episode__meta .icon { color: var(--gold); }
.episode__overview { margin: 0; color: var(--text-2); font-size: 0.95rem; }
@media (max-width: 700px) { .episode { grid-template-columns: 1fr; } }
.season-nav { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-top: 28px; }

/* Search */
.search-panel { display: grid; grid-template-columns: minmax(0, 1fr) 170px 120px auto; gap: 10px; align-items: end; margin-bottom: 24px; padding: 14px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); }
.search-panel__main { position: relative; display: flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 14px; border: 1px solid var(--line-2); border-radius: var(--radius-sm); background: var(--bg-2); align-self: end; }
.search-panel__main:focus-within { border-color: var(--accent); }
.search-panel__main > .icon { color: var(--muted); }
.search-panel__main input { flex: 1 1 0; width: 0; min-width: 0; height: 46px; border: 0; background: transparent; font-size: 1.05rem; }
.search-panel__main input:focus { outline: none; }
.search-panel .btn { min-height: 48px; }
@media (max-width: 760px) { .search-panel { grid-template-columns: 1fr 1fr; } .search-panel__main, .search-panel .btn { grid-column: 1 / -1; } }
.search-start h2 { margin-bottom: 14px; font-size: 1.1rem; }

/* Compare */
.compare-slots { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 760px) { .compare-slots { grid-template-columns: 1fr; } }
.compare-slot { padding: 18px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); min-width: 0; }
.compare-slot__label { margin: 0 0 10px; color: var(--accent-2); font-size: 0.78rem; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; }
.compare-pick { display: flex; gap: 14px; margin-bottom: 12px; }
.compare-pick img, .compare-pick__empty { width: 88px; aspect-ratio: 2 / 3; border-radius: var(--radius-sm); object-fit: cover; flex: none; background: var(--surface-3); }
.compare-pick__empty { display: grid; place-items: center; color: var(--muted); }
.compare-pick__title { font-size: 1.15rem; overflow-wrap: anywhere; }
.compare-pick__title a { text-decoration: none; }
.compare-pick__actions { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0 0; }
.compare-find { display: grid; gap: 6px; }
.compare-find label { font-size: 0.85rem; font-weight: 600; color: var(--text-2); }
.compare-find__row { display: flex; gap: 8px; }
.compare-find__row input { flex: 1 1 0; width: 0; min-width: 0; }
.compare-find [data-list-compare] { margin: 4px 0 0; }
.compare-find [data-list-compare] button { margin: 4px 6px 0 0; }
.pick-list { display: grid; gap: 6px; margin-top: 14px; list-style: none; }
.pick-list a { display: flex; align-items: center; gap: 12px; padding: 6px; border-radius: var(--radius-sm); text-decoration: none; }
.pick-list a:hover { background: var(--surface-3); }
.pick-list img, .pick-list__empty { width: 46px; height: 69px; border-radius: 6px; object-fit: cover; background: var(--surface-3); flex: none; }
.compare-table-wrap, .table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius-lg); }
.compare-table, .prose table { width: 100%; border-collapse: collapse; font-size: 0.93rem; }
.compare-table th, .compare-table td, .prose th, .prose td { padding: 12px 14px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.compare-table thead th { background: var(--surface-2); font-size: 1rem; }
.compare-table tbody th { width: 28%; color: var(--muted); font-weight: 600; }
.compare-table td { width: 36%; overflow-wrap: anywhere; }
.compare-table tr:last-child th, .compare-table tr:last-child td { border-bottom: 0; }
@media (max-width: 520px) { .compare-table { min-width: 480px; } }

/* Genres hub */
.genre-columns { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
@media (max-width: 760px) { .genre-columns { grid-template-columns: 1fr; } }
.genre-columns__title { display: flex; align-items: center; gap: 8px; margin-bottom: 14px; font-size: 1.2rem; }
.genre-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 180px), 1fr)); gap: 8px; list-style: none; }
.genre-tile { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 52px; padding: 10px 14px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); font-weight: 600; text-decoration: none; }
.genre-tile:hover { border-color: var(--accent); }
.genre-tile .icon { color: var(--muted); }

/* Prose (legal pages, contact) */
.prose { color: var(--text-2); }
.prose h2 { margin: 32px 0 10px; font-size: 1.3rem; color: var(--text); }
.prose h3 { margin: 22px 0 8px; font-size: 1.05rem; color: var(--text); }
.prose ul { margin: 0 0 1em; padding-left: 1.3em; }
.prose li { margin-bottom: 0.45em; }
.prose a { color: #ffd9cc; }
.prose strong { color: var(--text); }
.prose .table-wrap { margin: 0 0 1em; }
.prose table { min-width: 560px; }
.prose thead th { background: var(--surface-2); color: var(--text); }
.contact-closed { margin-top: 24px; }
.contact-closed h2 { margin-bottom: 10px; font-size: 1.2rem; }
.contact-form { display: grid; gap: 16px; margin-top: 24px; }
.contact-form .btn { justify-self: start; }
.guide-list { display: grid; gap: 16px; list-style: none; }
.guide-list__title { margin-bottom: 8px; font-size: 1.2rem; }
.guide-list__title a { text-decoration: none; }
.guide-list p { margin-bottom: 4px; }
.debug { margin-top: 20px; padding: 14px; overflow-x: auto; border-radius: var(--radius-sm); background: #000; color: #ffb27a; text-align: left; font-size: 0.8rem; white-space: pre-wrap; }

/* ---------- Footer ---------- */
.site-footer { margin-top: 40px; padding-top: 44px; border-top: 1px solid var(--line); background: var(--bg-2); font-size: 0.92rem; }
.site-footer__grid { display: grid; grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr)); gap: 32px; padding-bottom: 32px; }
@media (max-width: 900px) { .site-footer__grid { grid-template-columns: 1fr 1fr; } .site-footer__brand { grid-column: 1 / -1; } }
@media (max-width: 420px) { .site-footer__grid { grid-template-columns: 1fr; } }
.site-footer__brand p { max-width: 42ch; margin-top: 14px; color: var(--muted); }
.site-footer__title { margin-bottom: 12px; color: var(--text); font-size: 0.85rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }
.site-footer__col ul { display: grid; gap: 4px; list-style: none; }
.site-footer__col a { display: inline-block; padding: 4px 0; color: var(--text-2); text-decoration: none; }
.site-footer__col a:hover { color: #fff; text-decoration: underline; }
.site-footer__attribution { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 8px 24px; align-items: center; padding-block: 24px 30px; border-top: 1px solid var(--line); color: var(--muted); font-size: 0.84rem; }
.site-footer__attribution p { margin: 0; }
.site-footer__copy { grid-column: 2; }
.tmdb-badge { display: inline-flex; align-items: center; grid-row: span 2; }
.tmdb-badge img { width: 160px; height: auto; }
@media (max-width: 640px) { .site-footer__attribution { grid-template-columns: 1fr; } .site-footer__copy { grid-column: 1; } .tmdb-badge { grid-row: auto; } }

@media print {
  .site-header, .site-footer, .rail__controls, .title-actions, .filters { display: none !important; }
  body { background: #fff; color: #000; }
}
