: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;
}
::-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: var(--bxnny-topbar-h, 0px); left: 0; right: 0; z-index: 100; /* unter der globalen bxnny-Topbar */
  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: pointer;
}
.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: pointer; 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: pointer; 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: pointer; 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: pointer; 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: pointer; 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: pointer; }
.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: pointer;
}
.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: pointer; 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: pointer;
  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: pointer;
}
.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: pointer;
  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: pointer;
  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: pointer;
  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: pointer; }
.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: pointer; display: flex; align-items: center; justify-content: center;
}
.story-nav { position: absolute; top: 0; bottom: 0; width: 30%; z-index: 5; cursor: pointer; }
.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: pointer;
  padding: 8px 14px; background: var(--bg-3); border: 1px solid var(--border); border-radius: 999px;
}
.public-toggle input { accent-color: var(--netflix); cursor: pointer; }

.shared-banner, .login-banner {
  position: fixed; top: calc(60px + var(--bxnny-topbar-h, 0px)); 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: calc(80px + var(--bxnny-topbar-h, 0px)); 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: pointer;
  padding: 8px 14px; background: var(--bg-3); border: 1px solid var(--border); border-radius: 999px;
}
.public-toggle input { accent-color: var(--netflix); cursor: pointer; }

.shared-banner, .login-banner {
  position: fixed; top: calc(60px + var(--bxnny-topbar-h, 0px)); 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: calc(80px + var(--bxnny-topbar-h, 0px)); 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; }
}

/* ── Poster & Banner ─────────────────────────────────────────────────────── */
.poster {
  position: relative; flex: none; overflow: hidden;
  aspect-ratio: 2 / 3; border-radius: 6px;
  background: linear-gradient(160deg, var(--bg-4), var(--bg-3));
  display: grid; place-items: center;
  color: var(--text-muted); font-weight: 700; letter-spacing: 0.5px;
}
.poster span { transition: opacity 0.3s; }
.poster img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; opacity: 0; transition: opacity 0.4s ease;
}
.poster.loaded img { opacity: 1; }
.poster.loaded span { opacity: 0; }

.top-item { grid-template-columns: 40px 34px 1fr auto; }
.poster.thumb { width: 34px; font-size: 11px; border-radius: 4px; }

.series-card { display: flex; gap: 0; align-items: stretch; padding: 0; min-height: 141px; }
.series-card::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: var(--glow, none) center / cover;
  filter: blur(40px) saturate(1.5); transform: scale(1.5); opacity: 0.22;
}
.series-card > * { z-index: 1; }
.series-body { flex: 1; min-width: 0; padding: 16px 18px; display: flex; flex-direction: column; }
.series-body .series-progress { margin-top: auto; }
.poster.card-poster { width: 94px; aspect-ratio: auto; border-radius: 0; font-size: 18px; align-self: stretch; }

.podium-art { position: relative; width: 120px; margin: 0 auto 18px; }
.podium-item.gold .podium-art { width: 144px; }
.poster.podium-poster { width: 100%; font-size: 28px; border-radius: 10px; box-shadow: 0 14px 32px rgba(0,0,0,0.55); }
.podium-art .podium-medal {
  position: absolute; right: -14px; bottom: -12px; margin: 0;
  font-size: 40px; filter: drop-shadow(0 4px 8px rgba(0,0,0,0.6));
}

.ep-item[data-series] { justify-content: flex-start; cursor: pointer; }
.ep-main { flex: 1; min-width: 0; }
.poster.ep-thumb { width: 28px; font-size: 10px; border-radius: 3px; }

/* Detail-Modal: Banner wie bei Netflix — Bild randlos oben, Logo unten links */
.modal.with-banner { padding-top: 0; }
.modal-banner {
  position: relative; margin: 0 -40px 20px;
  aspect-ratio: 2 / 1; overflow: hidden;  /* kein max-height: das ließe die Breite schrumpfen */
  background: var(--bg-3);
}
.modal-banner.hidden { display: none; }
.modal-banner.loading {
  background: linear-gradient(90deg, var(--bg-3) 0%, var(--bg-4) 50%, var(--bg-3) 100%);
  background-size: 200% 100%; animation: bannerShimmer 1.4s linear infinite;
}
@keyframes bannerShimmer { from { background-position: 100% 0; } to { background-position: -100% 0; } }
.mb-bg {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; opacity: 0; transition: opacity 0.5s ease;
}
.modal-banner.loaded .mb-bg { opacity: 1; }
.modal-banner.from-poster .mb-bg { filter: blur(28px) saturate(1.2); transform: scale(1.25); }
.mb-shade {
  position: absolute; inset: 0;
  background: linear-gradient(to top, var(--bg-2) 0%, rgba(13,13,13,0.55) 32%, rgba(13,13,13,0) 65%);
}
.mb-logo {
  position: absolute; left: 40px; bottom: 26px;
  max-width: min(55%, 360px); max-height: 36%;
  object-fit: contain; object-position: left bottom;
  filter: drop-shadow(0 2px 14px rgba(0,0,0,0.7));
}
.modal h3.as-logo {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip-path: inset(50%); white-space: nowrap;
}
.modal-close { z-index: 2; }
.modal.with-banner .modal-close { background: rgba(0,0,0,0.55); border-color: rgba(255,255,255,0.15); backdrop-filter: blur(8px); }
.modal-tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 8px; font-size: 13px; color: var(--text-dim); }
.modal-tags:empty { display: none; }
.modal-tags > * + *::before { content: '·'; margin-right: 8px; color: var(--text-muted); }
.modal-tags a { color: var(--text-dim); text-decoration: none; }
.modal-tags a:hover { color: var(--text); }

