/* ============================================================
   Base engine for decoy sites
   Theme-agnostic components. Each site sets its own tokens.
   ============================================================ */

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: var(--fs-base, 16px);
  line-height: 1.6;
  font-weight: 400;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body.is-locked { overflow: hidden; }

img, svg, video, canvas { display: block; max-width: 100%; }
img { height: auto; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }
p, h1, h2, h3, h4, h5, h6, figure, blockquote, dl, dd { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
table { border-collapse: collapse; width: 100%; }
hr { border: 0; border-top: 1px solid var(--line); margin: 0; }
::selection { background: var(--accent); color: var(--accent-ink, #fff); }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

[hidden] { display: none !important; }

.skip {
  position: fixed;
  left: 12px;
  top: -100px;
  z-index: 200;
  padding: 10px 16px;
  border-radius: 10px;
  background: var(--text);
  color: var(--bg);
  font-weight: 600;
  transition: top .2s ease;
}
.skip:focus { top: 12px; }

/* ---------- Layout ---------- */
.wrap {
  width: min(100% - (var(--gutter, 24px) * 2), var(--container, 1240px));
  margin-inline: auto;
}

.wrap--narrow { --container: 860px; }
.wrap--wide { --container: 1480px; }

.section { padding-block: clamp(48px, 7vw, 104px); }
.section--tight { padding-block: clamp(32px, 4vw, 56px); }
.section--flush { padding-block: 0; }
.section--tint { background: var(--bg-2); }
.section--surface { background: var(--surface); }
.section--line { border-top: 1px solid var(--line); }

.stack { display: grid; gap: var(--stack-gap, 16px); }
.row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.row--between { justify-content: space-between; }
.row--end { justify-content: flex-end; }
.spacer { flex: 1 1 auto; }

/* ---------- Typography ---------- */
.display {
  font-family: var(--font-display, var(--font-sans));
  font-weight: var(--display-weight, 700);
  line-height: 1.02;
  letter-spacing: var(--display-tracking, -.02em);
  text-wrap: balance;
}

h1, .h1 { font-size: clamp(2.15rem, 5.2vw, 4.4rem); }
h2, .h2 { font-size: clamp(1.6rem, 3.1vw, 2.6rem); }
h3, .h3 { font-size: clamp(1.2rem, 1.8vw, 1.55rem); }
h4, .h4 { font-size: 1.06rem; }

.h1, .h2, .h3 { font-family: var(--font-display, var(--font-sans)); line-height: 1.08; letter-spacing: -.02em; font-weight: var(--display-weight, 700); text-wrap: balance; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--accent);
}
.eyebrow::before {
  content: "";
  width: 22px;
  height: 1px;
  background: currentColor;
  opacity: .7;
}
.eyebrow--plain::before { display: none; }

.lead {
  font-size: clamp(1.02rem, 1.4vw, 1.18rem);
  color: var(--muted);
  max-width: 62ch;
  text-wrap: pretty;
}
.muted { color: var(--muted); }
.small { font-size: .84rem; }
.tiny { font-size: .74rem; }
.mono { font-family: var(--font-mono, ui-monospace, monospace); }
.serif { font-family: var(--font-serif, Georgia, serif); }
.nowrap { white-space: nowrap; }
.center { text-align: center; }
.balance { text-wrap: balance; }
.upper { text-transform: uppercase; letter-spacing: .08em; }

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: clamp(20px, 3vw, 36px);
}
.section-head__text { display: grid; gap: 10px; max-width: 760px; }
.section-head .h2 { margin: 0; }
.section-head__link {
  flex: none;
  font-size: .88rem;
  font-weight: 600;
  border-bottom: 1px solid currentColor;
  padding-bottom: 2px;
  opacity: .8;
  transition: opacity .2s ease;
}
.section-head__link:hover { opacity: 1; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: var(--header-bg, color-mix(in srgb, var(--bg) 86%, transparent));
  backdrop-filter: blur(14px) saturate(1.2);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 18px;
  min-height: var(--header-h, 68px);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex: none;
  font-family: var(--font-display, var(--font-sans));
  font-weight: 800;
  font-size: 1.06rem;
  letter-spacing: -.02em;
}
.brand__mark {
  width: 30px;
  height: 30px;
  flex: none;
  color: var(--accent);
}
.brand__mark svg { width: 100%; height: 100%; }
.brand__name { line-height: 1; }
.brand__tag {
  display: block;
  font-family: var(--font-sans);
  font-size: .58rem;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 4px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 2px;
  margin-left: auto;
}
.nav a {
  position: relative;
  padding: 9px 13px;
  border-radius: 999px;
  font-size: .9rem;
  font-weight: 500;
  color: var(--muted);
  transition: color .18s ease, background .18s ease;
}
.nav a:hover { color: var(--text); background: var(--surface); }
.nav a[aria-current="page"] { color: var(--text); background: var(--surface); }
.nav a[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 2px;
  width: 14px;
  height: 2px;
  border-radius: 2px;
  background: var(--accent);
  transform: translateX(-50%);
}

.header-tools { display: flex; align-items: center; gap: 8px; flex: none; }

.iconbtn {
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  color: var(--text);
  transition: background .18s ease, border-color .18s ease, transform .18s ease;
}
.iconbtn:hover { background: var(--surface); border-color: var(--line-strong); }
.iconbtn:active { transform: scale(.94); }
.iconbtn svg { width: 18px; height: 18px; }
.iconbtn--text {
  width: auto;
  padding-inline: 12px;
  gap: 7px;
  font-size: .82rem;
  font-weight: 600;
}
.iconbtn__count {
  display: inline-grid;
  place-items: center;
  min-width: 18px;
  height: 18px;
  padding-inline: 4px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--accent-ink, #fff);
  font-size: .68rem;
  font-weight: 700;
}

.lang {
  display: inline-flex;
  align-items: center;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
}
.lang button {
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .04em;
  padding: 5px 8px;
  border-radius: 999px;
  line-height: 1;
  transition: background .18s ease, color .18s ease;
}
.lang button[aria-pressed="true"] { background: var(--text); color: var(--bg); }

.menu-toggle { display: none; }

@media (max-width: 940px) {
  .nav {
    position: fixed;
    inset: var(--header-h, 68px) 0 auto;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding: 12px var(--gutter, 24px) 20px;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
    transition: opacity .18s ease, transform .18s ease;
    max-height: calc(100vh - var(--header-h, 68px));
    overflow: auto;
  }
  .nav[data-open="true"] {
    opacity: 1;
    transform: none;
    pointer-events: auto;
  }
  .nav a { padding: 13px 14px; border-radius: 12px; font-size: 1rem; }
  .nav a[aria-current="page"]::after { display: none; }
  .menu-toggle { display: inline-grid; }
  .header-tools .lang { display: inline-flex; }
}

@media (max-width: 420px) {
  .brand__tag { display: none; }
  .brand__name { font-size: 1.04rem; }
  .header-tools { gap: 6px; }
  .lang button { padding: 5px 6px; }
}

/* ---------- Buttons & chips ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 46px;
  padding: 11px 20px;
  border: 1px solid transparent;
  border-radius: var(--btn-radius, 999px);
  background: var(--accent);
  color: var(--accent-ink, #fff);
  font-size: .92rem;
  font-weight: 650;
  line-height: 1.1;
  transition: transform .16s ease, filter .16s ease, background .16s ease, border-color .16s ease;
  text-align: center;
}
.btn:hover { filter: brightness(1.07); }
.btn:active { transform: translateY(1px); }
.btn svg { width: 17px; height: 17px; flex: none; }
.btn--ghost {
  background: transparent;
  border-color: var(--line-strong);
  color: var(--text);
}
.btn--ghost:hover { background: var(--surface); filter: none; }
.btn--soft { background: var(--surface); color: var(--text); border-color: var(--line); }
.btn--soft:hover { border-color: var(--line-strong); filter: none; }
.btn--sm { min-height: 36px; padding: 7px 13px; font-size: .8rem; }
.btn--lg { min-height: 54px; padding: 15px 26px; font-size: 1rem; }
.btn--block { width: 100%; }
.btn[disabled] { opacity: .45; pointer-events: none; }

.linkbtn {
  border: 0;
  background: none;
  padding: 0;
  color: var(--accent);
  font-weight: 600;
  border-bottom: 1px solid color-mix(in srgb, var(--accent) 45%, transparent);
}
.linkbtn:hover { border-bottom-color: var(--accent); }

.chips { display: flex; flex-wrap: wrap; gap: 7px; }
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font-size: .8rem;
  font-weight: 550;
  line-height: 1;
  transition: all .16s ease;
}
.chip:hover { color: var(--text); border-color: var(--line-strong); }
.chip[aria-pressed="true"], .chip.is-active {
  background: var(--text);
  border-color: var(--text);
  color: var(--bg);
}
.chip--accent[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: var(--accent-ink, #fff); }

.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 8px;
  border-radius: 6px;
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
  line-height: 1;
  white-space: nowrap;
}
.badge--accent { background: var(--accent); border-color: var(--accent); color: var(--accent-ink, #fff); }
.badge--live { background: #e23b3b; border-color: #e23b3b; color: #fff; }
.badge--live::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  animation: pulse 1.6s ease infinite;
}
@keyframes pulse { 50% { opacity: .3; } }

/* ---------- Controls ---------- */
.field { position: relative; display: flex; align-items: center; }
.field > svg {
  position: absolute;
  left: 14px;
  width: 17px;
  height: 17px;
  color: var(--muted);
  pointer-events: none;
}
.input, .select {
  width: 100%;
  min-height: 44px;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: var(--field-radius, 12px);
  background: var(--surface);
  color: var(--text);
  font-size: .9rem;
  transition: border-color .16s ease, background .16s ease;
}
.field .input { padding-left: 40px; }
.input::placeholder { color: var(--muted); opacity: .8; }
.input:focus, .select:focus { outline: none; border-color: var(--accent); }
.select {
  appearance: none;
  padding-right: 38px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23888' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 16px;
}

.toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}
.toolbar .field { flex: 1 1 240px; }
.toolbar__count { font-size: .8rem; color: var(--muted); white-space: nowrap; }
.toolbar__count strong { color: var(--text); }

