/* Hollywood by Night — public site (home, auth, leagues).
   One accent (gold), one neutral family (zinc), always dark (no light theme).
   Shape rule: interactive controls are pills, cards are 20px, inputs are 12px. */

:root {
  color-scheme: dark;
  --bg: #0c0c0f;
  --bg-2: #111116;
  --surface: #17171d;
  --surface-2: #1e1e25;
  --line: rgb(255 255 255 / .09);
  --line-strong: rgb(255 255 255 / .16);
  --text: #f3f3f5;
  --muted: #a3a3ad;
  --faint: #73737d;
  --gold: #e3b54a;
  --gold-strong: #f0c862;
  --gold-text: #f0c862;
  --on-gold: #1b1406;
  --danger: #ff8a7a;
  --ok: #8fdc9c;
  --shadow: 0 24px 60px rgb(0 0 0 / .45);
  --radius-card: 20px;
  --radius-input: 12px;
  --font: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --ease: cubic-bezier(.16, 1, .3, 1);
}


* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0; background: var(--bg); color: var(--text); font-family: var(--font);
  font-size: 16px; line-height: 1.55; -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
button, input { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; white-space: nowrap;
  height: 48px; padding: 0 22px; border-radius: 999px; border: 1px solid transparent;
  font-weight: 600; font-size: .98rem; text-decoration: none; cursor: pointer;
  transition: transform .18s var(--ease), background-color .18s, border-color .18s, box-shadow .18s;
}
.btn:active { transform: scale(.97); }
.btn i { font-size: 1.15em; }
.btn-gold { background: var(--gold); color: var(--on-gold); box-shadow: 0 8px 24px rgb(227 181 74 / .22); }
.btn-gold:hover { background: var(--gold-strong); }
.btn-ghost { background: transparent; border-color: var(--line-strong); color: var(--text); }
.btn-ghost:hover { border-color: var(--text); }
.btn-sm { height: 38px; padding: 0 16px; font-size: .9rem; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .55; cursor: not-allowed; transform: none; }
.link { color: var(--gold-text); text-decoration: none; font-weight: 600; }
.link:hover { text-decoration: underline; }

/* ---------- nav ---------- */
.nav { position: sticky; top: 0; z-index: 20; backdrop-filter: blur(14px) saturate(160%); -webkit-backdrop-filter: blur(14px) saturate(160%);
  background: color-mix(in srgb, var(--bg) 78%, transparent); border-bottom: 1px solid var(--line); }
.nav .wrap { height: 68px; display: flex; align-items: center; gap: 28px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 700; letter-spacing: -.01em; white-space: nowrap; }
.brand-mark {
  width: 28px; height: 28px; border-radius: 50%; flex: none;
  background: radial-gradient(circle at 34% 30%, #fff1bf 0 8%, #e9bb4c 40%, #8a6212 100%);
  box-shadow: inset 0 -2px 4px rgb(0 0 0 / .25);
}
.nav-links { display: flex; gap: 22px; margin-left: 8px; }
.nav-links a { text-decoration: none; color: var(--muted); font-size: .95rem; font-weight: 500; }
.nav-links a:hover { color: var(--text); }
.nav-actions { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.avatar {
  width: 38px; height: 38px; border-radius: 50%; display: inline-grid; place-items: center; font-weight: 700; font-size: .85rem;
  background: var(--surface-2); border: 1px solid var(--line-strong); color: var(--text); cursor: pointer;
}
.menu { position: relative; }
.menu-panel {
  position: absolute; right: 0; top: calc(100% + 10px); min-width: 220px; padding: 8px; border-radius: 16px;
  background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow);
}
.menu-panel a, .menu-panel button {
  display: flex; align-items: center; gap: 10px; width: 100%; padding: 10px 12px; border: 0; border-radius: 10px;
  background: none; text-decoration: none; font-size: .95rem; cursor: pointer; text-align: left;
}
.menu-panel a:hover, .menu-panel button:hover { background: var(--surface-2); }
.menu-panel .menu-head { padding: 8px 12px 10px; border-bottom: 1px solid var(--line); margin-bottom: 6px; font-size: .85rem; color: var(--muted); }
.menu-panel .menu-head strong { display: block; color: var(--text); font-size: .95rem; }
@media (max-width: 760px) {
  .nav-links { display: none; }
  .nav .btn-ghost.hide-sm { display: none; }
}

/* ---------- hero ---------- */
.hero { position: relative; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: -20% -10% auto auto; width: 70vw; height: 70vw; max-width: 900px; max-height: 900px;
  background: radial-gradient(closest-side, rgb(227 181 74 / .18), transparent 70%); pointer-events: none;
}
.hero .wrap { position: relative; display: grid; grid-template-columns: 1.05fr .95fr; gap: 40px; align-items: center;
  min-height: calc(100dvh - 68px); max-height: 900px; padding-top: 48px; padding-bottom: 56px; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: .82rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-text); margin: 0 0 18px; }
.hero h1 { font-size: clamp(2.6rem, 5.6vw, 4.6rem); line-height: 1.02; letter-spacing: -.035em; margin: 0 0 20px; font-weight: 700; max-width: 12ch; }
.hero h1 em { font-style: italic; color: var(--gold-text); }
.hero .lede { font-size: clamp(1.05rem, 1.6vw, 1.25rem); color: var(--muted); max-width: 46ch; margin: 0 0 32px; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; }

/* poster fan */
.posters { position: relative; height: min(560px, 62vh); }
.poster {
  position: absolute; width: 46%; aspect-ratio: 2 / 3; border-radius: 16px; overflow: hidden; background: var(--surface-2);
  box-shadow: var(--shadow); border: 1px solid var(--line); transition: transform .5s var(--ease);
}
.poster img { width: 100%; height: 100%; object-fit: cover; }
.poster:nth-child(1) { left: 2%;  top: 14%; transform: rotate(-9deg); z-index: 1; }
.poster:nth-child(2) { left: 27%; top: 2%;  transform: rotate(-2deg); z-index: 3; }
.poster:nth-child(3) { left: 52%; top: 12%; transform: rotate(7deg);  z-index: 2; }
.poster:nth-child(4) { left: 14%; top: 46%; transform: rotate(4deg);  z-index: 4; width: 40%; }
.poster:nth-child(5) { left: 50%; top: 50%; transform: rotate(-6deg); z-index: 5; width: 40%; }
.posters:hover .poster:nth-child(1) { transform: rotate(-12deg) translate(-12px, -4px); }
.posters:hover .poster:nth-child(3) { transform: rotate(10deg) translate(12px, -4px); }
.posters:hover .poster:nth-child(4) { transform: rotate(2deg) translate(-8px, 8px); }
.posters:hover .poster:nth-child(5) { transform: rotate(-9deg) translate(10px, 8px); }
.poster.skeleton { background: linear-gradient(100deg, var(--surface) 30%, var(--surface-2) 50%, var(--surface) 70%); background-size: 200% 100%; animation: shimmer 1.4s linear infinite; }
@keyframes shimmer { to { background-position: -200% 0; } }

@media (max-width: 900px) {
  .hero .wrap { grid-template-columns: 1fr; min-height: 0; max-height: none; padding-top: 36px; gap: 28px; }
  .hero h1 { max-width: 14ch; }
  .posters { height: 380px; max-width: 460px; width: 100%; margin: 0 auto; }
}

