/* popcorn.movie — dark only, by design (§12). The site is for watching things
   in a dark room. Palette grounded in projection and film stock, not neon. */

:root {
  /* tokens — the named palette */
  --auditorium: #0e0c10;   /* the room with the lights down */
  --surface:    #171419;   /* seat-row grey */
  --raised:     #201c24;   /* armrest */
  --line:       #2e2833;   /* aisle edge */
  --screen:     #f2ede4;   /* projected off-white */
  --screen-dim: #b9b2a6;   /* screen light falling on faces */
  --faint:      #7d7668;   /* exit-sign distance */
  --amber:      #e0a458;   /* warm house light */
  --gold:       #d4af37;   /* the kernel, the award, the via-dot */
  --box-red:    #b3382e;   /* popcorn-box stripe */
  --slop:       #9aa332;   /* bile green, for certified slop */

  --display: 'Bricolage Grotesque', 'Avenir Next Condensed', system-ui, sans-serif;
  --body: 'Inter', -apple-system, 'Segoe UI', sans-serif;
  --utility: 'IBM Plex Mono', 'SF Mono', ui-monospace, monospace;

  --rad: 10px;
  --rad-sm: 6px;
  --maxw: 1120px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--auditorium);
  color: var(--screen);
  font-family: var(--body);
  font-size: 15.5px;
  line-height: 1.55;
}
img { max-width: 100%; display: block; }
a { color: var(--amber); text-decoration: none; }
a:hover { color: var(--gold); }
:focus-visible { outline: 2px solid var(--amber); outline-offset: 2px; border-radius: 2px; }

h1, h2, h3 { font-family: var(--display); line-height: 1.12; margin: 0 0 .4em; }
h1 { font-size: clamp(1.7rem, 4vw, 2.6rem); font-weight: 800; letter-spacing: -0.01em; }
h2 { font-size: 1.35rem; font-weight: 600; }
h3 { font-size: 1.05rem; font-weight: 600; }

.meta, .count { font-family: var(--utility); font-size: 0.78rem; color: var(--screen-dim); }
.faint { color: var(--faint); }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }

/* ---------- header ---------- */
.site-head {
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--auditorium) 88%, black);
  position: sticky; top: 0; z-index: 40;
  backdrop-filter: blur(6px);
}
.site-head .wrap { display: flex; align-items: center; gap: 18px; height: 58px; }
.brand { display: flex; align-items: center; gap: 9px; font-family: var(--display); font-weight: 800; font-size: 1.12rem; color: var(--screen); letter-spacing: -0.01em; white-space: nowrap; }
/* 30% larger mark that overflows its line instead of growing the 58px
   header: fixed row height absorbs it, negative margins neutralize any
   layout push. */
.brand img { height: 34px; width: auto; margin: -8px 0; }
.brand:hover { color: var(--gold); }
.nav { display: flex; gap: 4px; align-items: center; overflow-x: auto; scrollbar-width: none; }
.nav::-webkit-scrollbar { display: none; }
.nav a { color: var(--screen-dim); padding: 6px 10px; border-radius: var(--rad-sm); font-size: 0.92rem; white-space: nowrap; }
.nav a:hover { color: var(--screen); background: var(--raised); }
.nav a.on { color: var(--screen); background: var(--raised); }
.head-spacer { flex: 1; }
.head-actions { display: flex; gap: 10px; align-items: center; }
.avatar { width: 28px; height: 28px; border-radius: 50%; border: 1px solid var(--line); }

/* ---------- mobile header ---------- */
.mobile-only { display: none !important; }
.burger {
  background: none; border: 1px solid var(--line); border-radius: var(--rad-sm);
  color: var(--screen); font-size: 1.1rem; padding: 5px 11px; cursor: pointer;
}
.signin-orb {
  display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; border-radius: 50%;
  background: linear-gradient(160deg, var(--gold), var(--amber)); color: #241d06;
}
#mobile-menu {
  border-top: 1px solid var(--line); background: var(--surface);
  display: flex; flex-direction: column; padding: 6px 0 10px;
}
#mobile-menu[hidden] { display: none; }
#mobile-menu a { padding: 11px 22px; color: var(--screen); font-size: 1rem; border-bottom: 1px solid color-mix(in srgb, var(--line) 40%, transparent); }
#mobile-menu a:last-child { border-bottom: 0; }
@media (max-width: 920px) {
  .nav, .desktop-only { display: none !important; }
  .mobile-only { display: inline-flex !important; }
  .site-head .wrap { gap: 10px; }
  .brand-text small { display: none; }
}

