/* ============================================================
   komedijos.lt — cinematic dark movie-review theme
   Design tokens + components. All colors via CSS vars so the
   Customizer can swap accent / theme / density live.
   ============================================================ */

:root {
  /* ---- accent (overridable by Customizer) ---- */
  --accent: #e8b43c;
  --accent-ink: #1a1407;            /* text on accent fills */

  /* ---- surfaces (dark, warm near-black) ---- */
  --bg:         oklch(0.155 0.006 70);
  --bg-2:       oklch(0.135 0.006 70);
  --surface:    oklch(0.188 0.007 70);
  --surface-2:  oklch(0.224 0.008 70);
  --surface-3:  oklch(0.268 0.009 70);

  /* ---- text ---- */
  --text:      oklch(0.972 0.004 85);
  --text-dim:  oklch(0.745 0.010 85);
  --text-mute: oklch(0.565 0.012 85);

  /* ---- lines ---- */
  --border:        oklch(1 0 0 / 0.09);
  --border-strong: oklch(1 0 0 / 0.17);

  /* ---- score colors ---- */
  --score-high: oklch(0.80 0.15 152);
  --score-mid:  oklch(0.82 0.15 86);
  --score-low:  oklch(0.66 0.20 26);
  --ring-track: oklch(1 0 0 / 0.13);

  /* ---- geometry ---- */
  --r-xs: 7px;  --r-sm: 10px; --r: 14px; --r-lg: 20px; --r-xl: 28px;
  --maxw: 1280px;

  /* ---- density (overridable) ---- */
  --gap: 22px;
  --card-pad: 16px;
  --section-gap: 84px;

  /* ---- type ---- */
  --font-display: "Archivo", system-ui, sans-serif;
  --font-body: "Hanken Grotesk", system-ui, sans-serif;

  /* ---- shadows ---- */
  --shadow-card: 0 1px 0 oklch(1 0 0 / 0.04) inset, 0 22px 44px -26px oklch(0 0 0 / 0.85);
  --shadow-pop:  0 30px 70px -28px oklch(0 0 0 / 0.9);

  color-scheme: dark;
}

/* density variants */
[data-density="compact"] { --gap: 16px; --card-pad: 12px; --section-gap: 60px; }
[data-density="comfy"]   { --gap: 30px; --card-pad: 20px; --section-gap: 108px; }

/* light theme */
[data-theme="light"] {
  --bg:        oklch(0.975 0.004 85);
  --bg-2:      oklch(0.945 0.005 85);
  --surface:   oklch(1 0 0);
  --surface-2: oklch(0.965 0.004 85);
  --surface-3: oklch(0.928 0.006 85);
  --text:      oklch(0.205 0.01 70);
  --text-dim:  oklch(0.42 0.012 70);
  --text-mute: oklch(0.56 0.012 70);
  --border:        oklch(0 0 0 / 0.10);
  --border-strong: oklch(0 0 0 / 0.20);
  --ring-track: oklch(0 0 0 / 0.10);
  --shadow-card: 0 1px 2px oklch(0 0 0 / 0.04), 0 18px 36px -28px oklch(0 0 0 / 0.4);
  --shadow-pop:  0 30px 70px -30px oklch(0 0 0 / 0.35);
  color-scheme: light;
}

/* ============================================================ base */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-feature-settings: "ss01";
}
img, svg, image-slot { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; border: none; background: none; }
ul { list-style: none; padding: 0; }
input { font: inherit; }
::selection { background: var(--accent); color: var(--accent-ink); }

.wrap { max-width: var(--maxw); margin-inline: auto; padding-inline: 28px; }
@media (max-width: 640px){ .wrap { padding-inline: 18px; } }

.display { font-family: var(--font-display); font-weight: 800; letter-spacing: -0.02em; line-height: 1.02; }
.kicker {
  font-family: var(--font-display); font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.18em; font-size: 12px; color: var(--accent);
}
.muted { color: var(--text-mute); }
.dim { color: var(--text-dim); }

