/**
 * ==============================================================================
 * DragondarnDE - Streaming Mediathek (css/mediathek.css)
 * ==============================================================================
 * Next-Gen Streaming UI im Stil von Netflix, Disney+, Apple TV+ & YouTube:
 *  - Deep Obsidian Cinema Canvas mit lebendigen Dragon-Fire Ember Akzenten
 *  - Frosted Glassmorphism mit hardwarebeschleunigtem Backdrop-Filter & Inset-Lichtkanten
 *  - Großes Billboard Hero Feature mit filmischem Vignette-Backdrop & Dynamic Glow
 *  - Horizontale Content-Rails mit sanftem Momentum-Slider & Glass-Paddles
 *  - Widescreen 16:9 Streaming Cards mit Rich-Hover, Quick-Play & Status-Badges
 *  - High-End Katalog mit Glassmorphic Control Panel, Segment-Filtern, Chips & Live-Suche
 *  - Moderner Kinoplayer mit Ambient Glow, animiertem Equalizer, Queue-Drawer & Drachen-Rang
 *  - Interaktives Netflix-Style Detail- & Episoden-Modal sowie Spotlight Live-Suche
 *  - Vollständig responsive für Desktop, Tablet und Smartphones (kein Horizontales Overflow)
 * ==============================================================================
 */

/* ------------------------------------------------------------------------------
   0. DESIGN TOKENS & FARB-SYSTEM
   ------------------------------------------------------------------------------ */
:root {
  --site-nav-height: 64px;

  /* Canvas & Hintergründe */
  --stream-bg: #06080d;
  --stream-bg-alt: #0a0d16;
  --stream-bg-elevated: #0f1422;
  --stream-surface: rgba(14, 18, 30, 0.76);
  --stream-surface-card: #0f1424;
  --stream-surface-hover: #161d33;
  --stream-surface-glass: rgba(16, 22, 36, 0.72);
  --stream-surface-glass-active: rgba(22, 30, 48, 0.88);

  /* Rahmen & Glanzkanten */
  --stream-border: rgba(255, 255, 255, 0.08);
  --stream-border-light: rgba(255, 255, 255, 0.14);
  --stream-border-hover: rgba(255, 87, 34, 0.48);
  --stream-border-active: rgba(255, 87, 34, 0.85);
  --stream-glass-highlight: inset 0 1px 0 rgba(255, 255, 255, 0.12);

  /* Drachenfeuer & Streaming Akzentfarben */
  --stream-primary: #ff5722;
  --stream-primary-hover: #ff7043;
  --stream-primary-glow: rgba(255, 87, 34, 0.42);
  --stream-fire-gradient: linear-gradient(135deg, #ff5722 0%, #ea580c 50%, #f59e0b 100%);
  --stream-fire-gradient-hover: linear-gradient(135deg, #ff7043 0%, #ff5722 50%, #fbbf24 100%);

  --stream-amber: #f59e0b;
  --stream-amber-glow: rgba(245, 158, 11, 0.35);
  --stream-emerald: #10b981;
  --stream-emerald-glow: rgba(16, 185, 129, 0.35);
  --stream-cyan: #06b6d4;
  --stream-cyan-glow: rgba(6, 182, 212, 0.35);
  --stream-purple: #8b5cf6;
  --stream-purple-glow: rgba(139, 92, 246, 0.35);
  --stream-red: #ef4444;
  --stream-red-glow: rgba(239, 68, 68, 0.35);

  /* Typografie & Textfarben */
  --stream-text: #f8fafc;
  --stream-text-muted: #94a3b8;
  --stream-text-dim: #64748b;
  --stream-text-accent: #ff8a65;

  /* Radien */
  --stream-radius-xs: 4px;
  --stream-radius-sm: 8px;
  --stream-radius: 14px;
  --stream-radius-lg: 20px;
  --stream-radius-xl: 26px;
  --stream-radius-pill: 9999px;

  /* Tiefen & Schatten */
  --stream-shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.4);
  --stream-shadow: 0 12px 36px -6px rgba(0, 0, 0, 0.7);
  --stream-shadow-card: 0 8px 24px rgba(0, 0, 0, 0.5);
  --stream-shadow-hover: 0 18px 45px -4px rgba(0, 0, 0, 0.85), 0 0 26px var(--stream-primary-glow);
  --stream-shadow-modal: 0 32px 85px rgba(0, 0, 0, 0.95), 0 0 50px rgba(255, 87, 34, 0.18);

  /* Performance-Optimierte Transitions */
  --stream-transition-fast: 0.16s cubic-bezier(0.16, 1, 0.3, 1);
  --stream-transition: 0.24s cubic-bezier(0.16, 1, 0.3, 1);
  --stream-transition-smooth: 0.36s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ------------------------------------------------------------------------------
   1. ALLGEMEINE BASIS- & LAYOUT-STILE
   ------------------------------------------------------------------------------ */
body.mediathek-body {
  background-color: var(--stream-bg);
  color: var(--stream-text);
  overflow-x: clip;
  font-family: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.mediathek-viewport {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  background:
    radial-gradient(circle at 50% -80px, #182035 0%, rgba(13, 17, 28, 0.8) 35%, var(--stream-bg) 75%),
    linear-gradient(180deg, var(--stream-bg) 0%, #040508 100%);
  overflow-x: clip;
}

/* Haupt-Nav Integration in der Mediathek */
body.mediathek-body .navbar::after {
  display: none !important;
}

body.mediathek-body .brand-pulse-dot {
  display: none !important;
}

body.mediathek-body .navbar,
body.mediathek-body .navbar.scrolled {
  position: relative !important;
  top: auto !important;
  height: 64px !important;
  min-height: 64px !important;
  max-height: 64px !important;
  padding: 0 !important;
  display: flex !important;
  align-items: center !important;
  background: rgba(6, 8, 13, 0.98) !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06) !important;
  box-shadow: none !important;
  z-index: 1005 !important;
}

body.mediathek-body .navbar-container {
  height: 100% !important;
}

body.mediathek-body .nav-user-widget {
  position: relative;
  z-index: 1010;
}

body.mediathek-body .user-dropdown-menu {
  z-index: 1060;
}

/* ------------------------------------------------------------------------------
   2. STREAMING SUB-NAVIGATION BAR (Netflix / Disney+ / Apple TV Style)
   ------------------------------------------------------------------------------ */
.stream-nav-bar {
  position: sticky;
  top: 0 !important;
  margin-top: 0;
  z-index: 990;
  background: rgba(6, 9, 15, 0.98);
  transform: translate3d(0, 0, 0);
  backface-visibility: hidden;
  perspective: 1000px;
  contain: layout style;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 10px 32px rgba(0, 0, 0, 0.65);
  transition: background-color var(--stream-transition), border-color var(--stream-transition);
}

.stream-nav-bar::after {
  content: "";
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg,
      transparent 0%,
      rgba(255, 87, 34, 0.45) 20%,
      rgba(245, 158, 11, 0.65) 50%,
      rgba(255, 87, 34, 0.45) 80%,
      transparent 100%);
  pointer-events: none;
}

.stream-nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.7rem 2rem;
  max-width: 1720px;
  margin: 0 auto;
  gap: 1.25rem;
  flex-wrap: wrap;
}

/* Brand Pill & Live Counter */
.stream-brand-wrap {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.stream-brand-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.88rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #ffffff;
  background: linear-gradient(135deg, rgba(255, 87, 34, 0.18) 0%, rgba(245, 158, 11, 0.12) 100%);
  border: 1px solid rgba(255, 87, 34, 0.38);
  padding: 0.42rem 1.05rem;
  border-radius: var(--stream-radius-pill);
  box-shadow: 0 0 18px rgba(255, 87, 34, 0.18), var(--stream-glass-highlight);
  text-decoration: none;
  transition: transform var(--stream-transition-fast), border-color var(--stream-transition-fast), box-shadow var(--stream-transition-fast);
}

.stream-brand-badge:hover {
  transform: translateY(-1px);
  border-color: rgba(255, 87, 34, 0.65);
  box-shadow: 0 0 24px rgba(255, 87, 34, 0.35), var(--stream-glass-highlight);
}

.stream-brand-badge i {
  color: var(--stream-primary);
  font-size: 0.95rem;
  filter: drop-shadow(0 0 8px rgba(255, 87, 34, 0.65));
}

.stream-stats-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--stream-text-muted);
  background: rgba(255, 255, 255, 0.04);
  padding: 0.38rem 0.85rem;
  border-radius: var(--stream-radius-pill);
  border: 1px solid rgba(255, 255, 255, 0.08);
  user-select: none;
  box-shadow: var(--stream-glass-highlight);
}

.stream-stats-badge strong {
  color: #fff;
  font-weight: 700;
}

.stream-stats-badge .status-dot {
  display: none !important;
}

/* Streaming Tabs Segment (Start, Gesamter Katalog, Weiterschauen, Merkliste) */
.stream-tabs-list {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  background: rgba(11, 15, 25, 0.94);
  padding: 0.32rem;
  border-radius: var(--stream-radius-pill);
  border: 1px solid rgba(255, 255, 255, 0.09);
  box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.5), var(--stream-glass-highlight);
}

.stream-tab-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.5rem 1.15rem;
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--stream-text-muted);
  background: transparent;
  border: 1px solid transparent;
  border-radius: var(--stream-radius-pill);
  cursor: pointer;
  transition: all var(--stream-transition);
  white-space: nowrap;
  user-select: none;
}

.stream-tab-btn:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.08);
}

.stream-tab-btn.active {
  color: #ffffff;
  background: var(--stream-fire-gradient);
  border-color: rgba(255, 255, 255, 0.22);
  box-shadow: 0 4px 18px rgba(255, 87, 34, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.3);
  transform: scale(1.02);
}

.stream-tab-badge {
  background: rgba(0, 0, 0, 0.45);
  color: #ffffff;
  font-size: 0.72rem;
  padding: 0.12rem 0.52rem;
  border-radius: var(--stream-radius-pill);
  font-weight: 700;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.stream-tab-btn.active .stream-tab-badge {
  background: rgba(0, 0, 0, 0.35);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.3);
}

/* Nav Actions (Search, Shuffle, Kinoplayer Jump, Shortcuts) */
.stream-nav-actions {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.stream-action-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  height: 38px;
  padding: 0 0.95rem;
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--stream-text-muted);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: var(--stream-radius-pill);
  cursor: pointer;
  transition: all var(--stream-transition);
  text-decoration: none;
  user-select: none;
  box-shadow: var(--stream-glass-highlight);
}

.stream-action-btn:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.09);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.45), var(--stream-glass-highlight);
}

.stream-action-btn.primary {
  background: var(--stream-fire-gradient);
  border-color: rgba(255, 255, 255, 0.25);
  color: #ffffff;
  box-shadow: 0 4px 18px var(--stream-primary-glow), inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.stream-action-btn.primary:hover {
  background: var(--stream-fire-gradient-hover);
  box-shadow: 0 6px 24px rgba(255, 87, 34, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.4);
  transform: translateY(-2px);
}

.stream-nav-kbd {
  font-size: 0.68rem;
  font-family: inherit;
  font-weight: 700;
  padding: 1px 5px;
  border-radius: 4px;
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: var(--stream-text-dim);
  line-height: 1.2;
}

.stream-action-btn:hover .stream-nav-kbd {
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.32);
}