/* ---------- entry motion ---------- */
@media (prefers-reduced-motion: no-preference) {
  .rise { opacity: 0; transform: translateY(18px); animation: rise .8s var(--ease) forwards; animation-delay: calc(var(--i, 0) * 90ms); }
  @keyframes rise { to { opacity: 1; transform: none; } }
  .reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
  .reveal.in { opacity: 1; transform: none; }
  .posters .poster { animation: deal .9s var(--ease) backwards; animation-delay: calc(200ms + var(--i, 0) * 110ms); }
  @keyframes deal { from { opacity: 0; translate: 0 40px; scale: .92; } }
}

/* ---------- countdown band ---------- */
.band { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--bg-2); }
.band .wrap { display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: center; padding-top: 28px; padding-bottom: 28px; }
.band h2 { margin: 0; font-size: clamp(1.15rem, 2vw, 1.45rem); letter-spacing: -.01em; font-weight: 600; }
.band p { margin: 4px 0 0; color: var(--muted); font-size: .95rem; }
.countdown { display: flex; gap: 10px; }
.countdown div { min-width: 74px; text-align: center; padding: 10px 8px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); }
.countdown b { display: block; font-family: var(--mono); font-size: 1.8rem; line-height: 1.1; font-variant-numeric: tabular-nums; }
.countdown span { font-size: .72rem; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }
@media (max-width: 760px) { .band .wrap { grid-template-columns: 1fr; } .countdown div { min-width: 0; flex: 1; } }

/* ---------- sections ---------- */
section.block { padding: clamp(64px, 9vw, 112px) 0; }
.h2 { font-size: clamp(2rem, 4vw, 3rem); line-height: 1.05; letter-spacing: -.03em; margin: 0 0 14px; font-weight: 700; max-width: 18ch; }
.sub { color: var(--muted); font-size: 1.1rem; margin: 0; max-width: 56ch; }

/* bento: play your way */
.bento { display: grid; grid-template-columns: 1.25fr 1fr; grid-template-rows: auto auto; gap: 16px; margin-top: 40px; }
.tile { border-radius: var(--radius-card); border: 1px solid var(--line); background: var(--surface); padding: 28px; position: relative; overflow: hidden; }
.tile h3 { margin: 0 0 8px; font-size: 1.45rem; letter-spacing: -.02em; }
.tile p { margin: 0; color: var(--muted); max-width: 40ch; }
.tile .ico { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; font-size: 1.4rem; margin-bottom: 18px; background: rgb(227 181 74 / .14); color: var(--gold-text); }
.tile-friends { grid-row: span 2; display: flex; flex-direction: column;
  background: radial-gradient(120% 90% at 100% 100%, rgb(227 181 74 / .22), transparent 60%), var(--surface); }