/* ============================================================ header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(14px) saturate(1.2);
  background: color-mix(in oklab, var(--bg) 78%, transparent);
  border-bottom: 1px solid var(--border);
}
.site-header .wrap { display: flex; align-items: center; gap: 28px; height: 70px; }
.brand { display: flex; align-items: baseline; gap: 2px; font-family: var(--font-display); font-weight: 900; font-size: 23px; letter-spacing: -0.03em; }
.brand .dot { color: var(--accent); }
.brand .tld { color: var(--text-mute); font-weight: 700; }
.nav { display: flex; align-items: center; gap: 4px; margin-left: 8px; }
.nav ul, .nav .nav-menu { display: flex; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav li { list-style: none; }
.nav a {
  font-family: var(--font-display); font-weight: 600; font-size: 14.5px;
  color: var(--text-dim); padding: 9px 13px; border-radius: var(--r-sm);
  transition: color .15s, background .15s; white-space: nowrap;
}
.nav a:hover { color: var(--text); background: var(--surface-2); }
.nav a.active, .nav li.current-menu-item > a, .nav li.current_page_item > a { color: var(--accent); }
.header-tools { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.kom-search {
  display: flex; align-items: center; gap: 9px;
  background: var(--surface-2); border: 1px solid var(--border);
  border-radius: 999px; padding: 8px 15px; min-width: 230px;
  transition: border-color .15s, background .15s;
}
.kom-search:focus-within { border-color: var(--border-strong); background: var(--surface-3); }
.kom-search svg { width: 16px; height: 16px; color: var(--text-mute); flex: none; }
.kom-search input { border: none; background: none; color: var(--text); outline: none; width: 100%; font-size: 14px; }
.kom-search input::placeholder { color: var(--text-mute); }
.icon-btn {
  display: grid; place-items: center; width: 40px; height: 40px; border-radius: 999px;
  background: var(--surface-2); border: 1px solid var(--border); color: var(--text-dim);
  transition: color .15s, background .15s;
}
.icon-btn:hover { color: var(--text); background: var(--surface-3); }
.icon-btn svg { width: 18px; height: 18px; }
@media (max-width: 1080px){ .nav { display: none; } }
@media (max-width: 720px){ .kom-search { display: none; } }

/* ============================================================ buttons */
.btn {
  display: inline-flex; align-items: center; gap: 9px; justify-content: center;
  font-family: var(--font-display); font-weight: 700; font-size: 15px;
  padding: 13px 22px; border-radius: var(--r-sm); white-space: nowrap;
  transition: transform .12s ease, background .15s, border-color .15s, color .15s;
}
.btn:active { transform: translateY(1px); }
.btn svg { width: 18px; height: 18px; }
.btn-accent { background: var(--accent); color: var(--accent-ink); }
.btn-accent:hover { background: color-mix(in oklab, var(--accent) 88%, white); }
.btn-ghost { background: color-mix(in oklab, var(--text) 8%, transparent); color: var(--text); border: 1px solid var(--border-strong); }
.btn-ghost:hover { background: color-mix(in oklab, var(--text) 14%, transparent); }
.btn-sm { padding: 9px 15px; font-size: 13.5px; }

/* pills / chips */
.chip {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 13px; font-weight: 600; color: var(--text-dim);
  background: var(--surface-2); border: 1px solid var(--border);
  padding: 7px 13px; border-radius: 999px; transition: all .15s;
}
.chip:hover { color: var(--text); border-color: var(--border-strong); }
.chip.active { background: var(--accent); color: var(--accent-ink); border-color: transparent; }
.rh-tags .tag {
  font-family: var(--font-display); font-weight: 700; font-size: 11px;
  text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--text-dim); border: 1px solid var(--border-strong);
  padding: 4px 9px; border-radius: var(--r-xs);
  display: inline-flex; align-items: center;
}
.rh-tags a.tag:hover { color: var(--text); border-color: var(--text); }

/* meta dot list */
.meta { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; color: var(--text-dim); font-size: 14px; font-weight: 500; }
.meta > * { display: inline-flex; align-items: center; gap: 6px; }
.meta .sep { width: 3px; height: 3px; border-radius: 50%; background: var(--text-mute); }