/* ---------- Cards ---------- */
.grid {
  display: grid;
  gap: var(--gap, 20px);
  grid-template-columns: repeat(auto-fill, minmax(var(--card-min, 220px), 1fr));
}
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 900px) {
  .grid--3, .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; }
}

.card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform .22s ease, border-color .22s ease, box-shadow .22s ease;
}
a.card:hover, .card:hover {
  transform: translateY(-3px);
  border-color: var(--line-strong);
  box-shadow: var(--shadow-hover, 0 18px 40px -22px rgba(0,0,0,.5));
}
.card__media {
  position: relative;
  aspect-ratio: var(--media-ratio, 3 / 4);
  background: var(--bg-2);
  overflow: hidden;
}
.card__media > .poster { position: absolute; inset: 0; }
.card__poster-link { position: absolute; inset: 0; display: block; }
.card__poster-link > .poster { position: absolute; inset: 0; }
.card__media--wide { aspect-ratio: var(--media-ratio, 16 / 10); }
.card__body {
  display: flex;
  flex-direction: column;
  gap: 7px;
  padding: 14px 15px 16px;
  flex: 1;
}
.card__meta {
  display: flex;
  align-items: center;
  gap: 7px;
  flex-wrap: wrap;
  font-size: .74rem;
  color: var(--muted);
  line-height: 1.2;
}
.card__meta .dot { width: 3px; height: 3px; border-radius: 50%; background: currentColor; opacity: .6; }
.card__title {
  font-size: 1rem;
  font-weight: 650;
  line-height: 1.25;
  letter-spacing: -.01em;
  text-wrap: balance;
}
.card__title a:hover { color: var(--accent); }
.card__desc {
  font-size: .82rem;
  color: var(--muted);
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.card__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: auto;
  padding-top: 8px;
  font-size: .74rem;
  color: var(--muted);
}
.card__fav {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 3;
  width: 32px;
  height: 32px;
  border: 1px solid rgba(255,255,255,.25);
  border-radius: 50%;
  background: rgba(10,10,14,.55);
  color: #fff;
  backdrop-filter: blur(8px);
  display: grid;
  place-items: center;
  opacity: 0;
  transform: scale(.85);
  transition: opacity .18s ease, transform .18s ease, background .18s ease;
}
.card:hover .card__fav, .card__fav:focus-visible, .card__fav[aria-pressed="true"] { opacity: 1; transform: none; }
.card__fav[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); }
.card__fav svg { width: 15px; height: 15px; }