/* ---------- buttons & forms ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 7px;
  background: var(--raised); color: var(--screen);
  border: 1px solid var(--line); border-radius: var(--rad-sm);
  padding: 8px 14px; font: 500 0.92rem var(--body);
  cursor: pointer; white-space: nowrap;
  transition: border-color .15s, background .15s, transform .06s;
}
.btn:hover { border-color: var(--amber); color: var(--screen); }
.btn:active { transform: translateY(1px); }
.btn-gold { background: var(--gold); border-color: var(--gold); color: #241d06; font-weight: 600; }
.btn-gold:hover { background: var(--amber); border-color: var(--amber); color: #241d06; }
.btn-quiet { background: transparent; border-color: transparent; color: var(--screen-dim); }
.btn-quiet:hover { border-color: var(--line); }
.btn-danger { border-color: color-mix(in srgb, var(--box-red) 70%, var(--line)); color: #e28a82; }
.btn-danger:hover { border-color: var(--box-red); }

input[type=text], input[type=url], input[type=email], input[type=number], textarea, select {
  background: var(--surface); color: var(--screen);
  border: 1px solid var(--line); border-radius: var(--rad-sm);
  padding: 9px 12px; font: 400 0.95rem var(--body); width: 100%;
}
input:focus, textarea:focus, select:focus { border-color: var(--amber); outline: none; }
label { display: block; font-size: 0.86rem; color: var(--screen-dim); margin: 14px 0 5px; }
.field-note { font-size: 0.8rem; color: var(--faint); margin-top: 4px; }
fieldset { border: 1px solid var(--line); border-radius: var(--rad); padding: 14px 16px; margin: 0 0 14px; }
legend { font-size: 0.85rem; color: var(--screen-dim); padding: 0 6px; }

.err {
  background: color-mix(in srgb, var(--box-red) 18%, var(--surface));
  border: 1px solid color-mix(in srgb, var(--box-red) 55%, var(--line));
  color: #f0b9b3; border-radius: var(--rad-sm);
  padding: 10px 14px; margin: 10px 0; font-size: 0.92rem;
}
.ok {
  background: color-mix(in srgb, var(--gold) 12%, var(--surface));
  border: 1px solid color-mix(in srgb, var(--gold) 45%, var(--line));
  color: var(--gold); border-radius: var(--rad-sm);
  padding: 10px 14px; margin: 10px 0; font-size: 0.92rem;
}

/* ---------- the thumbnail grid: the hero (§12) ---------- */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 22px 18px; margin: 18px 0 40px; }
.card { display: block; color: var(--screen); }
.card .thumbwrap { position: relative; border-radius: var(--rad); overflow: hidden; background: var(--surface); aspect-ratio: 16/9; }
.card .thumbwrap img { width: 100%; height: 100%; object-fit: cover; transition: transform .25s ease; }
.card:hover .thumbwrap img { transform: scale(1.03); }
.card .runtime { position: absolute; right: 8px; bottom: 8px; background: rgba(10,9,12,.82); color: var(--screen); font-family: var(--utility); font-size: 0.72rem; padding: 2px 7px; border-radius: 4px; }
/* Title always occupies exactly two lines' height (clamped at two, padded
   to two), and the by-line exactly one, so the score row sits at the same
   height on every card in a row. */