/* ------------------------------------------------------------------------------
   3. BILLBOARD HERO BANNER (Cinematic Feature Experience)
   ------------------------------------------------------------------------------ */
.billboard-hero {
  position: relative;
  width: 100%;
  min-height: 700px;
  max-height: 880px;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  background: #030407;
  transition: min-height 0.3s ease;
}

@media (min-width: 1400px) {
  .billboard-hero {
    min-height: 760px;
    max-height: 920px;
  }
}

.billboard-backdrop {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center 22%;
  transform: scale(1.02);
  transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.6s ease;
  will-change: transform, opacity;
}

/* Filmische Multi-Stop Vignette & Gradient Overlays (Nahtlose Fusion) */
.billboard-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to top,
      var(--stream-bg) 0%,
      rgba(6, 8, 13, 0.94) 22%,
      rgba(6, 8, 13, 0.65) 50%,
      rgba(6, 8, 13, 0.35) 80%,
      rgba(6, 8, 13, 0.6) 100%),
    linear-gradient(to right,
      rgba(6, 8, 13, 0.98) 0%,
      rgba(6, 8, 13, 0.88) 38%,
      rgba(6, 8, 13, 0.42) 70%,
      rgba(6, 8, 13, 0.15) 100%),
    radial-gradient(circle at 75% 35%, transparent 35%, rgba(6, 8, 13, 0.75) 100%);
  pointer-events: none;
}

/* Dynamischer farbiger Ambient Glow im Hintergrund */
.billboard-hero {
  transform: translate3d(0, 0, 0);
  backface-visibility: hidden;
}

.billboard-hero.hero-offscreen .billboard-ambient-glow {
  opacity: 0 !important;
  visibility: hidden !important;
}

.billboard-ambient-glow {
  position: absolute;
  top: 18%;
  left: 6%;
  width: 700px;
  height: 500px;
  background: radial-gradient(circle, rgba(255, 87, 34, 0.18) 0%, rgba(245, 158, 11, 0.08) 35%, rgba(245, 158, 11, 0.01) 58%, transparent 72%);
  transform: translate3d(0, 0, 0);
  backface-visibility: hidden;
  will-change: opacity;
  contain: strict;
  pointer-events: none;
  z-index: 2;
  transition: background 0.8s ease, opacity 0.6s ease;
}

.billboard-container {
  position: relative;
  z-index: 5;
  width: 100%;
  max-width: 1720px;
  margin: 0 auto;
  padding: 5rem 2.5rem 4.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.85rem;
}

/* Personalisierte Status-Pille (Floating Glass Capsule) */
.billboard-user-strip {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  flex-wrap: wrap;
  padding: 0.45rem 1.15rem;
  background: rgba(12, 16, 28, 0.94);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--stream-radius-pill);
  width: max-content;
  max-width: 100%;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.6), var(--stream-glass-highlight);
  transition: border-color var(--stream-transition), box-shadow var(--stream-transition);
}

.billboard-user-strip:hover {
  border-color: rgba(255, 87, 34, 0.45);
  box-shadow: 0 10px 35px rgba(0, 0, 0, 0.7), 0 0 20px rgba(255, 87, 34, 0.15), var(--stream-glass-highlight);
}

.billboard-user-status {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 0.84rem;
  font-weight: 600;
  color: #f1f5f9;
  letter-spacing: 0.015em;
}

.billboard-carousel-controls {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin-left: 0.4rem;
  padding-left: 0.75rem;
  border-left: 1px solid rgba(255, 255, 255, 0.12);
}

.billboard-indicators {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-right: 0.35rem;
}

.billboard-dot {
  position: relative;
  width: 22px;
  height: 6px;
  border-radius: var(--stream-radius-pill);
  background: rgba(255, 255, 255, 0.2);
  border: none;
  padding: 0;
  cursor: pointer;
  overflow: hidden;
  transition: width 0.25s cubic-bezier(0.16, 1, 0.3, 1), background 0.2s ease, transform 0.2s ease;
  user-select: none;
}

.billboard-dot:hover {
  background: rgba(255, 255, 255, 0.45);
  transform: scaleY(1.3);
}

.billboard-dot.active {
  width: 38px;
  background: rgba(255, 255, 255, 0.25);
  box-shadow: 0 0 10px rgba(255, 87, 34, 0.35);
}

.billboard-dot-progress {
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: 0%;
  background: var(--stream-fire-gradient);
  border-radius: inherit;
  box-shadow: 0 0 6px rgba(255, 87, 34, 0.8);
  pointer-events: none;
}

.billboard-nav-btn {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  cursor: pointer;
  transition: all var(--stream-transition-fast);
}

.billboard-nav-btn:hover {
  background: var(--stream-fire-gradient);
  border-color: rgba(255, 255, 255, 0.35);
  box-shadow: 0 0 14px rgba(255, 87, 34, 0.5);
  transform: scale(1.1);
}

.billboard-slide-counter {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--stream-text-muted);
  min-width: 40px;
  text-align: center;
  font-family: inherit;
  letter-spacing: 0.04em;
}

/* Billboard Content & Typografie */
.billboard-content {
  max-width: 1020px;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.billboard-badges {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-wrap: wrap;
}

.billboard-badge-featured {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.36rem 0.95rem;
  background: var(--stream-fire-gradient);
  color: #ffffff;
  border-radius: var(--stream-radius-pill);
  box-shadow: 0 4px 18px var(--stream-primary-glow), inset 0 1px 0 rgba(255, 255, 255, 0.28);
  transition: all var(--stream-transition);
}

.billboard-badge-featured.resume {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  box-shadow: 0 4px 18px rgba(16, 185, 129, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.28);
}

.billboard-badge-featured.recommended {
  background: linear-gradient(135deg, #8b5cf6 0%, #ec4899 100%);
  box-shadow: 0 4px 18px rgba(139, 92, 246, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.28);
}

.billboard-badge-featured.watchlist {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  box-shadow: 0 4px 18px rgba(245, 158, 11, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.28);
}

.billboard-badge-featured.new {
  background: linear-gradient(135deg, #3b82f6 0%, #06b6d4 100%);
  box-shadow: 0 4px 18px rgba(59, 130, 246, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.28);
}

.billboard-badge-game {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.82rem;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  padding: 0.36rem 0.85rem;
  border-radius: var(--stream-radius-pill);
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: var(--stream-glass-highlight);
}

.billboard-badge-meta {
  font-size: 0.8rem;
  font-weight: 600;
  color: #cbd5e1;
  background: rgba(0, 0, 0, 0.55);
  padding: 0.34rem 0.75rem;
  border-radius: var(--stream-radius-pill);
  border: 1px solid rgba(255, 255, 255, 0.1);
  font-family: monospace;
}

.billboard-title {
  font-size: clamp(2.2rem, 4.4vw, 3.8rem);
  font-weight: 800;
  line-height: 1.15;
  color: #ffffff;
  letter-spacing: -0.025em;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5), 0 8px 30px rgba(0, 0, 0, 0.85);
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.billboard-meta-row {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  color: var(--stream-text-muted);
  font-size: 0.92rem;
  flex-wrap: wrap;
}

.billboard-meta-item {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.billboard-user-reason-text {
  font-size: 0.86rem;
  font-weight: 600;
  color: #fbbf24;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

/* In-Hero Progress Bar */
.billboard-progress-wrap {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  max-width: 520px;
  background: rgba(10, 14, 25, 0.95);
  padding: 0.9rem 1.35rem;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6), var(--stream-glass-highlight);
}

.billboard-progress-bar {
  width: 100%;
  height: 6px;
  background: rgba(255, 255, 255, 0.12);
  border-radius: 9999px;
  overflow: hidden;
}

.billboard-progress-fill {
  height: 100%;
  background: var(--stream-fire-gradient);
  border-radius: 9999px;
  box-shadow: 0 0 14px rgba(255, 87, 34, 0.85);
  transition: width 0.4s ease;
}

.billboard-progress-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.82rem;
  color: #e2e8f0;
  font-weight: 600;
}

.billboard-description {
  font-size: 1.05rem;
  line-height: 1.62;
  color: #cbd5e1;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.9);
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  max-width: 880px;
}

/* Action-Buttons im Hero */
.billboard-actions {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-top: 0.5rem;
  flex-wrap: wrap;
}

.btn-billboard-play {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1.05rem;
  font-weight: 800;
  padding: 0.95rem 2.25rem;
  background: #ffffff;
  color: #06090e;
  border: none;
  border-radius: var(--stream-radius-pill);
  cursor: pointer;
  transition: all var(--stream-transition);
  box-shadow: 0 10px 32px rgba(255, 255, 255, 0.35), 0 0 28px rgba(255, 87, 34, 0.3);
  user-select: none;
}

.btn-billboard-play:hover {
  background: #ffffff;
  color: #000000;
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 14px 40px rgba(255, 255, 255, 0.5), 0 0 35px rgba(255, 87, 34, 0.55);
}

.btn-billboard-play i {
  font-size: 1.15rem;
  color: var(--stream-primary);
  transition: transform var(--stream-transition-fast);
}

.btn-billboard-play:hover i {
  transform: scale(1.18);
}

.btn-billboard-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 0.95rem;
  font-weight: 600;
  padding: 0.88rem 1.65rem;
  background: rgba(16, 21, 35, 0.92);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--stream-radius-pill);
  cursor: pointer;
  transition: all var(--stream-transition);
  user-select: none;
  box-shadow: var(--stream-glass-highlight);
}

.btn-billboard-secondary:hover {
  background: rgba(255, 255, 255, 0.14);
  transform: translateY(-2px);
  border-color: rgba(255, 87, 34, 0.5);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.55), var(--stream-glass-highlight);
}

.btn-billboard-icon {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: rgba(16, 21, 35, 0.92);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.16);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  cursor: pointer;
  transition: all var(--stream-transition);
  box-shadow: var(--stream-glass-highlight);
}

.btn-billboard-icon:hover {
  background: rgba(255, 87, 34, 0.22);
  border-color: var(--stream-primary);
  color: #ff8a65;
  transform: scale(1.1);
  box-shadow: 0 0 24px rgba(255, 87, 34, 0.45);
}

/* ------------------------------------------------------------------------------
   4. CONTENT RAILS & HORIZONTALE CAROUSELS (Netflix / Disney+ Style)
   ------------------------------------------------------------------------------ */
.stream-rails-section {
  position: relative;
  z-index: 10;
  margin-top: -36px;
  padding-bottom: 5rem;
}

/* Dynamische Kategorie-Schnellfilter-Leiste für "Start & Entdecken" */
.stream-home-category-bar-wrap {
  max-width: 1680px;
  margin: 0 auto 2.25rem auto;
  padding: 0 2rem;
  position: relative;
  z-index: 12;
}

.stream-home-category-bar {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding: 0.5rem 0.25rem 0.75rem;
}

.stream-home-category-bar::-webkit-scrollbar {
  display: none;
}

