/* Flick — shared design system
   Dark "projection booth" theme. No inline styles anywhere: everything lives here. */

:root {
  color-scheme: dark;

  --bg: #110F17;
  --bg-deep: #0B0A10;
  --panel: #1C1926;
  --panel-2: #272334;
  --line: #3A3549;
  --line-soft: rgba(58, 53, 73, 0.6);
  --fg: #F5F0E8;
  --muted: #A49DB4;
  --dim: #6F6882;

  --want: #FFB547;
  --pass: #FF5F6D;
  --info: #7CC8FF;
  --seen: #7FE3B5;
  --star: #C9A8FF;
  --gold: #FFD76A;

  --font-display: "Big Shoulders Display", "Arial Narrow", Impact, sans-serif;
  --font-body: "Instrument Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --radius-s: 8px;
  --radius: 14px;
  --radius-l: 22px;

  --gutter: 16px;
  --max: 1120px;

  --shadow: 0 1px 0 rgba(255, 255, 255, 0.03) inset, 0 18px 40px -18px rgba(0, 0, 0, 0.7);
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

@media (min-width: 720px) {
  :root { --gutter: 32px; }
}

/* ---------- Base ---------- */

*, *::before, *::after { box-sizing: border-box; }

[hidden] { display: none !important; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  background: var(--bg);
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(1200px 600px at 85% -10%, rgba(255, 181, 71, 0.08), transparent 60%),
    radial-gradient(900px 500px at -10% 10%, rgba(201, 168, 255, 0.06), transparent 60%),
    var(--bg);
  background-repeat: no-repeat;
  background-attachment: fixed;
  color: var(--fg);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Subtle film grain */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.05;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

body > * { position: relative; z-index: 1; }

img { max-width: 100%; display: block; }

a { color: inherit; }

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0.005em;
  margin: 0;
}

p { margin: 0; }

button, input { font: inherit; color: inherit; }

:focus { outline: none; }
:focus-visible {
  outline: 2px solid var(--want);
  outline-offset: 3px;
  border-radius: 6px;
}

::selection { background: rgba(255, 181, 71, 0.35); }

.wrap {
  width: 100%;
  max-width: calc(var(--max) + var(--gutter) * 2);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: var(--gutter);
  top: -100px;
  z-index: 100;
  background: var(--want);
  color: var(--bg);
  padding: 10px 14px;
  border-radius: var(--radius-s);
  font-weight: 600;
  text-decoration: none;
}
.skip-link:focus { top: 12px; }

.eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--muted);
}

.mono { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }

/* ---------- Header ---------- */

