/* ── Variables ─────────────────────────────────────────────────────────────── */
:root {
  /* Games — purple */
  --g400: #c084fc;
  --g500: #a855f7;
  --g600: #9333ea;
  --g700: #7e22ce;
  --g-glow: rgba(147, 51, 234, 0.18);
  --g-border: rgba(147, 51, 234, 0.35);

  /* Films — amber/orange */
  --f400: #fbbf24;
  --f500: #f59e0b;
  --f600: #d97706;
  --f700: #b45309;
  --f-glow: rgba(217, 119, 6, 0.18);
  --f-border: rgba(217, 119, 6, 0.35);

  /* Surface */
  --bg:   #09090e;
  --s1:   #0f0f17;
  --s2:   #15151f;
  --s3:   #1c1c28;
  --s4:   #242433;

  /* Text */
  --t100: #f4f4fc;
  --t200: #d4d4e8;
  --t400: #8888aa;
  --t600: #4a4a62;

  /* Misc */
  --border: rgba(255,255,255,0.07);
  --r-sm: 8px;
  --r-md: 14px;
  --r-lg: 22px;
  --ease: 0.18s ease;
}

/* ── Reset ─────────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--t200);
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }

/* ── Utilities ─────────────────────────────────────────────────────────────── */
.hidden { display: none !important; }
.container { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.full-w { width: 100%; }
.muted-text { font-size: 13px; color: var(--t600); }

/* ── Buttons ───────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px; padding: 10px 22px; border-radius: var(--r-sm);
  font-size: 14px; font-weight: 600; letter-spacing: 0.01em;
  border: 1px solid transparent; transition: all var(--ease);
  white-space: nowrap;
}
.btn-lg { padding: 14px 32px; font-size: 15px; }
.btn-sm { padding: 7px 14px; font-size: 13px; }

.btn-primary { background: var(--g600); color: #fff; border-color: var(--g600); }
.btn-primary:hover { background: var(--g500); border-color: var(--g500); }

.btn-games { background: var(--g600); color: #fff; border-color: var(--g600); }
.btn-games:hover { background: var(--g500); border-color: var(--g500); }

.btn-films { background: var(--f600); color: #fff; border-color: var(--f600); }
.btn-films:hover { background: var(--f500); border-color: var(--f500); }

.btn-outline {
  background: transparent; color: var(--t200);
  border-color: var(--border);
}
.btn-outline:hover { border-color: var(--t400); color: var(--t100); }

.btn-ghost { background: transparent; color: var(--t400); border-color: transparent; }
.btn-ghost:hover { color: var(--t100); }

.btn-danger {
  background: rgba(239,68,68,0.12); color: #f87171;
  border-color: rgba(239,68,68,0.25);
}
.btn-danger:hover { background: rgba(239,68,68,0.22); }

/* ── Header ────────────────────────────────────────────────────────────────── */
.header {
  position: sticky; top: 0; z-index: 200;
  background: rgba(9,9,14,0.88);
  backdrop-filter: blur(24px) saturate(1.4);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 0;
}

.logo { display: flex; align-items: baseline; gap: 5px; }
.logo-the {
  font-size: 10px; font-weight: 800; letter-spacing: 0.22em;
  color: var(--t600); text-transform: uppercase;
}
.logo-quarter {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 21px; font-weight: 900; letter-spacing: 0.04em; color: var(--t100);
}

.nav { display: flex; align-items: center; gap: 4px; }
.nav-link {
  padding: 6px 12px; border-radius: var(--r-sm);
  font-size: 14px; font-weight: 500; color: var(--t400);
  transition: color var(--ease);
}
.nav-link:hover { color: var(--t100); }
.nav-link.games-link:hover { color: var(--g400); }
.nav-link.films-link:hover { color: var(--f400); }

.nav-auth { display: flex; gap: 6px; }
.user-menu { display: flex; align-items: center; gap: 8px; }

/* ── Language switcher ──────────────────────────────────────────────────────── */
.lang-switcher {
  display: flex; align-items: center; gap: 2px;
  background: var(--s2); border: 1px solid var(--border);
  border-radius: var(--r-sm); padding: 3px; margin-right: 6px;
}
.lang-btn {
  padding: 4px 10px; border-radius: 6px; font-size: 12px;
  font-weight: 700; letter-spacing: 0.06em;
  background: transparent; border: none;
  color: var(--t600); cursor: pointer;
  transition: all var(--ease);
}
.lang-btn:hover { color: var(--t200); }
.lang-btn.active {
  background: var(--s4); color: var(--t100);
}
.user-greeting {
  font-size: 13px; color: var(--t400); text-decoration: none;
  transition: color var(--ease);
}
.user-greeting:hover { color: var(--t100); }

/* ── Hero ──────────────────────────────────────────────────────────────────── */
.hero {
  padding: 96px 0 80px;
  border-bottom: 1px solid var(--border);
  position: relative; overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 10% 40%, rgba(147,51,234,0.07) 0%, transparent 70%),
    radial-gradient(ellipse 50% 40% at 80% 60%, rgba(217,119,6,0.06) 0%, transparent 70%);
  pointer-events: none;
}

