:root {
  --bg: #050505;
  --bg-2: #0d0d0d;
  --bg-3: #1a1a1a;
  --bg-4: #242424;
  --surface: #131313;
  --border: #262626;
  --text: #f5f5f5;
  --text-dim: #9a9a9a;
  --text-muted: #5a5a5a;
  --netflix: #e50914;
  --netflix-2: #ff3b46;
  --gold: #f5c518;
  --pink: #ff2d92;
  --cyan: #00d9ff;
  --purple: #8b5cf6;
  --gradient-1: linear-gradient(135deg, #e50914 0%, #ff6b35 100%);
  --gradient-2: linear-gradient(135deg, #8b5cf6 0%, #ec4899 100%);
  --gradient-3: linear-gradient(135deg, #00d9ff 0%, #8b5cf6 100%);
  --gradient-4: linear-gradient(135deg, #f5c518 0%, #ff6b35 100%);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  min-height: 100vh;
  overflow-x: hidden;
  cursor: none;
}
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: linear-gradient(var(--netflix), var(--purple)); border-radius: 4px; }

.cursor {
  position: fixed; width: 12px; height: 12px; background: var(--netflix);
  border-radius: 50%; pointer-events: none; z-index: 10000;
  transition: width 0.2s, height 0.2s, background 0.2s;
  mix-blend-mode: difference;
  transform: translate(-50%, -50%);
}
.cursor-ring {
  position: fixed; width: 36px; height: 36px; border: 2px solid rgba(229,9,20,0.5);
  border-radius: 50%; pointer-events: none; z-index: 9999;
  transition: width 0.2s, height 0.2s, border-color 0.2s;
  transform: translate(-50%, -50%);
}
.cursor.hover { width: 24px; height: 24px; }
.cursor-ring.hover { width: 60px; height: 60px; border-color: var(--gold); }
@media (max-width: 768px) { .cursor, .cursor-ring { display: none; } body { cursor: auto; } }

#particles { position: fixed; inset: 0; z-index: 0; pointer-events: none; }
.bg-orbs { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.orb { position: absolute; border-radius: 50%; filter: blur(140px); opacity: 0.35; animation: float 20s infinite ease-in-out; }
.orb.r { background: var(--netflix); width: 600px; height: 600px; top: -150px; right: -150px; }
.orb.b { background: var(--purple); width: 700px; height: 700px; bottom: -250px; left: -200px; animation-delay: -7s; }
.orb.c { background: var(--cyan); width: 400px; height: 400px; top: 40%; left: 50%; animation-delay: -14s; opacity: 0.15; }
@keyframes float {
  0%,100% { transform: translate(0,0) scale(1); }
  33% { transform: translate(40px, -30px) scale(1.1); }
  66% { transform: translate(-30px, 40px) scale(0.95); }
}

#intro {
  position: fixed; inset: 0; background: #000; z-index: 9000;
  display: flex; align-items: center; justify-content: center; flex-direction: column;
  transition: opacity 0.8s, visibility 0.8s;
}
#intro.hide { opacity: 0; visibility: hidden; }
.intro-N {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 220px; line-height: 1; color: var(--netflix);
  text-shadow: 0 0 60px rgba(229,9,20,0.8), 0 0 120px rgba(229,9,20,0.4);
  animation: introN 2.5s ease-out forwards;
  opacity: 0;
}
@keyframes introN {
  0% { opacity: 0; transform: scale(0.3) rotateY(180deg); filter: blur(20px); }
  40% { opacity: 1; transform: scale(1.2) rotateY(0deg); filter: blur(0); }
  100% { opacity: 1; transform: scale(1); }
}
.intro-text {
  font-family: 'Bebas Neue', sans-serif;
  letter-spacing: 8px; color: var(--text-dim); margin-top: 24px;
  font-size: 14px; opacity: 0;
  animation: fadeUp 1s 1.5s ease forwards;
}
@keyframes fadeUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }

nav.top {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: linear-gradient(180deg, rgba(5,5,5,0.95) 0%, rgba(5,5,5,0));
  padding: 16px 32px;
  display: flex; align-items: center; justify-content: space-between;
  transition: background 0.3s;
}
nav.top.scrolled { background: rgba(5,5,5,0.85); backdrop-filter: blur(12px); border-bottom: 1px solid var(--border); }
.nav-logo {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 28px; letter-spacing: 3px;
  background: var(--gradient-1); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.nav-links { display: flex; gap: 8px; }
.nav-links a {
  color: var(--text-dim); text-decoration: none; font-size: 13px; font-weight: 500;
  padding: 8px 14px; border-radius: 8px; transition: all 0.2s; cursor: none;
}
.nav-links a:hover, .nav-links a.active { color: var(--text); background: var(--bg-3); }
.nav-actions { display: flex; gap: 10px; align-items: center; }
.btn-pill {
  background: var(--gradient-1); border: none; color: white; font-weight: 600;
  padding: 10px 18px; border-radius: 999px; cursor: none; font-size: 13px;
  font-family: inherit; transition: transform 0.2s, box-shadow 0.2s;
}
.btn-pill:hover { transform: scale(1.05); box-shadow: 0 8px 24px rgba(229,9,20,0.4); }
.btn-ghost {
  background: var(--bg-3); border: 1px solid var(--border); color: var(--text);
  padding: 10px 18px; border-radius: 999px; cursor: none; font-size: 13px;
  font-family: inherit; transition: all 0.2s;
}
.btn-ghost:hover { background: var(--bg-4); border-color: var(--text-dim); }
.btn-pill:disabled, .btn-ghost:disabled {
  opacity: 0.55; cursor: not-allowed; transform: none !important; box-shadow: none !important;
}
.btn-pill.btn-success {
  background: linear-gradient(135deg, #1f9d55 0%, #15803d 100%);
}
.btn-pill.btn-success:disabled { opacity: 0.85; }
@media (max-width: 768px) {
  .nav-links { display: none; }
  nav.top { padding: 12px 16px; }
}

.container { max-width: 1500px; margin: 0 auto; padding: 0 32px; position: relative; z-index: 1; }
@media (max-width: 768px) { .container { padding: 0 16px; } }

.hero {
  min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: 120px 24px 60px; position: relative;
}
.hero-eyebrow {
  display: inline-block; padding: 6px 16px; background: var(--bg-3);
  border: 1px solid var(--border); border-radius: 999px;
  color: var(--text-dim); font-size: 12px; letter-spacing: 2px; text-transform: uppercase;
  margin-bottom: 32px;
  animation: fadeUp 0.8s 0.2s ease both;
}
.hero h1 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(60px, 13vw, 180px);
  line-height: 0.9; letter-spacing: 2px;
  background: var(--gradient-1); -webkit-background-clip: text; background-clip: text; color: transparent;
  margin-bottom: 24px;
  animation: fadeUp 1s 0.4s ease both;
}
.hero h1 .accent {
  background: var(--gradient-3); -webkit-background-clip: text; background-clip: text; color: transparent;
  display: block;
}
.hero-sub {
  font-size: clamp(18px, 2.5vw, 28px); color: var(--text-dim); max-width: 700px;
  margin-bottom: 48px; font-weight: 300;
  animation: fadeUp 1s 0.7s ease both;
}
.hero-stats {
  display: flex; gap: 60px; flex-wrap: wrap; justify-content: center; margin-bottom: 60px;
  animation: fadeUp 1s 1s ease both;
}
.hero-stat { text-align: center; }
.hero-stat .num {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(40px, 7vw, 80px); line-height: 1;
  background: var(--gradient-2); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-stat .lbl { color: var(--text-dim); font-size: 12px; letter-spacing: 2px; text-transform: uppercase; margin-top: 8px; }
.hero-cta { display: flex; gap: 16px; flex-wrap: wrap; justify-content: center; animation: fadeUp 1s 1.3s ease both; }
.scroll-hint {
  position: absolute; bottom: 30px; left: 50%; transform: translateX(-50%);
  color: var(--text-muted); font-size: 12px; letter-spacing: 3px;
  animation: bob 2s infinite ease-in-out;
}
@keyframes bob { 0%,100% { transform: translate(-50%, 0); opacity: 0.5; } 50% { transform: translate(-50%, 8px); opacity: 1; } }

.upload-section { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 100px 24px; }
.upload-zone {
  background: var(--surface); border: 2px dashed var(--border);
  border-radius: 24px; padding: 80px 60px; text-align: center;
  transition: all 0.3s; cursor: none; max-width: 600px; width: 100%;
}
.upload-zone:hover, .upload-zone.drag {
  border-color: var(--netflix);
  background: linear-gradient(135deg, rgba(229,9,20,0.08), rgba(139,92,246,0.05));
  transform: scale(1.02);
}
.upload-zone .icon { font-size: 80px; margin-bottom: 24px; display: block; animation: bob 3s infinite ease-in-out; }
.upload-zone h2 { font-family: 'Bebas Neue', sans-serif; font-size: 36px; letter-spacing: 2px; margin-bottom: 12px; }
.upload-zone p { color: var(--text-dim); margin-bottom: 8px; }
.upload-zone small { color: var(--text-muted); font-size: 12px; }
.upload-zone input { display: none; }

.upload-section { flex-direction: column; gap: 20px; }
.export-help {
  max-width: 600px; width: 100%;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 16px; padding: 16px 22px;
  font-size: 13px; color: var(--text-dim);
}
.export-help summary {
  cursor: none; color: var(--text); font-weight: 600;
  padding: 4px 0; user-select: none;
}
.export-help summary:hover { color: var(--netflix); }
.export-help[open] summary { margin-bottom: 12px; padding-bottom: 12px; border-bottom: 1px solid var(--border); }
.export-help ol { padding-left: 22px; line-height: 1.7; }
.export-help ol li b { color: var(--netflix-2); }
.export-help a { color: var(--netflix); }
.export-help code { background: var(--bg); padding: 2px 6px; border-radius: 4px; font-size: 11px; color: var(--gold); }

section.block { padding: 80px 0; position: relative; }
.section-eyebrow {
  display: inline-block; color: var(--netflix); font-size: 12px; letter-spacing: 3px;
  text-transform: uppercase; margin-bottom: 12px; font-weight: 600;
}
.section-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(40px, 6vw, 72px);
  line-height: 1; margin-bottom: 12px; letter-spacing: 1px;
}
.section-title .accent { background: var(--gradient-1); -webkit-background-clip: text; background-clip: text; color: transparent; }
.section-sub { color: var(--text-dim); font-size: 16px; max-width: 600px; margin-bottom: 48px; }

.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; }
.stat-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 20px; padding: 32px; position: relative; overflow: hidden;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.stat-card::before { content: ''; position: absolute; inset: 0; background: var(--gradient-1); opacity: 0; transition: opacity 0.4s; }
.stat-card::after { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: var(--gradient-1); }
.stat-card:hover { transform: translateY(-6px); border-color: transparent; }
.stat-card:hover::before { opacity: 0.1; }
.stat-card.gradient-2::after { background: var(--gradient-2); }
.stat-card.gradient-3::after { background: var(--gradient-3); }
.stat-card.gradient-4::after { background: var(--gradient-4); }
.stat-card > * { position: relative; z-index: 1; }
.stat-card .stat-icon { font-size: 24px; margin-bottom: 12px; opacity: 0.6; }
.stat-card .stat-label { color: var(--text-dim); font-size: 11px; text-transform: uppercase; letter-spacing: 2px; margin-bottom: 12px; font-weight: 600; }
.stat-card .stat-value { font-family: 'Bebas Neue', sans-serif; font-size: 56px; line-height: 1; letter-spacing: 1px; }
.stat-card .stat-sub { color: var(--text-muted); font-size: 13px; margin-top: 8px; }

.personality {
  background: linear-gradient(135deg, var(--bg-2), var(--bg-3));
  border: 1px solid var(--border);
  border-radius: 32px; padding: 60px 48px;
  position: relative; overflow: hidden;
  display: grid; grid-template-columns: auto 1fr; gap: 48px; align-items: center;
}
@media (max-width: 768px) { .personality { grid-template-columns: 1fr; padding: 40px 28px; text-align: center; } }
.personality::before {
  content: ''; position: absolute; inset: -50%;
  background: conic-gradient(from 0deg, var(--netflix), var(--purple), var(--cyan), var(--netflix));
  opacity: 0.1; animation: spin 20s linear infinite; z-index: 0;
}
.personality > * { position: relative; z-index: 1; }
@keyframes spin { to { transform: rotate(360deg); } }
.personality-emoji { font-size: 140px; line-height: 1; filter: drop-shadow(0 0 30px rgba(229,9,20,0.4)); }
.personality h3 { font-size: 14px; letter-spacing: 3px; color: var(--gold); text-transform: uppercase; margin-bottom: 8px; }
.personality .pers-name {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(48px, 7vw, 88px); line-height: 1; letter-spacing: 2px;
  background: var(--gradient-4); -webkit-background-clip: text; background-clip: text; color: transparent;
  margin-bottom: 16px;
}
.personality .pers-desc { color: var(--text-dim); font-size: 17px; max-width: 600px; line-height: 1.6; }
.personality .pers-traits { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 24px; justify-content: flex-start; }
@media (max-width: 768px) { .personality .pers-traits { justify-content: center; } }
.pers-traits span {
  background: rgba(255,255,255,0.05); border: 1px solid var(--border);
  padding: 6px 14px; border-radius: 999px; font-size: 12px; color: var(--text-dim);
}

.ach-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 16px; }
.ach-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 16px; padding: 24px 20px; text-align: center;
  transition: all 0.3s; position: relative; overflow: hidden;
}
.ach-card.unlocked { border-color: rgba(245,197,24,0.3); }
.ach-card.unlocked::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(circle at top, rgba(245,197,24,0.15), transparent 70%);
}
.ach-card.locked { opacity: 0.4; filter: grayscale(0.8); }
.ach-card:hover.unlocked { transform: translateY(-4px); border-color: var(--gold); }
.ach-card .ach-icon { font-size: 40px; margin-bottom: 10px; position: relative; }
.ach-card .ach-name { font-weight: 700; font-size: 13px; margin-bottom: 4px; position: relative; }
.ach-card .ach-desc { color: var(--text-muted); font-size: 11px; line-height: 1.4; position: relative; }
.ach-card .ach-rarity {
  position: absolute; top: 10px; right: 10px; font-size: 9px;
  letter-spacing: 1px; color: var(--gold); font-weight: 700;
}

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.grid-3 { display: grid; grid-template-columns: 2fr 1fr; gap: 24px; }
@media (max-width: 900px) { .grid-2, .grid-3 { grid-template-columns: 1fr; } }
.chart-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 20px; padding: 28px;
}
.chart-card h3 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 26px; letter-spacing: 1px; margin-bottom: 20px;
  display: flex; align-items: center; gap: 10px;
}
.chart-card h3::before { content: ''; width: 4px; height: 22px; background: var(--gradient-1); border-radius: 2px; }
.chart-wrap { position: relative; height: 320px; }