.invite-card { margin-top: auto; padding: 20px; border-radius: 16px; background: var(--bg); border: 1px solid var(--line-strong); max-width: 420px; }
.invite-card .lbl { font-size: .8rem; color: var(--muted); }
.invite-card .lname { font-weight: 700; font-size: 1.15rem; margin: 2px 0 14px; }
.invite-code { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.invite-code code { font-family: var(--mono); font-size: 1.15rem; letter-spacing: .14em; padding: 8px 12px; border-radius: 10px; background: var(--surface-2); border: 1px dashed var(--line-strong); }
.invite-faces { display: flex; margin-top: 16px; }
.invite-faces span { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font-size: .78rem; font-weight: 700; margin-left: -8px; border: 2px solid var(--bg); color: #1b1406; }
.invite-faces span:first-child { margin-left: 0; }
.mini-board { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 8px; }
.mini-board li { display: grid; grid-template-columns: 22px 1fr auto; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 12px; background: var(--bg); border: 1px solid var(--line); font-size: .95rem; }
.mini-board li:first-child { border-color: rgb(227 181 74 / .5); }
.mini-board .pos { font-family: var(--mono); color: var(--muted); font-size: .85rem; }
.mini-board .pts { font-family: var(--mono); font-weight: 600; }
.example-note { margin-top: 10px; font-size: .78rem; color: var(--faint); }
.stars-demo { display: flex; gap: 4px; margin-top: 18px; font-size: 1.5rem; color: var(--gold); }
.stars-demo i:nth-child(n+5) { color: var(--line-strong); }
@media (max-width: 860px) { .bento { grid-template-columns: 1fr; } .tile-friends { grid-row: auto; } }

/* how it works: sticky headline + steps */
.how { display: grid; grid-template-columns: .9fr 1.1fr; gap: 48px; align-items: start; }
.how-head { position: sticky; top: 100px; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.steps li { display: grid; grid-template-columns: 56px 1fr; gap: 18px; padding: 22px; border-radius: var(--radius-card); background: var(--surface); border: 1px solid var(--line); }
.steps i { width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; font-size: 1.6rem; background: var(--surface-2); color: var(--gold-text); }
.steps h3 { margin: 2px 0 4px; font-size: 1.25rem; letter-spacing: -.01em; }
.steps p { margin: 0; color: var(--muted); }
@media (max-width: 860px) { .how { grid-template-columns: 1fr; gap: 28px; } .how-head { position: static; } }

/* scoring */
.points { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 36px; }
.point { padding: 32px; border-radius: var(--radius-card); border: 1px solid var(--line); background: linear-gradient(180deg, var(--surface), var(--bg)); }
.point b { display: block; font-size: clamp(3.5rem, 8vw, 5.5rem); line-height: 1; letter-spacing: -.04em; color: var(--gold-text); font-family: var(--mono); font-weight: 600; }
.point h3 { margin: 16px 0 6px; font-size: 1.25rem; }
.point p { margin: 0; color: var(--muted); }
@media (max-width: 700px) { .points { grid-template-columns: 1fr; } }

/* categories marquee */
.marquee { overflow: hidden; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 22px 0; mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee-track { display: flex; gap: 14px; width: max-content; }
.marquee-track span { white-space: nowrap; padding: 10px 18px; border-radius: 999px; border: 1px solid var(--line-strong); color: var(--muted); font-size: .95rem; }
@media (prefers-reduced-motion: no-preference) { .marquee-track { animation: marquee 70s linear infinite; } .marquee:hover .marquee-track { animation-play-state: paused; } }
@keyframes marquee { to { transform: translateX(-50%); } }

/* final cta */
.finale { position: relative; overflow: hidden; border-radius: 28px; padding: clamp(40px, 7vw, 80px); background: var(--surface); border: 1px solid var(--line); }
.finale-bg { position: absolute; inset: 0; display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; opacity: .22; transform: rotate(-6deg) scale(1.25); pointer-events: none; }
.finale-bg img { width: 100%; aspect-ratio: 2 / 3; object-fit: cover; border-radius: 10px; }
.finale::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, var(--surface) 35%, transparent); pointer-events: none; }
.finale > *:not(.finale-bg) { position: relative; z-index: 1; }
.finale .h2 { max-width: 16ch; }
.finale .sub { margin-bottom: 28px; }

/* footer */
.footer { padding: 40px 0 56px; color: var(--faint); font-size: .88rem; }
.footer .wrap { display: flex; flex-wrap: wrap; gap: 16px 28px; align-items: center; justify-content: space-between; border-top: 1px solid var(--line); padding-top: 28px; }
.footer nav { display: flex; gap: 20px; }
.footer a { text-decoration: none; color: var(--muted); }
.footer a:hover { color: var(--text); }

/* ---------- auth pages ---------- */
.auth { min-height: 100dvh; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.auth-main { display: flex; flex-direction: column; padding: 28px clamp(20px, 5vw, 64px); }
.auth-main .brand { margin-bottom: auto; }
.auth-card { width: 100%; max-width: 420px; margin: 40px auto; }
.auth-card h1 { font-size: clamp(1.9rem, 3vw, 2.4rem); letter-spacing: -.03em; line-height: 1.1; margin: 0 0 10px; }
.auth-card .intro { color: var(--muted); margin: 0 0 28px; }
.auth-foot { margin-top: auto; color: var(--faint); font-size: .85rem; }
.auth-art { position: relative; overflow: hidden; background: var(--bg-2); border-left: 1px solid var(--line); }
.auth-art .art-grid { position: absolute; inset: -10%; display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; transform: rotate(-8deg); opacity: .9; }
.auth-art .art-grid img, .auth-art .art-grid div { width: 100%; aspect-ratio: 2 / 3; object-fit: cover; border-radius: 14px; background: var(--surface); }
.auth-art::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 30%, var(--bg) 92%); }
.auth-art blockquote { position: absolute; left: 40px; right: 40px; bottom: 40px; z-index: 1; margin: 0; font-size: clamp(1.4rem, 2.3vw, 2rem); font-weight: 700; letter-spacing: -.02em; line-height: 1.15; }
.auth-art blockquote span { display: block; margin-top: 10px; font-size: 1rem; font-weight: 500; color: var(--muted); letter-spacing: 0; }
@media (max-width: 900px) { .auth { grid-template-columns: 1fr; } .auth-art { display: none; } }

/* forms */
.field { display: grid; gap: 7px; margin-bottom: 18px; }
.field label { font-size: .9rem; font-weight: 600; }
.field .hint { font-size: .82rem; color: var(--muted); }
.field .err { font-size: .85rem; color: var(--danger); }
.input-wrap { position: relative; }
.input {
  width: 100%; height: 50px; padding: 0 16px; border-radius: var(--radius-input); border: 1px solid var(--line-strong);
  background: var(--surface); color: var(--text); font-size: 1rem; transition: border-color .15s, box-shadow .15s;
}
.input::placeholder { color: var(--faint); }
.input:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgb(227 181 74 / .22); }
.input[aria-invalid="true"] { border-color: var(--danger); }
.input-wrap .input { padding-right: 52px; }
.peek { position: absolute; right: 6px; top: 6px; width: 38px; height: 38px; border: 0; border-radius: 10px; background: none; color: var(--muted); cursor: pointer; display: grid; place-items: center; font-size: 1.2rem; }
.peek:hover { color: var(--text); background: var(--surface-2); }
.strength { display: flex; gap: 4px; margin-top: 2px; }
.strength span { flex: 1; height: 4px; border-radius: 4px; background: var(--line-strong); transition: background-color .2s; }
.strength[data-level="1"] span:nth-child(-n+1) { background: var(--danger); }
.strength[data-level="2"] span:nth-child(-n+2) { background: var(--gold); }
.strength[data-level="3"] span:nth-child(-n+3) { background: var(--ok); }
.form-row { display: flex; justify-content: space-between; align-items: center; margin: -6px 0 22px; font-size: .9rem; }
.alert { padding: 14px 16px; border-radius: 14px; font-size: .93rem; margin-bottom: 20px; border: 1px solid; }
.alert-error { color: var(--danger); border-color: color-mix(in srgb, var(--danger) 40%, transparent); background: color-mix(in srgb, var(--danger) 8%, transparent); }
.alert-ok { color: var(--ok); border-color: color-mix(in srgb, var(--ok) 40%, transparent); background: color-mix(in srgb, var(--ok) 8%, transparent); }
.alt-line { margin-top: 26px; text-align: center; color: var(--muted); font-size: .95rem; }
.state { text-align: left; }
.state .big-ico { width: 64px; height: 64px; border-radius: 20px; display: grid; place-items: center; font-size: 2rem; background: rgb(227 181 74 / .14); color: var(--gold-text); margin-bottom: 22px; }
.state .email-chip { display: inline-block; font-weight: 600; padding: 2px 10px; border-radius: 8px; background: var(--surface-2); border: 1px solid var(--line); }
.state-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.spinner { width: 22px; height: 22px; border-radius: 50%; border: 3px solid var(--line-strong); border-top-color: var(--gold); animation: spin .8s linear infinite; display: inline-block; vertical-align: middle; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .spinner, .poster.skeleton { animation: none; } }

/* ---------- app pages (leagues, join) ---------- */
.page { padding: 40px 0 80px; }
.page-head { display: flex; flex-wrap: wrap; gap: 16px; align-items: end; justify-content: space-between; margin-bottom: 28px; }
.page-head h1 { margin: 0; font-size: clamp(2rem, 4vw, 2.8rem); letter-spacing: -.03em; line-height: 1.05; }
.page-head p { margin: 6px 0 0; color: var(--muted); }
.layout { display: grid; grid-template-columns: 340px 1fr; gap: 20px; align-items: start; }
@media (max-width: 900px) { .layout { grid-template-columns: 1fr; } }
.panel { border-radius: var(--radius-card); border: 1px solid var(--line); background: var(--surface); padding: 22px; }
.panel + .panel { margin-top: 16px; }
.panel h2 { margin: 0 0 14px; font-size: 1.1rem; letter-spacing: -.01em; }
.inline-form { display: flex; gap: 8px; }
.inline-form .input { height: 44px; }
.inline-form .btn { height: 44px; }
.league-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.league-list a { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 14px 16px; border-radius: 14px; text-decoration: none; border: 1px solid var(--line); background: var(--bg); transition: border-color .15s; }
.league-list a:hover { border-color: var(--line-strong); }
.league-list a[aria-current="true"] { border-color: var(--gold); }
.league-list small { color: var(--muted); }
.empty { text-align: center; padding: 48px 20px; color: var(--muted); }
.empty i { font-size: 2.4rem; color: var(--gold-text); display: block; margin-bottom: 12px; }
.empty h3 { color: var(--text); margin: 0 0 6px; font-size: 1.2rem; }
.share { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 16px; border-radius: 16px; background: var(--bg); border: 1px dashed var(--line-strong); margin: 16px 0 22px; }
.share code { font-family: var(--mono); font-size: 1.05rem; letter-spacing: .12em; }
.share .share-url { flex: 1; min-width: 200px; color: var(--muted); font-size: .9rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.season-note { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: 14px; background: rgb(227 181 74 / .1); color: var(--text); font-size: .93rem; margin-bottom: 18px; }
.season-note i { color: var(--gold-text); font-size: 1.3rem; }
.board { width: 100%; border-collapse: separate; border-spacing: 0 8px; }
.board th { text-align: left; font-size: .78rem; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; padding: 0 12px; }
.board td { padding: 12px; background: var(--bg); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); vertical-align: middle; }
.board td:first-child { border-left: 1px solid var(--line); border-radius: 14px 0 0 14px; font-family: var(--mono); color: var(--muted); width: 44px; }
.board td:last-child { border-right: 1px solid var(--line); border-radius: 0 14px 14px 0; text-align: right; font-family: var(--mono); font-weight: 600; }
.board tr.you td { border-color: rgb(227 181 74 / .55); }
.who { display: flex; align-items: center; gap: 10px; }
.who .avatar { width: 34px; height: 34px; cursor: default; font-size: .78rem; }
.who small { display: block; color: var(--muted); font-size: .8rem; }
.pill { display: inline-flex; align-items: center; gap: 6px; font-size: .78rem; font-weight: 600; padding: 3px 10px; border-radius: 999px; background: var(--surface-2); color: var(--muted); }
.pill.ok { background: color-mix(in srgb, var(--ok) 15%, transparent); color: var(--ok); }
.pill.gold { background: rgb(227 181 74 / .16); color: var(--gold-text); }
.progress-text { font-family: var(--mono); font-size: .9rem; }
@media (max-width: 640px) { .board .col-progress { display: none; } }

