/* =====================================================================
   RIPENED — design system
   Brand idea: ripeness spectrum (unripe green → ripe gold → hot red),
   warm cinematic dark. The deliberate inverse of "Rotten" Tomatoes.
   Display: Newsreader (warm editorial serif — critic/film-program authority).
   Text/numerals: Hanken Grotesk w/ tabular figures (legible dense data).
   ===================================================================== */

:root {
  /* warm near-blacks */
  --bg:        #0b0a08;
  --bg-2:      #100d0a;
  --surface:   #16110d;
  --surface-2: #1e1812;
  --surface-3: #271f17;
  --line:      rgba(255, 235, 205, 0.085);
  --line-2:    rgba(255, 235, 205, 0.14);

  /* warm ink */
  --text:      #f5ede1;
  --text-dim:  #c0b2a0;
  --text-mute: #8d8071;
  --text-faint:#5f564b;

  /* the ripeness spectrum */
  --sprout:    #9bd64b;   /* fresh / rising / new */
  --gold:      #f6b53c;   /* QUALITY — perfectly ripe, the good stuff */
  --gold-soft: #ffd585;
  --heat:      #ff5e3a;   /* HYPE — hot right now */
  --heat-soft: #ff916b;
  --ripe-grad: linear-gradient(100deg, #9bd64b 0%, #f6b53c 46%, #ff5e3a 100%);
  --gold-grad: linear-gradient(135deg, #ffd585 0%, #f6b53c 55%, #e0931f 100%);
  --heat-grad: linear-gradient(135deg, #ff916b 0%, #ff5e3a 60%, #e83c1a 100%);

  --good: #8fd14f;
  --warn: #ffb13c;
  --bad:  #ff6f54;

  /* type — editorial serif headlines + neutral humanist sans for dense data */
  --font-display: "Newsreader", Georgia, "Times New Roman", serif;
  --font-text: "Hanken Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-num: "Hanken Grotesk", system-ui, sans-serif; /* tabular numerals for scores */

  /* shape */
  --r-sm: 10px;
  --r:    16px;
  --r-lg: 22px;
  --r-xl: 28px;

  /* warm-tinted shadows */
  --sh-1: 0 1px 2px rgba(0,0,0,.4);
  --sh-2: 0 10px 30px -12px rgba(0,0,0,.7);
  --sh-3: 0 24px 60px -20px rgba(0,0,0,.78);
  --glow-gold: 0 6px 30px -8px rgba(246,181,60,.45);
  --glow-heat: 0 6px 30px -8px rgba(255,94,58,.45);

  --maxw: 1240px;
  --nav-h: 66px;
}

/* ===== named themes — all keep the green/gold/red ripeness score accents; only the "chrome" (bg/surface/text tint) changes ===== */
/* Warm Paper (light) — warm parchment instead of stark white */
[data-theme="paper"] {
  --bg:        #faf6ee;
  --bg-2:      #f3ecdd;
  --surface:   #ffffff;
  --surface-2: #f6f0e2;
  --surface-3: #ece2cc;
  --line:      rgba(40, 30, 12, 0.10);
  --line-2:    rgba(40, 30, 12, 0.17);
  --text:      #221c12;
  --text-dim:  #4d4332;
  --text-mute: #7a6e58;
  --text-faint:#a89c84;
  --sh-1: 0 1px 2px rgba(40,28,10,.10);
  --sh-2: 0 10px 26px -14px rgba(40,28,10,.28);
  --sh-3: 0 22px 50px -20px rgba(40,28,10,.32);
}
/* Forest — deep green-tinted dark */
[data-theme="forest"] {
  --bg:        #090d0a;
  --bg-2:      #0d120e;
  --surface:   #111812;
  --surface-2: #172016;
  --surface-3: #1f2a1d;
  --line:      rgba(180, 235, 190, 0.09);
  --line-2:    rgba(180, 235, 190, 0.15);
  --text:      #edf3ea;
  --text-dim:  #b2c4ac;
  --text-mute: #7d8f78;
  --text-faint:#556052;
}
/* Midnight — cool blue-black */
[data-theme="midnight"] {
  --bg:        #070a12;
  --bg-2:      #0a0e18;
  --surface:   #0f1420;
  --surface-2: #151b2a;
  --surface-3: #1d2436;
  --line:      rgba(190, 210, 255, 0.09);
  --line-2:    rgba(190, 210, 255, 0.15);
  --text:      #eaf0fb;
  --text-dim:  #aab6cf;
  --text-mute: #77839c;
  --text-faint:#515c74;
}
/* Dusk — dark plum / mauve */
[data-theme="dusk"] {
  --bg:        #0e0a12;
  --bg-2:      #130e18;
  --surface:   #191220;
  --surface-2: #211829;
  --surface-3: #2b2036;
  --line:      rgba(230, 205, 255, 0.09);
  --line-2:    rgba(230, 205, 255, 0.16);
  --text:      #f2ecf5;
  --text-dim:  #c3b2cd;
  --text-mute: #8d7f98;
  --text-faint:#5f566b;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-text);
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
  font-size: 15.5px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  transition: background-color .25s ease, color .25s ease;
}

/* ambient warmth: faint top glow + grain */
body::before {
  content: ""; position: fixed; inset: 0; z-index: -2; pointer-events: none;
  background:
    radial-gradient(1100px 600px at 78% -8%, rgba(255,120,60,.10), transparent 60%),
    radial-gradient(900px 520px at 10% 0%, rgba(246,181,60,.08), transparent 58%),
    var(--bg);
}
body::after {
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none; opacity: .035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

h1,h2,h3,h4 { font-family: var(--font-display); font-weight: 600; letter-spacing: 0; margin: 0; line-height: 1.06; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { font-family: inherit; cursor: pointer; }
::selection { background: rgba(246,181,60,.3); color: #fff; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.muted { color: var(--text-mute); }
.dim { color: var(--text-dim); }
.kicker { font-size: 11px; letter-spacing: .22em; text-transform: uppercase; color: var(--text-mute); font-weight: 600; }

/* ---------------------------------------------------------------- nav */
.nav {
  position: sticky; top: 0; z-index: 60; height: var(--nav-h);
  display: flex; align-items: center;
  /* near-solid instead of frosted glass: a sticky backdrop-filter re-blurs every scroll/repaint
     frame (jank). 97% opacity reads the same on a dark UI and composites for free. */
  background: color-mix(in srgb, var(--bg) 97%, transparent);
  border-bottom: 1px solid var(--line);
}
.nav .wrap { display: flex; align-items: center; gap: 13px; width: 100%; }
#surprise span { display: none; } /* icon-only to keep the nav tidy */
#surprise { padding: 9px 11px; }
.nav .btn { white-space: nowrap; }
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--font-display);
  font-weight: 600; font-size: 21px; letter-spacing: -.02em; }
.brand .mark { width: 26px; height: 26px; flex: 0 0 auto; transition: transform .15s; }
.brand:hover .mark { transform: rotate(-8deg); }
.brand .mark.spin { animation: logospin .52s cubic-bezier(.45,.05,.2,1); }
@keyframes logospin { from { transform: rotate(0); } to { transform: rotate(360deg); } }
.brand b { color: var(--text); }
.brand .dot { color: var(--heat); }

.tabs { display: flex; gap: 4px; margin-left: 6px; }
.tab {
  border: 0; background: transparent; color: var(--text-mute);
  padding: 8px 14px; border-radius: 999px; font-size: 14px; font-weight: 600;
  display: inline-flex; align-items: center; gap: 7px; transition: .18s;
}
.tab:hover { color: var(--text); background: var(--surface); }
.tab.active { color: #1a1206; background: var(--gold); box-shadow: var(--glow-gold); }
.tab .ic { width: 16px; height: 16px; }

.nav-spacer { flex: 1; }
.search {
  display: flex; align-items: center; gap: 8px; background: var(--surface);
  border: 1px solid var(--line); border-radius: 999px; padding: 8px 14px;
  color: var(--text-mute); min-width: 150px; transition: .18s;
}
.search:focus-within { border-color: var(--line-2); background: var(--surface-2); }
.search input { border: 0; background: transparent; color: var(--text); outline: 0; width: 100%; font-size: 14px; }
.search svg { width: 16px; height: 16px; flex: 0 0 auto; }

.btn {
  border: 1px solid var(--line-2); background: var(--surface);
  color: var(--text); padding: 9px 16px; border-radius: 999px; font-weight: 600;
  font-size: 14px; display: inline-flex; align-items: center; gap: 8px; transition: .18s;
}
.btn:hover { background: var(--surface-2); border-color: var(--text-faint); }
.btn-primary { background: var(--gold); color: #1a1206; border-color: transparent; }
.btn-primary:hover { background: var(--gold-soft); }
.btn svg { width: 16px; height: 16px; }

/* ---------------------------------------------------------------- hero */
.hero { padding: 60px 0 26px; position: relative; }
.hero h1 { font-size: clamp(38px, 6vw, 68px); font-weight: 600; max-width: 16ch; letter-spacing: -.025em; }
.hero h1 .grad { background: var(--ripe-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p { font-size: clamp(16px, 2vw, 19px); color: var(--text-dim); max-width: 54ch; margin: 18px 0 0; }
.hero .stats { display: flex; gap: 30px; margin-top: 26px; flex-wrap: wrap; }
.hero .stat b { font-family: var(--font-num); font-variant-numeric: tabular-nums; font-weight: 800; font-size: 26px; display: block; }
.hero .stat span { font-size: 12.5px; color: var(--text-mute); }

/* ---------------------------------------------------------- lens bar */
.lensbar {
  position: sticky; top: var(--nav-h); z-index: 50; margin: 18px 0 26px;
  background: color-mix(in srgb, var(--bg-2) 97%, transparent);
  border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 16px 20px; display: flex; align-items: center; gap: 26px; flex-wrap: wrap;
  box-shadow: var(--sh-2);
}
.lens-slider { flex: 1 1 460px; min-width: 280px; }
.lens-slider .heads { display: flex; justify-content: space-between; align-items: center; margin-bottom: 9px; }
.lens-slider .heads .lab { display: inline-flex; align-items: center; gap: 7px; font-weight: 700; font-size: 13px; }
.lens-slider .heads .q { color: var(--gold); }
.lens-slider .heads .h { color: var(--heat); }
.lens-slider .heads .pos { font-size: 12px; color: var(--text-mute); font-weight: 600; }

.slider { position: relative; height: 26px; display: flex; align-items: center; }
.slider .track { position: absolute; inset: 50% 0 auto; height: 7px; transform: translateY(-50%);
  border-radius: 999px; background: linear-gradient(90deg, var(--gold), #c98a3a 38%, #b56a4a 60%, var(--heat)); opacity: .9; }
.slider input { -webkit-appearance: none; appearance: none; width: 100%; height: 26px; background: transparent; margin: 0; position: relative; z-index: 2; }
.slider input::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none; width: 24px; height: 24px; border-radius: 50%;
  background: #fff; border: 3px solid var(--bg); box-shadow: 0 2px 10px rgba(0,0,0,.6), 0 0 0 1px rgba(255,255,255,.2); cursor: grab;
}
.slider input::-moz-range-thumb { width: 22px; height: 22px; border-radius: 50%; background: #fff; border: 3px solid var(--bg); cursor: grab; }
.slider input:active::-webkit-slider-thumb { cursor: grabbing; }

.lens-right { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.seg { display: inline-flex; background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 3px; }
.seg button { border: 0; background: transparent; color: var(--text-mute); padding: 7px 14px; border-radius: 999px; font-weight: 600; font-size: 13px; transition: .16s; }
.seg button.active { background: var(--surface-3); color: var(--text); }
.seg button { cursor: pointer; }
.winbar { margin: 2px 0 22px; }
.winseg button { padding: 9px 18px; font-size: 14px; }
.winseg button i { font-style: normal; opacity: .5; font-weight: 700; margin-left: 4px; font-size: 12px; }
.winseg button.active i { opacity: .8; }
.toggle { display: inline-flex; align-items: center; gap: 9px; font-size: 13.5px; font-weight: 600; color: var(--text-dim); }
.switch { width: 42px; height: 24px; border-radius: 999px; background: var(--surface-3); border: 1px solid var(--line-2); position: relative; transition: .18s; flex: 0 0 auto; }
.switch::after { content: ""; position: absolute; top: 2px; left: 2px; width: 18px; height: 18px; border-radius: 50%; background: var(--text-mute); transition: .18s; }
.toggle.on .switch { background: var(--gold); border-color: transparent; }
.toggle.on .switch::after { left: 20px; background: #1a1206; }

/* labelled switch (design option D) */
.lsw { display: inline-flex; align-items: center; gap: 11px; padding: 7px 8px 7px 14px; border: 1px solid var(--line-2); border-radius: 999px; background: var(--surface-2); cursor: pointer; transition: border-color .14s; }
.lsw:hover { border-color: var(--text-faint); }
.lsw .t { display: flex; flex-direction: column; line-height: 1.12; text-align: left; }
.lsw .t b { font-size: 13px; font-weight: 700; color: var(--text); }
.lsw .t span { font-size: 11px; color: var(--text-mute); font-weight: 600; }
.lsw .sw { width: 44px; height: 26px; border-radius: 999px; background: var(--surface-3); border: 1px solid var(--line-2); position: relative; transition: .18s; flex: 0 0 auto; }
.lsw .sw::after { content: ""; position: absolute; top: 2px; left: 2px; width: 20px; height: 20px; border-radius: 50%; background: var(--text-mute); transition: .18s; }
.lsw.on .sw { background: var(--gold); border-color: transparent; }
.lsw.on .sw::after { left: 20px; background: #1a1206; }
.lsw.on .t span { color: var(--gold); }
.lsw.compact .t { justify-content: center; }
.lsw.compact .t b { font-size: 14px; }
.pforyou { margin-top: 14px; }

/* ---------------------------------------------------------- sections */
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 14px; margin: 8px 0 18px; }
.section-head h2 { font-size: 22px; }
.section-head .sub { font-size: 13.5px; color: var(--text-mute); }

/* ---------------------------------------------------------- card grid */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(186px, 1fr)); gap: 22px 20px; }

.card { position: relative; cursor: pointer; transition: transform .18s cubic-bezier(.2,.7,.3,1); }
.card:hover { transform: translateY(-5px); }
/* transition only border-color (cheap); box-shadow changes instantly to avoid per-frame repaint jank on hover */
.card .cover { border-radius: var(--r); overflow: hidden; border: 1px solid var(--line); box-shadow: var(--sh-2); transition: border-color .18s; }
.card:hover .cover { border-color: var(--line-2); }
/* deeper hover shadow via an opacity fade (painted once) — NOT a box-shadow swap, which repaints
   a large blur on every card you sweep over. */
.card::after { content: ""; position: absolute; inset: 0; border-radius: var(--r); box-shadow: var(--sh-3);
  opacity: 0; transition: opacity .18s; pointer-events: none; z-index: -1; }
.card:hover::after { opacity: 1; }
.card .poster { position: relative; aspect-ratio: 2/3; overflow: hidden; background: var(--surface-2); }
.card .poster .poster-svg, .card .poster img.real { width: 100%; height: 100%; object-fit: cover; display: block; }
/* below-cover score strip — off the art, always legible */
.card .scorestrip { display: flex; background: var(--surface-2); border-top: 1px solid var(--line); }
.card .scorestrip .c { flex: 1; padding: 7px 4px 8px; text-align: center; min-width: 0; }
.card .scorestrip .c + .c { border-left: 1px solid var(--line); }
.card .scorestrip .v { display: block; font-weight: 800; font-size: 17px; line-height: 1; }
.card .scorestrip .l { display: block; font-size: 8.5px; letter-spacing: .09em; text-transform: uppercase; color: var(--text-mute); font-weight: 700; margin-top: 3px; }
.card .scorestrip .q .v { color: var(--gold); }
.card .scorestrip .h .v { color: var(--heat); }

.rank-no { position: absolute; top: 9px; left: 9px; z-index: 3; font-family: var(--font-num); font-variant-numeric: tabular-nums;
  font-size: 14px; font-weight: 600; color: var(--text); background: rgba(10,8,6,.84);
  border: 1px solid var(--line-2); border-radius: 8px; min-width: 26px; height: 26px;
  display: inline-flex; align-items: center; justify-content: center; padding: 0 6px; }

.scorepair { position: absolute; top: 9px; right: 9px; z-index: 3; display: flex; flex-direction: column; gap: 6px; align-items: flex-end; }
.pill { display: inline-flex; align-items: center; gap: 5px; padding: 3px 8px 3px 4px; border-radius: 999px;
  font-family: var(--font-num); font-variant-numeric: tabular-nums; font-weight: 700; font-size: 13px; background: rgba(10,8,6,.86);
  border: 1px solid var(--line-2); }
.pill .num { line-height: 1; }
.pill .dotq, .pill .doth { width: 16px; height: 16px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-size: 9px; font-weight: 800; }
.pill .dotq { background: var(--gold-grad); color: #1a1206; }
.pill .doth { background: var(--heat-grad); color: #1a1206; }
.pill.q { color: var(--gold-soft); }
.pill.h { color: var(--heat-soft); }

.card .cardbtns { position: absolute; bottom: 9px; right: 9px; z-index: 3; display: flex; gap: 6px; }
/* On mouse devices the hover PREVIEW is the action surface, so the card's own buttons must never
   flash in during the pre-preview delay. Saved state still shows via the always-on corner badge.
   Touch devices (no preview) keep the on-card buttons. */
@media (hover: hover) { .card .cardbtns { display: none; } }
.card .cbtn {
  width: 32px; height: 32px; border-radius: 50%; background: rgba(10,8,6,.82);
  border: 1px solid var(--line-2); display: grid; place-items: center; color: var(--text);
  opacity: 0; transform: translateY(4px); transition: opacity .16s, transform .16s; cursor: pointer;
}
.card:hover .cbtn, .card .cbtn.on { opacity: 1; transform: none; }
.card .cbtn svg { width: 16px; height: 16px; }
.card .cbtn:hover { border-color: var(--text-faint); }
.card .cbtn.like.on { background: var(--heat); border-color: transparent; color: #1a1206; }
.card .cbtn.watch.on { background: var(--gold); border-color: transparent; color: #1a1206; }

/* always-visible favourite / watchlist corner marks */
.card .savemark { position: absolute; top: 9px; right: 9px; z-index: 4; display: flex; flex-direction: column; gap: 6px; }
.card .savedot { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; box-shadow: 0 3px 9px rgba(0,0,0,.42); }
.card .savedot svg { width: 15px; height: 15px; }
.card .savedot.fav { background: var(--heat); color: #1a0d08; }
.card .savedot.watch { background: var(--gold); color: #1a1206; }

/* watched state: dim + centre tick (no CSS filter, to keep the paint budget clean) */
.card .wtick { display: none; }
.card.watched .poster::after { content: ""; position: absolute; inset: 0; background: rgba(8,6,4,.62); z-index: 2; pointer-events: none; }
.card.watched .wtick { display: grid; position: absolute; inset: 0; place-items: center; z-index: 3; pointer-events: none; }
.card .wtick span { width: 48px; height: 48px; border-radius: 50%; background: rgba(155,214,75,.2); border: 2px solid var(--sprout); color: var(--sprout); display: grid; place-items: center; }
.card .wtick span svg { width: 26px; height: 26px; }

/* hover preview card */
.hovercard { position: fixed; z-index: 90; border-radius: 14px; overflow: hidden; background: var(--surface); border: 1px solid var(--line-2);
  box-shadow: 0 22px 48px -20px rgba(0,0,0,.82); opacity: 0; transform: scale(.92); transform-origin: center top; pointer-events: none;
  will-change: transform, opacity; contain: layout paint; transition: opacity .15s ease, transform .15s cubic-bezier(.2,.8,.3,1); }
.hovercard.show { opacity: 1; transform: scale(1); pointer-events: auto; }
.hovercard .hcposter { aspect-ratio: 2/3; overflow: hidden; cursor: pointer; background: var(--surface-2); }
.hovercard .hcposter img, .hovercard .hcposter svg { width: 100%; height: 100%; object-fit: cover; display: block; }
.hovercard .hcinfo { padding: 11px 13px 13px; }
.hovercard .hctitle { font-family: var(--font-display); font-weight: 600; font-size: 17px; line-height: 1.2; margin-bottom: 9px; cursor: pointer; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.hovercard .hctitle:hover { color: var(--gold); }
.hovercard .hcbtns { display: flex; gap: 8px; margin-bottom: 10px; }
.hovercard .hcb { width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line-2); background: var(--surface-2); color: var(--text); display: grid; place-items: center; cursor: pointer; transition: .15s; }
.hovercard .hcb svg { width: 16px; height: 16px; }
.hovercard .hcb:hover { border-color: var(--text); }
.hovercard .hcb.play { background: #fff; color: #1a1206; border-color: #fff; }
.hovercard .hcb.play:hover { background: var(--gold-soft); }
.hovercard .hcb.on { background: var(--gold); color: #1a1206; border-color: transparent; }
.hovercard .hcb.like.on { background: var(--heat); }
.hovercard .hcb.watched.on { background: var(--sprout); color: #10240a; }
.hovercard .hcb.hide { margin-left: auto; color: var(--text-dim); }
.hovercard .hcb.hide:hover { color: var(--heat); border-color: var(--heat); }
.hovercard .hcmeta { font-size: 12px; color: var(--text-dim); font-weight: 600; }
.hovercard .hcmeta .cert { border: 1px solid var(--line-2); border-radius: 4px; padding: 0 5px; font-size: 11px; color: var(--text-mute); margin-right: 2px; }
.hovercard .hctags { display: flex; flex-wrap: wrap; align-items: center; font-size: 12px; color: var(--text); margin-top: 7px; }
.hovercard .hctags span { font-weight: 600; } .hovercard .hctags i { color: var(--text-faint); font-style: normal; margin: 0 6px; }
@media (hover: none) { .hovercard { display: none !important; } }

.card .meta { padding: 11px 2px 0; }
.card .meta .t { font-weight: 700; font-size: 14.5px; line-height: 1.25; display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
.card .meta .sub { font-size: 12.5px; color: var(--text-mute); margin-top: 2px; display: flex; align-items: center; gap: 7px; flex-wrap: wrap; }
.card .meta .sub .where { color: var(--text-dim); }

/* type chip */
.tchip { font-size: 10.5px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; padding: 1px 7px; border-radius: 5px; }
.tchip.movie { color: #ffd585; background: rgba(246,181,60,.13); }
.tchip.tv    { color: #8fd1ff; background: rgba(90,170,255,.13); }
.tchip.anime { color: #ff9bd0; background: rgba(255,110,190,.13); }
.tchip.game  { color: #9bd64b; background: rgba(155,214,75,.14); }

/* ---------------------------------------------- featured #1 banner */
.featured { display: grid; grid-template-columns: 230px 1fr; gap: 28px; padding: 22px;
  background: linear-gradient(120deg, var(--surface) 0%, var(--bg-2) 100%);
  border: 1px solid var(--line); border-radius: var(--r-xl); margin-bottom: 30px; box-shadow: var(--sh-2); position: relative; overflow: hidden; }
.featured::before { content: ""; position: absolute; right: -10%; top: -40%; width: 60%; height: 180%;
  background: radial-gradient(closest-side, rgba(246,181,60,.10), transparent); pointer-events: none; }
.featured .poster { aspect-ratio: 2/3; border-radius: var(--r); overflow: hidden; box-shadow: var(--sh-3); border: 1px solid var(--line-2); cursor: pointer; }
.featured .fbody { display: flex; flex-direction: column; justify-content: center; min-width: 0; }
.featured .ftag { color: var(--gold); font-weight: 700; }
.featured h2 { font-size: clamp(26px, 3.4vw, 40px); margin: 8px 0 6px; cursor: pointer; }
.featured .fsyn { color: var(--text-dim); max-width: 60ch; font-size: 15.5px; }
.featured .fmeta { display: flex; gap: 10px; flex-wrap: wrap; margin: 16px 0; align-items: center; }
.featured .fscores { display: flex; gap: 14px; margin-top: 6px; }

/* score dial (svg ring rendered in JS) */
.dial { display: inline-flex; align-items: center; gap: 11px; }
.dial .ring { width: 58px; height: 58px; flex: 0 0 auto; }
.dial .dlab b { font-family: var(--font-num); font-variant-numeric: tabular-nums; font-weight: 800; font-size: 21px; display: block; line-height: 1; }
.dial .dlab span { font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--text-mute); font-weight: 700; }
.dial.q .dlab b { color: var(--gold); }
.dial.h .dlab b { color: var(--heat); }

.tag { font-size: 12px; font-weight: 600; color: var(--text-dim); padding: 4px 10px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); }

/* ---------------------------------------------------------- modal */
.scrim { position: fixed; inset: 0; z-index: 100; background: rgba(6,5,4,.72); backdrop-filter: blur(8px);
  opacity: 0; pointer-events: none; transition: opacity .22s; display: grid; place-items: start center; overflow-y: auto; padding: 40px 18px; }
.scrim.open { opacity: 1; pointer-events: auto; }
.modal { width: min(960px, 100%); background: var(--surface); border: 1px solid var(--line-2); border-radius: var(--r-xl);
  box-shadow: var(--sh-3); overflow: hidden; transform: translateY(16px) scale(.98); transition: transform .26s cubic-bezier(.2,.8,.3,1); }
.scrim.open .modal { transform: none; }
.modal .hd { position: relative; display: grid; grid-template-columns: 220px 1fr; gap: 26px; padding: 26px; }
.modal .hd .backdrop { position: absolute; inset: 0; z-index: 0; opacity: .26; filter: saturate(1.1); }
.modal .hd .backdrop::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent, var(--surface) 92%), linear-gradient(90deg, var(--surface) 8%, transparent 60%); }
.modal .hd > * { position: relative; z-index: 1; }
.modal .hd .poster { aspect-ratio: 2/3; border-radius: var(--r); overflow: hidden; box-shadow: var(--sh-3); border: 1px solid var(--line-2); }
.modal .modal-x { position: absolute; top: 16px; right: 16px; z-index: 5; width: 38px; height: 38px; border-radius: 50%;
  background: rgba(10,8,6,.6); border: 1px solid var(--line-2); color: var(--text); display: grid; place-items: center; }
.modal .modal-x:hover { background: var(--surface-3); }
.modal .info { min-width: 0; display: flex; flex-direction: column; }
.modal .info h2 { font-size: clamp(24px, 3vw, 34px); }
.modal .info .yr { color: var(--text-mute); font-size: 15px; margin-top: 4px; }
.modal .info .syn { color: var(--text-dim); margin: 14px 0; font-size: 15.5px; max-width: 60ch; }
.modal .chips { display: flex; gap: 8px; flex-wrap: wrap; margin: 4px 0 2px; }
.modal .credits { font-size: 13.5px; color: var(--text-mute); margin-top: auto; padding-top: 12px; }
.modal .credits b { color: var(--text-dim); font-weight: 600; }
.modal .dials { display: flex; gap: 26px; margin: 16px 0 4px; }
.modal .actions { display: flex; gap: 12px; margin-top: 16px; flex-wrap: wrap; align-items: center; }
.iconbar { display: flex; gap: 8px; align-items: center; }
.iconbtn { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line-2); background: var(--surface-2); color: var(--text); display: grid; place-items: center; cursor: pointer; transition: .15s; flex: 0 0 auto; }
.iconbtn svg { width: 18px; height: 18px; }
.iconbtn:hover { border-color: var(--text-faint); background: var(--surface-3); }
.iconbtn.like.on { background: var(--heat); border-color: transparent; color: #1a1206; }
.iconbtn.watch.on { background: var(--gold); border-color: transparent; color: #1a1206; }
.iconbar .addgrp { display: inline-flex; gap: 6px; align-items: center; }
.iconbar .addgrp select { max-width: 150px; }
/* confidence */
.confidence { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; margin: 12px 0 2px; font-size: 12.5px; color: var(--text-mute); }
.confidence .cflabel { font-weight: 600; color: var(--text-dim); }
.confidence .cfbar { width: 86px; height: 6px; border-radius: 999px; background: var(--surface-3); overflow: hidden; }
.confidence .cfbar i { display: block; height: 100%; border-radius: 999px; background: var(--ripe-grad); }
.confidence .cftier { font-weight: 800; color: var(--text); }
.confidence.high .cftier { color: #9bd64b; } .confidence.solid .cftier { color: var(--gold); }
.confidence.fair .cftier { color: #e6a23c; } .confidence.limited .cftier { color: var(--text-mute); }
.confidence .cfwhy { color: var(--text-faint); }
/* expandable cast */
/* clickable cast — RT-style actor grid */
.castsection { margin-top: 14px; }
.casttoggle { display: inline-flex; align-items: center; gap: 8px; background: var(--surface-2); border: 1px solid var(--line-2); color: var(--text); border-radius: 999px; padding: 7px 15px; font: inherit; font-weight: 600; font-size: 13.5px; cursor: pointer; transition: .15s; }
.casttoggle:hover { border-color: var(--text-faint); background: var(--surface-3); }
.casttoggle svg { width: 16px; height: 16px; }
.casttoggle .ccount { font-weight: 800; color: var(--gold); }
.casttoggle .cchev { transition: transform .18s; color: var(--text-mute); }
.castsection.open .cchev { transform: rotate(180deg); }
.castgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 12px; margin-top: 14px; }
.castgrid[hidden] { display: none; }   /* respect the hidden attribute so the toggle actually collapses it */
.castcard { display: flex; flex-direction: column; gap: 2px; }
.castpho { display: block; width: 100%; aspect-ratio: 1/1; border-radius: 12px; overflow: hidden; background: var(--surface-3); margin-bottom: 6px; }
.castpho img { width: 100%; height: 100%; object-fit: cover; display: block; }
.castinit { width: 100%; height: 100%; display: grid; place-items: center; font-family: var(--font-display); font-size: 28px; font-weight: 600; color: var(--text-faint); }
.castn { font-size: 13.5px; font-weight: 700; line-height: 1.25; }
.castc { font-size: 12px; color: var(--text-mute); line-height: 1.25; }
/* genre filter bar */
.genrebar { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin: 0 0 22px; }
.genrebar .gblabel { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--text-faint); margin-right: 2px; }
/* genre multi-select dropdown */
.genredd { position: relative; }
.genreddbtn { display: inline-flex; align-items: center; gap: 8px; background: var(--surface); border: 1px solid var(--line-2); color: var(--text); border-radius: 999px; padding: 8px 8px 8px 15px; font: inherit; font-weight: 600; font-size: 13.5px; cursor: pointer; transition: .15s; }
.genreddbtn:hover { border-color: var(--text-faint); }
.genreddbtn.active { border-color: var(--gold); }
.genreddbtn .gddlabel { max-width: 220px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.genreddbtn .gchev { width: 16px; height: 16px; color: var(--text-mute); transition: transform .18s; }
.genredd.open .gchev { transform: rotate(180deg); }
.genrePanel { position: absolute; top: calc(100% + 8px); left: 0; z-index: 70; width: 268px; background: var(--surface); border: 1px solid var(--line-2); border-radius: var(--r); box-shadow: var(--sh-3); padding: 8px; opacity: 0; transform: translateY(-6px) scale(.98); transform-origin: top left; pointer-events: none; transition: opacity .15s, transform .15s cubic-bezier(.2,.8,.3,1); }
.genredd.open .genrePanel { opacity: 1; transform: none; pointer-events: auto; }
.genrePanelHd { display: flex; align-items: center; justify-content: space-between; padding: 4px 8px 9px; font-size: 11px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--text-faint); }
.genreclear { background: none; border: 0; color: var(--gold); font: inherit; font-weight: 700; font-size: 11px; text-transform: uppercase; letter-spacing: .05em; cursor: pointer; }
.genreclear:hover { color: var(--gold-soft); }
.genreopts { display: flex; flex-direction: column; max-height: 322px; overflow-y: auto; }
.genreopt { display: flex; align-items: center; gap: 11px; width: 100%; text-align: left; background: none; border: 0; color: var(--text); font: inherit; font-weight: 600; font-size: 13.5px; padding: 8px; border-radius: 9px; cursor: pointer; transition: background .12s; }
.genreopt:hover { background: var(--surface-2); }
.genreopt .gobox { width: 19px; height: 19px; border-radius: 6px; border: 1.5px solid var(--line-2); display: grid; place-items: center; flex: 0 0 auto; transition: .12s; }
.genreopt .gobox .gocheck { width: 13px; height: 13px; color: #1a1206; opacity: 0; transition: opacity .12s; }
.genreopt.on .gobox { background: var(--gold); border-color: transparent; }
.genreopt.on .gobox .gocheck { opacity: 1; }
.genreopt .goname { flex: 1; }
.genreopt .gocount { font-size: 11.5px; color: var(--text-faint); font-weight: 600; }
.why { font-size: 13px; color: var(--text-mute); margin-top: 12px; padding: 10px 14px; background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--r-sm); border-left: 3px solid var(--gold); }
.why b { color: var(--gold); font-weight: 700; }

.modal .bd { padding: 0 26px 26px; }
.bd h3 { font-size: 15px; letter-spacing: .02em; margin: 18px 0 12px; display: flex; align-items: center; gap: 9px; }
.bd h3 .hint { font-size: 12px; color: var(--text-mute); font-weight: 400; font-family: var(--font-text); }

/* source breakdown rows */
.sources { display: flex; flex-direction: column; gap: 2px; }
.srow { display: grid; grid-template-columns: 168px 64px 1fr 70px; align-items: center; gap: 14px; padding: 10px 12px; border-radius: var(--r-sm); }
.srow:hover { background: var(--surface-2); }
.srow .sname { display: flex; align-items: center; gap: 9px; font-weight: 600; font-size: 13.5px; min-width: 0; }
.srow .slogo { width: 22px; height: 22px; border-radius: 6px; display: grid; place-items: center; font-size: 10px; font-weight: 800; flex: 0 0 auto; color: #1a1206; }
.srow .native { font-family: var(--font-num); font-variant-numeric: tabular-nums; font-weight: 700; font-size: 15px; }
.srow .native s { font-size: 11px; color: var(--text-mute); text-decoration: none; font-family: var(--font-text); }
.srow .barwrap { height: 7px; background: var(--surface-3); border-radius: 999px; overflow: hidden; }
.srow .bar { height: 100%; border-radius: 999px; background: var(--gold-grad); }
.srow .votes { font-size: 12px; color: var(--text-mute); text-align: right; }
.srow .votes b { color: var(--text-dim); font-weight: 700; font-family: var(--font-num); font-variant-numeric: tabular-nums; }
.consensus-note { font-size: 12.5px; color: var(--text-mute); margin-top: 10px; display: flex; align-items: center; gap: 8px; }

/* where to watch */
.watch { display: flex; gap: 10px; flex-wrap: wrap; }
.watch { flex-direction: column; align-items: stretch; }
.wstream { display: flex; gap: 10px; flex-wrap: wrap; }
.wstream-none { font-size: 13.5px; }
.theatrical { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  padding: 14px 16px; border-radius: 14px; border: 1px solid color-mix(in srgb, var(--gold) 34%, var(--line-2));
  background: linear-gradient(120deg, color-mix(in srgb, var(--gold) 12%, var(--surface-2)), var(--surface-2) 66%); }
.theatrical.soon { border-color: var(--line-2); background: var(--surface-2); }
.theatrical .thstat { display: flex; align-items: center; gap: 12px; min-width: 0; }
.theatrical .thstat > svg { width: 22px; height: 22px; color: var(--gold); flex: 0 0 auto; }
.theatrical.soon .thstat > svg { color: var(--text-mute); }
.theatrical .thstat b { display: block; font-size: 15px; font-weight: 700; color: var(--text); }
.theatrical .thstat span { font-size: 12.5px; color: var(--text-dim); }
.theatrical .btn { flex: 0 0 auto; }
.wchip { display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; border-radius: var(--r-sm);
  background: var(--surface-2); border: 1px solid var(--line); font-weight: 600; font-size: 13.5px; }
.wchip .k { font-size: 10.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .03em; padding: 1px 6px; border-radius: 5px; }
.wchip .k.stream { color: var(--sprout); background: rgba(155,214,75,.13); }
.wchip .k.rent, .wchip .k.buy { color: var(--gold-soft); background: rgba(246,181,60,.12); }
.wchip .k.free { color: #8fd1ff; background: rgba(90,170,255,.12); }
.wchip .k.platform { color: var(--heat-soft); background: rgba(255,94,58,.12); }

/* ---------------------------------------------------- onboarding */
.ob .modal { width: min(640px, 100%); }
.ob .obhead { padding: 30px 30px 8px; }
.ob h2 { font-size: 28px; }
.ob .obsub { color: var(--text-dim); margin-top: 8px; }
.ob .obbody { padding: 18px 30px 8px; min-height: 220px; }
.ob .qlabel { font-weight: 700; margin-bottom: 14px; font-size: 16px; }
.choice-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px,1fr)); gap: 10px; }
.choice { border: 1px solid var(--line-2); background: var(--surface-2); color: var(--text); border-radius: var(--r-sm);
  padding: 13px 14px; font-weight: 600; font-size: 14px; text-align: left; transition: .15s; display: flex; align-items: center; gap: 9px; }
.choice:hover { border-color: var(--text-faint); }
.choice.sel { border-color: var(--gold); background: rgba(246,181,60,.1); color: var(--gold-soft); }
.choice .em { font-size: 18px; }
.ob .obfoot { display: flex; align-items: center; justify-content: space-between; padding: 16px 30px 28px; gap: 12px; }
.dots { display: flex; gap: 6px; }
.dots i { width: 7px; height: 7px; border-radius: 50%; background: var(--surface-3); transition: .2s; }
.dots i.on { background: var(--gold); width: 20px; border-radius: 999px; }

/* duel (this or that) */
.duel { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.duelcard { border: 1px solid var(--line-2); border-radius: var(--r); overflow: hidden; background: var(--surface-2); transition: .15s; cursor: pointer; }
.duelcard:hover { border-color: var(--text-faint); transform: translateY(-3px); }
.duelcard.sel { border-color: var(--gold); box-shadow: var(--glow-gold); }
.duelcard .dp { aspect-ratio: 16/10; overflow: hidden; }
.duelcard .dn { padding: 10px 12px; font-weight: 700; font-size: 14px; }

/* ---------------------------------------------------- empty / misc */
.empty { text-align: center; padding: 70px 20px; color: var(--text-mute); }
.empty .big { font-family: var(--font-display); font-size: 22px; color: var(--text-dim); margin-bottom: 8px; }
.trust { display: flex; gap: 18px; flex-wrap: wrap; margin: 16px 0 0; }
.trust .item { display: flex; align-items: center; gap: 9px; font-size: 13px; color: var(--text-dim); }
.trust .item svg { width: 17px; height: 17px; color: var(--gold); flex: 0 0 auto; }

footer { border-top: 1px solid var(--line); margin-top: 70px; padding: 34px 0 60px; color: var(--text-mute); font-size: 13px; }
footer .wrap { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; align-items: center; }
footer .attribution { max-width: 60ch; line-height: 1.6; }

/* toast */
.toast { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%) translateY(20px); z-index: 200;
  background: var(--surface-3); border: 1px solid var(--line-2); border-radius: 999px; padding: 12px 20px; font-weight: 600;
  font-size: 14px; box-shadow: var(--sh-3); opacity: 0; transition: .25s; display: flex; align-items: center; gap: 10px; }
.toast.show { opacity: 1; transform: translateX(-50%); }
.toast .tdot { width: 9px; height: 9px; border-radius: 50%; background: var(--gold); }
.toast .tact { margin-left: 2px; background: none; border: 0; color: var(--gold); font: inherit; font-weight: 700; cursor: pointer; padding: 2px 4px; border-radius: 6px; }
.toast .tact:hover { text-decoration: underline; }

/* hidden titles (profile) */
.hidgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 14px; margin-top: 12px; }
.hidcard { display: flex; flex-direction: column; gap: 7px; }
.hidcard .hidposter { aspect-ratio: 2/3; border-radius: 10px; overflow: hidden; background: var(--surface-2); opacity: .42; cursor: pointer; transition: opacity .15s; }
.hidcard:hover .hidposter { opacity: .78; }
.hidcard .hidposter img, .hidcard .hidposter svg { width: 100%; height: 100%; object-fit: cover; display: block; }
.hidcard .hidtitle { font-size: 12.5px; font-weight: 600; color: var(--text-dim); line-height: 1.25; cursor: pointer;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.btn.tiny { padding: 5px 10px; font-size: 12px; gap: 5px; }
.btn.tiny svg { width: 13px; height: 13px; }

/* live (non-curated) search results — likeable to teach the taste engine */
.livemore { margin-top: 8px; }
.livemore-load { display: inline-flex; align-items: center; gap: 8px; color: var(--text-mute); font-size: 13.5px; font-weight: 600; padding: 10px 0; }
.livemore-load svg { width: 16px; height: 16px; color: var(--gold); }
.livegrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(132px, 1fr)); gap: 16px; }
.livecard { min-width: 0; }
.livposter { position: relative; aspect-ratio: 2/3; border-radius: 12px; overflow: hidden; background: var(--surface-2); border: 1px solid var(--line); }
.livposter img, .livposter svg { width: 100%; height: 100%; object-fit: cover; display: block; }
.livlike { position: absolute; bottom: 8px; right: 8px; width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line-2);
  background: rgba(10,8,6,.82); color: var(--text); display: grid; place-items: center; cursor: pointer; transition: .14s; }
.livlike svg { width: 17px; height: 17px; }
.livlike:hover { border-color: var(--text-faint); transform: scale(1.06); }
.livlike.liked { background: var(--heat); border-color: transparent; color: #1a0d08; }
.livtitle { font-size: 13.5px; font-weight: 600; color: var(--text); line-height: 1.25; margin-top: 8px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.livmeta { font-size: 12px; color: var(--text-mute); margin-top: 2px;
  display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }

/* reveal on scroll */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .5s ease, transform .5s cubic-bezier(.2,.7,.3,1); }
.reveal.in { opacity: 1; transform: none; }

/* ---------------------------------------------------- icons / rings */
.ic { width: 18px; height: 18px; }
.x { width: 16px; height: 16px; }
.mini { width: 13px; height: 13px; vertical-align: -2px; }
svg.big { width: 44px; height: 44px; color: var(--heat); }   /* icon-size only — was ".big", which crushed the .empty .big heading div to 44px (word-per-line) */
.tab .ic { width: 16px; height: 16px; }
.ringv { transition: stroke-dashoffset .7s cubic-bezier(.2,.7,.3,1); }
.dials { display: flex; gap: 26px; flex-wrap: wrap; align-items: center; }
.dial .dlab { display: flex; flex-direction: column; justify-content: center; }
.dial .dlab i { font-style: normal; font-size: 11px; color: var(--text-faint); margin-top: 1px; }

/* new / status badges on cards */
.newb { position: absolute; top: 9px; left: 9px; z-index: 3; font-size: 10.5px; font-weight: 800; letter-spacing: .04em;
  text-transform: uppercase; color: #1a1206; background: var(--sprout); border-radius: 7px; padding: 3px 7px; }
.card .meta .sub .where { display: inline-flex; align-items: center; gap: 5px; }
/* service logos */
.svlogo { width: 18px; height: 18px; border-radius: 5px; flex: 0 0 auto; display: inline-grid; place-items: center; overflow: hidden; vertical-align: -4px; }
.svlogo.img { background: #fff; }
.svlogo.img img { width: 100%; height: 100%; object-fit: contain; display: block; }
.svlogo.mark { font-family: var(--font-num); font-weight: 800; font-size: 8px; color: #fff; letter-spacing: -.3px; }
.svlogo.mark svg { width: 12px; height: 12px; }
.tag.wtag { display: inline-flex; align-items: center; gap: 6px; padding-left: 6px; }
.wchip .svlogo { width: 20px; height: 20px; }
.card .meta .sub .ago { color: var(--heat-soft); font-weight: 700; }
.card .meta .sub .ago.soon { color: #8fd1ff; }
.newb.soon { background: rgba(143,209,255,.16); color: #bfe6ff; border: 1px solid rgba(143,209,255,.34); }
.newb { display: inline-flex; align-items: center; }
.tag.fresh { color: #1a1206; background: var(--gold); border-color: transparent; font-weight: 700; display: inline-flex; align-items: center; gap: 5px; }
.tag.fresh .x { width: 13px; height: 13px; }

/* spotlight: 5 most popular up top, the rest found by scrolling */
.spotlight { margin-bottom: 20px; }
.spot5 { grid-template-columns: repeat(5, 1fr); gap: 22px 18px; }
.scrollcue { text-align: center; color: var(--text-faint); font-size: 13px; font-style: italic;
  font-family: var(--font-display); padding: 18px 0 2px; letter-spacing: .01em; }
@media (max-width: 1040px) { .spot5 { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 600px) { .spot5 { grid-template-columns: repeat(2, 1fr); } }

/* themed rails (bounded horizontal — still a clear end) */
.railsec { margin: 30px 0; }
.rail { display: flex; gap: 18px; overflow-x: auto; scroll-snap-type: x proximity; padding: 4px 4px 14px; margin: 0 -4px;
  scrollbar-width: thin; scrollbar-color: var(--surface-3) transparent; }
.rail::-webkit-scrollbar { height: 8px; }
.rail::-webkit-scrollbar-thumb { background: var(--surface-3); border-radius: 999px; }
.rail::-webkit-scrollbar-track { background: transparent; }
.rail .card { flex: 0 0 168px; scroll-snap-align: start; }

.endcap { text-align: center; color: var(--text-faint); font-size: 13px; padding: 30px 0 6px; font-style: italic;
  font-family: var(--font-display); }

/* trust flags */
.flag { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; padding: 5px 11px; border-radius: 999px; }
.flag .x { width: 14px; height: 14px; }
.flag.bomb { color: var(--gold); background: rgba(246,181,60,.13); border: 1px solid rgba(246,181,60,.3); }
.flag.divisive { color: var(--heat-soft); background: rgba(255,94,58,.12); border: 1px solid rgba(255,94,58,.28); }
.flag.crowd { color: var(--sprout); background: rgba(155,214,75,.13); border: 1px solid rgba(155,214,75,.3); }

.flags { display: flex; flex-direction: column; gap: 8px; margin: 4px 0 6px; }
.flagrow { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border-radius: var(--r-sm); background: var(--surface-2); border: 1px solid var(--line); }
.flagrow .x { width: 18px; height: 18px; flex: 0 0 auto; margin-top: 1px; }
.flagrow b { display: block; font-size: 13.5px; }
.flagrow span { font-size: 12.5px; color: var(--text-mute); }
.flagrow.bomb { border-left: 3px solid var(--gold); } .flagrow.bomb .x { color: var(--gold); }
.flagrow.divisive { border-left: 3px solid var(--heat); } .flagrow.divisive .x { color: var(--heat); }
.flagrow.crowd { border-left: 3px solid var(--sprout); } .flagrow.crowd .x { color: var(--sprout); }

/* source-row weight/tag meta */
.srmeta { display: flex; align-items: center; gap: 8px; margin-top: 5px; font-size: 11px; color: var(--text-mute); }
.stag { font-weight: 700; text-transform: capitalize; padding: 1px 7px; border-radius: 5px; }
.stag.critics { color: var(--gold-soft); background: rgba(246,181,60,.12); }
.stag.audience { color: var(--heat-soft); background: rgba(255,94,58,.1); }

.tag.soft { color: var(--text-mute); background: transparent; border-style: dashed; }

/* distribution chart */
.distrib { width: 100%; height: auto; margin: 2px 0 4px; }
.distrib .axt { font: 600 11px var(--font-num); fill: var(--text-mute); }
.distrib .mkt { font: 800 11px var(--font-num); fill: #1a1206; }

/* onboarding finish */
.obdone { text-align: center; padding: 18px 0 8px; }
.obdone p { color: var(--text-dim); max-width: 42ch; margin: 14px auto 0; }

/* spoiler-safe: hide scores until hover */
body.spoiler .scorestrip, body.spoiler .fscores, body.spoiler .modal .dials { filter: blur(8px); opacity: .65; transition: .22s; }
body.spoiler .card:hover .scorestrip, body.spoiler .featured:hover .fscores, body.spoiler .modal:hover .dials { filter: none; opacity: 1; }

/* lens slider dimmed in all-time mode */
.lens-slider.off { opacity: .4; pointer-events: none; }

/* poster sizing everywhere + backdrop clip (fixes title bleed) */
.poster-svg, img.real { display: block; width: 100%; height: 100%; object-fit: cover; }
.modal .hd .backdrop { overflow: hidden; }
.modal .hd .backdrop .poster-svg { width: 100%; height: 100%; }

/* source ledger refinements */
.srow .slogo { font-size: 9px; letter-spacing: -.3px; overflow: hidden; line-height: 1; padding: 0 1px; }
.srow .barcell { min-width: 0; }
.srmeta .norm { color: var(--text-dim); font-variant-numeric: tabular-nums; }
.srmeta .wt { color: var(--text-faint); }
.srow .votes b { display: block; line-height: 1.1; }
.srow .votes span { display: block; font-size: 11px; color: var(--text-mute); }
.srow .votes .na { font-size: 11px; color: var(--text-faint); }

/* ---------------------------------------------------- taste profile */
.profile { padding-top: 6px; }
.phead { display: grid; grid-template-columns: 158px 1fr; gap: 28px; align-items: center; margin-bottom: 26px;
  background: linear-gradient(140deg, var(--surface), var(--bg-2)); border: 1px solid var(--line); border-radius: var(--r-xl); padding: 28px; box-shadow: var(--sh-2); position: relative; overflow: hidden; }
.phead::before { content: ""; position: absolute; right: -8%; top: -50%; width: 50%; height: 200%; background: radial-gradient(closest-side, rgba(246,181,60,.10), transparent); pointer-events: none; }
.pemblem { line-height: 0; }
.pemblemBtn { position: relative; border: 0; background: none; padding: 0; cursor: pointer; border-radius: 50%; transition: transform .14s; }
.pemblemBtn:hover { transform: scale(1.03); }
.pemblemBtn .avEditBadge { width: 30px; height: 30px; right: 6px; bottom: 6px; border-width: 3px; }
.pemblemBtn .avEditBadge svg { width: 15px; height: 15px; }
.profAvp { max-width: 640px; }

/* editable display name on the profile */
.pnameRow { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.pnameRow.center { justify-content: center; margin: 0 auto 18px; }
.pname { font-size: 15px; font-weight: 700; color: var(--text-dim); letter-spacing: .01em; }
.pnameEdit { width: 26px; height: 26px; border-radius: 50%; border: 1px solid var(--line-2); background: var(--surface-2); color: var(--text-mute); display: grid; place-items: center; cursor: pointer; transition: .14s; flex: 0 0 auto; }
.pnameEdit:hover { color: var(--text); border-color: var(--text-faint); }
.pnameEdit svg { width: 13px; height: 13px; }
.pnameInput { background: var(--surface-2); border: 1px solid var(--gold); border-radius: 9px; color: var(--text); font: inherit; font-size: 15px; font-weight: 700; padding: 6px 11px; max-width: 230px; }
.pnameSave { width: 32px; height: 32px; border-radius: 50%; border: 0; background: var(--gold); color: #1a1206; display: grid; place-items: center; cursor: pointer; flex: 0 0 auto; }
.pnameSave svg { width: 15px; height: 15px; }

/* signed-in empty-account nudge (homepage) */
.nudge { position: relative; display: flex; gap: 18px; align-items: center; margin: 2px 0 26px; padding: 22px 26px 22px 22px;
  border-radius: 18px; border: 1px solid color-mix(in srgb, var(--gold) 32%, var(--line-2));
  background: linear-gradient(135deg, color-mix(in srgb, var(--gold) 13%, var(--surface)), var(--surface) 62%); }
.nudge .nudgeIco { flex: 0 0 auto; line-height: 0; }
.nudge .nudgeBody { min-width: 0; }
.nudge h3 { font-family: var(--font-display); font-size: 22px; font-weight: 700; margin: 0 0 5px; letter-spacing: -.01em; }
.nudge p { color: var(--text-dim); font-size: 14.5px; line-height: 1.5; margin: 0 0 14px; max-width: 64ch; }
.nudge .nudgeActions { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.nudge .nudgeHint { color: var(--text-mute); font-size: 13px; display: inline-flex; align-items: center; gap: 4px; }
.nudge .nudgeHint svg { width: 15px; height: 15px; color: var(--heat); }
.nudge .nudgeX { position: absolute; top: 12px; right: 12px; width: 30px; height: 30px; border-radius: 50%;
  border: 1px solid var(--line-2); background: var(--surface-2); color: var(--text-dim); display: grid; place-items: center; cursor: pointer; transition: .14s; }
.nudge .nudgeX:hover { color: var(--text); border-color: var(--text-faint); }
.nudge .nudgeX svg { width: 15px; height: 15px; }
@media (max-width: 640px) { .nudge { flex-direction: column; align-items: flex-start; padding: 20px; } }
.pmeta { position: relative; }
.pmeta .ptitle { font-size: clamp(30px, 4.6vw, 52px); margin: 4px 0 3px; line-height: 1.02; }
.pmeta .psub { color: var(--gold); font-weight: 700; font-size: 14px; letter-spacing: .02em; }
.pmeta .pblurb { color: var(--text-dim); font-size: 16px; max-width: 66ch; margin: 14px 0 0; line-height: 1.55; }
.pmeta .precs { font-size: 14px; color: var(--text-mute); margin-top: 13px; padding: 12px 16px; background: var(--surface-2); border: 1px solid var(--line); border-left: 3px solid var(--gold); border-radius: var(--r-sm); max-width: 70ch; }
.pmeta .precs b { color: var(--text-dim); font-weight: 600; }
.pgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-bottom: 6px; }
.pcard { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 18px 20px; }
.pcard h3 { font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--text-mute); margin-bottom: 14px; font-family: var(--font-text); font-weight: 700; }
.gbars { display: flex; flex-direction: column; gap: 11px; }
.gbar { display: grid; grid-template-columns: 96px 1fr; gap: 12px; align-items: center; }
.gbar .gl { font-size: 13.5px; font-weight: 600; }
.gbar .gt { height: 9px; background: var(--surface-3); border-radius: 999px; overflow: hidden; }
.gbar .gt i { display: block; height: 100%; border-radius: 999px; background: var(--ripe-grad); }
.medmix { display: flex; gap: 20px; flex-wrap: wrap; }
.mx { text-align: center; }
.mx b { font-size: 24px; display: block; line-height: 1; }
.mx span { font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: var(--text-mute); font-weight: 700; }
.mx.movie b { color: var(--gold-soft); } .mx.tv b { color: #8fd1ff; } .mx.anime b { color: #ff9bd0; } .mx.game b { color: var(--sprout); }
.vibes { display: flex; flex-wrap: wrap; gap: 8px; }
.vchip { font-size: 12.5px; font-weight: 600; color: var(--text-dim); padding: 5px 11px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--line); text-transform: capitalize; }
.vchip.tone { color: var(--gold-soft); background: rgba(246,181,60,.1); border-color: rgba(246,181,60,.22); }
.profile-empty { padding: 76px 20px; }
.pactions { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 18px; }
.btn.signin { gap: 8px; }
.btn.signin svg { width: 16px; height: 16px; }
#authSlot { display: inline-flex; align-items: center; }
.avatarbtn { border: 0; background: none; padding: 0; width: auto; height: auto; overflow: visible; display: grid; place-items: center; cursor: pointer; line-height: 0; }

/* merged "For you" avatar pill (replaces the old gold For-you button + bare avatar) */
.mepill { display: inline-flex; align-items: center; gap: 9px; padding: 3px 15px 3px 3px; border-radius: 999px;
  border: 1px solid var(--line-2); background: var(--surface); cursor: pointer; line-height: 0; transition: border-color .14s; }
.mepill:hover { border-color: var(--text-faint); }
.mepill .met { display: flex; flex-direction: column; text-align: left; }
.mepill .mek { font-size: 9.5px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--gold); line-height: 1.05; }
.mepill .men { font-size: 13.5px; font-weight: 700; color: var(--text); line-height: 1.2; max-width: 130px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mepill:hover .pAv, .mepill[aria-expanded="true"] .pAv { transform: scale(1.05); }

/* persona avatar = generated seal + ripening progress ring */
.pAv { position: relative; display: inline-grid; place-items: center; flex: 0 0 auto; transition: transform .16s; }
.pAv .pAvRing { position: absolute; inset: 0; z-index: 2; pointer-events: none; }
.pAv .pAvImg { border-radius: 50%; object-fit: cover; display: block; position: relative; z-index: 1; background: var(--surface-3); }

/* account dropdown menu */
.accountMenu { position: relative; }
.accountMenu .avatarbtn:hover .pAv, .accountMenu .avatarbtn[aria-expanded="true"] .pAv { transform: scale(1.07); }
.accountPanel {
  position: absolute; top: calc(100% + 12px); right: 0; width: 264px; z-index: 120;
  background: var(--surface); border: 1px solid var(--line-2); border-radius: var(--r-lg);
  box-shadow: var(--sh-3); padding: 8px; opacity: 0; transform: translateY(-6px) scale(.97); transform-origin: top right;
  pointer-events: none; transition: opacity .15s, transform .15s cubic-bezier(.2,.8,.3,1);
}
.accountPanel.open { opacity: 1; transform: none; pointer-events: auto; }
.accountPanel .apUser { display: flex; align-items: center; gap: 11px; padding: 10px 10px 12px; position: relative; }
.accountPanel .apUserMeta { flex: 1; min-width: 0; }
.accountPanel .apNameRow { display: flex; align-items: center; gap: 5px; min-width: 0; }
.accountPanel .apName { font-weight: 700; font-size: 14px; line-height: 1.3; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.apEdit { flex: 0 0 auto; border: 0; background: none; color: var(--text-faint); cursor: pointer; padding: 2px; border-radius: 6px; display: inline-flex; transition: .12s; }
.apEdit:hover { color: var(--gold); background: var(--surface-2); }
.apEdit svg { width: 13px; height: 13px; }
.apNameInput { flex: 1; min-width: 0; background: var(--surface-2); border: 1px solid var(--gold); color: var(--text); border-radius: 7px; padding: 3px 8px; font: inherit; font-weight: 700; font-size: 14px; }
.apNameSave { flex: 0 0 auto; border: 0; background: var(--gold); color: #1a1206; border-radius: 7px; padding: 4px; cursor: pointer; display: inline-flex; }
.apNameSave svg { width: 14px; height: 14px; }
/* theme button on the right of the name */
.apThemeBtn { flex: 0 0 auto; width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--line-2); background: none; cursor: pointer; display: grid; place-items: center; padding: 0; transition: border-color .12s; align-self: flex-start; }
.apThemeBtn:hover { border-color: var(--gold); }
.apThemeBtn .tsw { width: 18px; height: 18px; border-radius: 50%; display: block; box-shadow: inset 0 0 0 1px rgba(0,0,0,.25); }
/* theme flyout popover */
.themePop { position: absolute; top: 8px; right: calc(100% + 10px); width: 210px; background: var(--surface); border: 1px solid var(--line-2); border-radius: 14px; box-shadow: var(--sh-3); padding: 8px; opacity: 0; transform: translateX(6px) scale(.97); transform-origin: top right; pointer-events: none; transition: opacity .14s, transform .14s cubic-bezier(.2,.8,.3,1); z-index: 3; }
.themePop.open { opacity: 1; transform: none; pointer-events: auto; }
.themePopHd { font-size: 11px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--text-faint); padding: 4px 8px 8px; }
@media (max-width: 560px) { .themePop { right: 6px; top: 54px; left: auto; transform-origin: top right; } }
.accountPanel .apEmail { font-size: 12px; color: var(--text-mute); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.apPersona { font-size: 12px; font-weight: 700; color: var(--gold); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin: 1px 0; }
.apPersona.dim { color: var(--text-mute); font-weight: 600; }
.accountPanel hr { border: 0; border-top: 1px solid var(--line); margin: 4px 6px; }
.accountPanel .apItem {
  display: flex; align-items: center; gap: 11px; width: 100%; text-align: left; background: none; border: 0;
  color: var(--text); font: inherit; font-weight: 600; font-size: 13.5px; padding: 9px 10px; border-radius: 10px; cursor: pointer; transition: background .12s;
}
.accountPanel .apItem:hover { background: var(--surface-2); }
.accountPanel .apItem svg { width: 17px; height: 17px; color: var(--text-mute); flex: 0 0 auto; }
.accountPanel .apItem.danger { color: var(--heat); }
.accountPanel .apItem.danger svg { color: var(--heat); }
.accountPanel .apTheme { padding: 8px 10px 6px; }
.accountPanel .apTheme .apLabel { font-size: 11px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--text-faint); margin-bottom: 8px; display: flex; align-items: center; gap: 8px; }
/* theme selector — vertical list of named palettes with two-tone swatches */
.themeList { display: flex; flex-direction: column; gap: 1px; }
.themeItem { display: flex; align-items: center; gap: 11px; width: 100%; text-align: left; border: 0; background: none; color: var(--text); font: inherit; font-weight: 600; font-size: 13.5px; padding: 7px 8px; border-radius: 9px; cursor: pointer; transition: background .12s; }
.themeItem:hover { background: var(--surface-2); }
.themeItem .tsw { width: 22px; height: 22px; border-radius: 50%; flex: 0 0 auto; border: 1.5px solid var(--line-2); box-shadow: inset 0 0 0 1px rgba(0,0,0,.2); transition: border-color .12s; }
.themeItem.on .tsw { border-color: var(--gold); box-shadow: 0 0 0 2px rgba(246,181,60,.25); }
.themeItem .tname { flex: 1; }
.themeItem .tcheck { color: var(--gold); display: inline-flex; }
.themeItem .tcheck svg { width: 16px; height: 16px; }

/* settings panel */
.scrim.settings .modal { width: min(440px, 100%); }
.settingsPanel { padding: 26px 26px 22px; }
.settingsPanel h2 { font-size: 21px; margin: 0 0 18px; }
.settingsPanel .setSec + .setSec { margin-top: 22px; padding-top: 20px; border-top: 1px solid var(--line); }
.settingsPanel .setSecLabel { font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--text-faint); margin-bottom: 12px; }
.settingsPanel .setRow { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 9px 0; }
.settingsPanel .setRow .setTxt b { display: block; font-size: 14px; font-weight: 700; }
.settingsPanel .setRow .setTxt span { display: block; font-size: 12.5px; color: var(--text-mute); margin-top: 1px; }
.settingsPanel select.setSelect { background: var(--surface-2); border: 1px solid var(--line-2); color: var(--text); border-radius: 9px; padding: 8px 10px; font: inherit; font-weight: 600; font-size: 13px; }
.settingsPanel .setAccount { display: flex; align-items: center; gap: 12px; margin-bottom: 4px; }
.settingsPanel .setFoot { margin-top: 24px; display: flex; justify-content: flex-end; }
/* clickable avatar → avatar picker */
.avatarPickBtn { position: relative; border: 0; background: none; padding: 0; cursor: pointer; flex: 0 0 auto; line-height: 0; border-radius: 50%; transition: transform .14s; }
.avatarPickBtn:hover { transform: scale(1.05); }
.avEditBadge { position: absolute; right: -2px; bottom: -2px; width: 20px; height: 20px; border-radius: 50%; background: var(--gold); color: #1a1206; display: grid; place-items: center; border: 2px solid var(--surface); }
.avEditBadge svg { width: 11px; height: 11px; }
.avpToggleLink { display: inline-block; margin-top: 4px; background: none; border: 0; color: var(--gold); font: inherit; font-weight: 600; font-size: 12px; cursor: pointer; padding: 0; }
.avpToggleLink:hover { text-decoration: underline; }
.avatarPicker { margin-top: 16px; background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--r); padding: 12px 14px 14px; }
.avpHd { font-size: 11px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--text-faint); margin-bottom: 12px; }
.avpGrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(78px, 1fr)); gap: 10px; }
.avpItem { display: flex; flex-direction: column; align-items: center; gap: 5px; border: 0; background: none; cursor: pointer; padding: 4px; border-radius: 12px; transition: background .12s; }
.avpItem:hover { background: var(--surface-3); }
.avpImg { width: 54px; height: 54px; border-radius: 50%; overflow: hidden; background: var(--surface-3); border: 2px solid transparent; display: grid; place-items: center; transition: border-color .12s; }
.avpImg img { width: 100%; height: 100%; object-fit: cover; display: block; }
.avpImg.auto { color: var(--gold); } .avpImg.auto svg { width: 22px; height: 22px; }
.avpItem.on .avpImg { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(246,181,60,.22); }
.avpName { font-size: 10.5px; font-weight: 600; color: var(--text-mute); text-align: center; line-height: 1.15; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 74px; }
.avpItem.on .avpName { color: var(--gold); }
.authnote { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--text-mute); background: var(--surface-2); border: 1px solid var(--line); border-radius: 999px; padding: 6px 8px 6px 15px; }
.authnote b { color: var(--text-dim); }
.lnk { background: none; border: 0; color: var(--gold); font-weight: 700; font-size: 13px; cursor: pointer; padding: 4px 8px; }
@media (max-width: 760px) { .phead { grid-template-columns: 1fr; text-align: center; justify-items: center; } .pgrid { grid-template-columns: 1fr; } .gbar { grid-template-columns: 84px 1fr; } }

/* ---------------------------------------------------- trailer + region */
.trailerbox { padding: 0 26px; }
.trailerbox .tbframe { position: relative; padding-top: 56.25%; border-radius: var(--r); overflow: hidden; margin: 2px 0 20px; background: #000; border: 1px solid var(--line-2); box-shadow: var(--sh-2); }
.trailerbox iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.wregion { background: var(--surface-2); color: var(--text-dim); border: 1px solid var(--line-2); border-radius: 6px; padding: 1px 4px; font: inherit; font-size: 12px; vertical-align: baseline; }
@media (max-width: 600px) { .trailerbox { padding: 0 20px; } }

/* ---------------------------------------------------- groups */
.groups, .group { padding-top: 6px; }
.gnew { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 26px; }
.gnew-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 20px; }
.gnew-card h3 { font-size: 15px; margin-bottom: 12px; }
.ginput { width: 100%; background: var(--surface-2); border: 1px solid var(--line-2); border-radius: var(--r-sm); color: var(--text); padding: 11px 14px; font: inherit; font-size: 14px; margin-bottom: 10px; outline: none; }
.ginput:focus { border-color: var(--gold); }
.gsub { font-size: 13px; letter-spacing: .06em; text-transform: uppercase; color: var(--text-mute); margin: 6px 0 12px; }
.ggrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px,1fr)); gap: 14px; }
.gcard { display: flex; align-items: center; justify-content: space-between; gap: 10px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 16px 18px; text-align: left; cursor: pointer; transition: .15s; }
.gcard:hover { border-color: var(--line-2); background: var(--surface-2); }
.gcard .gn { font-weight: 700; font-size: 15px; } .gcard .go { color: var(--gold); font-weight: 700; font-size: 13px; }
.group .ghead { margin-bottom: 18px; }
.group .ghead h1 { font-size: clamp(26px,4vw,40px); }
.gmembers { display: flex; gap: 6px; flex-wrap: wrap; margin: 10px 0 14px; }
.mchip { font-size: 12px; font-weight: 700; color: var(--text-dim); background: var(--surface-2); border: 1px solid var(--line); border-radius: 999px; padding: 4px 11px; }
.gactions { display: flex; gap: 10px; flex-wrap: wrap; }
.gjoin { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; background: rgba(246,181,60,.08); border: 1px solid rgba(246,181,60,.25); border-radius: var(--r); padding: 12px 16px; margin-bottom: 16px; }
.gjoin span { font-size: 14px; } .gjoin .ginput { width: auto; margin: 0; min-width: 160px; }
.gadd { margin: 18px 0 14px; } .gadd .ginput { margin: 0; }
.gresults { display: flex; flex-direction: column; gap: 4px; margin-top: 6px; }
.gres { display: flex; align-items: center; gap: 10px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-sm); padding: 7px 12px 7px 7px; cursor: pointer; text-align: left; }
.gres:hover { border-color: var(--line-2); }
.gres .grpo { width: 26px; height: 38px; border-radius: 4px; overflow: hidden; background: var(--surface-3); flex: 0 0 auto; }
.gres .grpo img { width: 100%; height: 100%; object-fit: cover; }
.gres .grt { flex: 1; font-weight: 600; font-size: 14px; } .gres .grt i { color: var(--text-mute); font-style: normal; font-size: 12px; }
.gres .grt .gy { color: var(--text-mute); font-weight: 600; }
.gres .grt .ripetag { color: var(--sprout); font-weight: 700; font-size: 10px; letter-spacing: .06em; text-transform: uppercase; border: 1px solid rgba(155,214,75,.3); border-radius: 5px; padding: 0 5px; margin-left: 4px; }
.gres .add { color: var(--gold); font-weight: 700; font-size: 13px; }
.glist { display: flex; flex-direction: column; gap: 9px; }

/* group view — status sections of poster cards (the section IS the status; move-control on hover) */
.gsec + .gsec { margin-top: 30px; }
.gsec-h { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 0 0 12px; border-bottom: 1px solid var(--line); padding-bottom: 9px; }
.gsec-h h3 { font-family: var(--font-display); font-weight: 600; font-size: 20px; margin: 0; }
.gsec-add { border: 0; background: none; color: var(--gold); font-weight: 700; font-size: 14px; cursor: pointer; padding: 4px 6px; border-radius: 8px; }
.gsec-add:hover { color: var(--gold-soft); }
.gcards { display: flex; gap: 16px; overflow-x: auto; padding: 4px 2px 12px; scroll-snap-type: x proximity; }
.gcards::-webkit-scrollbar { height: 8px; } .gcards::-webkit-scrollbar-thumb { background: var(--surface-3); border-radius: 8px; }
.gcarditem { width: 132px; flex: 0 0 auto; scroll-snap-align: start; }
.gcpo { position: relative; aspect-ratio: 2/3; border-radius: 12px; overflow: hidden; background: var(--surface-2); border: 1px solid var(--line); cursor: pointer; transition: border-color .15s, transform .15s; }
.gcarditem:hover .gcpo { border-color: var(--line-2); transform: translateY(-3px); }
.gcpo img, .gcpo svg { width: 100%; height: 100%; object-fit: cover; display: block; }
.gcpo.done { opacity: .5; }
.gcx { position: absolute; top: 6px; right: 6px; z-index: 4; width: 26px; height: 26px; border-radius: 50%; border: 1px solid var(--line-2); background: rgba(10,8,6,.8); color: var(--text-dim); display: grid; place-items: center; cursor: pointer; opacity: 0; transition: opacity .14s; }
.gcx svg { width: 14px; height: 14px; }
.gcarditem:hover .gcx { opacity: 1; } .gcx:hover { color: var(--heat); border-color: var(--heat); }
.gcmove { position: absolute; left: 0; right: 0; bottom: 0; z-index: 3; display: flex; gap: 5px; justify-content: center; padding: 9px 6px 8px; background: linear-gradient(transparent, rgba(6,4,3,.92) 55%); opacity: 0; transform: translateY(6px); transition: opacity .15s, transform .15s; }
.gcarditem:hover .gcmove { opacity: 1; transform: none; }
.gcs { width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--line-2); background: rgba(22,17,11,.92); color: var(--text-mute); display: grid; place-items: center; cursor: pointer; transition: .12s; }
.gcs svg { width: 15px; height: 15px; }
.gcs:hover { color: var(--text); border-color: var(--text-faint); }
.gcs.on { background: var(--gold); color: #1a1206; border-color: transparent; }
.gcs.on.green { background: var(--sprout); color: #12240a; }
.gct { font-weight: 700; font-size: 13.5px; margin-top: 8px; line-height: 1.25; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* want-vote badge (surfaces overlap: "N want this") */
.gcwant { position: absolute; top: 6px; left: 6px; z-index: 4; display: inline-flex; align-items: center; gap: 3px; height: 26px; padding: 0 8px 0 6px; border-radius: 999px; border: 1px solid var(--line-2); background: rgba(10,8,6,.8); color: var(--text-dim); cursor: pointer; font-weight: 800; font-size: 12px; transition: .14s; }
.gcwant svg { width: 14px; height: 14px; }
.gcwant:hover { color: var(--text); border-color: var(--text-faint); }
.gcwant.on { background: var(--heat); color: #1a0d08; border-color: transparent; }

/* Tonight — the group decide strip */
.tonight { background: linear-gradient(135deg, color-mix(in srgb, var(--gold) 11%, var(--surface)), var(--surface) 62%); border: 1px solid color-mix(in srgb, var(--gold) 30%, var(--line-2)); border-radius: 16px; padding: 16px 18px 16px; margin: 4px 0 24px; }
.tn-h { display: flex; align-items: baseline; gap: 10px; margin-bottom: 12px; flex-wrap: wrap; }
.tn-h h3 { font-family: var(--font-display); font-weight: 600; font-size: 20px; margin: 0; }
.tn-sub { color: var(--text-mute); font-size: 12.5px; }
.tn-empty { color: var(--text-dim); font-size: 13.5px; display: inline-flex; align-items: center; gap: 5px; flex-wrap: wrap; }
.tn-empty svg { width: 15px; height: 15px; color: var(--heat); vertical-align: -3px; }
.tn-cards { display: flex; gap: 14px; overflow-x: auto; padding: 2px 2px 12px; }
.tn-card { width: 116px; flex: 0 0 auto; }
.tn-card.picked .tn-po { box-shadow: 0 0 0 3px var(--gold); }
.tn-po { position: relative; aspect-ratio: 2/3; border-radius: 11px; overflow: hidden; background: var(--surface-2); border: 1px solid var(--line); cursor: pointer; }
.tn-po img, .tn-po svg { width: 100%; height: 100%; object-fit: cover; display: block; }
.tn-t { font-weight: 700; font-size: 13px; margin-top: 7px; line-height: 1.2; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.tn-w { display: flex; align-items: center; gap: 6px; margin-top: 5px; }
.tn-faces { display: flex; }
.tn-face { width: 17px; height: 17px; border-radius: 50%; background: var(--surface-3); border: 1.5px solid var(--bg); margin-left: -5px; font-size: 9px; font-weight: 800; color: var(--text-dim); display: grid; place-items: center; }
.tn-face:first-child { margin-left: 0; }
.tn-n { font-size: 11px; color: var(--sprout); font-weight: 700; white-space: nowrap; }
.tn-btns { display: flex; align-items: center; gap: 6px; margin-top: 8px; }
.tn-btns .tn-start { flex: 1; justify-content: center; padding: 5px 6px; }
.gcwant.tn-want { position: static; height: 30px; width: 30px; padding: 0; justify-content: center; }
.tn-actions { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.tn-hint { color: var(--text-faint); font-size: 12px; display: inline-flex; align-items: center; gap: 4px; }
.tn-hint svg { width: 14px; height: 14px; color: var(--heat); }
@media (hover: none) { .gcmove, .gcx { opacity: 1; transform: none; } }
.addgrp { display: inline-flex; gap: 6px; align-items: center; }
.addgrp select { background: var(--surface-2); color: var(--text); border: 1px solid var(--line-2); border-radius: 999px; padding: 8px 12px; font: inherit; font-size: 13px; max-width: 150px; }
@media (max-width: 680px) { .gnew { grid-template-columns: 1fr; } }

/* ---------------------------------------------------- responsive */
@media (max-width: 880px) {
  .featured { grid-template-columns: 150px 1fr; gap: 18px; padding: 16px; }
  .modal .hd { grid-template-columns: 150px 1fr; gap: 18px; padding: 20px; }
  .srow { grid-template-columns: 120px 52px 1fr 54px; gap: 10px; }
  .search { display: none; }
}
@media (max-width: 600px) {
  .wrap { padding: 0 16px; }
  .grid { grid-template-columns: repeat(auto-fill, minmax(140px,1fr)); gap: 18px 14px; }
  /* compact single-row nav: brand · scrollable tabs · icon-only actions */
  .nav .wrap { gap: 10px; }
  .nav-spacer { display: none; }
  .brand { flex: 0 0 auto; font-size: 19px; gap: 8px; }
  .tabs { flex: 1 1 auto; min-width: 0; margin-left: 4px; overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
  .tabs::-webkit-scrollbar { display: none; }
  .tab { padding: 7px 11px; }
  #surprise, #groupsBtn, #authSlot .btn.signin { font-size: 0; gap: 0; padding: 9px; flex: 0 0 auto; }
  #surprise svg, #groupsBtn svg, #authSlot .btn.signin svg { width: 18px; height: 18px; }
  #groupsBtn span, #authSlot .btn.signin span { display: none; }
  .mepill .met { display: none; }
  .mepill { padding: 3px; gap: 0; }
  .lensbar { gap: 16px; }
  .featured { grid-template-columns: 110px 1fr; }
  .modal .hd { grid-template-columns: 110px 1fr; }
  .modal .dials { gap: 16px; }
  .srow { grid-template-columns: 96px 46px 1fr; }
  .srow .votes { display: none; }
  .hero { padding: 36px 0 18px; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
}