.hero-eyebrow {
  font-size: 11px; font-weight: 700; letter-spacing: 0.24em;
  color: var(--t600); text-transform: uppercase; margin-bottom: 20px;
}
.hero-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(52px, 7.5vw, 96px);
  font-weight: 900; line-height: 1.04;
  color: var(--t100); margin-bottom: 22px;
}
.hero-subtitle {
  font-size: 17px; color: var(--t400); line-height: 1.75;
  max-width: 520px; margin-bottom: 40px;
}
.hero-ctas { display: flex; gap: 12px; margin-bottom: 64px; flex-wrap: wrap; }

.hero-stats { display: flex; align-items: center; gap: 48px; }
.hero-stat { display: flex; flex-direction: column; gap: 4px; }
.stat-n {
  font-family: 'Playfair Display', serif;
  font-size: 60px; font-weight: 900; line-height: 1;
}
.games-stat .stat-n { color: var(--g500); }
.films-stat .stat-n { color: var(--f500); }
.stat-l {
  font-size: 11px; font-weight: 700; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--t600);
}
.hero-divider { width: 1px; height: 64px; background: var(--border); }

/* ── Sections ──────────────────────────────────────────────────────────────── */
.section { padding: 80px 0; border-bottom: 1px solid var(--border); }

.section-head { text-align: center; margin-bottom: 56px; }
.section-badge {
  display: inline-block; margin-bottom: 16px; padding: 5px 16px;
  border-radius: 100px; font-size: 10px; font-weight: 700;
  letter-spacing: 0.2em; text-transform: uppercase;
  background: var(--s3); color: var(--t400);
  border: 1px solid var(--border);
}
.games-badge { background: var(--g-glow); color: var(--g400); border-color: var(--g-border); }
.films-badge { background: var(--f-glow); color: var(--f400); border-color: var(--f-border); }

.section-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(30px, 4vw, 48px);
  font-weight: 900; color: var(--t100); margin-bottom: 14px;
}
.section-sub { font-size: 16px; color: var(--t400); max-width: 540px; margin: 0 auto; line-height: 1.7; }

/* ── List items ────────────────────────────────────────────────────────────── */
.list-wrap { display: flex; flex-direction: column; }

.list-item {
  display: grid; grid-template-columns: 72px 1fr;
  gap: 20px; padding: 22px 16px;
  border-bottom: 1px solid var(--border);
  border-radius: var(--r-sm);
  transition: background var(--ease);
  align-items: start;
}
.list-item:last-child { border-bottom: none; }
.list-item:hover { background: var(--s2); }

.list-rank {
  font-family: 'Playfair Display', serif;
  font-size: 38px; font-weight: 900;
  line-height: 1; text-align: right; padding-top: 3px;
  transition: color var(--ease);
}
.games-section .list-rank { color: rgba(168,85,247,0.18); }
.films-section .list-rank { color: rgba(245,158,11,0.18); }
.games-section .list-item:hover .list-rank { color: rgba(168,85,247,0.45); }
.films-section .list-item:hover .list-rank { color: rgba(245,158,11,0.45); }

/* Top-3 accent */
.games-section .list-item:nth-child(1) .list-rank { color: var(--g500); }
.games-section .list-item:nth-child(2) .list-rank { color: rgba(168,85,247,0.75); }
.games-section .list-item:nth-child(3) .list-rank { color: rgba(168,85,247,0.55); }
.films-section .list-item:nth-child(1) .list-rank { color: var(--f500); }
.films-section .list-item:nth-child(2) .list-rank { color: rgba(245,158,11,0.75); }
.films-section .list-item:nth-child(3) .list-rank { color: rgba(245,158,11,0.55); }

.list-info { display: flex; flex-direction: column; gap: 7px; }
.list-title {
  font-family: 'Playfair Display', serif;
  font-size: 19px; font-weight: 700;
  color: var(--t100); line-height: 1.3;
}
.list-meta { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.list-genre {
  font-size: 10px; font-weight: 700; letter-spacing: 0.1em;
  text-transform: uppercase; padding: 3px 9px; border-radius: 4px;
}
.games-section .list-genre { background: var(--g-glow); color: var(--g400); }
.films-section .list-genre { background: var(--f-glow); color: var(--f400); }
.list-year { font-size: 13px; color: var(--t600); font-weight: 500; }
.list-desc { font-size: 14px; color: var(--t400); line-height: 1.65; max-width: 600px; }

/* Skeleton loader */
.skeleton-list { display: flex; flex-direction: column; gap: 0; }
.sk-item {
  height: 88px; background: linear-gradient(90deg, var(--s2) 25%, var(--s3) 50%, var(--s2) 75%);
  background-size: 400% 100%;
  animation: shimmer 1.4s infinite;
  border-bottom: 1px solid var(--border); border-radius: var(--r-sm);
}
@keyframes shimmer { to { background-position: -200% 0; } }

/* ── Community / Polls ─────────────────────────────────────────────────────── */
.polls-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(460px, 1fr));
  gap: 20px;
}