.stream-cat-pill {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.55rem 1.15rem;
  background: rgba(15, 20, 34, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: var(--stream-radius-pill);
  color: #cbd5e1;
  font-size: 0.86rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--stream-transition);
  user-select: none;
  white-space: nowrap;
  box-shadow: var(--stream-glass-highlight);
}

.stream-cat-pill:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 87, 34, 0.48);
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4), var(--stream-glass-highlight);
}

.stream-cat-pill.active {
  background: var(--stream-fire-gradient);
  border-color: rgba(255, 255, 255, 0.28);
  color: #ffffff;
  box-shadow: 0 6px 20px var(--stream-primary-glow), inset 0 1px 0 rgba(255, 255, 255, 0.35);
  transform: translateY(-1px);
}

.stream-cat-pill .pill-badge {
  font-size: 0.72rem;
  padding: 0.12rem 0.52rem;
  border-radius: var(--stream-radius-pill);
  background: rgba(0, 0, 0, 0.4);
  color: inherit;
  font-weight: 700;
}

.stream-cat-pill.active .pill-badge {
  background: rgba(0, 0, 0, 0.32);
  color: #ffffff;
}

/* Rails Container */
.stream-rail {
  position: relative;
  margin-bottom: 3.25rem;
  padding: 0 2rem;
  max-width: 1680px;
  margin-left: auto;
  margin-right: auto;
}

.stream-rail-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 1.25rem;
  padding: 0 0.25rem;
  gap: 1rem;
}

.stream-rail-title-wrap {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.stream-rail-title-row {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  flex-wrap: wrap;
}

.stream-rail-title {
  font-size: 1.35rem;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.015em;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.stream-rail-title i {
  color: var(--stream-primary);
  font-size: 1.2rem;
}

.stream-rail-subtitle {
  font-size: 0.84rem;
  color: var(--stream-text-dim);
  font-weight: 500;
}

.stream-rail-user-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.22rem 0.72rem;
  border-radius: var(--stream-radius-pill);
  background: rgba(255, 255, 255, 0.08);
  color: #e2e8f0;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: var(--stream-glass-highlight);
}

.stream-rail-user-badge.personal {
  background: rgba(236, 72, 153, 0.16);
  border-color: rgba(236, 72, 153, 0.45);
  color: #f472b6;
}

.stream-rail-user-badge.resume {
  background: rgba(16, 185, 129, 0.16);
  border-color: rgba(16, 185, 129, 0.45);
  color: #34d399;
}

.stream-rail-user-badge.watchlist {
  background: rgba(245, 158, 11, 0.16);
  border-color: rgba(245, 158, 11, 0.45);
  color: #fbbf24;
}

.stream-rail-user-badge.history {
  background: rgba(139, 92, 246, 0.16);
  border-color: rgba(139, 92, 246, 0.45);
  color: #c084fc;
}

.stream-rail-user-badge.explore {
  background: rgba(6, 182, 212, 0.16);
  border-color: rgba(6, 182, 212, 0.45);
  color: #38bdf8;
}

.stream-rail-user-badge.hot {
  background: rgba(255, 87, 34, 0.16);
  border-color: rgba(255, 87, 34, 0.45);
  color: #ff8a65;
}

.stream-rail-user-badge.completed {
  background: rgba(16, 185, 129, 0.16);
  border-color: rgba(16, 185, 129, 0.35);
  color: #10b981;
}

.stream-rail-count {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--stream-text-muted);
  background: rgba(255, 255, 255, 0.05);
  padding: 0.22rem 0.65rem;
  border-radius: var(--stream-radius-pill);
  border: 1px solid var(--stream-border);
}

.stream-rail-link {
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--stream-primary);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  transition: all var(--stream-transition);
  cursor: pointer;
}

.stream-rail-link:hover {
  color: #ff8a65;
  transform: translateX(4px);
}

/* Track Wrapper mit Slider-Buttons (Glass Paddles) */
.stream-rail-track-wrap {
  position: relative;
  overflow: visible;
}

.stream-rail-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%) translate3d(0, 0, 0);
  backface-visibility: hidden;
  width: 44px;
  height: 80px;
  background: rgba(10, 14, 25, 0.94);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  cursor: pointer;
  z-index: 20;
  border-radius: 14px;
  transition: opacity var(--stream-transition), background var(--stream-transition), color var(--stream-transition), transform var(--stream-transition);
  opacity: 0;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.7), var(--stream-glass-highlight);
  user-select: none;
}

.stream-rail:hover .stream-rail-arrow {
  opacity: 0.95;
}

.stream-rail-arrow:hover {
  opacity: 1 !important;
  background: var(--stream-fire-gradient);
  border-color: rgba(255, 255, 255, 0.4);
  color: #ffffff;
  transform: translateY(-50%) scale(1.08) translate3d(0, 0, 0);
  box-shadow: 0 12px 34px rgba(255, 87, 34, 0.6);
}

.stream-rail-arrow.left {
  left: 0.25rem;
}

.stream-rail-arrow.right {
  right: 0.25rem;
}

.stream-rail-track {
  display: flex;
  gap: 1.25rem;
  overflow-x: auto;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  padding: 0.85rem 0.25rem 1.75rem;
  scrollbar-width: none;
  -ms-overflow-style: none;
  transform: translate3d(0, 0, 0);
  backface-visibility: hidden;
}

.stream-rail-track::-webkit-scrollbar {
  display: none;
}

/* ------------------------------------------------------------------------------
   5. STREAMING CARD (Widescreen 16:9 Card mit Rich-Hover & Badges)
   ------------------------------------------------------------------------------ */
.stream-card {
  position: relative;
  flex: 0 0 300px;
  width: 300px;
  scroll-snap-align: start;
  background: linear-gradient(180deg, #101524 0%, #090c15 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--stream-radius);
  overflow: hidden;
  cursor: pointer;
  content-visibility: auto;
  contain-intrinsic-size: 300px 250px;
  transform: translate3d(0, 0, 0);
  backface-visibility: hidden;
  transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.24s ease;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5), var(--stream-glass-highlight);
  user-select: none;
  display: flex;
  flex-direction: column;
}

.stream-card:hover {
  transform: translate3d(0, -8px, 0) scale(1.025);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.75), 0 0 20px rgba(255, 87, 34, 0.22);
  border-color: rgba(255, 87, 34, 0.55);
  z-index: 15;
}

/* 16:9 Aspect ratio thumbnail container */
.stream-card-aspect {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #020306;
  overflow: hidden;
  transform: translate3d(0, 0, 0);
  backface-visibility: hidden;
}

.stream-card-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: translate3d(0, 0, 0);
  backface-visibility: hidden;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.stream-card:hover .stream-card-thumb {
  transform: translate3d(0, 0, 0) scale(1.06);
}

/* Inner Vignette Overlay auf dem Thumbnail für 100% Lesbarkeit */
.stream-card-aspect::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.35) 0%, transparent 40%, rgba(0, 0, 0, 0.6) 100%);
  pointer-events: none;
  z-index: 2;
}

/* Card Badges (Duration, Episode, HD, Rank) */
.stream-card-badges {
  position: absolute;
  top: 0.65rem;
  left: 0.65rem;
  right: 0.65rem;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  pointer-events: none;
  z-index: 3;
}

.stream-card-badge-left {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.stream-card-badge-right {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.stream-badge {
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1.25;
  padding: 0.22rem 0.55rem;
  border-radius: var(--stream-radius-sm);
  background: rgba(6, 9, 16, 0.94);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.14);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  vertical-align: middle;
  box-sizing: border-box;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

.stream-badge.rank {
  font-size: 1.15rem;
  font-weight: 900;
  color: #ffb74d;
  background: rgba(0, 0, 0, 0.88);
  border-color: rgba(255, 183, 77, 0.45);
  padding: 0.12rem 0.7rem;
  border-radius: var(--stream-radius-sm);
  box-shadow: 0 4px 14px rgba(255, 87, 34, 0.35);
}

.stream-badge.new {
  background: var(--stream-fire-gradient);
  border-color: rgba(255, 255, 255, 0.3);
  color: #ffffff;
}

.stream-badge.duration {
  background: rgba(0, 0, 0, 0.85);
  font-family: monospace;
  font-weight: 600;
}

/* Card Hover Quick Action Overlay mit pulsierendem Play-Button */
.stream-card-hover-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle, rgba(0, 0, 0, 0.25) 0%, rgba(0, 0, 0, 0.7) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: translate3d(0, 0, 0);
  backface-visibility: hidden;
  transition: opacity 0.25s ease;
  z-index: 4;
}

.stream-card:hover .stream-card-hover-overlay {
  opacity: 1;
}

.btn-card-quick-play {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: var(--stream-fire-gradient);
  border: 2px solid rgba(255, 255, 255, 0.6);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  box-shadow: 0 0 20px rgba(255, 87, 34, 0.65);
  transform: scale(0.85) translate3d(0, 0, 0);
  backface-visibility: hidden;
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.2s ease;
  cursor: pointer;
}

.stream-card:hover .btn-card-quick-play {
  transform: scale(1) translate3d(0, 0, 0);
}

.btn-card-quick-play:hover {
  transform: scale(1.1) translate3d(0, 0, 0) !important;
}

/* Bottom Progress Bar on Card */
.stream-card-progress {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: rgba(255, 255, 255, 0.18);
  z-index: 5;
}

.stream-card-progress-fill {
  height: 100%;
  background: var(--stream-fire-gradient);
  width: 0%;
  transition: width 0.3s ease;
  box-shadow: 0 0 8px rgba(255, 87, 34, 0.8);
}

.stream-card-progress-fill.completed {
  background: #10b981;
  box-shadow: 0 0 8px rgba(16, 185, 129, 0.8);
}

/* Card Body & Info */
.stream-card-body {
  padding: 0.95rem 1rem 0.9rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  flex: 1;
  min-width: 0;
}

.stream-card-title {
  font-size: 0.96rem;
  font-weight: 700;
  line-height: 1.36;
  color: #f8fafc;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color 0.2s ease;
  min-height: 2.65em;
}

.stream-card:hover .stream-card-title {
  color: var(--stream-primary-hover);
}

/* Info Row: Game Badge + Date */
.stream-card-info-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem;
  min-width: 0;
  font-size: 0.78rem;
  color: var(--stream-text-muted);
}

.stream-badge.game {
  background: rgba(255, 87, 34, 0.16);
  color: #ff8a65;
  border-color: rgba(255, 87, 34, 0.35);
  max-width: 175px;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.stream-game-title {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.stream-card-date {
  font-size: 0.76rem;
  color: var(--stream-text-dim);
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  white-space: nowrap;
  flex-shrink: 0;
}

/* Footer Row: Quality Tag + Action Buttons (No Overlapping!) */
.stream-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-top: auto;
  padding-top: 0.55rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.stream-card-quality-tag {
  font-size: 0.72rem;
  font-weight: 700;
  color: #10b981;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  letter-spacing: 0.02em;
}

.stream-card-actions {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  flex-shrink: 0;
}

.btn-card-mini-action {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--stream-border);
  color: var(--stream-text-muted);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  cursor: pointer;
  transition: all var(--stream-transition-fast);
}

.btn-card-mini-action:hover {
  background: rgba(255, 255, 255, 0.16);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.28);
  transform: scale(1.1);
}

