/* SeenIt: dark screening room. Image first: a tall banner, portrait poster rows, one amber accent. */

@font-face { font-family: "Inter"; src: url("fonts/inter-latin.woff2") format("woff2"); font-weight: 400 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Space Grotesk"; src: url("fonts/space-grotesk-latin.woff2") format("woff2"); font-weight: 500 700; font-style: normal; font-display: swap; }

:root {
  --bg: #070709;
  --surface: #171717;
  --surface-2: #242424;
  --glass: #273133;
  --field: #313232;
  --text-strong: #ffffff;
  --text: #e6e7e8;
  --muted: #a9a9ab;
  --accent: #f9ad35;
  --accent-hi: #ffbf3c;
  --accent-ink: #070709;
  --g-teal: #17363b;
  --g-ink: #1a3348;
  --g-sea: #204d52;
  --g-olive: #38361e;
  --g-ochre: #534b27;
  --g-plum: #382531;
  --g-slate: #1c1c20;
  --pad: 48px;
  --tile-w: clamp(118px, 12.4vw, 200px);
  --gap: 8px;
  --bar-h: 64px;
  --display: "Space Grotesk", "Segoe UI", system-ui, sans-serif;
  --body: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; }
html { background: var(--bg); color-scheme: dark; scroll-padding-top: 80px; }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 15px/1.5 var(--body); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
a { color: var(--text-strong); }
h1, h2, h3 { font-family: var(--display); color: var(--text-strong); margin: 0; line-height: 1.1; }
button, input, textarea, select { font: inherit; color: inherit; }
img { display: block; }
:focus-visible { outline: 2px solid var(--accent-hi); outline-offset: 2px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------------------------------------------------------------- top bar */

#topbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50; height: var(--bar-h);
  display: flex; align-items: center; gap: 28px; padding: 0 var(--pad);
  background: linear-gradient(180deg, rgba(7, 7, 9, 0.88) 0%, rgba(7, 7, 9, 0.45) 60%, rgba(7, 7, 9, 0) 100%);
  transition: background-color 240ms ease;
}
#topbar.solid, body:not([data-page="home"]) #topbar { background-color: var(--bg); }
.wordmark {
  font: 700 26px/1 var(--display); letter-spacing: -0.03em; text-decoration: none; color: var(--text-strong);
  text-transform: lowercase;
}
.wordmark::after { content: "."; color: var(--accent); }
.nav-links { display: flex; gap: 22px; }
.nav a.nav-link { color: var(--muted); text-decoration: none; font-size: 14px; font-weight: 500; padding: 6px 0; }
.nav a.nav-link:hover, .nav a.nav-link[aria-current="page"] { color: var(--text-strong); }
.nav a.nav-link[aria-current="page"] { font-weight: 600; }
.nav-search { margin-left: auto; color: var(--text-strong); display: inline-flex; padding: 6px; border-radius: 50%; }
.nav-search:hover { color: var(--accent-hi); }
.nav-count { margin-left: auto; color: var(--muted); font-size: 13px; }
.nav-count strong { color: var(--accent-hi); font-weight: 600; }

main { display: block; }
body:not([data-page="home"]) main { padding: calc(var(--bar-h) + 28px) var(--pad) 48px; max-width: 1100px; margin: 0 auto; }

/* ---------------------------------------------------------------- banner */

#hero { position: relative; width: 100%; height: max(600px, 80vh); max-height: 860px; overflow: hidden; background: var(--bg); }
.hero-art { position: absolute; top: 0; right: 0; width: 76%; height: 100%; object-fit: cover; object-position: 50% 22%; }
.hero-fade {
  position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(90deg, var(--bg) 0%, var(--bg) 22%, rgba(7, 7, 9, 0.88) 32%, rgba(7, 7, 9, 0.35) 48%, rgba(7, 7, 9, 0) 64%),
    linear-gradient(0deg, var(--bg) 0%, rgba(7, 7, 9, 0.7) 14%, rgba(7, 7, 9, 0) 36%),
    linear-gradient(180deg, rgba(7, 7, 9, 0.55) 0%, rgba(7, 7, 9, 0) 18%);
}
.hero-inner {
  position: relative; z-index: 2; height: 100%; display: flex; flex-direction: column; justify-content: flex-end;
  gap: 28px; padding: calc(var(--bar-h) + 24px) var(--pad) 36px;
}
.hero-copy { max-width: 560px; }
.eyebrow { margin: 0 0 14px; font: 600 12px/1 var(--body); letter-spacing: 0.2em; text-transform: uppercase; color: var(--accent-hi); }
.feature-title { font-size: clamp(40px, 4.7vw, 64px); font-weight: 700; text-transform: uppercase; letter-spacing: -0.02em; line-height: 0.98; text-wrap: balance; }
.feature-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 0; margin: 14px 0 0; color: var(--text); font-size: 14px; font-weight: 500; }
.feature-meta span + span::before { content: ""; display: inline-block; width: 4px; height: 4px; border-radius: 50%; background: var(--muted); margin: 0 10px; vertical-align: middle; }
.hero-sub { margin: 12px 0 0; color: var(--muted); font-size: 15px; max-width: 46ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 22px;
  border: 0; border-radius: 6px; background: var(--accent); color: var(--accent-ink); font: 600 15px/1 var(--body);
  text-decoration: none; cursor: pointer; white-space: nowrap; transition: background-color 160ms ease;
}
.btn:hover { background: var(--accent-hi); }
.btn[disabled] { opacity: 0.6; cursor: progress; }
.btn-ghost { background: rgba(36, 36, 36, 0.78); color: var(--text-strong); border: 1px solid rgba(255, 255, 255, 0.16); }
.btn-ghost:hover { background: rgba(60, 60, 60, 0.9); }