/* Story: Top-Show-Folie mit Banner, abgedunkelt damit die Schrift lesbar bleibt */
.story-slide.with-bg {
  background: linear-gradient(to top, rgba(0,0,0,0.85), rgba(0,0,0,0.35)), var(--story-bg) center / cover no-repeat;
}

@media (max-width: 768px) {
  .modal { padding: 24px; }
  .modal-banner { margin: 0 -24px 16px; }
  .mb-logo { left: 24px; bottom: 18px; max-width: 70%; }
  .poster.card-poster { width: 80px; }
}

/* ── Runde 2: Bilder füllen die Kacheln ─────────────────────────────────── */
.backdrop { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.backdrop img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  opacity: 0; transition: opacity 0.6s ease, transform 0.6s ease;
}
.backdrop.loaded img { opacity: 1; }
.backdrop.from-poster img { filter: blur(24px) saturate(1.2); transform: scale(1.3); }
.backdrop::after { content: ''; position: absolute; inset: 0; }

/* Podium: Banner als Kachel-Hintergrund, größere Poster */
.podium-item { overflow: hidden; padding: 28px 24px 26px; }
.podium-item > :not(.backdrop) { position: relative; }
.podium-bg::after {
  background: linear-gradient(180deg, rgba(19,19,19,0.2) 0%, rgba(19,19,19,0.7) 50%, var(--surface) 92%);
}
.podium-item:hover .backdrop.loaded img { transform: scale(1.04); }
.podium-art { width: 150px; }
.podium-item.gold .podium-art { width: 184px; }