.card .title { font-weight: 600; font-size: 0.98rem; margin: 10px 0 2px; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.6em; }
.card .by { font-size: 0.84rem; color: var(--screen-dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card .verdictline { display: flex; align-items: center; gap: 8px; margin-top: 6px; }

/* ---------- badges: spend the boldness here (§12) ---------- */
.badge {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--display); font-weight: 800; letter-spacing: .03em;
  font-size: 0.72rem; padding: 3px 9px; border-radius: 4px; text-transform: uppercase;
}
.badge-fresh { background: linear-gradient(160deg, var(--gold), var(--amber)); color: #241d06; }
.badge-slop { background: var(--slop); color: #14150a; }
.badge-none { background: var(--raised); color: var(--faint); font-weight: 600; text-transform: none; letter-spacing: 0; font-family: var(--body); }
.badge-big { font-size: 1rem; padding: 7px 16px; border-radius: 6px; }
.pct { font-family: var(--utility); font-weight: 500; font-size: 0.82rem; color: var(--screen-dim); }
.pct b { color: var(--screen); font-weight: 500; }

/* fractional star bar: grey outline stars, gold fill clipped to the score */
.starbar { position: relative; display: inline-block; line-height: 1; color: var(--line); letter-spacing: 1px; font-size: 0.95em; vertical-align: -1px; }
.starbar .sb-fill { position: absolute; left: 0; top: 0; overflow: hidden; white-space: nowrap; color: var(--gold); }
.starbar .sb-a { width: var(--fill-a); }
.starbar .sb-b { width: var(--fill-b); }
.starbar .sb-dark { color: color-mix(in srgb, var(--gold) 52%, #3a2f10); }

/* verified creator */
.vbadge { display: inline-flex; align-items: center; gap: 5px; color: var(--gold); font-size: 0.8rem; }
.vbadge::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 6px color-mix(in srgb, var(--gold) 60%, transparent); }

/* ---------- film page ---------- */
.player { border-radius: var(--rad); overflow: hidden; background: black; aspect-ratio: 16/9; margin: 18px 0; }
.player iframe { width: 100%; height: 100%; border: 0; display: block; }
.film-head { display: flex; flex-wrap: wrap; gap: 12px 18px; align-items: baseline; }
.film-meta { display: flex; flex-wrap: wrap; gap: 8px 18px; margin: 6px 0 4px; align-items: center; }
.film-cols { display: grid; grid-template-columns: 1fr 340px; gap: 34px; margin-top: 8px; }
@media (max-width: 900px) { .film-cols { grid-template-columns: 1fr; } }
.provenance { border: 1px solid var(--line); border-radius: var(--rad); padding: 16px 18px; background: var(--surface); }
.provenance dt { font-family: var(--utility); font-size: 0.72rem; text-transform: uppercase; letter-spacing: .06em; color: var(--faint); margin-top: 12px; }
.provenance dt:first-child { margin-top: 0; }
.provenance dd { margin: 2px 0 0; font-size: 0.92rem; }
.chip { display: inline-block; background: var(--raised); border: 1px solid var(--line); color: var(--screen-dim); border-radius: 999px; padding: 3px 11px; font-size: 0.8rem; margin: 2px 3px 2px 0; }
a.chip:hover { color: var(--screen); border-color: var(--amber); }

/* ---------- the verdict box + half-star control: signature (§5, §12) ---------- */
.verdict-box { border: 1px solid var(--line); border-radius: var(--rad); background: var(--surface); padding: 18px 20px; }
.verdict-agg { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.verdict-agg .nums { font-family: var(--utility); font-size: 0.85rem; color: var(--screen-dim); }

.stars { display: inline-flex; gap: 2px; }
.stars button {
  background: none; border: 0; padding: 0; cursor: pointer;
  width: 34px; height: 34px; position: relative;
  transition: transform .1s ease;
}
.stars button svg { width: 100%; height: 100%; }
.stars button .fill { fill: var(--raised); stroke: var(--line); stroke-width: 1; transition: fill .12s; }
.stars button.half .l { fill: var(--gold); stroke: none; }
.stars button.full .fill { fill: var(--gold); stroke: none; }
.stars button:hover { transform: scale(1.12); }
.stars[data-locked] button { cursor: default; }
.stars[data-locked] button:hover { transform: none; }
.stars-val { font-family: var(--utility); font-size: 0.9rem; color: var(--gold); min-width: 2.4em; display: inline-block; }

.slopnot { display: flex; gap: 10px; margin-top: 14px; }
.slopnot .btn { flex: 1; justify-content: center; font-family: var(--display); font-weight: 600; }
.slopnot .btn.picked-fresh { background: linear-gradient(160deg, var(--gold), var(--amber)); border-color: var(--gold); color: #241d06; }
.slopnot .btn.picked-slop { background: var(--slop); border-color: var(--slop); color: #14150a; }

/* the one orchestrated moment: Q&A reveal after rating submit */
.qa-reveal { animation: qa-in .45s cubic-bezier(.2,.7,.3,1) both; }
@keyframes qa-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  .qa-reveal { animation: none; }
  .card .thumbwrap img, .stars button { transition: none; }
}

.qa .chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 6px 0 2px; }
.qa .chips label { margin: 0; }
.qa .chips input { position: absolute; opacity: 0; pointer-events: none; }
.qa .chips span { display: inline-block; border: 1px solid var(--line); background: var(--raised); color: var(--screen-dim); border-radius: 999px; padding: 5px 13px; font-size: 0.84rem; cursor: pointer; }
.qa .chips input:checked + span { border-color: var(--gold); color: var(--gold); }
.qa .chips input:focus-visible + span { outline: 2px solid var(--amber); outline-offset: 2px; }

/* ---------- notes ---------- */
.note { border-top: 1px solid var(--line); padding: 14px 0; }
.note .who { display: flex; align-items: center; gap: 9px; margin-bottom: 6px; }
.note .who img { width: 24px; height: 24px; border-radius: 50%; }
.note .who .name { font-weight: 500; font-size: 0.9rem; }
.note .body { font-size: 0.95rem; }
.note .chips { margin-top: 6px; }

/* ---------- shelves (home) ---------- */
.shelf { margin: 34px 0; }
.shelf-head { display: flex; align-items: baseline; gap: 14px; margin-bottom: 4px; }
.shelf-head .more { font-size: 0.86rem; color: var(--faint); }
.shelf-head .more:hover { color: var(--amber); }

.hero {
  display: grid; grid-template-columns: 1.15fr 1fr; gap: 36px; align-items: center;
  padding: 44px 0 20px;
}
@media (max-width: 800px) { .hero { grid-template-columns: 1fr; padding-top: 24px; } }
.hero h1 { font-size: clamp(2rem, 5.2vw, 3.3rem); }
.hero .stance { color: var(--screen-dim); font-size: 1.05rem; max-width: 34em; }
.hero img { border-radius: var(--rad); box-shadow: 0 30px 80px -20px rgba(0,0,0,.8); }
.hero .cta { display: flex; gap: 12px; margin-top: 20px; flex-wrap: wrap; }

/* ---------- festival ---------- */
.fest-head { border: 1px solid var(--line); border-left: 3px solid var(--gold); border-radius: var(--rad); background: var(--surface); padding: 22px 26px; margin: 22px 0; }
.fest-head .hashtag { font-family: var(--utility); color: var(--amber); }
.fest-card { border: 1px solid var(--line); border-radius: var(--rad); background: var(--surface); padding: 18px 20px; display: block; color: var(--screen); }
.fest-card:hover { border-color: var(--amber); color: var(--screen); }
.fest-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; margin: 20px 0; }

/* ---------- awards ---------- */
.award-hero { text-align: center; padding: 30px 0 10px; }
.award-hero img { width: min(300px, 60vw); margin: 0 auto; filter: drop-shadow(0 18px 50px rgba(212,175,55,.25)); }
.award-centre {
  border: 1px solid color-mix(in srgb, var(--gold) 45%, var(--line));
  background: radial-gradient(ellipse at top, color-mix(in srgb, var(--gold) 9%, var(--surface)), var(--surface) 65%);
  border-radius: var(--rad); padding: 26px 28px; margin: 22px auto; max-width: 760px; text-align: center;
}
.award-centre h2 { font-size: 1.8rem; font-weight: 800; color: var(--gold); }
.award-ring { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; }
.award-cat { border: 1px solid var(--line); border-radius: var(--rad); background: var(--surface); padding: 18px 20px; }
.award-cat h3 { color: var(--amber); }
.nominee { display: flex; align-items: center; gap: 10px; padding: 7px 0; border-top: 1px solid var(--line); }
.nominee:first-of-type { border-top: 0; }
.nominee .win { color: var(--gold); font-family: var(--display); font-weight: 800; font-size: 0.8rem; }
.nominee img { width: 72px; border-radius: 4px; }

/* ---------- tables (admin) ---------- */
table { border-collapse: collapse; width: 100%; font-size: 0.9rem; }
th { text-align: left; font-family: var(--utility); font-size: 0.72rem; text-transform: uppercase; letter-spacing: .06em; color: var(--faint); padding: 8px 10px; border-bottom: 1px solid var(--line); }
td { padding: 9px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
.admin-section { margin: 30px 0; }
.statrow { display: flex; gap: 26px; flex-wrap: wrap; margin: 16px 0; }
.stat { font-family: var(--utility); }
.stat b { font-size: 1.5rem; color: var(--gold); display: block; font-weight: 500; }

/* ---------- Super Score breakdown ---------- */
.rv { margin-top: 30px; }
.rv-super { font-family: var(--utility); font-size: 0.9rem; color: var(--screen-dim); }
.rv-super b { color: var(--gold); font-size: 1.15rem; font-weight: 500; margin-left: 4px; }
.rv-main { border: 1px solid var(--line); border-radius: var(--rad-sm); background: var(--surface); margin: 8px 0; }
.rv-main summary {
  display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap;
  padding: 10px 14px; cursor: pointer; list-style: none;
}
.rv-main summary::-webkit-details-marker { display: none; }
.rv-main summary::before { content: '▸'; color: var(--faint); font-size: 0.8rem; }
.rv-main[open] summary::before { content: '▾'; }
.rv-main-label { font-family: var(--display); font-weight: 600; }
.rv-right { margin-left: auto; display: flex; gap: 12px; align-items: baseline; }
.rv-mine-avg { color: var(--gold); }
.rv-row {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  padding: 8px 14px; border-top: 1px solid var(--line);
}
.rv-sub { flex: 1; min-width: 220px; }
.rv-sub-label { font-weight: 500; font-size: 0.92rem; margin-right: 8px; }
.rv-def { display: block; font-size: 0.76rem; }
.rv-ctl { display: flex; align-items: center; gap: 6px; }
.stars-sm button { width: 24px; height: 24px; }
.rv-wipe {
  background: none; border: 1px solid transparent; border-radius: var(--rad-sm);
  cursor: pointer; font-size: 0.85rem; padding: 3px 6px; opacity: .45;
}
.rv-wipe:hover { opacity: 1; border-color: var(--line); }
.rv-foot { display: flex; align-items: center; gap: 18px; margin: 14px 0 4px; flex-wrap: wrap; }
.rv-agg { font-size: 0.72rem; }

/* ---------- film page: YouTube-ordered (player → title 75% / actions 25% → sub) ---------- */
.film-title-row { display: flex; gap: 18px; align-items: flex-start; margin: 16px 0 4px; }
.film-title-row h1 { flex: 0 1 75%; font-size: clamp(1.15rem, 2.4vw, 1.55rem); margin: 0; }
.film-title-row .quick-row { flex: 0 0 25%; justify-content: flex-end; }
@media (max-width: 700px) {
  .film-title-row { flex-wrap: wrap; }
  .film-title-row h1, .film-title-row .quick-row { flex: 1 1 100%; }
  .film-title-row .quick-row { justify-content: flex-start; }
}
.film-sub { display: flex; flex-wrap: wrap; gap: 6px 16px; align-items: center; font-size: 0.86rem; color: var(--screen-dim); margin-bottom: 18px; }
.film-sub a { font-size: inherit; }

/* ---------- quick action row (Hot / Slop / ★) ---------- */
.quick-row { display: flex; gap: 8px; align-items: center; margin-left: auto; }
.qbtn {
  display: inline-flex; align-items: center; justify-content: center; gap: 5px;
  width: 46px; height: 42px; background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--rad-sm);
  cursor: pointer; transition: border-color .12s, transform .08s, background .12s;
  font-size: 1.15rem; color: var(--screen-dim);
}
.qbtn img { width: 26px; height: 26px; object-fit: contain; filter: grayscale(.55) opacity(.75); transition: filter .12s; }
.qbtn:hover { border-color: var(--amber); transform: translateY(-1px); }
.qbtn:hover img { filter: none; }
.qbtn:active { transform: translateY(1px); }
.qbtn.on-hot { border-color: var(--gold); background: color-mix(in srgb, var(--gold) 14%, var(--surface)); }
.qbtn.on-hot img { filter: none; }
.qbtn.on-slop { border-color: var(--slop); background: color-mix(in srgb, var(--slop) 14%, var(--surface)); }
.qbtn.on-slop img { filter: none; }
.qbtn-star { width: auto; padding: 0 12px; }
.qbtn.on-star { color: var(--gold); border-color: var(--gold); }

/* ---------- brand lockup / trailer chip / tool picker ---------- */
.brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.brand-text small { font: 500 0.6rem var(--utility); color: var(--faint); letter-spacing: .05em; text-transform: uppercase; }
.reel-chip { top: 32px !important; color: var(--gold) !important; }
.chip-on { border-color: var(--gold) !important; color: var(--gold) !important; }
.trailer-chip { position: absolute; left: 8px; top: 8px; background: rgba(10,9,12,.82); color: var(--amber); font-family: var(--utility); font-size: 0.66rem; letter-spacing: .08em; padding: 2px 7px; border-radius: 4px; }
.toolpicker { position: relative; }
.tp-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; }
.tp-tags:empty { margin-bottom: 0; }
.tp-tag { display: inline-flex; align-items: center; gap: 6px; background: var(--raised); border: 1px solid color-mix(in srgb, var(--gold) 40%, var(--line)); border-radius: 999px; padding: 4px 6px 4px 12px; font-size: 0.85rem; }
.tp-tag small { color: var(--faint); font-family: var(--utility); font-size: 0.68rem; }
.tp-tag button { background: none; border: 0; color: var(--screen-dim); cursor: pointer; font-size: 1rem; padding: 0 5px; border-radius: 50%; }
.tp-tag button:hover { color: var(--box-red); }
.tp-drop { position: absolute; z-index: 30; left: 0; right: 0; background: var(--raised); border: 1px solid var(--line); border-radius: var(--rad-sm); margin-top: 4px; overflow: hidden; display: none; box-shadow: 0 14px 40px rgba(0,0,0,.5); }
.tp-opt { display: block; width: 100%; text-align: left; background: none; border: 0; color: var(--screen); padding: 9px 13px; cursor: pointer; font-size: 0.92rem; }
.tp-opt:hover { background: var(--surface); color: var(--gold); }
.tp-opt small { color: var(--faint); font-family: var(--utility); }

/* ---------- profile histogram (single-series, magnitude) ---------- */
.histo-fig { margin: 6px 0 22px; max-width: 420px; }
.histo-fig figcaption { margin-bottom: 8px; }
.histo { display: flex; align-items: flex-end; gap: 2px; height: 64px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--rad-sm); padding: 8px 8px 0; }
.histo-col { flex: 1; height: 100%; display: flex; align-items: flex-end; cursor: default; }
.histo-col:hover .histo-bar { background: var(--amber); }
.histo-bar { width: 100%; background: var(--gold); border-radius: 3px 3px 0 0; min-height: 0; transition: background .12s; }
.histo-axis { display: flex; justify-content: space-between; font-family: var(--utility); font-size: 0.72rem; color: var(--faint); padding: 4px 8px 0; }

/* ---------- festival wreaths & laurels ---------- */
.wreath-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 10px; margin: 24px 0; }
.wreath-card {
  position: relative; display: flex; align-items: center; justify-content: center;
  aspect-ratio: 1.84; color: var(--screen); border-radius: var(--rad);
  transition: background .15s;
}
.wreath-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; opacity: .85; transition: opacity .15s; }
.wreath-card:hover { background: var(--surface); color: var(--screen); }
.wreath-card:hover img { opacity: 1; }
.wreath-text { position: relative; text-align: center; max-width: 58%; }
.wreath-name { font-family: var(--display); font-weight: 800; font-size: 1.02rem; line-height: 1.15; text-transform: uppercase; letter-spacing: .02em; }
.wreath-sub { color: var(--screen-dim); font-size: 0.72rem; margin-top: 5px; }
.wreath-meta { margin-top: 6px; }

