:root {
  --bg: #000;
  --panel: rgba(12, 10, 22, 0.78);
  --panel-solid: #13101f;
  --line: rgba(255, 255, 255, 0.1);
  --line-strong: rgba(255, 255, 255, 0.2);
  --ink: #ffffff;
  --muted: #b4aec2;
  --faint: #8a84a0;
  --gold: #f5c84c;
  --cyan: #3df5ff;
  --red: #ff3b5c;
  --ok: #4ade80;
  --bad: #ff6b6b;
  --tier-perfection: #c9a2ff;
  --tier-goforit: #4ade80;
  --tier-timepass: #fbbf24;
  --tier-skip: #f87171;
  --radius: 18px;
  --display: 'Schibsted Grotesk', system-ui, sans-serif;
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
  --accent: #e8b647;
  --caps: 'Schibsted Grotesk', system-ui, sans-serif;
  --voice: 'Schibsted Grotesk', system-ui, sans-serif;
  --champagne: #e9d3a4;
  --body: 'Schibsted Grotesk', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  color-scheme: dark;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; min-height: 100%; }
body {
  background: var(--bg);
  color: var(--ink);
  font: 15px/1.5 var(--body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; }
button { font: inherit; color: inherit; cursor: pointer; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

/* ---------- Arena: one-of-each cast around the black hole ---------- */
.arena { position: fixed; inset: 0; z-index: 0; overflow: hidden; background: #000; }
.scene { position: absolute; inset: 0; width: 100%; height: 100%; display: block; transition: opacity 0.8s ease, filter 0.8s ease; }
.arena[data-mode='focus'] .scene { opacity: 0.85; }
.arena[data-mode='results'] .scene { opacity: 0.32; filter: saturate(0.7); }
.arena[data-mode='results'] .actor { pointer-events: none; }
.vignette { position: absolute; inset: 0; pointer-events: none; background: radial-gradient(120% 90% at 50% 50%, transparent 55%, rgba(0, 0, 0, 0.8) 100%); }
.grain {
  position: absolute; inset: -50%; pointer-events: none; opacity: 0.06; mix-blend-mode: screen;
  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='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 0.9s steps(6) infinite;
}
@keyframes grain { 0% { transform: translate(0, 0); } 33% { transform: translate(-3%, 2%); } 66% { transform: translate(2%, -3%); } 100% { transform: translate(-1%, 1%); } }
.matrix { position: absolute; top: 0; z-index: 2; pointer-events: none; mix-blend-mode: screen; }
.actor { cursor: pointer; }
.actor:hover { filter: brightness(1.18); }
.arena.shake { animation: shake 0.65s linear; }
@keyframes shake {
  10% { transform: translate(-7px, 3px); } 20% { transform: translate(8px, -5px); } 30% { transform: translate(-9px, 2px); }
  40% { transform: translate(7px, 5px); } 50% { transform: translate(-5px, -3px); } 60% { transform: translate(5px, 2px); }
  80% { transform: translate(2px, 1px); } 100% { transform: none; }
}

.star { animation-name: twinkle; animation-timing-function: ease-in-out; animation-iteration-count: infinite; animation-direction: alternate; }
@keyframes twinkle { to { opacity: 0.08; } }

/* Gargantua */
.bh { transition: filter 0.8s ease; }
.bh-disk { transform-box: fill-box; transform-origin: center; animation: diskIn 2.4s cubic-bezier(.2,.8,.2,1) 0.1s both, disk 6s ease-in-out 2.5s infinite alternate; }
@keyframes diskIn { from { transform: scaleX(0.04); opacity: 0; } 40% { opacity: 1; } }
.scene { animation: sceneIn 1.8s ease both; }
@keyframes sceneIn { from { opacity: 0; } }
.l-cast, .l-mini { animation: fadeIn 1.4s ease 1.1s both; }
@keyframes disk { from { opacity: 0.82; } to { opacity: 1; } }
.bh-flow { animation: bhflow 7s linear infinite; }
.bh-flow.slow { animation-duration: 13s; animation-direction: reverse; }
@keyframes bhflow { to { stroke-dashoffset: -600; } }
.arena[data-mode='focus'] .bh { filter: brightness(1.15); }
.arena[data-mode='loading'] .bh { filter: brightness(1.45) saturate(1.2); }
.arena[data-mode='loading'] .bh-flow { animation-duration: 1.4s; }
.arena[data-mode='loading'] .bh-flow.slow { animation-duration: 2.4s; }
.bh.pulse { animation: bhpulse 0.5s ease-out; }
@keyframes bhpulse { 30% { filter: brightness(1.5); } }


/* Mini cast moves */
.mini { cursor: pointer; }
.boop { transform-box: fill-box; transform-origin: 50% 100%; }
.boop.booped { animation: boop 0.5s cubic-bezier(.3,1.6,.5,1); }
@keyframes boop { 40% { transform: translateY(-14px) scale(1.25); } }
.mv-wheel, .mv-roll, .mv-spinfast, .mv-spinslow { transform-box: fill-box; transform-origin: center; animation: spin360 0.5s linear infinite; }
.mv-roll { animation-duration: 0.8s; }
.mv-spinfast { animation-duration: 0.35s; }
.mv-spinslow { animation-duration: 0.6s; }
@keyframes spin360 { to { transform: rotate(360deg); } }
.mv-pedal { transform-box: fill-box; transform-origin: 30% 0%; animation: pedal 0.35s ease-in-out infinite alternate; }
@keyframes pedal { to { transform: rotate(14deg); } }
.mv-bob { animation: mbob 0.9s ease-in-out infinite alternate; }
@keyframes mbob { to { transform: translateY(-3px); } }
.mv-wave { transform-box: fill-box; transform-origin: 0% 100%; animation: mwave 0.35s ease-in-out infinite alternate; }
@keyframes mwave { to { transform: rotate(-28deg); } }
.mv-legs .leg1, .mv-legs .leg2 { transform-box: fill-box; transform-origin: 50% 0%; animation: mleg 0.18s ease-in-out infinite alternate; }
.mv-legs .leg2 { animation-direction: alternate-reverse; }
@keyframes mleg { from { transform: rotate(-28deg); } to { transform: rotate(28deg); } }
.mv-scurry { animation: scurry 0.14s ease-in-out infinite alternate; }
.mv-scurry.slow { animation-duration: 0.2s; }
@keyframes scurry { to { transform: translateY(-3px); } }
.mv-tiptoe { animation: tiptoe 1.2s ease-in-out infinite; }
@keyframes tiptoe { 0%, 100% { transform: translateY(0); } 25% { transform: translateY(-4px) rotate(-2deg); } 50% { transform: translateY(0); } 75% { transform: translateY(-4px) rotate(2deg); } }
.mv-waddle { transform-box: fill-box; transform-origin: 50% 100%; animation: waddle 0.32s ease-in-out infinite alternate; }
@keyframes waddle { from { transform: rotate(-5deg); } to { transform: rotate(5deg); } }
.mv-blink { animation: blink 0.8s steps(1) infinite; }
.mv-tilt { transform-box: fill-box; transform-origin: 50% 100%; animation: mtilt 2.4s ease-in-out infinite; }
@keyframes mtilt { 30% { transform: rotate(-10deg); } 60% { transform: rotate(8deg); } }
.mv-flap { transform-box: fill-box; transform-origin: 90% 90%; animation: mflap 0.22s ease-in-out infinite alternate; }
.mv-flap.b { transform-origin: 10% 90%; }
@keyframes mflap { to { transform: scaleY(0.25); } }
.mv-swim { animation: mbob 0.5s ease-in-out infinite alternate; }
.mv-carpet { transform-box: fill-box; transform-origin: center; animation: carpet 0.6s ease-in-out infinite alternate; }
@keyframes carpet { from { transform: skewX(-10deg); } to { transform: skewX(8deg) translateY(-1px); } }
.mv-wobble { transform-box: fill-box; transform-origin: 50% 100%; animation: wobble 1.1s ease-in-out infinite alternate; }
@keyframes wobble { from { transform: scale(1, 1) rotate(-4deg); } to { transform: scale(1.06, 0.94) rotate(4deg); } }
.mv-scuttle { animation: scurry 0.12s linear infinite alternate; }
.mv-hop { animation: hop 0.5s cubic-bezier(.3,0,.7,1) infinite alternate; }
@keyframes hop { to { transform: translateY(-9px); } }
.mv-kick { transform-box: fill-box; transform-origin: 50% 100%; animation: kick 1.4s ease-in-out infinite; }
@keyframes kick { 0%, 100% { transform: none; } 40% { transform: rotate(-12deg) translateY(-6px); } 55% { transform: rotate(6deg); } }
.doll-head { transform-box: fill-box; transform-origin: 50% 100%; }
.doll-face { animation: dollTurn 3s steps(1) infinite; }
@keyframes dollTurn { 0%, 45% { opacity: 0; } 46%, 100% { opacity: 1; } }
.nose { transform-box: fill-box; transform-origin: 0% 50%; animation: nose 2.6s ease-in-out infinite; }
@keyframes nose { 0%, 30% { transform: scaleX(1); } 70%, 100% { transform: scaleX(3.2); } }
.snap-thumb { transform-box: fill-box; transform-origin: 0% 100%; animation: snap 1s ease-in infinite; }
@keyframes snap { 0%, 75% { transform: none; } 85% { transform: rotate(-35deg); } 100% { transform: none; } }

/* Bar perchers */
.perch { cursor: pointer; }
.pv-head { transform-box: fill-box; transform-origin: 50% 100%; transition: transform 0.6s cubic-bezier(.3,.7,.3,1); }
.miles.look .pv-head { transform: rotate(-14deg); }
.gwen.look .pv-head { transform: rotate(14deg); }
.pv-wave { transform-box: fill-box; transform-origin: 0% 0%; }
.waving .pv-wave { animation: gwenWave 0.4s ease-in-out 4 alternate; }
@keyframes gwenWave { to { transform: rotate(-40deg); } }
.pv-legs { transform-box: fill-box; transform-origin: 50% 0%; animation: dangle 1.3s ease-in-out infinite alternate; }
@keyframes dangle { from { transform: rotate(-7deg); } to { transform: rotate(7deg); } }
.pv-munch { transform-box: fill-box; transform-origin: 100% 100%; animation: munch 2.4s ease-in-out infinite; }
@keyframes munch { 0%, 55%, 100% { transform: rotate(0); } 70%, 85% { transform: rotate(-38deg) translate(-4px, -2px); } }
.pv-eye { animation: eyeLook 5s ease-in-out infinite; }
@keyframes eyeLook { 0%, 40% { transform: translateX(0); } 50%, 80% { transform: translateX(-3px); } }

/* Resident cast idles */
.gz-breathe { transform-box: fill-box; transform-origin: 50% 100%; animation: gzBreathe 4.6s ease-in-out infinite; }
@keyframes gzBreathe { 50% { transform: scale(1.012, 1.02) rotate(-0.6deg); } }
.charging .spine { animation: charge 1.2s ease-in both; }
@keyframes charge { 0% { opacity: 0.45; } 100% { opacity: 1; fill: #f0ffff; } }
.charging .gz-head { animation: gzCharge 1.25s ease-in-out forwards; }
@keyframes gzCharge { 60% { transform: rotate(-12deg) translateY(-6px); } 100% { transform: rotate(-5deg); } }
.firing .spine { animation: none; opacity: 1; fill: #f0ffff; }
.firing .gz-head { animation: none; transform: rotate(-5deg); }
.vd-breathe { transform-box: fill-box; transform-origin: 50% 100%; animation: vdBreathe 3.4s ease-in-out infinite; }
@keyframes vdBreathe { 45% { transform: scale(1.01, 1.018); } }
.v-saber { transform-box: fill-box; transform-origin: 96% 96%; animation: saberIdle 6s ease-in-out infinite; }
@keyframes saberIdle { 50% { transform: rotate(4deg); } }
.blocking .v-saber { animation: block 0.11s linear infinite alternate; }
@keyframes block { from { transform: rotate(-1.6deg); } to { transform: rotate(1.4deg) translate(1px, 1px); } }
.alert .bm-cape { animation: capeSpread 1.2s ease-out, cape 0.5s ease-in-out 1.2s infinite alternate; }
.groot-dance { animation-duration: var(--tempo, 0.6s) !important; }
.groot-head, .groot-arm-l, .groot-arm-r { animation-duration: calc(var(--tempo, 0.6s) / 2) !important; }
.resting .groot-dance { animation: lookAround 1.8s ease-in-out infinite !important; }
.resting .groot-arm-l, .resting .groot-arm-r { animation-play-state: paused; }
@keyframes lookAround { 0%, 100% { transform: rotate(0); } 30% { transform: rotate(-7deg); } 70% { transform: rotate(6deg); } }

/* Godzilla vs Vader */
.spine { animation: spine 1.6s ease-in-out infinite; }
@keyframes spine { 0%, 100% { opacity: 0.5; } 50% { opacity: 1; } }
.gz-head { transform-box: fill-box; transform-origin: 20% 80%; animation: gzhead 3s ease-in-out infinite; }
@keyframes gzhead { 50% { transform: rotate(-3deg); } }
.roaring .gz-head { animation: gzroar 1.2s ease-in-out; }
@keyframes gzroar { 30%, 80% { transform: rotate(-12deg) translateY(-6px); } }
.roaring .spine { animation-duration: 0.2s; }
.gz-mouth { animation: glowPulse 0.25s ease-in-out infinite alternate; }
@keyframes glowPulse { to { opacity: 0.15; } }
.beam-outer { animation: beamOuter 0.18s ease-in-out infinite alternate; }
@keyframes beamOuter { from { opacity: 0.18; } to { opacity: 0.45; } }
.beam-mid { animation: beamMid 0.12s linear infinite alternate; }
@keyframes beamMid { from { stroke-width: 4; } to { stroke-width: 7; } }
.beam-flow { animation: flow 0.35s linear infinite; }
@keyframes flow { to { stroke-dashoffset: -15; } }
.burst .beam-outer { stroke-width: 30; opacity: 0.6; animation: none; }
.burst .beam-mid { stroke-width: 13; animation: none; }
.saber { transform-box: fill-box; transform-origin: 90% 92%; }
.saber-glow { animation: beamOuter 0.09s linear infinite alternate; }
.burst .saber, .swing .saber { animation: swing 0.9s cubic-bezier(.3,.7,.3,1); }
.saber-idle { transform-origin: 100% 100%; animation: idleSaber 2.6s ease-in-out infinite; }
@keyframes idleSaber { 50% { transform: rotate(12deg); } }
@keyframes swing { 25% { transform: rotate(-40deg); } 55% { transform: rotate(18deg); } 80% { transform: rotate(-6deg); } }
.clash-glow { transform-box: fill-box; transform-origin: center; animation: clash 0.22s ease-in-out infinite alternate; }
@keyframes clash { from { transform: scale(0.7); } to { transform: scale(1.3); } }
.vl { animation: blink 1.4s steps(1) infinite; }
.vl-2 { animation-delay: 0.45s; }
.vl-3 { animation-delay: 0.9s; }
@keyframes blink { 50% { opacity: 0.1; } }
.gz-stomp { transform-box: fill-box; transform-origin: 50% 100%; animation: stomp 1.6s ease-in-out infinite; }
@keyframes stomp { 0%, 100% { transform: none; } 20% { transform: rotate(-3deg) translateY(-3px); } 40% { transform: none; } 60% { transform: rotate(3deg) translateY(-3px); } 80% { transform: none; } }
.gz-puff { opacity: 0; transform-box: fill-box; transform-origin: 0% 50%; animation: puff 3.2s ease-out infinite; }
@keyframes puff { 0%, 60% { opacity: 0; transform: scaleX(0.2); } 70% { opacity: 1; transform: scaleX(1); } 85%, 100% { opacity: 0; transform: scaleX(1.2); } }
.roaring .gz-puff { animation: none; opacity: 1; transform: scaleX(1.6); }

/* Spider-Man */
.spidey-swing { transform-box: fill-box; transform-origin: 50% 0%; animation: pendulum 1.6s ease-in-out infinite alternate; }
@keyframes pendulum { from { transform: rotate(-9deg); } to { transform: rotate(9deg); } }

/* Batman, Bat-Signal, bats */
.bm-cape { transform-box: fill-box; transform-origin: 50% 0%; animation: cape 0.9s ease-in-out infinite alternate; }
@keyframes cape { from { transform: skewX(-8deg) scaleX(0.95); } to { transform: skewX(7deg) scaleX(1.06); } }
.spread .bm-cape { animation: capeSpread 1.1s ease-out; }
@keyframes capeSpread { 30%, 70% { transform: scale(1.8, 1.3); } }
.bs-glow { animation: signal 2.6s ease-in-out infinite; }
@keyframes signal { 0%, 100% { opacity: 0.85; } 8% { opacity: 0.35; } 10% { opacity: 0.95; } 55% { opacity: 0.65; } 57% { opacity: 1; } }
.flash .bs-glow { animation: none; opacity: 1; filter: brightness(1.6); }
.bat-flap { transform-box: fill-box; transform-origin: center; animation: flap 0.25s ease-in-out infinite alternate; }
@keyframes flap { to { transform: scale(0.13, 0.05); } }
.v-bats .bat-flap { animation-name: flapBig; }
@keyframes flapBig { to { transform: scaleY(0.35); } }
.bat-drift { transform-box: fill-box; animation: drift 3s ease-in-out infinite alternate; }
@keyframes drift { from { transform: translate(-6px, 4px); } to { transform: translate(8px, -6px); } }
.scatter .bat-drift { animation: scatter 1.6s ease-in-out; }
@keyframes scatter { 40% { transform: translate(40px, -50px); opacity: 0; } 60% { transform: translate(-40px, -30px); opacity: 0; } 100% { transform: none; opacity: 1; } }

/* Iron Man */
.im-hover { transform-box: fill-box; animation: hover 2.4s ease-in-out infinite alternate; }
@keyframes hover { from { transform: translateY(-6px); } to { transform: translateY(6px); } }
.flame { transform-box: fill-box; transform-origin: 50% 0%; animation: flame 0.12s ease-in-out infinite alternate; }
.flame-b { animation-delay: 0.06s; }
@keyframes flame { from { transform: scaleY(0.7) scaleX(0.9); opacity: 0.8; } to { transform: scaleY(1.15); opacity: 1; } }
.reactor { transform-box: fill-box; transform-origin: center; animation: reactor 1.4s ease-in-out infinite; }
@keyframes reactor { 50% { transform: scale(1.3); } }
.repulsor { animation: glowPulse 0.6s ease-in-out infinite alternate; }
.boost .im-hover { animation: boost 1.2s cubic-bezier(.2,.8,.3,1); }
@keyframes boost { 35% { transform: translateY(-40px) rotate(-6deg); } 100% { transform: none; } }

/* Baby Groot */
.groot-dance { transform-box: fill-box; transform-origin: 50% 100%; animation: groove 0.6s ease-in-out infinite alternate; }
@keyframes groove { from { transform: rotate(-12deg); } to { transform: rotate(12deg) translateY(-8px); } }
.groot-arm-l, .groot-arm-r { transform-box: fill-box; animation: wave 0.3s ease-in-out infinite alternate; }
.groot-arm-l { transform-origin: 100% 100%; }
.groot-arm-r { transform-origin: 0% 100%; animation-delay: 0.3s; }
@keyframes wave { to { transform: rotate(-28deg); } }
.groot-head { transform-box: fill-box; transform-origin: 50% 100%; animation: groove 0.3s ease-in-out infinite alternate; }
.spin .groot-dance { animation: grootSpin 1.3s ease-in-out !important; }
@keyframes grootSpin { 60% { transform: rotate(360deg) translateY(-40px); } 100% { transform: rotate(360deg); } }

/* Minions */
.minion-run { animation: runMini 6s linear infinite; }
@keyframes runMini { 0% { transform: translateX(-46px); } 46%, 50% { transform: translateX(46px); } 96%, 100% { transform: translateX(-46px); } }
.minion-flip { transform-box: fill-box; transform-origin: 50% 50%; animation: flip 6s steps(1) infinite; }
@keyframes flip { 0% { transform: scaleX(1); } 48% { transform: scaleX(-1); } 98% { transform: scaleX(1); } }
.minion-body { transform-box: fill-box; transform-origin: 50% 100%; animation: bounce 0.2s ease-in-out infinite alternate; }
@keyframes bounce { to { transform: translateY(-5px) rotate(5deg); } }
.leg-a { animation: leg 0.2s linear infinite alternate; }
.leg-b { animation: leg 0.2s linear infinite alternate-reverse; }
@keyframes leg { to { transform: translateY(-7px); } }
.trip .minion-body { animation: trip 1.3s ease-in-out; transform-origin: 80% 100%; }
@keyframes trip { 20%, 70% { transform: rotate(80deg) translateY(4px); } 100% { transform: none; } }
.trip .minion-bucket { transform-box: fill-box; animation: bucket 1.3s ease-out; }
@keyframes bucket { 25% { transform: translate(40px, -60px) rotate(120deg); } 60% { transform: translate(60px, 20px) rotate(200deg); opacity: 1; } 61%, 85% { opacity: 0; } 100% { opacity: 1; transform: none; } }

/* Ghostface */
.gf-peek { transform-box: fill-box; animation: peek 7.5s ease-in-out infinite; }
@keyframes peek { 0%, 30% { transform: translateX(0); } 38%, 62% { transform: translateX(-90px) rotate(-4deg); } 70%, 100% { transform: translateX(0); } }
.jump .gf-peek { animation: jump 1.4s cubic-bezier(.2,1.4,.4,1); }
@keyframes jump { 25%, 70% { transform: translateX(-150px) scale(1.25); } 100% { transform: none; } }

/* Props */
.kernel { transform-box: fill-box; animation: kernel 1.6s ease-out infinite; opacity: 0; }
@keyframes kernel { 0% { opacity: 0; transform: translate(0, 0); } 10% { opacity: 1; } 60% { opacity: 1; transform: translate(var(--kx), -34px) rotate(160deg); } 100% { opacity: 0; transform: translate(calc(var(--kx) * 1.4), -10px) rotate(300deg); } }
.reel { transform-box: fill-box; transform-origin: center; animation: reel 3s linear infinite; }
@keyframes reel { to { transform: rotate(360deg); } }
.fast .reel { animation-duration: 0.3s; }
.clap-arm { transform-box: fill-box; transform-origin: 0% 100%; animation: clap 2.2s ease-in infinite; }
@keyframes clap { 0%, 70% { transform: rotate(-28deg); } 78%, 100% { transform: rotate(0); } }
.snap .clap-arm { animation: clap 0.5s ease-in; }

/* Loading = everything faster */
.mode-loading .beam-flow { animation-duration: 0.14s; }
.mode-loading .spine { animation-duration: 0.5s; }
.mode-loading .groot-dance { animation-duration: 0.3s; }
.mode-loading .spidey-swing { animation-duration: 0.8s; }
.mode-loading .reel { animation-duration: 0.6s; }
.mode-loading .clap-arm { animation-duration: 0.8s; }
.mode-loading .bm-cape { animation-duration: 0.4s; }

/* ---------- Glass ---------- */
.glass {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.13), rgba(255, 255, 255, 0.04));
  border: 1px solid rgba(255, 255, 255, 0.16);
  -webkit-backdrop-filter: blur(18px) saturate(170%);
  backdrop-filter: blur(18px) saturate(170%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.22), 0 18px 50px rgba(0, 0, 0, 0.55);
}
.glass-btn {
  display: inline-flex; align-items: center; gap: 6px; padding: 7px 13px; border-radius: 999px;
  font-size: 13px; font-weight: 600; color: var(--ink);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.04));
  border: 1px solid rgba(255, 255, 255, 0.16);
  -webkit-backdrop-filter: blur(14px) saturate(160%);
  backdrop-filter: blur(14px) saturate(160%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2);
}
.glass-btn:hover { border-color: rgba(245, 200, 76, 0.7); }
.chaos-btn span { background: linear-gradient(90deg, #ffd84d, #ff8a3d, #ff3b5c, #3df5ff, #ffd84d); background-size: 300% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: chaosbg 4s linear infinite; }
@keyframes chaosbg { to { background-position: 300% 0; } }

/* ---------- Chrome: nearly invisible until you reach for it ---------- */
.topbar {
  position: fixed; inset: 0 0 auto 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 16px 20px; pointer-events: none;
}
.topbar > * { pointer-events: auto; }
.topbar { transition: background 0.3s ease, backdrop-filter 0.3s ease; }
.scrolled .topbar { background: rgba(0, 0, 0, 0.55); -webkit-backdrop-filter: blur(18px) saturate(160%); backdrop-filter: blur(18px) saturate(160%); border-bottom: 0.5px solid rgba(255, 255, 255, 0.08); }
.topbar-right { opacity: 0.62; transition: opacity 0.3s ease; }
.topbar-right:hover, .topbar-right:focus-within, .mode-results .topbar-right { opacity: 1; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand-mark {
  display: flex; align-items: center; justify-content: center; width: 34px; height: 34px; border-radius: 8px; color: #fff;
  background: rgba(0, 0, 0, 0.7); box-shadow: inset 0 0 0 0.5px rgba(255, 215, 0, 0.35), 0 4px 14px rgba(0, 0, 0, 0.6), 0 0 12px rgba(255, 215, 0, 0.12);
  overflow: hidden; padding: 2px; transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.brand:hover .brand-mark {
  transform: scale(1.05);
  box-shadow: inset 0 0 0 0.8px rgba(255, 215, 0, 0.6), 0 6px 18px rgba(0, 0, 0, 0.8), 0 0 16px rgba(255, 215, 0, 0.25);
}
.brand-mark img { width: 100%; height: 100%; object-fit: contain; display: block; }
.brand-name { font: 600 15px/1 var(--body); letter-spacing: -0.01em; color: #fff; }
.brand-name em { font: italic 500 20px/1 var(--display); color: rgba(255, 255, 255, 0.85); margin-left: 2px; }
.topbar-right { display: flex; align-items: center; gap: 6px; }
.topbar .glass-btn span { display: none; }
.topbar .glass-btn { width: 40px; height: 40px; padding: 0; justify-content: center; color: rgba(255, 255, 255, 0.85); cursor: pointer; transition: background 0.2s, border-color 0.2s, color 0.2s; }
.topbar .glass-btn:hover { color: #fff; background: rgba(255, 255, 255, 0.12); }
.topbar .glass-btn[aria-pressed='false'] { color: rgba(255, 255, 255, 0.45); }

.pill {
  display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px;
  font-size: 12px; font-weight: 600; border: 1px solid var(--line-strong); background: rgba(255, 255, 255, 0.06); white-space: nowrap;
}
.ghost-btn { padding: 9px 14px; border-radius: 12px; border: 1px solid var(--line-strong); background: transparent; font-weight: 600; }
.ghost-btn:hover { border-color: var(--bad); color: var(--bad); }

main { position: relative; z-index: 5; pointer-events: none; }
main > section > * { pointer-events: auto; }

/* ---------- Home: one glossy bar ---------- */
.home { position: relative; }
.hero-screen { position: relative; min-height: 100vh; min-height: 100svh; display: flex; align-items: center; justify-content: center; padding: 24px 16px 64px; }
.scroll-cue {
  position: absolute; left: 50%; bottom: 22px; transform: translateX(-50%); display: inline-flex; align-items: center; gap: 6px;
  font-size: 12.5px; font-weight: 500; color: rgba(255, 255, 255, 0.5); text-decoration: none; animation: fadeIn 1s ease 2.2s both;
}
.scroll-cue svg { animation: cue 1.8s ease-in-out infinite; }
.scroll-cue:hover { color: #fff; }
@keyframes cue { 50% { transform: translateY(3px); } }

/* How it works */
.how {
  position: relative; pointer-events: auto; padding: 120px 20px 40px;
  background: linear-gradient(rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.88) 140px, #000 60%);
}
.how > * { max-width: 1060px; margin-left: auto; margin-right: auto; }
.how-eyebrow { margin-bottom: 10px; text-align: center; font-size: 11.5px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: #ffffff; }
.how-title { margin-top: 0; margin-bottom: 48px; text-align: center; font: 500 clamp(38px, 5.5vw, 63px)/1.05 var(--display); letter-spacing: -0.01em; text-wrap: balance; }
.how-steps { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 88px; }
.step {
  padding: 26px 24px 24px; border-radius: 26px; background: rgba(30, 30, 34, 0.62); border: 0.5px solid rgba(255, 255, 255, 0.12);
  -webkit-backdrop-filter: blur(24px) saturate(170%); backdrop-filter: blur(24px) saturate(170%);
}
.step-n { display: block; margin-bottom: 18px; font: italic 500 31px/1 var(--display); color: rgba(255, 255, 255, 0.85); }
.step h3 { margin: 0 0 8px; font-size: 18px; font-weight: 600; letter-spacing: -0.01em; }
.step p { margin: 0; font-size: 14.5px; line-height: 1.6; color: rgba(255, 255, 255, 0.68); }
.step em { font: italic 500 19px/1 var(--display); color: #ffffff; }
.step b { font-weight: 600; color: #ffffff; }
.ex-title { margin-top: 0; margin-bottom: 20px; font: 500 36px/1.1 var(--display); }
.ex-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.ex { display: flex; flex-direction: column; gap: 12px; }
.ex-q {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 6px; text-align: left; padding: 14px 18px; border-radius: 18px; cursor: pointer;
  background: rgba(255, 255, 255, 0.06); border: 0.5px solid rgba(255, 255, 255, 0.14); color: #fff; font-size: 15px; font-weight: 500;
  transition: background 0.2s, border-color 0.2s;
}
.ex-q .lead { font: italic 500 20px/1 var(--display); color: rgba(255, 255, 255, 0.75); }
.ex-q .go { margin-left: auto; font-size: 12.5px; color: #ffffff; opacity: 0.7; transition: opacity 0.2s, transform 0.2s; }
.ex-q:hover { background: rgba(255, 255, 255, 0.1); border-color: rgba(255, 255, 255, 0.45); }
.ex-q:hover .go { opacity: 1; transform: translateX(2px); }
.ex img { width: 100%; height: auto; border-radius: 22px; border: 0.5px solid rgba(255, 255, 255, 0.1); box-shadow: 0 30px 70px -30px rgba(0, 0, 0, 1); background: #141418; }
.ex p { margin: 0 4px; font-size: 13.5px; line-height: 1.5; color: rgba(255, 255, 255, 0.55); }
.site-foot { display: flex; justify-content: center; align-items: center; gap: 8px; margin-top: 80px; padding: 24px 0 8px; font-size: 12px; color: rgba(255, 255, 255, 0.36); border-top: 0.5px solid rgba(255, 255, 255, 0.08); flex-wrap: wrap; }
@media (max-width: 820px) { .how-steps, .ex-grid { grid-template-columns: 1fr; } .how { padding-top: 90px; } }
.hero { width: min(720px, 100%); display: flex; flex-direction: column; align-items: center; gap: 16px; animation: heroIn 1.3s cubic-bezier(.2,.8,.2,1) 0.45s both; }
@keyframes heroIn { from { opacity: 0; transform: translateY(18px) scale(0.98); filter: blur(12px); } }
/* cursor-following light inside the glass */
.search-glow {
  position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity 0.4s ease;
  background: radial-gradient(160px 80px at var(--mx, 50%) var(--my, 50%), rgba(255, 255, 255, 0.16), transparent 70%);
}
.search:hover .search-glow, .search:focus-within .search-glow { opacity: 1; }
.home-hint { margin: 0; font-size: 12px; color: rgba(255, 255, 255, 0.38); letter-spacing: 0.01em; animation: fadeIn 1s ease 1.6s both; }
.home-hint kbd {
  display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 5px; margin: 0 2px; border-radius: 6px;
  font: 500 11px/1 var(--body); color: rgba(255, 255, 255, 0.7); background: rgba(255, 255, 255, 0.07); box-shadow: inset 0 -1px 0 rgba(255, 255, 255, 0.12), inset 0 0 0 0.5px rgba(255, 255, 255, 0.14);
}
@keyframes fadeIn { from { opacity: 0; } }
.mode-focus .home-hint { opacity: 0; transition: opacity 0.2s; }
.hero .search { z-index: 3; }
.foot-mark { display: grid; place-items: center; width: 16px; height: 16px; color: rgba(255, 255, 255, 0.55); }
.foot-mark .mk { width: 14px; height: 14px; }
@media (hover: none) { .home-hint { display: none; } }
.mode-loading .home { visibility: hidden; }
.mode-results .home { display: none; }

@property --rim { syntax: '<angle>'; inherits: false; initial-value: 0deg; }

.search.glass, .search {
  position: relative;
  width: min(720px, 100%);
  display: flex; align-items: center; gap: 6px;
  padding: 8px 8px 8px 30px; border-radius: 999px; border: 0;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.17) 0%, rgba(255, 255, 255, 0.06) 46%, rgba(0, 0, 0, 0.18) 54%, rgba(255, 255, 255, 0.05) 100%),
    rgba(10, 10, 16, 0.42);
  -webkit-backdrop-filter: blur(26px) saturate(190%);
  backdrop-filter: blur(26px) saturate(190%);
  box-shadow:
    inset 0 1.5px 0 rgba(255, 255, 255, 0.55),
    inset 0 -1px 0 rgba(255, 255, 255, 0.1),
    inset 0 -22px 34px -18px rgba(0, 0, 0, 0.55),
    0 30px 80px -20px rgba(0, 0, 0, 0.9),
    0 0 60px -10px rgba(255, 170, 80, 0.18);
  transition: box-shadow 0.4s ease, transform 0.4s cubic-bezier(.2,.8,.3,1);
}
/* iridescent rim that slowly travels round the pill */
.search::before {
  content: ''; position: absolute; inset: 0; border-radius: inherit; padding: 1.2px; pointer-events: none;
  background: conic-gradient(from var(--rim), rgba(255, 255, 255, 0.12), rgba(255, 196, 120, 0.85) 12%, rgba(255, 255, 255, 0.14) 26%,
    rgba(140, 180, 255, 0.7) 52%, rgba(255, 255, 255, 0.12) 66%, rgba(255, 120, 170, 0.55) 84%, rgba(255, 255, 255, 0.12));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  animation: rim 9s linear infinite;
}
@keyframes rim { to { --rim: 360deg; } }
.search-sheen { position: absolute; inset: 0; border-radius: inherit; overflow: hidden; pointer-events: none; }
.search-sheen::after {
  content: ''; position: absolute; top: 0; bottom: 0; width: 38%; left: -45%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.16) 45%, rgba(255, 255, 255, 0.05) 55%, transparent);
  animation: sheen 8s cubic-bezier(.6,.05,.3,1) infinite 2s;
}
@keyframes sheen { 0%, 72% { left: -45%; } 100% { left: 110%; } }
.search:focus-within {
  transform: translateY(-1px) scale(1.012);
  box-shadow:
    inset 0 1.5px 0 rgba(255, 255, 255, 0.6), inset 0 -1px 0 rgba(255, 255, 255, 0.12), inset 0 -22px 34px -18px rgba(0, 0, 0, 0.55),
    0 30px 90px -20px rgba(0, 0, 0, 0.9), 0 0 80px -6px rgba(255, 170, 80, 0.32);
}
.search:focus-within::before { animation-duration: 3.5s; }
.search-lead {
  flex: none; white-space: nowrap; cursor: text; user-select: none;
  font: italic 500 29px/1 var(--display); letter-spacing: 0.005em;
  background: linear-gradient(180deg, #fff 0%, rgba(255, 255, 255, 0.72) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  text-shadow: 0 0 24px rgba(255, 190, 120, 0.15);
}
.search input {
  flex: 1; min-width: 60px; border: 0; background: transparent; outline: none;
  padding: 14px 8px 14px 4px; font: 500 20px var(--body); color: #fff; caret-color: var(--accent); letter-spacing: -0.01em;
}
.search input::placeholder { color: rgba(255, 255, 255, 0.28); font-weight: 400; }
.search-go {
  position: relative; flex: none; display: grid; place-items: center; width: 54px; height: 54px; border-radius: 50%; border: 0;
  color: #2a1a04;
  background:
    radial-gradient(120% 90% at 30% 18%, rgba(255, 255, 255, 0.95) 0%, rgba(255, 255, 255, 0) 42%),
    radial-gradient(100% 100% at 50% 100%, #b97a12 0%, #f2b93f 55%, #ffd77a 100%);
  box-shadow: inset 0 -3px 8px rgba(120, 70, 0, 0.45), inset 0 1px 1px rgba(255, 255, 255, 0.9), 0 6px 24px rgba(245, 180, 70, 0.45);
  transition: transform 0.25s cubic-bezier(.2,.9,.3,1.4), box-shadow 0.25s;
}
.search-go:hover { transform: scale(1.06); box-shadow: inset 0 -3px 8px rgba(120, 70, 0, 0.45), inset 0 1px 1px #fff, 0 8px 34px rgba(245, 180, 70, 0.65); }
.search-go:active { transform: scale(0.95); }
.search-go:disabled { opacity: 0.5; cursor: progress; }

/* Autofill dropdown */
.suggest {
  position: absolute; left: 0; right: 0; top: calc(100% + 10px); z-index: 30;
  margin: 0; padding: 6px; list-style: none; border-radius: 20px;
  background: linear-gradient(135deg, rgba(30, 30, 40, 0.72), rgba(12, 12, 18, 0.66));
  max-height: min(60vh, 420px); overflow: auto;
}
.suggest li {
  display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 14px; cursor: pointer; color: var(--ink);
}
.suggest li[aria-selected='true'], .suggest li:hover { background: rgba(255, 255, 255, 0.1); }
.suggest .s-ico { flex: none; width: 22px; text-align: center; opacity: 0.85; }
.suggest .s-main { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 15px; }
.suggest .s-main .s-dim { color: rgba(255, 255, 255, 0.45); }
.suggest .s-main b { color: var(--gold); font-weight: 700; }
.suggest .s-conn { font: italic 500 19px/1 var(--display); color: #ffffff; margin-right: 2px; }
.suggest .s-hint { color: rgba(255, 255, 255, 0.42); }
.suggest .s-sub { flex: none; font-size: 12px; color: rgba(255, 255, 255, 0.5); }
.suggest .s-head { padding: 6px 12px 2px; font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: rgba(255, 255, 255, 0.4); cursor: default; }
.suggest .s-head:hover { background: none; }

/* ---------- Loader: falling through the wormhole ---------- */
.loader { position: fixed; inset: 0; z-index: 15; background: #000; overflow: hidden; }
.ld-canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.ld-fly { position: absolute; left: 50%; top: 50%; width: 0; height: 0; pointer-events: none; }
.ld-title {
  position: absolute; left: 0; top: 0; transform-origin: 50% 50%; translate: -50% -50%; white-space: nowrap; text-align: center;
  font: italic 500 25px/1.1 var(--display); color: rgba(255, 255, 255, 0.92); text-shadow: 0 0 18px rgba(255, 190, 120, 0.35);
}
.ld-title small { display: block; margin-top: 3px; font: 500 10px/1 var(--body); font-style: normal; letter-spacing: 0.1em; text-transform: uppercase; color: rgba(255, 255, 255, 0.5); }
.ld-title.reject .t { text-decoration: line-through; text-decoration-color: rgba(255, 110, 110, 0.8); color: rgba(255, 255, 255, 0.55); }
.ld-title.reject small { color: rgba(255, 140, 140, 0.75); }
.ld-title.anchor { color: #ffffff; }
.ld-title.pick { color: #fff; font-size: 26px; text-shadow: 0 0 24px rgba(255, 220, 160, 0.7); }
.ld-title.pick small { color: #ffffff; }
.ld-ui {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: min(560px, calc(100% - 40px));
  display: flex; flex-direction: column; align-items: center; text-align: center; gap: 12px; pointer-events: none;
}
.ld-ui::before {
  content: ''; position: absolute; inset: -60px -80px; z-index: -1;
  background: radial-gradient(closest-side, rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.35) 60%, transparent);
}
.ld-eyebrow { margin: 0; font-size: 11.5px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: rgba(255, 255, 255, 0.5); }
.ld-query { margin: 0 0 6px; font: italic 500 clamp(29px, 4.8vw, 45px)/1.12 var(--display); color: #fff; text-wrap: balance; text-shadow: 0 4px 30px rgba(0, 0, 0, 0.8); }
.ld-stage { margin: 6px 0 0; min-height: 1.4em; font-size: 15px; font-weight: 500; color: rgba(255, 255, 255, 0.9); letter-spacing: 0.005em; }
.ld-stage.err { color: #ff9c9c; }
.ld-bar { width: min(240px, 60%); height: 2px; border-radius: 2px; background: rgba(255, 255, 255, 0.12); overflow: hidden; }
.ld-bar i { display: block; height: 100%; background: linear-gradient(90deg, #ffffff, #fff 70%, #cfe8ff); transform: scaleX(0); transform-origin: 0 50%; box-shadow: 0 0 12px rgba(255, 220, 170, 0.8); }
.ld-steps { display: flex; flex-wrap: wrap; justify-content: center; max-width: 100%; gap: 6px 14px; margin: 4px 0 0; padding: 0; list-style: none; font-size: 10.5px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: rgba(255, 255, 255, 0.28); }
.ld-steps li { display: flex; align-items: center; gap: 6px; transition: color 0.4s ease; }
.ld-steps li::before { content: ''; width: 5px; height: 5px; border-radius: 50%; background: currentColor; transition: background 0.4s, box-shadow 0.4s; }
.ld-steps li.active { color: rgba(255, 255, 255, 0.95); }
.ld-steps li.active::before { background: #ffffff; box-shadow: 0 0 10px #ffb066; animation: glowPulse 0.6s ease-in-out infinite alternate; }
.ld-steps li.done { color: rgba(255, 255, 255, 0.6); }
.ld-flash { position: absolute; inset: 0; background: radial-gradient(circle at 50% 50%, #fff, #fff6e6 40%, #ffffff); opacity: 0; pointer-events: none; }
@media (max-width: 520px) { .ld-steps { gap: 9px; font-size: 9.5px; } .ld-title { font-size: 17px; } }

/* ---------- Results: Apple-style cards ---------- */
.results { width: min(860px, 100%); margin: 0 auto; padding: 84px 16px 80px; }
.results-bar { position: sticky; top: 62px; z-index: 8; margin-bottom: 30px; display: flex; justify-content: center; }
/* Once you scroll, the header and search bar sit on a near-solid band that fades at its lower edge, so
   cards slide cleanly underneath instead of showing through the frosted glass. */
.results-bar::before {
  content: ''; position: absolute; z-index: -1; left: 50%; width: 100vw; transform: translateX(-50%);
  top: -64px; bottom: -22px; pointer-events: none; opacity: 0; transition: opacity 0.25s ease;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.96) 0, rgba(0, 0, 0, 0.94) calc(100% - 22px), rgba(0, 0, 0, 0) 100%);
}
.scrolled .results-bar::before { opacity: 1; }
.mode-results.scrolled .topbar { background: rgba(0, 0, 0, 0.94); border-bottom-color: transparent; }
.scrolled .search.search-compact { background: rgba(18, 18, 22, 0.9); }
.search.search-compact { padding: 5px 5px 5px 22px; }
.search-compact .search-lead { font-size: 19px; }
.search-compact input { padding: 9px 6px; font-size: 16px; }
.search-compact .search-go { width: 40px; height: 40px; }

.results-head { margin: 0 6px 14px; }
.understood { margin: 0; font-size: 13px; color: rgba(255, 255, 255, 0.5); letter-spacing: 0.01em; }
.understood span + span::before { content: '·'; margin: 0 8px; opacity: 0.6; }
.dot { margin: 0 7px; opacity: 0.45; }

.rcard, .mcard {
  -webkit-backdrop-filter: blur(30px) saturate(180%); backdrop-filter: blur(30px) saturate(180%);
  background: rgba(30, 30, 34, 0.62);
  border: 0.5px solid rgba(255, 255, 255, 0.12);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.07), 0 30px 80px -30px rgba(0, 0, 0, 0.9);
  animation: cardIn 0.6s cubic-bezier(.2,.8,.2,1) both;
}
@keyframes cardIn { from { opacity: 0; transform: translateY(14px) scale(0.985); } }
.leaving { animation: cardOut 180ms var(--ease-out) forwards !important; }
@keyframes cardOut { to { opacity: 0; transform: scale(0.97); } }

.rcard { display: grid; grid-template-columns: 210px 1fr; gap: 30px; padding: 22px; border-radius: 30px; }
.rposter, .mposter { position: relative; aspect-ratio: 2 / 3; overflow: hidden; background: linear-gradient(160deg, #26262c, #141418); }
.rposter { border-radius: 18px; box-shadow: 0 24px 50px -22px rgba(0, 0, 0, 0.95); }
.rposter img, .mposter img { position: relative; z-index: 1; width: 100%; height: 100%; object-fit: cover; display: block; }
.ptitle { position: absolute; inset: 0; display: grid; place-items: center; padding: 10px; text-align: center; font: italic 500 25px/1.1 var(--display); color: rgba(255, 255, 255, 0.55); }
.rbody { display: flex; flex-direction: column; min-width: 0; padding: 6px 4px 2px 0; }
.eyebrow { margin: 0; white-space: nowrap; font-size: 11.5px; font-weight: 600; letter-spacing: 0.09em; text-transform: uppercase; color: #ffffff; }
.eyebrow .dot { color: rgba(255, 255, 255, 0.4); }
.eyebrow .viewers { color: #9fe3b5; }
.rtitle { margin: 8px 0 8px; font: 500 52px/1 var(--display); letter-spacing: -0.01em; color: #fff; }
.rmeta { margin: 0 0 6px; font-size: 14px; color: rgba(255, 255, 255, 0.58); }
.rcast { margin: 0 0 16px; font-size: 13.5px; line-height: 1.45; color: rgba(255, 255, 255, 0.82); }
.rcast .k { color: rgba(255, 255, 255, 0.45); font-weight: 500; }
.mcard .rcast { margin: 0 0 7px; font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: rgba(255, 255, 255, 0.7); }

.rratings { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 18px; }
.rate {
  display: inline-flex; align-items: center; gap: 7px; height: 26px; padding: 0 10px 0 5px; border-radius: 999px;
  background: rgba(255, 255, 255, 0.07); font-size: 12.5px; font-weight: 600; color: rgba(255, 255, 255, 0.92); font-variant-numeric: tabular-nums;
}
.rate i { font-style: normal; flex: none; }
a.rate { text-decoration: none; transition: background 0.15s ease; }
a.rate:hover { background: rgba(255, 255, 255, 0.14); }
.logo-m { width: 17px; height: 17px; border-radius: 5px; display: grid; place-items: center; background: #000; color: #fff; box-shadow: inset 0 0 0 0.5px rgba(255, 255, 255, 0.35); }
.logo-imdb { height: 15px; padding: 0 3.5px; border-radius: 3px; background: #f5c518; color: #000; font: 800 9px/15px var(--body); letter-spacing: -0.02em; }
.logo-lb { display: inline-flex; gap: 1.5px; padding-left: 2px; }
.logo-lb b { width: 6px; height: 6px; border-radius: 50%; background: #ff8000; }
.logo-lb b:nth-child(2) { background: #00e054; }
.logo-lb b:nth-child(3) { background: #40bcf4; }
.rate.award { padding-left: 8px; gap: 6px; background: rgba(232, 182, 71, 0.13); color: #f3d68f; box-shadow: inset 0 0 0 1px rgba(232, 182, 71, 0.28); }
.rate.award i { color: var(--accent); display: grid; place-items: center; }
.mcard .rate.award { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; display: inline-block; line-height: 22px; }
.mcard .rate.award i { display: inline-grid; vertical-align: -2px; margin-right: 5px; }
.dgrid .k { color: rgba(255, 255, 255, 0.5); font-weight: 600; margin-right: 4px; }

.rplot { margin: -10px 0 22px; max-width: 60ch; font-size: 14px; line-height: 1.55; color: rgba(255, 255, 255, 0.6); }
.rplot .k { display: block; margin-bottom: 3px; font-size: 11px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: rgba(255, 255, 255, 0.4); }
.mplot { margin: 0 0 8px; font-size: 12.5px; line-height: 1.45; color: rgba(255, 255, 255, 0.62); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.rwhy { margin: 0 0 22px; max-width: 54ch; font-size: 15.5px; line-height: 1.55; color: rgba(255, 255, 255, 0.82); }
.ractions { margin-top: auto; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 12px; }
.watch {
  display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 16px 0 13px; border-radius: 999px; white-space: nowrap; max-width: 100%; overflow: hidden; text-overflow: ellipsis;
  background: #f5f5f7; color: #111; font-size: 14px; font-weight: 600; text-decoration: none; transition: transform 0.2s ease, background 0.2s;
}
.watch:hover { background: #fff; transform: translateY(-1px); }
.watch small { font-weight: 500; color: #6e6e73; }
.watch.ghost { background: rgba(255, 255, 255, 0.1); color: #fff; }
.also { font-size: 12.5px; color: rgba(255, 255, 255, 0.45); }
.also a { color: rgba(255, 255, 255, 0.7); text-decoration: none; }
.also a:hover { color: #fff; }
.fbar { display: flex; gap: 6px; margin-left: auto; }
.fb {
  display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; border: 0;
  background: rgba(255, 255, 255, 0.07); color: rgba(255, 255, 255, 0.72); transition: background 0.2s, color 0.2s, transform 0.2s;
}
.fb:hover { background: rgba(255, 255, 255, 0.14); color: #fff; }
.fb:active { transform: scale(0.92); }
.fb[aria-pressed='true'] { background: #f5f5f7; color: #111; }
.fb:disabled { opacity: 0.5; cursor: progress; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.tag.fb { width: auto; height: 28px; padding: 0 12px; border-radius: 999px; background: transparent; border: 0.5px solid rgba(255, 255, 255, 0.16); font-size: 12.5px; font-weight: 500; }
.tag.fb:hover { border-color: rgba(255, 255, 255, 0.35); }

.rdetails { margin-top: 16px; }
.rdetails summary { list-style: none; cursor: pointer; width: fit-content; font-size: 12.5px; color: rgba(255, 255, 255, 0.45); }
.rdetails summary::-webkit-details-marker { display: none; }
.rdetails summary::after { content: ' ›'; display: inline-block; transition: transform 0.2s; }
.rdetails[open] summary::after { transform: rotate(90deg); }
.rdetails summary:hover { color: rgba(255, 255, 255, 0.8); }
.dgrid { display: grid; gap: 8px; margin-top: 10px; font-size: 13.5px; line-height: 1.5; color: rgba(255, 255, 255, 0.8); }
.dgrid p { margin: 0; }
.dgrid .muted { color: rgba(255, 255, 255, 0.55); }
.dgrid .small { font-size: 12px; }
.checks { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 12.5px; color: rgba(255, 255, 255, 0.6); list-style: none; margin: 0; padding: 0; }
.checks li::before { content: '✓ '; color: #4ade80; }
.checks li.fail::before { content: '✗ '; color: #ff6b6b; }
.dlinks { display: flex; gap: 14px; }
.dlinks a { font-size: 12.5px; color: rgba(255, 255, 255, 0.7); text-decoration: none; }
.dlinks a:hover { color: #fff; }

.more-wrap { display: grid; gap: 10px; margin-top: 12px; }
.mcard { display: grid; grid-template-columns: 58px 1fr auto; gap: 16px; align-items: center; padding: 12px 14px 12px 12px; border-radius: 22px; cursor: pointer; transition: background 0.2s; }
.mcard:hover { background: rgba(40, 40, 46, 0.7); }
.mcard.fresh { border-color: rgba(255, 255, 255, 0.5); }
.mposter { border-radius: 10px; }
.mposter .ptitle { font-size: 11px; }
.mbody { min-width: 0; }
.mtitle { margin: 0 0 2px; font: 500 26px/1.1 var(--display); color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mmeta { margin: 0 0 8px; font-size: 12.5px; color: rgba(255, 255, 255, 0.5); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mcard .rratings { margin: 0; gap: 5px; }
.mcard .rate { height: 22px; font-size: 11.5px; padding-right: 8px; }
.mside { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
.fit { font-size: 12px; font-weight: 600; color: #ffffff; font-variant-numeric: tabular-nums; }
.mcard .fb { width: 30px; height: 30px; }

.more-btn {
  display: flex; align-items: center; gap: 10px; margin: 22px auto 0; height: 42px; padding: 0 8px 0 20px; border-radius: 999px;
  border: 0.5px solid rgba(255, 255, 255, 0.18); background: rgba(255, 255, 255, 0.07); color: #fff; font-size: 14px; font-weight: 500;
  -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px); transition: background 0.2s, transform 0.2s;
}
.more-btn span { display: grid; place-items: center; min-width: 28px; height: 28px; border-radius: 999px; background: rgba(255, 255, 255, 0.12); font-size: 12px; }
.more-btn:hover { background: rgba(255, 255, 255, 0.12); transform: translateY(-1px); }

.empty { padding: 30px; border-radius: 26px; background: rgba(30, 30, 34, 0.6); border: 0.5px solid rgba(255, 255, 255, 0.12); backdrop-filter: blur(24px); text-align: center; color: rgba(255, 255, 255, 0.7); }

.footnote { margin: 34px auto 0; max-width: 620px; text-align: center; font-size: 12.5px; color: rgba(255, 255, 255, 0.4); }
.footnote summary { list-style: none; cursor: pointer; }
.footnote summary::-webkit-details-marker { display: none; }
.footnote summary:hover { color: rgba(255, 255, 255, 0.75); }
.footnote p { margin: 10px 0; line-height: 1.5; }
.footnote ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 4px; text-align: left; }
.footnote b { color: rgba(255, 255, 255, 0.65); font-weight: 500; }
.toast-title { display: block; font-weight: 600; margin-bottom: 2px; }
.toast-line { display: block; font-weight: 400; color: rgba(255, 255, 255, 0.7); font-size: 13px; }

/* ---------- Drawer & toast ---------- */
.drawer {
  position: fixed; z-index: 30; top: 70px; right: 16px; width: min(360px, calc(100% - 32px)); max-height: calc(100vh - 90px); overflow: auto;
  border-radius: 22px; padding: 16px;
  background: linear-gradient(135deg, rgba(34, 34, 46, 0.72), rgba(12, 12, 18, 0.66));
}
.dataset-status { margin: 12px 0 0; font-size: 12px; color: rgba(255, 255, 255, 0.45); }
.drawer-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.drawer h2 { font: 500 34px/1 var(--display); }
.drawer-body { display: grid; gap: 12px; font-size: 14px; margin-bottom: 14px; }
.drawer-body h4 { margin: 0 0 6px; font: 600 11px/1 var(--body); letter-spacing: 0.08em; text-transform: uppercase; color: rgba(255, 255, 255, 0.5); }
.drawer-body ul { margin: 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 6px; }
.drawer-body p { margin: 0; color: var(--muted); }

.toast {
  position: fixed; z-index: 40; left: 50%; bottom: 24px; transform: translateX(-50%);
  max-width: min(560px, calc(100% - 32px)); padding: 12px 16px; border-radius: 16px;
  background: linear-gradient(135deg, rgba(40, 40, 52, 0.75), rgba(14, 14, 20, 0.7)); color: var(--ink); font-weight: 600; font-size: 14px;
}
.toast ul { margin: 4px 0 0; padding-left: 18px; font-weight: 500; }
@keyframes toastIn { from { opacity: 0; transform: translate(-50%, 12px); } }

/* ---------- Responsive ---------- */
@media (max-width: 760px) {
  .topbar { padding: 12px 12px; }
  .search, .search.glass { padding: 6px 6px 6px 20px; }
  .search-lead { font-size: 20px; }
  .search input { font-size: 16px; }
  .search-go { width: 46px; height: 46px; }
  .rcard { display: block; padding: 14px; border-radius: 24px; }
  .rcard::after { content: ''; display: block; clear: both; }
  .rposter { float: left; width: 112px; margin: 0 16px 12px 0; border-radius: 14px; }
  .rbody { display: block; padding: 2px 0 0; }
  .rtitle { font-size: 31px; margin: 6px 0 6px; }
  .rmeta { margin-bottom: 10px; font-size: 13px; }
  .rratings { margin-bottom: 12px; }
  .rwhy { clear: both; font-size: 14.5px; margin-bottom: 16px; }
  .ractions { clear: both; }
  .fbar { margin-left: auto; }
  .mcard { grid-template-columns: 48px 1fr auto; gap: 12px; padding: 10px 12px 10px 10px; }
  .mtitle { font-size: 20px; }
  .rplot { clear: both; margin-top: -6px; font-size: 13.5px; }
}
/* Phones: the fit and buttons drop to their own row so the title and plot get the card's full width. */
@media (max-width: 520px) {
  .mcard { grid-template-columns: 48px 1fr; align-items: start; row-gap: 10px; }
  .mside { grid-column: 1 / -1; flex-direction: row; align-items: center; justify-content: space-between; padding-left: 60px; }
  .mplot { -webkit-line-clamp: 3; }
}
@media (max-width: 460px) {
  .brand-name { display: none; }
  .hero .search, .hero .search.glass { flex-wrap: wrap; border-radius: 30px; padding: 14px 8px 8px 20px; }
  .hero .search-lead { width: 100%; font-size: 21px; }
  .hero .search input { padding-left: 0; }
  .search-compact { border-radius: 999px !important; padding: 4px 6px 4px 16px !important; }
}
/* Phones: on the results page the typed search gets the whole bar (the home page keeps the full sentence). */
@media (max-width: 520px) {
  .search-compact .search-lead { display: none; }
  .search-compact input { padding-left: 4px; }
}

@media (prefers-reduced-motion: reduce) {
  .arena *, .chaos-btn span, .rcard, .mcard { animation: none !important; }
  .beam-outer { opacity: 0.4; }
}

/* Card-only render for marketing screenshots (?shot=1) */
.shot .topbar, .shot .results-bar, .shot .results-head, .shot .more-btn, .shot .footnote, .shot .arena, .shot .rdetails, .shot .tags { display: none !important; }
.shot { background: #000; }
.shot .results { padding: 28px 28px 0; width: 860px; }
.shot .rcard { animation: none; }

/* ---------- Profile sheet ---------- */
.profile { position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; padding: 24px 16px; }
.pf-backdrop { position: absolute; inset: 0; background: rgba(0, 0, 0, 0.72); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.pf-sheet {
  position: relative; width: min(760px, 100%); max-height: calc(100svh - 48px); overflow: auto; overscroll-behavior: contain;
  padding: 34px 34px 24px; border-radius: 30px; background: rgba(20, 20, 24, 0.95); border: 0.5px solid rgba(255, 255, 255, 0.14);
  -webkit-backdrop-filter: blur(40px) saturate(180%); backdrop-filter: blur(40px) saturate(180%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 40px 120px -20px #000;
}
.pf-close { position: absolute; top: 16px; right: 16px; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, 0.08); color: #fff; cursor: pointer; transition: background 0.2s; }
.pf-close:hover { background: rgba(255, 255, 255, 0.16); }
.pf-head { display: flex; align-items: center; gap: 18px; margin-bottom: 22px; padding-right: 44px; }
.pf-avatar {
  flex: none; display: grid; place-items: center; width: 72px; height: 72px; border-radius: 50%; overflow: hidden; color: #ffffff;
  background: linear-gradient(145deg, #2a2a30, #17171b); box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.5), 0 10px 30px rgba(0, 0, 0, 0.6); font: italic 500 34px/1 var(--display);
}
.pf-avatar img { width: 100%; height: 100%; object-fit: cover; }
.pf-id { flex: 1; min-width: 0; }
.pf-eyebrow { margin: 0 0 4px; font-size: 11px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: #ffffff; }
.pf-id h2 { margin: 0; font: 500 43px/1.05 var(--display); }
.pf-email { margin: 6px 0 0; font-size: 14px; color: rgba(255, 255, 255, 0.55); }
.pf-signout { flex: none; height: 36px; padding: 0 16px; border-radius: 999px; border: 0.5px solid rgba(255, 255, 255, 0.2); background: transparent; color: #fff; font-size: 13px; cursor: pointer; transition: background 0.2s; }
.pf-signout:hover { background: rgba(255, 255, 255, 0.08); }
.pf-signin {
  display: flex; flex-direction: column; align-items: flex-start; gap: 10px; margin-bottom: 22px; padding: 18px 20px; border-radius: 20px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.03)); border: 0.5px solid rgba(255, 255, 255, 0.25);
}
.pf-gbtn { min-height: 44px; }
.pf-note { margin: 0; font-size: 12.5px; color: rgba(255, 255, 255, 0.5); }
.pf-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-bottom: 26px; }
.pf-stats > div { padding: 14px 16px; border-radius: 18px; background: rgba(255, 255, 255, 0.05); border: 0.5px solid rgba(255, 255, 255, 0.08); }
.pf-stats b { display: block; margin-bottom: 4px; font: 500 34px/1 var(--display); color: #fff; }
.pf-stats span { font-size: 12px; color: rgba(255, 255, 255, 0.5); }
.pf-block { margin-bottom: 26px; }
.pf-block h3 { margin: 0 0 12px; font-size: 12px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: rgba(255, 255, 255, 0.5); }
.pf-empty { margin: 0; font-size: 14px; color: rgba(255, 255, 255, 0.45); }
.pf-bars { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.pf-bars li { display: grid; grid-template-columns: 170px 1fr 40px; align-items: center; gap: 12px; font-size: 14px; }
.pf-bars .k { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.pf-bars .k::first-letter { text-transform: uppercase; }
.pf-bars .bar { height: 6px; border-radius: 6px; overflow: hidden; background: rgba(255, 255, 255, 0.07); }
.pf-bars .bar i { display: block; height: 100%; width: calc(var(--w) * 100%); border-radius: inherit; transform-origin: 0 50%; background: linear-gradient(90deg, #ffffff, #ffffff); }
.pf-bars li.neg .bar i { background: linear-gradient(90deg, #ff8a8a, #ffb3b3); }
.pf-bars .v { text-align: right; font-size: 11.5px; color: rgba(255, 255, 255, 0.45); }
.pf-posters { list-style: none; margin: 0; padding: 0 0 6px; display: grid; grid-auto-flow: column; grid-auto-columns: 92px; gap: 12px; overflow-x: auto; scrollbar-width: thin; }
.pf-posters .pp { position: relative; aspect-ratio: 2 / 3; border-radius: 12px; overflow: hidden; background: linear-gradient(160deg, #26262c, #141418); }
.pf-posters img { position: relative; z-index: 1; display: block; width: 100%; height: 100%; object-fit: cover; }
.pf-posters .pp span { position: absolute; inset: 0; display: grid; place-items: center; padding: 6px; text-align: center; font: italic 500 15px/1.1 var(--display); color: rgba(255, 255, 255, 0.55); }
.pf-posters p { margin: 6px 0 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-size: 12px; color: rgba(255, 255, 255, 0.7); }
/* Letterboxd: the row under the home search, and its sheet */
.lb-dots { display: inline-flex; gap: 2px; flex: none; }
.lb-dots b { width: 7px; height: 7px; border-radius: 50%; background: #ff8000; }
.lb-dots b:nth-child(2) { background: #00e054; }
.lb-dots b:nth-child(3) { background: #40bcf4; }
.lb-home { width: min(720px, 100%); margin: 14px auto 0; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.mode-loading .lb-home, .mode-results .lb-home { display: none; }
.lb-connect-btn { display: inline-flex; align-items: center; gap: 10px; height: 40px; padding: 0 18px; border-radius: 999px; border: 0.5px solid rgba(255, 255, 255, 0.2); background: rgba(12, 12, 16, 0.86); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); color: #fff; font: 500 14px var(--body); cursor: pointer; transition: background 0.2s, transform 0.15s var(--ease-out); }
.lb-connect-btn:hover { background: rgba(30, 30, 36, 0.75); }
.lb-connect-btn:active { transform: scale(0.97); }
.lb-connect-form { display: flex; gap: 8px; width: min(440px, 100%); }
.lb-connect-form input { flex: 1; min-width: 0; height: 46px; padding: 0 18px; border-radius: 999px; border: 0.5px solid rgba(255, 255, 255, 0.25); background: rgba(10, 10, 14, 0.7); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); color: #fff; font: 500 16px var(--body); }
.lb-connect-form input:focus { outline: none; border-color: rgba(255, 255, 255, 0.65); }
.lb-connect-form button { flex: none; height: 46px; padding: 0 22px; border-radius: 999px; border: 0; background: #fff; color: #000; font: 600 15px var(--body); cursor: pointer; }
.lb-connect-form button:disabled { opacity: 0.6; }
.lb-connect-note { margin: 0; max-width: 440px; text-align: center; font-size: 13px; line-height: 1.5; color: rgba(255, 255, 255, 0.75); text-shadow: 0 1px 8px #000, 0 0 2px #000; }
.lb-linked { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px 14px; }
.lb-me { display: inline-flex; align-items: center; gap: 9px; height: 40px; padding: 0 16px; border-radius: 999px; border: 0.5px solid rgba(255, 255, 255, 0.18); background: rgba(12, 12, 16, 0.86); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); color: #fff; font: 500 14px var(--body); cursor: pointer; max-width: 100%; }
.lb-me b { font-weight: 600; flex: none; }
.lb-me { min-width: 0; }
.lb-sync { min-width: 0; }
/* Phones: the account chip takes the full width and its progress line wraps instead of spilling off-screen */
@media (max-width: 520px) {
  .lb-linked { width: 100%; }
  .lb-me { width: 100%; height: auto; min-height: 40px; padding: 8px 16px; border-radius: 20px; flex-wrap: wrap; column-gap: 9px; row-gap: 2px; text-align: left; }
  .lb-sync { white-space: normal; flex-basis: 100%; padding-left: 0; font-size: 12.5px; }
}
.lb-sync { color: rgba(255, 255, 255, 0.55); font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lb-toggle { display: inline-flex; align-items: center; gap: 9px; height: 40px; padding: 0 16px 0 10px; border-radius: 999px; background: rgba(12, 12, 16, 0.86); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); border: 0.5px solid rgba(255, 255, 255, 0.12); font-size: 14px; color: rgba(255, 255, 255, 0.9); cursor: pointer; user-select: none; }
.lb-toggle input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.lb-switch { position: relative; width: 38px; height: 22px; border-radius: 999px; background: rgba(255, 255, 255, 0.18); transition: background 0.2s var(--ease-out); }
.lb-switch::after { content: ''; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: transform 0.2s var(--ease-out); }
.lb-toggle input:checked + .lb-switch { background: var(--accent); }
.lb-toggle input:checked + .lb-switch::after { transform: translateX(16px); }
.lb-toggle input:focus-visible + .lb-switch { outline: 2px solid #fff; outline-offset: 2px; }
.lb-tabs { display: flex; gap: 8px; }
.lb-tabs button { height: 38px; padding: 0 16px; border-radius: 999px; border: 0.5px solid rgba(255, 255, 255, 0.14); background: rgba(12, 12, 16, 0.86); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); color: #fff; font: 500 14px var(--body); cursor: pointer; transition: background 0.2s; }
.lb-tabs button:first-child { background: #fff; color: #000; font-weight: 600; }
.lb-tabs button:hover { background: rgba(40, 40, 46, 0.8); }
.lb-tabs button:first-child:hover { background: #e9e9e9; }
.lb-export { max-width: 560px; padding: 20px; border-radius: 22px; background: rgba(255, 255, 255, 0.04); border: 0.5px solid rgba(232, 182, 71, 0.4); }
.lb-nudge { display: inline-flex; align-items: center; gap: 9px; max-width: 100%; min-height: 36px; padding: 6px 8px 6px 14px; border-radius: 999px; border: 0.5px solid rgba(232, 182, 71, 0.55); background: rgba(12, 12, 16, 0.88); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); color: #f3d68f; font: 500 13.5px var(--body); cursor: pointer; text-align: left; }
.lb-nudge i { flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px rgba(232, 182, 71, 0.2); }
.lb-nudge b { flex: none; padding: 6px 12px; border-radius: 999px; background: var(--accent); color: #000; font-weight: 600; }
.lb-dot { display: inline-block; width: 7px; height: 7px; margin-left: 7px; border-radius: 50%; background: var(--accent); vertical-align: 1px; }
.lb-switcher button[aria-selected='true'] .lb-dot { background: #b8841f; }
.lb-export h3 { margin: 0 0 6px; font: 500 22px/1.15 var(--display); color: #fff; }
.lb-export > p { margin: 0 0 14px; font-size: 14px; line-height: 1.5; color: rgba(255, 255, 255, 0.78); }
.lb-export > p b { color: #fff; }
.lb-steps { list-style: none; margin: 0 0 14px; padding: 0; display: grid; gap: 10px; }
.lb-steps li { display: grid; grid-template-columns: 26px 1fr; gap: 12px; align-items: start; }
.lb-steps li span { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--accent); color: #000; font: 700 13px/1 var(--body); }
.lb-steps li p { margin: 3px 0 0; font-size: 14px; line-height: 1.45; color: rgba(255, 255, 255, 0.82); }
.lb-steps a { color: #fff; text-underline-offset: 3px; }
.lb-file { display: inline-flex; align-items: center; justify-content: center; height: 44px; padding: 0 22px; border-radius: 999px; background: #fff; color: #000; font: 600 15px var(--body); cursor: pointer; transition: transform 0.15s var(--ease-out), opacity 0.2s; }
.lb-file:active { transform: scale(0.97); }
.lb-file.busy { opacity: 0.6; pointer-events: none; }
.lb-file input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.lb-file:focus-within { outline: 2px solid #fff; outline-offset: 2px; }
/* The Letterboxd sheet is a fixed frame: header and tabs stay put, only the list scrolls. */
.lbsheet .pf-sheet {
  width: min(900px, 100%); height: min(820px, calc(100svh - 48px)); max-height: none; padding: 0; overflow: hidden;
  display: flex; flex-direction: column; background: #121216; -webkit-backdrop-filter: none; backdrop-filter: none;
}
.lbsheet .lb-body { display: flex; flex-direction: column; flex: 1; min-height: 0; }
.lbsheet .lb-head { flex: none; padding: 28px 70px 0 30px; }
.lbsheet .lb-switcher { flex: none; margin: 0 30px 14px; }
.lbsheet .lb-panel { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; padding: 4px 30px 28px; scrollbar-width: thin; scrollbar-color: rgba(255, 255, 255, 0.2) transparent; }
.lbsheet .lb-foot { flex: none; margin: 0; padding: 12px 30px calc(12px + env(safe-area-inset-bottom)); background: #121216; }
.lbsheet .pf-close { z-index: 2; }
.lb-grid li { content-visibility: auto; contain-intrinsic-size: auto 210px; }
.lb-head-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.lb-head-row h2 { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lb-resync { flex: none; white-space: nowrap; height: 32px; padding: 0 14px; border-radius: 999px; border: 0.5px solid rgba(255, 255, 255, 0.2); background: rgba(255, 255, 255, 0.08); color: #fff; font: 500 13px var(--body); cursor: pointer; transition: background 0.2s, transform 0.15s; }
.lb-resync:hover:not(:disabled) { background: rgba(255, 255, 255, 0.15); }
.lb-resync:active:not(:disabled) { transform: scale(0.97); }
.lb-resync:disabled { opacity: 0.5; cursor: default; }
.lb-head h2 { display: flex; align-items: center; gap: 10px; margin: 0; font: 500 36px/1.1 var(--display); }
.lb-head p { margin: 6px 0 18px; font-size: 14px; color: rgba(255, 255, 255, 0.55); }
.lb-switcher { display: flex; gap: 4px; padding: 4px; margin-bottom: 18px; border-radius: 999px; background: rgba(255, 255, 255, 0.07); width: max-content; max-width: 100%; overflow-x: auto; scrollbar-width: none; }
.lb-switcher::-webkit-scrollbar { display: none; }
.lb-switcher button { height: 36px; padding: 0 16px; border-radius: 999px; border: 0; background: transparent; color: rgba(255, 255, 255, 0.7); font: 500 14px var(--body); cursor: pointer; white-space: nowrap; }
.lb-switcher button[aria-selected='true'] { background: #fff; color: #000; font-weight: 600; }
.lb-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 16px 12px; }
.lb-grid li { min-width: 0; }
.lb-poster { position: relative; display: block; aspect-ratio: 2 / 3; border-radius: 10px; overflow: hidden; background: linear-gradient(160deg, #26262c, #141418); }
.lb-poster img { position: relative; z-index: 1; width: 100%; height: 100%; object-fit: cover; display: block; }
.lb-poster span { position: absolute; inset: 0; display: grid; place-items: center; padding: 6px; text-align: center; font: 500 13px/1.15 var(--display); color: rgba(255, 255, 255, 0.55); }
.lb-t { margin: 6px 0 2px; font-size: 12.5px; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lb-r { margin: 0; display: flex; align-items: center; gap: 5px; font-size: 12px; color: rgba(255, 255, 255, 0.5); }
.lb-stars { color: #00e054; letter-spacing: -0.5px; }
.lb-heart { color: #ff8000; }
.lb-unrated { color: rgba(255, 255, 255, 0.35); }
.lb-y { margin-left: auto; }
.lb-lede { margin: 0 0 16px; font-size: 14px; line-height: 1.55; color: rgba(255, 255, 255, 0.7); }
.lb-lede b { color: #fff; font-weight: 600; }
.lb-picks { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.lb-pick { display: grid; grid-template-columns: 84px 1fr; gap: 16px; padding: 12px; border-radius: 18px; background: rgba(255, 255, 255, 0.04); border: 0.5px solid rgba(255, 255, 255, 0.07); }
.lb-pick-poster { aspect-ratio: 2 / 3; border-radius: 10px; overflow: hidden; background: linear-gradient(160deg, #26262c, #141418); display: grid; place-items: center; }
.lb-pick-poster img { width: 100%; height: 100%; object-fit: cover; display: block; }
.lb-pick-poster span { padding: 6px; text-align: center; font: 500 12px/1.15 var(--display); color: rgba(255, 255, 255, 0.55); }
.lb-pick-body { min-width: 0; }
.lb-pick h4 { margin: 2px 0 4px; font: 500 24px/1.1 var(--display); color: #fff; }
.lb-pick-meta { margin: 0 0 6px; font-size: 13px; color: rgba(255, 255, 255, 0.55); }
.lb-pick .rratings { margin: 0 0 10px; gap: 5px; }
.lb-pick .rate { height: 24px; font-size: 12px; }
.lb-pick[data-open] { cursor: pointer; }
.lb-pick[data-open]:hover h4 { text-decoration: underline; text-underline-offset: 3px; }
.lb-pick .rate.award { max-width: 100%; }
.lb-pick .rcast { margin: 0 0 8px; font-size: 13px; }
.lb-because { margin: 0 0 6px; font-size: 13.5px; color: rgba(255, 255, 255, 0.8); }
.lb-because b { color: #fff; font-weight: 600; }
.lb-shared { display: block; margin-bottom: 3px; font-size: 11px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent); }
.lb-award { display: inline-block; margin: 0 0 6px; padding: 3px 10px; border-radius: 999px; background: rgba(232, 182, 71, 0.13); color: #f3d68f; font-size: 12px; font-weight: 600; }
.lb-plot { margin: 0 0 8px; font-size: 13.5px; line-height: 1.5; color: rgba(255, 255, 255, 0.62); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.lb-links { margin: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; font-size: 13.5px; }
.lb-links a { color: #fff; text-underline-offset: 3px; text-decoration-color: rgba(255, 255, 255, 0.35); }
.lb-links button { height: 30px; padding: 0 12px; border-radius: 999px; border: 0.5px solid rgba(255, 255, 255, 0.25); background: transparent; color: #fff; font-size: 13px; cursor: pointer; }
.lb-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin-top: 22px; padding-top: 14px; border-top: 0.5px solid rgba(255, 255, 255, 0.08); }
.lb-unlink { height: 34px; padding: 0 14px; border-radius: 999px; border: 0.5px solid rgba(255, 255, 255, 0.2); background: transparent; color: rgba(255, 255, 255, 0.75); font-size: 13px; cursor: pointer; }
.lb-file-subtle { height: 32px; padding: 0 14px; font-size: 12px; font-weight: 500; background: transparent; color: rgba(255, 255, 255, 0.4); border: 0.5px solid rgba(255, 255, 255, 0.12); }
.lb-file-subtle:hover { color: rgba(255, 255, 255, 0.75); border-color: rgba(255, 255, 255, 0.25); background: rgba(255, 255, 255, 0.04); }
@media (max-width: 600px) {
  .lb-head h2 { font-size: 23px; }
  .lbsheet .pf-sheet { height: 92svh; max-height: 92svh; padding: 0; border-radius: 24px 24px 0 0; }
  .lbsheet .lb-head { padding: 22px 64px 0 18px; }
  .lbsheet .lb-switcher { margin: 0 18px 12px; }
  .lbsheet .lb-panel { padding: 2px 18px 22px; }
  .lbsheet .lb-foot { padding: 10px 18px calc(10px + env(safe-area-inset-bottom)); }
  .lb-switcher button { padding: 0 12px; font-size: 13px; }
  .lb-pick { grid-template-columns: 68px 1fr; gap: 12px; }
  .lb-pick h4 { font-size: 20px; }
  .lb-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px 10px; }
}
.pf-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; padding-top: 16px; border-top: 0.5px solid rgba(255, 255, 255, 0.08); }
.pf-reset { height: 34px; padding: 0 14px; border-radius: 999px; border: 0.5px solid rgba(255, 120, 120, 0.35); background: transparent; color: #ffb3b3; font-size: 13px; cursor: pointer; transition: background 0.2s; }
.pf-reset:hover { background: rgba(255, 120, 120, 0.1); }
.pf-loading { display: flex; justify-content: center; gap: 8px; padding: 60px 0; }
.pf-loading i { width: 8px; height: 8px; border-radius: 50%; background: #ffffff; animation: pfdot 0.9s ease-in-out infinite alternate; }
.pf-loading i:nth-child(2) { animation-delay: 0.15s; }
.pf-loading i:nth-child(3) { animation-delay: 0.3s; }
@keyframes pfdot { to { opacity: 0.2; transform: translateY(-6px); } }
.pf-open { overflow: hidden; }
#profile-btn.signed-in { padding: 0; overflow: hidden; box-shadow: 0 0 0 1.5px rgba(255, 255, 255, 0.6); }
#profile-btn.signed-in img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
.hb-initials { font: italic 500 19px/1 var(--display); color: #ffffff; }
@media (max-width: 600px) {
  .profile { place-items: end center; padding: 0; }
  .pf-sheet { max-height: 92svh; padding: 26px 18px 18px; border-radius: 24px 24px 0 0; }
  .pf-head { flex-direction: column; align-items: flex-start; gap: 14px; padding-right: 40px; }
  .pf-avatar { width: 60px; height: 60px; font-size: 24px; }
  .pf-id h2 { font-size: 30px; }
  .pf-stats { grid-template-columns: repeat(2, 1fr); }
  .pf-bars li { grid-template-columns: 110px 1fr 36px; }
}

/* ---------- Micro-interactions ---------- */
.rcard { transform: perspective(1400px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform 0.6s cubic-bezier(.2,.8,.2,1), box-shadow 0.4s; }
.rcard::after {
  content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity 0.4s;
  background: radial-gradient(420px circle at var(--gx, 50%) var(--gy, 50%), rgba(255, 220, 170, 0.07), transparent 60%);
}
.rcard:hover::after { opacity: 1; }
.rcard { position: relative; }
.rposter { transition: transform 0.6s cubic-bezier(.2,.8,.2,1); transform: translate(var(--px, 0), var(--py, 0)); }
.fb { position: relative; }
.fb.ring::after { content: ''; position: absolute; inset: -2px; border-radius: inherit; border: 1.5px solid rgba(255, 255, 255, 0.8); animation: ring 0.6s ease-out forwards; pointer-events: none; }
@keyframes ring { from { transform: scale(0.8); opacity: 1; } to { transform: scale(1.6); opacity: 0; } }
.fb[aria-pressed='true'] { box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.35), 0 6px 18px rgba(255, 190, 110, 0.25); }
.step { transition: transform 0.4s cubic-bezier(.2,.8,.2,1), border-color 0.3s, background 0.3s; }
.step:hover { transform: translateY(-4px); border-color: rgba(255, 255, 255, 0.35); background: rgba(36, 34, 30, 0.7); }
.ex img { transition: transform 0.6s cubic-bezier(.2,.8,.2,1), box-shadow 0.5s; }
.ex:hover img { transform: translateY(-4px) scale(1.01); box-shadow: 0 40px 80px -30px rgba(0, 0, 0, 1), 0 0 0 1px rgba(255, 255, 255, 0.25); }
.mcard { transition: background 0.25s, transform 0.35s cubic-bezier(.2,.8,.2,1); }
.mcard:hover { transform: translateX(4px); }
.watch { position: relative; overflow: hidden; }
.watch::after { content: ''; position: absolute; top: 0; bottom: 0; width: 40%; left: -60%; background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.7), transparent); transform: skewX(-20deg); }
.watch:hover::after { animation: watchShine 0.8s ease; }
@keyframes watchShine { to { left: 130%; } }
@media (prefers-reduced-motion: reduce) { .rcard, .rposter { transform: none !important; } .watch:hover::after { animation: none; } }

/* ---------- Header nav ---------- */
.topnav { display: flex; gap: 4px; margin-right: auto; margin-left: 28px; padding: 4px; border-radius: 999px; background: rgba(255, 255, 255, 0.04); border: 0.5px solid rgba(255, 255, 255, 0.08); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
.topnav a { padding: 7px 14px; border-radius: 999px; font-size: 13px; font-weight: 500; color: rgba(255, 255, 255, 0.62); text-decoration: none; transition: color 0.2s, background 0.2s; }
.topnav a:hover, .topnav a.active { color: #fff; background: rgba(255, 255, 255, 0.08); }
@media (max-width: 860px) { .topnav { display: none; } }

/* ---------- About / FAQ / Privacy ---------- */
.info { padding-top: 110px; }
.info .how-title { max-width: 820px; margin-left: auto; margin-right: auto; }
.about-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 36px; align-items: start; }
.about-copy p { margin: 0 0 18px; font-size: 16.5px; line-height: 1.7; color: rgba(255, 255, 255, 0.74); }
.about-copy p:last-child { font: italic 500 25px/1.4 var(--display); color: #ffffff; }
.credits, .privacy-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.credits li, .privacy-list li {
  display: grid; gap: 4px; padding: 16px 18px; border-radius: 18px; background: rgba(30, 30, 34, 0.6); border: 0.5px solid rgba(255, 255, 255, 0.1);
  -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px); transition: border-color 0.3s, transform 0.4s cubic-bezier(.2,.8,.2,1);
}
.credits li:hover, .privacy-list li:hover { border-color: rgba(255, 255, 255, 0.3); transform: translateX(3px); }
.credits b, .privacy-list b { font-size: 15px; font-weight: 600; color: #fff; }
.credits span, .privacy-list span { font-size: 14px; line-height: 1.55; color: rgba(255, 255, 255, 0.6); }
.privacy-list { grid-template-columns: repeat(2, 1fr); gap: 14px; }
.fineprint { margin-top: 22px; text-align: center; font-size: 12.5px; color: rgba(255, 255, 255, 0.4); }
.faq { display: grid; gap: 10px; max-width: 820px; margin: 0 auto; }
.faq details { border-radius: 18px; background: rgba(30, 30, 34, 0.6); border: 0.5px solid rgba(255, 255, 255, 0.1); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px); transition: border-color 0.3s, background 0.3s; }
.faq details[open] { border-color: rgba(255, 255, 255, 0.3); background: rgba(36, 34, 30, 0.7); }
.faq summary { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 18px 20px; cursor: pointer; list-style: none; font-size: 16px; font-weight: 500; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; flex: none; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: rgba(255, 255, 255, 0.08); font-size: 17px; color: #ffffff; transition: transform 0.35s cubic-bezier(.2,.8,.2,1); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 0; padding: 0 20px 20px; font-size: 15px; line-height: 1.65; color: rgba(255, 255, 255, 0.7); }

/* ---------- Footer ---------- */
.site-foot { flex-direction: column; gap: 14px; text-align: center; }
.foot-brand { display: flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 600; color: #fff; }
.foot-brand img { border-radius: 6px; }
.foot-brand em { font: italic 500 20px/1 var(--display); color: rgba(255, 255, 255, 0.85); }
.foot-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 18px; }
.foot-links a { font-size: 13px; color: rgba(255, 255, 255, 0.6); text-decoration: none; }
.foot-links a:hover { color: #fff; }
.foot-meta { font-size: 12px; color: rgba(255, 255, 255, 0.36); }
.pf-delete { height: 34px; padding: 0 14px; border-radius: 999px; border: 0; background: transparent; color: rgba(255, 140, 140, 0.75); font-size: 13px; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.pf-delete:hover { color: #ffb3b3; }
@media (max-width: 820px) { .about-grid, .privacy-list { grid-template-columns: 1fr; } .info { padding-top: 80px; } }

/* Gold ticket wordmark in the header */
.brand-ticket { display: block; height: 44px; width: auto; filter: drop-shadow(0 4px 14px rgba(232, 189, 87, 0.22)); transition: transform 0.25s ease, filter 0.25s ease; }
.brand:hover .brand-ticket { transform: rotate(-2deg) scale(1.04); filter: drop-shadow(0 6px 20px rgba(232, 189, 87, 0.4)); }
@media (max-width: 520px) { .brand-ticket { height: 32px; } }
.foot-ticket { display: block; height: 36px; width: auto; filter: drop-shadow(0 3px 10px rgba(232, 189, 87, 0.2)); }


/* ---------- Watched Card State & Blur Overlay ---------- */
.rcard, .mcard { position: relative; }
.rcard.is-watched .rbody, .rcard.is-watched .rposter,
.mcard.is-watched .mbody, .mcard.is-watched .mposter, .mcard.is-watched .mside {
  filter: blur(5px) grayscale(0.85);
  opacity: 0.28;
  pointer-events: none;
  transition: filter 0.35s ease, opacity 0.35s ease;
}
.watched-overlay {
  position: absolute; inset: 0; z-index: 10;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
  background: rgba(14, 14, 18, 0.72); border-radius: inherit;
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  animation: fadeIn 0.25s ease both; padding: 20px; text-align: center;
}
.watched-badge {
  display: inline-flex; align-items: center; gap: 7px; padding: 6px 14px; border-radius: 999px;
  background: rgba(255, 255, 255, 0.16); border: 0.5px solid rgba(255, 255, 255, 0.45);
  color: #ffffff; font-size: 13px; font-weight: 600; box-shadow: 0 4px 16px rgba(0,0,0,0.4);
}
.watched-note { margin: 2px 0 6px; font-size: 13px; color: rgba(255, 255, 255, 0.65); max-width: 320px; }
.watched-undo {
  padding: 6px 16px; border-radius: 999px; border: 0.5px solid rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.08); color: #fff; font-size: 12.5px; font-weight: 500;
  cursor: pointer; transition: background 0.2s, border-color 0.2s, color 0.2s;
}
.watched-undo:hover { background: rgba(255, 255, 255, 0.18); border-color: rgba(255, 255, 255, 0.5); color: #ffffff; }

.watched-toggle {
  display: inline-flex; align-items: center; gap: 6px; height: 38px; padding: 0 14px;
  border-radius: 999px; border: 0.5px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.06); color: rgba(255, 255, 255, 0.85);
  font-size: 13px; font-weight: 500; cursor: pointer; transition: background-color 150ms var(--ease-out), color 150ms var(--ease-out), transform 120ms var(--ease-out);
}
.watched-toggle:hover { background: rgba(255, 255, 255, 0.14); border-color: rgba(255, 255, 255, 0.4); color: #ffffff; }
.watched-toggle-mini {
  display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px;
  border-radius: 50%; border: 0.5px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.06); color: rgba(255, 255, 255, 0.85); cursor: pointer; transition: background-color 150ms var(--ease-out), color 150ms var(--ease-out), transform 120ms var(--ease-out);
}
.watched-toggle-mini:hover { background: rgba(255, 255, 255, 0.16); color: #ffffff; border-color: rgba(255, 255, 255, 0.4); }

/* ---------- Watched Library in Profile Sheet ---------- */
.pf-watched-header { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.pf-watched-title-wrap h3 { margin: 0 0 4px; font-size: 15px; font-weight: 600; color: #fff; display: flex; align-items: center; gap: 8px; }
.pf-count-pill { font-size: 11px; padding: 2px 8px; border-radius: 999px; background: rgba(255, 255, 255, 0.2); color: #ffffff; border: 0.5px solid rgba(255, 255, 255, 0.35); }
.pf-watched-sub { margin: 0; font-size: 13px; color: rgba(255, 255, 255, 0.55); }
.pf-search-wrap { position: relative; min-width: 200px; }
.pf-search {
  width: 100%; height: 34px; padding: 0 12px; border-radius: 999px; border: 0.5px solid rgba(255, 255, 255, 0.15);
  background: rgba(0, 0, 0, 0.4); color: #fff; font-size: 13px; outline: none; transition: border-color 0.2s;
}
.pf-search:focus { border-color: rgba(255, 255, 255, 0.5); }
.pf-watched-grid {
  list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 14px;
  max-height: 480px; overflow-y: auto; padding-right: 4px;
}
.pf-watched-card {
  position: relative; display: flex; flex-direction: column; gap: 6px;
  border-radius: 14px; padding: 6px; background: rgba(255, 255, 255, 0.03);
  border: 0.5px solid rgba(255, 255, 255, 0.12); transition: transform 0.2s ease, border-color 0.2s ease, opacity 0.2s ease;
}
.pf-watched-card:hover { transform: translateY(-3px); border-color: rgba(255, 255, 255, 0.35); background: rgba(255, 255, 255, 0.06); }
.pf-poster-box { position: relative; aspect-ratio: 2 / 3; border-radius: 10px; overflow: hidden; background: #16161c; }
.pf-poster-box img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pf-no-poster { width: 100%; height: 100%; display: grid; place-items: center; font-size: 28px; }
.pf-unwatch-btn {
  position: absolute; top: 6px; right: 6px; width: 26px; height: 26px; border-radius: 50%;
  border: 0; background: rgba(0, 0, 0, 0.75); color: #fff; display: grid; place-items: center;
  cursor: pointer; opacity: 0; transition: opacity 0.2s, background 0.2s, transform 0.2s;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
}
.pf-watched-card:hover .pf-unwatch-btn, .pf-unwatch-btn:focus-visible { opacity: 1; }
.pf-unwatch-btn:hover { background: #e3262f; transform: scale(1.1); }
.pf-movie-info { padding: 2px 4px 4px; }
.pf-movie-title { margin: 0; font-size: 13px; font-weight: 600; color: #fff; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pf-movie-meta { margin: 3px 0 0; display: flex; align-items: center; justify-content: space-between; font-size: 11.5px; color: rgba(255, 255, 255, 0.5); }
.pf-rating { color: #ffffff; font-weight: 600; }
.pf-empty-state { text-align: center; padding: 48px 20px; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.pf-empty-icon { width: 68px; height: 68px; border-radius: 50%; background: rgba(255, 255, 255, 0.05); display: grid; place-items: center; color: #ffffff; }
.pf-empty-state h4 { margin: 0; font: 400 24px/1.1 var(--display); color: #fff; }
.pf-empty-state p { margin: 0; font-size: 14px; color: rgba(255, 255, 255, 0.55); max-width: 380px; line-height: 1.55; }
.credits li { background: linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.012)); border: 0.5px solid rgba(255, 255, 255, 0.14); -webkit-backdrop-filter: none; backdrop-filter: none; }

/* Footer: the catalogues we read from, as quiet monochrome marks that warm up on hover */
.sources { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.sources-label { font: 600 11.5px/1 var(--caps); letter-spacing: 0.26em; text-transform: uppercase; color: rgba(255, 255, 255, 0.6); }
.sources ul { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 26px; margin: 0; padding: 0; list-style: none; }
.sources li { display: inline-flex; align-items: center; gap: 8px; font: 600 13px/1 var(--body); letter-spacing: -0.005em; color: rgba(255, 255, 255, 0.5); filter: grayscale(1); opacity: 0.8; transition: filter 0.3s, opacity 0.3s, color 0.3s; }
.sources li:hover { filter: none; opacity: 1; color: #fff; }
.src-moctale { width: 20px; height: 20px; display: grid; place-items: center; border-radius: 6px; background: #000; color: #fff; box-shadow: inset 0 0 0 0.5px rgba(255, 255, 255, 0.4); }
.src-imdb { height: 18px; padding: 0 5px; border-radius: 3px; background: #f5c518; color: #000; font: 800 11.5px/18px var(--body); font-style: normal; letter-spacing: -0.03em; }
.src-lb { display: inline-flex; gap: 2px; }
.src-lb b { width: 8px; height: 8px; border-radius: 50%; background: #ff8000; }
.src-lb b:nth-child(2) { background: #00e054; }
.src-lb b:nth-child(3) { background: #40bcf4; }
.src-tmdb { height: 16px; padding: 0 5px; border-radius: 4px; display: grid; place-items: center; background: linear-gradient(90deg, #90cea1, #01b4e4); color: #0d253f; font: 800 10px/1 var(--body); letter-spacing: 0.04em; font-style: normal; }
.src-jw { width: 20px; height: 20px; display: grid; place-items: center; border-radius: 6px; background: linear-gradient(135deg, #fbd446, #f39c12); color: #1a1a1a; }
.foot-meta { margin-top: 4px; }

/* About: one readable column, then the sources set like a poster's billing block of studio marks */
.about-grid { display: block; max-width: 68ch; margin: 0 auto; }
.about-copy p { font-size: 18px; line-height: 1.65; }
.billing { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 22px 48px; margin: 56px auto 0; padding: 30px 0 0; list-style: none; border-top: 1px solid rgba(255, 255, 255, 0.1); max-width: 900px; }
.billing li { display: inline-flex; align-items: center; gap: 10px; font: 600 22px/1 var(--display); text-transform: uppercase; letter-spacing: 0.02em; color: rgba(255, 255, 255, 0.82); }
.b-moctale { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 9px; background: #000; color: #fff; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.4); }
.b-imdb { height: 30px; padding: 0 8px; border-radius: 5px; background: #f5c518; color: #000; font: 800 19px/30px var(--body); letter-spacing: -0.04em; text-transform: none; }
.b-lb { display: inline-flex; gap: 3px; }
.b-lb b { width: 13px; height: 13px; border-radius: 50%; background: #ff8000; }
.b-lb b:nth-child(2) { background: #00e054; }
.b-lb b:nth-child(3) { background: #40bcf4; }
.b-tmdb { height: 26px; padding: 0 9px; border-radius: 7px; display: grid; place-items: center; background: linear-gradient(90deg, #90cea1, #01b4e4); color: #0d253f; font: 800 13px/1 var(--body); letter-spacing: 0.04em; }
.b-wd { display: inline-flex; gap: 2px; align-items: flex-end; height: 22px; }
.b-wd b { width: 4px; height: 22px; background: #990000; border-radius: 1px; }
.b-wd b:nth-child(2) { background: #339966; height: 16px; }
.b-wd b:nth-child(3) { background: #006699; height: 19px; }
.b-jw { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 9px; background: linear-gradient(135deg, #fbd446, #f39c12); color: #1a1a1a; }
.b-groq { font: 700 28px/1 var(--body); letter-spacing: -0.04em; text-transform: none; color: #fff; }
@media (max-width: 600px) { .billing { gap: 18px 28px; } .billing li { font-size: 18px; } }

/* ---------- Visual system ----------
   One family (Schibsted Grotesk), pure black, true white, one accent (the ticket's gold) kept for the
   logo and the primary actions. Large tight headlines in sentence case; no italics, no caps labels,
   no glass, no outlined cards; surfaces step in tone. */
body { font: 17px/1.55 var(--body); letter-spacing: -0.005em; color: #fff; background: #000; }
h1, h2, h3, h4 { font-style: normal; text-transform: none; }
.how-title { font: 800 clamp(44px, 6.2vw, 88px)/0.98 var(--display); letter-spacing: -0.045em; text-transform: none; text-align: left; max-width: 15ch; margin: 0 0 22px; }
.how-lede { max-width: 56ch; margin: 0 0 56px; font-size: 20px; line-height: 1.5; color: #fff; }
.how, .info { text-align: left; }
.info .how-title { margin-left: 0; margin-right: 0; }
.how-eyebrow { display: none; }
.rtitle { font: 800 52px/0.98 var(--display); letter-spacing: -0.04em; text-transform: none; }
.mtitle { font: 700 22px/1.1 var(--display); letter-spacing: -0.025em; text-transform: none; }
.ex-title { font: 700 26px/1.1 var(--display); letter-spacing: -0.03em; text-transform: none; }
.pf-id h2, .drawer h2 { font: 800 38px/1 var(--display); letter-spacing: -0.04em; text-transform: none; }
.pf-stats b { font: 800 34px/1 var(--display); letter-spacing: -0.04em; }
.faq summary { font: 600 19px/1.3 var(--body); letter-spacing: -0.015em; }
.search-lead, .ex-q .lead, .step em, .suggest .s-conn, .ld-query, .about-copy p:last-child, .ptitle, .hb-initials, .pf-posters .pp span, .ld-title {
  font-family: var(--body); font-style: normal; font-weight: 700; letter-spacing: -0.03em;
}
.search-lead { font-size: 24px; color: #fff; }
.ex-q .lead { color: rgba(255, 255, 255, 0.55); font-weight: 600; }
.about-grid { display: block; max-width: 62ch; margin: 0; }
.about-copy p { font-size: 20px; line-height: 1.5; color: #fff; font-weight: 400; letter-spacing: -0.01em; }
.eyebrow, .pf-eyebrow, .pf-block h3, .drawer-body h4, .suggest .s-head, .ld-eyebrow, .ld-steps, .ld-title small, .sources-label {
  font-family: var(--body); font-weight: 600; letter-spacing: 0; text-transform: none; color: rgba(255, 255, 255, 0.6);
}
.eyebrow { font-size: 14px; }
.dot { display: inline-block; width: 0.9em; font-size: 0; }
/* plain bar navigation, no glass pill */
.topnav { background: none; border: 0; -webkit-backdrop-filter: none; backdrop-filter: none; padding: 0; gap: 8px; }
.topnav a { font: 500 15px/1 var(--body); letter-spacing: -0.01em; text-transform: none; color: rgba(255, 255, 255, 0.7); padding: 8px 10px; background: none !important; }
.topnav a:hover, .topnav a.active, .topnav a[aria-current] { color: #fff; }
.brand-ticket, .foot-ticket { filter: none; }
.brand:hover .brand-ticket { filter: none; transform: rotate(-2deg); }
/* surfaces: a step in tone, no outlines */
.step, .faq details, .privacy-list > *, .ex-q, .credits li {
  background: #111; border: 0; border-radius: 14px; box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none;
}
.faq details[open], .step:hover, .faq details:hover, .ex-q:hover, .credits li:hover { background: #181818; border: 0; }
.faq summary::after { background: #222; border: 0; color: #fff; }
.billing { border-top: 0; margin-top: 64px; padding-top: 0; justify-content: flex-start; }
.billing li { font: 700 22px/1 var(--body); letter-spacing: -0.03em; text-transform: none; color: #fff; }
.fineprint { color: rgba(255, 255, 255, 0.5); }
/* primary action: flat accent */
.search-go { background: var(--accent) !important; box-shadow: none !important; color: #000 !important; }
.search-go:hover { box-shadow: none !important; background: #f2c65c !important; }
::selection { background: rgba(232, 182, 71, 0.45); color: #fff; }
/* Watched: a plain, obvious button */
.watched-toggle {
  display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 16px; border: 0; border-radius: 999px;
  background: #fff; color: #000; font: 600 15px/1 var(--body); letter-spacing: -0.01em; cursor: pointer;
}
.watched-toggle:hover { background: #e9e9e9; color: #000; border: 0; }
.watched-toggle-mini {
  display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 12px; border: 0; border-radius: 999px;
  background: #fff; color: #000; font: 600 13px/1 var(--body); cursor: pointer; width: auto;
}
.watched-toggle-mini:hover { background: #e9e9e9; color: #000; border: 0; }
.watched-badge { color: #000; background: var(--accent); }
.watched-note { color: #fff; }
.watched-undo { background: #fff; color: #000; border: 0; }
.watched-undo:hover { background: #e9e9e9; color: #000; border: 0; }
.about-copy p, .about-copy p:last-child { font-weight: 400; font-size: 20px; letter-spacing: -0.01em; }
.billing { margin-left: 0; margin-right: 0; padding-left: 0; max-width: none; }
.info .fineprint { text-align: left; margin-left: 0; }
.how > .how-title, .how > .how-lede { margin-left: auto; margin-right: auto; max-width: 1060px; text-wrap: balance; }
.how > .how-lede { padding-right: max(0px, calc(100% - 58ch)); box-sizing: border-box; }
.ractions { flex-wrap: wrap; gap: 10px; }
@media (max-width: 600px) { .how-title { font-size: 40px; letter-spacing: -0.04em; } .how-lede { font-size: 18px; } }

.pf-watched-summary { display: flex; align-items: baseline; gap: 14px; margin: 28px 0 8px; }
.pf-watched-summary > b { font: 800 56px/1 var(--display); letter-spacing: -0.05em; color: #fff; }
.pf-watched-summary p { margin: 0; font-size: 16px; line-height: 1.5; color: #fff; }
.pf-watched-summary p b { font: inherit; font-weight: 700; letter-spacing: 0; }

/* ---------- Motion pass (Emil Kowalski standards via the review-animations skill) ----------
   Hover motion is removed from content; only real controls answer a press, and only on fine pointers.
   No attention loops: the scroll cue is still, and the search bar's sheen plays once when you focus it. */
.step:hover, .ex:hover img, .mcard:hover, .credits li:hover, .privacy-list li:hover, .pf-watched-card:hover,
.pf-unwatch-btn:hover, .watch:hover, .more-btn:hover, .search-go:hover { transform: none; }
.search-go, .watch, .watched-toggle, .watched-toggle-mini, .more-btn, .fb, .watched-undo { transition-timing-function: var(--ease-out); }
.search-go:active, .watch:active, .watched-toggle:active, .watched-toggle-mini:active, .more-btn:active, .watched-undo:active { transform: scale(0.96); transition-duration: 120ms; }
@media not all and (hover: hover) and (pointer: fine) { .brand:hover .brand-ticket { transform: none; } }
.scroll-cue svg { animation: none; }
.ld-steps li.active::before { animation: none; }
.search-sheen::after { animation: none; }
.search:focus-within .search-sheen::after { animation: sheenOnce 900ms var(--ease-out) 1 both; }
@keyframes sheenOnce { from { left: -45%; } to { left: 110%; } }
.arena.paused, .arena.paused * { animation-play-state: paused !important; }
@media (prefers-reduced-motion: reduce) {
  .search-sheen::after, .search:focus-within .search-sheen::after { animation: none; }
  .search::before { animation: none; }
  .search:focus-within { transform: none; }
}

/* Already-watched picks: at the end of the list, dimmed */
.more-sep { margin: 22px 0 6px; font: 600 14px/1 var(--body); color: rgba(255, 255, 255, 0.5); }
/* Films you've seen (marked here or logged on Letterboxd): listed last, in shadow. */
.mcard.is-dim { background: #0b0b0d; border-color: rgba(255, 255, 255, 0.05); -webkit-backdrop-filter: none; backdrop-filter: none; }
.mcard.is-dim .mbody { opacity: 0.4; transition: opacity 0.2s; }
.mcard.is-dim .mposter { filter: grayscale(1) brightness(0.4); }
.mcard.is-dim:hover .mbody { opacity: 0.75; }
.seen-badge { display: inline-flex; align-items: center; height: 26px; padding: 0 10px; border-radius: 999px; background: #1c1c20; color: rgba(255, 255, 255, 0.7); font: 600 12px/1 var(--body); }

/* Add a film that fits */
.addfilm { max-width: 760px; margin: 18px auto 0; text-align: center; }
.addfilm-btn { height: 40px; padding: 0 18px; border: 0; border-radius: 999px; background: #1a1a1a; color: #fff; font: 600 15px/1 var(--body); cursor: pointer; transition: background-color 150ms var(--ease-out), transform 120ms var(--ease-out); }
.addfilm-btn:hover { background: #262626; }
.addfilm-btn:active { transform: scale(0.96); }
.addfilm-form { margin-top: 12px; text-align: left; }
.addfilm-form input { width: 100%; height: 48px; padding: 0 16px; border: 0; border-radius: 12px; background: #141414; color: #fff; font: 500 17px/1 var(--body); outline: none; }
.addfilm-form input:focus { box-shadow: 0 0 0 2px var(--accent); }
.addfilm-list { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 4px; }
.addfilm-list button { width: 100%; display: flex; justify-content: space-between; gap: 12px; padding: 12px 16px; border: 0; border-radius: 10px; background: #111; color: #fff; font: 500 16px/1.2 var(--body); text-align: left; cursor: pointer; transition: background-color 150ms var(--ease-out); }
.addfilm-list button:hover { background: #1c1c1c; }
.addfilm-list button:disabled { opacity: 0.45; cursor: default; }
.addfilm-list span { color: rgba(255, 255, 255, 0.55); white-space: nowrap; }
.addfilm-empty { padding: 12px 16px; color: rgba(255, 255, 255, 0.6); }
.addfilm-note { margin: 10px 2px 0; font-size: 14px; color: rgba(255, 255, 255, 0.55); }
.added-tag { margin: 2px 0 4px; font: 600 13px/1 var(--body); color: var(--accent); }

.addfilm-rules { margin-top: 14px; padding: 16px 18px; border-radius: 12px; background: #0f0f0f; }
.addfilm-rules h4 { margin: 0 0 8px; font: 700 16px/1.2 var(--body); color: #fff; }
.addfilm-rules ul { margin: 0 0 10px; padding-left: 18px; display: grid; gap: 6px; }
.addfilm-rules li { font-size: 15px; line-height: 1.45; color: rgba(255, 255, 255, 0.8); }
.addfilm-rules li b { color: #fff; font-weight: 600; }
.addfilm-rules p { margin: 0; font-size: 14px; line-height: 1.5; color: rgba(255, 255, 255, 0.6); }
.addfilm-rules i { font-style: normal; color: var(--accent); }

.addfilm-together { margin-top: 14px; padding: 16px 18px; border-radius: 12px; background: var(--accent); color: #000; }
.addfilm-together h4 { margin: 0 0 4px; font: 800 18px/1.2 var(--body); letter-spacing: -0.02em; }
.addfilm-together p { margin: 0; font-size: 15px; line-height: 1.45; color: rgba(0, 0, 0, 0.82); }

/* Nothing fits: say why, offer searches that work */
.nomatch { padding: 34px 32px; border-radius: 18px; background: #111; text-align: left; }
.nomatch h3 { margin: 0 0 8px; font: 800 30px/1.1 var(--display); letter-spacing: -0.03em; color: #fff; }
.nomatch p { margin: 0 0 18px; font-size: 17px; color: rgba(255, 255, 255, 0.7); }
.nomatch-list { display: grid; gap: 8px; }
.nomatch-try { width: 100%; padding: 14px 18px; border: 0; border-radius: 12px; background: #1a1a1a; color: #fff; font: 500 17px/1.3 var(--body); text-align: left; cursor: pointer; transition: background-color 150ms var(--ease-out), transform 120ms var(--ease-out); }
.nomatch-try span { font-weight: 700; color: rgba(255, 255, 255, 0.55); margin-right: 4px; }
.nomatch-try:hover { background: #222; }
.nomatch-try:active { transform: scale(0.98); }


/* ---------- Touch: comfortable targets on phones and tablets ---------- */
@media (pointer: coarse) {
  .tag.fb { height: 38px; padding: 0 14px; font-size: 13px; }
  .rdetails summary { padding: 10px 0; }
  .mcard .fb { width: 38px; height: 38px; }
  .also a { display: inline-block; padding: 9px 2px; }
  .scroll-cue { padding: 12px 16px; bottom: 10px; }
  .lb-links a { display: inline-block; padding: 8px 0; }
}

/* Movies you might like: each favourite it's close to, on its own */
.lb-because { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 14px; }
.lb-because .lb-shared { flex-basis: 100%; }
.lb-fav { display: inline-flex; align-items: baseline; gap: 6px; }
.lb-short { display: none; }
@media (max-width: 520px) {
  .lb-long { display: none; }
  .lb-short { display: inline; }
}