/* Differenzierte Farben für Merkliste & Gesehen Status */
.btn-card-mini-action.active {
  color: var(--stream-emerald);
  background: rgba(16, 185, 129, 0.2);
  border-color: rgba(16, 185, 129, 0.5);
  box-shadow: 0 0 10px rgba(16, 185, 129, 0.35);
}

.btn-card-mini-action.active:has(.fa-bookmark),
.btn-card-mini-action.active i.fa-bookmark {
  color: #fbbf24;
}

.btn-card-mini-action.active:has(.fa-bookmark) {
  background: rgba(245, 158, 11, 0.2);
  border-color: rgba(245, 158, 11, 0.5);
  box-shadow: 0 0 10px rgba(245, 158, 11, 0.35);
}

/* ------------------------------------------------------------------------------
   6. SEPARATER TAB: GESAMTER KATALOG (Vollwertige Mediathek Datenbank)
   ------------------------------------------------------------------------------ */
.catalog-tab-content {
  padding: 2.5rem 2rem 5rem;
  max-width: 1680px;
  margin: 0 auto;
}

.catalog-header {
  margin-bottom: 2.25rem;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 1.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 1.75rem;
}

.catalog-titles h2 {
  font-size: clamp(1.85rem, 3.5vw, 2.6rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  color: #ffffff;
  margin: 0 0 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.catalog-titles h2 i {
  color: var(--stream-primary);
  filter: drop-shadow(0 0 12px rgba(255, 87, 34, 0.5));
}

.catalog-titles p {
  color: var(--stream-text-muted);
  font-size: 1.02rem;
  margin: 0;
  max-width: 760px;
  line-height: 1.55;
}

/* Control Hub (Search, Filter, Sort, Chips) mit Glassmorphism */
.catalog-control-panel {
  background: rgba(12, 16, 28, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: var(--stream-radius-lg);
  padding: 1.6rem 1.85rem;
  margin-bottom: 2.5rem;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.7), var(--stream-glass-highlight);
  display: flex;
  flex-direction: column;
  gap: 1.35rem;
}

/* Search Row with Status Tabs */
.catalog-filter-row-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  flex-wrap: wrap;
}

.catalog-search-box {
  position: relative;
  flex: 1;
  min-width: 290px;
}

.catalog-search-box i.fa-magnifying-glass {
  position: absolute;
  left: 1.25rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--stream-text-dim);
  font-size: 1.05rem;
  pointer-events: none;
  transition: color var(--stream-transition-fast);
}

.catalog-search-box:focus-within i.fa-magnifying-glass {
  color: var(--stream-primary);
}

.catalog-search-input {
  width: 100%;
  background: rgba(8, 10, 18, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--stream-radius-pill);
  padding: 0.9rem 3.4rem 0.9rem 3rem;
  font-size: 0.95rem;
  color: #ffffff;
  font-family: inherit;
  transition: all var(--stream-transition);
  box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.5);
}

.catalog-search-input:focus {
  outline: none;
  border-color: var(--stream-primary);
  box-shadow: 0 0 20px rgba(255, 87, 34, 0.35), inset 0 2px 6px rgba(0, 0, 0, 0.5);
  background: rgba(13, 17, 30, 0.96);
}

.catalog-search-actions {
  position: absolute;
  right: 1.15rem;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.catalog-status-tabs {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  background: rgba(8, 11, 20, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 0.32rem;
  border-radius: var(--stream-radius-pill);
  box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.4);
}

.catalog-status-btn {
  background: transparent;
  border: 1px solid transparent;
  padding: 0.52rem 1.15rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--stream-text-muted);
  border-radius: var(--stream-radius-pill);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: all var(--stream-transition-fast);
  user-select: none;
}

.catalog-status-btn:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.07);
}

.catalog-status-btn.active {
  background: linear-gradient(135deg, rgba(255, 87, 34, 0.28) 0%, rgba(245, 158, 11, 0.22) 100%);
  color: #ff9e80;
  border-color: rgba(255, 87, 34, 0.55);
  box-shadow: 0 0 16px rgba(255, 87, 34, 0.25);
}

/* Category Chips Scroll Bar (All existing categories) */
.catalog-chips-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.catalog-chips-scroll {
  display: flex;
  gap: 0.55rem;
  overflow-x: auto;
  scroll-behavior: smooth;
  padding: 0.35rem 0.5rem;
  scrollbar-width: none;
}

.catalog-chips-scroll::-webkit-scrollbar {
  display: none;
}

.catalog-chip-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.48rem 1.05rem;
  font-size: 0.82rem;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.04);
  color: var(--stream-text-muted);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: var(--stream-radius-pill);
  cursor: pointer;
  white-space: nowrap;
  transition: all var(--stream-transition-fast);
  user-select: none;
  box-shadow: var(--stream-glass-highlight);
}

.catalog-chip-btn:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.24);
  transform: translateY(-1px);
}

.catalog-chip-btn.active {
  background: linear-gradient(135deg, rgba(255, 87, 34, 0.28) 0%, rgba(245, 158, 11, 0.22) 100%);
  color: #ff9e80;
  border-color: rgba(255, 87, 34, 0.55);
  box-shadow: 0 0 16px rgba(255, 87, 34, 0.25);
  transform: translateY(-1px);
}

.catalog-chip-count {
  font-size: 0.72rem;
  background: rgba(0, 0, 0, 0.4);
  padding: 0.12rem 0.48rem;
  border-radius: var(--stream-radius-pill);
}

.catalog-chips-nav-btn {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(18, 24, 38, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 5;
  transition: var(--stream-transition);
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
}

.catalog-chips-nav-btn:hover {
  background: var(--stream-primary);
  border-color: var(--stream-primary);
  box-shadow: 0 0 16px var(--stream-primary-glow);
}

/* Secondary Options Row (Dropdown, Sort, Page Size, View Switcher, Counter) */
.catalog-filter-row-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 1.15rem;
}

.catalog-dropdowns-group {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.catalog-select-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.catalog-select-wrap i {
  position: absolute;
  left: 0.85rem;
  color: var(--stream-text-dim);
  font-size: 0.85rem;
  pointer-events: none;
}

.catalog-select {
  appearance: none;
  -webkit-appearance: none;
  background: rgba(10, 14, 24, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #ffffff;
  font-size: 0.85rem;
  font-weight: 500;
  padding: 0.58rem 2.25rem 0.58rem 2.25rem;
  border-radius: var(--stream-radius-pill);
  cursor: pointer;
  transition: all var(--stream-transition-fast);
  font-family: inherit;
  box-shadow: var(--stream-glass-highlight);
}

.catalog-select:focus {
  outline: none;
  border-color: var(--stream-primary);
  box-shadow: 0 0 16px rgba(255, 87, 34, 0.35);
  background: rgba(14, 19, 32, 0.95);
}

.catalog-select-wrap::after {
  content: "\f078";
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  position: absolute;
  right: 0.85rem;
  font-size: 0.68rem;
  color: var(--stream-text-dim);
  pointer-events: none;
}

/* Active Tags */
.catalog-active-tags {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 1.6rem;
}

.catalog-active-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.85rem;
  background: rgba(255, 87, 34, 0.16);
  border: 1px solid rgba(255, 87, 34, 0.35);
  color: #ff8a65;
  font-size: 0.82rem;
  border-radius: var(--stream-radius-pill);
  box-shadow: 0 0 12px rgba(255, 87, 34, 0.2);
}

.catalog-active-tag button {
  background: transparent;
  border: none;
  color: #ff8a65;
  cursor: pointer;
  padding: 0;
  display: flex;
  align-items: center;
  transition: transform var(--stream-transition-fast);
}

.catalog-active-tag button:hover {
  transform: scale(1.2);
  color: #ffffff;
}

.catalog-active-tag.reset-all {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.2);
  color: #f1f5f9;
  cursor: pointer;
  transition: all var(--stream-transition-fast);
}

.catalog-active-tag.reset-all:hover {
  background: rgba(239, 68, 68, 0.22);
  border-color: rgba(239, 68, 68, 0.5);
  color: #fca5a5;
  box-shadow: 0 0 14px rgba(239, 68, 68, 0.35);
  transform: translateY(-1px);
}

/* Catalog View Mode Buttons */
.catalog-view-switcher {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  background: rgba(10, 14, 24, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--stream-radius-pill);
  padding: 0.25rem;
}

.catalog-view-btn {
  background: transparent;
  border: none;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  color: var(--stream-text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--stream-transition-fast);
}

.catalog-view-btn:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
}

.catalog-view-btn.active {
  background: var(--stream-fire-gradient);
  color: #ffffff;
  box-shadow: 0 2px 10px rgba(255, 87, 34, 0.4);
}

/* Catalog Grid & List Layouts */
.catalog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 1.5rem;
  min-height: 320px;
}

.catalog-grid .stream-card {
  width: 100%;
  flex: none;
}

/* List View (Kompakte Streaming Liste) */
.catalog-grid.list-view {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.catalog-grid.list-view .stream-card {
  display: flex;
  flex-direction: row;
  align-items: center;
  height: auto;
  min-height: 110px;
  padding: 0.75rem;
  background: linear-gradient(90deg, #101524 0%, #0c101b 100%);
  border-radius: var(--stream-radius);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.45), var(--stream-glass-highlight);
}

.catalog-grid.list-view .stream-card:hover {
  transform: translateX(6px);
  border-color: rgba(255, 87, 34, 0.5);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.75), 0 0 22px rgba(255, 87, 34, 0.25);
}

.catalog-grid.list-view .stream-card-aspect {
  width: 170px;
  height: 96px;
  flex-shrink: 0;
  border-radius: var(--stream-radius-sm);
}

.catalog-grid.list-view .stream-card-body {
  flex: 1;
  padding: 0 1.35rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.45rem;
  min-width: 0;
}

.catalog-grid.list-view .stream-card-title {
  -webkit-line-clamp: 1;
  line-clamp: 1;
  font-size: 1.05rem;
  min-height: auto;
}

.catalog-grid.list-view .stream-card-footer {
  border-top: none;
  padding-top: 0;
  margin-top: 0;
}

/* Pagination Bar */
.stream-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  margin-top: 3.5rem;
  flex-wrap: wrap;
}

.stream-page-btn {
  min-width: 42px;
  height: 42px;
  padding: 0 0.85rem;
  background: rgba(14, 18, 30, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--stream-text-muted);
  border-radius: var(--stream-radius-pill);
  font-size: 0.9rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--stream-transition);
  box-shadow: var(--stream-glass-highlight);
}

.stream-page-btn:hover:not(:disabled) {
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-2px);
}

.stream-page-btn.active {
  background: var(--stream-fire-gradient);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.35);
  box-shadow: 0 0 20px var(--stream-primary-glow), inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.stream-page-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

/* ------------------------------------------------------------------------------
   7. DYNAMISCHES KINOMODUS POPUP (Cinema Modal Player)
   ------------------------------------------------------------------------------ */