.rating {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-weight: 700;
  color: var(--text);
  font-variant-numeric: tabular-nums;
}
.rating svg { width: 13px; height: 13px; color: var(--accent); }

/* ---------- Poster ---------- */
.poster {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(120% 90% at 20% 0%, var(--p-bg2, #333) 0%, transparent 60%),
    linear-gradient(160deg, var(--p-bg, #222), var(--p-bg2, #111));
  color: var(--p-fg, #fff);
  isolation: isolate;
}
.poster__art { position: absolute; inset: 0; width: 100%; height: 100%; }
.poster__mono {
  position: absolute;
  left: 7%;
  bottom: 6%;
  font-family: var(--font-display, var(--font-sans));
  font-weight: 800;
  font-size: clamp(2rem, 9vw, 4.6rem);
  line-height: .8;
  letter-spacing: -.06em;
  color: var(--p-fg, #fff);
  opacity: .92;
  text-transform: uppercase;
  max-width: 86%;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  mix-blend-mode: normal;
}
.poster__top {
  position: absolute;
  inset: 7% 7% auto;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 8px;
  font-family: var(--font-mono, monospace);
  font-size: .58rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  opacity: .75;
}
.poster__year { position: absolute; right: 7%; top: 6%; font-family: var(--font-mono, monospace); font-size: .7rem; letter-spacing: .08em; opacity: .8; }
.poster__grain {
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)' opacity='.16'/%3E%3C/svg%3E");
  mix-blend-mode: overlay;
  opacity: .55;
  pointer-events: none;
}
.poster--flat .poster__mono { display: none; }
.poster__label {
  position: absolute;
  left: 7%;
  top: 7%;
  max-width: 62%;
  font-family: var(--font-display, var(--font-sans));
  font-size: clamp(.8rem, 1.8vw, 1.15rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -.01em;
}

/* ---------- Rail ---------- */
.rail {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(230px, 1fr);
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 8px;
  scrollbar-width: thin;
}
.rail > * { scroll-snap-align: start; }
.rail--wide { grid-auto-columns: minmax(300px, 1fr); }
@media (max-width: 640px) { .rail { grid-auto-columns: 76%; } }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; }
.hero__inner {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  align-items: center;
  gap: clamp(24px, 5vw, 64px);
  padding-block: clamp(40px, 6vw, 88px);
}
.hero__text { display: grid; gap: 20px; align-content: center; }
.hero__title { max-width: 16ch; }
.hero__lead { max-width: 50ch; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 10px; }
.hero__art { position: relative; min-width: 0; }
@media (max-width: 860px) {
  .hero__inner { grid-template-columns: 1fr; }
  .hero__title { max-width: 20ch; }
  .hero__art { order: -1; }
}

.hero-card {
  position: relative;
  border-radius: calc(var(--radius) * 1.2);
  overflow: hidden;
  border: 1px solid var(--line);
  aspect-ratio: 4 / 3;
  box-shadow: var(--shadow, 0 30px 80px -40px rgba(0,0,0,.6));
}
.hero-card .poster { position: absolute; inset: 0; }
.hero-card__caption {
  position: absolute;
  inset: auto 0 0;
  padding: 18px;
  background: linear-gradient(0deg, rgba(0,0,0,.72), transparent);
  color: #fff;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 12px;
}

/* ---------- Stats ---------- */
.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.stat { padding: 20px 18px; background: var(--bg); }
.stat__num {
  font-family: var(--font-display, var(--font-sans));
  font-size: clamp(1.5rem, 2.6vw, 2.2rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -.03em;
  font-variant-numeric: tabular-nums;
}
.stat__label { margin-top: 6px; font-size: .74rem; color: var(--muted); text-transform: uppercase; letter-spacing: .1em; }

/* ---------- Lists ---------- */
.rows { display: grid; gap: 0; border-top: 1px solid var(--line); }
.rowitem {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  padding: 14px 4px;
  border-bottom: 1px solid var(--line);
  transition: background .16s ease;
}
.rowitem:hover { background: var(--surface); }
.rowitem__num { font-family: var(--font-mono, monospace); font-size: .78rem; color: var(--muted); }
.rowitem__title { font-weight: 600; line-height: 1.3; }
.rowitem__meta { font-size: .76rem; color: var(--muted); }
.rowitem__end { text-align: right; font-size: .8rem; color: var(--muted); }
@media (max-width: 560px) {
  .rowitem { grid-template-columns: 38px minmax(0, 1fr); }
  .rowitem__end { grid-column: 2; text-align: left; }
}

/* ---------- Footer ---------- */
.site-footer {
  margin-top: clamp(40px, 6vw, 80px);
  border-top: 1px solid var(--line);
  background: var(--bg-2);
}
.footer-main {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr));
  gap: clamp(24px, 4vw, 56px);
  padding-block: clamp(32px, 5vw, 56px);
}
.footer-brand { display: grid; gap: 14px; align-content: start; max-width: 34ch; }
.footer-brand .brand { font-size: 1.1rem; }
.footer-brand p { font-size: .84rem; color: var(--muted); line-height: 1.5; }
.footer-col h4 {
  font-size: .7rem;
  text-transform: uppercase;
  letter-spacing: .14em;
  color: var(--muted);
  margin-bottom: 12px;
  font-weight: 700;
}
.footer-col ul { display: grid; gap: 8px; }
.footer-col a { font-size: .86rem; color: var(--muted); transition: color .16s ease; }
.footer-col a:hover { color: var(--text); }
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-block: 18px;
  border-top: 1px solid var(--line);
  font-size: .74rem;
  color: var(--muted);
}
.footer-bottom .lang button { color: var(--muted); }
@media (max-width: 760px) {
  .footer-main { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 480px) {
  .footer-main { grid-template-columns: 1fr; }
}

/* ---------- Modal ---------- */
.modal {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(8,8,12,.66);
  backdrop-filter: blur(6px);
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s ease;
}
.modal[data-open="true"] { opacity: 1; pointer-events: auto; }
.modal__panel {
  width: min(100%, 680px);
  max-height: min(86vh, 820px);
  overflow: auto;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) * 1.2);
  box-shadow: 0 40px 120px -40px rgba(0,0,0,.8);
  transform: translateY(10px) scale(.985);
  transition: transform .2s ease;
}
.modal[data-open="true"] .modal__panel { transform: none; }
.modal__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px;
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  background: var(--bg);
  z-index: 2;
}
.modal__head h3 { font-size: 1.05rem; }
.modal__body { padding: 20px; }
.modal__close { flex: none; }

/* ---------- Toast ---------- */
.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  z-index: 200;
  transform: translate(-50%, 20px);
  opacity: 0;
  pointer-events: none;
  padding: 11px 18px;
  border-radius: 999px;
  background: var(--text);
  color: var(--bg);
  font-size: .84rem;
  font-weight: 600;
  box-shadow: 0 20px 50px -20px rgba(0,0,0,.6);
  transition: opacity .2s ease, transform .2s ease;
  max-width: calc(100vw - 32px);
  text-align: center;
}
.toast[data-show="true"] { opacity: 1; transform: translate(-50%, 0); }