.site-header {
  padding: 18px 0;
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
.brand img { width: 32px; height: 32px; }
.brand-name {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 26px;
  letter-spacing: 0.02em;
  line-height: 1;
}
.brand-tag {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--dim);
  padding: 3px 7px;
  border: 1px solid var(--line);
  border-radius: 999px;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 6px;
}
.site-nav a {
  font-size: 15px;
  color: var(--muted);
  text-decoration: none;
  padding: 8px 10px;
  border-radius: var(--radius-s);
  transition: color 0.15s;
}
.site-nav a:hover { color: var(--fg); }
.site-nav .nav-hide-sm { display: none; }
@media (min-width: 640px) {
  .site-nav .nav-hide-sm { display: inline-block; }
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 44px;
  padding: 10px 18px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--panel);
  color: var(--fg);
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.15s, border-color 0.15s, transform 0.15s var(--ease), color 0.15s;
}
.btn:hover { background: var(--panel-2); border-color: #4A445C; }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: 0.45; cursor: not-allowed; transform: none; }

.btn-primary {
  background: var(--want);
  border-color: var(--want);
  color: #1A1206;
}
.btn-primary:hover { background: #FFC266; border-color: #FFC266; }

.btn-lg { min-height: 54px; padding: 14px 22px; font-size: 16px; border-radius: 14px; }
.btn-sm { min-height: 36px; padding: 6px 12px; font-size: 14px; border-radius: 10px; }

.btn-ghost { background: transparent; }

.btn-danger {
  background: transparent;
  border-color: rgba(255, 95, 109, 0.5);
  color: var(--pass);
}
.btn-danger:hover:not(:disabled) { background: rgba(255, 95, 109, 0.12); border-color: var(--pass); }

.play-icon {
  width: 18px;
  height: 18px;
  flex: none;
}

/* ---------- Hero ---------- */

.hero {
  padding: 28px 0 64px;
}
.hero .wrap {
  display: grid;
  gap: 48px;
  align-items: center;
}
@media (min-width: 900px) {
  .hero { padding: 56px 0 96px; }
  .hero .wrap { grid-template-columns: 1.1fr 0.9fr; gap: 64px; }
}

.hero h1 {
  font-size: clamp(56px, 15vw, 92px);
  font-weight: 900;
  line-height: 0.88;
  letter-spacing: -0.005em;
}
.hero h1 .accent { color: var(--want); }

.hero-pitch {
  margin-top: 20px;
  font-size: clamp(18px, 2.4vw, 21px);
  color: var(--fg);
  max-width: 34ch;
  line-height: 1.45;
}
.hero-sub {
  margin-top: 12px;
  color: var(--muted);
  max-width: 46ch;
}

.hero-cta {
  margin-top: 28px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 18px;
}
.hero-cta .note { font-size: 14px; color: var(--dim); }

.gestures {
  list-style: none;
  margin: 36px 0 0;
  padding: 0;
  display: grid;
  gap: 2px;
  border-top: 1px solid var(--line-soft);
  max-width: 520px;
}
.gestures li {
  display: grid;
  grid-template-columns: 76px 1fr;
  gap: 14px;
  align-items: baseline;
  padding: 12px 0;
  border-bottom: 1px solid var(--line-soft);
}
.gesture-dir {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.03em;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.gesture-dir svg { width: 14px; height: 14px; flex: none; }
.gesture-dir.right { color: var(--want); }
.gesture-dir.left { color: var(--pass); }
.gesture-dir.down { color: var(--star); }
.gesture-dir.up { color: var(--info); }
.gestures strong { font-weight: 600; }
.gestures span.desc { color: var(--muted); }

/* ---------- Phone mock ---------- */

.mock {
  justify-self: center;
  width: min(100%, 300px);
  margin: 0;
}
@media (min-width: 900px) { .mock { width: 340px; } }

.phone {
  position: relative;
  aspect-ratio: 9 / 18.5;
  border-radius: 44px;
  padding: 10px;
  background: linear-gradient(160deg, #2B2737, #15131C 50%, #221F2C);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.06) inset,
    0 40px 80px -30px rgba(0, 0, 0, 0.9),
    0 0 120px -40px rgba(255, 181, 71, 0.25);
}
.screen {
  position: relative;
  height: 100%;
  border-radius: 35px;
  overflow: hidden;
  background:
    radial-gradient(120% 60% at 50% 0%, rgba(124, 200, 255, 0.08), transparent 60%),
    var(--bg);
}
.screen::before {
  /* camera notch */
  content: "";
  position: absolute;
  top: 10px;
  left: 50%;
  width: 72px;
  height: 20px;
  margin-left: -36px;
  border-radius: 999px;
  background: #050407;
  z-index: 3;
}

.zone {
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-align: center;
  z-index: 1;
}
.zone-up {
  top: 40px; left: 22%; right: 22%;
  height: 34px;
  border-radius: 10px;
  color: var(--info);
  background: rgba(124, 200, 255, 0.08);
  border: 1px dashed rgba(124, 200, 255, 0.35);
}
.zone-down {
  bottom: 16px; left: 18%; right: 18%;
  height: 40px;
  border-radius: 12px;
  color: var(--star);
  background: rgba(201, 168, 255, 0.08);
  border: 1px dashed rgba(201, 168, 255, 0.35);
  gap: 3px;
  flex-direction: column;
}
.zone-down .stars { display: flex; gap: 3px; }
.zone-down .stars i {
  width: 9px; height: 9px;
  background: var(--star);
  clip-path: polygon(50% 0, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
  opacity: 0.85;
}
.zone-left {
  left: 0; top: 30%; bottom: 30%;
  width: 26px;
  border-radius: 0 12px 12px 0;
  color: var(--pass);
  background: rgba(255, 95, 109, 0.1);
  border: 1px dashed rgba(255, 95, 109, 0.4);
  border-left: 0;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
}
.zone-right {
  right: 0; top: 22%; bottom: 22%;
  width: 26px;
  display: grid;
  grid-template-rows: 1fr 1fr 1fr;
  gap: 4px;
  align-items: stretch;
  justify-items: stretch;
}
.zone-right span {
  display: flex;
  align-items: center;
  justify-content: center;
  writing-mode: vertical-rl;
  border-radius: 12px 0 0 12px;
  color: var(--want);
  border: 1px dashed rgba(255, 181, 71, 0.45);
  border-right: 0;
  font-size: 9px;
}
.zone-right span:nth-child(1) { background: rgba(255, 181, 71, 0.30); color: #FFE2B0; }
.zone-right span:nth-child(2) { background: rgba(255, 181, 71, 0.18); }
.zone-right span:nth-child(3) { background: rgba(255, 181, 71, 0.08); }

.swipe-card {
  position: absolute;
  top: 86px;
  bottom: 70px;
  left: 40px;
  right: 50px;
  z-index: 2;
  border-radius: 20px;
  overflow: hidden;
  background:
    linear-gradient(180deg, transparent 40%, rgba(11, 10, 16, 0.92) 85%),
    radial-gradient(70% 45% at 70% 25%, rgba(255, 215, 106, 0.55), transparent 70%),
    radial-gradient(80% 60% at 20% 60%, rgba(255, 95, 109, 0.45), transparent 70%),
    linear-gradient(160deg, #3B2A55, #1A1424 70%);
  box-shadow: 0 24px 40px -16px rgba(0, 0, 0, 0.85), 0 0 0 1px rgba(255, 255, 255, 0.08) inset;
  transform: translateX(6px) rotate(3deg);
  transform-origin: 50% 50%;
  animation: card-sway 6s var(--ease) infinite;
}
.swipe-card::after {
  /* horizon/silhouette shape */
  content: "";
  position: absolute;
  left: -10%; right: -10%;
  top: 46%;
  height: 30%;
  background: #120E1A;
  clip-path: polygon(0 60%, 18% 30%, 30% 48%, 46% 10%, 60% 40%, 74% 22%, 100% 55%, 100% 100%, 0 100%);
  opacity: 0.85;
}
.swipe-card .stamp {
  position: absolute;
  top: 16px;
  left: 14px;
  z-index: 1;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 22px;
  letter-spacing: 0.04em;
  color: var(--want);
  border: 2px solid var(--want);
  border-radius: 8px;
  padding: 2px 8px 0;
  transform: rotate(-10deg);
}
.swipe-card .card-meta {
  position: absolute;
  left: 14px; right: 14px; bottom: 14px;
  z-index: 1;
}
.swipe-card .card-title {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 26px;
  line-height: 0.95;
}
.swipe-card .card-sub {
  margin-top: 6px;
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--muted);
}
.swipe-card .card-chips {
  margin-top: 8px;
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
}
.swipe-card .card-chips span {
  font-size: 10px;
  padding: 2px 7px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--fg);
}

.mock-caption {
  margin-top: 16px;
  text-align: center;
  font-size: 13px;
  color: var(--dim);
}

@keyframes card-sway {
  0%, 100% { transform: translateX(6px) rotate(3deg); }
  45% { transform: translateX(-4px) rotate(-1.5deg); }
  70% { transform: translateX(4px) rotate(2deg); }
}

/* ---------- Sections ---------- */

.section { padding: 56px 0; }
@media (min-width: 900px) { .section { padding: 80px 0; } }

.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px 24px;
  margin-bottom: 28px;
}
.section-head h2 {
  font-size: clamp(38px, 8vw, 60px);
  font-weight: 900;
}
.section-head p { color: var(--muted); max-width: 52ch; margin-top: 10px; }

.divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--line), transparent);
  border: 0;
  margin: 0;
}

/* Live status pill */
.live {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--muted);
  white-space: nowrap;
}
.live-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--dim);
  flex: none;
}
.live[data-state="ok"] .live-dot {
  background: var(--seen);
  box-shadow: 0 0 0 0 rgba(127, 227, 181, 0.5);
  animation: pulse 2.4s ease-out infinite;
}
.live[data-state="error"] .live-dot { background: var(--pass); }
.live[data-state="paused"] .live-dot { background: var(--dim); }

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(127, 227, 181, 0.45); }
  70% { box-shadow: 0 0 0 8px rgba(127, 227, 181, 0); }
  100% { box-shadow: 0 0 0 0 rgba(127, 227, 181, 0); }
}