.glass {
  max-width: 840px; padding: 16px 18px; border-radius: 10px;
  background: rgba(39, 49, 51, 0.7); border: 1px solid rgba(255, 255, 255, 0.08);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
}
.glass-label { display: block; margin-bottom: 10px; font: 600 12px/1 var(--body); letter-spacing: 0.14em; text-transform: uppercase; color: var(--text); }
.glass-row { display: flex; align-items: center; gap: 12px; }
#seen-input {
  flex: 1 1 auto; min-width: 0; height: 44px; min-height: 44px; max-height: 160px; resize: vertical; padding: 11px 14px;
  border-radius: 6px; border: 1px solid var(--surface-2); background: var(--field); color: var(--text-strong); line-height: 1.4;
}
#seen-input::placeholder { color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#seen-input:focus { border-color: var(--accent); outline: none; }
.glass-count { color: var(--muted); font-size: 13px; white-space: nowrap; }
.glass-count strong { color: var(--accent-hi); font-weight: 600; }
#seen-result { margin: 10px 0 0; font-size: 13px; color: var(--text); min-height: 0; }
#seen-result:empty { display: none; }
#seen-result .ok { color: var(--accent-hi); font-weight: 600; }

/* ---------------------------------------------------------------- rows */

#rows { position: relative; z-index: 3; margin-top: -8px; padding-bottom: 24px; }
.row { position: relative; z-index: 1; display: flex; flex-direction: column; margin-bottom: 6px; }
.row:hover, .row:focus-within { z-index: 4; }
.row-head { position: relative; z-index: 2; display: flex; align-items: baseline; gap: 14px; padding: 0 var(--pad); }
.row-head h2 { font-size: 20px; font-weight: 700; letter-spacing: -0.01em; }
.row-head h2 a { color: inherit; text-decoration: none; }
.row-head h2 a:hover { color: var(--accent-hi); }
.row-reason { margin: 0; color: var(--muted); font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.row-frame { position: relative; }
.row-track {
  display: flex; gap: var(--gap); overflow-x: auto; overflow-y: hidden; overscroll-behavior-x: contain;
  padding: 34px var(--pad) 40px; margin: -2px 0 -24px; scroll-padding: 0 var(--pad);
  scrollbar-width: none; -ms-overflow-style: none;
}
.row-track::-webkit-scrollbar { display: none; }
.row-empty { padding: 24px var(--pad); color: var(--muted); }

.row-arrow {
  position: absolute; top: 50%; z-index: 10; width: 44px; height: 44px; transform: translateY(-50%);
  display: inline-flex; align-items: center; justify-content: center; padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.14); border-radius: 50%; background: rgba(36, 36, 36, 0.82); color: var(--text-strong);
  cursor: pointer; opacity: 0; transition: opacity 160ms ease, background-color 160ms ease;
}
.row-prev { left: 4px; }
.row-next { right: 4px; }
.row:hover .row-arrow, .row-arrow:focus-visible { opacity: 1; }
.row-arrow:hover { background: rgba(60, 60, 60, 0.95); color: var(--accent-hi); }
.row-arrow.at-end { opacity: 0; pointer-events: none; }