/* toast */
.toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 20px); opacity: 0; z-index: 50; padding: 12px 18px; border-radius: 999px; background: var(--text); color: var(--bg); font-weight: 600; font-size: .92rem; box-shadow: var(--shadow); transition: opacity .25s, transform .35s var(--ease); pointer-events: none; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- shared dialogs / sheets (How it works on ballot and leagues) ---------- */
dialog { color: var(--text); }
dialog::backdrop { background: rgb(0 0 0 / .78); backdrop-filter: blur(4px); }
.sheet-close { width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line-strong); background: none; color: var(--text); cursor: pointer; font-size: .95rem; }
.sheet-close:hover { border-color: var(--text); }
@media (prefers-reduced-motion: no-preference) {
  .sheet[open] { animation: sheet-in .35s var(--ease); }
  @keyframes sheet-in { from { opacity: 0; transform: translateY(16px) scale(.97); } }
}
/* ---------- sheets (how it works, congrats, celebration) ---------- */
.sheet {
  width: min(640px, calc(100vw - 24px)); max-height: calc(100dvh - 32px); padding: 0; overflow: auto;
  border: 1px solid var(--line-strong); border-radius: var(--radius-card); background: var(--surface); color: var(--text);
  box-shadow: 0 30px 80px rgb(0 0 0 / .6);
}
.sheet-head { position: sticky; top: 0; z-index: 1; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 16px 22px; background: var(--surface-2); border-bottom: 1px solid var(--line-strong); }
.sheet-head h2 { margin: 0; font-size: 1.35rem; letter-spacing: -.02em; }
.sheet-body { padding: 22px; }
.sheet-foot { position: sticky; bottom: 0; display: flex; justify-content: flex-end; padding: 14px 22px; background: var(--surface-2); border-top: 1px solid var(--line-strong); }
.howto-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.howto-steps > li { display: grid; grid-template-columns: 44px 1fr; gap: 14px; padding: 14px; border-radius: 14px; background: var(--bg-2); border: 1px solid var(--line); }
.howto-steps > li > i { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; font-size: 1.4rem; background: rgb(227 181 74 / .16); color: var(--gold-text); }
.howto-steps h3 { margin: 2px 0 4px; font-size: 1.05rem; }
.howto-steps p { margin: 0; color: var(--muted); font-size: .94rem; }
.howto-steps strong { color: var(--text); }
.dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; vertical-align: middle; margin: 0 2px 0 4px; }
.dot.red { background: var(--danger); } .dot.yellow { background: var(--gold); } .dot.green { background: var(--ok); }
.sheet-note { display: flex; gap: 10px; align-items: flex-start; margin: 18px 0 0; padding: 12px 14px; border-radius: 12px; background: rgb(227 181 74 / .12); font-size: .9rem; }
.sheet-note i { color: var(--gold-text); font-size: 1.2rem; }


/* "Why the rating matters" box inside How it works */
.why { margin-top: 12px; padding: 12px 14px; border-radius: 12px; background: rgb(227 181 74 / .1); border: 1px solid rgb(227 181 74 / .35); }
.why h4 { display: flex; align-items: center; gap: 6px; margin: 0 0 8px; font-size: .92rem; color: var(--gold-text); }
.why ul { margin: 0; padding-left: 18px; display: grid; gap: 6px; }
.why li { display: list-item; color: var(--muted); font-size: .9rem; }
.why strong { color: var(--text); }

/* ---------- more imagery on the home page ---------- */
/* countdown band over a darkened film still */
.band { position: relative; overflow: hidden; }
.band .wrap { position: relative; z-index: 1; }
.band-bg { position: absolute; inset: 0; }
.band-bg img { width: 100%; height: 100%; object-fit: cover; object-position: center 40%; opacity: .55; }
.band-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgb(17 17 22 / .92) 25%, rgb(17 17 22 / .35) 65%, rgb(17 17 22 / .8)); }

/* contender rails: horizontal scroll-snap, aligned to the page gutter */
.rails-block .sub { margin-bottom: 8px; }
.rail-group { margin-top: 28px; }
.rail-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.rail-head h3 { display: flex; align-items: center; gap: 8px; margin: 0; font-size: 1.2rem; }
.rail-head h3 i { color: var(--gold-text); }
.rail-nav { display: flex; gap: 8px; }
.rail-btn { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line-strong); background: var(--surface); color: var(--text); display: grid; place-items: center; cursor: pointer; font-size: 1.05rem; }
.rail-btn:hover { border-color: var(--gold); color: var(--gold-text); }
.rail {
  display: grid; grid-auto-flow: column; grid-auto-columns: clamp(140px, 15vw, 190px); gap: 14px;
  overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain;
  padding: 4px max(20px, calc((100vw - 1200px) / 2 + 20px)) 18px; scroll-padding-inline: max(20px, calc((100vw - 1200px) / 2 + 20px));
  scrollbar-width: none;
}
.rail::-webkit-scrollbar { display: none; }
.rail-card { margin: 0; scroll-snap-align: start; display: block; color: var(--text); text-decoration: none; }
.rail-poster { aspect-ratio: 2 / 3; border-radius: 14px; overflow: hidden; background: var(--surface-2); border: 1px solid var(--line); box-shadow: 0 12px 30px rgb(0 0 0 / .35); transition: transform .35s var(--ease); }
.rail-poster img { width: 100%; height: 100%; object-fit: cover; }
.rail-card:hover .rail-poster { transform: translateY(-6px); }
.rail-card .rail-caption, .rail-card figcaption { margin-top: 10px; display: grid; gap: 1px; }
.rail-card strong { font-size: .92rem; line-height: 1.25; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rail-card span { font-size: .8rem; color: var(--muted); }
@media (max-width: 640px) { .rail-nav { display: none; } .rail { grid-auto-columns: 42vw; } }

/* bento tiles with a film still behind the content */
.tile-photo { isolation: isolate; }
.tile-bg { position: absolute; inset: 0; z-index: -1; }
.tile-bg img { width: 100%; height: 100%; object-fit: cover; opacity: .38; transition: transform 1.2s var(--ease); }
.tile-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgb(23 23 29 / .55) 0%, var(--surface) 78%); }
.tile-photo:hover .tile-bg img { transform: scale(1.04); }
.tile-friends.tile-photo { background: var(--surface); }