.laurels { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; }
.laurel {
  position: relative; display: flex; align-items: center; justify-content: center;
  width: 168px; aspect-ratio: 1.84; color: var(--screen); border-radius: var(--rad-sm);
}
.laurel img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; opacity: .8; }
.laurel span {
  position: relative; text-align: center; max-width: 56%;
  font-family: var(--display); font-weight: 600; font-size: 0.6rem;
  line-height: 1.2; text-transform: uppercase; letter-spacing: .04em;
}
.laurel:hover { background: var(--raised); color: var(--gold); }

.admin-strip { display: flex; align-items: center; gap: 8px; margin-top: 14px; border-top: 1px dashed var(--line); padding-top: 12px; }
.admin-strip .btn { font-size: 1.05rem; padding: 6px 10px; }

/* ---------- tools app-grid ---------- */
.tool-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 18px 14px; margin: 14px 0 8px; }
.tool-tile { display: flex; flex-direction: column; align-items: center; text-align: center; color: var(--screen); padding: 10px 6px; border-radius: var(--rad); }
.tool-tile:hover { background: var(--surface); color: var(--screen); }
.tool-ico {
  position: relative; width: 64px; height: 64px; border-radius: 16px;
  background: var(--raised); border: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center; overflow: visible;
}
.tool-ico img { width: 40px; height: 40px; object-fit: contain; border-radius: 8px; }
.tool-emoji { font-size: 1.7rem; }
.tool-letter { font-family: var(--display); font-weight: 800; font-size: 1.5rem; color: var(--amber); }
.tool-count {
  position: absolute; right: -7px; bottom: -7px;
  background: var(--gold); color: #241d06; font-family: var(--utility);
  font-size: 0.68rem; font-weight: 500; min-width: 20px; height: 20px;
  border-radius: 10px; display: flex; align-items: center; justify-content: center;
  padding: 0 5px; border: 2px solid var(--auditorium);
}
.tool-name { font-weight: 600; font-size: 0.88rem; margin-top: 9px; line-height: 1.2; }
.tool-blurb { font-size: 0.68rem; margin-top: 3px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* ---------- cookie note (informational; dismissal via localStorage) ---------- */
#cookie-note {
  position: fixed; bottom: 14px; left: 14px; right: 14px; z-index: 90;
  max-width: 560px; margin: 0 auto;
  background: var(--raised); border: 1px solid var(--line); border-radius: var(--rad);
  padding: 12px 16px; display: flex; gap: 14px; align-items: center;
  font-size: 0.85rem; color: var(--screen-dim);
  box-shadow: 0 14px 40px rgba(0,0,0,.5);
}
#cookie-note[hidden] { display: none; }
#cookie-note a { color: var(--amber); }

