/* Styles for the generated film and "best of" pages (scripts/build_seo.mjs). No scripts on those pages: they are plain, fast HTML. */
@font-face { font-family: 'Switzer'; font-weight: 400; font-display: swap; src: url(/vendor/fonts/switzer-400.woff2) format('woff2'); }
@font-face { font-family: 'Switzer'; font-weight: 600; font-display: swap; src: url(/vendor/fonts/switzer-600.woff2) format('woff2'); }
@font-face { font-family: 'IBM Plex Mono'; font-weight: 500; font-display: swap; src: url(/vendor/fonts/plex-mono-500.ttf) format('truetype'); }
@font-face { font-family: 'Cabinet Grotesk'; font-weight: 800; font-display: swap; src: url(/vendor/fonts/cabinet-grotesk-800.woff2) format('woff2'); }
:root { --bg: #0e0e0d; --surface: #181817; --elev: #222220; --line: #2e2e2c; --line-strong: #4a4a46; --text: #f3f3ee; --text-2: #b4b4ac; --muted: #94948c; --accent: #6c84ff; }
@media (prefers-color-scheme: light) { :root { --bg: #f4f4f0; --surface: #fff; --elev: #ebebe5; --line: #d4d4cd; --line-strong: #a6a69e; --text: #0d0d0d; --text-2: #4a4a44; --muted: #66665f; --accent: #1d3dff; } }
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 16px/1.6 'Switzer', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif; }
a { color: inherit; }
img { display: block; max-width: 100%; }
.sp-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 16px clamp(16px, 4vw, 40px); border-bottom: 1px solid var(--line); }
.sp-brand { font: 800 22px/1 'Cabinet Grotesk', 'Switzer', sans-serif; letter-spacing: -.03em; text-decoration: none; }
.sp-brand b { color: var(--accent); font-weight: 800; }
.sp-nav { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.sp-nav a { font: 500 12px 'IBM Plex Mono', ui-monospace, monospace; text-transform: uppercase; letter-spacing: .05em; color: var(--text-2); text-decoration: none; }
.sp-nav a:hover { color: var(--text); }
.sp { max-width: 1120px; margin: 0 auto; padding: 22px clamp(16px, 4vw, 40px) 72px; }
.sp-crumbs { font: 500 12px 'IBM Plex Mono', ui-monospace, monospace; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); margin-bottom: 26px; }
.sp-crumbs a { color: var(--text-2); text-decoration: none; }
.sp-crumbs a:hover { color: var(--text); text-decoration: underline; }
.sp-film { display: grid; grid-template-columns: minmax(180px, 300px) minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); align-items: start; }
.sp-poster { display: block; aspect-ratio: 2 / 3; background: var(--elev); border: 1px solid var(--line-strong); overflow: hidden; }
.sp-poster img { width: 100%; height: 100%; object-fit: cover; }
.sp-eyebrow { margin: 0 0 12px; font: 500 12px 'IBM Plex Mono', ui-monospace, monospace; text-transform: uppercase; letter-spacing: .05em; color: var(--accent); }
.sp h1 { margin: 0 0 14px; font: 800 clamp(34px, 6vw, 68px)/.95 'Cabinet Grotesk', 'Switzer', sans-serif; letter-spacing: -.05em; overflow-wrap: anywhere; }
.sp-tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 20px; padding: 0; list-style: none; }
.sp-tags li, .sp-tags a { display: inline-block; padding: 5px 11px; border: 1px solid var(--line-strong); font: 500 11px 'IBM Plex Mono', ui-monospace, monospace; text-transform: uppercase; letter-spacing: .04em; color: var(--text-2); text-decoration: none; }
.sp-tags a:hover { background: var(--text); color: var(--bg); border-color: var(--text); }
.sp-lead { margin: 0 0 16px; font-size: 18px; line-height: 1.5; color: var(--text); max-width: 680px; }
.sp-syn { margin: 0 0 24px; color: var(--text-2); max-width: 680px; }
.sp-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 0; margin: 0 0 26px; border: 1px solid var(--line-strong); max-width: 680px; }
.sp-facts div { padding: 12px 14px; border-left: 1px solid var(--line-strong); border-top: 1px solid var(--line-strong); margin: -1px 0 0 -1px; }
.sp-facts dt { font: 500 11px 'IBM Plex Mono', ui-monospace, monospace; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.sp-facts dd { margin: 4px 0 0; font-weight: 600; overflow-wrap: anywhere; }
.sp-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; }
.sp-btn { display: inline-flex; align-items: center; gap: 12px; height: 52px; padding: 0 26px; border: 1px solid var(--text); background: var(--text); color: var(--bg); font: 500 13px 'IBM Plex Mono', ui-monospace, monospace; text-transform: uppercase; letter-spacing: .05em; text-decoration: none; transition: background .2s, color .2s; }
.sp-btn:hover { background: transparent; color: var(--text); }
.sp-cta span { color: var(--muted); font-size: 14px; max-width: 360px; }
.sp h2 { margin: 56px 0 18px; padding-top: 18px; border-top: 1px solid var(--line); font: 800 clamp(24px, 3vw, 36px)/1 'Cabinet Grotesk', 'Switzer', sans-serif; letter-spacing: -.05em; }
.sp-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 22px 16px; margin: 0; padding: 0; list-style: none; }
.sp-card { display: block; text-decoration: none; }
.sp-card .sp-poster { transition: transform .25s cubic-bezier(.2, .7, .2, 1), border-color .2s; }
.sp-card:hover .sp-poster { transform: translateY(-3px); border-color: var(--accent); }
.sp-card b { display: block; margin-top: 10px; font: 800 16px/1.15 'Cabinet Grotesk', 'Switzer', sans-serif; letter-spacing: -.03em; overflow-wrap: anywhere; }
.sp-card small { display: block; margin-top: 3px; font: 500 11px 'IBM Plex Mono', ui-monospace, monospace; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
.sp-intro { max-width: 700px; margin: 0 0 30px; color: var(--text-2); font-size: 17px; }
.sp-rank .sp-poster { position: relative; }
.sp-no { position: absolute; left: 8px; bottom: 4px; font: 800 52px/.85 'Cabinet Grotesk', 'Switzer', sans-serif; letter-spacing: -.06em; color: transparent; -webkit-text-stroke: 1.5px #fff; text-shadow: 0 4px 16px rgba(0,0,0,.55); }
.sp-hubs { display: flex; flex-wrap: wrap; gap: 10px; margin: 0; padding: 0; list-style: none; }
.sp-hubs a { display: inline-block; padding: 9px 14px; border: 1px solid var(--line-strong); font: 500 12px 'IBM Plex Mono', ui-monospace, monospace; text-transform: uppercase; letter-spacing: .04em; text-decoration: none; color: var(--text-2); transition: background .2s, color .2s; }
.sp-hubs a:hover { background: var(--text); color: var(--bg); border-color: var(--text); }
.sp-foot { max-width: 1120px; margin: 0 auto; padding: 26px clamp(16px, 4vw, 40px) 40px; border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; }
.sp-foot a { color: var(--text-2); }
.sp-foot p { margin: 8px 0 0; max-width: 640px; }
@media (max-width: 720px) {
  .sp-film { grid-template-columns: minmax(0, 1fr); }
  .sp-poster.sp-big { max-width: 220px; }
  .sp-grid { grid-template-columns: repeat(auto-fill, minmax(112px, 1fr)); gap: 18px 12px; }
  .sp-btn { width: 100%; justify-content: center; }
}
