:root {
  --bg: #0c0c11;
  --surface: #16161f;
  --surface-raised: #1e1e2a;
  --line: #2b2b38;
  --ink: #f3f2ee;
  --ink-muted: #9a978f;
  --accent: #e8a23a;
  --accent-dark: #c27f22;
  --accent-soft: rgba(232,162,58,0.16);
  --warn: #ef6b58;
  --radius: 10px;
  --font-display: 'Fraunces', Georgia, serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  min-height: 100%;
}

.page {
  max-width: 1040px;
  margin: 0 auto;
  padding: 20px 20px 80px;
}

/* --- simple top nav (used on admin page) --- */
.topnav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 4px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 8px;
}

.brand {
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.03em;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--ink);
}

.brand-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  display: inline-block;
}

.nav-staff {
  color: var(--ink-muted);
  text-decoration: none;
  font-size: 13px;
  border: 1px solid var(--line);
  padding: 7px 14px;
  border-radius: 20px;
}
.nav-staff:hover { color: var(--ink); border-color: var(--accent); }

/* --- full-bleed hero (image-2 layout, dark palette) --- */
.hero-full {
  position: relative;
  min-height: 620px;
  border-radius: 20px;
  overflow: hidden;
  background: radial-gradient(circle at 78% 22%, #2a2340 0%, #14121c 45%, #0c0c11 100%);
  margin-bottom: 8px;
}

.hero-nav-overlay {
  position: absolute;
  top: 0; left: 0; right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 30px;
  z-index: 6;
}

.hero-nav-overlay .brand { color: #fff; }

.hero-tabs { display: flex; gap: 26px; }
.hero-tabs a {
  color: rgba(255,255,255,0.55);
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
}
.hero-tabs a:hover, .hero-tabs a.current { color: #fff; }

.hero-content {
  position: absolute;
  top: 118px;
  left: 34px;
  max-width: 380px;
  z-index: 5;
}

.eyebrow {
  color: var(--accent);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.hero-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 46px;
  line-height: 1.04;
  margin: 0 0 16px;
  color: #fff;
  letter-spacing: -0.01em;
}

.hero-sub {
  font-size: 14px;
  line-height: 1.6;
  color: rgba(255,255,255,0.6);
  margin: 0 0 18px;
}

.hero-status {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
  color: rgba(255,255,255,0.75);
  margin-bottom: 24px;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(232,162,58,0.2);
}

.btn-play {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: #fff;
  color: #16161f;
  border: none;
  border-radius: 30px;
  padding: 6px 22px 6px 6px;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
}

.play-icon {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--accent);
  color: #16161f;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  flex-shrink: 0;
}

.hero-illustration {
  position: absolute;
  right: -6%;
  top: 0;
  bottom: 0;
  width: 58%;
  z-index: 1;
}
.hero-illustration svg { width: 100%; height: 100%; }

.hero-fade {
  position: absolute;
  top: 0; bottom: 0; left: 40%;
  width: 30%;
  background: linear-gradient(to right, #14121c, rgba(20,18,28,0));
  z-index: 2;
}

.side-labels {
  position: absolute;
  top: 130px;
  right: 18px;
  display: flex;
  flex-direction: column;
  gap: 30px;
  z-index: 6;
}
.side-labels a {
  writing-mode: vertical-rl;
  color: rgba(255,255,255,0.4);
  text-decoration: none;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 600;
}
.side-labels a:hover { color: #fff; }

.side-dots {
  position: absolute;
  top: 50%;
  left: 12px;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 14px;
  z-index: 6;
}
.side-dots .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(255,255,255,0.25);
}
.side-dots .dot.active {
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(232,162,58,0.18);
}

.hero-strip-wrap {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 70px 28px 22px;
  background: linear-gradient(to top, rgba(0,0,0,0.92), rgba(0,0,0,0));
  z-index: 5;
}

.hero-strip-label {
  color: rgba(255,255,255,0.5);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.hero-strip {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  scrollbar-width: none;
  padding-bottom: 2px;
}
.hero-strip::-webkit-scrollbar { display: none; }

.hero-card {
  flex: 0 0 210px;
  display: flex;
  gap: 10px;
  align-items: center;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 10px;
  padding: 8px;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.hero-card:hover { border-color: var(--accent); }
.hero-card.selected { border-color: var(--accent); background: rgba(232,162,58,0.14); }

.hero-card-swatch {
  width: 46px;
  height: 46px;
  border-radius: 7px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 18px;
  color: rgba(255,255,255,0.7);
}

.hero-card-title { font-size: 13px; font-weight: 700; color: #fff; line-height: 1.25; }
.hero-card-meta { font-size: 10px; color: rgba(255,255,255,0.5); margin-top: 2px; }
.hero-card-vote { font-size: 10px; color: var(--accent); font-weight: 700; margin-top: 4px; }

@media (max-width: 760px) {
  .hero-full { min-height: 720px; }
  .hero-illustration { width: 40%; opacity: 0.35; }
  .hero-fade { left: 0; width: 60%; }
  .side-labels, .side-dots { display: none; }
  .hero-content { left: 20px; right: 20px; max-width: none; top: 96px; }
  .hero-title { font-size: 34px; }
}

/* --- shared card / form controls --- */
.section-label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin: 32px 0 14px;
}

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
  margin-bottom: 16px;
}

input[type="text"], input[type="email"], input[type="password"] {
  width: 100%;
  background: var(--surface-raised);
  border: 1px solid var(--line);
  color: var(--ink);
  padding: 12px 14px;
  border-radius: 8px;
  font-size: 15px;
  font-family: var(--font-body);
}

input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

button { font-family: var(--font-body); }

.btn-primary {
  background: var(--accent);
  color: #1a1206;
  border: none;
  border-radius: 8px;
  padding: 12px 18px;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
}
.btn-primary:hover { background: var(--accent-dark); color: #fff; }

.btn-ghost {
  background: transparent;
  color: var(--ink-muted);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px 18px;
  font-size: 14px;
  cursor: pointer;
}
.btn-ghost:hover { color: var(--ink); border-color: var(--accent); }

.btn-danger {
  background: rgba(239,107,88,0.12);
  color: var(--warn);
  border: 1px solid rgba(239,107,88,0.35);
  border-radius: 8px;
  padding: 12px 18px;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
}

.suggest-row { display: flex; gap: 8px; }
.suggest-row input { flex: 1; }

.tag {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 5px;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.result-row { margin-bottom: 12px; }
.result-head { display: flex; justify-content: space-between; font-size: 14px; margin-bottom: 6px; }
.result-bar-track { height: 10px; background: var(--surface-raised); border-radius: 6px; overflow: hidden; }
.result-bar-fill { height: 100%; background: var(--accent); border-radius: 6px; transition: width 0.4s ease; }
.result-row.winner .result-head { color: var(--accent); font-weight: 700; }

.hidden-tag {
  font-size: 10px;
  color: var(--warn);
  border: 1px solid rgba(239,107,88,0.4);
  padding: 2px 6px;
  border-radius: 4px;
  margin-left: 6px;
}

.footer-note { text-align: center; color: var(--ink-muted); font-size: 12px; margin-top: 48px; }

/* --- admin list rows --- */
.movie-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  margin-bottom: 10px;
}

.movie-title { font-size: 15px; font-weight: 700; }
.movie-meta { font-size: 12px; color: var(--ink-muted); margin-top: 2px; }

.row-actions { display: flex; gap: 6px; flex-shrink: 0; }
.row-actions button { padding: 6px 10px; font-size: 12px; }

.toggle-block { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; }
.toggle-label { font-size: 14px; font-weight: 700; }
.toggle-desc { font-size: 12px; color: var(--ink-muted); margin-top: 2px; }

.switch {
  position: relative;
  width: 46px;
  height: 26px;
  background: var(--surface-raised);
  border: 1px solid var(--line);
  border-radius: 20px;
  cursor: pointer;
  flex-shrink: 0;
}
.switch.on { background: var(--accent); border-color: var(--accent); }
.switch::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 20px;
  height: 20px;
  background: white;
  border-radius: 50%;
  transition: transform 0.15s ease;
}
.switch.on::after { transform: translateX(20px); }

.stat-row { display: flex; gap: 12px; margin-bottom: 16px; }
.stat-box { flex: 1; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; }
.stat-num { font-family: var(--font-display); font-size: 22px; font-weight: 700; color: var(--accent); }
.stat-label { font-size: 11px; color: var(--ink-muted); margin-top: 6px; }

.error-msg { color: var(--warn); font-size: 13px; margin-top: 8px; min-height: 16px; }

/* --- winner reveal hero --- */
.win-hero {
  position: relative;
  min-height: 560px;
  border-radius: 20px;
  overflow: hidden;
  background: radial-gradient(circle at 78% 22%, #2a2340 0%, #14121c 45%, #0c0c11 100%);
  background-size: cover;
  background-position: center;
  margin-bottom: 8px;
}

.win-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(6,6,10,0.95) 15%, rgba(6,6,10,0.35) 55%, rgba(6,6,10,0.65) 100%);
  z-index: 2;
}

.win-content {
  position: absolute;
  left: 34px;
  bottom: 34px;
  max-width: 460px;
  z-index: 4;
}

.win-eyebrow {
  color: var(--accent);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.win-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 44px;
  line-height: 1.04;
  margin: 0 0 12px;
  color: #fff;
}

.win-sub {
  font-size: 13px;
  color: rgba(255,255,255,0.65);
  margin: 0 0 20px;
}

.win-actions { display: flex; gap: 10px; flex-wrap: wrap; }

.win-btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #fff;
  color: #16161f;
  border: none;
  border-radius: 30px;
  padding: 6px 20px 6px 6px;
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
  text-decoration: none;
}

.win-btn-outline {
  display: inline-flex;
  align-items: center;
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255,255,255,0.4);
  border-radius: 30px;
  padding: 12px 20px;
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
  text-decoration: none;
}
.win-btn-outline:hover { border-color: #fff; }

.win-rank-list {
  position: absolute;
  right: 26px;
  top: 84px;
  bottom: 34px;
  width: 220px;
  z-index: 4;
  display: flex;
  flex-direction: column;
  gap: 10px;
  overflow-y: auto;
}

.win-rank-label {
  color: rgba(255,255,255,0.5);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 2px;
}

.win-rank-card {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 8px;
  padding: 8px;
}

.win-rank-thumb {
  width: 40px;
  height: 40px;
  border-radius: 6px;
  flex-shrink: 0;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 15px;
  color: rgba(255,255,255,0.7);
}

.win-rank-title { font-size: 12px; font-weight: 700; color: #fff; line-height: 1.25; }
.win-rank-meta { font-size: 10px; color: rgba(255,255,255,0.5); margin-top: 2px; }

@media (max-width: 760px) {
  .win-hero { min-height: 640px; }
  .win-rank-list { position: static; width: auto; margin: 16px 34px 0; }
  .win-title { font-size: 32px; }
}

/* --- admin: small labeled fields + thumb preview --- */
.field-label {
  font-size: 12px;
  color: var(--ink-muted);
  margin: 12px 0 6px;
  display: block;
}

.field-label:first-child { margin-top: 0; }

.admin-thumb {
  width: 40px;
  height: 40px;
  border-radius: 6px;
  flex-shrink: 0;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--ink-muted);
  background-color: var(--surface-raised);
  border: 1px solid var(--line);
}

.movie-row-main { display: flex; align-items: center; gap: 12px; }