/* ---------- tool page: tutorials + news ---------- */
.tut-row { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; margin: 12px 0; }
.tut-card { display: block; color: var(--screen); }
.tut-card img { width: 100%; aspect-ratio: 16/9; object-fit: cover; border-radius: var(--rad-sm); background: var(--surface); }
.tut-card:hover img { outline: 1px solid var(--amber); }
.tut-title { display: block; font-weight: 600; font-size: 0.88rem; margin-top: 7px; line-height: 1.25; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.news-list { list-style: none; margin: 10px 0; padding: 0; max-width: 56em; }
.news-list li { padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 0.95rem; }
.news-list li:last-child { border-bottom: 0; }

/* ---------- misc ---------- */
.empty { border: 1px dashed var(--line); border-radius: var(--rad); color: var(--screen-dim); padding: 30px; text-align: center; margin: 20px 0; }
.pagehead { padding: 28px 0 6px; }
.pagehead .sub { color: var(--screen-dim); max-width: 46em; }
.site-foot { border-top: 1px solid var(--line); margin-top: 60px; padding: 26px 0 40px; color: var(--faint); font-size: 0.85rem; }
.site-foot .wrap { display: flex; flex-wrap: wrap; gap: 10px 22px; align-items: center; }
.site-foot a { color: var(--screen-dim); }
.site-foot a:hover { color: var(--amber); }
.prose { max-width: 46em; }
.prose p { margin: 0 0 1em; }
.prose h2 { margin-top: 1.6em; }
.prose li { margin-bottom: .4em; }
.thumb-check { position: relative; display: block; cursor: pointer; }
.thumb-check input { position: absolute; top: 8px; left: 8px; width: 20px; height: 20px; accent-color: var(--gold); }
.thumb-check .already { position: absolute; inset: 0; background: rgba(10,9,12,.72); color: var(--gold); display: flex; align-items: center; justify-content: center; font-family: var(--utility); font-size: 0.8rem; border-radius: var(--rad); }
.onboard-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 14px; margin: 18px 0; }
.inline-form { display: flex; gap: 8px; align-items: center; }
.inline-form input { flex: 1; }
.popup-note { font-family: var(--utility); font-size: 0.75rem; color: var(--faint); }

