/* AIcineverse
   Idea: browse on a light table, watch in the dark. Stills sit in white slide mounts and carry
   a burnt-in slate (format · running time · language), the way dailies do.
   Colour comes from film printer lights: magenta for actions, cyan for links, yellow for ratings. */

@font-face { font-family: "Bricolage"; src: url("fonts/bricolage-grotesque-latin.woff2") format("woff2"); font-weight: 200 800; font-stretch: 75% 100%; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Bricolage"; src: url("fonts/bricolage-grotesque-latin-ext.woff2") format("woff2"); font-weight: 200 800; font-stretch: 75% 100%; font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Hanken"; src: url("fonts/hanken-grotesk-latin.woff2") format("woff2"); font-weight: 100 900; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Hanken"; src: url("fonts/hanken-grotesk-latin-ext.woff2") format("woff2"); font-weight: 100 900; font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Martian"; src: url("fonts/martian-mono-latin.woff2") format("woff2"); font-weight: 100 800; font-stretch: 75% 112.5%; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  --table: #eceef4;        /* the light table */
  --mount: #ffffff;        /* slide mounts, cards, fields */
  --ink: #14162b;
  --ink-2: #4b506b;
  --line: #d3d7e3;
  --line-strong: #a9aec2;
  --magenta: #c4175f;
  --magenta-ink: #ffffff;
  --cyan: #086f7e;
  --yellow: #ffc533;
  --stage: #0f1123;        /* the dark room */
  --stage-ink: #eceef4;
  --stage-2: #a4a9c2;
  --ok-bg: #dcf3e6; --ok-ink: #0d4a2b;
  --err-bg: #fde2e4; --err-ink: #7c1024;
  --shadow: 0 1px 2px rgba(20, 22, 43, .08), 0 6px 18px rgba(20, 22, 43, .07);
  --display: "Bricolage", "Arial Narrow", "Helvetica Neue", Arial, sans-serif;
  --body: "Hanken", system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", sans-serif;
  --mono: "Martian", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --gutter: clamp(16px, 4vw, 44px);
  --wide: 1280px;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --table: #0f1123; --mount: #1a1d36; --ink: #eceef4; --ink-2: #a9aec6; --line: #2c3050; --line-strong: #4a4f72;
    --magenta: #ff5c9a; --magenta-ink: #1a0510; --cyan: #5fd3e3;
    --stage: #07081a;
    --ok-bg: #123524; --ok-ink: #b9efd0; --err-bg: #47121c; --err-ink: #ffc9d0;
    --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 8px 22px rgba(0, 0, 0, .35);
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: 16px; }
body { margin: 0; background: var(--table); color: var(--ink); font: 400 1rem/1.55 var(--body); min-height: 100vh; display: flex; flex-direction: column; }
main { flex: 1; }
img { max-width: 100%; display: block; }
a { color: var(--cyan); text-underline-offset: .18em; text-decoration-thickness: .07em; }
a:hover { text-decoration-thickness: .14em; }
h1, h2, h3 { font-family: var(--display); font-stretch: 82%; line-height: 1.08; letter-spacing: -.012em; margin: 0; text-wrap: balance; }
p { margin: 0 0 1em; }
ul { margin: 0; padding: 0; list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--magenta); outline-offset: 2px; border-radius: 4px; }
code { font: .86em var(--mono); font-stretch: 85%; background: color-mix(in srgb, var(--ink) 8%, transparent); padding: .1em .35em; border-radius: 4px; }