/* ============================================================ score badge */
.score {
  --score-size: 56px; --score-fz: 18px;
  position: relative; display: inline-grid; place-items: center; flex: none;
  width: var(--score-size); height: var(--score-size); border-radius: 50%;
  background: conic-gradient(var(--score-col, var(--accent)) calc(var(--p,0) * 1%), var(--ring-track) 0);
}
.score::before {
  content: ""; position: absolute; inset: max(3px, calc(var(--score-size) * 0.085));
  border-radius: 50%; background: var(--surface-2);
}
.score > * { position: relative; }
.score .num { font-family: var(--font-display); font-weight: 800; font-size: var(--score-fz); line-height: 1; color: var(--text); letter-spacing: -0.02em; }
.score .sfx { font-size: 0.55em; color: var(--text-dim); font-weight: 700; }
.score-lg { --score-size: 108px; --score-fz: 36px; }
.score-md { --score-size: 76px; --score-fz: 25px; }
.score-sm { --score-size: 44px; --score-fz: 15px; }
.score.is-stars { background: none; width: auto; height: auto; }
.score.is-stars::before { display: none; }
.stars { display: inline-flex; gap: 3px; font-size: calc(var(--score-fz) * 0.92); line-height: 1; }
.star { position: relative; color: var(--ring-track); }
.star-fg { position: absolute; left: 0; top: 0; overflow: hidden; color: var(--accent); white-space: nowrap; }

/* score + label combo */
.score-block { display: flex; align-items: center; gap: 12px; }
.score-block .sl-label { font-family: var(--font-display); font-weight: 700; font-size: 13px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-mute); }
.score-block .sl-sub { font-size: 12.5px; color: var(--text-mute); }

/* ============================================================ section header */
.section { margin-top: var(--section-gap); }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 26px; }
.section-head h2 { font-family: var(--font-display); font-weight: 800; font-size: clamp(24px, 3vw, 34px); letter-spacing: -0.02em; }
.section-head .more { display: inline-flex; align-items: center; gap: 6px; font-family: var(--font-display); font-weight: 700; font-size: 14px; color: var(--accent); }
.section-head .more svg { width: 15px; height: 15px; }

/* ============================================================ movie card */
.grid { display: grid; gap: var(--gap); }
.grid-cards { grid-template-columns: repeat(auto-fill, minmax(208px, 1fr)); }
@media (max-width: 520px){ .grid-cards { grid-template-columns: repeat(2, 1fr); --gap: 14px; } }