.stream-cinema-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 1300;
  background: radial-gradient(ellipse at 50% 35%, rgba(10, 14, 25, 0.98) 0%, rgba(4, 6, 12, 0.99) 65%, #020306 100%);
  transform: translate3d(0, 0, 0);
  backface-visibility: hidden;
  contain: layout style;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem !important;
  box-sizing: border-box;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  overflow-y: hidden;
  overflow-x: hidden;
}

@media (max-width: 768px),
(max-height: 480px) {
  .stream-cinema-modal-overlay {
    overflow-y: auto !important;
  }
}

.stream-cinema-modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

html.cinema-modal-open,
body.cinema-modal-open {
  overflow: hidden !important;
  height: 100% !important;
}

body.cinema-modal-open .mediathek-viewport {
  visibility: hidden !important;
  pointer-events: none !important;
}

.stream-cinema-modal-dialog {
  position: relative;
  width: var(--cinema-dialog-dynamic-w, 95vw);
  max-width: var(--cinema-dialog-max-w, 1950px);
  height: var(--cinema-dialog-h, auto);
  max-height: calc(100dvh - 2.5rem);
  box-sizing: border-box;
  margin: auto;
  display: flex;
  flex-direction: column;
  background: linear-gradient(180deg, #0e1324 0%, #070913 100%);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--stream-radius-lg);
  overflow: hidden;
  box-shadow: var(--stream-shadow-modal);
  transform: scale(0.96) translate3d(0, 12px, 0);
  backface-visibility: hidden;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), width 0.3s cubic-bezier(0.16, 1, 0.3, 1), max-width 0.3s cubic-bezier(0.16, 1, 0.3, 1), height 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.stream-cinema-modal-dialog.cinema-theater-mode {
  max-width: var(--cinema-dialog-max-w, 1950px);
  height: var(--cinema-dialog-h, auto);
}

.stream-cinema-modal-overlay.active .stream-cinema-modal-dialog {
  transform: scale(1) translate3d(0, 0, 0);
}

/* Modal Top Bar (Kopfleiste mit Minimieren & Schließen) */
.stream-cinema-modal-top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 1.65rem;
  background: rgba(10, 14, 25, 0.98);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  flex-shrink: 0;
  z-index: 10;
  gap: 1rem;
}

.cinema-modal-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  user-select: none;
}

.cinema-eyebrow-badge {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(255, 87, 34, 0.25) 0%, rgba(245, 158, 11, 0.15) 100%);
  border: 1px solid rgba(255, 87, 34, 0.4);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ff7043;
  font-size: 0.82rem;
  box-shadow: 0 0 12px rgba(255, 87, 34, 0.3);
}

.cinema-eyebrow-text {
  font-size: 0.88rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #f8fafc;
}

.cinema-eyebrow-status {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.66rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 2px 8px;
  border-radius: 9999px;
  background: rgba(255, 87, 34, 0.12);
  color: #ff7043;
  border: 1px solid rgba(255, 87, 34, 0.28);
}

.cinema-eyebrow-live-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #ff5722;
  box-shadow: 0 0 8px #ff5722;
  transform: translate3d(0, 0, 0);
  backface-visibility: hidden;
  will-change: transform, opacity;
  animation: liveDotPulse 1.8s infinite;
}

.cinema-modal-top-actions {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.cinema-top-action-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  height: 34px;
  padding: 0 0.95rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--stream-text-muted);
  border-radius: var(--stream-radius-pill);
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--stream-transition-fast);
  user-select: none;
}

.cinema-top-action-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.25);
  transform: translateY(-1px);
}

.cinema-top-action-btn.cinema-top-close-btn:hover {
  background: rgba(239, 68, 68, 0.2);
  color: #fca5a5;
  border-color: rgba(239, 68, 68, 0.5);
  box-shadow: 0 0 16px rgba(239, 68, 68, 0.35);
}

.cinema-top-kbd {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 18px;
  padding: 0 5px;
  font-size: 0.62rem;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 4px;
  color: #94a3b8;
}

.stream-cinema-stage-wrapper {
  position: relative;
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  overflow: hidden;
}

.cinema-ambient-glow {
  position: absolute;
  top: 10%;
  left: 10%;
  width: 80%;
  height: 80%;
  background: radial-gradient(circle, rgba(255, 87, 34, 0.16) 0%, rgba(245, 158, 11, 0.06) 40%, rgba(245, 158, 11, 0.01) 60%, transparent 75%);
  transform: translate3d(0, 0, 0);
  backface-visibility: hidden;
  will-change: opacity;
  contain: strict;
  pointer-events: none;
  z-index: 1;
}

.stream-cinema-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr var(--cinema-queue-w, 380px);
  width: 100%;
  height: 100%;
  overflow: hidden;
  transition: grid-template-columns 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.stream-cinema-grid.queue-hidden {
  grid-template-columns: 1fr 0px;
}

/* Linke Seite: Leinwand & Toolbar */
.stream-cinema-player-box {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 0;
  background: #000000;
  position: relative;
  overflow: hidden;
}

.stream-player-aspect {
  position: relative;
  width: 100%;
  flex: 1 1 0;
  min-height: 0;
  background: #000000;
  transform: translate3d(0, 0, 0);
  backface-visibility: hidden;
  contain: layout paint;
}

.stream-player-aspect iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
  transform: translate3d(0, 0, 0);
  backface-visibility: hidden;
}

/* Floating Resume Pill (schwebend über dem Video) */
.cinema-floating-pill {
  position: absolute;
  top: 1rem;
  left: 1rem;
  z-index: 30;
  background: rgba(10, 14, 25, 0.96);
  border: 1px solid rgba(255, 87, 34, 0.45);
  border-radius: var(--stream-radius-pill);
  padding: 0.45rem 0.95rem;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 0.8rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.75), 0 0 20px rgba(255, 87, 34, 0.25);
  color: #ffffff;
  transform: translate3d(0, 0, 0);
  backface-visibility: hidden;
  animation: cinemaSlideUpFade 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.cinema-floating-pill.autoplay-pill {
  border-color: rgba(16, 185, 129, 0.5);
  background: rgba(6, 45, 36, 0.94);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.75), 0 0 20px rgba(16, 185, 129, 0.25);
}

.btn-pill-action {
  background: var(--stream-fire-gradient);
  border: none;
  color: #ffffff;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 0.3rem 0.75rem;
  border-radius: var(--stream-radius-pill);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  box-shadow: 0 2px 8px rgba(255, 87, 34, 0.4);
  transition: all var(--stream-transition-fast);
}

.btn-pill-action:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 14px rgba(255, 87, 34, 0.6);
}

/* Player Toolbar unter dem Video */
.cinema-toolbar {
  padding: 0.8rem 1.45rem;
  background: rgba(10, 14, 25, 0.98);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.85rem;
  flex-wrap: nowrap;
  flex-shrink: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  min-width: 0;
}

.cinema-video-info {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  min-width: 0;
  flex: 1;
  overflow: hidden;
}

.cinema-video-title {
  font-size: 1.18rem;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.015em;
  line-height: 1.25;
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.6);
}

.cinema-video-meta {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 0.8rem;
  color: var(--stream-text-muted);
  white-space: nowrap;
  overflow: visible;
  padding: 3px 0;
  min-width: 0;
  min-height: 28px;
}

#cinema-game-badge,
.cinema-video-meta .stream-badge.game {
  max-width: 250px;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  vertical-align: middle;
  line-height: 1.25;
  padding: 0.25rem 0.65rem;
  box-sizing: border-box;
  flex-shrink: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#cinema-game-badge .stream-game-title,
.cinema-video-meta .stream-badge.game .stream-game-title {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  display: inline-block;
  vertical-align: middle;
  max-width: 200px;
  line-height: inherit;
}

.cinema-meta-item {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.cinema-quality-pill {
  border-radius: 9999px;
  font-weight: 700;
  border: 1px solid rgba(16, 185, 129, 0.35);
  box-shadow: 0 0 10px rgba(16, 185, 129, 0.15);
  padding: 0.15rem 0.55rem;
  font-size: 0.72rem;
}

.cinema-mode-controls {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  flex-shrink: 0;
  flex-wrap: nowrap;
}

.cinema-ctrl-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  height: 34px;
  padding: 0 0.8rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #cbd5e1;
  border-radius: var(--stream-radius-pill);
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--stream-transition-fast);
  text-decoration: none;
  user-select: none;
  white-space: nowrap;
}

.cinema-ctrl-btn:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.26);
  transform: translateY(-1px);
}

.cinema-ctrl-btn.active {
  background: rgba(16, 185, 129, 0.18);
  color: #34d399;
  border-color: rgba(16, 185, 129, 0.45);
  box-shadow: 0 0 14px rgba(16, 185, 129, 0.25);
}

.cinema-ctrl-btn.cinema-queue-toggle-btn.active {
  background: rgba(255, 87, 34, 0.18);
  color: #ff7043;
  border-color: rgba(255, 87, 34, 0.45);
  box-shadow: 0 0 14px rgba(255, 87, 34, 0.28);
}

.cinema-ctrl-kbd {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 17px;
  height: 17px;
  padding: 0 4px;
  font-size: 0.6rem;
  font-weight: 700;
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 4px;
  color: #94a3b8;
  font-family: inherit;
}

.cinema-ctrl-btn:hover .cinema-ctrl-kbd {
  border-color: rgba(255, 255, 255, 0.35);
  color: #ffffff;
}

.cinema-yt-link-btn {
  color: #f87171 !important;
}

.cinema-yt-link-btn:hover {
  background: rgba(239, 68, 68, 0.2) !important;
  border-color: rgba(239, 68, 68, 0.5) !important;
  color: #fca5a5 !important;
  box-shadow: 0 0 14px rgba(239, 68, 68, 0.3) !important;
}

/* Switch Bar (Autoplay, Skip Watched, Mini-dock, Seek) */
.cinema-switch-bar {
  padding: 0.6rem 1.45rem;
  background: rgba(7, 10, 18, 0.98);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem 1rem;
  flex-wrap: wrap;
  flex-shrink: 0;
  font-size: 0.82rem;
}

.cinema-switch-group {
  display: flex;
  align-items: center;
  gap: 1.15rem;
  flex-wrap: wrap;
}

.cinema-switch-label {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  color: #cbd5e1;
  font-weight: 500;
  cursor: pointer;
  user-select: none;
  white-space: nowrap;
  transition: color var(--stream-transition-fast);
}

.cinema-switch-label:hover {
  color: #ffffff;
}

.cinema-switch-text {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.82rem;
}

.cinema-switch {
  position: relative;
  display: inline-block;
  width: 38px;
  height: 22px;
  flex-shrink: 0;
}

.cinema-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.cinema-slider {
  position: absolute;
  cursor: pointer;
  inset: 0;
  background-color: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.14);
  transition: all var(--stream-transition-fast);
  border-radius: var(--stream-radius-pill);
}

.cinema-slider:before {
  position: absolute;
  content: "";
  height: 16px;
  width: 16px;
  left: 2px;
  bottom: 2px;
  background-color: #ffffff;
  transition: all var(--stream-transition-fast);
  border-radius: 50%;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.45);
}

.cinema-switch-fire input:checked+.cinema-slider {
  background: var(--stream-fire-gradient);
  border-color: rgba(255, 87, 34, 0.7);
  box-shadow: 0 0 12px rgba(255, 87, 34, 0.45);
}