/* poster collage under "Four steps" */
.how-collage { position: relative; height: 260px; margin-top: 32px; max-width: 360px; }
.how-collage div { position: absolute; width: 44%; aspect-ratio: 2 / 3; border-radius: 14px; overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow); }
.how-collage img { width: 100%; height: 100%; object-fit: cover; }
.how-collage div:nth-child(1) { left: 14px; top: 18px; transform: rotate(-7deg); }
.how-collage div:nth-child(2) { left: 28%; top: 0; z-index: 2; }
.how-collage div:nth-child(3) { left: 56%; top: 22px; transform: rotate(6deg); }
@media (max-width: 860px) { .how-collage { display: none; } }
@media (prefers-reduced-motion: reduce) { .rail-poster, .tile-bg img { transition: none; } }

/* ---------- Trophy placements ---------- */
.point-trophy { position: relative; overflow: hidden; padding-right: 150px; }
.point-statuette { position: absolute; right: 26px; bottom: -40px; height: 250px; width: auto; filter: drop-shadow(0 18px 30px rgb(227 181 74 / .3)); pointer-events: none; }
@media (max-width: 700px) { .point-trophy { padding-right: 110px; } .point-statuette { height: 190px; right: 12px; } }

.finale-statuette { position: absolute; right: 7%; bottom: -24px; height: 118%; width: auto; z-index: 1;
  filter: drop-shadow(0 0 40px rgb(227 181 74 / .45)) drop-shadow(0 20px 30px rgb(0 0 0 / .6)); pointer-events: none; }
.finale::before { content: ""; position: absolute; right: 0; top: 0; bottom: 0; width: 45%; z-index: 1; pointer-events: none;
  background: radial-gradient(closest-side at 70% 60%, rgb(227 181 74 / .28), transparent); }
@media (max-width: 760px) { .finale-statuette { height: 70%; right: -4%; opacity: .45; } }

.state-statuette { display: block; height: 150px; width: auto; margin: 0 0 18px -6px; filter: drop-shadow(0 12px 26px rgb(227 181 74 / .35)); }
.empty .empty-statuette { display: block; height: 120px; width: auto; margin: 0 auto 14px; filter: drop-shadow(0 10px 22px rgb(227 181 74 / .3)); }

/* trophy in the ballot's congratulations / celebration popups */
.statuette-stage { position: relative; display: grid; place-items: center; height: 150px; }
.statuette-stage::before { content: ""; position: absolute; width: 150px; height: 150px; border-radius: 50%; background: radial-gradient(closest-side, rgb(227 181 74 / .35), transparent); }
.statuette-stage .statuette { position: relative; height: 140px; width: auto; filter: drop-shadow(0 12px 24px rgb(0 0 0 / .5)); }
.statuette-stage.big { height: 240px; }
.statuette-stage.big::before { width: 260px; height: 260px; }
.statuette-stage.big .statuette { height: 230px; }
@media (prefers-reduced-motion: no-preference) {
  .sheet[open] .statuette-stage .statuette { animation: statuette-rise .9s var(--ease) .1s backwards; }
  @keyframes statuette-rise { from { opacity: 0; transform: translateY(30px) scale(.85); } }
  .finale-statuette { animation: statuette-float 6s ease-in-out infinite; }
  @keyframes statuette-float { 50% { transform: translateY(-10px); } }
}
.finale > .finale-statuette { position: absolute; z-index: 1; }
/* Fade out the statuette's engraved base (no association name visible) and keep the globe in frame. */
.finale-statuette, .statuette, .state-statuette, .empty-statuette {
  -webkit-mask-image: linear-gradient(to bottom, #000 78%, transparent 91%);
          mask-image: linear-gradient(to bottom, #000 78%, transparent 91%);
}
.finale > .finale-statuette { height: 104%; bottom: -10%; }
/* A mask clips filters to the image box (visible rectangle), so masked statuettes get no drop-shadow;
   the glow comes from the radial gradients behind them instead. */
.finale-statuette, .statuette, .state-statuette, .empty-statuette { filter: none; }
.state-statuette, .empty-statuette { background: radial-gradient(closest-side, rgb(227 181 74 / .22), transparent 70%); }

/* ---------- Hollywood by Night wordmark: "Hollyw★od" over "BY NIGHT" ---------- */
.brand { gap: 0; }
.wordmark { display: inline-flex; flex-direction: column; align-items: center; line-height: 1; }
.wm-main { display: inline-flex; align-items: center; font-size: 1.32rem; font-weight: 800; letter-spacing: -.045em; color: var(--text); }
.wm-star { width: .8em; height: .8em; margin: .02em -.035em 0 -.02em; fill: var(--gold); flex: none; }
.wm-sub { display: flex; align-items: center; gap: 6px; width: 100%; margin-top: 3px; font-size: .58rem; font-weight: 600; letter-spacing: .34em;
  text-transform: uppercase; color: var(--gold-text); padding-left: .34em; }
.wm-sub::before, .wm-sub::after { content: ""; flex: 1; height: 1px; background: rgb(227 181 74 / .6); }
.brand:hover .wm-star { transform: rotate(72deg); transition: transform .5s var(--ease); }
@media (prefers-reduced-motion: reduce) { .brand:hover .wm-star { transform: none; } }

/* Legal pages (terms, privacy) */
.legal { max-width: 760px; }
.legal-head { margin-bottom: 32px; padding-bottom: 24px; border-bottom: 1px solid var(--line); }
.legal-head h1 { margin: 0 0 8px; font-size: clamp(2rem, 4vw, 2.8rem); letter-spacing: -.03em; line-height: 1.05; }
.legal-head p { margin: 0; color: var(--muted); }
.legal-toc { display: flex; flex-wrap: wrap; gap: 8px; margin: 20px 0 0; padding: 0; list-style: none; }
.legal-toc a { display: inline-block; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line-strong); color: var(--muted); text-decoration: none; font-size: .85rem; }
.legal-toc a:hover { color: var(--text); border-color: var(--text); }
.legal section { scroll-margin-top: 90px; margin-bottom: 36px; }
.legal h2 { font-size: 1.3rem; letter-spacing: -.01em; margin: 0 0 12px; }
.legal h3 { font-size: 1rem; margin: 20px 0 8px; }
.legal p, .legal li { color: #d4d4da; line-height: 1.7; }
.legal ul { padding-left: 1.2em; }
.legal li { margin-bottom: 6px; }
.legal a { color: var(--gold-text); }
.legal .summary { padding: 18px 20px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); margin-bottom: 32px; }
.legal .summary p { margin: 0; }
.legal table { width: 100%; border-collapse: collapse; font-size: .92rem; margin: 8px 0 12px; }
.legal th, .legal td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid var(--line); color: #d4d4da; }
.legal th { color: var(--text); font-weight: 600; }
.legal .table-scroll { overflow-x: auto; }
mark.todo { background: rgb(227 181 74 / .22); color: var(--gold-strong); padding: 0 4px; border-radius: 4px; }
.terms-note { margin: 14px 0 0; font-size: .82rem; color: var(--muted); text-align: center; }
.terms-note a { color: var(--muted); }
.auth-foot a { color: var(--muted); }

/* ---------- Contender page (/title/:slug) ---------- */
.title-page { min-height: 70vh; }
.tp-loading { display: flex; gap: 12px; align-items: center; justify-content: center; padding: 120px 20px; color: var(--muted); }
.tp-missing { text-align: center; display: grid; gap: 12px; justify-items: center; }
.tp-missing h1 { margin: 0; font-size: 2rem; letter-spacing: -.02em; }
.tp-missing p { margin: 0 0 8px; color: var(--muted); }

.tp-hero { position: relative; isolation: isolate; padding: 56px 0 48px; overflow: hidden; }
.tp-backdrop { position: absolute; inset: 0; z-index: -1; }
.tp-backdrop img { width: 100%; height: 100%; object-fit: cover; object-position: center 25%; opacity: .42; }
.tp-backdrop::after { content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, var(--bg) 8%, rgb(12 12 15 / .55) 55%, rgb(12 12 15 / .3)), linear-gradient(0deg, var(--bg) 2%, transparent 45%); }
.tp-hero-grid { display: grid; grid-template-columns: minmax(180px, 280px) 1fr; gap: 48px; align-items: end; }
.tp-poster { aspect-ratio: 2 / 3; border-radius: 16px; overflow: hidden; background: var(--surface-2); border: 1px solid var(--line-strong); box-shadow: var(--shadow); }
.tp-poster img { width: 100%; height: 100%; object-fit: cover; }
.tp-noposter, .tl-noposter { display: grid; place-items: center; height: 100%; padding: 16px; text-align: center; font-weight: 700; color: var(--muted);
  background: radial-gradient(circle at 50% 30%, rgb(227 181 74 / .16), transparent 70%), var(--surface-2); }
