/* Additions on top of tokens.css and lilac-final.css. Spacing lives in spacing-fix.css, loaded last. */
.site-top { position: sticky; top: 0; z-index: 50; background: var(--header-bg); padding-top: var(--safe-top); }
.site-header { position: static; border-bottom: 0; background: transparent; padding-top: 0; }
@media (max-width: 599px) { .site-header__logo { min-height: 64px; } }
select.lang-select { width: 64px; padding-inline: 6px; text-align: center; }
.search input {
  padding-left: 42px;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23A79BBD' stroke-width='2' stroke-linecap='round'><circle cx='11' cy='11' r='6.5'/><path d='M16 16l5 5'/></svg>");
  background-repeat: no-repeat;
  background-position: 14px 50%;
  background-size: 18px 18px;
}
.age-gate__actions .btn { width: 100%; }
.age-gate__actions form { margin: 0; }
.age-gate__title { margin-top: 0; }
html.age-ok .age-gate { display: none; }
.hp { position: absolute !important; left: -9999px; height: 1px; width: 1px; overflow: hidden; }
.vote { display: flex; flex-wrap: wrap; gap: var(--sp-2); margin: var(--sp-4) 0; }
.vote .is-on { border-color: var(--accent); color: var(--accent-text); }
.comments { list-style: none; padding: 0; margin: 0 0 var(--sp-4); display: grid; gap: var(--sp-3); }
.comments li { border-top: 1px solid var(--border); padding-top: var(--sp-3); }
.comments p { margin: var(--sp-1) 0 0; }
.comment-form { display: grid; gap: var(--sp-2); }
.card__drape { width: 100%; height: 100%; object-fit: cover; display: block; }
.drape-0 { object-position: 12% 20%; }
.drape-1 { object-position: 72% 28%; }
.drape-2 { object-position: 40% 78%; }
.drape-3 { object-position: 88% 62%; }
.drape-4 { object-position: 24% 48%; }
.drape-5 { object-position: 58% 8%; }
.section-head p, .desc, .note, .watch-meta, .footer-note { color: var(--text-muted); }
.footer-note { margin: 0 0 var(--sp-2); }
.site-footer p:last-child { margin: 0; }
.shelf + .shelf { margin-top: var(--sp-6); }
.pager { display: flex; flex-wrap: wrap; gap: var(--sp-2); margin: var(--sp-4) 0; list-style: none; padding: 0; }
.pager a, .pager span { display: inline-flex; align-items: center; justify-content: center; min-height: var(--tap); min-width: var(--tap); border-radius: var(--radius-pill); color: var(--text-muted); }
.pager .current { background: var(--accent); color: var(--accent-ink); }
.chips { display: flex; flex-wrap: wrap; gap: var(--sp-2); margin: 0 0 var(--sp-4); }
.chips a { display: inline-flex; align-items: center; min-height: 36px; padding: 0 var(--sp-3); border: 1px solid var(--border); border-radius: var(--radius-pill); background: var(--surface); color: var(--text-muted); font-size: var(--fs-sm); }
.player iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; z-index: 1; pointer-events: auto; }
.player { position: relative; aspect-ratio: 16 / 9; }
html { scroll-padding-top: calc(var(--sticky-h) + var(--safe-top)); }
:root { --sticky-h: 168px; }
@media (min-width: 600px) { :root { --sticky-h: 128px; } }
.watch__title, .intro__title, .page-head h1 { scroll-margin-top: calc(var(--sticky-h) + var(--safe-top) + 12px); }
.watch { padding-top: var(--sp-3); }
.watch__title { margin-top: var(--sp-4); }
.empty { border: 1px dashed var(--border-strong); border-radius: var(--radius); padding: var(--sp-5); color: var(--text-muted); }
.cookie {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  max-width: none;
  z-index: 90;
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: var(--sp-3);
  background: var(--header-bg);
  border: 0;
  border-top: 1px solid var(--border);
  border-radius: 0;
  box-shadow: none;
  padding: 10px max(var(--gutter), env(safe-area-inset-left)) calc(10px + var(--safe-bottom)) max(var(--gutter), env(safe-area-inset-right));
}
.cookie[hidden] { display: none; }
.cookie p { margin: 0; color: var(--text-muted); flex: 1 1 auto; font-size: var(--fs-sm); line-height: 1.35; }
.cookie .btn { flex: 0 0 auto; min-height: 36px; padding-inline: var(--sp-4); }
.panel, .gate-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: var(--sp-5); }
.panel.wide { width: min(100%, 760px); }
.panel.narrow { width: min(100%, 440px); margin-inline: auto; }
.banner { border: 1px solid var(--border); border-radius: var(--radius); padding: var(--sp-3); background: var(--surface-2); }
.banner.error { border-color: var(--danger); }
.fields, fieldset, .panel form, .panel.wide { display: grid; gap: var(--sp-2); }
fieldset { border: 1px solid var(--border); border-radius: var(--radius); padding: var(--sp-3); }
label { color: var(--text-muted); font-size: var(--fs-sm); font-weight: var(--fw-medium); }
input[type="text"], input[type="password"], input[type="number"], input[type="datetime-local"], input[type="file"], textarea, select.panel-input {
  width: 100%; min-height: var(--tap); padding: 0 var(--sp-3);
  background: var(--surface-2); color: var(--text); border: 1px solid var(--border-strong); border-radius: var(--radius); font: inherit; font-size: var(--fs-base);
}
textarea { padding: var(--sp-3); min-height: 96px; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: var(--sp-2) var(--sp-3); border-bottom: 1px solid var(--border); vertical-align: top; }
.actions { display: flex; gap: var(--sp-2); flex-wrap: wrap; }
.check { display: flex; gap: var(--sp-2); align-items: center; color: var(--text); }
.linkish { background: none; border: 0; color: var(--accent-text); padding: 0; cursor: pointer; font: inherit; }
.kicker { color: var(--accent-text); font-size: var(--fs-xs); font-weight: var(--fw-bold); letter-spacing: .08em; text-transform: uppercase; }
.page-head h1, .section-head h2, .watch__title, .card__title { color: var(--ivory); }
.legal { color: var(--text-muted); max-width: 68ch; }
.rta-slot span { font-size: var(--fs-xs); color: var(--text-subtle); }