/* ---------------------------------------------------------------- tiles */

.tile {
  position: relative; flex: 0 0 var(--tile-w); width: var(--tile-w); aspect-ratio: 2 / 3; border-radius: 4px;
  background: var(--surface); transform-origin: 50% 50%; transition: transform 220ms ease, box-shadow 220ms ease, filter 300ms ease, opacity 300ms ease;
}
.tile:hover, .tile:focus-within { transform: scale(1.25); z-index: 5; box-shadow: 0 14px 34px rgba(0, 0, 0, 0.75); }
.tile:first-child { transform-origin: 0 50%; }
.tile:last-child { transform-origin: 100% 50%; }
.tile > img.poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border-radius: 4px; opacity: 1; }

.tile-info {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; padding: 34px 9px 9px; border-radius: 0 0 4px 4px;
  background: linear-gradient(180deg, rgba(7, 7, 9, 0) 0%, rgba(7, 7, 9, 0.86) 34%, rgba(7, 7, 9, 0.97) 100%);
  visibility: hidden; opacity: 0; transition: opacity 180ms ease, visibility 0s linear 180ms;
}
.tile:hover .tile-info, .tile:focus-within .tile-info { visibility: visible; opacity: 1; transition: opacity 180ms ease 60ms, visibility 0s; }
.tile-info h3 { font-size: 12px; font-weight: 700; line-height: 1.15; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.tile-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 6px; margin-top: 4px; font-size: 9.5px; color: var(--muted); }
.chip { color: var(--text); }
.tile-foot { margin-top: 6px; }
a.where-to-watch {
  display: inline-flex; align-items: center; gap: 4px; padding: 4px 8px; border-radius: 3px;
  background: var(--accent); color: var(--accent-ink); font: 600 10px/1.2 var(--body); text-decoration: none; white-space: nowrap;
}
a.where-to-watch:hover { background: var(--accent-hi); }

.seen-badge { display: none; }
.tile.crossed { filter: grayscale(1) brightness(0.45); }
.tile.crossed .seen-badge {
  display: block; position: absolute; top: 8px; right: 8px; z-index: 3; padding: 3px 8px; border-radius: 3px;
  background: var(--accent); color: var(--accent-ink); font: 700 11px/1.3 var(--body); text-transform: uppercase; letter-spacing: 0.06em;
}
.tile.leaving { opacity: 0; transform: scale(0.9); }

/* Movie posters: drawn in type on a genre ground, no artwork. */
.movie-poster {
  position: absolute; inset: 0; overflow: hidden; border-radius: 4px; display: flex; flex-direction: column;
  padding: 14px 12px 12px; background: var(--gr, var(--g-slate)); color: var(--text-strong);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06);
}
.mp-title {
  position: relative; z-index: 2; font: 700 21px/0.98 var(--display); text-transform: uppercase; letter-spacing: -0.01em;
  overflow-wrap: anywhere; hyphens: auto;
}
.movie-poster.mid .mp-title { font-size: 17px; }
.movie-poster.long .mp-title { font-size: 14px; line-height: 1.04; }
.mp-rule { position: relative; z-index: 2; display: block; width: 26px; height: 3px; margin-top: 10px; background: var(--accent); }
.mp-foot {
  position: relative; z-index: 2; margin-top: auto; font: 600 9.5px/1.2 var(--body); letter-spacing: 0.14em; text-transform: uppercase;
  color: rgba(255, 255, 255, 0.72);
}
.mp-motif { position: absolute; z-index: 1; pointer-events: none; }
.mp-motif::before, .mp-motif::after { content: ""; position: absolute; }

/* grounds */
.g-thriller, .g-crime, .g-mystery, .g-action { --gr: var(--g-teal); }
.g-drama, .g-superhero { --gr: var(--g-ink); }
.g-sci-fi, .g-fantasy, .g-adventure { --gr: var(--g-sea); }
.g-western, .g-war, .g-history { --gr: var(--g-olive); }
.g-documentary, .g-music, .g-biography { --gr: var(--g-ochre); }
.g-comedy, .g-romance, .g-family, .g-animation { --gr: var(--g-plum); }
.g-horror, .g-other { --gr: var(--g-slate); }

