:root {
  --bg: #0d0d0f;
  --bg-soft: #17171b;
  --card: #1a1a1f;
  --text: #f3f0ea;
  --muted: #96949a;
  --accent: #ffb547;
  --accent-ink: #1c1306;
  --accent-2: #1e2a44;
  --accent-2-text: #93a6d6;
  --line: #27262b;
  --radius: 14px;
  --font-display: "Unbounded", system-ui, -apple-system, sans-serif;
  --font-body: "Manrope", system-ui, -apple-system, Roboto, Arial, sans-serif;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body {
  margin: 0;
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3 { font-family: var(--font-display); font-weight: 700; letter-spacing: -.01em; text-wrap: balance; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
.container { max-width: 1080px; margin: 0 auto; padding: 0 20px; }

header.site {
  border-bottom: 1px solid var(--line);
  background: rgba(13,13,15,.85);
  backdrop-filter: blur(8px);
  position: sticky; top: 0; z-index: 10;
}
header.site .container { display: flex; align-items: center; gap: 22px; height: 62px; }
header.site .logo, footer .foot-brand {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-display); font-weight: 700; font-size: 18px; color: var(--text);
}
header.site .logo:hover { text-decoration: none; }
.logo-mark { flex-shrink: 0; display: block; }
header.site nav { display: flex; align-items: center; gap: 18px; margin-left: auto; flex-wrap: wrap; }
header.site nav a { color: var(--muted); font-size: 15px; }
header.site nav a:hover { color: var(--text); text-decoration: none; }

.btn {
  display: inline-block; padding: 12px 22px; border-radius: 999px;
  background: var(--accent); color: var(--accent-ink); font-weight: 700; font-family: var(--font-display);
  font-size: 14px; letter-spacing: .01em; border: 0; cursor: pointer;
}
.btn.secondary { background: transparent; color: var(--text); border: 1px solid var(--line); font-weight: 600; }
.btn:hover { text-decoration: none; opacity: .9; }

/* ── hero ─────────────────────────────────────────────── */
.hero { padding: 76px 0 50px; }
.hero .kicker {
  display: inline-block; font-family: var(--font-display); font-size: 12.5px; font-weight: 600;
  letter-spacing: .12em; text-transform: uppercase; color: var(--accent); margin-bottom: 16px;
}
.hero h1 {
  font-size: clamp(32px, 5.2vw, 52px); margin: 0 0 18px; line-height: 1.08; letter-spacing: -.02em;
  text-transform: uppercase;
}
.hero h1 .hl { color: var(--accent); }
.hero p.lead { font-size: 18px; color: var(--muted); max-width: 560px; }
.hero .cta { margin-top: 28px; display: flex; gap: 12px; flex-wrap: wrap; }
.hero .trust {
  margin-top: 40px; display: flex; gap: 28px; flex-wrap: wrap;
  padding-top: 28px; border-top: 1px solid var(--line);
}
.hero .trust .item { display: flex; align-items: center; gap: 9px; color: var(--muted); font-size: 14px; }
.hero .trust .item b { color: var(--text); }

.section { padding: 44px 0; border-top: 1px solid var(--line); }
.section h2 { font-size: 22px; margin: 0 0 20px; text-transform: uppercase; letter-spacing: .01em; }

.grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); }
.film-card {
  position: relative;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; display: flex; flex-direction: column;
  transition: border-color .15s ease, transform .15s ease;
}
.film-card:hover { border-color: #3a3742; transform: translateY(-2px); text-decoration: none; }
.film-card .poster {
  aspect-ratio: 2/3; background: var(--bg-soft) center/cover no-repeat;
  transition: transform .35s ease;
}
.film-card:hover .poster { transform: scale(1.04); }
.ws-dot {
  position: absolute; top: 8px; right: 8px; z-index: 2;
  width: 26px; height: 26px; border-radius: 50%;
  background: rgba(13,13,15,.75); backdrop-filter: blur(2px);
  display: flex; align-items: center; justify-content: center; font-size: 14px;
}
.poster-fallback {
  position: relative; overflow: hidden;
  display: flex; flex-direction: column; justify-content: center; gap: 10px;
  padding: 20px; text-align: center;
  background:
    radial-gradient(120% 80% at 50% 0%, rgba(30,42,68,.55), transparent 60%),
    linear-gradient(160deg, #202127 0%, #17171b 55%, #0d0d0f 100%);
}
.poster-fallback::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(circle at 50% 42%, rgba(255,181,71,.10), transparent 55%);
}
.poster-fallback > * { position: relative; z-index: 1; }
.poster-fallback .pf-score {
  color: var(--accent); font-weight: 700; font-size: 16px; font-family: var(--font-display);
  border: 1px solid rgba(255,181,71,.4); border-radius: 999px;
  padding: 3px 12px; align-self: center;
}
.poster-fallback .pf-title { color: #fff; font-weight: 700; font-size: 16px; line-height: 1.3; font-family: var(--font-body); }
.poster-fallback .pf-year { color: var(--muted); font-size: 13px; }
.film-detail .poster-fallback { aspect-ratio: 2/3; border-radius: var(--radius); }
.film-detail .poster-fallback .pf-title { font-size: 24px; }
.film-detail .poster-fallback .pf-score { font-size: 20px; }
.film-card .body { padding: 12px 14px 16px; }
.film-card .title { font-weight: 700; font-size: 15px; margin: 0 0 4px; color: var(--text); }
.film-card .meta { color: var(--muted); font-size: 13px; }
.score { color: var(--accent); font-weight: 700; }

.chips { display: flex; gap: 8px; flex-wrap: wrap; margin: 10px 0; }
.chip {
  font-size: 13px; padding: 5px 11px; border-radius: 999px;
  background: var(--bg-soft); border: 1px solid var(--line); color: var(--muted);
}

.film-detail { display: grid; grid-template-columns: 280px 1fr; gap: 30px; padding: 40px 0; }
.film-detail .poster {
  width: 100%; aspect-ratio: 2/3; object-fit: cover;
  border-radius: var(--radius); border: 1px solid var(--line);
  background: linear-gradient(160deg, #202127, #0d0d0f);
}
.film-detail h1 { margin: 0 0 8px; font-size: 28px; text-transform: none; }
.ratings { display: flex; gap: 18px; color: var(--muted); margin: 14px 0; flex-wrap: wrap; font-variant-numeric: tabular-nums; }
.ratings b { color: var(--text); }
.callout {
  border-left: 3px solid var(--accent); background: var(--bg-soft);
  padding: 12px 16px; border-radius: 8px; margin: 16px 0;
}
.verdict { font-size: 18px; margin: 18px 0; }
.watch-links { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 16px; }

.collection-card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 20px; display: block; transition: border-color .15s ease;
}
.collection-card:hover { border-color: #3a3742; text-decoration: none; }
.collection-card .emoji { font-size: 28px; }
.collection-card h3 { margin: 8px 0 6px; color: var(--text); font-size: 17px; text-transform: none; }
.collection-card p { color: var(--muted); margin: 0; font-size: 14px; }

.pager { display: flex; gap: 10px; justify-content: center; padding: 30px 0; }
.pager a, .pager span { padding: 8px 14px; border: 1px solid var(--line); border-radius: 8px; color: var(--muted); }
.pager .current { color: var(--text); border-color: var(--accent); }

footer.site { border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; padding: 34px 0 50px; }
footer.site .foot-brand { margin: 0 0 10px; }

table.admin { width: 100%; border-collapse: collapse; font-size: 14px; }
table.admin th, table.admin td { border-bottom: 1px solid var(--line); padding: 8px 10px; text-align: left; }
.stat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 14px; }
.stat { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 16px; }
.stat .n { font-size: 26px; font-weight: 700; font-family: var(--font-display); font-variant-numeric: tabular-nums; }
.stat .l { color: var(--muted); font-size: 13px; }
label.f { display: block; margin: 12px 0 4px; color: var(--muted); font-size: 13px; }
input[type=text], input[type=number], textarea, select {
  width: 100%; padding: 9px 11px; background: var(--bg-soft); border: 1px solid var(--line);
  border-radius: 8px; color: var(--text); font: inherit;
}
textarea { min-height: 90px; }
pre.report { background: var(--bg-soft); border: 1px solid var(--line); padding: 14px; border-radius: 8px; white-space: pre-wrap; }

@media (max-width: 720px) {
  .film-detail { grid-template-columns: 1fr; }
  .film-detail .poster { max-width: 220px; }
  .hero .trust { gap: 18px 24px; }
}