.cinema-switch-emerald input:checked+.cinema-slider {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  border-color: rgba(16, 185, 129, 0.7);
  box-shadow: 0 0 12px rgba(16, 185, 129, 0.45);
}

.cinema-switch-sky input:checked+.cinema-slider {
  background: linear-gradient(135deg, #38bdf8 0%, #0284c7 100%);
  border-color: rgba(56, 189, 248, 0.7);
  box-shadow: 0 0 12px rgba(56, 189, 248, 0.45);
}

.cinema-switch input:checked+.cinema-slider:before {
  transform: translateX(16px);
}

.cinema-switch-actions {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  flex-shrink: 0;
  flex-wrap: nowrap;
}

.cinema-seek-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  height: 30px;
  padding: 0 0.75rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #cbd5e1;
  border-radius: var(--stream-radius-pill);
  font-size: 0.76rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--stream-transition-fast);
  user-select: none;
  white-space: nowrap;
}

.cinema-seek-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.25);
  transform: translateY(-1px);
}

.cinema-shortcuts-info-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  height: 30px;
  padding: 0 0.65rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--stream-text-muted);
  border-radius: var(--stream-radius-pill);
  font-size: 0.76rem;
  cursor: pointer;
  transition: all var(--stream-transition-fast);
}

.cinema-shortcuts-info-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.25);
}

/* ==============================================================================
   YOUTUBE-EIGENE VOR- & RÜCKSPUL-FUNKTION (Native Ripple Overlay & Animation)
   ============================================================================== */
.yt-native-seek-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 25;
  overflow: hidden;
  display: flex;
}

.yt-seek-ripple-container {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 44%;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  background: transparent !important;
  transition: opacity 0.22s cubic-bezier(0.4, 0, 0.2, 1);
}

.yt-seek-ripple-left {
  left: 0;
}

.yt-seek-ripple-right {
  right: 0;
}

.yt-seek-ripple-bg {
  display: none !important;
}

.yt-seek-ripple-container.active {
  opacity: 1;
}

.yt-seek-ripple-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  user-select: none;
}

.yt-seek-chevrons {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.95)) drop-shadow(0 0 4px rgba(0, 0, 0, 0.9));
}

.yt-seek-chevron {
  width: 32px;
  height: 32px;
  opacity: 0.45;
  transition: opacity 0.15s ease, transform 0.15s ease;
}

/* Pulsierende YouTube Chevron-Welle (Rechts: c1 -> c2 -> c3) */
.yt-seek-ripple-container.active.pulse .yt-seek-chevrons.right .c1 {
  animation: ytChevronPulseRight 0.65s infinite 0.0s ease-in-out;
}
.yt-seek-ripple-container.active.pulse .yt-seek-chevrons.right .c2 {
  animation: ytChevronPulseRight 0.65s infinite 0.12s ease-in-out;
}
.yt-seek-ripple-container.active.pulse .yt-seek-chevrons.right .c3 {
  animation: ytChevronPulseRight 0.65s infinite 0.24s ease-in-out;
}

/* Pulsierende YouTube Chevron-Welle (Links: c3 -> c2 -> c1) */
.yt-seek-ripple-container.active.pulse .yt-seek-chevrons.left .c3 {
  animation: ytChevronPulseLeft 0.65s infinite 0.0s ease-in-out;
}
.yt-seek-ripple-container.active.pulse .yt-seek-chevrons.left .c2 {
  animation: ytChevronPulseLeft 0.65s infinite 0.12s ease-in-out;
}
.yt-seek-ripple-container.active.pulse .yt-seek-chevrons.left .c1 {
  animation: ytChevronPulseLeft 0.65s infinite 0.24s ease-in-out;
}

@keyframes ytChevronPulseRight {
  0% {
    opacity: 0.35;
    transform: translateX(0);
  }
  35% {
    opacity: 1;
    transform: translateX(4px);
  }
  70% {
    opacity: 0.35;
    transform: translateX(0);
  }
  100% {
    opacity: 0.35;
    transform: translateX(0);
  }
}

@keyframes ytChevronPulseLeft {
  0% {
    opacity: 0.35;
    transform: translateX(0);
  }
  35% {
    opacity: 1;
    transform: translateX(-4px);
  }
  70% {
    opacity: 0.35;
    transform: translateX(0);
  }
  100% {
    opacity: 0.35;
    transform: translateX(0);
  }
}

.yt-seek-text {
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0.3px;
  color: #ffffff;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.95), 0 0 5px rgba(0, 0, 0, 0.9);
  white-space: nowrap;
}

/* ------------------------------------------------------------------------------
   8. PLAYLIST & EPISODEN QUEUE (Rechte Seite des Players)
   ------------------------------------------------------------------------------ */
.stream-cinema-queue {
  background: #0b0f1b;
  border-left: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 0;
  max-height: 100%;
  overflow: hidden;
  width: var(--cinema-queue-w, 380px);
}

.cinema-queue-header {
  padding: 1rem 1.25rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(255, 255, 255, 0.02);
  gap: 0.5rem;
}

.cinema-queue-header-info {
  min-width: 0;
  flex: 1;
}

.cinema-queue-title {
  font-size: 0.95rem;
  font-weight: 800;
  color: #ffffff;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cinema-queue-count {
  font-size: 0.74rem;
  color: var(--stream-text-muted);
  margin-top: 2px;
}

.cinema-queue-header-actions {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  flex-shrink: 0;
}

.cinema-queue-nav-btn {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #cbd5e1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.78rem;
  cursor: pointer;
  transition: all var(--stream-transition-fast);
}

.cinema-queue-nav-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.25);
  transform: translateY(-1px);
}

.cinema-queue-nav-btn.cinema-queue-close-btn:hover {
  background: rgba(239, 68, 68, 0.2);
  color: #fca5a5;
  border-color: rgba(239, 68, 68, 0.45);
}

.cinema-queue-toolbar {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 0.85rem 1.25rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(0, 0, 0, 0.35);
}

.cinema-queue-search-wrap {
  position: relative;
  width: 100%;
}

.cinema-queue-search-wrap i {
  position: absolute;
  left: 0.85rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--stream-text-dim);
  font-size: 0.8rem;
  pointer-events: none;
}

.cinema-queue-search-wrap input {
  width: 100%;
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--stream-radius-pill);
  padding: 0.48rem 1rem 0.48rem 2.25rem;
  font-size: 0.8rem;
  color: #ffffff;
  transition: var(--stream-transition-fast);
}

.cinema-queue-search-wrap input:focus {
  outline: none;
  border-color: var(--stream-primary);
  background: rgba(0, 0, 0, 0.75);
  box-shadow: 0 0 12px rgba(255, 87, 34, 0.25);
}

.cinema-queue-sort-bar {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.cinema-queue-sort-wrap {
  position: relative;
  flex: 1;
  display: flex;
  align-items: center;
}

.cinema-queue-sort-wrap i {
  position: absolute;
  left: 0.85rem;
  color: var(--stream-primary);
  font-size: 0.75rem;
  pointer-events: none;
  z-index: 2;
}

.cinema-queue-sort-select {
  width: 100%;
  appearance: none;
  -webkit-appearance: none;
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--stream-radius-pill);
  color: #ffffff;
  font-size: 0.78rem;
  font-weight: 500;
  padding: 0.45rem 1.8rem 0.45rem 2.15rem;
  cursor: pointer;
  transition: var(--stream-transition-fast);
  font-family: inherit;
}

.cinema-queue-sort-select:focus {
  outline: none;
  border-color: var(--stream-primary);
  background: rgba(0, 0, 0, 0.75);
}

.cinema-queue-sort-wrap::after {
  content: "\f078";
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  position: absolute;
  right: 0.85rem;
  font-size: 0.65rem;
  color: var(--stream-text-dim);
  pointer-events: none;
}

/* Active Episode Equalizer Animation */
.cinema-queue-playing-pill {
  position: absolute;
  inset: 0;
  background: rgba(8, 11, 20, 0.88);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  z-index: 3;
}

.cinema-eq-bar {
  display: inline-block;
  width: 3px;
  background: linear-gradient(180deg, #ff7043 0%, #f59e0b 100%);
  border-radius: 2px;
  transform: translate3d(0, 0, 0);
  backface-visibility: hidden;
  will-change: transform;
  animation: cinemaEqPulse 1.2s ease-in-out infinite;
}

.cinema-eq-bar.bar-1 {
  height: 16px;
  animation-delay: 0.1s;
}

.cinema-eq-bar.bar-2 {
  height: 22px;
  animation-delay: 0.3s;
}

.cinema-eq-bar.bar-3 {
  height: 14px;
  animation-delay: 0.5s;
}

@keyframes cinemaEqPulse {

  0%,
  100% {
    transform: scaleY(0.4) translate3d(0, 0, 0);
    opacity: 0.65;
  }

  50% {
    transform: scaleY(1) translate3d(0, 0, 0);
    opacity: 1;
  }
}

.cinema-queue-list {
  flex: 1 1 0;
  overflow-y: auto;
  min-height: 0;
  padding: 0.65rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  contain: layout;
}

.cinema-queue-list::-webkit-scrollbar {
  width: 5px;
}

.cinema-queue-list::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.2);
}

.cinema-queue-list::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.15);
  border-radius: 9999px;
}

.cinema-queue-list::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 87, 34, 0.45);
}

.cinema-queue-item {
  display: flex;
  gap: 0.85rem;
  padding: 0.65rem;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-left: 3px solid transparent;
  cursor: pointer;
  transform: translate3d(0, 0, 0);
  backface-visibility: hidden;
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.2s ease, border-color 0.2s ease;
  user-select: none;
  content-visibility: auto;
  contain-intrinsic-size: 300px 75px;
}

.cinema-queue-item:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.18);
  transform: translate3d(4px, 0, 0);
}

.cinema-queue-item.active {
  background: rgba(255, 87, 34, 0.14);
  border-color: rgba(255, 87, 34, 0.45);
  border-left: 3px solid #ff5722;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.5), 0 0 25px rgba(255, 87, 34, 0.18);
}

.cinema-queue-item-thumb {
  position: relative;
  width: 104px;
  aspect-ratio: 16 / 9;
  border-radius: 8px;
  overflow: hidden;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
  background: #000000;
  transform: translate3d(0, 0, 0);
  backface-visibility: hidden;
}

.cinema-queue-item-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cinema-queue-thumb-dur {
  position: absolute;
  bottom: 4px;
  right: 4px;
  background: rgba(0, 0, 0, 0.85);
  color: #ffffff;
  font-size: 0.66rem;
  font-weight: 700;
  padding: 1px 5px;
  border-radius: 4px;
  letter-spacing: 0.02em;
  z-index: 2;
}

.cinema-queue-watched-badge {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: rgba(16, 185, 129, 0.92);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.6rem;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.5);
  z-index: 2;
}

.cinema-queue-thumb-progress {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 3px;
  background: var(--stream-fire-gradient);
  border-radius: 0 2px 2px 0;
  z-index: 3;
}