/* Summary stats */
.stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  background: var(--line-soft);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 28px;
}
@media (min-width: 720px) {
  .stats { grid-template-columns: repeat(5, minmax(0, 1fr)); }
}
.stat {
  background: var(--panel);
  padding: 16px 16px 18px;
  min-width: 0;
}
.stat:first-child { grid-column: 1 / -1; }
@media (min-width: 720px) {
  .stat:first-child { grid-column: auto; }
}
.stat-label {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 7px;
}
.stat-label::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 2px;
  background: var(--dim);
}
.stat[data-tone="want"] .stat-label::before { background: var(--want); }
.stat[data-tone="seen"] .stat-label::before { background: var(--seen); }
.stat[data-tone="pass"] .stat-label::before { background: var(--pass); }
.stat[data-tone="info"] .stat-label::before { background: var(--info); }
.stat[data-tone="star"] .stat-label::before { background: var(--star); }
.stat-value {
  margin-top: 6px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 36px;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Controls: tabs + filter */
.board-controls {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 18px;
}
@media (min-width: 900px) {
  .board-controls { flex-direction: row; align-items: center; justify-content: space-between; }
}

.tabs {
  display: flex;
  gap: 4px;
  padding: 4px;
  background: var(--panel);
  border: 1px solid var(--line-soft);
  border-radius: 14px;
  overflow-x: auto;
  scrollbar-width: none;
  max-width: 100%;
}
.tabs::-webkit-scrollbar { display: none; }
@media (max-width: 639px) {
  .tabs { display: grid; grid-template-columns: 1fr 1fr; }
}
.tab {
  flex: 1 0 auto;
  min-height: 40px;
  padding: 8px 14px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--muted);
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  white-space: nowrap;
  transition: background-color 0.15s, color 0.15s;
}
.tab:hover { color: var(--fg); }
.tab[aria-selected="true"] {
  background: var(--panel-2);
  color: var(--fg);
  box-shadow: 0 0 0 1px var(--line) inset;
}
.tab:focus-visible { outline-offset: -2px; }

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  border: 0;
  margin: 0;
  padding: 0;
}
.chip {
  min-height: 36px;
  padding: 6px 13px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--muted);
  font-size: 14px;
  cursor: pointer;
  transition: background-color 0.15s, color 0.15s, border-color 0.15s;
}
.chip:hover { color: var(--fg); border-color: #4A445C; }
.chip[aria-pressed="true"] {
  background: var(--fg);
  border-color: var(--fg);
  color: var(--bg);
  font-weight: 600;
}

/* Leaderboard */
.board {
  background: var(--panel);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-l);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.board-caption {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line-soft);
  font-size: 14px;
  color: var(--muted);
}
@media (min-width: 720px) { .board-caption { padding: 16px 22px; } }
.board-caption .metric-name { font-family: var(--font-mono); font-size: 12px; color: var(--dim); white-space: nowrap; }