/* ---------- blog ---------- */
.blog-item { max-width: 46em; margin-bottom: 28px; }
.blog-item h2 { margin: 0 0 4px; }
.blog-item h2 a { color: var(--ink); text-decoration: none; }
.blog-item h2 a:hover { color: var(--gold); }
.blog-item .meta { margin: 0 0 6px; }
.blog-post .pagehead { margin-bottom: 18px; }
.blog-films-h { margin: 28px 0 12px; }
.by .ytv { color: var(--faint); font-size: 0.85em; }
.yt-comments { margin-top: 26px; }
.yt-comment { margin: 12px 0; padding: 10px 14px; background: var(--surface); border-left: 3px solid var(--line); border-radius: var(--rad); }
.yt-comment p { margin: 0 0 6px; white-space: pre-line; }
.yt-comment footer { font-family: var(--utility); font-size: 0.78rem; color: var(--faint); }
.vert-chip { left: auto !important; right: 8px; top: 8px; color: var(--screen) !important; font-size: 0.78rem; padding: 1px 6px; }
.chip-gap { display: inline-block; width: 14px; }
.shape { color: var(--faint); text-decoration: none; }
.shape:hover { color: var(--screen); }
.shape-on { color: var(--gold); font-weight: 600; }
.shape-row { margin: -6px 0 14px; }
.note-mine { border-left: 3px solid var(--gold); }
.mine-chip { color: var(--gold); font-family: var(--utility); font-size: 0.78rem; letter-spacing: .04em; }
.mine-edit { margin-left: auto; font-size: 0.78rem; padding: 2px 10px; }
.note-flash { animation: notefade 1.8s ease-out; }
@keyframes notefade { from { background: rgba(212,175,55,.28); } to { background: transparent; } }

