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

:root {
  --bg: #0c0c0f;
  --surface: #14141a;
  --surface2: #1c1c24;
  --surface3: #24242f;
  --accent: #e50914;
  --accent-dim: rgba(229, 9, 20, 0.18);
  --accent-glow: rgba(229, 9, 20, 0.35);
  --text: #f0f0f5;
  --text-muted: #9090a8;
  --text-dim: #50506a;
  --border: rgba(255,255,255,0.07);
  --border-soft: rgba(255,255,255,0.04);
  --radius: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
  min-height: 100vh;
  overflow-x: hidden;
}

::-webkit-scrollbar { width: 4px; height: 4px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--surface3); border-radius: 2px; }
::-webkit-scrollbar-thumb:hover { background: #38384a; }

/* ── SHARED: LOGO ── */
.logo {
  font-size: 1.35rem;
  font-weight: 900;
  letter-spacing: -0.8px;
  background: linear-gradient(125deg, #ffffff 0%, #f0f0f5 40%, #e50914 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  user-select: none;
  text-decoration: none;
}
.logo span {
  background: linear-gradient(125deg, #e50914, #ff6b6b);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── SHARED: ICON BUTTON ── */
.icon-btn {
  width: 38px; height: 38px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--surface2);
  color: var(--text-muted);
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
  flex-shrink: 0;
}
.icon-btn:hover {
  background: var(--surface3); color: var(--text);
  border-color: rgba(255,255,255,0.12); transform: scale(1.05);
}
.icon-btn svg { width: 17px; height: 17px; }

/* ── SHARED: BADGE ── */
.badge {
  display: inline-flex; align-items: center; gap: 3px;
  font-size: 0.7rem; font-weight: 800;
  padding: 3px 8px; border-radius: 100px; letter-spacing: 0.2px;
}
.badge-rating { background: var(--accent); color: #fff; }
.badge-platform { background: rgba(255,255,255,0.14); color: rgba(255,255,255,0.9); border: 1px solid rgba(255,255,255,0.18); backdrop-filter: blur(6px); }
.badge-year { background: rgba(255,255,255,0.08); color: rgba(255,255,255,0.6); }

/* ── SHARED: GENRE TAG ── */
.genre-tag {
  font-size: 0.7rem; font-weight: 800; padding: 4px 11px; border-radius: 100px;
  border: 1px solid rgba(255,255,255,0.2); color: rgba(255,255,255,0.8);
  letter-spacing: 0.5px; text-transform: uppercase;
}

/* ── HOME: TOP BAR ── */
.topbar {
  position: sticky; top: 0; z-index: 100; height: 62px;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 18px;
  background: rgba(12, 12, 15, 0.88);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border-bottom: 1px solid var(--border);
}
.topbar-right { display: flex; gap: 6px; align-items: center; }

/* ── HOME: SEARCH OVERLAY ── */
.search-overlay {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(0,0,0,0.78);
  display: none; align-items: flex-start; justify-content: center;
  padding: 72px 18px 40px;
  backdrop-filter: blur(5px); -webkit-backdrop-filter: blur(5px);
  overflow-y: auto;
}
.search-overlay.open { display: flex; animation: fadeIn 0.15s ease; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

.search-box {
  width: min(560px, 100%);
  background: var(--surface);
  border-radius: var(--radius-xl);
  border: 1px solid rgba(255,255,255,0.12);
  box-shadow: 0 28px 70px rgba(0,0,0,0.65);
  overflow: hidden;
  animation: slideDown 0.22s ease;
  flex-shrink: 0;
}
@keyframes slideDown { from { transform: translateY(-14px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }

.search-input-row {
  display: flex; gap: 12px; align-items: center;
  padding: 14px 16px; border-bottom: 1px solid var(--border);
}
.search-box svg { flex-shrink: 0; }
.search-input {
  flex: 1; background: none; border: none; outline: none;
  color: var(--text); font-size: 1.05rem; caret-color: var(--accent);
}
.search-input::placeholder { color: var(--text-dim); }

.filter-section { padding: 16px 18px; border-bottom: 1px solid var(--border); }
.filter-label {
  font-size: 0.65rem; font-weight: 900; letter-spacing: 1.2px;
  text-transform: uppercase; color: var(--text-dim); margin-bottom: 14px;
}

.score-slider-wrap { display: flex; align-items: center; gap: 14px; }
.score-slider-track { flex: 1; position: relative; height: 20px; display: flex; align-items: center; }
.score-range {
  -webkit-appearance: none; appearance: none;
  width: 100%; height: 4px; border-radius: 2px;
  background: var(--surface3); outline: none; cursor: pointer;
}
.score-range::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none;
  width: 20px; height: 20px; border-radius: 50%;
  background: #fff; border: 3px solid var(--accent);
  box-shadow: 0 0 0 0 rgba(229,9,20,0.3); cursor: pointer;
  transition: box-shadow 0.18s ease, transform 0.18s ease;
}
.score-range::-moz-range-thumb {
  width: 20px; height: 20px; border-radius: 50%;
  background: #fff; border: 3px solid var(--accent); cursor: pointer;
}
.score-range:focus::-webkit-slider-thumb,
.score-range:hover::-webkit-slider-thumb {
  box-shadow: 0 0 0 6px rgba(229,9,20,0.2); transform: scale(1.1);
}
.score-value-badge {
  flex-shrink: 0; width: 44px; text-align: center;
  font-size: 1.05rem; font-weight: 900; color: var(--text);
  background: var(--surface2); border: 1px solid var(--border);
  border-radius: 8px; padding: 4px 0; letter-spacing: -0.5px; transition: color 0.18s;
}
.score-value-badge.has-filter { color: var(--accent); border-color: rgba(229,9,20,0.35); }
.score-ticks { display: flex; justify-content: space-between; padding: 6px 0 0; }
.score-tick {
  font-size: 0.65rem; color: var(--text-dim); font-weight: 700; cursor: pointer;
  transition: color 0.15s; padding: 2px 4px; border-radius: 4px;
}
.score-tick:hover { color: var(--text-muted); }
.score-tick.active { color: var(--accent); }

.vendor-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.vendor-chip {
  display: inline-flex; align-items: center; gap: 6px; padding: 7px 13px;
  border-radius: 100px; border: 1.5px solid var(--border);
  background: var(--surface2); color: var(--text-muted);
  font-size: 0.78rem; font-weight: 700; cursor: pointer;
  transition: all 0.18s ease; white-space: nowrap; user-select: none;
}
.vendor-chip:hover { border-color: rgba(255,255,255,0.18); color: var(--text); }
.vendor-chip .vc-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.vendor-chip[data-vendor="Netflix"] .vc-dot  { background: #e50914; }
.vendor-chip[data-vendor="HBO"] .vc-dot       { background: #8b31f0; }
.vendor-chip[data-vendor="Disney+"] .vc-dot   { background: #1134c0; }
.vendor-chip[data-vendor="Apple TV+"] .vc-dot { background: #a0a0a8; }
.vendor-chip[data-vendor="Amazon"] .vc-dot    { background: #00a8e0; }
.vendor-chip[data-vendor="Hulu"] .vc-dot      { background: #1ce783; }
.vendor-chip.active { color: #fff; border-color: transparent; }
.vendor-chip[data-vendor="Netflix"].active  { background: #e50914; }
.vendor-chip[data-vendor="HBO"].active       { background: #8b31f0; }
.vendor-chip[data-vendor="Disney+"].active   { background: #1134c0; }
.vendor-chip[data-vendor="Apple TV+"].active { background: #55555f; }
.vendor-chip[data-vendor="Amazon"].active    { background: #0090c0; }
.vendor-chip[data-vendor="Hulu"].active      { background: #14cc72; color: #000; }

.genre-chips { display: flex; flex-wrap: wrap; gap: 7px; }
.genre-chip {
  padding: 6px 13px; border-radius: 100px;
  border: 1.5px solid var(--border); background: var(--surface2);
  color: var(--text-muted); font-size: 0.78rem; font-weight: 700;
  cursor: pointer; transition: all 0.18s ease; user-select: none;
}
.genre-chip:hover { border-color: rgba(255,255,255,0.18); color: var(--text); }
.genre-chip.active { background: var(--surface3); border-color: rgba(255,255,255,0.3); color: #fff; }

.filter-footer { display: flex; align-items: center; justify-content: space-between; padding: 12px 18px; }
.filter-active-count { font-size: 0.78rem; font-weight: 700; color: var(--text-dim); transition: color 0.2s; }
.filter-active-count.has-filters { color: var(--accent); }
.clear-btn {
  font-size: 0.78rem; font-weight: 700; color: var(--text-muted);
  background: none; border: 1px solid var(--border); border-radius: 100px;
  padding: 5px 14px; cursor: pointer; transition: all 0.18s;
}
.clear-btn:hover { background: var(--surface2); color: var(--text); border-color: rgba(255,255,255,0.14); }
.clear-btn:disabled { opacity: 0.35; pointer-events: none; }
.search-apply-btn {
  display: flex; align-items: center; justify-content: center; gap: .5rem;
  width: calc(100% - 36px); margin: 4px 18px 18px;
  padding: .75rem; border-radius: var(--radius-lg);
  background: var(--accent); border: none; color: #fff;
  font-size: .95rem; font-weight: 800; letter-spacing: .3px;
  cursor: pointer; transition: background .15s;
}
.search-apply-btn:hover { background: #c8000f; }

/* ── HOME: MEDIA TOGGLE ── */
.media-toggle-wrap { display: flex; justify-content: center; padding: 22px 18px 10px; }
.toggle-pill {
  display: flex; background: var(--surface);
  border-radius: 100px; padding: 4px; border: 1px solid var(--border);
}
.toggle-btn {
  padding: 9px 26px; border-radius: 100px; border: none;
  background: transparent; color: var(--text-muted);
  font-size: 0.875rem; font-weight: 700; cursor: pointer;
  letter-spacing: 0.2px; transition: all 0.22s ease; white-space: nowrap;
}
.toggle-btn.active { background: var(--accent); color: #fff; box-shadow: 0 2px 18px var(--accent-glow); }

/* ── HOME: SECTION HEADERS ── */
.section-head { display: flex; align-items: center; justify-content: space-between; padding: 18px 18px 10px; }
.section-title { font-size: 1rem; font-weight: 800; letter-spacing: -0.2px; }
.see-all { font-size: 0.78rem; color: var(--accent); text-decoration: none; font-weight: 700; opacity: 0.9; transition: opacity 0.15s; }
.see-all:hover { opacity: 1; }

/* ── HOME: HERO CAROUSEL ── */
.hero-scroll {
  display: flex; gap: 14px; padding: 0 18px 24px;
  overflow-x: auto; scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch; scrollbar-width: none;
}
.hero-scroll::-webkit-scrollbar { display: none; }

.hero-card {
  flex: 0 0 min(330px, calc(100vw - 54px));
  border-radius: var(--radius-lg); overflow: hidden;
  position: relative; scroll-snap-align: start; cursor: pointer;
  transition: transform 0.28s ease, box-shadow 0.28s ease;
  background: var(--surface2); box-shadow: 0 6px 24px rgba(0,0,0,0.4);
}
.hero-card:hover { transform: scale(1.025); box-shadow: 0 14px 40px rgba(0,0,0,0.55); }

.hero-img-wrap { position: relative; width: 100%; padding-top: 56.25%; }
.hero-img-wrap img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.hero-gradient {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.92) 0%, rgba(0,0,0,0.5) 45%, rgba(0,0,0,0.08) 100%);
}

.hero-info { position: absolute; bottom: 0; left: 0; right: 0; padding: 14px 16px; }
.hero-card-title { font-size: 1.05rem; font-weight: 800; margin-bottom: 6px; line-height: 1.25; text-shadow: 0 1px 6px rgba(0,0,0,0.6); }
.hero-badges { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 6px; }
.hero-overview {
  font-size: 0.74rem; color: rgba(255,255,255,0.7); line-height: 1.45;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}

/* ── HOME: CATEGORY CHIPS ── */
.chips-wrap {
  display: flex; gap: 7px; padding: 2px 18px 18px;
  overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch;
}
.chips-wrap::-webkit-scrollbar { display: none; }
.chip {
  flex-shrink: 0; padding: 7px 15px; border-radius: 100px;
  border: 1px solid var(--border); background: var(--surface);
  color: var(--text-muted); font-size: 0.8rem; font-weight: 700;
  cursor: pointer; white-space: nowrap; transition: all 0.18s ease; letter-spacing: 0.15px;
}
.chip:hover { border-color: rgba(229, 9, 20, 0.4); color: var(--text); background: var(--surface2); }
.chip.active { background: var(--accent); border-color: var(--accent); color: #fff; box-shadow: 0 0 18px var(--accent-glow); }

/* ── HOME: GRID ── */
.grid-head { display: flex; align-items: baseline; gap: 10px; padding: 4px 18px 14px; }
.grid-title { font-size: 1rem; font-weight: 800; letter-spacing: -0.2px; }
.grid-count { font-size: 0.75rem; color: var(--text-dim); font-weight: 600; }

.content-grid {
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: 14px; padding: 0 14px 80px;
}
@media (min-width: 460px)  { .content-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 720px)  { .content-grid { grid-template-columns: repeat(4, 1fr); gap: 16px; padding: 0 24px 80px; } }
@media (min-width: 1024px) { .content-grid { grid-template-columns: repeat(5, 1fr); } }
@media (min-width: 1280px) { .content-grid { grid-template-columns: repeat(6, 1fr); } }

.content-card {
  background: var(--surface); border-radius: var(--radius); overflow: hidden;
  cursor: pointer; border: 1px solid var(--border-soft);
  transition: transform 0.24s ease, box-shadow 0.24s ease, border-color 0.24s ease;
  animation: cardIn 0.3s ease both;
}
@keyframes cardIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
.content-card:hover { transform: translateY(-5px); box-shadow: 0 18px 44px rgba(0,0,0,0.55); border-color: rgba(255,255,255,0.1); }

.poster-wrap { position: relative; aspect-ratio: 2/3; overflow: hidden; background: var(--surface2); }
.poster-img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.4s ease; }
.content-card:hover .poster-img { transform: scale(1.06); }
.poster-rating {
  position: absolute; top: 8px; right: 8px;
  background: rgba(5,5,8,0.8); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(229,9,20,0.3); color: #fff;
  font-size: 0.68rem; font-weight: 800; padding: 3px 7px; border-radius: 8px;
}
.poster-platform {
  position: absolute; bottom: 8px; left: 8px;
  font-size: 0.62rem; font-weight: 800; padding: 3px 8px;
  border-radius: 7px; letter-spacing: 0.4px; text-transform: uppercase;
}
.poster-watched {
  position: absolute; top: 8px; left: 8px;
  width: 22px; height: 22px; border-radius: 50%;
  background: rgba(5,5,8,.65); backdrop-filter: blur(6px);
  display: flex; align-items: center; justify-content: center;
  color: #4ade80;
}
.plat-Netflix { background: #e50914; color: #fff; }
.plat-HBO     { background: #8b31f0; color: #fff; }
.plat-Disney  { background: #1134c0; color: #fff; }
.plat-Apple   { background: rgba(80,80,90,0.9); color: #fff; }
.plat-Amazon  { background: #00a2d2; color: #fff; }
.plat-Hulu    { background: #1ce783; color: #000; }

.card-info { padding: 10px 10px 12px; }
.card-title { font-size: 0.8rem; font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--text); margin-bottom: 4px; }
.card-desc { font-size: 0.7rem; color: var(--text-muted); line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

.empty-state { grid-column: 1/-1; text-align: center; padding: 64px 20px; color: var(--text-dim); }
.empty-icon { width: 52px; height: 52px; margin: 0 auto 14px; opacity: 0.3; }
.empty-state h3 { font-size: 0.95rem; margin-bottom: 6px; color: var(--text-muted); }
.empty-state p { font-size: 0.8rem; }

@media (min-width: 768px) {
  .topbar { padding: 0 32px; }
  .media-toggle-wrap { padding: 28px 32px 12px; }
  .section-head { padding: 20px 32px 12px; }
  .hero-scroll { padding: 0 32px 28px; gap: 18px; }
  .hero-card { flex: 0 0 480px; }
  .chips-wrap { padding: 2px 32px 20px; }
  .grid-head { padding: 6px 32px 16px; }
}

/* ── DETAILS: TOP NAV ── */
.topnav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100; height: 62px;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 18px; transition: background 0.3s ease, border-color 0.3s ease;
}
.topnav.scrolled {
  background: rgba(12,12,15,0.9);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border-bottom: 1px solid var(--border);
}
.back-btn {
  display: flex; align-items: center; gap: 8px;
  background: rgba(12,12,15,0.7); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.1); color: var(--text);
  font-size: 0.85rem; font-weight: 700; padding: 8px 16px 8px 12px;
  border-radius: 100px; cursor: pointer; text-decoration: none;
  transition: background 0.18s ease, border-color 0.18s ease;
}
.back-btn:hover { background: rgba(30,30,40,0.9); border-color: rgba(255,255,255,0.18); }
.back-btn svg { width: 16px; height: 16px; flex-shrink: 0; }

/* ── DETAILS: HERO ── */
.hero {
  position: relative; width: 100%; min-height: 100svh; min-height: 100vh;
  display: flex; align-items: flex-end; overflow: hidden;
}
.hero-backdrop {
  position: absolute; inset: 0;
  background-size: cover; background-position: center 20%;
  transform: scale(1.04); transition: transform 8s ease;
}
.hero-backdrop.loaded { transform: scale(1); }

.hero-video {
  position: absolute; inset: 0; z-index: 4;
  background: #000; opacity: 0; pointer-events: none; transition: opacity 0.4s ease;
}
.hero-video.active { opacity: 1; pointer-events: all; }
.hero-video iframe { width: 100%; height: 100%; border: none; display: block; }

.hero-video-close {
  position: absolute; top: 16px; right: 16px; z-index: 5;
  width: 42px; height: 42px; border-radius: 50%;
  border: 1.5px solid rgba(255,255,255,0.25);
  background: rgba(10,10,14,0.7); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  color: #fff; cursor: pointer; display: none; align-items: center; justify-content: center;
  transition: background 0.18s ease, transform 0.18s ease;
}
.hero-video-close.active { display: flex; }
.hero-video-close:hover { background: rgba(229,9,20,0.7); transform: scale(1.08); }
.hero-video-close svg { width: 18px; height: 18px; }

.hero-play-overlay {
  position: absolute; inset: 0; z-index: 3;
  display: flex; align-items: center; justify-content: center;
  padding-bottom: 180px; pointer-events: none; transition: opacity 0.35s ease;
}
.hero-play-overlay.hidden { opacity: 0; pointer-events: none; }
.hero-play-btn {
  pointer-events: all; width: 76px; height: 76px; border-radius: 50%;
  border: 2.5px solid rgba(255,255,255,0.55);
  background: rgba(229,9,20,0.82); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  display: flex; align-items: center; justify-content: center; cursor: pointer;
  box-shadow: 0 0 0 0 rgba(229,9,20,0.5); animation: pulse 2.6s ease infinite;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}
@keyframes pulse {
  0%  { box-shadow: 0 0 0  0   rgba(229,9,20,0.55); }
  60% { box-shadow: 0 0 0 22px rgba(229,9,20,0); }
  100%{ box-shadow: 0 0 0  0   rgba(229,9,20,0); }
}
.hero-play-btn:hover { transform: scale(1.12); background: rgba(229,9,20,0.97); box-shadow: 0 0 40px rgba(229,9,20,0.6); animation: none; }
.hero-play-btn svg { width: 28px; height: 28px; margin-left: 4px; }

.hero-content, .hero-overlay { transition: opacity 0.35s ease; }
.hero.playing .hero-content,
.hero.playing .hero-overlay,
.hero.playing .hero-play-overlay { opacity: 0; pointer-events: none; }

.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to bottom,
    rgba(12,12,15,0.1)   0%, rgba(12,12,15,0.05) 30%,
    rgba(12,12,15,0.55) 60%, rgba(12,12,15,0.94) 85%, rgba(12,12,15,1) 100%);
}
.hero-content {
  position: relative; z-index: 1; width: 100%; padding: 100px 20px 36px;
}
@media (min-width: 768px) { .hero-content { padding: 140px 40px 48px; max-width: 720px; } }

.hero-genre-row { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 16px; }
.hero-title {
  font-size: clamp(2rem, 6vw, 3.5rem); font-weight: 900; letter-spacing: -1.5px;
  line-height: 1.05; margin-bottom: 8px; text-shadow: 0 2px 20px rgba(0,0,0,0.5);
}
.hero-tagline { font-size: 0.95rem; color: rgba(255,255,255,0.6); font-style: italic; margin-bottom: 16px; font-weight: 500; }

.meta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 24px; }
.meta-chip { display: inline-flex; align-items: center; gap: 5px; font-size: 0.78rem; font-weight: 700; color: rgba(255,255,255,0.85); }
.meta-chip svg { width: 13px; height: 13px; opacity: 0.7; }
.meta-dot { width: 3px; height: 3px; border-radius: 50%; background: rgba(255,255,255,0.3); }
.rating-star { display: inline-flex; align-items: center; gap: 4px; background: var(--accent); color: #fff; font-size: 0.8rem; font-weight: 900; padding: 4px 10px; border-radius: 100px; }
.platform-tag { display: inline-flex; align-items: center; gap: 5px; background: rgba(255,255,255,0.12); border: 1px solid rgba(255,255,255,0.16); color: #fff; font-size: 0.75rem; font-weight: 800; padding: 4px 12px; border-radius: 100px; letter-spacing: 0.2px; }
.age-badge { font-size: 0.72rem; font-weight: 800; padding: 3px 8px; border-radius: 6px; border: 1.5px solid rgba(255,255,255,0.35); color: rgba(255,255,255,0.7); letter-spacing: 0.5px; }

.action-row { display: flex; flex-wrap: wrap; gap: 10px; }
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.88rem; font-weight: 800; padding: 12px 22px;
  border-radius: var(--radius); border: none; cursor: pointer;
  letter-spacing: 0.2px; transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
  white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; flex-shrink: 0; }
.btn:hover { transform: translateY(-2px); }
.btn-netflix { background: #e50914; color: #fff; box-shadow: 0 4px 20px rgba(229,9,20,0.4); }
.btn-netflix:hover { background: #f0131f; box-shadow: 0 8px 28px rgba(229,9,20,0.55); }
.btn-disney { background: #1134c0; color: #fff; box-shadow: 0 4px 20px rgba(17,52,192,0.4); }
.btn-disney:hover { background: #1a3fd4; box-shadow: 0 8px 28px rgba(17,52,192,0.55); }
.btn-prime { background: #00a8e0; color: #fff; box-shadow: 0 4px 20px rgba(0,168,224,0.35); }
.btn-prime:hover { background: #10b8f0; box-shadow: 0 8px 28px rgba(0,168,224,0.5); }
.btn-secondary { background: rgba(255,255,255,0.11); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); border: 1px solid rgba(255,255,255,0.16); color: #fff; }
.btn-secondary:hover { background: rgba(255,255,255,0.18); }
.btn-watched { background: transparent; border: 1px solid rgba(255,255,255,0.18); color: rgba(255,255,255,0.7); }
.btn-watched:hover { background: rgba(255,255,255,0.08); color: #fff; }
.btn-watched.active { background: rgba(74,222,128,0.15); border-color: rgba(74,222,128,0.4); color: #4ade80; }
.btn-watched.active:hover { background: rgba(74,222,128,0.22); }

/* ── DETAILS: BODY ── */
.body-content { padding: 0 20px; max-width: 1200px; margin: 0 auto; }
@media (min-width: 768px) { .body-content { padding: 0 40px; } }

.section { margin-bottom: 44px; }
.section-label { font-size: 0.68rem; font-weight: 900; letter-spacing: 1.4px; text-transform: uppercase; color: var(--text-dim); margin-bottom: 14px; }
.overview-text { font-size: 1rem; line-height: 1.75; color: rgba(240,240,245,0.8); max-width: 720px; }

.stats-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
@media (min-width: 480px) { .stats-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 768px) { .stats-grid { grid-template-columns: repeat(4, 1fr); } }
.stat-card { background: var(--surface); border: 1px solid var(--border-soft); border-radius: var(--radius); padding: 14px 16px; }
.stat-label { font-size: 0.68rem; font-weight: 700; color: var(--text-dim); letter-spacing: 0.6px; text-transform: uppercase; margin-bottom: 5px; }
.stat-value { font-size: 0.92rem; font-weight: 800; color: var(--text); line-height: 1.3; }
.stat-value.accent { color: var(--accent); }

.cast-scroll { display: flex; gap: 12px; overflow-x: auto; scrollbar-width: none; padding-bottom: 4px; -webkit-overflow-scrolling: touch; }
.cast-scroll::-webkit-scrollbar { display: none; }
.cast-card { flex-shrink: 0; width: 100px; text-align: center; }
.cast-avatar { width: 80px; height: 80px; border-radius: 50%; object-fit: cover; display: block; margin: 0 auto 8px; background: var(--surface2); border: 2px solid var(--border); transition: border-color 0.18s ease, transform 0.18s ease; }
.cast-card:hover .cast-avatar { border-color: var(--accent); transform: scale(1.05); }
.cast-name { font-size: 0.75rem; font-weight: 800; color: var(--text); margin-bottom: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cast-role { font-size: 0.68rem; color: var(--text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.scores-row { display: flex; flex-wrap: wrap; gap: 12px; }
.score-card { flex: 1; min-width: 130px; background: var(--surface); border: 1px solid var(--border-soft); border-radius: var(--radius); padding: 18px 20px; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.score-source { font-size: 0.68rem; font-weight: 900; letter-spacing: 0.8px; text-transform: uppercase; color: var(--text-dim); }
.score-value { font-size: 1.9rem; font-weight: 900; letter-spacing: -1px; }
.score-label { font-size: 0.72rem; color: var(--text-muted); }
.score-green  { color: #4ade80; }
.score-yellow { color: #facc15; }
.score-red    { color: var(--accent); }

.reviews-list { display: flex; flex-direction: column; gap: 14px; }
.review-card { background: var(--surface); border: 1px solid var(--border-soft); border-radius: var(--radius); padding: 18px 20px; }
.review-header { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 10px; gap: 12px; }
.review-author { font-size: 0.82rem; font-weight: 800; }
.review-source { font-size: 0.72rem; color: var(--text-dim); margin-top: 2px; }
.review-rating { flex-shrink: 0; font-size: 0.75rem; font-weight: 800; padding: 3px 10px; border-radius: 100px; background: var(--surface2); color: #facc15; border: 1px solid rgba(250,204,21,0.2); }
.review-text { font-size: 0.83rem; line-height: 1.65; color: rgba(240,240,245,0.75); }

.similar-scroll { display: flex; gap: 12px; overflow-x: auto; scrollbar-width: none; padding-bottom: 4px; -webkit-overflow-scrolling: touch; }
.similar-scroll::-webkit-scrollbar { display: none; }
.similar-card { flex: 0 0 130px; cursor: pointer; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border-soft); background: var(--surface); transition: transform 0.22s ease, box-shadow 0.22s ease; text-decoration: none; display: block; }
.similar-card:hover { transform: translateY(-4px); box-shadow: 0 14px 36px rgba(0,0,0,0.5); }
.similar-poster { aspect-ratio: 2/3; width: 100%; object-fit: cover; display: block; background: var(--surface2); }
.similar-info { padding: 8px 9px 10px; }
.similar-title { font-size: 0.74rem; font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--text); margin-bottom: 3px; }
.similar-rating { font-size: 0.68rem; color: var(--text-muted); font-weight: 700; }

.score-bar-wrap { display: flex; flex-direction: column; gap: 8px; }
.score-bar-row { display: flex; align-items: center; gap: 10px; }
.score-bar-label { font-size: 0.74rem; font-weight: 700; color: var(--text-muted); width: 80px; flex-shrink: 0; }
.score-bar-track { flex: 1; height: 5px; background: var(--surface3); border-radius: 3px; overflow: hidden; }
.score-bar-fill { height: 100%; border-radius: 3px; background: var(--accent); transition: width 0.8s cubic-bezier(.4,0,.2,1); }
.score-bar-num { font-size: 0.74rem; font-weight: 800; color: var(--text-muted); width: 28px; text-align: right; flex-shrink: 0; }

footer { border-top: 1px solid var(--border); padding: 28px 20px; text-align: center; margin-top: 20px; }
footer p { font-size: 0.75rem; color: var(--text-dim); }

@media (min-width: 900px) {
  .two-col { display: grid; grid-template-columns: 1fr 340px; gap: 32px; align-items: start; }
}

/* ═══════════════════════════════════════════════════════════════
   PERSON PAGE
   ═══════════════════════════════════════════════════════════════ */

.person-hero {
  background: linear-gradient(180deg, var(--surface) 0%, var(--bg) 100%);
  border-bottom: 1px solid var(--border-soft);
  padding: 90px 0 36px;
}
.person-hero-inner {
  display: flex;
  gap: 32px;
  align-items: flex-start;
}
.person-avatar {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 3px solid var(--border);
  background: var(--surface2);
}
.person-avatar-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-dim);
}
.person-hero-info { flex: 1; min-width: 0; }
.person-known-for {
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 8px;
}
.person-name {
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  font-weight: 900;
  letter-spacing: -0.5px;
  line-height: 1.1;
  margin-bottom: 14px;
}
.person-bio {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.65;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 8px;
}
.person-bio.expanded {
  display: block;
  -webkit-line-clamp: unset;
}
.person-bio-toggle {
  background: none;
  border: none;
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  padding: 0;
}
.person-bio-toggle:hover { text-decoration: underline; }
.person-link {
  color: var(--text);
  text-decoration: none;
  font-weight: 800;
}
.person-link:hover { color: var(--accent); }

/* Cast card as link */
a.cast-card {
  text-decoration: none;
  display: block;
  cursor: pointer;
}

/* ── Person controls bar ──────────────────────────────────────── */
.person-controls {
  background: var(--surface);
  border-bottom: 1px solid var(--border-soft);
  padding: 14px 0;
  position: sticky;
  top: 56px;
  z-index: 90;
}
.person-controls-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}
.person-sort {
  display: flex;
  gap: 6px;
  flex-shrink: 0;
}
.sort-btn {
  padding: 6px 14px;
  border-radius: 20px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-muted);
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.sort-btn:hover { color: var(--text); border-color: var(--text-dim); }
.sort-btn.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

/* ── Year slider ─────────────────────────────────────────────── */
.person-year-filter {
  flex: 1;
  min-width: 180px;
  max-width: 320px;
}
.year-filter-label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text-dim);
  letter-spacing: 0.4px;
  text-transform: uppercase;
  margin-bottom: 6px;
}
.year-filter-label strong { color: var(--text); font-weight: 900; }
.year-reset {
  background: none;
  border: none;
  color: var(--text-dim);
  cursor: pointer;
  font-size: 0.7rem;
  padding: 0 2px;
  line-height: 1;
}
.year-reset:hover { color: var(--accent); }
.year-slider {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 4px;
  border-radius: 2px;
  outline: none;
  cursor: pointer;
  background: linear-gradient(
    to right,
    var(--accent) 0%,
    var(--accent) var(--pct),
    var(--border) var(--pct),
    var(--border) 100%
  );
}
.year-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--accent);
  border: 2px solid #fff;
  box-shadow: 0 1px 6px rgba(0,0,0,0.5);
  transition: transform 0.12s;
}
.year-slider::-webkit-slider-thumb:hover { transform: scale(1.2); }
.year-slider::-moz-range-thumb {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--accent);
  border: 2px solid #fff;
  box-shadow: 0 1px 6px rgba(0,0,0,0.5);
  cursor: pointer;
}
.year-range-ends {
  display: flex;
  justify-content: space-between;
  font-size: 0.66rem;
  color: var(--text-dim);
  font-weight: 700;
  margin-top: 4px;
}
.filter-count {
  font-weight: 700;
  color: var(--text-dim);
  margin-left: 6px;
  font-size: 0.65rem;
  letter-spacing: 0.3px;
}
.no-results-hint {
  color: var(--text-dim);
  font-size: 0.84rem;
  padding: 12px 0;
}

@media (max-width: 560px) {
  .person-hero-inner { flex-direction: column; align-items: center; text-align: center; }
  .person-avatar { width: 110px; height: 110px; }
  .person-controls-inner { gap: 14px; }
  .person-year-filter { max-width: 100%; min-width: 0; width: 100%; }
}

/* ═══════════════════════════════════════════════════════════════
   THEMES
   ═══════════════════════════════════════════════════════════════ */

/* ── EASTER ─────────────────────────────────────────────────── */
[data-theme="easter"] {
  --bg:          #0e0b1a;
  --surface:     #181228;
  --surface2:    #211a35;
  --surface3:    #2c2445;
  --accent:      #f5c518;
  --accent-dim:  rgba(245, 197, 24, 0.15);
  --accent-glow: rgba(245, 197, 24, 0.32);
  --text:        #f8f0ff;
  --text-muted:  #b09acc;
  --text-dim:    #6a5088;
  --border:      rgba(255,255,255,0.08);
  --border-soft: rgba(255,255,255,0.04);
}

[data-theme="easter"] .logo {
  background: linear-gradient(125deg, #ffffff 0%, #f5e8a0 45%, #f5c518 100%);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
[data-theme="easter"] .logo span {
  background: linear-gradient(125deg, #f5c518, #fde068);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
[data-theme="easter"] .badge-rating { background: #f5c518; color: #1a1000; }
[data-theme="easter"] .rating-star   { background: #f5c518; color: #1a1000; }
[data-theme="easter"] .score-bar-fill { background: #f5c518; }
[data-theme="easter"] .toggle-btn.active {
  background: #f5c518; color: #1a1000;
  box-shadow: 0 2px 14px rgba(245,197,24,0.4);
}
[data-theme="easter"] .chip.active {
  background: #f5c518; color: #1a1000; border-color: #f5c518;
  box-shadow: 0 2px 10px rgba(245,197,24,0.35);
}
[data-theme="easter"] .search-input { caret-color: #f5c518; }
[data-theme="easter"] .topbar {
  background: rgba(14, 11, 26, 0.9);
  border-bottom-color: rgba(245,197,24,0.12);
}
[data-theme="easter"] .score-value-badge.has-filter { color: #f5c518; }
[data-theme="easter"] .vendor-chip.active,
[data-theme="easter"] .genre-chip.active {
  border-color: #f5c518; color: #f5c518; background: rgba(245,197,24,0.12);
}
[data-theme="easter"] .btn-secondary:hover,
[data-theme="easter"] .btn-watched { border-color: rgba(245,197,24,0.3); }
[data-theme="easter"] .btn-watched.active {
  background: rgba(245,197,24,0.18); border-color: rgba(245,197,24,0.5); color: #f5c518;
}

/* Easter decoration keyframe */
@keyframes eggFloat {
  0%, 100% { transform: translateY(0px) rotate(-4deg); }
  50%       { transform: translateY(-14px) rotate(4deg); }
}
.easter-egg {
  position: fixed; font-size: 2rem; pointer-events: none; z-index: 9998;
  animation: eggFloat var(--float-dur, 4s) var(--float-delay, 0s) ease-in-out infinite;
  opacity: 0.55; user-select: none;
}

/* ── CHRISTMAS ──────────────────────────────────────────────── */
[data-theme="christmas"] {
  --bg:          #070d18;
  --surface:     #0d1628;
  --surface2:    #121f38;
  --surface3:    #192848;
  --accent:      #e8312a;
  --accent-dim:  rgba(232, 49, 42, 0.18);
  --accent-glow: rgba(232, 49, 42, 0.38);
  --text:        #f0f5ff;
  --text-muted:  #8090b8;
  --text-dim:    #40526a;
  --border:      rgba(255,255,255,0.07);
  --border-soft: rgba(255,255,255,0.03);
}

[data-theme="christmas"] .logo {
  background: linear-gradient(125deg, #ffffff 0%, #ffe8e8 40%, #e8312a 100%);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
[data-theme="christmas"] .logo span {
  background: linear-gradient(125deg, #e8312a, #2d8a3e);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
[data-theme="christmas"] .topbar {
  background: rgba(7, 13, 24, 0.92);
  border-bottom-color: rgba(232,49,42,0.15);
}
[data-theme="christmas"] .toggle-btn.active {
  background: #e8312a;
  box-shadow: 0 2px 14px rgba(232,49,42,0.4);
}
[data-theme="christmas"] .chip.active {
  background: #e8312a; border-color: #e8312a;
  box-shadow: 0 2px 10px rgba(232,49,42,0.35);
}
[data-theme="christmas"] .vendor-chip.active,
[data-theme="christmas"] .genre-chip.active {
  border-color: #e8312a; color: #e8312a; background: rgba(232,49,42,0.12);
}
[data-theme="christmas"] .btn-watched.active {
  background: rgba(232,49,42,0.18); border-color: rgba(232,49,42,0.5);
}
[data-theme="christmas"] .score-value-badge.has-filter { color: #e8312a; }

/* Snowflake */
@keyframes snowfall {
  0%   { transform: translateY(-20px) translateX(0); opacity: 0; }
  8%   { opacity: 1; }
  92%  { opacity: 0.7; }
  100% { transform: translateY(105vh) translateX(var(--drift, 30px)); opacity: 0; }
}
.snowflake {
  position: fixed; border-radius: 50%; background: #fff;
  pointer-events: none; z-index: 9998; user-select: none;
  animation: snowfall var(--fall-dur, 8s) var(--fall-delay, 0s) linear infinite;
}

/* Christmas corner decoration */
@keyframes ornamentSway {
  0%, 100% { transform: rotate(-6deg); }
  50%       { transform: rotate(6deg); }
}
.xmas-ornament {
  position: fixed; font-size: 2.2rem; pointer-events: none; z-index: 9998;
  opacity: 0.65; user-select: none;
  animation: ornamentSway 3s ease-in-out infinite;
  transform-origin: top center;
}

/* ── Auth Modal ────────────────────────────────────────────────────────────── */
.auth-backdrop {
  position: fixed; inset: 0; z-index: 10000;
  background: rgba(0,0,0,.72); backdrop-filter: blur(4px);
  display: flex; align-items: center; justify-content: center; padding: 1rem;
}
.auth-modal {
  position: relative; background: var(--surface2, #1c1c24); border-radius: 16px;
  padding: 2rem 2rem 1.75rem; width: 100%; max-width: 380px;
  box-shadow: 0 24px 64px rgba(0,0,0,.6);
}
.auth-close {
  position: absolute; top: 1rem; right: 1rem;
  background: none; border: none; cursor: pointer; color: var(--text-dim, #8888a8); padding: 4px;
}
.auth-close:hover { color: var(--text, #e8e8f0); }
.auth-title { font-size: 1.35rem; font-weight: 700; margin-bottom: .35rem; }
.auth-sub   { font-size: .875rem; color: var(--text-dim, #8888a8); margin-bottom: 1.4rem; }
.auth-label { font-size: .8rem; text-transform: uppercase; letter-spacing: .06em;
              color: var(--text-dim, #8888a8); margin-bottom: .55rem; }
.auth-gender-row { display: flex; gap: .55rem; margin-bottom: 1.25rem; }
.auth-gender-btn {
  flex: 1; padding: .55rem 0; border-radius: 8px; border: 1.5px solid var(--border, #2e2e3e);
  background: none; color: var(--text, #e8e8f0); cursor: pointer; font-size: .9rem;
  transition: border-color .15s, background .15s;
}
.auth-gender-btn.active  { border-color: var(--accent, #e50914); background: rgba(229,9,20,.12); }
.auth-gender-btn:hover:not(.active) { border-color: var(--text-dim, #8888a8); }
.auth-input {
  width: 100%; padding: .65rem .85rem; border-radius: 8px;
  border: 1.5px solid var(--border, #2e2e3e); background: var(--surface, #14141a);
  color: var(--text, #e8e8f0); font-size: .95rem; margin-bottom: 1.1rem;
  outline: none;
}
.auth-input:focus { border-color: var(--accent, #e50914); }
.auth-input-code  { font-family: monospace; font-size: .82rem; letter-spacing: .03em; }
.auth-error { font-size: .83rem; color: #e55; margin-bottom: .85rem; }
.auth-btn-primary {
  width: 100%; padding: .7rem; border-radius: 8px; border: none;
  background: var(--accent, #e50914); color: #fff; font-size: .95rem; font-weight: 600;
  cursor: pointer; transition: opacity .15s; margin-bottom: .65rem;
}
.auth-btn-primary:hover:not(:disabled) { opacity: .88; }
.auth-btn-primary:disabled { opacity: .5; cursor: default; }
.auth-btn-link {
  width: 100%; background: none; border: none; color: var(--text-dim, #8888a8);
  font-size: .85rem; cursor: pointer; text-align: center; padding: .25rem;
}
.auth-btn-link:hover { color: var(--text, #e8e8f0); }
.auth-code-wrap {
  display: flex; align-items: center; gap: .6rem;
  background: var(--surface, #14141a); border-radius: 8px; padding: .6rem .85rem;
  margin-bottom: 1.25rem; border: 1.5px solid var(--border, #2e2e3e);
}
.auth-code { font-family: monospace; font-size: .78rem; color: var(--text, #e8e8f0); flex: 1; word-break: break-all; }
.auth-copy-btn {
  display: flex; align-items: center; gap: .3rem; background: none; border: none;
  color: var(--accent, #e50914); cursor: pointer; font-size: .8rem; white-space: nowrap;
}

/* ── PROFILE PAGE ── */
.profile-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1.1rem 1.25rem; margin-bottom: 1rem;
}
.profile-label {
  font-size: .75rem; font-weight: 700; letter-spacing: .06em;
  text-transform: uppercase; color: var(--text-dim); margin-bottom: .75rem;
}
.profile-code {
  font-family: monospace; font-size: .8rem; color: var(--text-muted);
  word-break: break-all; line-height: 1.5;
}
.profile-save-msg {
  font-size: .85rem; padding: .6rem .9rem; border-radius: 8px; margin-bottom: .5rem;
}
.profile-save-msg.ok { background: rgba(34,197,94,.12); color: #4ade80; }
.profile-save-msg.err { background: rgba(229,9,20,.12); color: #f87171; }
.profile-divider {
  height: 1px; background: var(--border); margin: 1.75rem 0;
}
.profile-logout-btn {
  display: flex; align-items: center; justify-content: center; gap: .5rem;
  width: 100%; padding: .7rem; border-radius: 8px;
  border: 1.5px solid var(--border); background: none;
  color: var(--text-muted); font-size: .9rem; cursor: pointer;
  transition: border-color .15s, color .15s;
}
.profile-logout-btn:hover { border-color: var(--accent); color: var(--accent); }

/* ── HOME: DEAD UNLOCK BUTTON ── */
.dead-unlock-wrap {
  display: flex; justify-content: center; align-items: center;
  gap: .6rem; padding: 18px 18px 0; flex-wrap: wrap;
}
.dead-unlock-btn {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 8px 20px; border-radius: 100px;
  background: linear-gradient(135deg, rgba(229,9,20,.15), rgba(229,9,20,.08));
  border: 1px solid rgba(229,9,20,.35);
  color: var(--text-muted); font-size: .82rem; font-weight: 700;
  text-decoration: none; letter-spacing: .3px;
  transition: background .18s, border-color .18s, color .18s;
}
.dead-unlock-btn:hover {
  background: rgba(229,9,20,.22); border-color: var(--accent); color: var(--text);
}

/* ── SHARED DECISION PAGE ── */
.du-wrap {
  max-width: 520px; margin: 0 auto; padding: 80px 20px 60px;
}

/* Entry */
.du-entry { display: flex; flex-direction: column; gap: 0; }
.du-title { font-size: 1.7rem; font-weight: 900; margin-bottom: .4rem; }
.du-sub   { color: var(--text-dim); font-size: .95rem; margin-bottom: 1.75rem; }

.du-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1.25rem; margin-bottom: 1rem;
}
.du-card-label {
  font-size: .72rem; font-weight: 700; letter-spacing: .07em; text-transform: uppercase;
  color: var(--text-dim); margin-bottom: .75rem;
}
.du-card-hint { font-size: .82rem; color: var(--text-dim); margin-bottom: 1rem; }

.du-code-display {
  font-size: 2.4rem; font-weight: 900; letter-spacing: .22em; text-align: center;
  color: var(--accent); font-family: monospace;
  background: var(--surface2); border-radius: 10px;
  padding: .75rem 1rem; margin-bottom: .75rem;
}
.du-code-input {
  width: 100%; text-align: center; font-size: 1.8rem; font-weight: 900;
  letter-spacing: .25em; font-family: monospace;
  padding: .65rem .5rem; border-radius: 10px;
  border: 1.5px solid var(--border); background: var(--surface2);
  color: var(--text); outline: none; margin-bottom: .85rem;
  transition: border-color .15s;
}
.du-code-input:focus { border-color: var(--accent); }
.du-code-input::placeholder { color: var(--text-dim); letter-spacing: .15em; }

.du-or {
  text-align: center; font-size: .78rem; color: var(--text-dim);
  position: relative; margin: .25rem 0 1rem;
}
.du-or::before, .du-or::after {
  content: ''; position: absolute; top: 50%; width: calc(50% - 70px);
  height: 1px; background: var(--border);
}
.du-or::before { left: 0; } .du-or::after { right: 0; }

.du-error { font-size: .83rem; color: #f87171; margin-bottom: .75rem; }
.du-hint  { font-size: .84rem; color: var(--text-dim); margin-top: .75rem; text-align: center; }

/* Lobby */
.du-lobby { display: flex; flex-direction: column; gap: 1rem; }
.du-participants { display: flex; flex-direction: column; gap: .55rem; margin-top: .25rem; }
.du-participant {
  display: flex; align-items: center; gap: .6rem;
  padding: .5rem .75rem; border-radius: 8px;
  background: var(--surface2); font-size: .9rem;
}
.du-participant.me { border: 1px solid rgba(229,9,20,.3); background: rgba(229,9,20,.07); }
.du-participant-label { flex: 1; }
.du-you-tag {
  font-size: .68rem; font-weight: 700; padding: 2px 8px; border-radius: 100px;
  background: var(--accent); color: #fff; letter-spacing: .04em;
}
.du-copy-btn {
  font-size: .78rem; font-weight: 700; color: var(--accent);
  background: none; border: none; cursor: pointer; padding: .2rem .4rem;
  opacity: .85; transition: opacity .15s;
}
.du-copy-btn:hover { opacity: 1; }

/* Question */
.du-question { display: flex; flex-direction: column; gap: 1rem; }
.du-progress { display: flex; gap: 6px; justify-content: center; margin-bottom: .5rem; }
.du-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--surface3); transition: background .2s;
}
.du-dot.active { background: var(--accent); box-shadow: 0 0 6px var(--accent-glow); }
.du-dot.done   { background: rgba(229,9,20,.45); }

.du-question-title { font-size: 1.35rem; font-weight: 800; line-height: 1.25; }
.du-question-sub   { font-size: .85rem; color: var(--text-dim); margin-top: -.25rem; }

.du-options { display: flex; flex-wrap: wrap; gap: .6rem; }
.du-options.single .du-option { flex: 1; min-width: calc(50% - .3rem); }
.du-option {
  padding: .65rem 1.1rem; border-radius: 10px;
  border: 1.5px solid var(--border); background: var(--surface);
  color: var(--text-muted); font-size: .88rem; font-weight: 600; cursor: pointer;
  transition: border-color .15s, background .15s, color .15s;
}
.du-option:hover:not(:disabled):not(.active) {
  border-color: rgba(255,255,255,.2); color: var(--text);
}
.du-option.active {
  border-color: var(--accent); background: rgba(229,9,20,.12); color: var(--text);
}
.du-option.other-voted:not(.active) {
  border-color: rgba(255,255,255,.18); background: rgba(255,255,255,.04);
}
.du-option.other-voted::after {
  content: ''; position: absolute; top: 5px; right: 5px;
  width: 5px; height: 5px; border-radius: 50%;
  background: rgba(255,255,255,.35);
}
.du-option:disabled { opacity: .5; cursor: default; }

/* Confirm button with integrated countdown */
.du-confirm { margin-top: .25rem; background-origin: border-box; }
.du-voted-msg {
  text-align: center; font-size: .9rem; color: var(--text-dim);
  padding: .75rem; border-radius: 8px; background: var(--surface2);
}

.du-status { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .25rem; }
.du-status-chip {
  font-size: .75rem; font-weight: 700; padding: 4px 12px; border-radius: 100px;
  transition: background .2s, color .2s;
}
.du-status-chip.waiting  { background: var(--surface2); color: var(--text-dim); }
.du-status-chip.voted    { background: rgba(229,9,20,.14); color: var(--accent); }

/* Results carousel */
.du-results { padding-top: .5rem; display: flex; flex-direction: column; align-items: center; gap: 1rem; width: 100%; }
.du-results-sub { font-size: .84rem; color: var(--text-dim); text-align: center; align-self: flex-start; padding-left: .5rem; }
.du-results-sub span + span::before { content: ' '; }

.result-carousel-container { position: relative; width: 100%; display: flex; align-items: center; gap: .3rem; }
.carousel-arrow {
  flex-shrink: 0; width: 34px; height: 34px; border-radius: 50%;
  background: var(--surface2); border: 1.5px solid var(--border);
  color: var(--text); font-size: 1.3rem; line-height: 1;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  transition: background .15s, opacity .15s; align-self: center; margin-top: -16px;
}
.carousel-arrow:hover { background: var(--surface3); }

.result-carousel {
  display: flex; gap: .75rem;
  overflow-x: auto; scroll-snap-type: x mandatory;
  padding: .25rem .5rem 1rem; width: 100%;
  -webkit-overflow-scrolling: touch; scrollbar-width: none;
}
.result-carousel::-webkit-scrollbar { display: none; }
.result-card {
  flex: 0 0 clamp(140px, 42vw, 180px);
  scroll-snap-align: start;
  display: block; text-decoration: none; color: inherit;
  background: var(--surface2); border-radius: 12px; overflow: hidden;
  transition: transform .15s;
}
.result-card:hover { transform: translateY(-3px); }
.result-poster-wrap { position: relative; }
.result-poster { width: 100%; aspect-ratio: 2/3; object-fit: cover; display: block; }
.result-info { padding: .55rem .65rem .75rem; }
.result-title {
  font-size: .82rem; font-weight: 700; line-height: 1.25; margin-bottom: .2rem;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.result-meta { font-size: .7rem; color: var(--text-dim); display: flex; align-items: center; gap: .3rem; }

/* Media-type image cards */
.du-mediatype-options { display: flex; gap: 1rem; width: 100%; }
.du-mediatype-card {
  flex: 1; position: relative; border-radius: 14px; overflow: hidden;
  aspect-ratio: 2/3; cursor: pointer; border: 2.5px solid transparent;
  background: var(--surface2); padding: 0;
  transition: border-color .2s, transform .1s;
}
.du-mediatype-card:hover:not(:disabled) { transform: scale(1.02); }
.du-mediatype-card.active { border-color: var(--accent); }
.du-mediatype-card.other-voted:not(.active) { border-color: rgba(255,255,255,.2); }
.du-mediatype-card img {
  width: 100%; height: 100%; object-fit: cover; display: block;
}
.du-mediatype-label {
  position: absolute; bottom: 0; left: 0; right: 0;
  padding: 2.5rem .75rem .85rem;
  background: linear-gradient(transparent, rgba(0,0,0,.88));
  font-size: 1rem; font-weight: 700; text-align: center; color: #fff;
}
.du-mediatype-check {
  position: absolute; top: .55rem; right: .55rem;
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--accent); color: #fff;
  font-size: .72rem; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
}
.du-mediatype-other {
  position: absolute; top: .55rem; right: .55rem;
  font-size: .55rem; color: rgba(255,255,255,.45);
  line-height: 1;
}

.du-empty {
  text-align: center; padding: 4rem 0; color: var(--text-dim);
}
.du-empty-icon { font-size: 3rem; margin-bottom: 1rem; }
.du-empty h2   { font-size: 1.3rem; font-weight: 700; margin-bottom: .5rem; color: var(--text); }
.du-empty p    { font-size: .9rem; }

/* ── Clickable result cards ───────────────────────────────────────────────── */
.result-card { cursor: pointer; transition: transform .15s, box-shadow .15s; }
.result-card:hover { transform: translateY(-3px); box-shadow: 0 8px 24px rgba(0,0,0,.4); }
.result-card.final-voted { outline: 2px solid var(--accent); outline-offset: -2px; }
.card-voted-ribbon {
  position: absolute; bottom: 0; left: 0; right: 0;
  background: var(--accent);
  color: #fff; text-align: center;
  font-size: .72rem; font-weight: 700; letter-spacing: .05em;
  padding: .32rem .25rem;
  pointer-events: none;
}
.result-card-main { cursor: pointer; display: flex; flex-direction: column; }
.result-card-main:hover .result-poster { filter: brightness(1.08); }
.card-vote-btn {
  width: 100%; padding: .38rem .5rem;
  background: var(--surface3); color: var(--text-dim);
  border: none; border-top: 1px solid var(--border);
  font-size: .72rem; font-weight: 700; letter-spacing: .04em;
  cursor: pointer; transition: background .15s, color .15s;
  border-radius: 0 0 10px 10px;
}
.card-vote-btn:hover:not(:disabled):not(.voted) { background: var(--surface2); color: var(--text); }
.card-vote-btn.voted { background: var(--accent); color: #fff; }
.card-vote-btn:disabled:not(.voted) { opacity: .4; cursor: default; }

/* ── Detail modal ─────────────────────────────────────────────────────────── */
.du-detail-overlay {
  position: fixed; inset: 0; z-index: 1000;
  background: rgba(0,0,0,.75); backdrop-filter: blur(4px);
  display: flex; align-items: center; justify-content: center;
  padding: 1rem;
  animation: fadeIn .18s ease;
}
.du-detail-modal {
  position: relative;
  background: var(--surface2);
  border-radius: 16px;
  max-width: 640px; width: 100%;
  max-height: 90vh; overflow-y: auto;
  box-shadow: 0 24px 64px rgba(0,0,0,.6);
}
.du-detail-close {
  position: absolute; top: .75rem; right: .75rem; z-index: 1;
  background: rgba(0,0,0,.5); border: none; color: #fff;
  width: 2rem; height: 2rem; border-radius: 50%;
  font-size: 1rem; cursor: pointer; display: flex; align-items: center; justify-content: center;
}
.du-detail-body {
  display: flex; gap: 1.2rem; padding: 1.2rem;
}
.du-detail-poster {
  width: 120px; min-width: 120px; height: 180px;
  object-fit: cover; border-radius: 10px; flex-shrink: 0;
}
.du-detail-info { flex: 1; display: flex; flex-direction: column; gap: .6rem; }
.du-detail-title { font-size: 1.15rem; font-weight: 700; color: var(--text); margin: 0; }
.du-detail-meta { display: flex; flex-wrap: wrap; gap: .5rem; font-size: .8rem; color: var(--text-dim); }
.du-detail-meta span { background: var(--surface3); padding: .15rem .5rem; border-radius: 4px; }
.du-detail-overview { font-size: .85rem; color: var(--text-dim); line-height: 1.5; margin: 0; }
.du-vote-btn { margin-top: auto; font-size: .9rem; padding: .55rem 1.2rem; }
.du-vote-btn.voted { background: var(--accent); }

/* ── Final results ────────────────────────────────────────────────────────── */
.du-final-results { width: 100%; }
.final-results-list { display: flex; flex-direction: column; gap: .75rem; margin-top: 1rem; }
.final-result-item {
  display: flex; align-items: center; gap: 1rem;
  background: var(--surface2); border-radius: 12px;
  padding: .75rem; cursor: pointer;
  transition: background .15s;
}
.final-result-item:hover { background: var(--surface3); }
.final-result-poster {
  width: 52px; height: 78px; object-fit: cover;
  border-radius: 6px; flex-shrink: 0;
}
.final-result-info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: .2rem; }
.final-result-title { font-size: .95rem; font-weight: 600; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.final-result-meta { font-size: .75rem; color: var(--text-dim); }
.final-result-overview { font-size: .78rem; color: var(--text-dim); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.final-result-votes { display: flex; flex-direction: column; align-items: center; flex-shrink: 0; gap: .1rem; }
.final-vote-count { font-size: 1.4rem; font-weight: 800; color: var(--accent); line-height: 1; }
.final-vote-label { font-size: .65rem; color: var(--text-dim); text-transform: uppercase; letter-spacing: .04em; }

/* ── Year range dual slider ──────────────────────────────────────────────── */
.yr-range { position: relative; padding-bottom: .5rem; }
.yr-range-track-wrap { position: relative; height: 36px; margin: .5rem 0; }
.yr-range-track {
  position: absolute; top: 50%; left: 0; right: 0;
  height: 4px; margin-top: -2px;
  background: var(--surface3); border-radius: 2px;
}
.yr-range-fill {
  position: absolute; inset: 0;
  background: var(--accent); border-radius: 2px;
}
.yr-range-input {
  position: absolute; top: 50%; width: 100%;
  height: 0; margin: 0; padding: 0;
  pointer-events: none;
  background: transparent;
  -webkit-appearance: none;
  appearance: none;
  outline: none;
}
.yr-range-input::-webkit-slider-thumb {
  pointer-events: all;
  -webkit-appearance: none;
  width: 20px; height: 20px;
  border-radius: 50%;
  background: var(--accent);
  border: 2px solid #fff;
  box-shadow: 0 2px 6px rgba(0,0,0,.35);
  cursor: pointer;
}
.yr-range-input::-moz-range-thumb {
  pointer-events: all;
  width: 20px; height: 20px;
  border-radius: 50%;
  background: var(--accent);
  border: 2px solid #fff;
  box-shadow: 0 2px 6px rgba(0,0,0,.35);
  cursor: pointer;
}
.yr-range-input:disabled::-webkit-slider-thumb { opacity: .5; cursor: default; }
.yr-range-input:disabled::-moz-range-thumb    { opacity: .5; cursor: default; }
.yr-range-labels {
  display: flex; justify-content: space-between; align-items: center;
  font-size: 1rem; font-weight: 700; color: var(--text);
}
.yr-dash { color: var(--text-dim); font-weight: 400; }

/* ── Spinner ─────────────────────────────────────────────────────────────── */
.spin-btn {
  width: auto; padding: .65rem 1.6rem; font-size: .9rem; margin-top: .75rem;
  animation: pulse-btn 1.8s ease-in-out infinite;
}
@keyframes pulse-btn {
  0%, 100% { box-shadow: 0 0 0 0 rgba(229,9,20,.4); }
  50%       { box-shadow: 0 0 0 8px rgba(229,9,20,0); }
}
.spin-highlight {
  background: var(--accent) !important;
  transform: scale(1.03);
  box-shadow: 0 0 0 2px var(--accent);
  transition: background .05s;
}
.spin-winner {
  background: rgba(229,9,20,.18) !important;
  box-shadow: 0 0 0 2px var(--accent);
  transform: scale(1.02);
}
.spin-winner-announce {
  margin-top: .75rem; padding: .75rem 1.25rem;
  background: linear-gradient(135deg,rgba(229,9,20,.2),rgba(229,9,20,.05));
  border: 1px solid rgba(229,9,20,.4);
  border-radius: 12px; text-align: center;
  font-size: 1.05rem; font-weight: 700; color: var(--text);
  animation: fadeIn .4s ease;
}

/* ── Mood selector ────────────────────────────────────────────── */
.du-mood-grid {
  display: grid; grid-template-columns: repeat(3,1fr);
  gap: .55rem; width: 100%; margin: .75rem 0;
}
.du-mood-btn {
  display: flex; flex-direction: column; align-items: center; gap: .25rem;
  padding: .85rem .4rem; border-radius: 12px;
  border: 1.5px solid var(--border); background: var(--surface2);
  cursor: pointer; transition: border-color .15s, background .15s, transform .1s;
}
.du-mood-btn:hover { border-color: var(--border-light); background: var(--surface3); }
.du-mood-btn.active { border-color: var(--accent); background: rgba(229,9,20,.1); }
.du-mood-btn:active { transform: scale(.95); }
.du-mood-btn .mood-emoji { font-size: 1.7rem; line-height: 1; }
.du-mood-btn .mood-label { font-size: .72rem; font-weight: 600; color: var(--text-dim); }
.du-mood-btn.active .mood-label { color: var(--accent); }

/* ── Swipe card stack ─────────────────────────────────────────── */
.swipe-stack {
  position: relative; width: 100%;
  max-width: 300px; margin: 0 auto; aspect-ratio: 2/3;
  overflow: hidden; /* clip animated cards so they can't cover buttons below */
}
.swipe-card {
  position: absolute; inset: 0; border-radius: 16px;
  overflow: hidden; box-shadow: 0 8px 32px rgba(0,0,0,.5);
}
.swipe-card.back-card {
  transform: scale(.94) translateY(10px);
  z-index: 0; pointer-events: none;
}
.swipe-card.front-card { z-index: 1; }
.swipe-card.leaving-left {
  transform: translateX(-130%) rotate(-28deg); opacity: 0;
  transition: transform .32s cubic-bezier(.4,0,.2,1), opacity .32s;
}
.swipe-card.leaving-right {
  transform: translateX(130%) rotate(28deg); opacity: 0;
  transition: transform .32s cubic-bezier(.4,0,.2,1), opacity .32s;
}
.swipe-card img { width: 100%; height: 100%; object-fit: cover; display: block; }
.swipe-card-overlay {
  position: absolute; bottom: 0; left: 0; right: 0;
  padding: 3.5rem 1rem 1rem;
  background: linear-gradient(transparent, rgba(0,0,0,.85) 60%);
}
.swipe-card-title {
  font-size: 1.1rem; font-weight: 800; color: #fff;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.swipe-card-meta { font-size: .78rem; color: rgba(255,255,255,.65); margin-top: .2rem; }
.swipe-no-stamp {
  position: absolute; top: 24px; left: 14px;
  font-size: .88rem; font-weight: 900; letter-spacing: .1em;
  color: #f87171; border: 2.5px solid #f87171;
  padding: .18rem .5rem; border-radius: 6px;
  transform: rotate(-18deg); opacity: 0; transition: opacity .12s;
  pointer-events: none; z-index: 2;
}
.swipe-yes-stamp {
  position: absolute; top: 24px; right: 14px;
  font-size: .88rem; font-weight: 900; letter-spacing: .1em;
  color: #4ade80; border: 2.5px solid #4ade80;
  padding: .18rem .5rem; border-radius: 6px;
  transform: rotate(18deg); opacity: 0; transition: opacity .12s;
  pointer-events: none; z-index: 2;
}
.swipe-card.hint-no  .swipe-no-stamp  { opacity: 1; }
.swipe-card.hint-yes .swipe-yes-stamp { opacity: 1; }
.match-score-badge {
  display: inline-block; padding: .14rem .42rem; border-radius: 999px;
  font-size: .68rem; font-weight: 700; margin-top: .3rem;
  background: rgba(255,255,255,.12); color: rgba(255,255,255,.7);
}
.match-score-badge.high { background: rgba(74,222,128,.2); color: #4ade80; }
.match-score-badge.mid  { background: rgba(251,191,36,.2);  color: #fbbf24; }
.swipe-progress {
  text-align: center; font-size: .85rem;
  color: var(--text-dim); margin: .5rem 0 .4rem;
}
.swipe-buttons {
  display: flex; gap: 2.5rem; justify-content: center; margin: .65rem 0 .2rem;
  position: relative; z-index: 2; /* above swipe card z-index:1 */
}
.swipe-btn-no, .swipe-btn-yes {
  width: 58px; height: 58px; border-radius: 50%; border: 2px solid;
  font-size: 1.35rem; display: flex; align-items: center; justify-content: center;
  cursor: pointer; background: transparent;
  transition: transform .12s, box-shadow .12s;
}
.swipe-btn-no  { border-color: #f87171; color: #f87171; }
.swipe-btn-no:hover:not(:disabled)  { background: rgba(248,113,113,.12); transform: scale(1.1); }
.swipe-btn-yes { border-color: #4ade80; color: #4ade80; }
.swipe-btn-yes:hover:not(:disabled) { background: rgba(74,222,128,.12); transform: scale(1.1); }
.swipe-btn-no:disabled, .swipe-btn-yes:disabled { opacity: .35; cursor: default; }
.swipe-keyboard-hint { text-align: center; font-size: .72rem; color: var(--text-dim); opacity: .45; }
.swipe-done-msg { text-align: center; padding: 1rem 0; }

/* ── Swipe toast: other user's vote pill — top-left of poster ── */
.swipe-toast {
  position: absolute; top: 8px; left: 8px; z-index: 10;
  display: inline-flex; align-items: center; gap: .35rem;
  max-width: calc(100% - 16px);
  padding: .28rem .55rem; border-radius: 999px;
  background: rgba(0,0,0,.72); backdrop-filter: blur(6px);
  animation: toast-in .18s ease;
  pointer-events: none; overflow: hidden;
}
.swipe-toast.toast-yes { box-shadow: 0 0 0 1px rgba(74,222,128,.4); }
.swipe-toast.toast-no  { box-shadow: 0 0 0 1px rgba(255,255,255,.15); }
.toast-body { display: flex; align-items: baseline; gap: .3rem; min-width: 0; }
.toast-label   { font-size: .68rem; color: rgba(255,255,255,.55); font-weight: 700; flex-shrink: 0; }
.toast-verdict { font-size: .72rem; flex-shrink: 0; }
.toast-title   { font-size: .75rem; font-weight: 700; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@keyframes toast-in { from { opacity: 0; transform: translateY(-3px) scale(.97); } to { opacity: 1; transform: none; } }

/* ── Reaction bubbles (inside .swipe-stack) ───────────────────── */
.reaction-wrap {
  position: absolute; inset: 0; pointer-events: none; z-index: 10;
  overflow: hidden; /* keep bubbles within the card bounds */
}
.reaction-bubble {
  position: absolute; font-size: 2rem; bottom: 60px;
  transform: translateX(-50%);
  pointer-events: none;
  animation: bubble-rise 2.2s ease-out forwards;
}
@keyframes bubble-rise {
  0%   { opacity: 1; transform: translateX(-50%) translateY(0) scale(1); }
  100% { opacity: 0; transform: translateX(-50%) translateY(-90px) scale(1.6); }
}

/* ── Match score in final results ─────────────────────────────── */
.final-result-score {
  font-size: .7rem; font-weight: 700; padding: .1rem .38rem;
  border-radius: 999px; margin-top: .2rem; align-self: flex-start;
  background: rgba(255,255,255,.07); color: var(--text-dim);
}
.final-result-score.high { background: rgba(74,222,128,.14); color: #4ade80; }
.final-result-score.mid  { background: rgba(251,191,36,.14);  color: #fbbf24; }

/* ── Final results action row ─────────────────────────────────── */
.final-actions {
  display: flex; flex-direction: column; align-items: center;
  gap: .6rem; margin-top: 1.5rem;
}
.rematch-btn { width: auto; padding: .75rem 2.2rem; }
.final-restart-btn {
  background: none; border: none; color: var(--text-dim);
  font-size: .82rem; cursor: pointer; opacity: .65;
  transition: opacity .15s;
}
.final-restart-btn:hover { opacity: 1; }

@media (min-width: 768px) {
  .du-wrap { padding-top: 90px; }
  .du-options.single .du-option { flex: none; }
  .du-detail-poster { width: 160px; min-width: 160px; height: 240px; }
}

/* ── COLLECTIONS ROW ── */
.collections-scroll {
  display: flex; gap: 12px; padding: 0 18px 24px;
  overflow-x: auto; scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch; scrollbar-width: none;
}
.collections-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px; padding-bottom: 2rem;
}
.collections-scroll::-webkit-scrollbar { display: none; }

.collection-card {
  flex: 0 0 min(240px, calc(100vw - 72px));
  border-radius: var(--radius-lg); overflow: hidden; position: relative;
  scroll-snap-align: start; cursor: pointer; text-decoration: none; color: inherit;
  background: var(--surface2); box-shadow: 0 4px 20px rgba(0,0,0,0.4);
  transition: transform 0.26s ease, box-shadow 0.26s ease;
}
.collection-card:hover { transform: scale(1.04); box-shadow: 0 12px 36px rgba(0,0,0,0.55); }

.collection-img-wrap { position: relative; width: 100%; padding-top: 56.25%; }
.collection-img-wrap img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.collection-gradient {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.35) 55%, transparent 100%);
}

.collection-info { position: absolute; bottom: 0; left: 0; right: 0; padding: 10px 12px; }
.collection-name {
  font-size: 0.82rem; font-weight: 800; line-height: 1.25;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  text-shadow: 0 1px 4px rgba(0,0,0,0.7); margin-bottom: 4px;
}
.collection-count { font-size: 0.68rem; color: rgba(255,255,255,0.6); font-weight: 600; }

@media (min-width: 768px) {
  .collections-scroll { padding: 0 32px 28px; gap: 14px; }
  .collection-card { flex: 0 0 280px; }
}

/* ── COLLECTION DETAIL PAGE ── */
.col-hero {
  position: relative; width: 100%; min-height: 42vh;
  display: flex; align-items: flex-end;
  background-size: cover; background-position: center 30%;
  padding-top: 62px;
}
.col-hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to bottom,
    rgba(12,12,15,0.5) 0%, rgba(12,12,15,0.35) 35%,
    rgba(12,12,15,0.85) 70%, rgba(12,12,15,1) 100%);
}
.col-hero-content {
  position: relative; z-index: 1; width: 100%; padding: 24px 20px 32px;
}
.col-hero-title {
  font-size: 2rem; font-weight: 900; letter-spacing: -1px; line-height: 1.1;
  margin-bottom: 12px; text-shadow: 0 2px 12px rgba(0,0,0,0.6);
}
.col-hero-meta { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }
.col-hero-overview {
  font-size: 0.83rem; color: rgba(255,255,255,0.72); line-height: 1.55;
  max-width: 560px;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}

.card-meta { font-size: 0.72rem; color: var(--text-dim); font-weight: 600; margin-top: 2px; }

@media (min-width: 768px) {
  .col-hero { min-height: 52vh; }
  .col-hero-content { padding: 32px 32px 40px; }
  .col-hero-title { font-size: 2.8rem; }
}

/* ── ADMIN: LOGIN ── */
.admin-login-wrap {
  min-height: 100vh; display: flex; align-items: center; justify-content: center;
  padding: 24px 18px; background: var(--bg);
}
.admin-login-card {
  width: min(400px, 100%); background: var(--surface);
  border: 1px solid var(--border); border-radius: var(--radius-xl);
  padding: 36px 32px; box-shadow: 0 24px 60px rgba(0,0,0,0.5);
}
.admin-login-logo {
  font-size: 1.2rem; font-weight: 900; letter-spacing: -0.6px;
  background: linear-gradient(125deg,#fff 0%,#f0f0f5 40%,#e50914 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
  margin-bottom: 4px;
}
.admin-login-logo span {
  background: linear-gradient(125deg,#e50914,#ff6b6b);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.admin-login-title {
  font-size: 1.5rem; font-weight: 900; margin-bottom: 28px; color: var(--text-muted);
  letter-spacing: -0.5px;
}
.admin-field { margin-bottom: 16px; }
.admin-label {
  display: block; font-size: 0.7rem; font-weight: 800; letter-spacing: 1px;
  text-transform: uppercase; color: var(--text-dim); margin-bottom: 8px;
}
.admin-input {
  width: 100%; padding: 11px 14px; border-radius: var(--radius);
  border: 1px solid var(--border); background: var(--surface2);
  color: var(--text); font-size: 0.95rem; outline: none;
  transition: border-color 0.18s;
}
.admin-input:focus { border-color: rgba(229,9,20,0.5); }
.admin-login-error {
  font-size: 0.8rem; color: var(--accent); font-weight: 700; margin-bottom: 14px;
}
.admin-login-btn {
  width: 100%; padding: 12px; border-radius: var(--radius); border: none;
  background: var(--accent); color: #fff; font-size: 0.9rem; font-weight: 800;
  cursor: pointer; transition: opacity 0.18s, transform 0.18s;
}
.admin-login-btn:hover:not(:disabled) { opacity: 0.88; transform: translateY(-1px); }
.admin-login-btn:disabled { opacity: 0.4; pointer-events: none; }

/* ── ADMIN: MAIN ── */
.admin-topbar {
  position: sticky; top: 0; z-index: 100; height: 58px;
  display: flex; align-items: center; justify-content: space-between; padding: 0 24px;
  background: rgba(12,12,15,0.92); backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}
.admin-badge {
  font-size: 0.62rem; font-weight: 900; letter-spacing: 1.2px; text-transform: uppercase;
  background: rgba(229,9,20,0.18); color: var(--accent);
  border: 1px solid rgba(229,9,20,0.35); border-radius: 100px;
  padding: 2px 8px; margin-left: 8px; vertical-align: middle;
  -webkit-text-fill-color: var(--accent);
}
.admin-logout-btn {
  font-size: 0.8rem; font-weight: 700; color: var(--text-muted);
  background: none; border: 1px solid var(--border); border-radius: 100px;
  padding: 6px 16px; cursor: pointer; transition: all 0.18s;
}
.admin-logout-btn:hover { border-color: rgba(255,255,255,0.18); color: var(--text); }

.admin-main { max-width: 960px; margin: 0 auto; padding: 28px 18px 80px; }

.admin-section { margin-bottom: 36px; }
.admin-section-title {
  font-size: 0.7rem; font-weight: 900; letter-spacing: 1.2px; text-transform: uppercase;
  color: var(--text-dim); margin-bottom: 16px;
}
.admin-section-head { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; }
.admin-count {
  font-size: 0.72rem; font-weight: 700; color: var(--text-dim);
  background: var(--surface2); border: 1px solid var(--border);
  border-radius: 100px; padding: 2px 10px;
}

.admin-stats-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px;
}
@media (min-width: 560px) { .admin-stats-grid { grid-template-columns: repeat(4, 1fr); } }

.admin-stat-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 18px 16px; text-align: center;
}
.admin-stat-value { font-size: 2rem; font-weight: 900; letter-spacing: -1px; color: var(--text); }
.admin-stat-label { font-size: 0.7rem; font-weight: 700; color: var(--text-dim); margin-top: 4px; }

.admin-content-row {
  display: flex; flex-wrap: wrap; gap: 12px;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 16px 18px;
}
.admin-info-item { display: flex; align-items: center; gap: 12px; }
.admin-info-label {
  font-size: 0.7rem; font-weight: 800; text-transform: uppercase;
  letter-spacing: 0.8px; color: var(--text-dim);
}
.admin-provider-badge {
  font-size: 0.8rem; font-weight: 800; padding: 4px 12px; border-radius: 100px;
  background: var(--surface3); border: 1px solid var(--border); color: var(--text);
}
.admin-action-btn {
  font-size: 0.8rem; font-weight: 700; padding: 6px 14px; border-radius: 100px;
  background: none; border: 1px solid var(--border); color: var(--text-muted);
  cursor: pointer; transition: all 0.18s;
}
.admin-action-btn:hover:not(:disabled) { border-color: rgba(229,9,20,0.5); color: var(--text); }
.admin-action-btn:disabled { opacity: 0.5; pointer-events: none; }
.admin-flush-ok { font-size: 0.8rem; font-weight: 700; color: #22c55e; }

.admin-loading { color: var(--text-dim); font-size: 0.88rem; padding: 24px 0; }
.admin-empty { color: var(--text-dim); font-size: 0.88rem; padding: 24px 0; }

.admin-table-wrap {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  overflow: hidden; overflow-x: auto;
}
.admin-table { width: 100%; border-collapse: collapse; font-size: 0.82rem; }
.admin-table thead { background: var(--surface2); }
.admin-table th {
  padding: 11px 16px; text-align: left; font-size: 0.65rem; font-weight: 900;
  letter-spacing: 1px; text-transform: uppercase; color: var(--text-dim);
  border-bottom: 1px solid var(--border); white-space: nowrap;
}
.admin-table td {
  padding: 12px 16px; border-bottom: 1px solid var(--border-soft);
  color: var(--text); vertical-align: middle;
}
.admin-table tbody tr:last-child td { border-bottom: none; }
.admin-table tbody tr:hover { background: var(--surface2); }
.admin-row-danger td { background: rgba(229,9,20,0.06); }
.admin-id-cell { font-family: monospace; font-size: 0.78rem; color: var(--text-muted); }
.admin-actions-cell { white-space: nowrap; text-align: right; }

.admin-delete-btn {
  font-size: 0.75rem; font-weight: 700; padding: 4px 12px; border-radius: 100px;
  background: none; border: 1px solid rgba(229,9,20,0.25); color: rgba(229,9,20,0.7);
  cursor: pointer; transition: all 0.18s;
}
.admin-delete-btn:hover { background: rgba(229,9,20,0.1); border-color: rgba(229,9,20,0.5); color: var(--accent); }
.admin-confirm-text { font-size: 0.75rem; font-weight: 700; color: var(--accent); margin-right: 8px; }
.admin-confirm-btn {
  font-size: 0.75rem; font-weight: 700; padding: 4px 12px; border-radius: 100px;
  background: var(--accent); border: none; color: #fff; cursor: pointer;
  margin-right: 4px; transition: opacity 0.18s;
}
.admin-confirm-btn:hover { opacity: 0.85; }
.admin-cancel-btn {
  font-size: 0.75rem; font-weight: 700; padding: 4px 12px; border-radius: 100px;
  background: none; border: 1px solid var(--border); color: var(--text-muted);
  cursor: pointer; transition: all 0.18s;
}
.admin-cancel-btn:hover { border-color: rgba(255,255,255,0.18); color: var(--text); }

/* ── DEAD UNLOCK: FINAL RESULTS EXTRAS ────────────────────────────────────── */

.show-more-btn {
  display: block; width: 100%; margin: .75rem 0;
  padding: .65rem 1rem; border-radius: var(--radius);
  background: var(--surface2); border: 1px solid var(--border);
  color: var(--text-muted); font-size: .85rem; font-weight: 600;
  cursor: pointer; transition: all .18s; text-align: center;
}
.show-more-btn:hover { background: var(--surface3); color: var(--text); border-color: rgba(255,255,255,.12); }

.tie-actions {
  display: flex; gap: .6rem; flex-wrap: wrap; margin: .75rem 0;
}
.tie-actions .spin-btn { flex: 1; min-width: 160px; }

.bomb-start-btn {
  flex: 1; min-width: 130px;
  padding: .8rem 1.2rem; border-radius: var(--radius);
  background: rgba(255,140,0,.12); border: 1px solid rgba(255,140,0,.3);
  color: #ffaa33; font-size: .9rem; font-weight: 700;
  cursor: pointer; transition: all .18s;
}
.bomb-start-btn:hover { background: rgba(255,140,0,.22); border-color: rgba(255,140,0,.55); }

/* ── BOMB GAME INTRO OVERLAY ───────────────────────────────────────────────── */

.bomb-intro-overlay {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(0,0,0,.72); backdrop-filter: blur(6px);
  display: flex; align-items: center; justify-content: center;
  padding: 1.5rem;
  animation: fade-in .18s ease;
}
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }

.bomb-intro-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-xl); padding: 2rem 1.75rem;
  max-width: 360px; width: 100%;
  display: flex; flex-direction: column; align-items: center; gap: 1rem;
  text-align: center;
  animation: slide-up .22s cubic-bezier(.25,1.4,.5,1) both;
}
@keyframes slide-up {
  from { transform: translateY(24px) scale(.97); opacity: 0; }
  to   { transform: translateY(0)    scale(1);   opacity: 1; }
}

.bomb-intro-emoji { font-size: 3rem; line-height: 1; }
.bomb-intro-title { font-size: 1.4rem; font-weight: 900; letter-spacing: -0.4px; }

.bomb-intro-rules {
  list-style: none; padding: 0; margin: 0;
  display: flex; flex-direction: column; gap: .45rem;
  text-align: left; width: 100%;
}
.bomb-intro-rules li {
  font-size: .88rem; color: var(--text-muted); padding-left: 1.1rem;
  position: relative;
}
.bomb-intro-rules li::before {
  content: "·"; position: absolute; left: 0; color: var(--accent); font-weight: 900;
}

.bomb-intro-start { width: 100%; margin-top: .25rem; }
.bomb-intro-wait  { font-size: .85rem; color: var(--text-muted); }

.bomb-intro-cancel {
  font-size: .82rem; font-weight: 600; color: var(--text-dim);
  background: none; border: none; cursor: pointer; padding: .25rem;
  transition: color .15s;
}
.bomb-intro-cancel:hover { color: var(--text-muted); }

/* ── BOMB GAME ─────────────────────────────────────────────────────────────── */

.bomb-game {
  width: 100%; max-width: 420px; margin: 0 auto;
  padding: 1.25rem 1rem 2.5rem;
  display: flex; flex-direction: column; align-items: center; gap: 1.1rem;
  position: relative;
  /* Pulsing red vignette — the room feels hot */
  animation: bomb-room-breathe 1.4s ease-in-out infinite alternate;
  border-radius: var(--radius-lg);
}
@keyframes bomb-room-breathe {
  from { box-shadow: inset 0 0 0px rgba(229,9,20,0); }
  to   { box-shadow: inset 0 0 60px rgba(229,9,20,.13); }
}

/* Red flash + shake on the whole frame when bomb explodes */
.bomb-exploding-frame {
  animation: bomb-frame-flash .6s ease, bomb-frame-shake .55s ease;
}
@keyframes bomb-frame-flash {
  0%   { background: transparent; }
  15%  { background: rgba(229,9,20,.28); }
  45%  { background: rgba(229,9,20,.12); }
  100% { background: transparent; }
}
@keyframes bomb-frame-shake {
  0%,100% { transform: translateX(0) translateY(0); }
  10%     { transform: translateX(-8px) translateY(-3px); }
  22%     { transform: translateX(9px)  translateY(2px); }
  34%     { transform: translateX(-7px) translateY(-2px); }
  46%     { transform: translateX(6px)  translateY(3px); }
  58%     { transform: translateX(-4px) translateY(-1px); }
  70%     { transform: translateX(3px)  translateY(1px); }
  82%     { transform: translateX(-2px) translateY(0px); }
}

.bomb-title {
  font-size: 1.5rem; font-weight: 900; letter-spacing: -0.4px; text-align: center;
}
.bomb-hint {
  font-size: .85rem; color: var(--text-muted); text-align: center; min-height: 1.2em;
}
.bomb-hint-urgent {
  font-weight: 700; color: #ffaa33;
}

/* Player chips */
.bomb-players {
  display: flex; flex-wrap: wrap; gap: .55rem; justify-content: center; width: 100%;
}
.bomb-player-card {
  display: flex; align-items: center; gap: .4rem;
  padding: .5rem .85rem; border-radius: var(--radius);
  background: var(--surface2); border: 1px solid var(--border);
  font-size: .88rem; font-weight: 600; transition: background .2s, border-color .2s, box-shadow .2s;
}
.bomb-player-card.bomb-holder {
  background: rgba(255,80,0,.16); border-color: rgba(255,100,0,.65);
  animation: holder-card-throb .55s ease-in-out infinite alternate;
}
@keyframes holder-card-throb {
  from { box-shadow: 0 0 10px rgba(255,80,0,.3);  border-color: rgba(255,100,0,.5); }
  to   { box-shadow: 0 0 26px rgba(255,80,0,.65); border-color: rgba(255,160,0,.9); }
}
.bomb-player-card.bomb-eliminated {
  opacity: .3; filter: grayscale(1); text-decoration: line-through;
}
/* Card shakes on explosion */
.bomb-player-card.bomb-just-blew {
  border-color: rgba(229,9,20,.6); background: rgba(229,9,20,.14);
  animation: bomb-card-shake .5s ease;
}
@keyframes bomb-card-shake {
  0%,100% { transform: translateX(0) rotate(0deg); }
  15%     { transform: translateX(-7px) rotate(-3deg); }
  35%     { transform: translateX(7px)  rotate(3deg); }
  55%     { transform: translateX(-4px) rotate(-1deg); }
  75%     { transform: translateX(4px)  rotate(1deg); }
}

.bomb-emoji-icon {
  font-size: 1.2rem;
  display: inline-block;
  animation: bomb-wiggle .28s ease-in-out infinite alternate;
  transform-origin: bottom center;
}
@keyframes bomb-wiggle {
  from { transform: rotate(-14deg) scale(.92); }
  to   { transform: rotate(14deg)  scale(1.1); }
}
.bomb-out-tag {
  font-size: .63rem; font-weight: 800; color: var(--accent);
  background: rgba(229,9,20,.15); border-radius: 100px;
  padding: 1px 6px; text-transform: uppercase; letter-spacing: .5px;
}
.bomb-crown { font-size: 1rem; }
.bomb-player-card.bomb-winner-card {
  background: rgba(255,200,0,.12); border-color: rgba(255,200,0,.4);
  box-shadow: 0 0 12px rgba(255,200,0,.18);
}

/* Explosion overlay — brief, centered pop */
.bomb-explosion-overlay {
  position: absolute; inset: 0; z-index: 10;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: .35rem; pointer-events: none;
  animation: explosion-pop .55s ease forwards;
}
@keyframes explosion-pop {
  0%   { opacity: 0; transform: scale(.3) rotate(-8deg); }
  18%  { opacity: 1; transform: scale(1.35) rotate(4deg); }
  38%  { opacity: 1; transform: scale(1.1)  rotate(-2deg); }
  65%  { opacity: 1; transform: scale(1.15) rotate(1deg); }
  100% { opacity: 0; transform: scale(1.05) rotate(0deg); }
}
.bomb-explosion-emoji {
  font-size: 5rem; line-height: 1;
  filter: drop-shadow(0 0 28px rgba(255,100,0,.9))
          drop-shadow(0 0 60px rgba(229,9,20,.6));
  animation: explosion-pop .65s ease forwards, explosion-spin .65s ease forwards;
}
@keyframes explosion-spin {
  from { transform: rotate(-12deg); }
  to   { transform: rotate(8deg); }
}
.bomb-explosion-label {
  font-size: 1.1rem; font-weight: 900; color: #fff; letter-spacing: -0.2px;
  background: rgba(229,9,20,.88); padding: .35rem 1.1rem;
  border-radius: 100px; white-space: nowrap;
  box-shadow: 0 0 24px rgba(229,9,20,.6);
  animation: label-slam .35s cubic-bezier(.15,1.5,.5,1) both;
}
@keyframes label-slam {
  from { transform: scale(.5) translateY(12px); opacity: 0; }
  to   { transform: scale(1)  translateY(0);    opacity: 1; }
}

/* Single big pass button */
.bomb-pass-big {
  width: 100%; max-width: 280px;
  padding: 1rem 1.5rem; border-radius: var(--radius);
  font-size: 1.15rem; font-weight: 800; letter-spacing: -0.3px;
  border: 2px solid var(--border); background: var(--surface2);
  color: var(--text-muted); cursor: not-allowed;
  transition: all .18s;
}
.bomb-pass-big.bomb-pass-active {
  cursor: pointer;
  animation: bomb-btn-scream .45s ease-in-out infinite alternate;
}
@keyframes bomb-btn-scream {
  0%   {
    background: rgba(255,80,0,.18);
    border-color: rgba(255,100,0,.6);
    color: #ffcc66;
    box-shadow: 0 0 16px rgba(255,80,0,.3);
    transform: scale(1);
  }
  40%  {
    background: rgba(229,9,20,.22);
    border-color: rgba(229,9,20,.75);
    color: #ff8888;
    box-shadow: 0 0 32px rgba(229,9,20,.5), 0 0 64px rgba(229,9,20,.2);
    transform: scale(1.02);
  }
  100% {
    background: rgba(255,40,0,.28);
    border-color: rgba(255,60,0,.9);
    color: #ffaaaa;
    box-shadow: 0 0 44px rgba(255,40,0,.65), 0 0 80px rgba(255,40,0,.25);
    transform: scale(1.04);
  }
}
.bomb-pass-big.bomb-pass-active:hover { filter: brightness(1.15); }
.bomb-pass-big.bomb-pass-active:active { transform: scale(.97); }
.bomb-pass-big:disabled:not(.bomb-pass-active) { opacity: .45; }

/* Picking indicator (non-winners wait) */
.bomb-picking-indicator {
  display: flex; align-items: center; gap: .5rem;
  padding: .85rem 1.2rem; border-radius: var(--radius);
  background: var(--surface2); border: 1px solid var(--border);
  font-size: .9rem; font-weight: 600;
}
.bomb-picking-label { color: var(--text-muted); }
.bomb-picking-dots {
  display: flex; gap: .2rem;
}
.bomb-picking-dots span {
  font-size: 1.1rem; color: #ffcc66;
  animation: dot-blink 1.1s ease-in-out infinite;
}
.bomb-picking-dots span:nth-child(2) { animation-delay: .18s; }
.bomb-picking-dots span:nth-child(3) { animation-delay: .36s; }
@keyframes dot-blink {
  0%,100% { opacity: .15; transform: translateY(0); }
  50%     { opacity: 1;   transform: translateY(-3px); }
}

/* Movie picker grid (winner selects) */
.bomb-movie-picker {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
  gap: .65rem; width: 100%;
}
.bomb-movie-option {
  display: flex; flex-direction: column; align-items: center; gap: .35rem;
  background: var(--surface2); border: 1.5px solid var(--border);
  border-radius: var(--radius); padding: .45rem; cursor: pointer;
  transition: all .16s; text-align: center;
}
.bomb-movie-option:hover {
  border-color: rgba(229,9,20,.5); background: var(--surface3); transform: translateY(-2px);
}
.bomb-movie-option img {
  width: 100%; aspect-ratio: 2/3; object-fit: cover;
  border-radius: calc(var(--radius) - 4px);
}
.bomb-movie-option span {
  font-size: .73rem; font-weight: 600; color: var(--text);
  line-height: 1.25; max-height: 2.5em; overflow: hidden;
}

/* Winner reveal screen */
.bomb-winner-reveal {
  display: flex; flex-direction: column; align-items: center; gap: 1rem;
  text-align: center; width: 100%;
}
.bomb-winner-header { font-size: 1.4rem; font-weight: 900; letter-spacing: -0.3px; }
.bomb-winner-movie  { display: flex; flex-direction: column; align-items: center; gap: .6rem; }
.bomb-winner-poster {
  width: 160px; aspect-ratio: 2/3; object-fit: cover;
  border-radius: var(--radius); box-shadow: 0 8px 32px rgba(0,0,0,.6);
}
.bomb-winner-title { font-size: 1.15rem; font-weight: 800; letter-spacing: -0.3px; }
.bomb-winner-meta  { font-size: .82rem; color: var(--text-muted); }
.bomb-winner-cta   { font-size: .85rem; color: var(--text-dim); }

/* ── FINAL RESULTS: PODIUM ──────────────────────────────────────────────── */
.podium-heading {
  font-size: 1.25rem; font-weight: 900; letter-spacing: -0.4px;
  text-align: center; margin-bottom: .75rem;
}
.podium {
  display: flex; align-items: flex-end; justify-content: center;
  gap: .75rem; width: 100%; margin-bottom: 1rem;
}
.podium-slot {
  display: flex; flex-direction: column; align-items: center; gap: .35rem;
  cursor: pointer; transition: transform .15s;
  text-align: center;
}
.podium-slot:hover { transform: translateY(-3px); }
.podium-first  { order: 2; }
.podium-second { order: 1; }
.podium-third  { order: 3; }
.podium-rank {
  font-size: .8rem; font-weight: 800; color: var(--text-muted);
  background: var(--surface3); border-radius: 50%;
  width: 22px; height: 22px; display: flex; align-items: center; justify-content: center;
}
.podium-rank-first {
  font-size: 1rem; background: rgba(255, 200, 0, 0.18); color: #ffd700;
  width: 26px; height: 26px;
}
.podium-poster {
  border-radius: var(--radius); object-fit: cover;
  box-shadow: 0 6px 24px rgba(0,0,0,.55);
}
.podium-second .podium-poster { width: 90px; aspect-ratio: 2/3; }
.podium-first  .podium-poster { width: 126px; aspect-ratio: 2/3; box-shadow: 0 8px 36px rgba(229,9,20,.25), 0 6px 24px rgba(0,0,0,.65); }
.podium-third  .podium-poster { width: 76px; aspect-ratio: 2/3; }
.podium-title {
  font-size: .75rem; font-weight: 700; color: var(--text);
  max-width: 90px; line-height: 1.25; overflow: hidden;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
}
.podium-title-first { font-size: .85rem; max-width: 126px; }
.podium-meta { font-size: .68rem; color: var(--text-muted); }

.watch-btn {
  width: 100%; margin-top: .5rem; font-size: 1rem; font-weight: 800;
  letter-spacing: -0.2px;
}

/* ── FINAL RESULTS: SPIN WINNER REVEAL ─────────────────────────────────── */
.spin-winner-reveal {
  display: flex; flex-direction: column; align-items: center; gap: .6rem;
  text-align: center; width: 100%;
}
.spin-winner-poster {
  width: 150px; aspect-ratio: 2/3; object-fit: cover;
  border-radius: var(--radius); box-shadow: 0 8px 32px rgba(0,0,0,.6);
}
.spin-winner-title { font-size: 1.1rem; font-weight: 800; letter-spacing: -0.3px; }
.spin-winner-meta  { font-size: .82rem; color: var(--text-muted); }

/* ── FINAL RESULTS: NO CLEAR WINNER — DECIDE CARDS ─────────────────────── */
.decide-cards {
  display: flex; gap: .75rem; width: 100%; margin-top: .5rem;
}
.decide-card {
  flex: 1; display: flex; flex-direction: column; align-items: center;
  gap: .3rem; padding: .9rem .6rem;
  background: var(--surface2); border: 1.5px solid var(--border);
  border-radius: var(--radius-lg); cursor: pointer; transition: all .18s;
  text-align: center; color: var(--text);
}
.decide-card:hover:not(:disabled) {
  border-color: rgba(255,255,255,0.2); background: var(--surface3);
  transform: translateY(-2px); box-shadow: 0 6px 20px rgba(0,0,0,.3);
}
.decide-card-bomb:hover:not(:disabled) {
  border-color: rgba(229,9,20,.45); box-shadow: 0 6px 20px rgba(229,9,20,.18);
}
.decide-card-emoji { font-size: 1.75rem; line-height: 1; }
.decide-card-title { font-size: .85rem; font-weight: 800; letter-spacing: -0.2px; }
.decide-card-desc  { font-size: .72rem; color: var(--text-muted); line-height: 1.35; }

/* ── FINAL RESULTS: NON-HOST WAITING ────────────────────────────────────── */
.decide-waiting {
  display: flex; flex-direction: column; align-items: center; gap: .5rem;
  padding: 1.1rem; border-radius: var(--radius-lg);
  background: var(--surface2); border: 1.5px solid var(--border);
  text-align: center; color: var(--text-muted); font-size: .88rem;
  width: 100%; margin-top: .5rem;
}
.decide-waiting-icon { font-size: 1.6rem; }

/* ── AUTH: NICKNAME ROW ─────────────────────────────────────────────────── */
.auth-nickname-row {
  display: flex; gap: .5rem; align-items: center; width: 100%; margin-bottom: 1rem;
}
.auth-input-nickname { flex: 1; margin-bottom: 0; }
.auth-nickname-random {
  flex-shrink: 0; width: 40px; height: 40px;
  background: var(--surface3); border: 1.5px solid var(--border);
  border-radius: var(--radius); font-size: 1.1rem; cursor: pointer;
  transition: background .15s;
}
.auth-nickname-random:hover { background: var(--surface2); }

/* ── WATCHLIST: SHARED ELEMENTS ─────────────────────────────────────────── */
.wl-loading {
  display: flex; align-items: center; justify-content: center;
  height: 40vh; color: var(--text-dim);
}
.provider-down-banner {
  display: flex; align-items: center; gap: .6rem;
  background: #2a1a1a; border: 1px solid #7a2020;
  color: #f08080; border-radius: 10px;
  padding: .75rem 1rem; margin: 80px 18px 0;
  font-size: .9rem; line-height: 1.4;
}
.wl-gate {
  display: flex; flex-direction: column; align-items: center;
  gap: 1.25rem; padding: 4rem 0; text-align: center;
}
.wl-gate-msg { font-size: 1.05rem; color: var(--text-dim); }
.wl-dot {
  display: inline-block; width: 3px; height: 3px;
  border-radius: 50%; background: var(--text-dim);
  margin: 0 .4rem; vertical-align: middle;
}

/* ── WATCHLIST: MY LISTS PAGE ───────────────────────────────────────────── */
.wl-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 1.5rem; flex-wrap: wrap; gap: .75rem;
}
.wl-page-title { font-size: 1.6rem; font-weight: 700; }
.wl-page-nick  { font-weight: 400; color: var(--text-muted); }
.wl-create-btn {
  padding: .55rem 1.25rem; background: var(--accent); color: #fff;
  border: none; border-radius: var(--radius); font-size: .88rem;
  font-weight: 700; cursor: pointer; transition: opacity .15s;
}
.wl-create-btn:hover { opacity: .85; }

.wl-create-form {
  background: var(--surface2); border: 1.5px solid var(--border);
  border-radius: var(--radius-lg); padding: 1rem; margin-bottom: 1.25rem;
}
.wl-create-actions {
  display: flex; gap: .65rem; margin-top: .75rem;
}
.wl-cancel-btn {
  padding: .65rem 1.25rem; background: var(--surface3); border: 1.5px solid var(--border);
  border-radius: var(--radius); font-size: .88rem; color: var(--text-muted);
  cursor: pointer; transition: background .15s;
}
.wl-cancel-btn:hover { background: var(--surface2); }

.wl-empty {
  display: flex; flex-direction: column; align-items: center;
  gap: .65rem; padding: 3rem 0; text-align: center; color: var(--text-dim);
}
.wl-empty-icon { font-size: 2.5rem; }

.wl-list { display: flex; flex-direction: column; gap: .65rem; }
.wl-card {
  display: flex; align-items: center; justify-content: space-between;
  background: var(--surface2); border: 1.5px solid var(--border);
  border-radius: var(--radius-lg); padding: 1rem 1.1rem;
  cursor: pointer; transition: all .16s;
}
.wl-card:hover { border-color: rgba(255,255,255,.15); transform: translateX(2px); }
.wl-card-left { display: flex; flex-direction: column; gap: .25rem; }
.wl-card-name { font-size: 1rem; font-weight: 700; }
.wl-card-meta { font-size: .78rem; color: var(--text-muted); display: flex; align-items: center; }
.wl-badge-owner {
  font-size: .7rem; font-weight: 700; padding: .15rem .5rem;
  background: rgba(229,9,20,.18); color: var(--accent);
  border-radius: 4px; margin-right: .4rem;
}
.wl-badge-joined {
  font-size: .72rem; color: var(--text-muted);
}
.wl-chevron { width: 16px; height: 16px; color: var(--text-dim); flex-shrink: 0; }

/* ── WATCHLIST: LIST DETAIL PAGE ────────────────────────────────────────── */
.wl-detail-header {
  display: flex; align-items: flex-start; justify-content: space-between;
  gap: 1rem; margin-bottom: 1.25rem; flex-wrap: wrap;
}
.wl-detail-title { font-size: 1.5rem; font-weight: 800; letter-spacing: -0.4px; margin-bottom: .3rem; }
.wl-detail-meta  { font-size: .82rem; color: var(--text-muted); display: flex; align-items: center; }
.wl-detail-actions { display: flex; gap: .5rem; flex-wrap: wrap; flex-shrink: 0; }

.wl-action-btn {
  padding: .45rem 1rem; font-size: .82rem; font-weight: 700;
  border-radius: var(--radius); cursor: pointer; transition: all .15s;
  background: var(--accent); color: #fff; border: none;
}
.wl-action-btn:hover:not(:disabled) { opacity: .85; }
.wl-action-secondary {
  background: var(--surface3); color: var(--text);
  border: 1.5px solid var(--border);
}
.wl-action-secondary:hover { background: var(--surface2); border-color: rgba(255,255,255,.15); }
.wl-action-danger {
  background: transparent; color: var(--accent);
  border: 1.5px solid rgba(229,9,20,.3);
}
.wl-action-danger:hover { background: rgba(229,9,20,.1); border-color: var(--accent); }

.wl-confirm {
  background: var(--surface2); border: 1.5px solid rgba(229,9,20,.3);
  border-radius: var(--radius-lg); padding: .9rem 1.1rem;
  margin-bottom: 1.1rem; font-size: .88rem; color: var(--text-muted);
}
.wl-confirm p { margin-bottom: .65rem; }
.wl-confirm-btns { display: flex; gap: .5rem; }

.wl-join-banner {
  display: flex; align-items: center; justify-content: space-between;
  gap: .75rem; background: var(--surface2); border: 1.5px solid var(--border);
  border-radius: var(--radius-lg); padding: .85rem 1.1rem;
  margin-bottom: 1.1rem; font-size: .88rem; color: var(--text-muted);
  flex-wrap: wrap;
}

.wl-add-section { margin-bottom: 1.25rem; }
.wl-search-row { display: flex; gap: .5rem; margin-bottom: .6rem; }
.wl-search-row .auth-input { flex: 1; margin-bottom: 0; }

.wl-search-results {
  background: var(--surface2); border: 1.5px solid var(--border);
  border-radius: var(--radius-lg); overflow: hidden;
}
.wl-search-item {
  display: flex; align-items: center; gap: .75rem;
  padding: .6rem .85rem; cursor: pointer; transition: background .12s;
}
.wl-search-item:hover { background: var(--surface3); }
.wl-search-item + .wl-search-item { border-top: 1px solid var(--border-soft); }
.wl-search-poster { width: 34px; aspect-ratio: 2/3; object-fit: cover; border-radius: 4px; flex-shrink: 0; }
.wl-search-info { flex: 1; min-width: 0; }
.wl-search-title { font-size: .88rem; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wl-search-meta  { font-size: .74rem; color: var(--text-muted); }
.wl-search-add   { font-size: 1.2rem; font-weight: 700; color: var(--accent); flex-shrink: 0; }

.wl-entries { display: flex; flex-direction: column; gap: .75rem; }
.wl-entry {
  display: flex; align-items: center; gap: .85rem;
  background: var(--surface2); border: 1.5px solid var(--border);
  border-radius: var(--radius-lg); padding: .65rem .85rem; overflow: hidden;
}
.wl-entry-poster-wrap { flex-shrink: 0; }
.wl-entry-poster {
  width: 46px; aspect-ratio: 2/3; object-fit: cover;
  border-radius: calc(var(--radius) - 4px);
}
.wl-entry-info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: .15rem; }
.wl-entry-title {
  font-size: .92rem; font-weight: 700; color: var(--text);
  text-decoration: none; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.wl-entry-title:hover { color: var(--accent); }
.wl-entry-meta  { font-size: .76rem; color: var(--text-muted); }
.wl-entry-added { font-size: .72rem; color: var(--text-dim); }
.wl-entry-remove {
  flex-shrink: 0; width: 30px; height: 30px; display: flex; align-items: center; justify-content: center;
  background: transparent; border: 1.5px solid var(--border);
  border-radius: 50%; cursor: pointer; color: var(--text-dim); transition: all .14s;
}
.wl-entry-remove:hover { color: var(--accent); border-color: rgba(229,9,20,.4); background: rgba(229,9,20,.08); }

/* Watched marker button on list entries */
.wl-watched-btn {
  flex-shrink: 0; width: 30px; height: 30px; display: flex; align-items: center; justify-content: center;
  background: transparent; border: 1.5px solid var(--border);
  border-radius: 50%; cursor: pointer; color: var(--text-dim); transition: color .14s, border-color .14s;
}
.wl-watched-btn:hover { color: #4ade80; border-color: rgba(74,222,128,.4); }
.wl-watched-btn.watched { color: #4ade80; border-color: transparent; background: transparent; }
.wl-watched-btn.watched:hover { color: #86efac; border-color: transparent; }

/* Dim watched entries */
.wl-entry-is-watched { opacity: .55; }
.wl-entry-is-watched:hover { opacity: 1; }
.wl-entry-is-watched .wl-entry-title { text-decoration: line-through; text-decoration-color: rgba(255,255,255,.3); }

/* Filter row above entries */
.wl-filter-row {
  display: flex; align-items: center; gap: .6rem;
  margin-bottom: .75rem;
}
.wl-filter-btn {
  display: inline-flex; align-items: center; gap: .4rem;
  padding: .3rem .75rem; font-size: .78rem; font-weight: 600;
  background: var(--surface2); border: 1.5px solid var(--border);
  border-radius: 20px; cursor: pointer; color: var(--text-muted); transition: all .14s;
}
.wl-filter-btn:hover { border-color: var(--accent); color: var(--text); }
.wl-filter-btn.active { border-color: #4ade80; color: #4ade80; background: rgba(74,222,128,.08); }
.wl-filter-count { font-size: .76rem; color: var(--text-dim); }
.wl-lucky-btn {
  display: inline-flex; align-items: center; gap: .4rem;
  padding: .3rem .85rem; font-size: .78rem; font-weight: 700;
  background: rgba(250,204,21,.08); border: 1.5px solid rgba(250,204,21,.35);
  border-radius: 20px; cursor: pointer; color: #fbbf24; transition: all .14s;
  white-space: nowrap;
}
.wl-lucky-btn:hover { background: rgba(250,204,21,.16); border-color: rgba(250,204,21,.65); color: #fde68a; }


/* ── List picker dropdown (Details page) ─────────────────────────── */
.list-btn-wrap { position: relative; display: inline-block; }
.list-picker-dropdown {
  position: absolute; top: calc(100% + 6px); left: 0; z-index: 60;
  background: var(--surface2); border: 1px solid var(--border);
  border-radius: var(--radius); min-width: 210px;
  padding: .35rem 0; box-shadow: 0 8px 28px rgba(0,0,0,.5);
}
.list-picker-item {
  display: flex; align-items: center; justify-content: space-between;
  width: 100%; padding: .6rem 1rem;
  background: none; border: none; color: var(--text);
  cursor: pointer; font-size: .88rem; text-align: left; gap: .75rem;
  transition: background .12s;
}
.list-picker-item:hover { background: var(--surface3); }
.list-picker-count { font-size: .72rem; color: var(--text-dim); white-space: nowrap; }

/* ── My Lists chips row (Home tab) ───────────────────────────────── */
.my-lists-chips {
  display: flex; flex-wrap: wrap; gap: .5rem;
  padding: .25rem 0 1rem;
}
.my-list-chip {
  display: inline-flex; align-items: center; gap: .4rem;
  padding: .4rem .85rem; border-radius: 20px;
  background: var(--surface2); border: 1px solid var(--border);
  color: var(--text); text-decoration: none; font-size: .82rem;
  cursor: pointer; transition: background .14s, border-color .14s;
}
.my-list-chip:hover { background: var(--surface3); border-color: var(--accent); }
.my-list-chip-count {
  background: var(--surface3); border-radius: 10px;
  padding: 1px 7px; font-size: .7rem; color: var(--text-dim);
}
.my-list-chip-manage {
  border-style: dashed; color: var(--text-dim);
}
.my-list-chip-manage:hover { color: var(--text); }