.cinema-queue-item-info {
  flex: 1;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.cinema-queue-item-title {
  font-size: 0.84rem;
  font-weight: 600;
  color: #ffffff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin: 0 0 0.35rem;
}

.cinema-queue-ep-idx {
  color: var(--stream-primary);
  font-weight: 700;
  font-size: 0.76rem;
  margin-right: 4px;
}

.cinema-queue-item-meta {
  font-size: 0.72rem;
  color: var(--stream-text-muted);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.cinema-queue-active-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--stream-primary);
  font-weight: 700;
  margin-left: auto;
}

.cinema-active-pulse {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #ff5722;
  box-shadow: 0 0 6px #ff5722;
}

.cinema-queue-watched-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: #34d399;
  font-weight: 600;
  margin-left: auto;
}

/* ------------------------------------------------------------------------------
   8b. DRACHEN-RANG FORTSCHRITT IM KINOPLAYER (Cinema Player Dragon Rank UI)
   ------------------------------------------------------------------------------ */

/* 1. Top Bar Rank Button & Progress Pill */
.cinema-top-rank-container {
  display: flex;
  align-items: center;
  position: relative;
}

.cinema-top-rank-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  height: 34px;
  padding: 0 0.85rem 0 0.45rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--stream-radius-pill);
  cursor: pointer;
  transition: var(--stream-transition);
  color: #ffffff;
  font-family: inherit;
  user-select: none;
}

.cinema-top-rank-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 112, 67, 0.5);
  box-shadow: 0 0 16px rgba(255, 87, 34, 0.25);
  transform: translateY(-1px);
}

.cinema-top-rank-btn.active {
  background: rgba(255, 87, 34, 0.15);
  border-color: #ff7043;
  box-shadow: 0 0 20px rgba(255, 87, 34, 0.4);
}

.cinema-top-rank-icon-wrap {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(255, 87, 34, 0.25);
  color: #ff7043;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  flex-shrink: 0;
  transition: transform 0.25s ease;
}

.cinema-top-rank-btn:hover .cinema-top-rank-icon-wrap {
  transform: scale(1.15) rotate(-5deg);
}

.cinema-top-rank-text-group {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
}

.cinema-top-rank-title {
  font-size: 0.78rem;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.cinema-top-rank-mini-bar {
  width: 72px;
  height: 4px;
  background: rgba(255, 255, 255, 0.12);
  border-radius: 2px;
  overflow: hidden;
}

.cinema-top-rank-mini-fill {
  height: 100%;
  border-radius: 2px;
  background: var(--stream-fire-gradient);
  box-shadow: 0 0 8px rgba(255, 87, 34, 0.6);
  transition: width 0.4s ease;
}

.cinema-top-rank-badge-pct {
  font-size: 0.72rem;
  font-weight: 800;
  color: #fbbf24;
  background: rgba(245, 158, 11, 0.15);
  border: 1px solid rgba(245, 158, 11, 0.3);
  padding: 1px 6px;
  border-radius: 9999px;
  white-space: nowrap;
}

.cinema-top-rank-arrow {
  font-size: 0.65rem;
  color: var(--stream-text-dim);
  transition: transform 0.25s ease;
  margin-left: 2px;
}

.cinema-top-rank-btn.active .cinema-top-rank-arrow {
  transform: rotate(180deg);
  color: #ffffff;
}

/* 2. Popover / Dropdown Drachen-Rang Card */
.cinema-dragon-rank-card {
  position: absolute;
  top: 56px;
  right: 1.25rem;
  z-index: 50;
  width: 420px;
  max-width: calc(100% - 2.5rem);
  background: rgba(12, 16, 28, 0.98);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--stream-radius-lg);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.9), 0 0 40px rgba(255, 87, 34, 0.22);
  overflow: hidden;
  animation: cinemaRankCardIn 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes cinemaRankCardIn {
  from {
    opacity: 0;
    transform: translate3d(0, -10px, 0) scale(0.96);
  }

  to {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
  }
}

.cinema-rank-card-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.25rem 1.45rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.02);
}

.cinema-rank-card-badge-visual {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(255, 87, 34, 0.25) 0%, rgba(245, 158, 11, 0.18) 100%);
  border: 1px solid rgba(255, 87, 34, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  color: #ff7043;
  box-shadow: 0 0 16px rgba(255, 87, 34, 0.3);
  flex-shrink: 0;
}

.cinema-rank-card-title-wrap {
  flex: 1;
  min-width: 0;
}

.cinema-rank-card-tag-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 2px;
}

.cinema-rank-card-tag {
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--stream-primary);
}

.cinema-rank-live-indicator {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.65rem;
  font-weight: 600;
  color: var(--stream-text-dim);
}

.live-pulse-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #64748b;
}

.cinema-rank-live-indicator.active .live-pulse-dot {
  background: #10b981;
  box-shadow: 0 0 8px #10b981;
  transform: translate3d(0, 0, 0);
  backface-visibility: hidden;
  will-change: transform, opacity;
  animation: liveDotPulse 1.8s infinite;
}

@keyframes liveDotPulse {

  0%,
  100% {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
  }

  50% {
    opacity: 0.4;
    transform: translate3d(0, 0, 0) scale(0.85);
  }
}

.cinema-rank-card-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: #ffffff;
  margin: 0;
  line-height: 1.25;
}

.cinema-rank-card-reward-name {
  font-size: 0.78rem;
  font-weight: 600;
  color: #f59e0b;
  display: inline-block;
  margin-top: 2px;
}

.cinema-rank-card-close-btn {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--stream-border);
  color: var(--stream-text-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  transition: var(--stream-transition);
  flex-shrink: 0;
}

.cinema-rank-card-close-btn:hover {
  background: rgba(239, 68, 68, 0.2);
  color: #f87171;
  border-color: rgba(239, 68, 68, 0.4);
}

.cinema-rank-card-progress-section {
  padding: 1.15rem 1.45rem;
  background: rgba(0, 0, 0, 0.28);
  border-bottom: 1px solid var(--stream-border);
}

.cinema-rank-card-progress-labels {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.55rem;
}

.cinema-rank-card-progress-step {
  font-size: 0.78rem;
  color: var(--stream-text-muted);
  font-weight: 600;
}

.cinema-rank-card-progress-pct {
  font-size: 1rem;
  font-weight: 800;
  color: #fbbf24;
}

.cinema-rank-card-progress-track {
  width: 100%;
  height: 9px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 9999px;
  overflow: hidden;
  position: relative;
}

.cinema-rank-card-progress-fill {
  height: 100%;
  border-radius: 9999px;
  background: var(--stream-fire-gradient);
  box-shadow: 0 0 12px rgba(255, 87, 34, 0.6);
  transition: width 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
}

.cinema-rank-progress-glow {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.45), transparent);
  transform: translate3d(0, 0, 0);
  backface-visibility: hidden;
  will-change: transform;
  animation: shimmerGlow 2.5s infinite;
}

@keyframes shimmerGlow {
  0% {
    transform: translate3d(-100%, 0, 0);
  }

  100% {
    transform: translate3d(200%, 0, 0);
  }
}

.cinema-rank-card-progress-hint {
  margin-top: 0.65rem;
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.78rem;
  color: #e2e8f0;
  font-weight: 500;
}

.cinema-rank-card-stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.65rem;
  padding: 1rem 1.45rem;
  border-bottom: 1px solid var(--stream-border);
}

.cinema-rank-stat-box {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--stream-radius-sm);
  padding: 0.6rem 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.cinema-rank-stat-label {
  font-size: 0.7rem;
  color: var(--stream-text-dim);
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.cinema-rank-stat-val {
  font-size: 0.88rem;
  font-weight: 700;
  color: #ffffff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cinema-rank-guest-banner {
  padding: 0.85rem 1.45rem;
  background: rgba(56, 189, 248, 0.08);
  border-bottom: 1px solid rgba(56, 189, 248, 0.2);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.cinema-rank-guest-text {
  font-size: 0.75rem;
  color: #bae6fd;
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.cinema-rank-guest-btn {
  background: #0284c7;
  color: #ffffff;
  border: none;
  padding: 0.45rem 0.85rem;
  border-radius: var(--stream-radius-sm);
  font-size: 0.76rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--stream-transition);
  text-align: center;
  font-family: inherit;
}

.cinema-rank-guest-btn:hover {
  background: #0369a1;
  box-shadow: 0 0 14px rgba(2, 132, 199, 0.4);
}

.cinema-rank-card-footer {
  padding: 0.75rem 1.45rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(7, 9, 14, 0.6);
}

.cinema-rank-roadmap-link {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--stream-primary);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  transition: var(--stream-transition);
}

.cinema-rank-roadmap-link:hover {
  color: var(--stream-primary-hover);
  text-decoration: underline;
}

.cinema-rank-shortcut-hint {
  font-size: 0.72rem;
  color: var(--stream-text-dim);
}

.cinema-rank-shortcut-hint kbd {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 1px 5px;
  border-radius: 4px;
  font-size: 0.7rem;
  color: var(--stream-text-muted);
}

/* ------------------------------------------------------------------------------
   9. INTERAKTIVES DETAIL- & EPISODEN-MODAL (Netflix Quick-View)
   ------------------------------------------------------------------------------ */
.stream-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 1250;
  background: rgba(0, 0, 0, 0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  transform: translate3d(0, 0, 0);
  backface-visibility: hidden;
}

.stream-modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.stream-modal-card {
  position: relative;
  width: 100%;
  max-width: 880px;
  max-height: 90vh;
  background: #0f1424;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--stream-radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.95), var(--stream-glass-highlight);
  transform: translateY(20px) scale(0.97);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.stream-modal-overlay.active .stream-modal-card {
  transform: translateY(0) scale(1);
}

.stream-modal-close-btn {
  position: absolute;
  top: 1.15rem;
  right: 1.15rem;
  z-index: 20;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--stream-transition);
}

.stream-modal-close-btn:hover {
  background: var(--stream-primary);
  border-color: var(--stream-primary);
  transform: scale(1.1);
  box-shadow: 0 0 16px var(--stream-primary-glow);
}

/* Modal Hero Backdrop */
.stream-modal-hero {
  position: relative;
  width: 100%;
  height: 330px;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: flex-end;
  padding: 2.25rem;
}

.stream-modal-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, #0f1424 0%, rgba(15, 20, 36, 0.65) 50%, rgba(0, 0, 0, 0.5) 100%);
}

.stream-modal-hero-content {
  position: relative;
  z-index: 5;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.stream-modal-body {
  padding: 1.75rem 2.25rem 2.25rem;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.stream-modal-episodes-list {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  max-height: 290px;
  overflow-y: auto;
  padding-right: 4px;
}

.stream-modal-episodes-list::-webkit-scrollbar {
  width: 5px;
}

.stream-modal-episodes-list::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.2);
}

.stream-modal-episodes-list::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.15);
  border-radius: 9999px;
}

/* ------------------------------------------------------------------------------
   10. STICKY FLOATING MINI-PLAYER (beim Scrollen)
   ------------------------------------------------------------------------------ */