.card { display: flex; flex-direction: column; gap: 11px; }
.card .poster {
  position: relative; aspect-ratio: 2 / 3; border-radius: var(--r); overflow: hidden;
  background: var(--surface-2); box-shadow: var(--shadow-card);
  border: 1px solid var(--border);
  transition: transform .22s ease, box-shadow .22s ease;
}
.card a.poster-link { display: block; }
.card:hover .poster { transform: translateY(-4px); box-shadow: var(--shadow-pop); }
.card .poster image-slot, .card .poster img { width: 100%; height: 100%; }
.card .poster .score { position: absolute; top: 10px; right: 10px; box-shadow: 0 6px 16px -6px oklch(0 0 0 / 0.8); }
.card .poster .ribbon {
  position: absolute; top: 10px; left: 10px; font-family: var(--font-display); font-weight: 800;
  font-size: 11px; letter-spacing: 0.04em; text-transform: uppercase;
  background: var(--accent); color: var(--accent-ink); padding: 4px 9px; border-radius: var(--r-xs);
}
.card .poster .play {
  position: absolute; inset: 0; display: grid; place-items: center; opacity: 0;
  background: linear-gradient(to top, oklch(0 0 0 / 0.55), transparent 55%);
  transition: opacity .2s;
}
.card:hover .poster .play { opacity: 1; }
.card .poster .play span {
  width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center;
  background: oklch(1 0 0 / 0.16); backdrop-filter: blur(6px); border: 1px solid oklch(1 0 0 / 0.3);
}
.card .poster .play svg { width: 20px; height: 20px; color: #fff; margin-left: 2px; }
.card .c-title { font-family: var(--font-display); font-weight: 700; font-size: 16px; letter-spacing: -0.01em; line-height: 1.18; }
.card:hover .c-title { color: var(--accent); }
.card .c-meta { font-size: 13px; color: var(--text-mute); display: flex; gap: 7px; align-items: center; }

/* ============================================================ hero */
.hero { position: relative; overflow: hidden; border-bottom: 1px solid var(--border); }
.hero .backdrop { position: absolute; inset: 0; }
.hero .backdrop image-slot, .hero .backdrop img { width: 100%; height: 100%; object-fit: cover; }
.hero .backdrop::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(to right, var(--bg) 0%, color-mix(in oklab, var(--bg) 72%, transparent) 38%, transparent 72%),
    linear-gradient(to top, var(--bg) 2%, color-mix(in oklab, var(--bg) 30%, transparent) 40%, transparent 72%);
}
.hero .wrap { position: relative; display: grid; grid-template-columns: 1.5fr 0.9fr; gap: 48px; align-items: center; min-height: 560px; padding-block: 64px; }
.hero-copy { max-width: 620px; }
.hero-copy .kicker { margin-bottom: 16px; display: inline-flex; gap: 9px; align-items: center; }
.hero-copy h1 { font-family: var(--font-display); font-weight: 900; font-size: clamp(42px, 6.4vw, 84px); line-height: 0.95; letter-spacing: -0.035em; margin-bottom: 20px; text-wrap: balance; }
.hero-copy .tagline { font-size: 18px; color: var(--text-dim); max-width: 540px; margin-bottom: 26px; text-wrap: pretty; }
.hero-meta { margin-bottom: 30px; }
.hero-scores { display: flex; align-items: center; gap: 26px; margin-bottom: 32px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-poster { justify-self: end; }
.hero-poster .pf {
  width: 300px; aspect-ratio: 2/3; border-radius: var(--r-lg); overflow: hidden;
  box-shadow: var(--shadow-pop); border: 1px solid var(--border-strong); rotate: 2deg;
}
.hero-poster .pf image-slot, .hero-poster .pf img { width: 100%; height: 100%; }
@media (max-width: 940px){
  .hero .wrap { grid-template-columns: 1fr; min-height: 0; gap: 36px; }
  .hero-poster { display: none; }
}

/* ============================================================ ranked list */
.ranked { display: grid; gap: 10px; }
.rank-row {
  display: grid; grid-template-columns: 54px 64px 1fr auto; align-items: center; gap: 18px;
  padding: 12px 16px 12px 6px; border-radius: var(--r); background: var(--surface);
  border: 1px solid var(--border); transition: border-color .15s, transform .15s;
}
.rank-row:hover { border-color: var(--border-strong); transform: translateX(3px); }
.rank-row .rk { font-family: var(--font-display); font-weight: 900; font-size: 30px; color: var(--text-mute); text-align: center; letter-spacing: -0.04em; }
.rank-row .mini-poster { width: 64px; aspect-ratio: 2/3; border-radius: var(--r-xs); overflow: hidden; background: var(--surface-2); border: 1px solid var(--border); }
.rank-row .mini-poster image-slot, .rank-row .mini-poster img { width: 100%; height: 100%; }
.rank-row .rr-title { font-family: var(--font-display); font-weight: 700; font-size: 16.5px; }
.rank-row .rr-meta { font-size: 13px; color: var(--text-mute); }

/* ============================================================ footer */
.site-footer { margin-top: var(--section-gap); border-top: 1px solid var(--border); background: var(--bg-2); }
.site-footer .wrap { padding-block: 54px 36px; }
.foot-grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 40px; }
.foot-grid h4 { font-family: var(--font-display); font-weight: 700; font-size: 13px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--text-mute); margin-bottom: 16px; }
.foot-grid li { margin-bottom: 9px; }
.foot-grid a { color: var(--text-dim); font-size: 14.5px; }
.foot-grid a:hover { color: var(--accent); }
/* widget area in the footer (e.g. the "Apie" column) — match column styling */
.foot-grid .foot-widget { margin: 0 0 22px; }
.foot-grid .foot-widget:last-child { margin-bottom: 0; }
.foot-grid .foot-widget .widget-title { margin-bottom: 16px; }
.foot-grid .foot-widget ul { list-style: none; margin: 0; padding: 0; }
.foot-grid .foot-widget li { margin-bottom: 9px; }
.foot-grid .foot-widget .sub-menu { margin-top: 9px; margin-left: 12px; }
.foot-blurb { color: var(--text-mute); font-size: 14px; max-width: 280px; margin-top: 14px; }
.foot-bottom { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 14px; margin-top: 44px; padding-top: 24px; border-top: 1px solid var(--border); color: var(--text-mute); font-size: 13px; }
@media (max-width: 820px){ .foot-grid { grid-template-columns: 1fr 1fr; gap: 30px; } }