.rows {
  list-style: none;
  margin: 0;
  padding: 0;
}
.row {
  display: grid;
  grid-template-columns: 28px 44px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line-soft);
}
.row:last-child { border-bottom: 0; }
@media (min-width: 720px) {
  .row { grid-template-columns: 36px 52px minmax(0, 1fr) auto auto; gap: 18px; padding: 14px 22px; }
}
.row-rank {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--dim);
  text-align: right;
  font-variant-numeric: tabular-nums;
}
.row:nth-child(-n+3) .row-rank { color: var(--gold); font-weight: 700; }

.poster {
  width: 44px;
  aspect-ratio: 2 / 3;
  border-radius: 6px;
  overflow: hidden;
  background: linear-gradient(160deg, var(--panel-2), #15131C);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.06) inset;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 20px;
  color: var(--dim);
}
@media (min-width: 720px) { .poster { width: 52px; } }
.poster img { width: 100%; height: 100%; object-fit: cover; }

.row-main { min-width: 0; }
.row-title {
  font-weight: 600;
  font-size: 16px;
  line-height: 1.25;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.row-meta {
  margin-top: 3px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 8px;
  font-size: 13px;
  color: var(--muted);
}
.type-tag {
  font-family: var(--font-mono);
  font-size: 11px;
  padding: 1px 6px;
  border-radius: 5px;
  border: 1px solid var(--line);
  color: var(--muted);
}
.type-tag[data-type="Movie"] { color: var(--want); border-color: rgba(255, 181, 71, 0.35); }
.type-tag[data-type="Series"] { color: var(--info); border-color: rgba(124, 200, 255, 0.35); }
.type-tag[data-type="Game"] { color: var(--seen); border-color: rgba(127, 227, 181, 0.35); }
.type-tag[data-type="Upcoming"] { color: var(--star); border-color: rgba(201, 168, 255, 0.35); }
.row-genres { color: var(--dim); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%; }

.row-flick {
  display: none;
  text-align: right;
}
@media (min-width: 720px) { .row-flick { display: block; } }
.flick-score {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--dim);
  white-space: nowrap;
}
.flick-score b {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 800;
  color: var(--fg);
}

.row-score {
  text-align: right;
  min-width: 64px;
}
.score-value {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 28px;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.score-value small { font-size: 0.6em; font-weight: 700; margin-left: 1px; }
.score-sub {
  margin-top: 3px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--dim);
  white-space: nowrap;
}
.board[data-board="highestRated"] .score-value { color: var(--star); }
.board[data-board="mostWanted"] .score-value { color: var(--want); }
.board[data-board="upcomingHype"] .score-value { color: var(--gold); }
.board[data-board="mostPolarizing"] .score-value { color: var(--fg); }

.split {
  display: flex;
  width: 72px;
  height: 6px;
  margin: 6px 0 0 auto;
  border-radius: 999px;
  overflow: hidden;
  background: var(--pass);
}
.split-want { background: var(--want); height: 100%; }

.board-empty, .board-error, .board-loading {
  padding: 48px 20px;
  text-align: center;
}
.board-empty h3, .board-error h3 {
  font-size: 30px;
  font-weight: 800;
}
.board-empty p, .board-error p { color: var(--muted); margin-top: 8px; }
.board-error .btn { margin-top: 18px; }

.skeleton-row {
  display: grid;
  grid-template-columns: 28px 44px 1fr 56px;
  gap: 12px;
  align-items: center;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line-soft);
}
.skeleton-row i {
  display: block;
  height: 12px;
  border-radius: 6px;
  background: linear-gradient(90deg, var(--panel-2), #302B3F, var(--panel-2));
  background-size: 200% 100%;
  animation: shimmer 1.4s linear infinite;
}
.skeleton-row i.sk-poster { height: auto; aspect-ratio: 2 / 3; }
@keyframes shimmer { to { background-position: -200% 0; } }

.board-foot {
  display: flex;
  justify-content: center;
  padding: 14px;
  border-top: 1px solid var(--line-soft);
}

.fine {
  margin-top: 16px;
  font-size: 13px;
  color: var(--dim);
}
.fine a { color: var(--muted); }

/* How it learns strip */
.features {
  display: grid;
  gap: 16px;
}
@media (min-width: 720px) { .features { grid-template-columns: repeat(3, 1fr); gap: 20px; } }
.feature {
  padding: 22px;
  border-radius: var(--radius);
  background: var(--panel);
  border: 1px solid var(--line-soft);
}
.feature h3 { font-size: 26px; font-weight: 800; }
.feature p { margin-top: 8px; color: var(--muted); font-size: 15px; }
.feature .eyebrow { display: block; margin-bottom: 14px; }
.feature:nth-child(1) .eyebrow { color: var(--want); }
.feature:nth-child(2) .eyebrow { color: var(--seen); }
.feature:nth-child(3) .eyebrow { color: var(--info); }

/* ---------- Footer ---------- */

.site-footer {
  margin-top: 40px;
  padding: 36px 0 48px;
  border-top: 1px solid var(--line-soft);
  color: var(--muted);
  font-size: 14px;
}
.site-footer .wrap {
  display: grid;
  gap: 20px;
}
@media (min-width: 900px) {
  .site-footer .wrap { grid-template-columns: 1fr auto; align-items: start; }
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
}
.footer-links a { color: var(--fg); text-decoration: none; }
.footer-links a:hover { text-decoration: underline; text-underline-offset: 3px; }
.tmdb-note { max-width: 62ch; color: var(--dim); font-size: 13px; margin-top: 10px; }
.tmdb-note a { color: var(--muted); }
.copyright { color: var(--dim); font-size: 13px; }

/* ---------- Prose (privacy) ---------- */

.prose-wrap {
  max-width: 720px;
  padding-top: 24px;
  padding-bottom: 40px;
}
.prose-head { padding-bottom: 28px; border-bottom: 1px solid var(--line-soft); margin-bottom: 8px; }
.prose-head h1 { font-size: clamp(48px, 12vw, 80px); font-weight: 900; }
.prose-head .lede { margin-top: 16px; font-size: 19px; color: var(--fg); max-width: 54ch; }
.prose-head .eyebrow { display: block; margin-top: 14px; }

.summary-box {
  margin: 28px 0 8px;
  padding: 20px 22px;
  border-radius: var(--radius);
  background: var(--panel);
  border: 1px solid var(--line-soft);
}
.summary-box h2 { font-size: 24px; margin: 0 0 10px; }
.summary-box ul { margin: 0; padding-left: 20px; }
.summary-box li { margin: 6px 0; color: var(--fg); }
.summary-box li::marker { color: var(--want); }

.prose h2 {
  font-size: 32px;
  font-weight: 800;
  margin: 44px 0 12px;
  scroll-margin-top: 20px;
}
.prose h3 {
  font-family: var(--font-body);
  font-size: 17px;
  font-weight: 600;
  margin: 24px 0 6px;
}
.prose p, .prose li { color: #DCD6E4; }
.prose p + p { margin-top: 12px; }
.prose ul { padding-left: 20px; margin: 12px 0; }
.prose li { margin: 8px 0; }
.prose li::marker { color: var(--dim); }
.prose a { color: var(--info); text-underline-offset: 3px; }
.prose code {
  font-family: var(--font-mono);
  font-size: 0.88em;
  background: var(--panel-2);
  padding: 1px 6px;
  border-radius: 5px;
}
.prose strong { color: var(--fg); font-weight: 600; }

.toc {
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.toc a {
  display: inline-block;
  padding: 6px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 14px;
  color: var(--muted);
  text-decoration: none;
}
.toc a:hover { color: var(--fg); border-color: #4A445C; }

.data-table-wrap { overflow-x: auto; margin: 16px 0; border: 1px solid var(--line-soft); border-radius: var(--radius); }
.data-list { width: 100%; border-collapse: collapse; font-size: 15px; }
.data-list th, .data-list td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line-soft); vertical-align: top; }
.data-list tr:last-child td { border-bottom: 0; }
.data-list th { font-family: var(--font-mono); font-size: 11px; font-weight: 500; color: var(--muted); background: var(--panel); }
.data-list td:first-child { font-weight: 600; color: var(--fg); white-space: nowrap; }

/* ---------- Admin ---------- */

.admin-body .site-header { border-bottom: 1px solid var(--line-soft); }

.login-shell {
  min-height: calc(100vh - 80px);
  display: grid;
  place-items: center;
  padding-top: 32px;
  padding-bottom: 80px;
}
.login-card {
  width: 100%;
  max-width: 400px;
  padding: 28px 24px;
  border-radius: var(--radius-l);
  background: var(--panel);
  border: 1px solid var(--line-soft);
  box-shadow: var(--shadow);
}
.login-card h1 { font-size: 40px; font-weight: 900; }
.login-card p.lead { margin-top: 8px; color: var(--muted); font-size: 15px; }
.login-card form { margin-top: 24px; display: grid; gap: 16px; }

.field { display: grid; gap: 6px; }
.field label { font-size: 14px; font-weight: 600; }
.field .hint { font-size: 13px; color: var(--dim); }
.input {
  width: 100%;
  min-height: 46px;
  padding: 10px 14px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--bg);
  color: var(--fg);
  font-size: 16px;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.input::placeholder { color: var(--dim); }
.input:focus-visible {
  outline: none;
  border-color: var(--want);
  box-shadow: 0 0 0 3px rgba(255, 181, 71, 0.2);
}
.input-sm { min-height: 38px; font-size: 14px; padding: 6px 12px; border-radius: 10px; }

.alert {
  padding: 10px 14px;
  border-radius: 10px;
  font-size: 14px;
  border: 1px solid;
}
.alert-error { color: #FFB3BA; background: rgba(255, 95, 109, 0.1); border-color: rgba(255, 95, 109, 0.35); }
.alert-info { color: #CBE9FF; background: rgba(124, 200, 255, 0.08); border-color: rgba(124, 200, 255, 0.3); }
.alert-ok { color: #CFF5E3; background: rgba(127, 227, 181, 0.08); border-color: rgba(127, 227, 181, 0.3); }

.dash { padding-top: 28px; padding-bottom: 56px; }
.dash-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  gap: 16px;
  margin-bottom: 24px;
}
.dash-head h1 { font-size: clamp(40px, 9vw, 56px); font-weight: 900; }
.dash-head .eyebrow { margin-top: 8px; display: block; }
.dash-actions { display: flex; gap: 8px; flex-wrap: wrap; }

.tiles {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 20px;
}
@media (min-width: 720px) { .tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1040px) { .tiles { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
.tile {
  padding: 14px 16px;
  border-radius: var(--radius);
  background: var(--panel);
  border: 1px solid var(--line-soft);
  min-width: 0;
}
.tile .stat-value { font-size: 30px; }
@media (max-width: 719px) { .tile:last-child { grid-column: 1 / -1; } }
.tile .stat-value.is-text { font-family: var(--font-mono); font-size: 14px; font-weight: 500; line-height: 1.35; white-space: normal; margin-top: 10px; }

.dash-grid {
  display: grid;
  gap: 20px;
}
@media (min-width: 1040px) {
  .dash-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; }
}

.panel {
  background: var(--panel);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-l);
  overflow: hidden;
  min-width: 0;
}
.panel-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 10px 16px;
  padding: 16px 18px;
  border-bottom: 1px solid var(--line-soft);
}
.panel-head h2 { font-size: 26px; font-weight: 800; }
.panel-head .count { font-family: var(--font-mono); font-size: 12px; color: var(--dim); margin-left: 8px; font-weight: 500; }
.panel-body { padding: 18px; }
.dash > .panel { margin-top: 20px; }

.table-scroll {
  overflow: auto;
  max-height: 520px;
  -webkit-overflow-scrolling: touch;
}
.table-scroll.tall { max-height: 640px; }
.table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  font-variant-numeric: tabular-nums;
}
.table th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: var(--panel);
  text-align: left;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  color: var(--muted);
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}
.table td {
  padding: 9px 12px;
  border-bottom: 1px solid var(--line-soft);
  vertical-align: middle;
  white-space: nowrap;
}
.table tbody tr:hover td { background: rgba(255, 255, 255, 0.02); }
.table .num { text-align: right; font-family: var(--font-mono); font-size: 13px; }
.table th.num { text-align: right; }
.table .title-cell { white-space: normal; min-width: 180px; max-width: 320px; }
.table .title-cell b { font-weight: 600; }
.table .title-cell span { color: var(--dim); font-size: 12px; margin-left: 6px; font-family: var(--font-mono); }
.table .muted { color: var(--dim); }
.table td.empty-cell { text-align: center; color: var(--dim); padding: 28px; white-space: normal; }

.action-tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 11px;
  padding: 2px 7px;
  border-radius: 6px;
  background: var(--panel-2);
  color: var(--muted);
}
.action-tag[data-tone="want"] { color: var(--want); background: rgba(255, 181, 71, 0.12); }
.action-tag[data-tone="pass"] { color: var(--pass); background: rgba(255, 95, 109, 0.12); }
.action-tag[data-tone="seen"] { color: var(--seen); background: rgba(127, 227, 181, 0.12); }
.action-tag[data-tone="info"] { color: var(--info); background: rgba(124, 200, 255, 0.12); }