@keyframes cinemaSlideUpFade {
  from {
    opacity: 0;
    transform: translate3d(0, 16px, 0);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

.cinema-mini-dock {
  position: fixed;
  bottom: 1.75rem;
  right: 1.75rem;
  z-index: 1100;
  width: 320px;
  background: rgba(12, 16, 28, 0.98);
  transform: translate3d(0, 0, 0);
  backface-visibility: hidden;
  contain: layout style;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.85), 0 0 25px rgba(255, 87, 34, 0.2);
  display: none;
  animation: cinemaSlideUpFade 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.cinema-mini-dock:hover {
  transform: translate3d(0, -2px, 0);
  border-color: rgba(255, 87, 34, 0.45);
}

/* Back-To-Top Button sanft anheben wenn Sticky Mini-Player aktiv ist */
body.has-mini-dock .btn-back-to-top {
  bottom: calc(1.75rem + 235px);
}

@media (max-width: 900px) {
  body.has-mini-dock .btn-back-to-top {
    bottom: calc(1rem + 185px);
  }
}

.cinema-mini-aspect {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000000;
  cursor: pointer;
}

.cinema-mini-header {
  padding: 0.75rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(255, 255, 255, 0.02);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.cinema-mini-title {
  font-size: 0.82rem;
  font-weight: 700;
  color: #ffffff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 190px;
}

.cinema-mini-actions {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.cinema-mini-btn {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--stream-text-muted);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.74rem;
  transition: var(--stream-transition-fast);
}

.cinema-mini-btn:hover {
  background: rgba(255, 255, 255, 0.16);
  color: #ffffff;
}

/* ------------------------------------------------------------------------------
   11. WEITERSCHAUEN & MERKLISTE TAB CONTENT
   ------------------------------------------------------------------------------ */
.stream-history-tab,
.stream-watchlist-tab {
  padding: 2.5rem 2rem 5rem;
  max-width: 1680px;
  margin: 0 auto;
}

.stream-empty-state {
  text-align: center;
  padding: 5rem 1rem;
  color: var(--stream-text-muted);
}

.stream-empty-icon {
  font-size: 3.5rem;
  color: var(--stream-text-dim);
  margin-bottom: 1.25rem;
  display: inline-block;
}

/* ------------------------------------------------------------------------------
   12. GLOBAL SEARCH RESULTS & SPOTLIGHT OVERLAY
   ------------------------------------------------------------------------------ */
.global-search-result-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.85rem 1.15rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--stream-border);
  border-radius: var(--stream-radius);
  cursor: pointer;
  transition: var(--stream-transition);
}

.global-search-result-item:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--stream-border-hover);
  transform: translateX(4px);
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.45);
}

.global-search-result-thumb {
  width: 104px;
  aspect-ratio: 16 / 9;
  border-radius: var(--stream-radius-sm);
  overflow: hidden;
  flex-shrink: 0;
  position: relative;
  background: #000000;
}

.global-search-result-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.global-search-result-info {
  flex: 1;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.global-search-result-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: #ffffff;
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.global-search-result-meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.8rem;
  color: var(--stream-text-muted);
}

/* Shortcuts Modal Responsive Grid */
.stream-shortcuts-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

@media (max-width: 480px) {
  .stream-shortcuts-grid {
    grid-template-columns: 1fr;
    gap: 0.55rem;
  }
}

/* ------------------------------------------------------------------------------
   13. RESPONSIVE BREAKPOINTS (Desktop, Tablet & Smartphone)
   ------------------------------------------------------------------------------ */
body.mediathek-body .cookie-floating-trigger {
  bottom: 1.25rem;
  left: 1.25rem;
  opacity: 0.65;
  transition: opacity var(--stream-transition-fast), transform var(--stream-transition-fast);
  z-index: 920;
}

body.mediathek-body .cookie-floating-trigger:hover {
  opacity: 1;
  transform: scale(1.05);
}

@media (max-width: 1200px) {
  .stream-card {
    flex: 0 0 260px;
    width: 260px;
  }
}

@media (max-width: 1024px) {
  .stream-nav-container {
    padding: 0.65rem 1.25rem;
  }

  .billboard-hero {
    min-height: 560px;
  }

  .billboard-title {
    font-size: 2.5rem;
  }

  .stream-cinema-grid {
    grid-template-columns: 1fr 320px;
  }
}

@media (max-width: 768px) {
  .stream-nav-bar {
    background: rgba(6, 9, 15, 0.98) !important;
  }

  .stream-rails-section {
    margin-top: 0;
  }

  .stream-nav-container {
    padding: 0.55rem 0.85rem;
    gap: 0.5rem;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
  }

  .stream-brand-wrap {
    order: 1;
    flex: 0 0 auto;
  }

  .stream-stats-badge {
    display: none;
  }

  .stream-nav-actions {
    order: 2;
    display: flex;
    align-items: center;
    gap: 0.35rem;
    margin-left: auto;
  }

  .stream-nav-actions .stream-nav-kbd {
    display: none;
  }

  .stream-action-btn {
    height: 36px;
    padding: 0 0.65rem;
    font-size: 0.82rem;
  }

  .stream-action-btn span {
    display: none;
  }

  .stream-action-btn.primary {
    padding: 0 0.85rem;
  }

  .stream-action-btn.primary span {
    display: inline;
    font-size: 0.78rem;
  }

  .stream-tabs-list {
    order: 3;
    width: 100%;
    margin-top: 0.2rem;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    justify-content: flex-start;
    padding: 0.28rem;
    border-radius: var(--stream-radius-pill);
    gap: 0.25rem;
  }

  .stream-tabs-list::-webkit-scrollbar {
    display: none;
  }

  .stream-tab-btn {
    padding: 0.45rem 0.85rem;
    font-size: 0.8rem;
    flex-shrink: 0;
  }

  .billboard-hero {
    min-height: 480px;
  }

  .billboard-ambient-glow {
    max-width: 100vw;
    width: 100%;
    left: 0;
  }

  .billboard-container {
    padding: 2.25rem 1rem 2.5rem;
    gap: 1.15rem;
  }

  .billboard-title {
    font-size: 1.85rem;
  }

  .billboard-actions {
    flex-wrap: wrap;
    gap: 0.75rem;
  }

  .catalog-filter-row-top {
    flex-direction: column;
    align-items: stretch;
  }

  .catalog-status-tabs {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .catalog-status-tabs::-webkit-scrollbar {
    display: none;
  }

  .catalog-dropdowns-group {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.55rem;
    width: 100%;
  }

  .catalog-select-wrap {
    width: 100%;
  }

  .catalog-select {
    width: 100%;
  }

  .catalog-filter-row-bottom {
    flex-direction: column;
    align-items: stretch;
    gap: 0.85rem;
  }

  .catalog-tab-content,
  .stream-history-tab,
  .stream-watchlist-tab {
    padding: 1.5rem 1rem 4rem;
  }

  .stream-rail {
    padding: 0 1rem;
    margin-bottom: 2.25rem;
  }

  .stream-home-category-bar-wrap {
    padding: 0 1rem;
  }

  /* Cinema Modal Mobile */
  .stream-cinema-modal-overlay {
    padding: 0.5rem;
  }

  .stream-cinema-modal-dialog {
    width: 96vw !important;
    max-width: 100% !important;
    height: auto !important;
    max-height: calc(100dvh - 1rem) !important;
    overflow-y: auto !important;
    border-radius: 16px;
  }

  .stream-cinema-stage-wrapper {
    overflow: visible !important;
    height: auto !important;
    flex: none !important;
  }

  .stream-cinema-grid {
    display: flex !important;
    flex-direction: column !important;
    height: auto !important;
    overflow: visible !important;
    grid-template-columns: 1fr !important;
  }

  .stream-cinema-player-box {
    width: 100% !important;
    height: auto !important;
    flex: none !important;
    overflow: visible !important;
  }

  .stream-player-aspect {
    width: 100% !important;
    aspect-ratio: 16 / 9 !important;
    height: auto !important;
    max-height: 48vh !important;
    min-height: 200px !important;
  }

  .stream-cinema-queue {
    width: 100% !important;
    height: 420px !important;
    min-height: 320px !important;
    max-height: 460px !important;
    border-left: none !important;
    border-top: 1px solid rgba(255, 255, 255, 0.1) !important;
    overflow: hidden !important;
  }

  .stream-cinema-modal-top-bar {
    padding: 0.65rem 0.9rem;
    flex-wrap: wrap;
  }

  .cinema-eyebrow-status {
    display: none;
  }

  .cinema-top-rank-container {
    order: 3;
    width: 100%;
    justify-content: center;
    padding-top: 0.4rem;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
  }

  .cinema-video-info {
    max-width: 100%;
  }

  .cinema-video-title {
    font-size: 1.1rem;
  }

  .cinema-toolbar {
    padding: 0.75rem 0.9rem;
    flex-direction: column;
    align-items: stretch;
    gap: 0.65rem;
  }

  .cinema-mode-controls {
    width: 100%;
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 2px;
  }

  .cinema-switch-bar {
    padding: 0.65rem 0.9rem;
    flex-direction: column;
    align-items: stretch;
    gap: 0.65rem;
  }

  .cinema-switch-group {
    width: 100%;
    gap: 0.75rem;
    flex-wrap: wrap;
  }

  .cinema-switch-actions {
    width: 100%;
    justify-content: space-between;
  }

  .cinema-ctrl-btn {
    height: 32px;
    padding: 0 0.55rem;
    font-size: 0.76rem;
  }

  .cinema-mini-dock {
    width: 240px;
    bottom: 1rem;
    right: 1rem;
  }
}

@media (max-width: 580px) {
  :root {
    --site-nav-height: 54px;
  }

  .stream-action-btn.primary span {
    display: none;
  }

  .stream-action-btn.primary {
    padding: 0 0.75rem;
  }

  .billboard-hero {
    min-height: 440px;
  }

  .billboard-container {
    padding: 1.75rem 0.95rem 2.25rem;
    gap: 1rem;
  }

  .billboard-title {
    font-size: clamp(1.4rem, 6vw, 1.85rem);
    line-height: 1.22;
  }

  .billboard-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.65rem;
    width: 100%;
  }

  .billboard-actions .btn-billboard-play {
    grid-column: 1 / -1;
    width: 100%;
    justify-content: center;
    min-height: 48px;
  }

  .billboard-actions .btn-billboard-secondary {
    width: 100%;
    justify-content: center;
    min-height: 42px;
    font-size: 0.85rem;
    padding: 0.55rem 0.75rem;
  }

  .billboard-actions .btn-billboard-icon {
    grid-column: 1 / -1;
    width: 100%;
    height: 42px;
    border-radius: var(--stream-radius-pill);
  }

  .stream-card {
    flex: 0 0 220px;
    width: 220px;
  }

  .catalog-grid {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)) !important;
    gap: 0.85rem !important;
  }

  .catalog-dropdowns-group {
    grid-template-columns: 1fr;
  }

  .catalog-control-panel {
    padding: 1.15rem 1rem;
    border-radius: var(--stream-radius);
  }

  .stream-modal-card {
    width: 95vw !important;
    max-height: calc(100dvh - 1.5rem) !important;
    padding: 1.25rem 1rem !important;
  }
}

@media (max-width: 380px) {
  .stream-card {
    flex: 0 0 185px;
    width: 185px;
  }

  .stream-brand-badge span {
    font-size: 0.8rem;
  }
}