.poll-card {
  background: var(--s2);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 26px;
  transition: border-color var(--ease), transform var(--ease);
}
.poll-card:hover { border-color: var(--s4); transform: translateY(-1px); }

.poll-card-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 6px; }
.poll-cat-badge {
  flex-shrink: 0; font-size: 10px; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase;
  padding: 4px 10px; border-radius: 4px;
}
.cat-games { background: var(--g-glow); color: var(--g400); border: 1px solid var(--g-border); }
.cat-films { background: var(--f-glow); color: var(--f400); border: 1px solid var(--f-border); }

.poll-q {
  font-family: 'Playfair Display', serif;
  font-size: 17px; color: var(--t100); line-height: 1.35;
}
.poll-votes-count { font-size: 12px; color: var(--t600); margin-bottom: 14px; }

.poll-options { display: flex; flex-direction: column; gap: 9px; }

/* Voting button */
.vote-btn {
  width: 100%; text-align: left;
  padding: 11px 14px; border-radius: var(--r-sm);
  background: var(--s3); border: 1px solid var(--border);
  color: var(--t200); font-size: 14px; font-weight: 500;
  transition: all var(--ease);
}
.vote-btn:hover { border-color: var(--t400); color: var(--t100); background: var(--s4); }

/* Results bar */
.bar-wrap {
  position: relative; border-radius: var(--r-sm);
  background: var(--s3); border: 1px solid var(--border);
  height: 44px; overflow: hidden;
}
.bar-wrap.my-vote.is-games { border-color: var(--g-border); }
.bar-wrap.my-vote.is-films { border-color: var(--f-border); }

.bar-fill {
  position: absolute; left: 0; top: 0; bottom: 0;
  transition: width 0.7s cubic-bezier(0.4,0,0.2,1);
}
.is-games .bar-fill { background: var(--g-glow); }
.is-films .bar-fill { background: var(--f-glow); }

.bar-text {
  position: relative; z-index: 1;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 14px; height: 100%; font-size: 14px;
}
.bar-label { color: var(--t200); }
.bar-pct { font-weight: 700; color: var(--t100); font-size: 13px; }
.bar-check { color: var(--g400); font-size: 13px; }
.is-films .bar-check { color: var(--f400); }

/* Login prompt */
.login-prompt {
  text-align: center; padding: 56px 24px; margin-top: 24px;
  background: var(--s2); border: 1px solid var(--border);
  border-radius: var(--r-md);
}
.login-prompt p { font-size: 16px; color: var(--t400); margin-bottom: 22px; }

/* No polls */
.no-polls {
  text-align: center; padding: 56px 24px;
  color: var(--t600); font-size: 15px;
}

/* ── Unrevealed list items ──────────────────────────────────────────────────── */
.list-item.is-unrevealed { opacity: 0.55; }
.list-item.is-unrevealed:hover { background: var(--s2); opacity: 0.7; }

.games-section .list-item.is-unrevealed .list-rank { color: rgba(168,85,247,0.10) !important; }
.films-section .list-item.is-unrevealed .list-rank { color: rgba(245,158,11,0.10) !important; }

.unrevealed-row {
  display: flex; align-items: center; gap: 10px;
  padding: 4px 0 2px;
}
.unrevealed-lock {
  font-size: 15px; line-height: 1;
  filter: grayscale(1); opacity: 0.4;
}
.unrevealed-label {
  font-size: 10px; font-weight: 800; letter-spacing: 0.22em;
  text-transform: uppercase; color: var(--t600);
}
.unrevealed-lines { display: flex; flex-direction: column; gap: 7px; margin-top: 10px; }
.unrev-line {
  height: 9px; border-radius: 5px;
  background: linear-gradient(90deg, var(--s3) 25%, var(--s4) 50%, var(--s3) 75%);
  background-size: 400% 100%;
  animation: shimmer 2.2s infinite;
}

/* ── Google Sign-In ─────────────────────────────────────────────────────────── */
.google-wrap { margin-bottom: 4px; }
.google-wrap > div { width: 100%; display: flex; justify-content: center; }

.or-divider {
  display: flex; align-items: center; gap: 12px;
  margin: 16px 0; color: var(--t600); font-size: 12px; font-weight: 500;
}
.or-divider::before, .or-divider::after {
  content: ''; flex: 1; height: 1px; background: var(--border);
}