/* Festivals index: looser, staggered diamond layout. ~1cm gaps; the left
   and right columns sit ~2cm lower than the middle so the grid reads
   organic instead of rigid. */
.wreath-diamond { grid-template-columns: repeat(3, 1fr); column-gap: 38px; row-gap: 34px; padding-bottom: 100px; }
.wreath-diamond .wreath-card:nth-child(3n+1),
.wreath-diamond .wreath-card:nth-child(3n) { transform: translateY(76px); }
.wreath-diamond .wreath-card:hover { transform: translateY(76px) scale(1.02); }
.wreath-diamond .wreath-card:nth-child(3n+2):hover { transform: scale(1.02); }
@media (max-width: 1100px) {
  .wreath-diamond { grid-template-columns: repeat(2, 1fr); }
  .wreath-diamond .wreath-card, .wreath-diamond .wreath-card:hover { transform: none; }
  .wreath-diamond .wreath-card:nth-child(2n),
  .wreath-diamond .wreath-card:nth-child(2n):hover { transform: translateY(50%); }
}
@media (max-width: 620px) {
  .wreath-diamond { grid-template-columns: 1fr; padding-bottom: 24px; }
  .wreath-diamond .wreath-card, .wreath-diamond .wreath-card:nth-child(2n),
  .wreath-diamond .wreath-card:hover { transform: none; }
}
.unrated { font-family: var(--utility); font-size: 0.72rem; color: var(--faint); }
.hero-tag { font-family: var(--display); font-weight: 800; color: var(--gold); font-size: 1.15rem; margin: -4px 0 10px; }