.tp-head { min-width: 0; padding-bottom: 6px; }
.tp-crumb { display: inline-flex; gap: 6px; align-items: center; color: var(--muted); text-decoration: none; font-size: .9rem; margin-bottom: 20px; }
.tp-crumb:hover { color: var(--text); }
.tp-head h1 { margin: 0; font-size: clamp(2.2rem, 5.5vw, 4.2rem); letter-spacing: -.035em; line-height: 1.02; text-wrap: balance; }
.tp-tagline { margin: 14px 0 0; font-size: 1.15rem; font-style: italic; color: var(--muted); max-width: 52ch; }
.tp-meta { display: flex; flex-wrap: wrap; gap: 8px; margin: 22px 0 0; padding: 0; list-style: none; }
.tp-meta li { padding: 6px 12px; border-radius: 999px; background: rgb(255 255 255 / .06); border: 1px solid var(--line-strong); font-size: .85rem; color: #d4d4da; }
.tp-meta li:first-child { color: var(--gold-text); border-color: rgb(227 181 74 / .4); background: rgb(227 181 74 / .1); }
.tp-rating { margin: 18px 0 0; color: var(--muted); font-size: .95rem; }
.tp-rating strong { color: var(--text); font-size: 1.15rem; }
.tp-star { color: var(--gold); margin-right: 6px; }
.tp-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

.tp-body { padding-bottom: 24px; }
.tp-section { padding-top: 40px; padding-bottom: 8px; scroll-margin-top: 80px; }
.tp-section h2 { margin: 0 0 18px; font-size: 1.45rem; letter-spacing: -.02em; }
.tp-muted { color: var(--muted); }

.tp-race { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; margin: 0; padding: 0; list-style: none; }
.tp-race li { display: grid; gap: 4px; align-content: start; padding: 16px 18px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); }
.tp-race-cat { font-size: .78rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--gold-text); }
.tp-race strong { font-size: 1.02rem; }
.tp-race-detail { font-size: .88rem; color: var(--muted); }
.tp-race .is-official { border-color: rgb(143 220 156 / .35); }
.tp-race .is-winner { border-color: rgb(227 181 74 / .6); background: linear-gradient(160deg, rgb(227 181 74 / .14), var(--surface) 60%); }
.tp-badge { display: inline-flex; gap: 6px; align-items: center; justify-self: start; margin-top: 6px; padding: 3px 10px; border-radius: 999px; font-size: .78rem; font-weight: 600; background: rgb(143 220 156 / .12); color: var(--ok); }
.is-winner .tp-badge { background: rgb(227 181 74 / .16); color: var(--gold-text); }

.tp-about { display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px; }
.tp-plot { margin: 0; font-size: 1.08rem; line-height: 1.7; color: #d4d4da; max-width: 65ch; }
.tp-facts { display: grid; grid-template-columns: auto 1fr; gap: 10px 20px; margin: 0; padding: 20px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); align-self: start; }
.tp-facts dt { color: var(--muted); font-size: .88rem; }
.tp-facts dd { margin: 0; font-size: .92rem; }

.tp-trailer { display: grid; grid-template-columns: 1fr 260px; gap: 14px; }
.tp-stage { aspect-ratio: 16 / 9; border-radius: 16px; overflow: hidden; background: #000; border: 1px solid var(--line); }
.tp-stage iframe { width: 100%; height: 100%; border: 0; display: block; }
.tp-play { position: relative; display: block; width: 100%; height: 100%; padding: 0; border: 0; background: none; cursor: pointer; }
.tp-play img { width: 100%; height: 100%; object-fit: cover; opacity: .85; transition: opacity .25s; }
.tp-play:hover img { opacity: 1; }
.tp-playicon { position: absolute; inset: 0; margin: auto; width: 74px; height: 74px; border-radius: 50%; display: grid; place-items: center;
  background: var(--gold); color: var(--on-gold); font-size: 30px; box-shadow: 0 10px 30px rgb(0 0 0 / .5); transition: transform .25s var(--ease); }
.tp-play:hover .tp-playicon { transform: scale(1.08); }
.tp-vids { display: grid; gap: 10px; align-content: start; max-height: 100%; overflow: auto; }
.tp-vid { display: grid; grid-template-columns: 112px 1fr; gap: 10px; align-items: center; padding: 6px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); color: var(--text); text-align: left; cursor: pointer; font: inherit; font-size: .84rem; }
.tp-vid img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 8px; }
.tp-vid[aria-pressed="true"] { border-color: var(--gold); }
.tp-vid:hover { border-color: var(--line-strong); }

.tp-cast { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 18px 14px; margin: 0; padding: 0; list-style: none; }
.tp-cast li { display: grid; gap: 2px; }
.tp-face { aspect-ratio: 1; border-radius: 50%; overflow: hidden; background: var(--surface-2); border: 2px solid var(--line); margin-bottom: 8px; display: grid; place-items: center; color: var(--muted); font-weight: 700; }
.tp-face img { width: 100%; height: 100%; object-fit: cover; }
.tp-cast strong { font-size: .92rem; }
.tp-cast span { font-size: .82rem; color: var(--muted); }
.tp-cast .is-nominee .tp-face { border-color: var(--gold); box-shadow: 0 0 0 4px rgb(227 181 74 / .15); }

.tp-providers { display: flex; flex-wrap: wrap; gap: 12px; margin: 0; padding: 0; list-style: none; }
.tp-providers li { display: flex; align-items: center; gap: 10px; padding: 8px 14px 8px 8px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); font-size: .9rem; }
.tp-providers img { width: 36px; height: 36px; border-radius: 8px; }
.tp-note { margin: 12px 0 0; font-size: .82rem; color: var(--faint); }