/* ============================================================ review page */
.review-hero { position: relative; overflow: hidden; }
.review-hero .backdrop { position: absolute; inset: 0; }
.review-hero .backdrop image-slot, .review-hero .backdrop img { width: 100%; height: 100%; object-fit: cover; }
.review-hero .backdrop::after { content:""; position: absolute; inset: 0;
  background: linear-gradient(to top, var(--bg), color-mix(in oklab, var(--bg) 55%, transparent) 45%, color-mix(in oklab, var(--bg) 80%, transparent)); }
.review-hero .wrap { position: relative; display: grid; grid-template-columns: 280px 1fr; gap: 44px; padding-block: 64px 52px; align-items: end; }
.review-poster { aspect-ratio: 2/3; border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow-pop); border: 1px solid var(--border-strong); }
.review-poster image-slot, .review-poster img { width: 100%; height: 100%; }
.rh-info .breadcrumb { font-size: 13px; color: var(--text-mute); margin-bottom: 14px; display:flex; gap:8px; align-items:center; flex-wrap: wrap; }
.rh-info .breadcrumb a:hover { color: var(--accent); }
.rh-info h1 { font-family: var(--font-display); font-weight: 900; font-size: clamp(38px, 5.2vw, 64px); line-height: 0.96; letter-spacing: -0.035em; margin-bottom: 8px; text-wrap: balance; }
.rh-info .orig { color: var(--text-mute); font-size: 15px; margin-bottom: 18px; font-style: italic; }
.rh-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; }
.rh-scores { display: flex; gap: 30px; flex-wrap: wrap; margin-bottom: 26px; padding: 18px 22px; background: color-mix(in oklab, var(--surface) 65%, transparent); border: 1px solid var(--border); border-radius: var(--r); backdrop-filter: blur(6px); width: fit-content; }
.rh-actions { display: flex; flex-wrap: wrap; gap: 12px; }
@media (max-width: 820px){ .review-hero .wrap { grid-template-columns: 160px 1fr; gap: 24px; } }
@media (max-width: 560px){ .review-hero .wrap { grid-template-columns: 1fr; } .review-poster { width: 180px; } }

.review-body { display: grid; grid-template-columns: 1fr 340px; gap: 56px; margin-top: 56px; align-items: start; }
@media (max-width: 940px){ .review-body { grid-template-columns: 1fr; gap: 44px; } }

.block { margin-bottom: 52px; }
.block > h3 { font-family: var(--font-display); font-weight: 800; font-size: 24px; letter-spacing: -0.02em; margin-bottom: 18px; display: flex; align-items: center; gap: 11px; }
.block > h3::before { content: ""; width: 4px; height: 22px; border-radius: 2px; background: var(--accent); }
.prose p { color: var(--text-dim); font-size: 17px; line-height: 1.72; margin-bottom: 16px; max-width: 64ch; }
.prose p strong { color: var(--text); font-weight: 600; }
.prose h2, .prose h3, .prose h4 { font-family: var(--font-display); color: var(--text); letter-spacing: -0.02em; margin: 26px 0 12px; }
.prose ul, .prose ol { color: var(--text-dim); font-size: 17px; line-height: 1.72; margin: 0 0 16px 1.2em; max-width: 64ch; }
.prose ul { list-style: disc; } .prose ol { list-style: decimal; }
.prose li { margin-bottom: 6px; }
.prose a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.prose blockquote { border-left: 3px solid var(--accent); padding-left: 18px; margin: 0 0 16px; color: var(--text); font-style: italic; }
.prose img { border-radius: var(--r); margin: 8px 0 18px; }