/* ---------- blog feature media, mobile-first ---------- */
/* Phone: the player is a normal full-width block. Wide screens: it grows to
   140% and centers, so half sits inside the prose column and half leaks
   into the margins on both sides. */
.blog-embed { position: relative; aspect-ratio: 16/9; margin: 26px 0; border-radius: var(--rad); overflow: hidden; background: var(--surface); box-shadow: 0 18px 50px rgba(0,0,0,.45); }
.blog-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.blog-frames { display: grid; grid-template-columns: 1fr; gap: 10px; margin: 18px 0; }
.blog-frames img { width: 100%; aspect-ratio: 16/9; object-fit: cover; border-radius: var(--rad-sm); }
@media (min-width: 560px) {
  .blog-frames { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 1040px) {
  .prose .blog-embed { width: 140%; margin-left: -20%; max-width: calc(100vw - 48px); }
}
.blog-item-hero { display: flex; gap: 16px; align-items: flex-start; }
.blog-item-thumb { flex: 0 0 190px; }
.blog-item-thumb img { width: 190px; aspect-ratio: 16/9; object-fit: cover; border-radius: var(--rad-sm); }
@media (max-width: 560px) {
  .blog-item-hero { flex-direction: column; }
  .blog-item-thumb, .blog-item-thumb img { width: 100%; flex-basis: auto; }
}
.announce { display: block; margin: 18px 0 4px; padding: 12px 18px; border: 1px solid color-mix(in srgb, var(--gold) 55%, var(--line)); border-radius: var(--rad); background: color-mix(in srgb, var(--gold) 9%, var(--surface)); color: var(--screen); font-size: 0.95rem; }
.announce b { color: var(--gold); white-space: nowrap; }
.announce:hover { border-color: var(--gold); color: var(--screen); }
.share-row { margin: 6px 0 0; }
.share-x { font-size: 0.82rem; gap: 6px; padding: 4px 10px; }
.share-x:hover { color: var(--screen); }

/* ---------- PMAIFF ---------- */
.pmaiff-hero { text-align: center; padding: 0; margin: 0; }
.pm-emblem { display: block; margin: 0 auto 16px; width: 100%; max-width: 100%; border-radius: 0 0 var(--rad) var(--rad); }
.pm-count-box {
  display: inline-block; margin: 20px auto 0; padding: 22px 38px 18px;
  border-radius: var(--rad);
  background:
    radial-gradient(ellipse 80% 90% at 50% 40%, rgba(212,175,55,.10), transparent 75%),
    radial-gradient(ellipse 130% 130% at 50% 50%, transparent 55%, rgba(0,0,0,.45) 100%),
    var(--surface);
}
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.pm-tag { font-family: var(--utility); color: var(--gold); letter-spacing: .18em; margin: 0 0 6px; }
.pm-sub { font-family: var(--display); font-weight: 800; font-size: 1.25rem; margin: 4px 0 0; }
.pm-season { color: var(--screen-dim); max-width: none; margin: 10px auto 0; white-space: nowrap; font-size: clamp(.72rem, 2.5vw, 1.05rem); }
.pm-count { display: flex; justify-content: center; gap: 22px; margin: 0 0 8px; }
.pm-count div { display: flex; flex-direction: column; min-width: 64px; }
.pm-count b { font-family: var(--display); font-size: clamp(1.7rem, 5vw, 2.6rem); color: var(--screen); }
.pm-count span { font-family: var(--utility); font-size: .72rem; color: var(--faint); letter-spacing: .12em; text-transform: uppercase; }
.pm-tools { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 12px; }
.pm-tool { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--rad); color: var(--screen); background: var(--surface); transition: border-color .15s, transform .12s; }
.pm-tool:hover { border-color: var(--gold); color: var(--screen); transform: translateY(-2px); }
.pm-tool-ico { flex: 0 0 46px; width: 46px; height: 46px; }
.pm-tool-ico img { width: 34px; height: 34px; }
.pm-tool-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.pm-tool-text b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.live-eyebrow { font-family: var(--utility); font-size: .72rem; letter-spacing: .16em; color: var(--gold); margin: 0 0 6px; display: flex; align-items: center; gap: 8px; }
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--gold); animation: livepulse 2s ease-in-out infinite; }
@keyframes livepulse { 0%,100% { opacity: 1; } 50% { opacity: .25; } }