/* Plätze 4–10: Balken = Folgen im Verhältnis zu Platz 1, gefüllt mit dem Banner */
.rank-list { display: flex; flex-direction: column; gap: 12px; }
.rank-row {
  display: grid; grid-template-columns: 64px 52px minmax(0, 1fr);
  align-items: center; gap: 16px; cursor: pointer;
}
.rank-num {
  font-family: 'Bebas Neue', sans-serif; font-size: 64px; line-height: 0.8; text-align: right;
  color: transparent; -webkit-text-stroke: 2px #7a7a7a; transition: -webkit-text-stroke-color 0.25s;
}
.rank-row:hover .rank-num { -webkit-text-stroke-color: var(--netflix); }
.poster.rank-poster { width: 52px; font-size: 14px; border-radius: 5px; box-shadow: 0 6px 16px rgba(0,0,0,0.5); }
.rank-track { position: relative; height: 78px; border-radius: 12px; background: var(--bg-2); overflow: hidden; }
.rank-bar {
  position: absolute; top: 0; bottom: 0; left: 0; width: 0;
  border-radius: 12px; overflow: hidden;
  background: linear-gradient(90deg, #5c0d12, var(--netflix));
  box-shadow: inset -3px 0 0 var(--netflix);
  transition: width 1.2s cubic-bezier(0.4, 0, 0.2, 1);
}
.rank-bg::after { background: linear-gradient(90deg, rgba(0,0,0,0.82) 0%, rgba(0,0,0,0.45) 55%, rgba(0,0,0,0.15) 100%); }
.rank-row:hover .rank-bg.loaded img { transform: scale(1.04); }
.rank-label {
  position: relative; height: 100%; padding: 0 20px;
  display: flex; flex-direction: column; justify-content: center; gap: 4px;
  text-shadow: 0 1px 8px rgba(0,0,0,0.9);
}
.rank-name { font-weight: 700; font-size: 17px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rank-meta { font-size: 13px; color: #d6d6d6; }
.rank-meta b { color: #fff; }
@media (max-width: 640px) {
  .rank-row { grid-template-columns: 36px 40px minmax(0, 1fr); gap: 10px; }
  .rank-num { font-size: 44px; }
  .poster.rank-poster { width: 40px; }
  .rank-track { height: 62px; }
  .rank-label { padding: 0 12px; }
  .rank-name { font-size: 14px; }
}

/* Timeline: ein Streifen pro Monat */
.tl-legend { color: var(--text-muted); font-size: 12px; margin: -12px 0 18px; }
.tl { display: flex; flex-direction: column; gap: 6px; overflow-x: auto; }
.tl-row {
  display: grid; grid-template-columns: 230px minmax(420px, 1fr); gap: 18px; align-items: center;
  padding: 6px 8px; border-radius: 10px; cursor: pointer; transition: background 0.2s;
}
.tl-row[data-series]:hover { background: var(--bg-2); }
.tl-label { display: flex; align-items: center; gap: 12px; min-width: 0; }
.poster.tl-poster { width: 30px; font-size: 10px; border-radius: 4px; }
.tl-text { min-width: 0; }
.tl-name { font-weight: 600; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tl-meta { color: var(--text-muted); font-size: 11px; margin-top: 2px; }
.tl-track { position: relative; height: 30px; background: var(--bg-2); border-radius: 6px; }
.tl-row[data-series]:hover .tl-track { background: var(--bg-3); }
.tl-year { position: absolute; top: 0; bottom: 0; width: 1px; background: rgba(255,255,255,0.07); }
.tl-cell {
  position: absolute; top: 3px; bottom: 3px; border-radius: 3px;
  background: rgba(229, 9, 20, var(--a)); transition: transform 0.15s;
}
.tl-cell.peak { background: #ff3b46; box-shadow: 0 0 10px rgba(255,59,70,0.6); }
.tl-cell:hover { transform: scaleY(1.25); z-index: 1; }
.tl-axis { padding-top: 0; padding-bottom: 0; }
.tl-axis .tl-track { height: 18px; background: none; }
.tl-axis span {
  position: absolute; top: 2px; transform: translateX(4px);
  font-size: 11px; color: var(--text-muted); font-variant-numeric: tabular-nums;
}
@media (max-width: 768px) { .tl-row { grid-template-columns: 150px minmax(420px, 1fr); } }

/* Binge-Kacheln: Banner der Hauptserie des Tages */
.binge-grid { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.binge-card { min-height: 180px; display: flex; flex-direction: column; justify-content: flex-end; }
.binge-card > :not(.backdrop) { position: relative; }
.binge-card::before { z-index: 1; }
.binge-bg::after {
  background: linear-gradient(to top, rgba(8,8,8,0.97) 0%, rgba(8,8,8,0.88) 45%, rgba(8,8,8,0.55) 75%, rgba(8,8,8,0.35) 100%);
}
.binge-card .binge-date { color: #e6e6e6; text-shadow: 0 1px 6px rgba(0,0,0,0.9); }
.binge-card .binge-label { color: #e0e0e0; }
.binge-card .binge-count { background: linear-gradient(135deg, #b794ff 0%, #ff5fae 100%); -webkit-background-clip: text; background-clip: text; filter: drop-shadow(0 2px 8px rgba(0,0,0,0.6)); }
.binge-card:hover .backdrop.loaded img { transform: scale(1.04); }
.binge-card .binge-shows { color: #cfcfcf; text-shadow: 0 1px 6px rgba(0,0,0,0.9); }

/* Folgenbilder in der Serien-Ansicht */
.ep-list.with-stills .ep-item { padding: 8px 16px 8px 8px; }
.ep-still {
  flex: none; position: relative; width: 128px; aspect-ratio: 16 / 9;
  border-radius: 6px; overflow: hidden; background: var(--bg-3);
}
.ep-still img { width: 100%; height: 100%; object-fit: cover; display: block; opacity: 0; transition: opacity 0.3s; }
.ep-still.loaded img { opacity: 1; }
.ep-still.empty::after {
  content: '▶'; position: absolute; inset: 0;
  display: grid; place-items: center; color: var(--text-muted); font-size: 13px;
}
.ep-text { flex: 1; min-width: 0; }
.ep-name { color: var(--text-dim); }
@media (max-width: 768px) {
  .ep-still { width: 92px; }
  .podium-art { width: 130px; }
  .podium-item.gold .podium-art { width: 150px; }
}

/* ═════════════ Überarbeitung 2026-10-12 ═════════════ */
/* Fernseher im Upload: eigene Wipp-Animation (die alte schob um -50 % nach links → klebte am Rand) */
.upload-zone .icon { animation: bobY 3s infinite ease-in-out; }
@keyframes bobY { 0%,100% { transform: translateY(0); } 50% { transform: translateY(8px); } }
/* Ohne Daten: Menü + Story-Knopf ausblenden (führten ins Leere) */
body.nodata .nav-links, body.nodata #storyBtn { display: none; }
/* schlankere Leiste */
nav.top { padding: 10px 28px; }
.nav-logo { font-size: 24px; }
/* Banner: deckend statt durchscheinend, Sprungziele landen nicht mehr unter Leisten + Banner */
.shared-banner, .login-banner { top: calc(52px + var(--bxnny-topbar-h, 0px)); background: rgba(12,12,14,.94); backdrop-filter: blur(10px); }
.shared-banner { box-shadow: inset 0 -1px 0 rgba(0,217,255,.25); }
.login-banner { box-shadow: inset 0 -1px 0 rgba(229,9,20,.3); }
section[id], #hero { scroll-margin-top: calc(var(--bxnny-topbar-h, 0px) + 100px); }
/* Hero kompakter (vorher riesiger Leerraum zwischen Zahl und Text) */
.hero { min-height: 86vh; padding: 140px 24px 50px; }
.hero h1 { margin-bottom: 20px; }
.hero-sub { margin-bottom: 32px; }
.hero-stats { margin-bottom: 36px; }
/* Jahres-Umschalter */
.year-switch { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin: 14px 0 22px; }
.year-switch:empty { display: none; }
.ys-btn { background: var(--bg-3); border: 1px solid var(--border); color: var(--text-dim); font: 600 13px/1 inherit; font-family: inherit;
  padding: 8px 14px; border-radius: 999px; cursor: pointer; transition: all .2s; }
.ys-btn:hover { color: var(--text); border-color: var(--text-dim); }
.ys-btn.on { background: var(--gradient-1); border-color: transparent; color: #fff; box-shadow: 0 6px 18px rgba(229,9,20,.35); }
/* Stats: 4er-Raster statt 5+3 mit Lücken */
.stats-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1100px) { .stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .stats-grid { grid-template-columns: 1fr; } }
/* Bibliothek: Mehr anzeigen */
.more-wrap { text-align: center; margin-top: 28px; }
.more-wrap .btn-ghost { cursor: pointer; padding: 12px 26px; }
/* Freunde-Vergleich */
.fr-table { overflow-x: auto; border-radius: 18px; background: var(--surface); border: 1px solid var(--border); }
.fr-table table { width: 100%; border-collapse: collapse; font-size: 15px; }
.fr-table th { text-align: left; color: var(--text-muted); font-weight: 600; font-size: 11px; letter-spacing: 1.5px; text-transform: uppercase; padding: 14px 16px; border-bottom: 1px solid var(--border); }
.fr-table td { padding: 14px 16px; border-bottom: 1px solid var(--border); white-space: nowrap; }
.fr-table tr:last-child td { border-bottom: 0; }
.fr-table .n { text-align: right; font-variant-numeric: tabular-nums; }
.fr-table td.top { color: #ffd166; font-weight: 700; }
.fr-table td.nm { font-weight: 700; }
.fr-table td.rk { width: 40px; font-size: 18px; }
.fr-table tr.me td { background: rgba(229,9,20,.08); }
.fr-table tr.pick { cursor: pointer; transition: background .15s; }
.fr-table tr.pick:hover td, .fr-table tr.sel td { background: var(--bg-3); }
.fr-detail:not(:empty) { margin-top: 18px; padding: 22px; border-radius: 18px; background: var(--surface); border: 1px solid var(--border); }
.fr-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.fr-head h3 { font-family: 'Bebas Neue', sans-serif; font-size: 30px; letter-spacing: 1px; margin: 0; }
.fr-vs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin: 18px 0; }
.fr-vs div { background: var(--bg-3); border-radius: 14px; padding: 14px; text-align: center; }
.fr-vs b { display: block; font-size: 18px; }
.fr-vs span { color: var(--text-muted); font-size: 12px; text-transform: uppercase; letter-spacing: 1px; }
.fr-detail h4 { margin: 8px 0 12px; color: var(--text-dim); font-weight: 600; }
.fr-common { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px 22px; }
.fc-n { font-weight: 600; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; margin-bottom: 4px; }
.fc-bars { position: relative; height: 18px; display: flex; align-items: center; gap: 8px; font-size: 11px; color: var(--text-muted); }
.fc-bars i { display: block; height: 6px; border-radius: 3px; flex: none; }
.fc-bars i.a { background: var(--netflix); } .fc-bars i.b { background: #00d9ff; }
@media (max-width: 640px) { .fr-vs { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
/* Story: Folie als Status-Bild speichern */
.story-save { position: absolute; left: 50%; bottom: 18px; transform: translateX(-50%); z-index: 6; cursor: pointer;
  background: rgba(255,255,255,.14); color: #fff; border: 1px solid rgba(255,255,255,.25); border-radius: 999px; padding: 9px 16px;
  font: 600 13px/1 inherit; font-family: inherit; backdrop-filter: blur(8px); }
.story-save:hover { background: rgba(255,255,255,.24); }
/* Touch-Geräte: eigener Cursor aus, normaler Zeiger zurück */
@media (hover: none) { #cursor, #cursorRing { display: none !important; } }
/* eigener Cursor: neue Knöpfe/Zeilen ebenso ohne System-Zeiger (sonst doppelter Cursor); auf Touch normal */
@media (hover: hover) { .ys-btn, .more-wrap .btn-ghost, .fr-table tr.pick, .story-save, #intro { cursor: pointer; } }

/* ═════════════ Neues Design 2026-10-12 (ruhig statt Neon) ═════════════
   Kein eigener Cursor, keine Partikel/Orbs, keine Verlaufs-Schrift. Rot nur als Akzent. */
:root {
  --bg: #0b0b0d; --bg-2: #121215; --bg-3: #1b1b20; --bg-4: #24242a; --surface: #131317;
  --border: rgba(255,255,255,.08); --text: #f5f5f7; --text-dim: #a1a1aa; --text-muted: #6b6b75;
  --netflix: #e50914; --netflix-2: #ff4752;
  --gradient-1: #e50914; --gradient-2: #e50914; --gradient-3: #e50914; --gradient-4: #e50914;
}
body { background: var(--bg); cursor: auto; }
.search { cursor: text; }
::-webkit-scrollbar-thumb { background: #2c2c33; }
.cursor, .cursor-ring, #particles, .bg-orbs { display: none !important; }

/* Intro: Text sofort da, alles in ~0,6 s */
.intro-N { font-size: 180px; animation: introN2 .6s cubic-bezier(.2,.8,.2,1) both; text-shadow: 0 0 50px rgba(229,9,20,.45); }
@keyframes introN2 { from { opacity: 0; transform: scale(.85); } to { opacity: 1; transform: scale(1); } }
.intro-text { opacity: 1; animation: none; font-family: 'Inter', sans-serif; font-weight: 600; font-size: 15px; letter-spacing: 6px;
  text-transform: uppercase; color: #fff; margin-top: 10px; }
#intro { transition: opacity .35s, visibility .35s; }

/* Leiste */
nav.top { background: rgba(11,11,13,.72); backdrop-filter: saturate(160%) blur(16px); -webkit-backdrop-filter: saturate(160%) blur(16px);
  border-bottom: 1px solid var(--border); padding: 10px 28px; }
nav.top.scrolled { background: rgba(11,11,13,.86); }
.nav-logo { font-family: 'Inter', sans-serif; font-size: 17px; font-weight: 700; letter-spacing: .2px; color: #fff; background: none; -webkit-background-clip: initial; background-clip: initial; }
.nav-logo b { font-family: 'Bebas Neue', sans-serif; font-weight: 400; font-size: 30px; color: var(--netflix); vertical-align: -5px; margin-right: 2px; }
.nav-links a { font-size: 13px; padding: 7px 12px; }
.nav-links a.active { background: rgba(255,255,255,.08); }

/* Knöpfe */
.btn-pill { background: var(--netflix); font-weight: 600; padding: 10px 18px; }
.btn-pill:hover { transform: none; background: #f6121e; box-shadow: none; }
.btn-ghost { background: rgba(255,255,255,.06); border: 1px solid var(--border); }
.btn-ghost:hover { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.16); }
.btn-danger { color: #ff6b73; }
.btn-pill.btn-success { background: #1f9d55; }

/* Hero */
.hero { min-height: 78vh; padding: 150px 24px 60px; }
.hero-eyebrow { background: none; border: 0; padding: 0; color: var(--text-dim); font-size: 13px; letter-spacing: 1.5px; margin-bottom: 18px; }
.hero h1 { background: none; color: #fff; -webkit-text-fill-color: #fff; font-size: clamp(54px, 10vw, 140px); letter-spacing: 1px; }
.hero h1 .accent { background: none; -webkit-text-fill-color: var(--netflix); color: var(--netflix); font-size: 1.25em; line-height: .95; }
.hero-sub { font-size: clamp(16px, 1.8vw, 20px); font-weight: 400; }
.hero-stats { gap: 14px; }
.hero-stat { background: var(--surface); border: 1px solid var(--border); border-radius: 18px; padding: 18px 26px; min-width: 170px; }
.hero-stat .num { background: none; color: #fff; -webkit-text-fill-color: #fff; font-size: clamp(36px, 5vw, 56px); }
.hero-stat .lbl { font-size: 11px; letter-spacing: 1.5px; }
.ys-btn { background: rgba(255,255,255,.06); }
.ys-btn.on { background: #fff; color: #000; box-shadow: none; }

/* Abschnitte */
section.block { padding: 64px 0; }
.section-eyebrow { color: var(--text-muted); font-size: 12px; letter-spacing: 2px; font-weight: 600; margin-bottom: 8px; }
.section-title { font-size: clamp(36px, 5vw, 60px); margin-bottom: 28px; }
.section-title .accent { background: none; -webkit-text-fill-color: var(--netflix); color: var(--netflix); }
.section-sub { margin: -16px 0 24px; font-size: 14px; }
.section-sub:empty { display: none; }

/* Karten: flach, feiner Rand, kein Neon */
.stat-card, .chart-card, .heatmap-card, .ach-card, .series-card, .podium-item, .binge-card, .modal, .fr-table, .fr-detail:not(:empty) {
  background: var(--surface); border: 1px solid var(--border); }
.stat-card { border-radius: 18px; padding: 24px; }
.stat-card::after, .stat-card::before { display: none; }
.stat-card:hover { transform: none; border-color: rgba(255,255,255,.16); }
.stat-card .stat-icon { font-size: 20px; opacity: .9; }
.stat-card .stat-value { font-size: 50px; color: #fff; }
.chart-card, .heatmap-card { border-radius: 18px; padding: 24px; }
.chart-card h3, .heatmap-card h3 { font-family: 'Inter', sans-serif; font-size: 15px; font-weight: 600; letter-spacing: 0; margin-bottom: 16px; color: var(--text); }
.chart-card h3::before { display: none; }
.personality { background: var(--surface); border-radius: 24px; padding: 44px; }
.personality::before { display: none; }
.personality-emoji { font-size: 110px; filter: none; }
.personality h3 { color: var(--text-muted); letter-spacing: 2px; font-size: 12px; }
.personality .pers-name { background: none; -webkit-text-fill-color: #fff; color: #fff; }
.ach-card.unlocked { border-color: rgba(245,197,24,.28); }
.ach-card.unlocked::before { background: radial-gradient(circle at top, rgba(245,197,24,.09), transparent 70%); }
.podium-item.gold { background: var(--surface); }
.podium-name { font-family: 'Inter', sans-serif; font-weight: 700; font-size: 20px; letter-spacing: 0; min-height: 52px; }
.binge-card::before { display: none; }
.binge-card:hover, .series-card:hover { border-color: rgba(255,255,255,.18); box-shadow: none; transform: translateY(-2px); }
.binge-card .binge-count { background: none; -webkit-text-fill-color: #fff; color: #fff; filter: none; }
.series-card::before { display: none; }
.series-meta b, .podium-stat b { color: #fff; }
.series-progress div, .top-bar div { background: var(--netflix); }
.rank-bar { background: linear-gradient(90deg, #3a0a0e, #b0070f); box-shadow: none; }
.rank-num { -webkit-text-stroke: 2px #55555e; }
.sort-btn { background: rgba(255,255,255,.05); padding: 12px 16px; }
.sort-btn.active { background: #fff; color: #000; }
.search { background: var(--surface); }
.search:focus { border-color: rgba(255,255,255,.3); box-shadow: none; }
.year-tab.active { background: #fff; color: #000; border-color: #fff; }
.modal h3 { background: none; -webkit-text-fill-color: #fff; color: #fff; }
.modal-close:hover { transform: none; }
.export-help ol li b { color: #fff; }
.export-help code { color: var(--text); }
.upload-zone { border: 1.5px dashed rgba(255,255,255,.16); border-radius: 22px; padding: 64px 48px; }
.upload-zone:hover, .upload-zone.drag { background: rgba(229,9,20,.05); border-color: var(--netflix); transform: none; }
.upload-zone h2 { font-size: 42px; }
.upload-zone p b { color: #fff; }
footer { border-top: 1px solid var(--border); padding: 40px 24px; }
footer a { color: var(--text-muted); text-decoration: none; }
footer a:hover { color: var(--text); }
.toast { border-left-width: 3px; }

/* Banner unter der Leiste */
.shared-banner, .login-banner { background: rgba(18,18,21,.92); box-shadow: none; border-bottom: 1px solid var(--border); }
.shared-banner a, .login-banner a { color: #fff; }

/* Speicher-Leiste mit Sichtbarkeit */
.save-bar { background: none; padding: 0 16px 16px; }
.save-bar-inner { background: rgba(20,20,24,.88); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border-radius: 18px; padding: 10px 12px 10px 20px; max-width: 860px; }
.save-bar-info { min-width: 140px; }
.save-bar-title { margin: 0; font-size: 14px; }
.vis-seg { display: inline-flex; background: rgba(255,255,255,.06); border: 1px solid var(--border); border-radius: 999px; padding: 3px; }
.vis-seg button { background: none; border: 0; color: var(--text-dim); font: 600 13px/1 'Inter', sans-serif; padding: 8px 12px; border-radius: 999px; cursor: pointer; white-space: nowrap; }
.vis-seg button:hover { color: #fff; }
.vis-seg button.on { background: #fff; color: #000; }
@media (max-width: 640px) {
  .save-bar-inner { padding: 10px; gap: 8px; justify-content: center; }
  .save-bar-info { flex-basis: 100%; text-align: center; min-width: 0; }
  .save-bar-actions { justify-content: center; }
  .vis-seg button { padding: 8px 9px; font-size: 12px; }
}

/* Öffentliche Wraps auf der Startseite */
.listed { max-width: 600px; width: 100%; }
.listed h3 { font-size: 13px; font-weight: 600; letter-spacing: 1.5px; text-transform: uppercase; color: var(--text-muted); margin: 18px 0 10px; }
.listed-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 10px; }
.lw-card { display: flex; flex-direction: column; gap: 4px; padding: 14px 16px; border-radius: 14px; background: var(--surface); border: 1px solid var(--border); color: var(--text); text-decoration: none; transition: border-color .15s; }
.lw-card:hover { border-color: rgba(255,255,255,.2); }
.lw-card span { color: var(--text-dim); font-size: 13px; }
.lw-card small { color: var(--text-muted); font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Teilen-Karte */
#cardModal { z-index: 600; }
.card-dlg { position: relative; display: flex; gap: 28px; align-items: center; max-width: 900px; width: 100%; max-height: 92vh; }
.card-prev { flex: 1; display: flex; justify-content: center; min-width: 0; }
.card-prev canvas { max-width: 100%; max-height: 86vh; width: auto; height: auto; border-radius: 18px; box-shadow: 0 30px 80px rgba(0,0,0,.6); border: 1px solid var(--border); }
.card-side { display: flex; flex-direction: column; gap: 10px; width: 220px; flex: none; }
.card-side .btn-pill, .card-side .btn-ghost { width: 100%; padding: 12px; font-size: 14px; }
.card-fmt { display: flex; flex-direction: column; gap: 6px; margin-bottom: 8px; }
.card-fmt button { background: rgba(255,255,255,.06); border: 1px solid var(--border); color: var(--text-dim); border-radius: 12px; padding: 11px 14px; font: 600 14px/1 'Inter', sans-serif; cursor: pointer; text-align: left; }
.card-fmt button.on { background: #fff; color: #000; border-color: #fff; }
.card-dlg .modal-close { top: -6px; right: -6px; }
@media (max-width: 720px) {
  .card-dlg { flex-direction: column; gap: 14px; }
  .card-prev canvas { max-height: 58vh; }
  .card-side { width: 100%; }
  .card-fmt { flex-direction: row; }
  .card-fmt button { flex: 1; text-align: center; padding: 10px 6px; font-size: 12.5px; }
  .card-dlg .modal-close { top: 0; right: 0; }
}
.hero h1 br { display: none; }
.hero h1 { font-size: clamp(40px, 6vw, 84px); line-height: 1; }
.hero h1 .accent { font-size: 2.1em; line-height: .9; margin: 4px 0; }
.hero-sub:empty { display: none; }
@media (max-width: 640px) {
  .save-bar-info { display: none; }
  .save-bar { padding: 0 8px 8px; }
  .save-bar-inner { padding: 8px; }
  .btn-ghost#btnShare, .btn-ghost#btnDelete { padding: 8px 12px; font-size: 12px; }
}

/* ═════════════ Runde 4 (2026-10-12) ═════════════ */
/* Raster: Spalten dürfen schrumpfen — sonst drücken Chart-Canvases nach dem Zoomen die Karten über den Rand */
.grid-2 { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.grid-3 { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); }
@media (max-width: 900px) { .grid-2, .grid-3 { grid-template-columns: minmax(0, 1fr); } }
.grid-2 > *, .grid-3 > *, .chart-card, .heatmap-card { min-width: 0; }
.chart-wrap { overflow: hidden; }
.chart-wrap canvas { max-width: 100%; }

/* Watch-Patterns als Balken */
.patterns { display: flex; flex-direction: column; gap: 18px; padding-top: 4px; }
.pt-head { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; margin-bottom: 8px; font-size: 14px; }
.pt-head b { font-weight: 600; }
.pt-head span { color: var(--text-dim); font-size: 13px; text-align: right; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.pt-bar { height: 6px; border-radius: 3px; background: rgba(255,255,255,.07); overflow: hidden; }
.pt-bar i { display: block; height: 100%; border-radius: 3px; background: var(--netflix); }

/* Hero: Banner der Top-Titel im Hintergrund */
.hero { overflow: hidden; isolation: isolate; }
.hero-bg { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.hero-bg img.hb { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.06);
  transition: opacity 1.6s ease, transform 7s linear; }
.hero-bg img.hb.on { opacity: .42; transform: scale(1); }
.hero-bg::after { content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse at center, rgba(11,11,13,.35) 0%, rgba(11,11,13,.8) 70%), linear-gradient(to bottom, rgba(11,11,13,.55) 0%, rgba(11,11,13,.2) 40%, var(--bg) 100%); }
.hero h1, .hero-eyebrow, .hero-sub { text-shadow: 0 2px 24px rgba(0,0,0,.6); }
.hero-stat { background: rgba(19,19,23,.72); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }

/* Trophäen: Medaille mit Fortschrittsring, Seltenheit als Farbe */
.ach-grid { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.ach-card { display: flex; align-items: center; gap: 16px; text-align: left; padding: 16px 18px; border-radius: 16px; --rc: #a1a1aa; }
.ach-card.r-rare { --rc: #4f8cff; } .ach-card.r-epic { --rc: #b26bff; } .ach-card.r-legendary { --rc: #f5c518; }
.ach-card.unlocked, .ach-card.locked { opacity: 1; filter: none; border-color: var(--border); }
.ach-card.unlocked::before { display: none; }
.ach-card.unlocked:hover { transform: none; border-color: color-mix(in srgb, var(--rc) 45%, transparent); }
.ach-medal { flex: none; width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center; position: relative;
  background: conic-gradient(var(--rc) calc(var(--p) * 1%), rgba(255,255,255,.08) 0); }
.ach-medal::before { content: ''; position: absolute; inset: 3px; border-radius: 50%; background: var(--surface); }
.ach-card.unlocked .ach-medal::before { background: radial-gradient(circle at 50% 35%, color-mix(in srgb, var(--rc) 28%, var(--surface)), var(--surface) 70%); }
.ach-medal span { position: relative; font-size: 26px; line-height: 1; }
.ach-card.locked .ach-medal span { filter: grayscale(1); opacity: .45; }
.ach-body { min-width: 0; flex: 1; }
.ach-top { display: flex; justify-content: space-between; gap: 8px; align-items: baseline; }
.ach-card .ach-name { font-size: 14px; font-weight: 700; margin: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ach-card .ach-rarity { position: static; font-size: 10.5px; letter-spacing: .6px; text-transform: uppercase; font-weight: 700; color: var(--rc); white-space: nowrap; }
.ach-card .ach-desc { font-size: 12.5px; color: var(--text-dim); margin-top: 2px; }
.ach-card.locked .ach-name { color: var(--text-dim); }
.ach-prog { height: 4px; border-radius: 2px; background: rgba(255,255,255,.07); margin-top: 9px; overflow: hidden; }
.ach-prog i { display: block; height: 100%; background: var(--rc); border-radius: 2px; }
.ach-val { font-size: 11.5px; color: var(--text-muted); margin-top: 5px; font-variant-numeric: tabular-nums; }

/* Popups */
.modal-bg { background: rgba(0,0,0,.72); backdrop-filter: blur(14px) saturate(120%); -webkit-backdrop-filter: blur(14px) saturate(120%); }
.modal { max-width: 860px; border-radius: 22px; padding: 32px 36px 36px; box-shadow: 0 40px 120px rgba(0,0,0,.7); background: #141418; }
.modal-banner { margin: 0 -36px 22px; aspect-ratio: 16 / 7; }
.mb-logo { left: 36px; }
.modal .modal-meta { margin-bottom: 20px; }
.modal .modal-meta:empty { display: none; }
.modal-stats { gap: 10px; margin-bottom: 24px; }
.modal-stat { background: rgba(255,255,255,.04); border: 1px solid var(--border); border-radius: 14px; padding: 14px; }
.modal-stat .v { color: #fff; font-size: 30px; }
.modal-stat .l { color: var(--text-dim); letter-spacing: .5px; }
.modal-close { background: rgba(0,0,0,.5); border-color: rgba(255,255,255,.14); backdrop-filter: blur(8px); }
.modal-close:hover { background: rgba(255,255,255,.15); border-color: rgba(255,255,255,.25); }
.ep-item { background: rgba(255,255,255,.03); border: 1px solid transparent; }
.ep-item:hover { background: rgba(255,255,255,.06); }
.ep-se { background: rgba(255,255,255,.08); color: #fff; border-color: rgba(255,255,255,.12); }
/* Tages-Popup: Banner nebeneinander */
.modal-banner.day { display: flex; aspect-ratio: 16 / 6; background: #0b0b0d; }
.modal-banner.day .day-bg { position: relative; flex: 1; inset: auto; }
.modal-banner.day .day-bg + .day-bg { border-left: 2px solid #141418; }
.modal-banner.day .mb-shade { background: linear-gradient(to top, #141418 0%, rgba(20,20,24,.6) 40%, rgba(20,20,24,.1) 80%); }
.day-head { position: absolute; left: 36px; bottom: 18px; display: flex; flex-direction: column; text-shadow: 0 2px 14px rgba(0,0,0,.8); }
.day-head span { font-size: 14px; color: var(--text-dim); text-transform: capitalize; }
.day-head b { font-family: 'Bebas Neue', sans-serif; font-weight: 400; font-size: 46px; line-height: 1; letter-spacing: .5px; }
.day-group { display: flex; gap: 14px; padding: 10px; border-radius: 14px; cursor: pointer; transition: background .15s; }
.day-group:hover { background: rgba(255,255,255,.05); }
.poster.dg-poster { width: 54px; border-radius: 6px; font-size: 13px; align-self: flex-start; }
.dg-body { min-width: 0; flex: 1; }
.dg-head { display: flex; justify-content: space-between; gap: 10px; font-size: 15px; margin: 2px 0 8px; }
.dg-head span { color: var(--text-dim); font-variant-numeric: tabular-nums; }
.dg-eps { display: flex; flex-wrap: wrap; gap: 6px; }
.dg-eps span { font-size: 12.5px; color: var(--text-dim); background: rgba(255,255,255,.05); border-radius: 8px; padding: 4px 8px; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dg-eps .ep-se { font-style: normal; margin-right: 6px; padding: 1px 5px; font-size: 10.5px; }
@media (max-width: 640px) {
  .modal { padding: 22px 20px 26px; }
  .modal-banner { margin: 0 -20px 16px; }
  .day-head { left: 20px; } .day-head b { font-size: 34px; }
  .modal-banner.day .day-bg:nth-child(3) { display: none; }
}

/* Story: Banner als Hintergrund, Desktop groß mit Pfeilen */
.story-bg { background: #000; }
.story-bg::before { content: ''; position: absolute; inset: -40px; background: var(--story-amb, none) center / cover; filter: blur(50px) saturate(1.2); opacity: .45; transition: background-image .6s; }
.story-frame { box-shadow: 0 30px 120px rgba(0,0,0,.8); }
.story-slide { padding: 70px 30px 90px; overflow: hidden; }
.story-slide.with-bg { background: #0b0b0d; }
.story-slide.with-bg::before { content: ''; position: absolute; inset: 0; background: var(--story-bg) center / cover no-repeat; transform: scale(1.04); }
.story-slide::after { content: ''; position: absolute; inset: 0; pointer-events: none; }
.story-slide.with-bg::after { background: linear-gradient(to bottom, rgba(0,0,0,.25), rgba(0,0,0,.65) 45%, rgba(0,0,0,.9)); }
.story-slide.with-bg.s1::after { background: linear-gradient(160deg, rgba(229,9,20,.75), rgba(10,0,0,.88) 70%); }
.story-slide.with-bg.s2::after { background: linear-gradient(160deg, rgba(120,40,200,.72), rgba(8,0,14,.9) 70%); }
.story-slide.with-bg.s3::after { background: linear-gradient(160deg, rgba(0,140,200,.65), rgba(0,6,14,.9) 70%); }
.story-slide.with-bg.s5::after { background: linear-gradient(160deg, rgba(200,120,0,.6), rgba(12,6,0,.9) 70%); }
.story-slide.with-bg.s6::after { background: linear-gradient(160deg, rgba(229,9,20,.55), rgba(0,0,0,.92) 70%); }
.story-slide.with-bg.s7::after { background: linear-gradient(to bottom, rgba(0,0,0,.35), rgba(0,0,0,.92)); }
.story-slide.s7 { background: linear-gradient(135deg, #2a0a0d, #050505); }
.story-in { position: relative; z-index: 1; width: 100%; display: flex; flex-direction: column; align-items: center; text-shadow: 0 2px 20px rgba(0,0,0,.55); }
.story-big { max-width: 100%; overflow-wrap: normal; word-break: keep-all; hyphens: none; }
.story-big.title { font-size: clamp(40px, 12vw, 84px); line-height: .95; }
.story-eyebrow { font-weight: 600; }
.story-arrow { display: none; }
@media (min-width: 900px) {
  .story-frame { height: min(92vh, 900px); max-height: none; width: calc(min(92vh, 900px) * 9 / 16); max-width: none; }
  .story-arrow { display: grid; place-items: center; position: absolute; top: 50%; transform: translateY(-50%); z-index: 3;
    width: 52px; height: 52px; border-radius: 50%; border: 1px solid rgba(255,255,255,.18); background: rgba(255,255,255,.08);
    color: #fff; font-size: 30px; line-height: 1; cursor: pointer; backdrop-filter: blur(10px); transition: background .15s; }
  .story-arrow:hover { background: rgba(255,255,255,.18); }
  .story-arrow.prev { left: calc(50% - min(92vh, 900px) * 9 / 32 - 84px); }
  .story-arrow.next { right: calc(50% - min(92vh, 900px) * 9 / 32 - 84px); }
}
/* Trophäen: Seltenheit über dem Namen statt daneben (Namen wurden abgeschnitten) */
.ach-top { display: flex; flex-direction: column-reverse; align-items: flex-start; gap: 1px; }
.ach-card .ach-name { white-space: normal; }
/* Story liegt über der globalen Leiste (Schließen-Knopf war verdeckt) */
.story-bg { z-index: 2147483002; }