/* ---------- Prose ---------- */
.prose { max-width: 68ch; display: grid; gap: 1.1em; font-size: 1.02rem; }
.prose h2, .prose h3 { margin-top: .8em; }
.prose ul { display: grid; gap: .5em; padding-left: 1.1em; list-style: disc; }
.prose ol { display: grid; gap: .5em; padding-left: 1.3em; list-style: decimal; }
.prose blockquote {
  border-left: 3px solid var(--accent);
  padding: 6px 0 6px 18px;
  color: var(--muted);
  font-size: 1.08rem;
}
.prose a { color: var(--accent); border-bottom: 1px solid color-mix(in srgb, var(--accent) 40%, transparent); }
.prose code {
  font-family: var(--font-mono, monospace);
  font-size: .88em;
  padding: 2px 5px;
  border-radius: 5px;
  background: var(--surface);
  border: 1px solid var(--line);
}

/* ---------- Utility ---------- */
.divider { height: 1px; background: var(--line); }
.empty {
  padding: 48px 20px;
  text-align: center;
  color: var(--muted);
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius);
  display: grid;
  gap: 10px;
  place-items: center;
}
.pager { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 32px; }
.pager button {
  min-width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: transparent;
  color: var(--muted);
  font-size: .84rem;
  font-weight: 600;
}
.pager button[aria-current="true"] { background: var(--text); color: var(--bg); border-color: var(--text); }
.pager button:hover:not([aria-current="true"]) { border-color: var(--line-strong); color: var(--text); }

.sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.reveal { opacity: 0; transform: translateY(14px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; } }

/* ---------- Player ---------- */
.player {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #000;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
}
.player iframe, .player video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.player__cover {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: var(--bg-2);
  color: #fff;
  text-align: center;
  padding: 24px;
  z-index: 2;
}
.player__cover .poster { position: absolute; inset: 0; opacity: .55; }
.player__cover > div { position: relative; z-index: 2; display: grid; gap: 14px; justify-items: center; }
.player__play {
  width: 68px;
  height: 68px;
  border: 0;
  border-radius: 50%;
  background: var(--accent);
  color: var(--accent-ink, #fff);
  display: grid;
  place-items: center;
  box-shadow: 0 14px 40px -10px rgba(0,0,0,.7);
  transition: transform .18s ease;
}
.player__play:hover { transform: scale(1.06); }
.player__play svg { width: 26px; height: 26px; margin-left: 3px; }
.player__note { font-size: .76rem; color: rgba(255,255,255,.72); }

/* ---------- Screening / local media ---------- */
.screening {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr);
  gap: clamp(20px, 3vw, 44px);
  align-items: center;
}
.screening__video {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line-strong);
  background: #050505;
  box-shadow: 0 30px 80px -40px rgba(0, 0, 0, .75);
}
.screening__video video {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: #000;
}
.screening__badge {
  position: absolute;
  top: 12px;
  left: 12px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(8, 8, 8, .66);
  border: 1px solid rgba(255, 255, 255, .2);
  color: #fff;
  font-family: var(--font-mono);
  font-size: .58rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  backdrop-filter: blur(8px);
  z-index: 2;
}
.screening__badge i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 3px rgba(255, 255, 255, .12);
  animation: screening-pulse 2.2s ease-in-out infinite;
}
@keyframes screening-pulse { 50% { opacity: .35; } }
.screening__side { display: grid; gap: 16px; align-content: center; }
.screening__facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 18px;
  margin: 4px 0 0;
  padding: 14px 0 0;
  border-top: 1px solid var(--line);
}
.screening__facts div { display: grid; gap: 3px; }
.screening__facts dt {
  font-family: var(--font-mono);
  font-size: .6rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
}
.screening__facts dd { margin: 0; font-weight: 600; font-size: .9rem; }
.screening__note { font-size: .78rem; color: var(--muted); }
.screening--ambient .screening__video video { pointer-events: none; }
@media (max-width: 860px) {
  .screening { grid-template-columns: 1fr; }
  .screening__video { order: -1; }
}

/* ---------- Scrollbar ---------- */
* { scrollbar-width: thin; scrollbar-color: var(--line-strong) transparent; }
*::-webkit-scrollbar { width: 10px; height: 10px; }
*::-webkit-scrollbar-thumb { background: var(--line-strong); border-radius: 999px; border: 2px solid var(--bg); }
*::-webkit-scrollbar-track { background: transparent; }

/* ---------- Print ---------- */
@media print {
  .site-header, .site-footer, .toolbar, .hero__actions, .card__fav { display: none !important; }
  body { background: #fff; color: #000; }
  a { text-decoration: underline; }
}