/* ── Admin tabs ─────────────────────────────────────────────────────────────── */
.admin-tabs {
  display: flex; gap: 6px; margin-bottom: 24px;
  border-bottom: 1px solid var(--border); padding-bottom: 16px;
}
.admin-tab {
  padding: 8px 20px; background: transparent;
  border: 1px solid var(--border); border-radius: var(--r-sm);
  color: var(--t400); font-size: 13px; font-weight: 600;
  cursor: pointer; transition: all var(--ease);
}
.admin-tab:hover { color: var(--t100); border-color: var(--t600); }
.admin-tab.active { background: var(--s4); color: var(--t100); border-color: var(--t400); }

.admin-subsection { margin-top: 28px; padding-top: 22px; border-top: 1px solid var(--border); }

/* ── Reveal management ──────────────────────────────────────────────────────── */
.reveal-cat-tabs { display: flex; gap: 8px; margin-bottom: 18px; }
.reveal-tab {
  flex: 1; padding: 9px; background: var(--s3);
  border: 1px solid var(--border); border-radius: var(--r-sm);
  color: var(--t400); font-size: 13px; font-weight: 600;
  cursor: pointer; transition: all var(--ease);
}
.reveal-tab:hover { color: var(--t100); }
.reveal-tab.active[data-rcat="games"] { background: var(--g-glow); color: var(--g400); border-color: var(--g-border); }
.reveal-tab.active[data-rcat="films"] { background: var(--f-glow); color: var(--f400); border-color: var(--f-border); }

.reveal-group { margin-bottom: 20px; }
.reveal-group-label {
  font-size: 10px; font-weight: 800; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--t600); margin-bottom: 10px;
}
.reveal-row {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 12px; background: var(--s3);
  border-radius: var(--r-sm); margin-bottom: 6px;
}
.reveal-rank {
  font-family: 'Playfair Display', serif;
  font-size: 17px; font-weight: 700; color: var(--t600); min-width: 28px;
}
.reveal-title { flex: 1; font-size: 14px; color: var(--t200); }

/* ── Loading ────────────────────────────────────────────────────────────────── */
.loading { text-align: center; padding: 48px; color: var(--t600); font-size: 14px; }

/* ── Modals ─────────────────────────────────────────────────────────────────── */
.modal-overlay {
  position: fixed; inset: 0; z-index: 1000;
  background: rgba(0,0,0,0.65);
  backdrop-filter: blur(6px);
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
  animation: fade-in 0.15s ease;
}
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }

.modal {
  background: var(--s2);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  width: 100%; max-width: 440px;
  max-height: 92vh; overflow-y: auto;
  animation: slide-up 0.18s ease;
}
.modal-wide { max-width: 600px; }
@keyframes slide-up { from { transform: translateY(14px); opacity: 0; } to { transform: none; opacity: 1; } }

.modal-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 24px 26px 0;
}
.modal-head h3 {
  font-family: 'Playfair Display', serif;
  font-size: 22px; color: var(--t100);
}
.modal-close {
  background: none; border: none; color: var(--t400);
  font-size: 26px; line-height: 1; padding: 4px 6px;
  border-radius: 6px; transition: color var(--ease);
}
.modal-close:hover { color: var(--t100); }
.modal-body { padding: 22px 26px 26px; }

.field { margin-bottom: 16px; }
.field label {
  display: block; font-size: 12px; font-weight: 700;
  letter-spacing: 0.04em; text-transform: uppercase;
  color: var(--t400); margin-bottom: 7px;
}
.field input, .field select, .field textarea {
  width: 100%; background: var(--s3);
  border: 1px solid var(--border); border-radius: var(--r-sm);
  color: var(--t100); font-size: 15px; font-family: inherit;
  padding: 11px 14px; outline: none;
  transition: border-color var(--ease);
}
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--g500); }
.field select { appearance: none; cursor: pointer; }
.field textarea { resize: vertical; min-height: 80px; line-height: 1.55; }