[hidden] { display: none !important; }
.vh { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.skip { position: absolute; left: 12px; top: -60px; background: var(--ink); color: var(--table); padding: 10px 14px; border-radius: 6px; z-index: 10; }
.skip:focus { top: 12px; }

/* ---------- buttons, pills, tags ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5em; min-height: 44px; padding: 0 20px; border: 0; border-radius: 8px;
  background: var(--magenta); color: var(--magenta-ink); font: 650 1rem/1 var(--body); text-decoration: none; cursor: pointer; }
.btn:hover { filter: brightness(1.08); }
.btn:active { transform: translateY(1px); }
.btn-ink { background: var(--ink); color: var(--table); }
.btn-quiet { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line-strong); }
.btn-quiet:hover { box-shadow: inset 0 0 0 1.5px var(--ink); filter: none; }
.link-btn { background: none; border: 0; padding: 0; color: var(--cyan); text-decoration: underline; cursor: pointer; text-underline-offset: .18em; }
.badge { display: inline-block; min-width: 1.6em; padding: .15em .45em; border-radius: 99px; background: var(--magenta); color: var(--magenta-ink); font: 600 .72rem/1.3 var(--mono); font-stretch: 80%; text-align: center; }

.pills { display: flex; flex-wrap: wrap; gap: 8px; }
.pill { position: relative; display: inline-flex; cursor: pointer; }
.pill input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.pill > span { display: inline-flex; align-items: center; gap: .5em; min-height: 38px; padding: 0 14px; border-radius: 99px; background: var(--mount);
  box-shadow: inset 0 0 0 1.5px var(--line); font-size: .93rem; font-weight: 500; white-space: nowrap; transition: background .12s, box-shadow .12s; }
.pill > span i { font: 500 .68rem/1 var(--mono); font-stretch: 80%; font-style: normal; color: var(--ink-2); }
.pill:hover > span { box-shadow: inset 0 0 0 1.5px var(--ink); }
.pill input:checked + span { background: var(--ink); color: var(--table); box-shadow: inset 0 0 0 1.5px var(--ink); }
.pill input:checked + span i { color: inherit; opacity: .7; }
.pill input:focus-visible + span { outline: 3px solid var(--magenta); outline-offset: 2px; }
.pill .sug, .choice .sug, .lede .sug { font: 600 .62rem/1 var(--mono); font-stretch: 80%; text-transform: uppercase; letter-spacing: .04em; font-style: normal;
  padding: .3em .5em; border-radius: 4px; background: var(--yellow); color: #14162b; }

.tag { display: inline-block; padding: .22em .7em; margin: 0 6px 6px 0; border-radius: 99px; background: var(--mount); box-shadow: inset 0 0 0 1.5px var(--line);
  color: var(--ink); font-size: .9rem; font-weight: 500; text-decoration: none; }
.tag:hover { box-shadow: inset 0 0 0 1.5px var(--ink); }
.tag-ai { background: var(--ink); color: var(--table); box-shadow: none; }

.notice { padding: 12px 16px; border-radius: 8px; font-weight: 500; margin: 0 0 20px; }
.notice-ok { background: var(--ok-bg); color: var(--ok-ink); }
.notice-error { background: var(--err-bg); color: var(--err-ink); }
.notice a { color: inherit; }
.fine { font-size: .85rem; color: var(--ink-2); }
.opt, .req { font-weight: 400; font-size: .85em; color: var(--ink-2); margin-left: .4em; }

/* ---------- header and footer ---------- */
.site-head { display: flex; align-items: center; justify-content: space-between; gap: 16px 28px; flex-wrap: wrap; padding: 18px var(--gutter); max-width: var(--wide); width: 100%; margin: 0 auto; }
.wordmark { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font: 500 1.5rem/1 var(--display); font-stretch: 78%; letter-spacing: -.02em; }
.wordmark b { font-weight: 800; }
.cue { width: 18px; height: 18px; border-radius: 50%; background: var(--yellow); box-shadow: 0 0 0 3px var(--ink); }   /* the projectionist's cue mark */
.site-nav { display: flex; gap: 4px 22px; flex-wrap: wrap; }
.site-nav a { color: var(--ink); font-weight: 600; text-decoration: none; padding: 6px 0; border-bottom: 2px solid transparent; }
.site-nav a:hover, .site-nav a[aria-current] { border-bottom-color: var(--magenta); }
.site-foot { margin-top: 72px; background: var(--stage); color: var(--stage-2); padding: 40px var(--gutter) 48px; font-size: .92rem; }
.foot-inner { max-width: calc(var(--wide) - 2 * var(--gutter)); margin: 0 auto; }
.foot-mark { font: 500 1.25rem/1.2 var(--display); font-stretch: 78%; color: var(--stage-ink); }
.foot-mark b { font-weight: 800; }
.foot-mark span { font: 400 .92rem var(--body); color: var(--stage-2); margin-left: .6em; }
.foot-links { display: flex; flex-wrap: wrap; gap: 6px 22px; }
.foot-links a { color: var(--stage-ink); }
.foot-note { max-width: 70ch; margin-bottom: 0; }

/* ---------- browse: the finder ---------- */
.finder, .results { max-width: var(--wide); margin: 0 auto; padding: 0 var(--gutter); }
.finder { padding-top: clamp(12px, 3vw, 36px); }
.thesis { font-size: clamp(2.3rem, 6.4vw, 5rem); font-weight: 800; font-stretch: 76%; letter-spacing: -.028em; line-height: .96; max-width: 17ch; }
.thesis span { display: block; font-weight: 300; color: var(--ink-2); }
.filters { margin-top: clamp(20px, 3vw, 34px); display: grid; gap: 18px; }
.group { border: 0; padding: 0; margin: 0; min-width: 0; }
.group legend { padding: 0; margin-bottom: 8px; font: 600 .7rem/1.2 var(--mono); font-stretch: 82%; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-2); }