.tp-episodes { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; }
.tp-episodes li { padding: 16px 18px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); }
.tp-ep-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 16px; }
.tp-ep-head span { color: var(--muted); font-size: .85rem; }
.tp-episodes p { margin: 8px 0 10px; color: #d4d4da; font-size: .92rem; }
.tp-episodes audio { width: 100%; }

.tp-more { display: grid; grid-auto-flow: column; grid-auto-columns: 150px; gap: 16px; overflow-x: auto; padding-bottom: 12px; scroll-snap-type: x proximity; }
.tp-more-card { display: grid; gap: 2px; text-decoration: none; color: var(--text); scroll-snap-align: start; }
.tp-more-card .rail-poster { margin-bottom: 8px; }
.tp-more-card:hover .rail-poster { transform: translateY(-6px); }
.tp-more-card strong { font-size: .9rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tp-more-card span { font-size: .8rem; color: var(--muted); }

.tp-source { padding-top: 32px; padding-bottom: 8px; color: var(--faint); font-size: .82rem; }
.tp-links { display: flex; flex-wrap: wrap; gap: 8px; }
.tp-chip { display: inline-flex; gap: 6px; align-items: center; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line-strong); color: var(--muted); text-decoration: none; font-size: .85rem; }
.tp-chip:hover { color: var(--text); border-color: var(--text); }

@media (max-width: 860px) {
  .tp-hero { padding-top: 28px; }
  .tp-hero-grid { grid-template-columns: 120px 1fr; gap: 20px; align-items: start; }
  .tp-head h1 { font-size: clamp(1.8rem, 7vw, 2.4rem); }
  .tp-crumb { margin-bottom: 10px; }
  .tp-ctas, .tp-meta, .tp-rating, .tp-tagline { grid-column: 1 / -1; }
  .tp-about, .tp-trailer { grid-template-columns: 1fr; }
  .tp-vids { grid-auto-flow: column; grid-auto-columns: 220px; overflow-x: auto; }
}
@media (max-width: 520px) { .tp-hero-grid { grid-template-columns: 1fr; } .tp-poster { width: 150px; } }

/* ---------- All contenders (/titles) ---------- */
.tl-tools { display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.tl-filters { display: flex; flex-wrap: wrap; gap: 6px; padding: 4px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); }
.tl-filter { padding: 8px 16px; border-radius: 999px; border: 0; background: none; color: var(--muted); font: inherit; font-size: .9rem; font-weight: 500; cursor: pointer; }
.tl-filter:hover { color: var(--text); }
.tl-filter[aria-pressed="true"] { background: var(--gold); color: var(--on-gold); font-weight: 600; }
.tl-search { display: flex; align-items: center; gap: 8px; padding: 0 16px; height: 44px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line-strong); min-width: min(320px, 100%); }
.tl-search:focus-within { border-color: var(--gold); }
.tl-search i { color: var(--muted); }
.tl-search input { flex: 1; min-width: 0; border: 0; background: none; color: var(--text); font: inherit; outline: none; }
.tl-count { margin: 0 0 18px; color: var(--faint); font-size: .88rem; }
.tl-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 28px 18px; margin: 0; padding: 0; list-style: none; }
.tl-card { display: grid; gap: 3px; text-decoration: none; color: var(--text); }
.tl-poster { aspect-ratio: 2 / 3; border-radius: 14px; overflow: hidden; background: var(--surface-2); border: 1px solid var(--line); margin-bottom: 8px; transition: transform .35s var(--ease), border-color .2s; }
.tl-poster img { width: 100%; height: 100%; object-fit: cover; }
.tl-card:hover .tl-poster { transform: translateY(-6px); border-color: var(--line-strong); }
.tl-card strong { font-size: .95rem; line-height: 1.25; }
.tl-card span { font-size: .8rem; color: var(--muted); }
.tl-skel { aspect-ratio: 2 / 3; border-radius: 14px; background: linear-gradient(100deg, var(--surface) 30%, var(--surface-2) 50%, var(--surface) 70%); background-size: 200% 100%; animation: shimmer 1.4s linear infinite; }
.tl-empty { grid-column: 1 / -1; color: var(--muted); padding: 40px 0; }
@media (max-width: 520px) {
  .tl-grid { grid-template-columns: repeat(2, 1fr); } .tl-search { width: 100%; }
  .tl-filters { flex-wrap: nowrap; overflow-x: auto; max-width: 100%; scrollbar-width: none; }
  .tl-filter { white-space: nowrap; padding: 8px 14px; }
}
.tp-race-sub { margin: 28px 0 12px; font-size: .9rem; font-weight: 600; color: var(--muted); }
.tp-race-sub + .tp-race li { opacity: .75; }

/* Rotating hero headline: all lines share one grid cell, so the height never jumps. */
.hero h1.rotator { display: grid; max-width: 15ch; font-size: clamp(2.3rem, 4.6vw, 3.9rem); line-height: 1.06; padding-bottom: .08em; }
.rot-line { grid-area: 1 / 1; align-self: start; opacity: 0; transform: translateY(.35em); filter: blur(8px);
  transition: opacity .7s var(--ease), transform .7s var(--ease), filter .7s var(--ease); }
.rot-line.is-on { opacity: 1; transform: none; filter: none; }
.rot-line.is-out { opacity: 0; transform: translateY(-.35em); filter: blur(8px); }
@media (prefers-reduced-motion: reduce) { .rot-line { transition: none; } }

/* Cookie choice (Google Analytics) */
.consent { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 80; max-width: 460px; padding: 18px 20px; border-radius: 16px;
  background: var(--surface); border: 1px solid var(--line-strong); box-shadow: var(--shadow); display: grid; gap: 14px; }