/* ── Password strength ──────────────────────────────────────────────────────── */
.pw-strength-wrap {
  display: flex; align-items: center; gap: 10px; margin-top: 8px;
}
.pw-bars { display: flex; gap: 4px; flex: 1; }
.pw-bar {
  flex: 1; height: 4px; border-radius: 2px;
  background: var(--s4); transition: background 0.25s ease;
}
.pw-bar.active-1 { background: #ef4444; }
.pw-bar.active-2 { background: #f97316; }
.pw-bar.active-3 { background: #eab308; }
.pw-bar.active-4 { background: #22c55e; }
.pw-label {
  font-size: 11px; font-weight: 700; min-width: 42px;
  text-align: right; transition: color 0.2s;
}
.pw-label.score-1 { color: #ef4444; }
.pw-label.score-2 { color: #f97316; }
.pw-label.score-3 { color: #eab308; }
.pw-label.score-4 { color: #22c55e; }

.pw-requirements {
  list-style: none; margin-top: 8px;
  display: flex; flex-direction: column; gap: 4px;
}
.pw-req {
  font-size: 12px; color: var(--t600);
  padding-left: 16px; position: relative; transition: color 0.2s;
}
.pw-req::before {
  content: '○'; position: absolute; left: 0;
  font-size: 10px; line-height: 1.5;
}
.pw-req.met { color: #4ade80; }
.pw-req.met::before { content: '✓'; }

.field-hint {
  font-size: 12px; color: var(--t600); margin-top: 5px; line-height: 1.4;
}

.form-error {
  margin-bottom: 14px; padding: 10px 13px;
  background: rgba(239,68,68,0.1); border: 1px solid rgba(239,68,68,0.25);
  border-radius: var(--r-sm); color: #f87171; font-size: 13px;
}
.modal-foot-text {
  text-align: center; font-size: 13px; color: var(--t400); margin-top: 18px;
}
.modal-foot-text a { color: var(--g400); font-weight: 600; }
.modal-foot-text a:hover { text-decoration: underline; }

/* Admin modal extras */
.admin-subtitle {
  font-family: 'Playfair Display', serif;
  font-size: 17px; color: var(--t200); margin-bottom: 16px;
}
.opt-row {
  display: grid; grid-template-columns: 1fr 96px;
  gap: 8px; margin-bottom: 8px;
}
.opt-title, .opt-year {
  background: var(--s3); border: 1px solid var(--border);
  border-radius: var(--r-sm); color: var(--t100);
  font-size: 14px; font-family: inherit; padding: 10px 12px;
  outline: none; width: 100%; transition: border-color var(--ease);
}
.opt-title:focus, .opt-year:focus { border-color: var(--g500); }
.admin-polls-section { margin-top: 28px; padding-top: 22px; border-top: 1px solid var(--border); }
.admin-poll-row {
  display: flex; align-items: center; gap: 10px;
  padding: 11px 14px; background: var(--s3);
  border-radius: var(--r-sm); margin-bottom: 8px; font-size: 14px;
}
.admin-poll-row span { flex: 1; color: var(--t200); }
.admin-poll-votes { font-size: 12px; color: var(--t600); white-space: nowrap; }

/* ── Toast ─────────────────────────────────────────────────────────────────── */
.toast {
  position: fixed; bottom: 28px; left: 50%; transform: translateX(-50%);
  background: var(--s4); border: 1px solid var(--border);
  color: var(--t100); padding: 12px 24px;
  border-radius: 100px; font-size: 14px; font-weight: 500;
  z-index: 9999; white-space: nowrap;
  animation: toast-in 0.2s ease;
}
@keyframes toast-in { from { opacity: 0; transform: translateX(-50%) translateY(10px); } }

/* ── Footer ─────────────────────────────────────────────────────────────────── */
.footer { padding: 52px 0; text-align: center; }
.footer .logo-the { font-size: 9px; color: var(--t600); }
.footer .logo-quarter { font-size: 18px; color: var(--t400); }
.footer-tagline { font-style: italic; color: var(--t600); font-size: 14px; margin: 10px 0 6px; }
.footer-copy { font-size: 12px; color: var(--t600); }

/* ── Nav active state ───────────────────────────────────────────────────────── */
.nav-link.nav-active { color: var(--t100); }
.nav-link.nav-active.games-link { color: var(--g400); }
.nav-link.nav-active.films-link { color: var(--f400); }

/* ── Page hero (category & list pages) ─────────────────────────────────────── */
.page-hero {
  padding: 64px 0 52px;
  border-bottom: 1px solid var(--border);
  position: relative; overflow: hidden;
}
.page-hero.games-hero::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 70% 70% at 0% 50%, rgba(147,51,234,0.08) 0%, transparent 70%);
  pointer-events: none;
}
.page-hero.films-hero::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 70% 70% at 0% 50%, rgba(217,119,6,0.08) 0%, transparent 70%);
  pointer-events: none;
}
.page-hero-eyebrow {
  font-size: 11px; font-weight: 700; letter-spacing: 0.24em;
  color: var(--t600); text-transform: uppercase; margin-bottom: 16px;
  display: flex; align-items: center; gap: 10px;
}
.page-hero-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(34px, 5vw, 62px);
  font-weight: 900; color: var(--t100); line-height: 1.08;
  margin-bottom: 12px;
}
.page-hero-sub {
  font-size: 16px; color: var(--t400); max-width: 560px; line-height: 1.7;
}
.page-hero-author {
  font-size: 13px; color: var(--t600); margin-top: 8px; font-style: italic;
}

/* Back link */
.back-link {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 13px; font-weight: 600; color: var(--t600);
  margin-bottom: 14px; transition: color var(--ease);
}
.back-link:hover { color: var(--t200); }
.back-link svg { width: 14px; height: 14px; }

/* ── Home category cards ────────────────────────────────────────────────────── */
.home-cats {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 20px; margin-top: 56px;
}
.home-cat-card {
  padding: 40px 36px; border-radius: var(--r-lg);
  border: 1px solid var(--border); background: var(--s1);
  transition: border-color var(--ease), transform var(--ease), background var(--ease);
  cursor: pointer; text-decoration: none; display: block;
}
.home-cat-card:hover { transform: translateY(-2px); }
.home-cat-card.games-cat-card:hover { border-color: var(--g-border); background: rgba(147,51,234,0.04); }
.home-cat-card.films-cat-card:hover { border-color: var(--f-border); background: rgba(217,119,6,0.04); }

.cat-card-badge {
  font-size: 10px; font-weight: 800; letter-spacing: 0.2em;
  text-transform: uppercase; margin-bottom: 14px; display: block;
}
.games-cat-card .cat-card-badge { color: var(--g400); }
.films-cat-card .cat-card-badge { color: var(--f400); }

.cat-card-title {
  font-family: 'Playfair Display', serif;
  font-size: 28px; font-weight: 900; color: var(--t100); margin-bottom: 8px;
}
.cat-card-sub { font-size: 14px; color: var(--t400); line-height: 1.6; margin-bottom: 20px; }

.cat-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.cat-chip {
  padding: 4px 11px; border-radius: 4px; font-size: 12px; font-weight: 600;
  border: 1px solid var(--border); color: var(--t400); background: var(--s3);
  white-space: nowrap; max-width: 200px; overflow: hidden; text-overflow: ellipsis;
}
.games-cat-card .cat-chip { border-color: var(--g-border); color: var(--g400); background: var(--g-glow); }
.films-cat-card .cat-chip { border-color: var(--f-border); color: var(--f400); background: var(--f-glow); }

/* ── List cards grid ────────────────────────────────────────────────────────── */
.page-body { padding: 64px 0; }

.list-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
}
.list-card {
  padding: 32px 28px; border-radius: var(--r-md);
  background: var(--s2); border: 1px solid var(--border);
  transition: border-color var(--ease), transform var(--ease);
  text-decoration: none; display: block;
}
.list-card:hover { transform: translateY(-2px); }
.games-list-card:hover { border-color: var(--g-border); }
.films-list-card:hover { border-color: var(--f-border); }

.list-card-eyebrow {
  font-size: 10px; font-weight: 700; letter-spacing: 0.18em;
  text-transform: uppercase; margin-bottom: 10px;
}
.games-list-card .list-card-eyebrow { color: var(--g400); }
.films-list-card .list-card-eyebrow { color: var(--f400); }

.list-card-title {
  font-family: 'Playfair Display', serif;
  font-size: 22px; font-weight: 900; color: var(--t100); line-height: 1.2; margin-bottom: 6px;
}
.list-card-author { font-size: 12px; color: var(--t600); margin-bottom: 10px; }
.list-card-desc { font-size: 14px; color: var(--t400); line-height: 1.6; }

/* ── List page item colours ─────────────────────────────────────────────────── */
.games-list-page .list-rank { color: rgba(168,85,247,0.18); }
.films-list-page .list-rank { color: rgba(245,158,11,0.18); }
.games-list-page .list-item:hover .list-rank { color: rgba(168,85,247,0.45); }
.films-list-page .list-item:hover .list-rank { color: rgba(245,158,11,0.45); }
.games-list-page .list-item:nth-child(1) .list-rank { color: var(--g500); }
.games-list-page .list-item:nth-child(2) .list-rank { color: rgba(168,85,247,0.75); }
.games-list-page .list-item:nth-child(3) .list-rank { color: rgba(168,85,247,0.55); }
.films-list-page .list-item:nth-child(1) .list-rank { color: var(--f500); }
.films-list-page .list-item:nth-child(2) .list-rank { color: rgba(245,158,11,0.75); }
.films-list-page .list-item:nth-child(3) .list-rank { color: rgba(245,158,11,0.55); }
.games-list-page .list-genre { background: var(--g-glow); color: var(--g400); }
.films-list-page .list-genre { background: var(--f-glow); color: var(--f400); }
.games-list-page .list-item.is-unrevealed .list-rank { color: rgba(168,85,247,0.10) !important; }
.films-list-page .list-item.is-unrevealed .list-rank { color: rgba(245,158,11,0.10) !important; }

/* ── Admin list management ──────────────────────────────────────────────────── */
.admin-section-label {
  font-size: 10px; font-weight: 800; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--t600); margin-bottom: 10px;
}
.admin-list-row {
  display: flex; align-items: center; gap: 10px;
  padding: 11px 14px; background: var(--s3);
  border-radius: var(--r-sm); margin-bottom: 8px;
}
.admin-list-row span { flex: 1; font-size: 14px; color: var(--t200); }
.admin-list-cat {
  font-size: 10px; font-weight: 700; letter-spacing: 0.12em;
  text-transform: uppercase; padding: 3px 8px; border-radius: 3px;
}
.admin-list-cat.is-games { background: var(--g-glow); color: var(--g400); }
.admin-list-cat.is-films { background: var(--f-glow); color: var(--f400); }

.add-item-grid {
  display: grid; grid-template-columns: 48px 1fr 80px;
  gap: 8px; margin-bottom: 10px;
}
.add-item-grid input {
  background: var(--s3); border: 1px solid var(--border);
  border-radius: var(--r-sm); color: var(--t100);
  font-size: 14px; font-family: inherit; padding: 10px 12px;
  outline: none; width: 100%; transition: border-color var(--ease);
}
.add-item-grid input:focus { border-color: var(--g500); }

.item-manage-row {
  display: flex; align-items: center; gap: 8px;
  padding: 8px 12px; background: var(--s3);
  border-radius: var(--r-sm); margin-bottom: 6px;
}
.item-manage-rank {
  font-family: 'Playfair Display', serif;
  font-size: 16px; font-weight: 700; color: var(--t600); min-width: 26px;
}
.item-manage-title { flex: 1; font-size: 13px; color: var(--t200); }
.item-manage-year { font-size: 12px; color: var(--t600); min-width: 36px; text-align: right; }
.item-manage-status {
  font-size: 10px; font-weight: 700; padding: 3px 8px;
  border-radius: 3px; min-width: 56px; text-align: center;
}
.status-revealed { background: rgba(34,197,94,0.12); color: #4ade80; }
.status-hidden   { background: rgba(239,68,68,0.10); color: #f87171; }

/* ── Featured list (inline on category page) ────────────────────────────────── */
.featured-list-section {
  margin-bottom: 56px;
}
.featured-list-header {
  display: flex; align-items: flex-start; justify-content: space-between;
  gap: 16px; margin-bottom: 28px; flex-wrap: wrap;
}
.featured-badge {
  display: inline-block; margin-bottom: 8px;
  font-size: 10px; font-weight: 800; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--t600);
}
.featured-list-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(22px, 3vw, 32px); font-weight: 900;
  color: var(--t100); line-height: 1.1; margin-bottom: 4px;
}
.featured-list-author {
  font-size: 13px; color: var(--t600); font-style: italic;
}
.other-lists-section {
  padding-top: 48px; border-top: 1px solid var(--border);
}
.other-lists-label {
  font-size: 10px; font-weight: 800; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--t600); margin-bottom: 20px;
}
.featured-dot {
  color: var(--f500); font-size: 13px; margin-left: 4px;
}

/* ── 404 ─────────────────────────────────────────────────────────────────────── */
.not-found {
  text-align: center; padding: 120px 24px;
}
.not-found h2 {
  font-family: 'Playfair Display', serif;
  font-size: 48px; color: var(--t400); margin-bottom: 12px;
}
.not-found p { color: var(--t600); font-size: 16px; }

/* ── Profile page ────────────────────────────────────────────────────────────── */
.profile-page { max-width: 780px; margin: 0 auto; padding: 48px 24px 80px; }

.profile-header {
  display: flex; align-items: center; gap: 28px; margin-bottom: 40px;
}
.profile-avatar {
  flex-shrink: 0; width: 80px; height: 80px; border-radius: 50%;
  background: var(--s3); border: 2px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  font-size: 28px; font-weight: 700; color: var(--t400);
  letter-spacing: -1px;
}
.profile-meta { flex: 1; min-width: 0; }
.profile-username {
  font-size: 26px; font-weight: 800; color: var(--t100);
  margin-bottom: 2px; word-break: break-word;
}
.profile-fullname { font-size: 15px; color: var(--t400); margin-bottom: 6px; }
.profile-bio { font-size: 15px; color: var(--t200); line-height: 1.55; white-space: pre-wrap; }
.profile-badges { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.profile-badge {
  font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase;
  padding: 3px 10px; border-radius: 99px;
}
.profile-badge.admin { background: rgba(168,85,247,.15); color: var(--g400); border: 1px solid var(--g-border); }
.profile-badge.private { background: var(--s3); color: var(--t600); border: 1px solid var(--border); }

/* settings sections */
.profile-section {
  background: var(--s1); border: 1px solid var(--border);
  border-radius: var(--r-lg); padding: 28px; margin-bottom: 24px;
}
.profile-section-title {
  font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: var(--t600); margin-bottom: 20px;
}

/* two-col name row */
.profile-name-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

/* privacy toggle */
.toggle-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 0; border-top: 1px solid var(--border); margin-top: 4px;
}
.toggle-label { font-size: 15px; color: var(--t200); }
.toggle-sub { font-size: 13px; color: var(--t600); margin-top: 2px; }
.toggle-switch { position: relative; width: 44px; height: 24px; flex-shrink: 0; }
.toggle-switch input { opacity: 0; width: 0; height: 0; }
.toggle-track {
  position: absolute; inset: 0; background: var(--s4); border-radius: 12px;
  cursor: pointer; transition: background var(--ease);
}
.toggle-track::after {
  content: ''; position: absolute; top: 3px; left: 3px;
  width: 18px; height: 18px; border-radius: 50%;
  background: var(--t400); transition: transform var(--ease), background var(--ease);
}
.toggle-switch input:checked + .toggle-track { background: var(--g500); }
.toggle-switch input:checked + .toggle-track::after { transform: translateX(20px); background: #fff; }

/* personal list */
.personal-list-section { margin-top: 8px; }
.personal-list-empty {
  text-align: center; padding: 32px 0; color: var(--t600); font-size: 15px;
}
.personal-item-row {
  display: grid; grid-template-columns: 44px auto 1fr auto; align-items: center;
  gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--border);
}
.personal-item-row:last-of-type { border-bottom: none; }
.personal-rank {
  font-size: 22px; font-weight: 800; color: var(--t600);
  font-variant-numeric: tabular-nums; text-align: right;
}
.personal-type-badge {
  font-size: 10px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  padding: 2px 7px; border-radius: 99px; white-space: nowrap;
}
.personal-type-badge.game { background: rgba(168,85,247,.15); color: var(--g400); border: 1px solid var(--g-border); }
.personal-type-badge.film { background: rgba(217,119,6,.15); color: var(--f400); border: 1px solid var(--f-border); }
.personal-type-badge.none { background: var(--s3); color: var(--t600); border: 1px solid var(--border); }
.personal-item-info { min-width: 0; }
.personal-item-title { font-size: 15px; font-weight: 600; color: var(--t100); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.personal-item-year { font-size: 13px; color: var(--t600); }
.personal-item-desc { font-size: 13px; color: var(--t400); margin-top: 2px; }

/* add personal item form */
.add-personal-grid {
  display: grid; grid-template-columns: 52px 90px 1fr 80px 90px;
  gap: 10px; align-items: end; margin-top: 20px;
}
.add-personal-grid .field { margin-bottom: 0; }

/* people search page */
.people-page { max-width: 780px; margin: 0 auto; padding: 48px 24px 80px; }
.people-search-wrap { position: relative; margin-bottom: 32px; }
.people-search-input {
  width: 100%; padding: 14px 18px 14px 48px;
  background: var(--s1); border: 1px solid var(--border);
  border-radius: var(--r-md); color: var(--t100); font-size: 16px;
  outline: none; transition: border-color var(--ease);
}
.people-search-input::placeholder { color: var(--t600); }
.people-search-input:focus { border-color: var(--g500); }
.people-search-icon {
  position: absolute; left: 16px; top: 50%; transform: translateY(-50%);
  color: var(--t600); pointer-events: none; font-size: 18px;
}
.people-results { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; }
.people-empty { text-align: center; padding: 60px 0; color: var(--t600); font-size: 15px; }

.user-card {
  background: var(--s1); border: 1px solid var(--border);
  border-radius: var(--r-md); padding: 20px; cursor: pointer;
  transition: border-color var(--ease), transform var(--ease);
  text-decoration: none; display: block;
}
.user-card:hover { border-color: var(--g-border); transform: translateY(-2px); }
.user-card-top { display: flex; align-items: center; gap: 14px; margin-bottom: 10px; }
.user-card-avatar {
  width: 48px; height: 48px; border-radius: 50%;
  background: var(--s3); border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; font-weight: 700; color: var(--t400); flex-shrink: 0;
}
.user-card-username { font-size: 15px; font-weight: 700; color: var(--t100); }
.user-card-fullname { font-size: 13px; color: var(--t400); }
.user-card-bio { font-size: 13px; color: var(--t400); line-height: 1.5; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }

/* profile page password section */
.change-pw-form { display: flex; flex-direction: column; gap: 0; }
.change-pw-form .field { margin-bottom: 18px; }
.change-pw-form .field:last-of-type { margin-bottom: 0; }

/* ── Responsive ─────────────────────────────────────────────────────────────── */
@media (max-width: 720px) {
  .nav-link { display: none; }
  .lang-switcher { display: none; }
  .hero { padding: 60px 0 52px; }
  .hero-title { font-size: 44px; }
  .hero-ctas .btn { flex: 1; }
  .hero-stats { gap: 28px; }
  .stat-n { font-size: 44px; }
  .list-item { grid-template-columns: 52px 1fr; gap: 14px; padding: 18px 10px; }
  .list-rank { font-size: 28px; }
  .list-title { font-size: 16px; }
  .polls-grid { grid-template-columns: 1fr; }
  .modal { max-width: 100%; }
  .opt-row { grid-template-columns: 1fr 80px; }
  .home-cats { grid-template-columns: 1fr; }
  .home-cat-card { padding: 28px 22px; }
  .list-cards-grid { grid-template-columns: 1fr; }
  .add-item-grid { grid-template-columns: 40px 1fr 70px; }
  .profile-name-row { grid-template-columns: 1fr; }
  .add-personal-grid { grid-template-columns: 52px 1fr 80px; }
  .add-personal-grid .type-field,
  .add-personal-grid .year-field { display: none; }
  .people-results { grid-template-columns: 1fr; }
  .profile-header { flex-direction: column; text-align: center; }
}