/* trailer */
.trailer { position: relative; aspect-ratio: 16/9; border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--border); background: #000; box-shadow: var(--shadow-card); }
.trailer iframe { width: 100%; height: 100%; border: 0; display: block; }
.trailer .facade { position: absolute; inset: 0; cursor: pointer; }
.trailer .facade image-slot, .trailer .facade img { width: 100%; height: 100%; object-fit: cover; }
.trailer .facade::after { content:""; position:absolute; inset:0; background: oklch(0 0 0 / 0.32); transition: background .2s; }
.trailer .facade:hover::after { background: oklch(0 0 0 / 0.18); }
.trailer .play-big { position: absolute; inset: 0; margin: auto; width: 84px; height: 84px; border-radius: 50%; display: grid; place-items: center; background: var(--accent); color: var(--accent-ink); box-shadow: var(--shadow-pop); z-index: 2; transition: transform .2s; }
.trailer .facade:hover ~ .play-big, .trailer:hover .play-big { transform: scale(1.07); }
.trailer .play-big svg { width: 32px; height: 32px; margin-left: 3px; }
.trailer .tlabel { position: absolute; left: 18px; bottom: 16px; z-index: 2; font-family: var(--font-display); font-weight: 700; font-size: 14px; color: #fff; text-shadow: 0 1px 8px rgba(0,0,0,.6); display:flex; gap:8px; align-items:center; }
.trailer .tlabel svg{ width:18px;height:18px;color:#ff4444;}

/* cast — clickable name boxes (no photos) */
.cast-chips { display: flex; flex-wrap: wrap; gap: 10px; }
.cast-chip {
  display: inline-flex; align-items: center; gap: 9px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r-sm); padding: 11px 15px;
  font-family: var(--font-display); font-weight: 700; font-size: 14.5px;
  color: var(--text); line-height: 1.1;
  transition: transform .15s ease, border-color .15s, background .15s, color .15s;
}
.cast-chip svg { width: 16px; height: 16px; color: var(--text-mute); flex: none; transition: color .15s; }
a.cast-chip:hover { border-color: var(--border-strong); background: var(--surface-2); color: var(--accent); transform: translateY(-2px); }
a.cast-chip:hover svg { color: var(--accent); }

/* stills */
.stills { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.stills .still { aspect-ratio: 16/10; border-radius: var(--r); overflow: hidden; background: var(--surface-2); border: 1px solid var(--border); }
.stills .still image-slot, .stills .still img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 560px){ .stills { grid-template-columns: repeat(2,1fr); } }

/* sidebar info */
.side-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); padding: 24px; box-shadow: var(--shadow-card); position: sticky; top: 90px; }
.facts { display: grid; gap: 0; }
.fact { display: grid; grid-template-columns: 116px 1fr; gap: 12px; padding: 13px 0; border-bottom: 1px solid var(--border); }
.fact:last-child { border-bottom: none; }
.fact dt { font-family: var(--font-display); font-weight: 700; font-size: 12.5px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-mute); padding-top: 2px; }
.fact dd { font-size: 14.5px; color: var(--text); font-weight: 500; }
.fact dd a:hover { color: var(--accent); }