.tier {
  display: inline-block;
  min-width: 28px;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 6px;
  border: 1px solid var(--line);
  color: var(--muted);
}
.tier[data-tier="S+"], .tier[data-tier="S"] { color: var(--gold); border-color: rgba(255, 215, 106, 0.45); }
.tier[data-tier="A"] { color: var(--seen); border-color: rgba(127, 227, 181, 0.4); }
.tier[data-tier="B"] { color: var(--info); border-color: rgba(124, 200, 255, 0.4); }

.bar {
  display: inline-block;
  vertical-align: middle;
  width: 44px;
  height: 5px;
  border-radius: 999px;
  background: var(--panel-2);
  overflow: hidden;
  margin-right: 8px;
}
.bar i { display: block; height: 100%; background: var(--want); border-radius: inherit; }

.danger-zone {
  border-color: rgba(255, 95, 109, 0.3);
}
.danger-zone .panel-head h2 { color: var(--pass); }
.danger-zone p { color: var(--muted); font-size: 15px; max-width: 60ch; }
.danger-form {
  margin-top: 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: end;
}
.danger-form .field { flex: 1 1 220px; max-width: 320px; }
.danger-form .alert { flex-basis: 100%; }

.toolbar-search { width: 100%; max-width: 240px; }

/* ---------- Motion ---------- */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  .swipe-card { animation: none; }
}