/* Seeded posters (static/site.js paintRows): site.js adds .mp-on with a colour family (--pa/--pb/--pc sky, mid, deep;
   --pg glow tint at --gx/--gy; --pt title ink; --pr rule), a layout ly-0/1/2, a texture tx-0/1/2 and an inline SVG scene
   with its horizon or frame and grain. Sizes are in cqw of the poster, so the composition holds from 124px to 190px wide.
   Without JS the card above stays a plain typographic poster on its genre ground. */
.movie-poster.mp-on {
  container-type: inline-size; padding: 0; isolation: isolate; justify-content: flex-start;
  background:
    radial-gradient(80% 55% at var(--gx, 30%) var(--gy, 25%), var(--pg, transparent), transparent 70%),
    linear-gradient(180deg, var(--pa), var(--pb) 58%, var(--pc));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.07);
}
.mp-on .mp-motif { inset: 0; z-index: 0; border: 0; border-radius: 0; background: none; transform: none; translate: none; scale: none; width: auto; height: auto; aspect-ratio: auto; }
.mp-on .mp-motif::before, .mp-on .mp-motif::after { content: none; }
.mp-on .mp-motif svg { display: block; width: 100%; height: 100%; }
.mp-on::after { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; border-radius: inherit; }
.mp-on.tx-0::after {
  background: linear-gradient(155deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0) 38%),
    radial-gradient(130% 95% at 50% 38%, rgba(0, 0, 0, 0) 58%, rgba(0, 0, 0, 0.42));
}
.mp-on.tx-1::after {
  background: repeating-linear-gradient(0deg, rgba(0, 0, 0, 0.15) 0 1px, rgba(0, 0, 0, 0) 1px 3px),
    radial-gradient(130% 95% at 50% 38%, rgba(0, 0, 0, 0) 58%, rgba(0, 0, 0, 0.4));
}
.mp-on.tx-2::after {
  background: radial-gradient(circle, rgba(255, 255, 255, 0.075) 0.7px, rgba(255, 255, 255, 0) 1.2px) 0 0 / 4px 4px,
    radial-gradient(130% 95% at 50% 38%, rgba(0, 0, 0, 0) 58%, rgba(0, 0, 0, 0.44));
}
.mp-on .mp-title {
  margin: 10cqw 9cqw 0; color: var(--pt, var(--text-strong)); font-size: 16cqw; line-height: 0.93; letter-spacing: -0.005em;
  overflow-wrap: normal; hyphens: manual; text-shadow: 0 0.4cqw 2.4cqw rgba(0, 0, 0, 0.45);
}
.mp-on .mp-k, .mp-on .mp-m { display: block; }
.mp-on .mp-kp { white-space: nowrap; }
.mp-on .mp-k { font: 600 max(7px, 0.4em)/1.25 var(--body); letter-spacing: 0.16em; margin-bottom: 0.5em; opacity: 0.86; }
.mp-on .mp-rule { margin: 4cqw 9cqw 0; width: 14cqw; height: max(2px, 1.3cqw); background: var(--pr, var(--accent)); }
.mp-on .mp-foot {
  position: absolute; left: 6cqw; right: 6cqw; bottom: 5.5cqw; margin: 0; text-align: center;
  font: 600 max(7px, 5.4cqw)/1.2 var(--body); letter-spacing: 0.14em; color: rgba(244, 239, 228, 0.78);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.mp-on.ly-1 { justify-content: flex-end; }
.mp-on.ly-1 .mp-rule { order: -1; margin: 0 9cqw 3.5cqw; }
.mp-on.ly-1 .mp-title { margin: 0 9cqw 20cqw; }
.mp-on.ly-2 .mp-title { text-align: center; margin: 11cqw 8cqw 0; }
.mp-on.ly-2 .mp-rule { align-self: center; }

/* watch pages for movie series: a small poster per film, scene only */
.order-thumb { position: relative; flex: 0 0 36px; width: 36px; height: 54px; overflow: hidden; border-radius: 3px; }
.order-thumb .movie-poster { position: absolute; inset: 0; width: 100%; height: 100%; }
.mp-mini .mp-title, .mp-mini .mp-rule, .mp-mini .mp-foot { display: none; }

/* ---------------------------------------------------------------- crossed-off list, watch-order cards */

.section-title { font-size: 20px; font-weight: 700; margin: 0 0 12px; }
#seen-list { padding: 28px var(--pad) 0; }
#seen-list[hidden] { display: none; }
.seen-list-note { margin: -4px 0 14px; color: var(--muted); font-size: 13px; }
.seen-items { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.seen-item { display: inline-flex; align-items: center; gap: 8px; padding: 6px 6px 6px 12px; border-radius: 999px; background: var(--surface); border: 1px solid var(--surface-2); font-size: 13px; }
.seen-item-title { color: var(--text); }
button.unmark { border: 0; border-radius: 999px; padding: 4px 10px; background: var(--surface-2); color: var(--text-strong); font-size: 12px; font-weight: 600; cursor: pointer; }
button.unmark:hover { background: var(--accent); color: var(--accent-ink); }
button.unmark[disabled] { opacity: 0.5; }

#orders { padding: 32px var(--pad) 8px; }
.order-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; }
.order-card {
  display: flex; flex-direction: column; gap: 6px; padding: 18px; border-radius: 6px; text-decoration: none;
  background: linear-gradient(135deg, var(--g-ink), var(--surface) 70%); border: 1px solid var(--surface-2);
  transition: border-color 160ms ease, transform 160ms ease;
}
.order-card strong { font: 700 17px/1.15 var(--display); color: var(--text-strong); text-transform: capitalize; }
.order-card span { color: var(--muted); font-size: 13px; }
.order-card:hover { border-color: var(--accent); transform: translateY(-2px); }

/* ---------------------------------------------------------------- inner pages */

.page-head { margin-bottom: 22px; }
.page-head h1 { font-size: clamp(30px, 4vw, 46px); font-weight: 700; text-transform: uppercase; letter-spacing: -0.02em; }
.page-head p { margin: 10px 0 0; color: var(--muted); max-width: 62ch; }
.panel { background: var(--surface); border: 1px solid var(--surface-2); border-radius: 8px; padding: 22px; margin-bottom: 18px; }

.order-switch { display: inline-flex; gap: 4px; padding: 4px; border-radius: 8px; background: var(--bg); border: 1px solid var(--surface-2); margin-bottom: 14px; flex-wrap: wrap; }
.order-switch button { border: 0; border-radius: 5px; padding: 8px 14px; background: transparent; color: var(--muted); font-weight: 600; font-size: 14px; cursor: pointer; }
.order-switch button:hover { color: var(--text-strong); }
.order-switch button[aria-pressed="true"] { background: var(--accent); color: var(--accent-ink); }
.order-source { color: var(--muted); font-size: 13px; margin: 0 0 12px; }
.order-source a { color: var(--text); }
.order-list { list-style: none; margin: 0; padding: 0; counter-reset: none; }
.order-item { display: flex; align-items: center; gap: 14px; padding: 12px 10px; border-bottom: 1px solid var(--surface-2); }
.order-item:last-child { border-bottom: 0; }
.order-item.start-here { background: rgba(249, 173, 53, 0.08); border-radius: 6px; box-shadow: inset 3px 0 0 var(--accent); }
.order-item.is-seen { opacity: 0.55; }
.order-item.is-seen .order-title { text-decoration: line-through; text-decoration-color: var(--muted); }
.order-num { flex: 0 0 34px; font: 700 20px/1 var(--display); color: var(--muted); text-align: right; }
.order-title { flex: 1 1 auto; min-width: 0; color: var(--text-strong); font-weight: 500; }
.start-here-marker { display: inline-block; margin-left: 10px; padding: 2px 8px; border-radius: 3px; background: var(--accent); color: var(--accent-ink); font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; vertical-align: 2px; }
.order-actions { display: inline-flex; align-items: center; gap: 8px; flex: 0 0 auto; }
.order-actions button { border: 1px solid var(--surface-2); border-radius: 4px; padding: 5px 10px; background: var(--surface-2); color: var(--text-strong); font-size: 12px; font-weight: 600; cursor: pointer; }
.order-actions button:hover { border-color: var(--accent); }
.order-actions button[disabled] { opacity: 0.6; cursor: default; }
.order-actions a.where-to-watch { font-size: 12px; padding: 6px 10px; }
.order-others h2 { font-size: 20px; margin: 8px 0 12px; }
.order-others .order-cards { margin-top: 0; }

.writer-form { display: grid; gap: 16px; }
.field { display: grid; gap: 6px; }
.field label { font-weight: 600; color: var(--text-strong); font-size: 14px; }
.field small { color: var(--muted); font-size: 12px; }
.field input, .field textarea { width: 100%; padding: 11px 14px; border-radius: 6px; border: 1px solid var(--surface-2); background: var(--field); color: var(--text-strong); }
.field input:focus, .field textarea:focus { border-color: var(--accent); outline: none; }
.field textarea { min-height: 96px; resize: vertical; }
.writer-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.writer-note { color: var(--muted); font-size: 13px; margin: 0; }
#writer-status { color: var(--text); font-size: 14px; min-height: 1.4em; }
#writer-status.err { color: var(--accent-hi); }
.fan-label { display: inline-block; padding: 2px 8px; border-radius: 3px; background: var(--surface-2); color: var(--accent-hi); font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; }
.script-body { white-space: pre-wrap; font: 400 14px/1.6 ui-monospace, "Cascadia Mono", Consolas, monospace; color: var(--text); background: var(--bg); border: 1px solid var(--surface-2); border-radius: 6px; padding: 20px; overflow-x: auto; }
.script-meta { color: var(--muted); font-size: 13px; }

.about h2 { font-size: 20px; margin: 22px 0 8px; }
.about h2:first-child { margin-top: 0; }
.about p, .about li { color: var(--text); max-width: 72ch; }
.about p { margin: 0 0 12px; }
.about a { color: var(--accent-hi); }
.about code { background: var(--bg); border: 1px solid var(--surface-2); border-radius: 4px; padding: 1px 6px; font-size: 13px; }
.about-credits { color: var(--muted); font-size: 14px; }

.foot { padding: 32px var(--pad) 40px; margin-top: 24px; border-top: 1px solid var(--surface-2); color: var(--muted); font-size: 13px; }
.foot p { margin: 0 0 8px; max-width: 90ch; }
.foot a { color: var(--text); }
body:not([data-page="home"]) .foot { max-width: 1100px; margin-left: auto; margin-right: auto; }

/* ---------------------------------------------------------------- narrow screens */

@media (max-width: 900px) {
  :root { --pad: 24px; }
  .nav-links { gap: 14px; }
  .glass-row { flex-wrap: wrap; }
  #seen-input { flex-basis: 100%; }
}

@media (max-width: 700px) {
  :root { --pad: 16px; --tile-w: 124px; --bar-h: 56px; }
  #topbar { gap: 12px; }
  .wordmark { font-size: 22px; }
  .nav-links { gap: 12px; overflow-x: auto; scrollbar-width: none; }
  .nav-links::-webkit-scrollbar { display: none; }
  .nav a.nav-link { font-size: 13px; white-space: nowrap; }
  .nav-links .nav-link:first-child { display: none; }
  .nav-search { display: none; }
  .nav-count { font-size: 12px; white-space: nowrap; }
  #hero { height: auto; min-height: 640px; max-height: none; }
  .hero-art { width: 100%; height: 400px; }
  .hero-fade { background: linear-gradient(0deg, var(--bg) 0%, var(--bg) 40%, rgba(7, 7, 9, 0.4) 62%, rgba(7, 7, 9, 0) 76%), linear-gradient(180deg, rgba(7, 7, 9, 0.6) 0%, rgba(7, 7, 9, 0) 20%); }
  .hero-inner { min-height: 640px; padding-top: 250px; padding-bottom: 24px; gap: 20px; }
  .feature-title { font-size: 38px; }
  .hero-actions .btn { flex: 1 1 auto; }
  .glass-row { flex-wrap: wrap; }
  .glass-row .btn { flex: 1 1 auto; }
  .row-reason { display: none; }
  .row-arrow { display: none; }
  .row-track { padding: 12px var(--pad) 14px; margin: 0; }
  .tile { aspect-ratio: auto; background: transparent; }
  .tile:hover, .tile:focus-within { transform: none; box-shadow: none; }
  .tile > img.poster, .movie-poster { position: relative; inset: auto; width: 100%; height: auto; aspect-ratio: 2 / 3; }
  .tile-info { position: static; visibility: visible; opacity: 1; padding: 8px 0 0; background: none; }
  .tile-info h3 { font-size: 13px; }
  .tile-meta { font-size: 11px; }
  a.where-to-watch { font-size: 11px; padding: 5px 9px; }
  .order-item { flex-wrap: wrap; gap: 8px 12px; }
  .order-actions { width: 100%; padding-left: 46px; }
  .order-item:has(.order-thumb) .order-actions { padding-left: 94px; }
  .panel { padding: 16px; }
}

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