.watch-on { margin-top: 8px; }
.watch-list { display: grid; gap: 9px; margin-top: 4px; }
.watch-item { display: flex; align-items: center; gap: 13px; padding: 11px 13px; border-radius: var(--r-sm); background: var(--surface-2); border: 1px solid var(--border); transition: border-color .15s, background .15s; }
.watch-item:hover { border-color: var(--border-strong); background: var(--surface-3); }
.watch-item .logo { width: 40px; height: 40px; border-radius: var(--r-xs); display: grid; place-items: center; font-family: var(--font-display); font-weight: 900; font-size: 17px; color: #fff; flex: none; }
.watch-item .w-name { font-family: var(--font-display); font-weight: 700; font-size: 14.5px; }
.watch-item .w-kind { font-size: 12.5px; color: var(--text-mute); }
.watch-item .w-go { margin-left: auto; color: var(--text-mute); }
.watch-item:hover .w-go { color: var(--accent); }

/* verdict */
.verdict { background: linear-gradient(135deg, color-mix(in oklab, var(--accent) 14%, var(--surface)), var(--surface)); border: 1px solid var(--border-strong); border-radius: var(--r-lg); padding: 30px 32px; display: grid; grid-template-columns: auto 1fr; gap: 28px; align-items: center; }
.verdict .v-text h3 { font-family: var(--font-display); font-weight: 800; font-size: 22px; margin-bottom: 8px; }
.verdict .v-text h3::before { display: none; }
.verdict .v-text p { color: var(--text-dim); font-size: 16px; max-width: 56ch; }
@media (max-width: 560px){ .verdict { grid-template-columns: 1fr; gap: 18px; text-align: center; justify-items: center; } }

/* ============================================================ category / archive */
.page-head { border-bottom: 1px solid var(--border); background: var(--bg-2); position: relative; overflow: hidden; }
.page-head::before { content:""; position:absolute; inset:0; background: radial-gradient(120% 140% at 85% -20%, color-mix(in oklab, var(--accent) 16%, transparent), transparent 60%); }
.page-head .wrap { position: relative; padding-block: 56px 40px; }
.page-head .kicker { margin-bottom: 14px; display: block; }
.page-head h1 { font-family: var(--font-display); font-weight: 900; font-size: clamp(40px, 6vw, 74px); letter-spacing: -0.035em; line-height: 0.95; }
.page-head .lead { color: var(--text-dim); font-size: 17px; max-width: 620px; margin-top: 16px; text-wrap: pretty; }
.page-head .count { color: var(--text-mute); font-size: 14px; margin-top: 18px; font-weight: 600; }

.toolbar { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-top: 36px; padding-bottom: 4px; }
.chip-row { display: flex; gap: 9px; flex-wrap: wrap; }
.sort { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.sort label { font-size: 13.5px; color: var(--text-mute); font-weight: 600; }
.select {
  display: inline-flex; align-items: center; gap: 8px; background: var(--surface-2);
  border: 1px solid var(--border); border-radius: var(--r-sm); padding: 9px 14px;
  font-family: var(--font-display); font-weight: 600; font-size: 14px; color: var(--text);
}
.select svg { width: 14px; height: 14px; color: var(--text-mute); }
.select select { appearance: none; -webkit-appearance: none; background: none; border: none; color: inherit; font: inherit; outline: none; cursor: pointer; padding-right: 2px; }
@media (max-width: 720px){ .sort { margin-left: 0; width: 100%; } }

/* pagination */
.pagination { display: flex; justify-content: center; align-items: center; gap: 8px; margin-top: 52px; }
.pagination .nav-links { display: flex; justify-content: center; align-items: center; gap: 8px; flex-wrap: wrap; }
.pagination .page-numbers { /* normalise WP's class onto the design tokens */ }
.pagination a, .pagination span {
  min-width: 42px; height: 42px; display: grid; place-items: center; padding-inline: 10px;
  border-radius: var(--r-sm); font-family: var(--font-display); font-weight: 700; font-size: 14.5px;
  background: var(--surface); border: 1px solid var(--border); color: var(--text-dim); transition: all .15s;
}
.pagination a:hover { border-color: var(--border-strong); color: var(--text); }
.pagination .cur, .pagination .current { background: var(--accent); color: var(--accent-ink); border-color: transparent; }
.pagination .dots { background: none; border: none; }

/* utility */
.divider { height: 1px; background: var(--border); border: none; margin: 0; }
.lead-row { display:flex; align-items:center; justify-content:space-between; gap:20px; flex-wrap:wrap; }

/* ============================================================
   WordPress integration additions (not in the prototype)
   ============================================================ */

/* image-slot placeholder — shown when a movie has no poster/backdrop/still yet */
.img-ph {
  width: 100%; height: 100%; display: grid; place-items: center; text-align: center;
  background:
    repeating-linear-gradient(45deg, color-mix(in oklab, var(--surface-3) 60%, transparent) 0 12px, transparent 12px 24px),
    var(--surface-2);
  color: var(--text-mute); font-family: var(--font-display); font-weight: 700;
  font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; padding: 12px;
}
.img-ph::before {
  content: ""; width: 26px; height: 26px; margin-bottom: 8px; opacity: .5;
  background: currentColor;
  -webkit-mask: var(--ph-icon) center / contain no-repeat;
          mask: var(--ph-icon) center / contain no-repeat;
  --ph-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='3' width='18' height='18' rx='2'/%3E%3Ccircle cx='9' cy='9' r='2'/%3E%3Cpath d='m21 15-3.1-3.1a2 2 0 0 0-2.8 0L6 21'/%3E%3C/svg%3E");
}
.img-ph.is-blank { font-size: 0; padding: 0; }
.img-ph.is-blank::before { margin: 0; }

/* accessibility: skip link + screen reader text (WP standard) */
.screen-reader-text {
  border: 0; clip: rect(1px,1px,1px,1px); clip-path: inset(50%);
  height: 1px; width: 1px; margin: -1px; overflow: hidden; padding: 0;
  position: absolute !important; word-wrap: normal !important;
}
.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--accent); color: var(--accent-ink);
  font-family: var(--font-display); font-weight: 700; padding: 12px 18px; border-radius: 0 0 var(--r-sm) 0;
}
.skip-link:focus { left: 0; }