/* running time: a strip of segments under a ruler, like a footage counter */
.runtime .pills { gap: 0; flex-wrap: nowrap; overflow-x: auto; padding: 14px 0 4px; scrollbar-width: thin;
  background: repeating-linear-gradient(90deg, var(--line-strong) 0 1.5px, transparent 1.5px 14px) left top / 100% 8px no-repeat; }
.runtime .pill { flex: 1 0 auto; }
.runtime .pill > span { width: 100%; justify-content: center; min-height: 52px; border-radius: 0; box-shadow: inset 0 0 0 1.5px var(--line-strong); margin-left: -1.5px;
  font: 600 .82rem/1 var(--mono); font-stretch: 80%; text-transform: uppercase; letter-spacing: .02em; padding: 0 16px; }
.runtime .pill:first-child > span { border-radius: 8px 0 0 8px; margin-left: 0; }
.runtime .pill:last-child > span { border-radius: 0 8px 8px 0; }
.runtime .pill:hover > span { box-shadow: inset 0 0 0 1.5px var(--ink); position: relative; }
.runtime .pill input:checked + span { background: var(--yellow); color: #14162b; box-shadow: inset 0 0 0 1.5px #14162b; position: relative; }
.runtime .pill input:checked + span i { color: #14162b; }

@media (max-width: 640px) {
  .runtime .pills { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; overflow: visible; padding-bottom: 0; }
  .runtime .pill > span, .runtime .pill:first-child > span, .runtime .pill:last-child > span { border-radius: 8px; margin-left: 0; min-height: 46px; padding: 0 6px; font-size: .72rem; gap: .35em; }
}
.search { display: flex; gap: 8px; }
.search input { flex: 1; min-width: 0; min-height: 48px; padding: 0 16px; border-radius: 8px; border: 1.5px solid var(--line-strong); background: var(--mount); font-size: 1.02rem; }
.search input::placeholder { color: var(--ink-2); opacity: 1; }
.search .btn { min-height: 48px; }

.more { background: color-mix(in srgb, var(--mount) 60%, transparent); border-radius: 10px; box-shadow: inset 0 0 0 1.5px var(--line); }
.more > summary { cursor: pointer; padding: 12px 16px; font-weight: 650; display: flex; align-items: center; gap: 10px; list-style: none; border-radius: 10px; }
.more > summary::-webkit-details-marker { display: none; }
.more > summary::before { content: "+"; font: 500 1.2rem/1 var(--mono); width: 1em; text-align: center; }
.more[open] > summary::before { content: "–"; }
.more-grid { display: grid; gap: 20px 28px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); padding: 6px 16px 14px; }
.more-note { padding: 0 16px 14px; margin: 0; font-size: .85rem; color: var(--ink-2); }

.bar { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 10px 18px; padding: 14px 0 6px; border-top: 1.5px solid var(--ink); }
.count { margin: 0; font: 600 .82rem/1.2 var(--mono); font-stretch: 82%; text-transform: uppercase; letter-spacing: .04em; white-space: nowrap; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; min-width: 0; }
.chip { display: inline-flex; align-items: center; gap: .5em; padding: .3em .5em .3em .8em; border-radius: 99px; background: var(--ink); color: var(--table); font-size: .85rem; font-weight: 500; text-decoration: none; }
.chip b { font: 400 1.05rem/1 var(--body); opacity: .75; }
.chip:hover b { opacity: 1; }
.clear { font-size: .88rem; margin-left: 6px; }
.sort { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.sort label { font-size: .88rem; color: var(--ink-2); }
.sort select, .stack select, .admin select { min-height: 40px; padding: 0 34px 0 12px; border-radius: 8px; border: 1.5px solid var(--line-strong); background: var(--mount)
  url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%237a7f99' stroke-width='2'/%3E%3C/svg%3E") right 12px center no-repeat; appearance: none; font-weight: 600; }
.sort-help { font-size: .82rem; }
.apply { grid-column: 1 / -1; justify-self: start; }
.js .apply { display: none; }
@media (max-width: 760px) {
  .bar { grid-template-columns: 1fr auto; }
  .chips { grid-column: 1 / -1; grid-row: 2; }
  .sort-help { display: none; }
}

/* ---------- cards: slides on the light table ---------- */
.results { padding-top: 22px; }
.cards { display: grid; gap: 22px 20px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 255px), 1fr)); }
.card { background: var(--mount); border-radius: 10px; padding: 9px 9px 14px; box-shadow: var(--shadow); display: flex; flex-direction: column; position: relative; transition: transform .16s ease, box-shadow .16s ease; }
.card:hover, .card:focus-within { transform: translateY(-3px); box-shadow: 0 2px 4px rgba(20,22,43,.1), 0 14px 30px rgba(20,22,43,.16); }
.card-link { color: inherit; text-decoration: none; display: block; }
.card-link::after { content: ""; position: absolute; inset: 0; border-radius: 10px; }      /* whole mount is the target */
.card-link:focus-visible { outline: none; }
.card-link:focus-visible::after { outline: 3px solid var(--magenta); outline-offset: 2px; }
.still { position: relative; aspect-ratio: 16 / 9; border-radius: 4px; overflow: hidden; background: var(--stage); }
.still img, .player > img { width: 100%; height: 100%; object-fit: cover; }
.card:hover .still img { filter: brightness(1.1) saturate(1.05); }
.burn { position: absolute; left: 6px; bottom: 6px; right: 6px; margin: 0; display: flex; flex-wrap: wrap; gap: 4px; pointer-events: none; }
.burn span { background: rgba(8, 9, 22, .86); color: #fff; padding: 4px 6px 3px; border-radius: 2px; font: 600 .66rem/1 var(--mono); font-stretch: 78%; letter-spacing: .04em; }
.burn span:nth-child(2) { color: var(--yellow); }
.no-still { width: 100%; height: 100%; display: grid; place-items: center; background: linear-gradient(135deg, hsl(var(--h) 45% 22%), hsl(calc(var(--h) + 50) 55% 12%)); }
.no-still span { font: 800 4.2rem/1 var(--display); font-stretch: 76%; color: rgba(255,255,255,.2); }
.hue-0 { --h: 0; } .hue-1 { --h: 30; } .hue-2 { --h: 60; } .hue-3 { --h: 90; } .hue-4 { --h: 120; } .hue-5 { --h: 150; }
.hue-6 { --h: 180; } .hue-7 { --h: 210; } .hue-8 { --h: 240; } .hue-9 { --h: 270; } .hue-10 { --h: 300; } .hue-11 { --h: 330; }
.card-title { font-size: 1.22rem; font-weight: 700; margin: 12px 4px 2px; overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card-by { margin: 0 4px; color: var(--ink-2); font-size: .9rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card-foot { margin: auto 4px 0; padding-top: 10px; display: flex; justify-content: space-between; gap: 10px; align-items: baseline; font-size: .86rem; }
.card-rating { white-space: nowrap; }
.stars { color: #e0a100; }
.votes, .unrated, .card-genres { color: var(--ink-2); }
.card-genres { text-align: right; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.empty { background: var(--mount); border-radius: 10px; padding: clamp(24px, 6vw, 56px); text-align: center; box-shadow: var(--shadow); }
.empty h2 { font-size: 1.8rem; margin-bottom: 8px; }
.pager { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 12px; margin-top: 32px; font-weight: 600; }
.pager span { color: var(--ink-2); font: 500 .8rem var(--mono); font-stretch: 82%; text-transform: uppercase; }
.pager a:last-child, .pager span:last-child { justify-self: end; }

/* ---------- film page: lights down ---------- */
.stage { background: var(--stage); color: var(--stage-2); padding: clamp(10px, 2.4vw, 28px) var(--gutter) 16px; }
.stage-inner { max-width: 1040px; margin: 0 auto; }
.player { position: relative; aspect-ratio: 16 / 9; background: #000; border-radius: 6px; overflow: hidden; }
.player iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.player .play { position: absolute; inset: 0; width: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; border: 0; cursor: pointer;
  background: radial-gradient(ellipse at center, rgba(7,8,26,.25), rgba(7,8,26,.62)); color: #fff; font: 700 1.05rem var(--body); text-decoration: none; }
.play-icon { width: 84px; height: 84px; border-radius: 50%; background: var(--yellow); display: grid; place-items: center; box-shadow: 0 0 0 6px rgba(255,197,51,.25); transition: transform .15s; }
.play-icon::before { content: ""; border-style: solid; border-width: 15px 0 15px 25px; border-color: transparent transparent transparent #14162b; margin-left: 6px; }
.play:hover .play-icon, .play:focus-visible .play-icon { transform: scale(1.07); }
.play:focus-visible { outline-offset: -6px; }
.player-fallback { position: absolute; left: 0; right: 0; bottom: 0; margin: 0; padding: 14px 16px; background: rgba(7,8,26,.96); color: #fff; font-size: .98rem;
  display: flex; flex-wrap: wrap; gap: 10px 18px; align-items: center; justify-content: space-between; z-index: 2; }
.player-fallback .btn { background: var(--yellow); color: #14162b; min-height: 40px; }
.player-fallback a, .stage-note a { color: var(--yellow); }
.stage-note { margin: 10px 0 0; font-size: .85rem; }
.film-body { max-width: 1040px; margin: 0 auto; padding: clamp(22px, 4vw, 40px) var(--gutter) 0; }
.slate { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 14px; }
.slate span { background: var(--ink); color: var(--table); padding: 6px 9px 5px; border-radius: 3px; font: 600 .74rem/1 var(--mono); font-stretch: 80%; letter-spacing: .05em; text-transform: uppercase; }
.slate span:nth-child(2) { background: var(--yellow); color: #14162b; }
.film-head h1 { font-size: clamp(2.2rem, 6vw, 4.4rem); font-weight: 800; font-stretch: 76%; letter-spacing: -.026em; line-height: .98; overflow-wrap: anywhere; }
.byline { margin: 12px 0 0; font-size: 1.15rem; color: var(--ink-2); }
.byline a { color: var(--ink); font-weight: 600; }
.film-cols { display: grid; grid-template-columns: minmax(0, 1fr) minmax(280px, 340px); gap: 36px 48px; margin-top: 32px; align-items: start; }
@media (max-width: 860px) { .film-cols { grid-template-columns: 1fr; } }
.synopsis { font-size: 1.16rem; line-height: 1.5; max-width: 62ch; margin-bottom: 26px; }
.facts { margin: 0 0 30px; display: grid; gap: 0; border-top: 1.5px solid var(--ink); }
.facts > div { display: grid; grid-template-columns: 170px 1fr; gap: 6px 16px; padding: 12px 0 6px; border-bottom: 1px solid var(--line); }
.facts dt { font: 600 .7rem/1.6 var(--mono); font-stretch: 82%; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-2); padding-top: .3em; }
.facts dd { margin: 0; min-width: 0; padding-bottom: 6px; overflow-wrap: anywhere; }
.facts dd .tag { margin-bottom: 6px; }
.fact-help { color: var(--ink-2); font-size: .9rem; }
.ai-note { margin: 6px 0 0; font-size: .95rem; }
@media (max-width: 560px) { .facts > div { grid-template-columns: 1fr; gap: 0; } }
.watch h2, .rate-box h2, .related h2, .film-main > h2 { font-size: 1.5rem; margin-bottom: 12px; }
.sources { display: grid; gap: 8px; margin-bottom: 26px; }
.source { display: grid; grid-template-columns: auto 1fr auto; gap: 4px 14px; align-items: center; padding: 13px 16px; border-radius: 8px; background: var(--mount); box-shadow: inset 0 0 0 1.5px var(--line); color: var(--ink); text-decoration: none; }
.source:hover { box-shadow: inset 0 0 0 1.5px var(--ink); }
.source b { font-weight: 700; }
.source span { color: var(--ink-2); font-size: .9rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.source i { font-style: normal; color: var(--cyan); font-weight: 700; }
.provenance { font-size: .9rem; color: var(--ink-2); max-width: 62ch; border-left: 3px solid var(--yellow); padding-left: 14px; }
.provenance b { color: var(--ink); }
.film-side { display: grid; gap: 18px; }
.rate-box { background: var(--mount); border-radius: 10px; padding: 20px 20px 14px; box-shadow: var(--shadow); }
.avg { display: flex; align-items: baseline; gap: 10px; margin: 0 0 14px; }
.avg b { font: 800 3.2rem/1 var(--display); font-stretch: 78%; letter-spacing: -.03em; }
.avg span { color: var(--ink-2); font-size: .92rem; }
.avg-none b { font-size: 1.9rem; }
.rate fieldset { border: 0; padding: 0; margin: 0 0 12px; }
.rate legend { padding: 0; font-weight: 650; margin-bottom: 4px; }
.stars-input { display: inline-flex; }
.star { cursor: pointer; padding: 2px 3px; position: relative; }
.star input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.star span[aria-hidden] { font-size: 2.3rem; line-height: 1; color: var(--line-strong); transition: color .1s, transform .1s; display: block; }
.star:has(input:checked) span[aria-hidden], .star:has(~ .star input:checked) span[aria-hidden] { color: #e7a800; }
.stars-input:hover .star span[aria-hidden] { color: #e7a800; }
.stars-input .star:hover ~ .star span[aria-hidden] { color: var(--line-strong); }
.star:hover span[aria-hidden] { transform: scale(1.12); }
.star:has(input:focus-visible) { outline: 3px solid var(--magenta); outline-offset: 0; border-radius: 6px; }
.rate-actions { display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: center; }
.rate-msg { margin: 10px 0 0; font-weight: 600; min-height: 1.5em; }
.share .btn { width: 100%; }
.report { font-size: .95rem; }
.report > summary, .excerpt > summary, .extra > summary { cursor: pointer; color: var(--cyan); text-decoration: underline; text-underline-offset: .18em; padding: 6px 0; }
.report form { display: grid; gap: 6px; margin-top: 10px; padding: 16px; background: var(--mount); border-radius: 10px; box-shadow: inset 0 0 0 1.5px var(--line); }
.report label { font-weight: 600; margin-top: 6px; }
.report select, .report textarea, .report input[type=email], .stack input:not([type=checkbox]):not([type=radio]), .stack textarea, .admin-filter input {
  width: 100%; min-height: 44px; padding: 10px 12px; border-radius: 8px; border: 1.5px solid var(--line-strong); background: var(--mount); }
.report select { appearance: auto; }
.report .btn { margin-top: 10px; justify-self: start; }
.related { max-width: var(--wide); margin: 56px auto 0; padding: 0 var(--gutter); }

/* ---------- forms: submit, manage ---------- */
.form-page, .prose, .plain { max-width: 780px; margin: 0 auto; padding: clamp(16px, 4vw, 44px) var(--gutter) 0; }
.form-page h1, .prose h1, .plain h1, .admin h1 { font-size: clamp(2.1rem, 5.2vw, 3.6rem); font-weight: 800; font-stretch: 76%; letter-spacing: -.024em; margin-bottom: 14px; }
.form-page h2, .prose h2 { font-size: 1.6rem; margin: 34px 0 10px; }
.prose h3 { font-size: 1.2rem; margin: 22px 0 6px; }
.lede { font-size: 1.14rem; color: var(--ink-2); max-width: 62ch; }
.stack { display: grid; gap: 8px; margin-top: 22px; }
.stack > label, .stack .row label { font-weight: 650; margin-top: 12px; display: block; }
.stack fieldset { border: 0; padding: 0; margin: 14px 0 0; min-width: 0; }
.stack legend { font-weight: 650; padding: 0; margin-bottom: 8px; }
.stack textarea { resize: vertical; }
.stack > .btn { justify-self: start; margin-top: 16px; }
.hint { margin: 2px 0 0; font-size: .86rem; color: var(--ink-2); }
.row { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 0 16px; align-items: start; }
.row select { width: 100%; min-height: 44px; }
.choices { display: grid; gap: 8px; }
.choice { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border-radius: 8px; background: var(--mount); box-shadow: inset 0 0 0 1.5px var(--line); cursor: pointer; }
.choice:has(input:checked) { box-shadow: inset 0 0 0 2px var(--ink); }
.choice input { margin-top: .3em; accent-color: var(--magenta); width: 18px; height: 18px; flex: none; }
.choice small { display: block; color: var(--ink-2); font-size: .88rem; }
.agree { display: flex !important; gap: 10px; align-items: flex-start; font-weight: 500 !important; }
.agree input { margin-top: .25em; width: 18px; height: 18px; accent-color: var(--magenta); flex: none; }
.extra { margin-top: 14px; }
.excerpt p { background: var(--mount); padding: 12px 14px; border-radius: 8px; font-size: .92rem; margin: 8px 0 0; }
.src-line { background: var(--mount); border-radius: 8px; padding: 12px 14px; margin: 0; overflow-wrap: anywhere; font-size: .92rem; box-shadow: inset 0 0 0 1.5px var(--line); }
.fetch-notes { margin: 0 0 4px; color: var(--ink-2); font-size: .92rem; display: grid; gap: 4px; }
.fetch-notes li { padding-left: 18px; position: relative; }
.fetch-notes li::before { content: ""; position: absolute; left: 0; top: .62em; width: 8px; height: 8px; border-radius: 50%; background: var(--yellow); box-shadow: 0 0 0 1.5px var(--ink); }
.rules { margin-top: 40px; padding-top: 6px; border-top: 1.5px solid var(--ink); }
.rules ul, .prose ul { list-style: disc; padding-left: 1.2em; display: grid; gap: 8px; max-width: 66ch; }
.manage-box { background: var(--mount); border-radius: 10px; padding: 6px 20px 16px; box-shadow: var(--shadow); margin: 24px 0; }
.manage-box h2 { margin-top: 18px; }
.manage-link { display: flex; gap: 8px; flex-wrap: wrap; }
.manage-link input { flex: 1; min-width: 220px; min-height: 44px; padding: 0 12px; border-radius: 8px; border: 1.5px solid var(--line-strong); background: var(--table); font: .8rem var(--mono); font-stretch: 80%; }
.status { border-radius: 10px; padding: 16px 18px 4px; margin: 18px 0; background: var(--mount); box-shadow: inset 0 0 0 1.5px var(--line); border-left: 6px solid var(--line-strong); }
.status-label { font: 800 1.5rem/1.1 var(--display); font-stretch: 80%; margin-bottom: 4px; }
.status-approved { border-left-color: #1c9a5c; } .status-pending { border-left-color: var(--yellow); } .status-rejected, .status-removed { border-left-color: var(--magenta); }
.facts-plain { margin-top: 20px; }
.req-list { display: grid; gap: 10px; }
.req-list li { background: var(--mount); border-radius: 8px; padding: 10px 14px; }
.preview-box { margin-top: 10px; }
.preview-box .player { max-width: 420px; }

/* ---------- about ---------- */
.prose p, .prose li { max-width: 68ch; }
.defs { margin: 16px 0; border-top: 1.5px solid var(--ink); }
.defs > div { display: grid; grid-template-columns: 170px 1fr; gap: 4px 20px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.defs dt { font: 700 1.1rem/1.3 var(--display); font-stretch: 82%; }
.defs dd { margin: 0; max-width: 60ch; }
@media (max-width: 560px) { .defs > div { grid-template-columns: 1fr; } }

/* ---------- admin ---------- */
.admin { max-width: 1040px; margin: 0 auto; padding: 8px var(--gutter) 0; }
.admin h2 { font-size: 1.4rem; margin: 30px 0 10px; }
.admin-nav { display: flex; flex-wrap: wrap; gap: 6px 20px; align-items: center; padding: 10px 0 18px; margin-bottom: 18px; border-bottom: 1.5px solid var(--ink); font-weight: 600; }
.admin-nav a { color: var(--ink); text-decoration: none; }
.admin-nav a:hover { text-decoration: underline; }
.admin-nav form { margin-left: auto; }
.admin-sum { font: 500 .8rem/1.6 var(--mono); font-stretch: 84%; color: var(--ink-2); }
.alist { display: grid; gap: 10px; }
.arow { display: grid; grid-template-columns: 150px 1fr; gap: 14px; background: var(--mount); border-radius: 10px; padding: 10px; box-shadow: var(--shadow); }
.arow:not(:has(.arow-still)) { grid-template-columns: 1fr; padding: 14px 16px; }
.arow-still { aspect-ratio: 16/9; border-radius: 4px; overflow: hidden; background: var(--stage); }
.arow-still img { width: 100%; height: 100%; object-fit: cover; }
.arow-title { font-weight: 700; margin: 2px 0 4px; }
.arow-meta { color: var(--ink-2); font-size: .88rem; margin: 0 0 2px; overflow-wrap: anywhere; }
.arow p { margin-bottom: 6px; }
.st { font: 600 .66rem/1 var(--mono); font-stretch: 80%; text-transform: uppercase; letter-spacing: .05em; padding: .35em .55em; border-radius: 3px; background: var(--line); color: var(--ink); vertical-align: middle; }
.st-pending { background: var(--yellow); color: #14162b; } .st-approved { background: #1c9a5c; color: #fff; } .st-rejected, .st-removed { background: var(--magenta); color: var(--magenta-ink); }
.warn { color: var(--err-ink); background: var(--err-bg); padding: 6px 10px; border-radius: 6px; font-size: .9rem; display: inline-block; }
.admin-actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 16px 0; align-items: center; }
.inline { display: inline-flex; gap: 8px; align-items: center; flex-wrap: wrap; margin: 2px 0; }
.inline input { min-height: 40px; padding: 0 10px; border-radius: 8px; border: 1.5px solid var(--line-strong); background: var(--mount); min-width: 240px; }
.inline .btn { min-height: 38px; padding: 0 14px; font-size: .9rem; }
.admin-filter { display: flex; gap: 8px; flex-wrap: wrap; margin: 12px 0 18px; }
.admin-filter input { flex: 1; min-width: 220px; }
.src-admin, .flag-list { display: grid; gap: 8px; }
.src-admin li, .flag-list li, .note-box { background: var(--mount); border-radius: 8px; padding: 10px 14px; overflow-wrap: anywhere; box-shadow: inset 0 0 0 1.5px var(--line); }
.admin-player { max-width: 560px; margin: 14px 0; }
.narrow { max-width: 420px; }
.log { width: 100%; border-collapse: collapse; font-size: .88rem; }
.log th, .log td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--line); vertical-align: top; overflow-wrap: anywhere; }
.log th { font: 600 .7rem var(--mono); font-stretch: 82%; text-transform: uppercase; color: var(--ink-2); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
  .card:hover, .card:focus-within { transform: none; }
}
@media print { .site-nav, .site-foot, .stage, .filters, .report, .share { display: none; } body { background: #fff; } }