.heatmap-card { background: var(--surface); border: 1px solid var(--border); border-radius: 20px; padding: 32px; }
.heatmap-controls { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; flex-wrap: wrap; gap: 12px; }
.year-tabs { display: flex; gap: 6px; flex-wrap: wrap; }
.year-tab {
  background: var(--bg-3); border: 1px solid var(--border); color: var(--text-dim);
  padding: 6px 14px; border-radius: 8px; font-size: 13px; cursor: none; font-family: inherit;
  transition: all 0.2s;
}
.year-tab:hover { color: var(--text); }
.year-tab.active { background: var(--netflix); color: white; border-color: var(--netflix); }
.heatmap-scroll { overflow-x: auto; padding-bottom: 8px; }
.heatmap {
  display: grid; grid-template-rows: repeat(7, 16px);
  grid-auto-flow: column; grid-auto-columns: 16px;
  gap: 4px; min-width: max-content;
}
.hm-cell { width: 16px; height: 16px; border-radius: 4px; background: var(--bg-3); transition: all 0.15s; }
.hm-cell:hover { transform: scale(1.6); outline: 2px solid var(--text); z-index: 5; position: relative; }
.hm-cell.clickable { cursor: none; }
.hm-cell.clickable:hover { outline-color: var(--netflix); box-shadow: 0 0 14px rgba(229,9,20,0.6); }
.hm-cell[data-l="1"] { background: #3d0a0d; }
.hm-cell[data-l="2"] { background: #7a1118; }
.hm-cell[data-l="3"] { background: #b00710; }
.hm-cell[data-l="4"] { background: var(--netflix); }
.hm-cell[data-l="5"] { background: #ff3b46; box-shadow: 0 0 12px rgba(229,9,20,0.7); }
.hm-legend { display: flex; align-items: center; gap: 6px; color: var(--text-dim); font-size: 12px; margin-top: 14px; justify-content: flex-end; }

.podium { display: grid; grid-template-columns: 1fr 1.2fr 1fr; gap: 20px; align-items: end; margin-bottom: 40px; }
@media (max-width: 768px) { .podium { grid-template-columns: 1fr; } }
.podium-item {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 20px; padding: 32px 24px; text-align: center; position: relative;
  transition: all 0.3s; cursor: none;
}
.podium-item.gold { border-color: var(--gold); background: linear-gradient(180deg, rgba(245,197,24,0.1), var(--surface)); transform: translateY(-20px); }
.podium-item.silver { border-color: #c0c0c0; background: linear-gradient(180deg, rgba(192,192,192,0.08), var(--surface)); }
.podium-item.bronze { border-color: #cd7f32; background: linear-gradient(180deg, rgba(205,127,50,0.08), var(--surface)); }
.podium-item:hover { transform: translateY(-26px); }
.podium-item.silver:hover, .podium-item.bronze:hover { transform: translateY(-6px); }
.podium-medal { font-size: 60px; margin-bottom: 12px; line-height: 1; }
.podium-name {
  font-family: 'Bebas Neue', sans-serif; font-size: 28px; letter-spacing: 1px;
  line-height: 1.1; margin-bottom: 8px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  min-height: 60px;
}
.podium-stat { color: var(--text-dim); font-size: 13px; }
.podium-stat b { color: var(--netflix); font-size: 16px; }

.top-list { display: flex; flex-direction: column; gap: 10px; }
.top-item {
  display: grid; grid-template-columns: 40px 1fr auto;
  align-items: center; gap: 16px; padding: 14px 18px;
  background: var(--bg-2); border-radius: 12px;
  transition: all 0.2s; cursor: none; border: 1px solid transparent;
}
.top-item:hover { background: var(--bg-3); border-color: var(--border); transform: translateX(4px); }
.top-rank { font-family: 'Bebas Neue', sans-serif; font-size: 26px; color: var(--netflix); }
.top-name { font-weight: 600; font-size: 14px; }
.top-meta { color: var(--text-muted); font-size: 12px; margin-top: 2px; }
.top-count { color: var(--text-dim); font-size: 13px; font-weight: 600; }
.top-bar { grid-column: 1 / -1; height: 3px; background: var(--bg-3); border-radius: 2px; overflow: hidden; margin-top: 4px; }
.top-bar div { height: 100%; background: var(--gradient-1); border-radius: 2px; width: 0; transition: width 1.2s cubic-bezier(0.4, 0, 0.2, 1); }

.binge-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }
.binge-card {
  background: var(--bg-2); border: 1px solid var(--border);
  border-radius: 14px; padding: 20px; cursor: none;
  transition: all 0.3s; position: relative; overflow: hidden;
}
.binge-card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: var(--gradient-2); }
.binge-card:hover { border-color: var(--purple); transform: translateY(-3px); }
.binge-date { color: var(--text-dim); font-size: 11px; letter-spacing: 1px; text-transform: uppercase; margin-bottom: 8px; }
.binge-count {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 48px; line-height: 1;
  background: var(--gradient-2); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.binge-label { color: var(--text-dim); font-size: 13px; margin-top: 4px; }
.binge-shows { color: var(--text-muted); font-size: 11px; margin-top: 10px; line-height: 1.5; }

.timeline-card { padding: 16px 0; overflow-x: auto; }
.timeline-row { display: grid; grid-template-columns: 200px 1fr; gap: 20px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--bg-3); }
.timeline-row:last-child { border-bottom: none; }
.timeline-name { font-weight: 600; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.timeline-bar { position: relative; height: 22px; background: var(--bg-3); border-radius: 11px; min-width: 500px; }
.timeline-fill {
  position: absolute; top: 0; bottom: 0;
  background: var(--gradient-1); border-radius: 11px;
  display: flex; align-items: center; padding: 0 10px; color: white; font-size: 11px; font-weight: 600;
  white-space: nowrap; overflow: hidden;
  cursor: help;
  transition: transform 0.15s, box-shadow 0.15s;
}
.timeline-fill:hover { transform: scaleY(1.15); box-shadow: 0 0 12px rgba(229,9,20,0.55); z-index: 2; }
.timeline-fill.point {
  border-radius: 50%; padding: 0; min-width: 8px; width: 8px !important;
  background: var(--netflix); box-shadow: 0 0 6px rgba(229,9,20,0.7);
}
.timeline-segs {
  display: inline-block; background: rgba(229,9,20,0.18); color: var(--netflix-2);
  font-size: 10px; font-weight: 700; padding: 1px 6px; border-radius: 4px;
  margin-left: 6px; vertical-align: middle;
}

.controls { display: flex; gap: 12px; margin-bottom: 24px; flex-wrap: wrap; }
.search {
  flex: 1; min-width: 220px;
  background: var(--bg-2); border: 1px solid var(--border);
  color: var(--text); padding: 14px 18px; border-radius: 12px;
  font-size: 14px; font-family: inherit; outline: none;
  transition: all 0.2s; cursor: none;
}
.search:focus { border-color: var(--netflix); box-shadow: 0 0 0 4px rgba(229,9,20,0.1); }
.sort-btn {
  background: var(--bg-2); border: 1px solid var(--border); color: var(--text);
  padding: 14px 20px; border-radius: 12px; font-size: 13px; cursor: none;
  transition: all 0.2s; font-family: inherit; font-weight: 500;
}
.sort-btn:hover { background: var(--bg-3); }
.sort-btn.active { background: var(--gradient-1); border-color: transparent; color: white; }

.series-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.series-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 16px; padding: 22px; cursor: none;
  transition: all 0.3s; position: relative; overflow: hidden;
}
.series-card::before { content: ''; position: absolute; inset: 0; background: var(--gradient-1); opacity: 0; transition: opacity 0.3s; }
.series-card > * { position: relative; }
.series-card:hover { border-color: transparent; transform: translateY(-4px); box-shadow: 0 20px 40px rgba(229,9,20,0.2); }
.series-card:hover::before { opacity: 0.06; }
.series-title {
  font-weight: 700; margin-bottom: 12px; font-size: 16px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  min-height: 44px;
}
.series-meta { color: var(--text-dim); font-size: 12px; display: flex; gap: 12px; flex-wrap: wrap; }
.series-meta b { color: var(--netflix); font-weight: 700; }
.series-progress { height: 4px; background: var(--bg-3); border-radius: 2px; margin-top: 14px; overflow: hidden; cursor: help; }
.series-progress div { height: 100%; background: var(--gradient-1); border-radius: 2px; transition: width 0.4s ease; }
.series-progress-label {
  font-size: 10px; color: var(--text-muted); margin-top: 6px;
  letter-spacing: 0.4px; text-transform: uppercase; font-weight: 500;
}

.modal-bg {
  position: fixed; inset: 0; background: rgba(0,0,0,0.9);
  display: none; align-items: center; justify-content: center;
  z-index: 200; padding: 20px; backdrop-filter: blur(12px);
}
.modal-bg.show { display: flex; animation: fadeUp 0.3s ease; }
.modal {
  background: var(--bg-2); border: 1px solid var(--border);
  border-radius: 24px; max-width: 800px; width: 100%; max-height: 85vh;
  overflow-y: auto; padding: 40px; position: relative;
}
.modal h3 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 42px; letter-spacing: 1px; margin-bottom: 12px;
  background: var(--gradient-1); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.modal .modal-meta { color: var(--text-dim); margin-bottom: 32px; font-size: 14px; }
.modal-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 32px; }
.modal-stat { background: var(--bg); padding: 16px; border-radius: 12px; text-align: center; }
.modal-stat .v { font-family: 'Bebas Neue', sans-serif; font-size: 28px; color: var(--netflix); }
.modal-stat .l { color: var(--text-muted); font-size: 11px; text-transform: uppercase; letter-spacing: 1px; }
.modal-close {
  position: absolute; top: 20px; right: 20px;
  background: var(--bg-3); border: 1px solid var(--border);
  width: 40px; height: 40px; border-radius: 50%;
  color: var(--text); font-size: 22px; cursor: none;
  display: flex; align-items: center; justify-content: center;
  transition: all 0.2s;
}
.modal-close:hover { background: var(--netflix); border-color: var(--netflix); transform: rotate(90deg); }
.ep-list { display: flex; flex-direction: column; gap: 6px; }
.ep-item {
  display: flex; justify-content: space-between; align-items: center;
  padding: 12px 16px; background: var(--bg); border-radius: 10px;
  font-size: 14px; transition: background 0.2s; gap: 12px;
}
.ep-item:hover { background: var(--bg-3); }
.ep-item .ep-date { color: var(--text-muted); font-size: 12px; white-space: nowrap; }
.ep-se {
  display: inline-block; background: rgba(229,9,20,0.16);
  color: var(--netflix-2); font-family: 'Space Grotesk', monospace, sans-serif;
  font-size: 11px; font-weight: 700; padding: 3px 8px; border-radius: 5px;
  margin-right: 8px; letter-spacing: 0.6px; vertical-align: middle;
  border: 1px solid rgba(229,9,20,0.25);
}
.ep-item[data-series] { cursor: none; }
.ep-item[data-series]:hover { background: var(--bg-3); border: 1px solid rgba(229,9,20,0.3); padding: 11px 15px; }

.story-bg {
  position: fixed; inset: 0; z-index: 500;
  display: none; align-items: center; justify-content: center;
  background: #000;
}
.story-bg.show { display: flex; animation: fadeIn 0.4s ease; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.story-frame {
  width: 100%; max-width: 420px; height: 100vh; max-height: 800px;
  border-radius: 24px; overflow: hidden;
  position: relative; background: #000;
}
.story-progress { position: absolute; top: 16px; left: 16px; right: 16px; display: flex; gap: 4px; z-index: 10; }
.story-progress div { flex: 1; height: 3px; background: rgba(255,255,255,0.3); border-radius: 2px; overflow: hidden; }
.story-progress div.done { background: white; }
.story-progress div.active::after { content: ''; display: block; height: 100%; background: white; animation: storyProg 5s linear forwards; }
@keyframes storyProg { from { width: 0; } to { width: 100%; } }
.story-close {
  position: absolute; top: 30px; right: 16px; z-index: 10;
  background: rgba(255,255,255,0.15); border: none; color: white;
  width: 36px; height: 36px; border-radius: 50%; font-size: 20px;
  cursor: none; display: flex; align-items: center; justify-content: center;
}
.story-nav { position: absolute; top: 0; bottom: 0; width: 30%; z-index: 5; cursor: none; }
.story-nav.left { left: 0; }
.story-nav.right { right: 0; }
.story-slide {
  position: absolute; inset: 0; display: flex; flex-direction: column;
  align-items: center; justify-content: center; padding: 60px 32px;
  text-align: center; opacity: 0; pointer-events: none;
  transition: opacity 0.4s;
}
.story-slide.active { opacity: 1; pointer-events: auto; }
.story-slide.s1 { background: linear-gradient(135deg, #e50914, #ff6b35); }
.story-slide.s2 { background: linear-gradient(135deg, #8b5cf6, #ec4899); }
.story-slide.s3 { background: linear-gradient(135deg, #00d9ff, #8b5cf6); }
.story-slide.s4 { background: linear-gradient(135deg, #f5c518, #ff6b35); }
.story-slide.s5 { background: linear-gradient(135deg, #1a1a1a, #050505); }
.story-slide.s6 { background: linear-gradient(135deg, #e50914, #1a1a1a); }
.story-eyebrow { font-size: 13px; letter-spacing: 4px; text-transform: uppercase; opacity: 0.85; margin-bottom: 16px; }
.story-big {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(60px, 18vw, 140px); line-height: 0.9; letter-spacing: 2px;
  margin-bottom: 16px;
}
.story-mid { font-size: 22px; line-height: 1.3; max-width: 320px; opacity: 0.9; font-weight: 600; }
.story-small { font-size: 14px; opacity: 0.8; margin-top: 24px; max-width: 280px; line-height: 1.5; }

footer { text-align: center; color: var(--text-muted); padding: 60px 24px 40px; font-size: 13px; border-top: 1px solid var(--border); margin-top: 40px; }

.hidden { display: none !important; }
.fade-in { animation: fadeUp 0.6s ease both; }
.counter { font-variant-numeric: tabular-nums; }

/* ── LW-Integration: Save Bar / Banners / Toast ──────── */
.save-bar {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 90;
  background: linear-gradient(180deg, rgba(13,13,13,0) 0%, rgba(13,13,13,0.98) 50%);
  padding: 24px 16px 16px;
  pointer-events: none;
  animation: slideUp 0.4s ease;
}
.save-bar.hidden { display: none; }
@keyframes slideUp { from { transform: translateY(100%); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
.save-bar-inner {
  pointer-events: auto;
  max-width: 1100px; margin: 0 auto;
  background: var(--bg-2); border: 1px solid var(--border);
  border-radius: 16px; padding: 16px 22px;
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
  box-shadow: 0 12px 40px rgba(0,0,0,0.5);
}
.save-bar-info { flex: 1; min-width: 240px; }
.save-bar-title { font-weight: 700; font-size: 15px; margin-bottom: 4px; }
.save-bar-sub { color: var(--text-dim); font-size: 13px; }
.save-bar-actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.public-toggle {
  display: flex; align-items: center; gap: 8px;
  color: var(--text-dim); font-size: 13px; cursor: none;
  padding: 8px 14px; background: var(--bg-3); border: 1px solid var(--border); border-radius: 999px;
}
.public-toggle input { accent-color: var(--netflix); cursor: none; }

.shared-banner, .login-banner {
  position: fixed; top: 60px; left: 0; right: 0; z-index: 85;
  background: linear-gradient(135deg, rgba(229,9,20,0.15), rgba(139,92,246,0.1));
  border-bottom: 1px solid var(--border);
  text-align: center; padding: 10px 16px; font-size: 13px; color: var(--text-dim);
}
.shared-banner { background: linear-gradient(135deg, rgba(0,217,255,0.12), rgba(229,9,20,0.08)); }
.shared-banner a, .login-banner a { color: var(--netflix); text-decoration: none; font-weight: 600; }
.shared-banner a:hover, .login-banner a:hover { text-decoration: underline; }
.shared-banner + nav.top, .login-banner + nav.top { /* keep nav z-index */ }

.toast-container { position: fixed; top: 80px; right: 20px; z-index: 9999; display: flex; flex-direction: column; gap: 10px; pointer-events: none; }
.toast {
  background: var(--bg-2); border: 1px solid var(--border); border-left: 4px solid var(--netflix);
  color: var(--text); padding: 12px 18px; border-radius: 10px;
  font-size: 14px; min-width: 240px; max-width: 360px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.4);
  animation: toastIn 0.3s ease;
  pointer-events: auto;
}
.toast.success { border-left-color: #22c55e; }
.toast.error   { border-left-color: var(--netflix-2); }
.toast.info    { border-left-color: var(--cyan); }
@keyframes toastIn { from { transform: translateX(100%); opacity: 0; } to { transform: translateX(0); opacity: 1; } }

@media (max-width: 768px) {
  .save-bar-inner { padding: 12px 16px; }
  .save-bar-title { font-size: 14px; }
  .save-bar-sub { font-size: 12px; }
}

/* ── LW-Integration: Save Bar / Banners / Toast ──────── */
.save-bar {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 90;
  background: linear-gradient(180deg, rgba(13,13,13,0) 0%, rgba(13,13,13,0.98) 50%);
  padding: 24px 16px 16px;
  pointer-events: none;
  animation: slideUp 0.4s ease;
}
.save-bar.hidden { display: none; }
@keyframes slideUp { from { transform: translateY(100%); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
.save-bar-inner {
  pointer-events: auto;
  max-width: 1100px; margin: 0 auto;
  background: var(--bg-2); border: 1px solid var(--border);
  border-radius: 16px; padding: 16px 22px;
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
  box-shadow: 0 12px 40px rgba(0,0,0,0.5);
}
.save-bar-info { flex: 1; min-width: 240px; }
.save-bar-title { font-weight: 700; font-size: 15px; margin-bottom: 4px; }
.save-bar-sub { color: var(--text-dim); font-size: 13px; }
.save-bar-actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.public-toggle {
  display: flex; align-items: center; gap: 8px;
  color: var(--text-dim); font-size: 13px; cursor: none;
  padding: 8px 14px; background: var(--bg-3); border: 1px solid var(--border); border-radius: 999px;
}
.public-toggle input { accent-color: var(--netflix); cursor: none; }

.shared-banner, .login-banner {
  position: fixed; top: 60px; left: 0; right: 0; z-index: 85;
  background: linear-gradient(135deg, rgba(229,9,20,0.15), rgba(139,92,246,0.1));
  border-bottom: 1px solid var(--border);
  text-align: center; padding: 10px 16px; font-size: 13px; color: var(--text-dim);
}
.shared-banner { background: linear-gradient(135deg, rgba(0,217,255,0.12), rgba(229,9,20,0.08)); }
.shared-banner a, .login-banner a { color: var(--netflix); text-decoration: none; font-weight: 600; }
.shared-banner a:hover, .login-banner a:hover { text-decoration: underline; }
.shared-banner + nav.top, .login-banner + nav.top { /* keep nav z-index */ }

.toast-container { position: fixed; top: 80px; right: 20px; z-index: 9999; display: flex; flex-direction: column; gap: 10px; pointer-events: none; }
.toast {
  background: var(--bg-2); border: 1px solid var(--border); border-left: 4px solid var(--netflix);
  color: var(--text); padding: 12px 18px; border-radius: 10px;
  font-size: 14px; min-width: 240px; max-width: 360px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.4);
  animation: toastIn 0.3s ease;
  pointer-events: auto;
}
.toast.success { border-left-color: #22c55e; }
.toast.error   { border-left-color: var(--netflix-2); }
.toast.info    { border-left-color: var(--cyan); }
@keyframes toastIn { from { transform: translateX(100%); opacity: 0; } to { transform: translateX(0); opacity: 1; } }

@media (max-width: 768px) {
  .save-bar-inner { padding: 12px 16px; }
  .save-bar-title { font-size: 14px; }
  .save-bar-sub { font-size: 12px; }
}