/* mobile navigation (the prototype simply hid the nav < 1080px) */
.menu-toggle { display: none; }
.mobile-nav { display: none; }
@media (max-width: 1080px){
  .menu-toggle {
    display: grid; place-items: center; width: 40px; height: 40px; border-radius: 999px;
    background: var(--surface-2); border: 1px solid var(--border); color: var(--text-dim);
  }
  .menu-toggle:hover { color: var(--text); background: var(--surface-3); }
  .menu-toggle svg { width: 20px; height: 20px; }
  .mobile-nav {
    display: block; max-height: 0; overflow: hidden;
    border-bottom: 1px solid transparent;
    background: color-mix(in oklab, var(--bg) 96%, transparent);
    transition: max-height .28s ease, border-color .28s ease;
  }
  .mobile-nav.open { max-height: 80vh; overflow-y: auto; border-bottom-color: var(--border); }
  /* The dropdown's inner .wrap sits inside .site-header, so reset the header's
     flex/70px-height .wrap rule — otherwise the menu is clipped to one row. */
  .site-header .mobile-nav .wrap { display: block; height: auto; padding-block: 8px 14px; }
  .mobile-nav ul { padding: 0; margin: 0; }
  .mobile-nav a {
    display: block; font-family: var(--font-display); font-weight: 600; font-size: 16px;
    color: var(--text-dim); padding: 13px 0; border-bottom: 1px solid var(--border);
  }
  .mobile-nav li:last-child a { border-bottom: none; }
  .mobile-nav a:hover, .mobile-nav .current-menu-item > a, .mobile-nav .active { color: var(--accent); }
  .mobile-search { padding: 14px 0 4px; }
  .mobile-search .kom-search { display: flex; min-width: 0; width: 100%; }
}

/* search / no-results */
.entry-empty { text-align: center; padding: 30px 0 10px; }
.entry-empty p { color: var(--text-dim); font-size: 17px; max-width: 60ch; margin-inline: auto; }

/* WordPress alignment + caption helpers for prose content */
.prose .aligncenter { display: block; margin-inline: auto; }
.prose .alignright { float: right; margin: 6px 0 12px 20px; }
.prose .alignleft { float: left; margin: 6px 20px 12px 0; }
.prose .wp-caption { max-width: 100%; }
.prose .wp-caption-text { color: var(--text-mute); font-size: 13px; margin-top: 4px; }
.prose figure { margin: 0 0 18px; }
.prose figcaption { color: var(--text-mute); font-size: 13px; margin-top: 6px; }

/* admin bar offset for sticky header */
.admin-bar .site-header { top: 32px; }
.admin-bar .side-card { top: 122px; }
@media (max-width: 782px){ .admin-bar .site-header { top: 46px; } }

/* respect reduced motion */
@media (prefers-reduced-motion: reduce){
  * { animation-duration: .001ms !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
}