.consent p { margin: 0; font-size: .92rem; line-height: 1.5; color: #d4d4da; }
.consent a { color: var(--gold-text); }
.consent-actions { display: flex; gap: 10px; justify-content: flex-end; }
@media (min-width: 700px) { .consent { right: auto; left: 24px; bottom: 24px; } }

/* ---------- Site search ---------- */
.nav-search { margin-left: auto; display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 12px 0 14px; border-radius: 999px;
  border: 1px solid var(--line-strong); background: rgb(255 255 255 / .04); color: var(--muted); font: inherit; font-size: .9rem; cursor: pointer; }
.nav-search:hover { color: var(--text); border-color: var(--text); }
.nav-search + .nav-actions { margin-left: 0; }
.nav-tools + .nav-search { margin-left: 0; }
@media (max-width: 760px) { .nav-search { width: 38px; padding: 0; justify-content: center; } .nav-search-label { display: none; } }
.search-dialog { width: min(640px, calc(100vw - 32px)); max-height: min(70vh, 640px); margin: 12vh auto auto; padding: 0; border-radius: 20px;
  border: 1px solid var(--line-strong); background: var(--surface); color: var(--text); box-shadow: var(--shadow); overflow: hidden; }
.search-dialog[open] { display: flex; flex-direction: column; }
.search-dialog::backdrop { background: rgb(5 5 8 / .7); backdrop-filter: blur(4px); }
.search-bar { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.search-bar > i { font-size: 1.25rem; color: var(--muted); }
.search-bar input { flex: 1; min-width: 0; border: 0; background: none; color: var(--text); font: inherit; font-size: 1.1rem; outline: none; }
.search-bar input::-webkit-search-cancel-button { display: none; }
.search-close { border: 1px solid var(--line-strong); background: none; color: var(--faint); border-radius: 8px; font: inherit; font-size: .75rem; padding: 3px 8px; cursor: pointer; }
.search-results { list-style: none; margin: 0; padding: 8px; overflow-y: auto; }
.search-results a { display: flex; align-items: center; gap: 14px; padding: 8px 10px; border-radius: 12px; text-decoration: none; color: var(--text); }
.search-results a[aria-selected="true"], .search-results a:hover { background: var(--surface-2); }
.sr-thumb { flex: none; width: 40px; height: 60px; border-radius: 8px; overflow: hidden; background: var(--surface-2); display: grid; place-items: center; color: var(--muted); }
.sr-thumb img { width: 100%; height: 100%; object-fit: cover; }
.sr-person { height: 40px; border-radius: 50%; color: var(--gold-text); background: rgb(227 181 74 / .12); }
.sr-text { display: grid; gap: 2px; min-width: 0; }
.sr-text strong { font-size: .98rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sr-text span { font-size: .82rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.search-empty, .search-hint { padding: 14px 18px; margin: 0; color: var(--muted); font-size: .9rem; }
.search-hint[hidden] { display: none; }
.search-tip { display: block; margin-top: 6px; color: var(--faint); }
.search-tip kbd { font-family: var(--mono); font-size: .75rem; padding: 1px 6px; border-radius: 6px; border: 1px solid var(--line-strong); color: var(--muted); }
@media (hover: none), (pointer: coarse) { .search-tip { display: none; } }
@media (max-width: 640px) { .search-dialog { width: 100vw; max-width: 100vw; max-height: 100dvh; height: 100dvh; margin: 0; border-radius: 0; } }

/* "Finish your ballot" banner under the nav */
.ballot-banner { border-bottom: 1px solid rgb(227 181 74 / .3); background: linear-gradient(90deg, rgb(227 181 74 / .14), rgb(227 181 74 / .05)); }
.ballot-banner .wrap { display: flex; align-items: center; gap: 14px; padding-top: 10px; padding-bottom: 10px; }
.ballot-banner p { margin: 0; flex: 1; font-size: .92rem; color: var(--text); }
.bb-progress { flex: none; width: 64px; height: 6px; border-radius: 999px; background: rgb(255 255 255 / .12); overflow: hidden; }
.bb-progress i { display: block; height: 100%; background: var(--gold); border-radius: inherit; }
.bb-close { flex: none; border: 0; background: none; color: var(--muted); font-size: 1rem; cursor: pointer; padding: 4px 6px; }
.bb-close:hover { color: var(--text); }
@media (max-width: 640px) { .ballot-banner .wrap { flex-wrap: wrap; gap: 8px 12px; } .ballot-banner p { flex-basis: calc(100% - 90px); order: -1; } .bb-progress { display: none; } }

/* audience scores: chip on contender posters, sort control, Audience Top 25 page */
.tl-poster { position: relative; }
.tl-card .tl-score { position: absolute; top: 8px; left: 8px; z-index: 1; display: inline-flex; align-items: center; gap: 3px; padding: 3px 8px; border-radius: 999px;
  font-family: var(--mono); font-size: .75rem; font-weight: 600; color: var(--text); background: rgb(12 12 15 / .82); border: 1px solid rgb(255 255 255 / .12); backdrop-filter: blur(6px); }
.tl-score i { font-style: normal; color: var(--gold); }
.tl-right { display: flex; gap: 10px; align-items: center; }
.tl-right .tl-search { width: 320px; min-width: 0; }
.tl-sort { display: flex; align-items: center; gap: 8px; height: 44px; padding: 0 6px 0 16px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line-strong); color: var(--muted); font-size: .88rem; }
.tl-sort:focus-within { border-color: var(--gold); }
.tl-sort select { border: 0; background: none; color: var(--text); font: inherit; font-weight: 600; padding: 0 8px; height: 100%; cursor: pointer; outline: none; }
.tl-sort select option { background: var(--surface); color: var(--text); }
.au-back { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line-strong); color: var(--text); text-decoration: none; font-weight: 600; font-size: .9rem; white-space: nowrap; }
.au-back i { color: var(--gold); }
.au-back:hover { border-color: var(--gold); }
.tl-tools.au-page-filters { justify-content: flex-start; }
.au-list { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 8px; counter-reset: none; }
.au-list[hidden] { display: none; }
.au-row { display: grid; grid-template-columns: 44px 52px minmax(0, 1fr) minmax(120px, 200px); align-items: center; gap: 16px; padding: 10px 18px 10px 10px; border-radius: 16px;
  background: var(--surface); border: 1px solid var(--line); color: var(--text); text-decoration: none; transition: border-color .2s, transform .25s var(--ease); }
.au-row:hover { border-color: var(--line-strong); transform: translateX(3px); }
.au-rank { font-family: var(--mono); font-size: 1.3rem; font-weight: 600; color: var(--faint); text-align: center; }
.au-list li:nth-child(-n+3) .au-rank { color: var(--gold); }
.au-thumb { width: 52px; aspect-ratio: 2 / 3; border-radius: 8px; overflow: hidden; background: var(--surface-2); }
.au-thumb img { width: 100%; height: 100%; object-fit: cover; }
.au-main { display: grid; gap: 2px; min-width: 0; }
.au-main strong { font-size: 1.02rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.au-main span { font-size: .82rem; color: var(--muted); }
.au-score { display: grid; grid-template-columns: auto 1fr; align-items: baseline; gap: 2px 10px; }
.au-score b { font-family: var(--mono); font-size: 1.15rem; }
.au-score b i { font-style: normal; color: var(--gold); margin-right: 3px; }
.au-score small { color: var(--faint); font-size: .76rem; text-align: right; }
.au-bar { grid-column: 1 / -1; height: 4px; border-radius: 999px; background: var(--surface-2); overflow: hidden; }
.au-bar i { display: block; height: 100%; border-radius: inherit; background: var(--gold); }
.au-note { margin: 22px 0 0; color: var(--faint); font-size: .85rem; max-width: 70ch; }
.au-note a { color: var(--muted); }
@media (max-width: 640px) {
  .au-row { grid-template-columns: 28px 44px minmax(0, 1fr); gap: 12px; padding-right: 14px; }
  .au-score { grid-column: 2 / -1; }
  .au-rank { font-size: 1.05rem; }
  .tl-right { width: 100%; flex-wrap: wrap; } .tl-sort, .tl-right .tl-search { width: 100%; } .tl-sort select { flex: 1; }
}

/* studios and networks: linked chips on title pages, the index list */
.tp-meta li.tp-studio { padding: 0; }
.tp-studio a { display: block; padding: 6px 12px; color: var(--text); text-decoration: none; font-weight: 600; }
.tp-studio a:hover { color: var(--gold-text); }
.tp-race-detail a { color: inherit; text-decoration: underline; text-decoration-color: var(--line-strong); text-underline-offset: 3px; }
.tp-race-detail a:hover { color: var(--gold-text); text-decoration-color: currentColor; }
.page-links { display: flex; flex-wrap: wrap; gap: 8px; }
.st-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; }
@media (max-width: 640px) { .st-list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.st-list a { display: grid; gap: 4px; align-content: start; height: 100%; padding: 16px 18px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); color: var(--text); text-decoration: none; transition: border-color .2s; }
.st-list a:hover { border-color: var(--gold); }
.st-list strong { font-size: 1rem; }
.st-list span { color: var(--faint); font-size: .82rem; white-space: nowrap; }
