/* ==========================================================================
   SATOSHI CYBERPUNK TYPOGRAPHY
   ========================================================================== */
@font-face {
  font-family: 'Satoshi';
  src: url('fonts/satoshi/Satoshi-Regular.woff2') format('woff2'),
       url('fonts/Satoshi-Regular.woff2') format('woff2');
  font-weight: 300 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Satoshi';
  src: url('fonts/satoshi/Satoshi-Medium.woff2') format('woff2'),
       url('fonts/Satoshi-Medium.woff2') format('woff2');
  font-weight: 500 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Satoshi';
  src: url('fonts/satoshi/Satoshi-Bold.woff2') format('woff2'),
       url('fonts/Satoshi-Bold.woff2') format('woff2');
  font-weight: 700 800 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --font-main: 'Satoshi', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --bg-primary: #07080c;
  --bg-secondary: #0c0f17;
  --bg-card: #111520;
  --bg-card-hover: #181e2b;
  --orange: #ff7700;
  --orange-glow: rgba(255, 119, 0, 0.45);
  --yellow: #ffcc00;
  --yellow-glow: rgba(255, 204, 0, 0.4);
  --gold: #ffaa00;
  --gold-glow: rgba(255, 170, 0, 0.55);
  --cyan: #ffaa00; /* Primary neon switched to Cyberpunk Amber/Gold matching GTA VI & Kein Bild */
  --cyan-glow: rgba(255, 170, 0, 0.45);
  --telemetry-cyan: #ffaa00;
  --pink: #ffaa00;
  --pink-glow: rgba(255, 170, 0, 0.4);
  --purple: #ff7700;
  --text-main: #f4f6fc;
  --text-muted: #94a3b8;
  --border: rgba(255, 170, 0, 0.28);
  --border-active: rgba(255, 170, 0, 0.75);
  --radius: 6px;
  --transition: 0.2s ease;
}

/* Modern macOS-Style Floating Scrollbar (Windows Boxy Bar entfernt) */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.18);
  border-radius: 10px;
  border: 2px solid transparent;
  background-clip: padding-box;
  transition: background 0.2s ease;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 140, 0, 0.6);
  background-clip: padding-box;
}

::-webkit-scrollbar-corner {
  background: transparent;
}

::-webkit-scrollbar-button {
  display: none;
  width: 0;
  height: 0;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.2) transparent;
}

body {
  background-color: var(--bg-primary);
  color: var(--text-main);
  font-family: var(--font-main);
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
}

button, input, select, textarea, optgroup {
  font-family: var(--font-main);
}

/* Cyberpunk Background Grid */
body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-image: 
    linear-gradient(rgba(255, 136, 0, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 136, 0, 0.025) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
  z-index: 0;
}

/* NAVBAR */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(7, 8, 12, 0.85);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 28px;
  gap: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  cursor: pointer;
}

.brand-logo {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  border: 1.5px solid var(--orange);
  background: #0f131a;
  box-shadow: 0 0 14px var(--orange-glow);
  object-fit: cover;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.brand:hover .brand-logo {
  border-color: var(--yellow);
  box-shadow: 0 0 18px var(--yellow-glow);
}

.brand-title {
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: 1.5px;
  background: linear-gradient(135deg, #ffffff 0%, #ffcc00 45%, #ff7700 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-transform: uppercase;
  filter: drop-shadow(0 2px 8px rgba(255, 119, 0, 0.35));
}

.search-box {
  flex: 1;
  max-width: 420px;
  position: relative;
}

/* NAVBAR LANGUAGE FILTER BAR (NEBEN DER SUCHE) */
.nav-lang-bar {
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-lang-btn {
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-muted);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  padding: 0;
  font-size: 1.15rem;
  font-weight: 600;
  cursor: pointer;
  outline: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background-color var(--transition), border-color var(--transition), color var(--transition), box-shadow var(--transition);
}

.nav-lang-btn:hover {
  color: var(--text-main);
  border-color: var(--orange);
  box-shadow: 0 0 10px var(--orange-glow);
}

.nav-lang-btn.active {
  background: rgba(255, 119, 0, 0.16);
  border-color: var(--orange);
  color: var(--yellow);
  box-shadow: 0 0 12px var(--orange-glow);
}

/* CATALOG TOOLBAR (TYP, GENRE, SORTIERUNG - CYBERPUNK TECH CHASSIS) */
.catalog-toolbar {
  margin: 12px 28px 20px 28px;
  padding: 12px 22px;
  background: linear-gradient(135deg, rgba(14, 17, 26, 0.96) 0%, rgba(9, 11, 17, 0.98) 100%);
  border: 1px solid rgba(255, 170, 0, 0.45);
  border-radius: 0;
  clip-path: polygon(
    14px 0%,
    calc(100% - 14px) 0%,
    100% 14px,
    100% calc(100% - 14px),
    calc(100% - 14px) 100%,
    14px 100%,
    0% calc(100% - 14px),
    0% 14px
  );
  box-shadow: 0 0 25px rgba(255, 140, 0, 0.15), inset 0 0 15px rgba(255, 140, 0, 0.04);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.toolbar-section {
  display: flex;
  align-items: center;
  gap: 8px;
}

.toolbar-label {
  font-size: 0.82rem;
  font-weight: 800;
  color: #ffaa00;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.toolbar-pills {
  display: flex;
  gap: 6px;
}

.filter-pill {
  background: rgba(14, 18, 28, 0.8);
  border: 1px solid rgba(255, 170, 0, 0.3);
  color: var(--text-muted);
  padding: 6px 14px;
  border-radius: 0;
  clip-path: polygon(5px 0, calc(100% - 5px) 0, 100% 5px, 100% calc(100% - 5px), calc(100% - 5px) 100%, 5px 100%, 0 calc(100% - 5px), 0 5px);
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  outline: none;
  transition: background-color var(--transition), border-color var(--transition), color var(--transition), box-shadow var(--transition);
}

.filter-pill:hover {
  color: #ffffff;
  border-color: #ffaa00;
  background: rgba(255, 170, 0, 0.12);
}

.filter-pill.active {
  background: linear-gradient(135deg, #ffaa00 0%, #ff7700 100%);
  color: #07080c;
  border-color: #ffaa00;
  font-weight: 800;
  box-shadow: 0 0 14px rgba(255, 170, 0, 0.55);
}

.toolbar-select {
  background: rgba(14, 18, 28, 0.85);
  border: 1px solid rgba(255, 170, 0, 0.35);
  color: var(--text-main);
  padding: 6px 12px;
  border-radius: 0;
  clip-path: polygon(5px 0, calc(100% - 5px) 0, 100% 5px, 100% calc(100% - 5px), calc(100% - 5px) 100%, 5px 100%, 0 calc(100% - 5px), 0 5px);
  font-size: 0.85rem;
  font-weight: 600;
  outline: none;
  cursor: pointer;
}

.toolbar-select:focus {
  border-color: #ffaa00;
  box-shadow: 0 0 12px rgba(255, 170, 0, 0.4);
  transition: border-color var(--transition), box-shadow var(--transition);
}

.toolbar-select:focus,
.toolbar-select:hover {
  border-color: var(--orange);
  box-shadow: 0 0 8px var(--orange-glow);
}

.toolbar-stats {
  margin-left: auto;
}

.search-box input {
  width: 100%;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 10px 85px 10px 42px;
  color: var(--text-main);
  font-size: 0.95rem;
  outline: none;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.search-box input:focus {
  border-color: var(--cyan);
  box-shadow: 0 0 14px var(--cyan-glow);
}

.btn-search-deep-red {
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  background: #e60026;
  border: 1px solid #ff3344;
  color: #ffffff;
  font-size: 0.85rem;
  font-weight: 800;
  padding: 5px 11px;
  border-radius: 16px;
  cursor: pointer;
  box-shadow: 0 0 10px rgba(230, 0, 38, 0.45);
  transition: all var(--transition);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn-search-deep-red:hover {
  background: #ff1a3c;
  box-shadow: 0 0 16px rgba(255, 26, 60, 0.85);
  transform: translateY(-50%) scale(1.05);
}

.search-icon {
  position: absolute;
  left: 15px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-size: 1.1rem;
  pointer-events: none;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-clock-wrapper {
  display: inline-flex;
  align-items: center;
}

.nav-clock-btn {
  background: rgba(255, 170, 0, 0.08);
  border: 1px solid rgba(255, 170, 0, 0.35);
  color: #ffaa00;
  font-family: 'Consolas', 'Courier New', monospace;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  padding: 6px 14px;
  border-radius: 6px;
  cursor: default;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 12px rgba(255, 170, 0, 0.15);
  white-space: nowrap;
  user-select: none;
}

.nav-offline-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 6px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: #fff;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all var(--transition);
}

.nav-offline-btn:hover {
  border-color: var(--cyan);
  box-shadow: 0 0 10px var(--cyan-glow);
}

.offline-badge-pill {
  background: var(--orange);
  color: #07080c;
  font-weight: 800;
  font-size: 0.72rem;
  padding: 1px 6px;
  border-radius: 10px;
  min-width: 18px;
  text-align: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(18, 22, 32, 0.85);
  color: var(--text-main);
  border: 1px solid rgba(255, 119, 0, 0.22);
  border-radius: 6px;
  padding: 8px 16px;
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  outline: none;
  backdrop-filter: blur(8px);
  transition: background-color var(--transition), border-color var(--transition), box-shadow var(--transition), color var(--transition);
}

/* Strict dimension-neutral hover effect: NO layout shift or resizing */
.btn:hover {
  background-color: rgba(255, 119, 0, 0.12);
  border-color: var(--orange);
  color: #ffffff;
  box-shadow: 0 0 14px rgba(255, 119, 0, 0.35);
}

.btn-primary {
  background: linear-gradient(135deg, var(--orange) 0%, #ffa500 100%);
  color: #000000;
  border: none;
  font-weight: 800;
  letter-spacing: 0.3px;
  box-shadow: 0 0 18px rgba(255, 119, 0, 0.45);
}

.btn-primary:hover {
  background: linear-gradient(135deg, #ff8c1a 0%, #ffb733 100%);
  box-shadow: 0 0 28px rgba(255, 119, 0, 0.85);
}

.btn-danger {
  border-color: rgba(255, 70, 70, 0.35);
  color: #ff5555;
}

.btn-danger:hover {
  border-color: #ff4444;
  box-shadow: 0 0 12px rgba(255, 68, 68, 0.4);
}

/* HERO SECTION */
.hero {
  position: relative;
  min-height: 480px;
  margin: 20px 28px;
  border-radius: 0;
  clip-path: polygon(14px 0, calc(100% - 14px) 0, 100% 14px, 100% calc(100% - 14px), calc(100% - 14px) 100%, 14px 100%, 0 calc(100% - 14px), 0 14px);
  overflow: visible;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: stretch;
  padding: 0;
  border: 1.5px solid rgba(255, 170, 0, 0.55);
  box-shadow: 0 12px 45px rgba(0, 0, 0, 0.8), 0 0 35px rgba(255, 150, 0, 0.22);
  background-size: cover;
  background-position: center 25%;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(7, 8, 12, 0.96) 0%, rgba(7, 8, 12, 0.65) 55%, rgba(7, 8, 12, 0.35) 100%);
  pointer-events: none;
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 680px;
  padding: 36px 40px;
}

.hero-badge {
  display: inline-block;
  background: rgba(255, 170, 0, 0.15);
  color: #ffaa00;
  border: 1px solid #ffaa00;
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 12px;
  box-shadow: 0 0 10px rgba(255, 170, 0, 0.3);
}

.hero-cycle-btn {
  background: rgba(18, 22, 32, 0.85);
  border: 1px solid rgba(255, 170, 0, 0.35);
  color: #ffaa00;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.hero-cycle-btn:hover {
  background: rgba(255, 170, 0, 0.15);
  border-color: #ffaa00;
  box-shadow: 0 0 12px rgba(255, 170, 0, 0.4);
}

.hero-title {
  font-size: 2.6rem;
  font-weight: 900;
  margin-bottom: 12px;
  line-height: 1.15;
  color: #ffffff;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.8);
}

.hero-meta {
  display: flex;
  gap: 16px;
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 14px;
}

.hero-overview {
  color: #d1d8e6;
  font-size: 0.96rem;
  line-height: 1.55;
  margin-bottom: 24px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

#hero-play-btn {
  background: linear-gradient(135deg, #ffaa00 0%, #ff8800 100%);
  color: #050608;
  border: none;
  font-weight: 900;
  font-size: 1.05rem;
  letter-spacing: 0.5px;
  padding: 12px 30px;
  border-radius: 4px;
  box-shadow: 0 0 25px rgba(255, 150, 0, 0.65);
  cursor: pointer;
  transition: all 0.2s ease;
}

#hero-play-btn:hover {
  background: linear-gradient(135deg, #ffb733 0%, #ff9900 100%);
  box-shadow: 0 0 38px rgba(255, 150, 0, 0.95);
  color: #000000;
}

/* CATALOG SECTIONS */
.section {
  padding: 24px 28px;
}

.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}

.section-title {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 10px;
}

.section-title::before {
  content: "";
  display: inline-block;
  width: 4px;
  height: 20px;
  background: var(--cyan);
  border-radius: 2px;
  box-shadow: 0 0 8px var(--cyan);
}

/* MEDIA GRID */
.media-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  gap: 20px;
}

.media-card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid rgba(255, 170, 0, 0.22);
  border-radius: 6px;
  overflow: hidden;
  cursor: pointer;
  aspect-ratio: 2 / 3;
  display: flex;
  flex-direction: column;
  transition: border-color var(--transition), box-shadow var(--transition);
}

/* Strict dimension-neutral hover effect: NO layout shift or resizing */
.media-card:hover {
  border-color: #ffaa00;
  box-shadow: 0 0 16px rgba(255, 170, 0, 0.45);
}

.card-poster {
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #111;
  display: block;
}

.card-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 12px;
  background: linear-gradient(180deg, transparent 0%, rgba(7, 8, 12, 0.95) 75%);
  pointer-events: none;
}

.card-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: #ffffff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 4px;
}

.card-info {
  display: flex;
  justify-content: space-between;
  font-size: 0.78rem;
  color: var(--text-muted);
}

.card-rating {
  color: #ffd700;
  font-weight: 600;
}

/* Card Language Flags: Dimensions-neutral (Strict Rule 1 Compliance) */
.card-lang-flags {
  display: flex;
  align-items: center;
  gap: 6px;
  height: 20px;
  min-height: 20px;
  max-height: 20px;
  margin-top: 5px;
  overflow: hidden;
}

.card-lang-flag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  user-select: none;
}

.flag-icon {
  display: inline-block;
  width: 18px;
  height: 12px;
  border-radius: 2px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.7);
  flex-shrink: 0;
  vertical-align: middle;
}

.flag-de {
  background: linear-gradient(to bottom, #111 33.3%, #dd0000 33.3%, #dd0000 66.6%, #ffcc00 66.6%);
}

.flag-th {
  background: linear-gradient(to bottom, #a51931 16.6%, #f4f5f8 16.6%, #f4f5f8 33.3%, #2d2a4a 33.3%, #2d2a4a 66.6%, #f4f5f8 66.6%, #f4f5f8 83.3%, #a51931 83.3%);
}

.flag-en {
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 60 30'%3E%3CclipPath id='s'%3E%3Cpath d='M0,0 v30 h60 v-30 z'/%3E%3C/clipPath%3E%3CclipPath id='t'%3E%3Cpath d='M30,15 h30 v15 z v15 h-30 z h-30 v-15 z v-15 h30 z'/%3E%3C/clipPath%3E%3Cg clip-path='url(%23s)'%3E%3Cpath d='M0,0 v30 h60 v-30 z' fill='%23012169'/%3E%3Cpath d='M0,0 L60,30 M60,0 L0,30' stroke='%23fff' stroke-width='6'/%3E%3Cpath d='M0,0 L60,30 M60,0 L0,30' clip-path='url(%23t)' stroke='%23C8102E' stroke-width='4'/%3E%3Cpath d='M30,0 v30 M0,15 h60' stroke='%23fff' stroke-width='10'/%3E%3Cpath d='M30,0 v30 M0,15 h60' stroke='%23C8102E' stroke-width='6'/%3E%3C/g%3E%3C/svg%3E") center / cover no-repeat;
}

/* CONTINUE WATCHING ROW & CARDS */
.continue-watching-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  gap: 20px;
}

.media-card.continue-card {
  border-color: rgba(255, 170, 0, 0.45);
}

.continue-progress-bar {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: rgba(0, 0, 0, 0.7);
  z-index: 5;
}

.continue-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--orange) 0%, #ffaa00 100%);
  box-shadow: 0 0 8px rgba(255, 170, 0, 0.8);
}

.continue-ep-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 6;
  background: rgba(8, 10, 16, 0.92);
  border: 1px solid #ffaa00;
  color: #ffaa00;
  font-size: 0.72rem;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 4px;
  letter-spacing: 0.5px;
}

.continue-dismiss-btn {
  position: absolute;
  top: 6px;
  right: 6px;
  z-index: 7;
  background: rgba(8, 10, 16, 0.85);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.25);
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}

.media-card:hover .continue-dismiss-btn {
  opacity: 1;
}

.continue-dismiss-btn:hover {
  background: var(--pink);
  border-color: var(--pink);
}

.btn-resume-play {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-top: 6px;
  padding: 5px 12px;
  background: var(--gold);
  color: #000;
  font-size: 0.78rem;
  font-weight: 800;
  border-radius: 4px;
  pointer-events: auto;
  border: none;
  cursor: pointer;
  transition: background 0.15s ease, box-shadow 0.15s ease;
}

.btn-resume-play:hover {
  background: #ffc400;
  box-shadow: 0 0 12px rgba(255, 170, 0, 0.75);
}

/* MODALS */
body:has(.modal-overlay.active),
body.modal-open {
  overflow: hidden !important;
}

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(4, 5, 8, 0.88);
  backdrop-filter: blur(10px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
  overflow: hidden;
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal-card {
  background: var(--bg-secondary);
  border: 1.5px solid rgba(255, 170, 0, 0.65);
  box-shadow: 0 0 50px rgba(255, 150, 0, 0.25), 0 25px 60px rgba(0, 0, 0, 0.95);
  border-radius: 8px;
  width: min(96vw, 1380px);
  max-width: 1380px;
  max-height: 92vh;
  overflow: hidden; /* KEIN SCROLLBAR AUF DEM ÄUSSEREN RAHMEN! */
  position: relative;
  display: flex;
  flex-direction: column;
  contain: paint;
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 24px;
  border-bottom: 1px solid rgba(255, 170, 0, 0.25);
  background: rgba(10, 13, 20, 0.85);
  flex-shrink: 0;
  z-index: 10;
}

.modal-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text-main);
  letter-spacing: 0.3px;
}

.modal-close {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 170, 0, 0.35);
  color: var(--text-main);
  font-size: 1.2rem;
  width: 34px;
  height: 34px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  line-height: 1;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
  user-select: none;
}

.modal-close:hover {
  background: rgba(255, 60, 60, 0.25);
  border-color: #ff5555;
  color: #ffffff;
  box-shadow: 0 0 14px rgba(255, 60, 60, 0.5);
}

.modal-body {
  padding: 18px 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  overflow-x: hidden;
  overflow-y: auto;
  flex: 1 1 auto;
  min-height: 0;
  scrollbar-gutter: stable;
}

.modal-body::-webkit-scrollbar {
  width: 6px;
}

.modal-body::-webkit-scrollbar-thumb {
  background: rgba(255, 170, 0, 0.4);
  border-radius: 3px;
}

.modal-body::-webkit-scrollbar-thumb:hover {
  background: #ffaa00;
}

/* DETAILS MODAL */
.details-layout {
  display: flex;
  gap: 22px;
}

.details-poster {
  width: 170px;
  border-radius: 4px;
  border: 1.5px solid rgba(255, 170, 0, 0.4);
  aspect-ratio: 2 / 3;
  object-fit: cover;
  flex-shrink: 0;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.75);
}

.details-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.details-title {
  font-size: 1.55rem;
  font-weight: 800;
  margin: 0;
}

.details-meta {
  display: flex;
  gap: 12px;
  font-size: 0.9rem;
  color: var(--text-muted);
  align-items: center;
}

.badge {
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 700;
}

.badge-cyan,
.badge-orange {
  background: rgba(255, 119, 0, 0.16);
  color: #ff9922;
  border: 1px solid rgba(255, 119, 0, 0.4);
}

.badge-pink,
.badge-yellow {
  background: rgba(255, 204, 0, 0.16);
  color: #ffcc00;
  border: 1px solid rgba(255, 204, 0, 0.4);
}

.details-overview {
  color: #cfd8e6;
  font-size: 0.95rem;
  line-height: 1.5;
}

/* STREAM LIST */
.streams-section {
  margin-top: 10px;
}

.streams-heading {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.lang-filter-bar {
  display: flex;
  gap: 8px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}

.lang-pill {
  background: rgba(14, 18, 28, 0.9);
  border: 1px solid rgba(255, 170, 0, 0.25);
  color: var(--text-muted);
  padding: 6px 14px;
  border-radius: 6px;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  outline: none;
  transition: background-color var(--transition), border-color var(--transition), color var(--transition), box-shadow var(--transition);
}

.lang-pill:hover {
  color: #ffffff;
  border-color: #ffaa00;
  box-shadow: 0 0 10px rgba(255, 170, 0, 0.35);
}

.lang-pill.active {
  background: rgba(255, 170, 0, 0.16);
  border-color: #ffaa00;
  color: #ffaa00;
  box-shadow: 0 0 14px rgba(255, 170, 0, 0.45);
}

.stream-item {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 10px;
  background: #0c1017;
  border: 1px solid rgba(255, 170, 0, 0.35);
  border-radius: 8px;
  padding: 12px 16px;
  margin-bottom: 9px;
  cursor: pointer;
  transition: background-color var(--transition), border-color var(--transition), box-shadow var(--transition);
  position: relative;
  box-sizing: border-box;
}

.stream-item:hover {
  background-color: #141a26;
  border-color: #ffaa00;
  box-shadow: 0 0 16px rgba(255, 170, 0, 0.45);
}

/* ZEILE 1: INFORMATION (Fav, Qualität, Badges, Dateigröße) */
.stream-row-info {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  gap: 10px;
  min-width: 0;
}

.stream-info-left {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
  min-width: 0;
  flex-wrap: wrap;
}

.stream-quality {
  font-weight: 900;
  font-size: 0.95rem;
  color: #ffaa00;
  flex-shrink: 0;
  text-shadow: 0 0 10px rgba(255, 170, 0, 0.4);
  letter-spacing: 0.5px;
}

.stream-badges-wrap {
  display: inline-flex;
  gap: 5px;
  align-items: center;
  flex-wrap: wrap;
}

.stream-size {
  font-size: 0.92rem;
  color: #ffffff;
  font-weight: 800;
  white-space: nowrap;
  margin-left: auto;
  flex-shrink: 0;
  text-align: right;
  letter-spacing: 0.3px;
}

.stream-name {
  font-size: 0.78rem;
  color: var(--text-muted);
  font-family: monospace;
  word-break: break-all;
  display: none; /* STANDARDMÄSSIG AUSGEBLENDET */
}

#streams-list.show-filenames .stream-name {
  display: block;
  margin: -2px 0 2px 0;
  padding: 4px 8px;
  background: rgba(0, 0, 0, 0.35);
  border-radius: 4px;
}

/* ZEILE 2: BUTTONS & AKTIONEN */
.stream-row-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  flex-wrap: wrap;
  padding-top: 2px;
}

.stream-row-actions .verify-slot {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.stream-row-actions .btn-play-stream {
  flex: 1 1 130px;
  min-width: 115px;
  text-align: center;
  justify-content: center;
}

.stream-row-actions .btn-play-webviu {
  flex: 0 0 auto;
}

.btn-play-stream {
  background: linear-gradient(135deg, #ffaa00 0%, #ff8800 100%) !important;
  color: #050608 !important;
  border: none !important;
  font-weight: 900 !important;
  font-size: 0.88rem !important;
  padding: 8px 18px !important;
  border-radius: 4px !important;
  box-shadow: 0 0 16px rgba(255, 150, 0, 0.55) !important;
  letter-spacing: 0.3px;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s ease;
}

.btn-play-stream:hover {
  background: linear-gradient(135deg, #ffb733 0%, #ff9900 100%) !important;
  box-shadow: 0 0 25px rgba(255, 150, 0, 0.85) !important;
  color: #000000 !important;
}

.btn-verify-audio {
  background: rgba(14, 18, 28, 0.85) !important;
  border: 1px solid rgba(255, 170, 0, 0.4) !important;
  color: #ffaa00 !important;
  border-radius: 4px !important;
  transition: all var(--transition);
}

.btn-verify-audio:hover {
  background: rgba(255, 170, 0, 0.18) !important;
  border-color: #ffaa00 !important;
  box-shadow: 0 0 12px rgba(255, 170, 0, 0.45) !important;
}

.btn-pick-video {
  background: rgba(255, 170, 0, 0.08) !important;
  border: 1px solid rgba(255, 170, 0, 0.35) !important;
  color: #ffaa00 !important;
  border-radius: 4px !important;
  transition: all var(--transition);
}

.btn-pick-video:hover, .btn-pick-video.active {
  background: #ffaa00 !important;
  color: #000 !important;
  border-color: #ffaa00 !important;
}

.btn-pick-audio {
  background: rgba(255, 119, 0, 0.08) !important;
  border: 1px solid rgba(255, 119, 0, 0.35) !important;
  color: var(--orange) !important;
  border-radius: 4px !important;
  transition: all var(--transition);
}

.btn-pick-audio:hover, .btn-pick-audio.active {
  background: var(--orange) !important;
  color: #000 !important;
  border-color: var(--orange) !important;
}

.btn-offline {
  background: rgba(255, 255, 255, 0.05) !important;
  border: 1px solid rgba(255, 255, 255, 0.25) !important;
  color: #e2e8f0 !important;
  border-radius: 4px !important;
  transition: all var(--transition);
}

.btn-offline:hover {
  background: rgba(255, 255, 255, 0.15) !important;
  border-color: #fff !important;
}



.player-header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  padding: 16px 24px;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.8) 0%, transparent 100%);
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 10;
}

.player-video {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* FORM ELEMENTS */
.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 14px;
}

.form-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
}

.form-input {
  background: var(--bg-primary);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 10px 14px;
  color: var(--text-main);
  font-size: 0.95rem;
  outline: none;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.form-input:focus {
  border-color: var(--cyan);
  box-shadow: 0 0 10px var(--cyan-glow);
}

/* STATUS BANNER */
.status-box {
  background: rgba(0, 240, 255, 0.08);
  border: 1px solid var(--cyan);
  border-radius: 8px;
  padding: 14px;
  margin-bottom: 16px;
}

.status-box.error {
  background: rgba(255, 0, 127, 0.08);
  border-color: var(--pink);
}

/* RESPONSIVENESS */
@media (max-width: 768px) {
  .navbar {
    padding: 10px 16px;
  }
  .search-box {
    order: 3;
    max-width: 100%;
    width: 100%;
  }
  .navbar {
    flex-wrap: wrap;
  }
  .hero {
    margin: 12px 16px;
    min-height: 320px;
    padding: 20px;
  }
  .hero-title {
    font-size: 1.6rem;
  }
  .section {
    padding: 16px;
  }
  .details-layout {
    flex-direction: column;
    align-items: center;
  }
  .details-poster {
    width: 160px;
  }

  /* Stream Selection Mobile: Clean 2 Rows (Zeile 1: Info/Fav/1Gb, Zeile 2: Buttons) */
  .stream-item {
    padding: 10px 12px;
    gap: 8px;
    border-radius: 6px;
  }
  .stream-row-info {
    flex-wrap: nowrap;
    gap: 8px;
  }
  .stream-info-left {
    gap: 6px;
  }
  .stream-quality {
    font-size: 0.88rem;
  }
  .stream-badges-wrap .badge {
    font-size: 0.7rem;
    padding: 2px 5px;
  }
  .stream-size {
    font-size: 0.86rem;
    font-weight: 800;
  }
  .stream-row-actions {
    gap: 6px;
    width: 100%;
  }
  .stream-row-actions .btn {
    padding: 6px 9px;
    font-size: 0.76rem;
  }
  .stream-row-actions .btn-play-stream {
    flex: 1 1 120px;
    padding: 8px 12px;
    font-size: 0.82rem;
  }
  .stream-row-actions .btn-pick-source {
    padding: 5px 8px !important;
    font-size: 0.74rem !important;
  }

  /* Continue Watching / Weiterschauen Mobile Touch Rail */
  #continue-watching-section {
    padding: 12px 14px;
    margin-bottom: 8px;
  }
  .continue-watching-grid {
    display: flex !important;
    flex-direction: row !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    gap: 12px !important;
    padding: 4px 2px 12px 2px !important;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
  }
  .continue-watching-grid .media-card.continue-card {
    flex: 0 0 130px !important;
    width: 130px !important;
    min-width: 130px !important;
    scroll-snap-align: start;
  }
  .continue-watching-grid .card-poster {
    height: 185px !important;
    object-fit: cover !important;
  }
}

/* --- ADMIN SPLIT VIEW & CONTROLS --- */
.admin-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 12px 16px;
  margin-bottom: 16px;
  gap: 12px;
  flex-wrap: wrap;
}

.admin-toggle-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  user-select: none;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-main);
}

.toggle-switch {
  position: relative;
  width: 44px;
  height: 24px;
  background: #202430;
  border-radius: 12px;
  border: 1px solid var(--border);
  transition: background 0.2s, border-color 0.2s;
  display: inline-block;
  flex-shrink: 0;
}

.toggle-switch::after {
  content: '';
  position: absolute;
  top: 2px;
  left: 2px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fff;
  transition: transform 0.2s;
}

.toggle-checkbox {
  display: none;
}

.toggle-checkbox:checked + .toggle-switch {
  background: var(--cyan);
  border-color: var(--cyan);
  box-shadow: 0 0 10px var(--cyan-glow);
}

.toggle-checkbox:checked + .toggle-switch::after {
  transform: translateX(20px);
  background: #050811;
}

.admin-create-panel {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 14px;
  margin-bottom: 16px;
}

.admin-split-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

@media (max-width: 820px) {
  .admin-split-grid {
    grid-template-columns: 1fr;
  }
}

.admin-col {
  background: rgba(13, 16, 26, 0.7);
  border: 1px solid var(--border);
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  min-height: 280px;
  overflow: hidden;
}

.admin-col-header {
  padding: 12px 16px;
  background: var(--bg-card);
  border-bottom: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 700;
  font-size: 0.95rem;
}

.admin-col-list {
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: 480px;
  overflow-y: auto;
}

.admin-user-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: border-color 0.2s;
}

.admin-user-card:hover {
  border-color: rgba(0, 240, 255, 0.6);
}

.admin-user-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 8px;
}

.admin-user-info {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.45;
}

.admin-action-box {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-top: 4px;
  flex-wrap: wrap;
}

/* --- FULLSCREEN CYBERPUNK VIDEO PLAYER --- */
.player-overlay {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  background: #000000;
  z-index: 999999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
  overflow: hidden;
}

.player-overlay.active {
  opacity: 1;
  visibility: visible;
  animation: cyberPlayerReveal 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes cyberPlayerReveal {
  0% {
    opacity: 0;
    transform: scale(0.97);
    filter: brightness(1.25) contrast(1.1);
  }
  100% {
    opacity: 1;
    transform: scale(1);
    filter: brightness(1) contrast(1);
  }
}

.player-overlay:fullscreen,
.player-overlay:-webkit-full-screen {
  width: 100vw;
  height: 100vh;
  background: #000000;
}

/* --- CYBERPUNK PLAYER OVERLAY SCREENS (LOADING & ERROR) --- */
.cyber-player-screen {
  position: absolute;
  inset: 0;
  z-index: 24;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
  background: #07080c;
  overflow: hidden;
  opacity: 1;
  transition: opacity 0.4s ease, visibility 0.4s ease;
}

#player-error-screen {
  z-index: 25;
}

.cyber-screen-backdrop {
  position: absolute;
  inset: 0;
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
  z-index: 1;
}

.cyber-scanlines {
  position: absolute;
  inset: 0;
  background: linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.3) 50%),
              linear-gradient(90deg, rgba(255, 119, 0, 0.03), rgba(0, 240, 255, 0.02), rgba(255, 119, 0, 0.03));
  background-size: 100% 4px, 8px 100%;
  pointer-events: none;
  z-index: 2;
  opacity: 0.7;
}

.cyber-loading-hud {
  position: relative;
  z-index: 10;
  margin-bottom: 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  pointer-events: none;
}

.cyber-radar-ring {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 2.5px solid transparent;
  border-top-color: var(--orange);
  border-right-color: var(--cyan);
  animation: cyberRadarSpin 1s infinite linear;
  margin-bottom: 12px;
  filter: drop-shadow(0 0 10px var(--orange));
}

@keyframes cyberRadarSpin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.cyber-hud-tag {
  font-family: 'SF Mono', 'Roboto Mono', 'Segoe UI Mono', monospace;
  font-size: 0.75rem;
  letter-spacing: 1.5px;
  color: var(--cyan);
  text-shadow: 0 0 10px rgba(0, 240, 255, 0.7);
  margin-bottom: 5px;
}

.cyber-hud-title {
  font-size: 1.2rem;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: 0.8px;
  text-shadow: 0 0 16px rgba(255, 119, 0, 0.85);
  margin-bottom: 4px;
}

.cyber-hud-sub {
  font-size: 0.84rem;
  color: var(--text-muted);
  letter-spacing: 0.2px;
}

.cyber-hud-progress-bar {
  width: 300px;
  height: 4px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 2px;
  overflow: hidden;
  margin-top: 14px;
  border: 1px solid rgba(255, 119, 0, 0.25);
}

.cyber-hud-progress-inner {
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, var(--orange), var(--cyan), transparent);
  animation: cyberProgressScan 1.6s infinite linear;
}

@keyframes cyberProgressScan {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

.cyber-screen-footer {
  position: relative;
  z-index: 10;
  margin-bottom: 50px;
  display: flex;
  gap: 14px;
}

/* ============================================================ */
/* CYBER HUD & FLEXION STEEL FRAME AESTHETIC (GTA VI / KEIN BILD) */
/* ============================================================ */
.cyber-flexion-frame {
  position: relative;
  border: 1.5px solid rgba(255, 170, 0, 0.55);
  box-shadow: 0 0 45px rgba(255, 150, 0, 0.18), inset 0 0 20px rgba(255, 150, 0, 0.04);
}

.hud-corner-bracket {
  position: absolute;
  width: 22px;
  height: 22px;
  border-color: #ffaa00;
  pointer-events: none;
  z-index: 12;
  filter: drop-shadow(0 0 6px rgba(255, 170, 0, 0.7));
}

.hud-corner-bracket.top-left {
  top: 0;
  left: 0;
  border-top: 3px solid #ffaa00;
  border-left: 3px solid #ffaa00;
}

.hud-corner-bracket.top-right {
  top: 0;
  right: 0;
  border-top: 3px solid #ffaa00;
  border-right: 3px solid #ffaa00;
}

.hud-corner-bracket.bottom-left {
  bottom: 0;
  left: 0;
  border-bottom: 3px solid #ffaa00;
  border-left: 3px solid #ffaa00;
}

.hud-corner-bracket.bottom-right {
  bottom: 0;
  right: 0;
  border-bottom: 3px solid #ffaa00;
  border-right: 3px solid #ffaa00;
}

.cyber-hud-top-bar,
.cyber-hud-bottom-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 24px;
  background: rgba(10, 13, 20, 0.98);
  font-family: 'SF Mono', 'Roboto Mono', 'Segoe UI Mono', monospace;
  font-size: 0.72rem;
  letter-spacing: 1px;
  color: var(--text-muted);
  user-select: none;
  position: relative;
  z-index: 6;
  flex-shrink: 0;
}

.cyber-hud-top-bar {
  border-bottom: 1px solid rgba(255, 170, 0, 0.3);
}

.cyber-hud-bottom-bar {
  border-top: 1px solid rgba(255, 170, 0, 0.3);
  margin-top: 0;
}

.hud-left-stats,
.hud-right-telemetry,
.hud-left-meta,
.hud-right-meta {
  display: flex;
  align-items: center;
  gap: 12px;
}

.hud-tag {
  color: #ffaa00;
  font-weight: 800;
  letter-spacing: 1.5px;
}

.hud-seg-bar {
  display: inline-flex;
  gap: 3px;
  align-items: center;
}

.hud-seg-bar .seg {
  width: 7px;
  height: 10px;
  background: rgba(255, 170, 0, 0.18);
  border-radius: 1px;
}

.hud-seg-bar .seg.active {
  background: #ffaa00;
  box-shadow: 0 0 6px rgba(255, 170, 0, 0.85);
}

.hud-right-telemetry,
.hud-right-meta {
  color: rgba(255, 170, 0, 0.75);
  font-size: 0.7rem;
}

.hud-sep {
  color: rgba(255, 170, 0, 0.4);
  margin: 0 4px;
}

.hud-brand-center {
  position: absolute;
  left: 50%;
  bottom: 0px;
  transform: translateX(-50%);
  z-index: 8;
  pointer-events: none;
}

.hud-brand-notch {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px 26px 5px 26px;
  background: #080a10;
  border: 1.5px solid #ffaa00;
  border-top: none;
  clip-path: polygon(0 0, 100% 0, 84% 100%, 16% 100%);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, 'SF Mono', monospace, sans-serif;
  font-size: 1.05rem;
  font-weight: 900;
  letter-spacing: 5px;
  color: #ffaa00;
  text-shadow: 0 0 12px rgba(255, 170, 0, 0.95), 0 0 24px rgba(255, 140, 0, 0.6);
  box-shadow: 0 6px 20px rgba(255, 150, 0, 0.35);
  margin-top: -1px;
}

.btn-cyber-primary {
  background: linear-gradient(135deg, var(--orange) 0%, #ffa500 100%) !important;
  color: #000 !important;
  font-weight: 800 !important;
  font-size: 0.92rem !important;
  padding: 12px 28px !important;
  border-radius: 6px !important;
  cursor: pointer;
  box-shadow: 0 0 25px rgba(255, 119, 0, 0.55);
  border: none !important;
  letter-spacing: 0.5px;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.btn-cyber-primary:hover {
  box-shadow: 0 0 35px rgba(255, 119, 0, 0.9);
}

.btn-cyber-cancel {
  background: rgba(18, 22, 32, 0.88) !important;
  color: var(--text-muted) !important;
  border: 1px solid rgba(255, 119, 0, 0.28) !important;
  font-weight: 700 !important;
  font-size: 0.85rem !important;
  padding: 10px 22px !important;
  border-radius: 6px !important;
  cursor: pointer;
  backdrop-filter: blur(10px);
  transition: all 0.2s ease;
}

.btn-cyber-cancel:hover {
  color: #fff !important;
  border-color: var(--orange) !important;
  box-shadow: 0 0 16px rgba(255, 119, 0, 0.35);
}

/* --- STREMIO CYBERPUNK PLAYER UI --- */
.stremio-top-bar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 64px;
  padding: 0 24px;
  background: linear-gradient(180deg, rgba(7, 8, 14, 0.95) 0%, rgba(7, 8, 14, 0.7) 60%, transparent 100%);
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: opacity 0.25s ease, transform 0.25s ease;
  pointer-events: auto;
}

.stremio-btn-back {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #fff;
  padding: 6px 14px;
  border-radius: 6px;
  font-weight: 700;
  font-size: 0.88rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: background 0.2s, border-color 0.2s;
}

.stremio-btn-back:hover {
  background: rgba(255, 255, 255, 0.18);
  border-color: var(--cyan);
}

.stremio-title-box {
  display: flex;
  align-items: center;
  gap: 12px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.stremio-btn-close {
  background: transparent;
  border: none;
  color: #fff;
  font-size: 1.4rem;
  cursor: pointer;
  opacity: 0.75;
  transition: opacity 0.2s, color 0.2s;
}

.stremio-btn-close:hover {
  opacity: 1;
  color: var(--orange);
}

.player-overlay.user-idle {
  cursor: none !important;
}

.player-overlay.user-idle .stremio-top-bar {
  opacity: 0 !important;
  transform: translateY(-100%) !important;
  pointer-events: none !important;
}

.player-overlay.user-idle .stremio-bottom-bar {
  opacity: 0 !important;
  transform: translateY(100%) !important;
  pointer-events: none !important;
}

.player-overlay.user-idle .stremio-popup {
  opacity: 0 !important;
  pointer-events: none !important;
}

.player-video {
  width: 100%;
  height: 100%;
  max-width: 100vw;
  max-height: 100vh;
  object-fit: contain;
  background: #000;
  outline: none;
}

/* STREMIO BOTTOM BAR */
.stremio-bottom-bar {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 20px 32px 24px 32px;
  background: linear-gradient(0deg, rgba(7, 8, 14, 0.98) 0%, rgba(7, 8, 14, 0.82) 65%, transparent 100%);
  z-index: 30;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: opacity 0.25s ease, transform 0.25s ease;
  pointer-events: auto;
}

.stremio-progress-row {
  display: flex;
  align-items: center;
  gap: 16px;
  width: 100%;
}

.stremio-time {
  font-size: 0.92rem;
  font-weight: 600;
  color: #d8d8e0;
  font-variant-numeric: tabular-nums;
  min-width: 68px;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.8);
}

.stremio-bar-track {
  position: relative;
  flex: 1;
  height: 6px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 4px;
  cursor: pointer;
  transition: height 0.15s ease;
}

.stremio-bar-track:hover {
  height: 9px;
}

.stremio-bar-track:hover .stremio-bar-thumb {
  transform: translate(-50%, -50%) scale(1.3);
}

.stremio-bar-buffered {
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  background: rgba(255, 255, 255, 0.32);
  border-radius: 4px;
  width: 0%;
  pointer-events: none;
}

.stremio-bar-played {
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  background: linear-gradient(90deg, #ff5500 0%, #ffaa00 60%, #00f0ff 100%);
  box-shadow: 0 0 10px rgba(255, 119, 0, 0.6);
  border-radius: 4px;
  width: 0%;
  pointer-events: none;
}

.stremio-bar-thumb {
  position: absolute;
  top: 50%;
  left: 0%;
  transform: translate(-50%, -50%);
  width: 15px;
  height: 15px;
  background: #ffffff;
  border: 2.5px solid #ff7700;
  border-radius: 50%;
  box-shadow: 0 0 14px rgba(255, 119, 0, 0.9);
  pointer-events: none;
  transition: transform 0.1s ease;
}

.stremio-time-tooltip {
  position: absolute;
  bottom: 22px;
  left: 0;
  transform: translateX(-50%);
  background: rgba(10, 14, 26, 0.96);
  border: 1px solid var(--cyan);
  color: #fff;
  padding: 5px 10px;
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 600;
  pointer-events: none;
  display: none;
  white-space: nowrap;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.8), 0 0 10px rgba(0, 240, 255, 0.2);
  line-height: 1.35;
  text-align: center;
  z-index: 40;
}

.stremio-time-tooltip .tooltip-main {
  font-weight: 800;
  color: #fff;
  font-size: 0.88rem;
}

.stremio-time-tooltip .tooltip-sub {
  font-size: 0.72rem;
  color: var(--cyan);
  margin-top: 2px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

/* STREMIO CONTROLS ROW */
.stremio-controls-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.stremio-ctrl-left, .stremio-ctrl-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.stremio-ctrl-btn {
  background: transparent;
  border: none;
  color: #e2e2ea;
  font-size: 1.15rem;
  padding: 6px 10px;
  border-radius: 6px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s, color 0.15s, transform 0.1s;
}

.stremio-live-bitrate {
  font-size: 0.76rem;
  font-weight: 700;
  font-family: 'SF Mono', 'Roboto Mono', 'Segoe UI Mono', monospace;
  color: var(--cyan);
  background: rgba(0, 240, 255, 0.08);
  border: 1px solid rgba(0, 240, 255, 0.28);
  padding: 4px 8px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  letter-spacing: 0.2px;
  white-space: nowrap;
}

.stremio-live-bitrate.loading {
  color: var(--orange);
  border-color: rgba(255, 119, 0, 0.4);
  background: rgba(255, 119, 0, 0.1);
}

.stremio-pill-btn {
  font-size: 0.78rem !important;
  font-weight: 700 !important;
  padding: 5px 12px !important;
  border: 1px solid rgba(255, 119, 0, 0.28) !important;
  border-radius: 6px !important;
  background: rgba(18, 22, 32, 0.85) !important;
  color: #f4f6fc !important;
  backdrop-filter: blur(8px);
  transition: all 0.2s ease !important;
}

.stremio-pill-btn.active {
  border-color: #ffaa00 !important;
  color: #ffaa00 !important;
  background: rgba(255, 170, 0, 0.14) !important;
  box-shadow: 0 0 14px rgba(255, 170, 0, 0.35) !important;
}

.stremio-pill-btn:hover {
  background: rgba(255, 119, 0, 0.16) !important;
  border-color: var(--orange) !important;
  color: var(--orange) !important;
  box-shadow: 0 0 14px rgba(255, 119, 0, 0.35) !important;
}

/* FLOATING SKIP INTRO BUTTON (NETFLIX / STREMIO STYLE) */
.player-floating-skip-intro {
  position: absolute;
  right: 36px;
  bottom: 96px;
  z-index: 105;
  background: rgba(14, 18, 26, 0.92);
  border: 1.5px solid #ffaa00;
  color: #ffaa00;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 0.92rem;
  font-weight: 800;
  padding: 10px 22px;
  cursor: pointer;
  box-shadow: 0 0 25px rgba(255, 170, 0, 0.4), 0 8px 24px rgba(0, 0, 0, 0.8);
  clip-path: polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px);
  letter-spacing: 0.5px;
  transition: background 0.15s ease, box-shadow 0.15s ease, color 0.15s ease;
}

.player-floating-skip-intro:hover {
  background: #ffaa00;
  color: #000;
  box-shadow: 0 0 35px rgba(255, 170, 0, 0.8);
}

/* FLOATING NEXT EPISODE BUTTON (NETFLIX STYLE BEIM FOLGENENDE) */
.player-floating-next-ep {
  position: absolute;
  right: 36px;
  bottom: 96px;
  z-index: 106;
  background: linear-gradient(135deg, #ffaa00 0%, #ff8800 100%);
  border: 1px solid #ffcc00;
  color: #000;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 900;
  padding: 12px 24px;
  cursor: pointer;
  box-shadow: 0 0 30px rgba(255, 170, 0, 0.6), 0 8px 24px rgba(0, 0, 0, 0.9);
  border-radius: 6px;
  letter-spacing: 0.5px;
  transition: all 0.15s ease;
}

.player-floating-next-ep:hover {
  background: #ffbb33;
  box-shadow: 0 0 45px rgba(255, 170, 0, 0.9);
  transform: scale(1.03);
}

.stremio-btn-next-ep {
  background: rgba(255, 170, 0, 0.18) !important;
  border: 1.5px solid var(--gold) !important;
  color: var(--gold) !important;
  font-weight: 800 !important;
  font-size: 0.82rem !important;
  padding: 6px 14px !important;
  border-radius: 6px !important;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  cursor: pointer;
  transition: all 0.15s ease;
  white-space: nowrap;
}

.stremio-btn-next-ep:hover {
  background: var(--gold) !important;
  color: #000 !important;
  box-shadow: 0 0 16px rgba(255, 170, 0, 0.6) !important;
}

.stremio-ctrl-btn:hover {
  background: rgba(255, 119, 0, 0.12);
  color: var(--orange);
}

.stremio-ctrl-btn:active {
  transform: scale(0.95);
}

.stremio-btn-play {
  font-size: 1.35rem;
  width: 44px;
  height: 44px;
  background: rgba(255, 119, 0, 0.15);
  border: 1.5px solid var(--orange);
  color: #ffffff;
  border-radius: 50%;
  box-shadow: 0 0 16px rgba(255, 119, 0, 0.35);
  transition: all 0.2s ease;
}

.stremio-btn-play:hover {
  background: linear-gradient(135deg, var(--orange) 0%, #ffa500 100%);
  color: #000;
  box-shadow: 0 0 25px rgba(255, 119, 0, 0.85);
  transform: scale(1.05);
}

.stremio-vol-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
}

.stremio-vol-slider {
  -webkit-appearance: none;
  width: 85px;
  height: 5px;
  background: rgba(255, 255, 255, 0.3);
  border-radius: 3px;
  outline: none;
  cursor: pointer;
}

.stremio-vol-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: var(--orange);
  cursor: pointer;
  box-shadow: 0 0 6px var(--orange);
}

/* STREMIO POPUPS */
.stremio-popup {
  position: absolute;
  bottom: 84px;
  right: 32px;
  background: rgba(10, 14, 24, 0.96);
  border: 1px solid rgba(255, 119, 0, 0.35);
  border-radius: 10px;
  box-shadow: 0 16px 44px rgba(0, 0, 0, 0.9), 0 0 24px rgba(255, 119, 0, 0.2);
  backdrop-filter: blur(20px);
  z-index: 60;
  color: #fff;
  animation: fadeInPopup 0.18s ease-out;
}

@keyframes fadeInPopup {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

.stremio-audio-popup {
  width: 330px;
  max-height: 420px;
  padding: 16px;
  overflow-y: auto;
}

.stremio-subtitles-popup {
  display: grid;
  grid-template-columns: 150px 180px 220px;
  gap: 16px;
  padding: 18px;
  width: 580px;
  max-height: 440px;
  overflow-y: auto;
}

.stremio-popup-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.95rem;
  font-weight: 700;
  color: #fff;
  border-bottom: 1px solid rgba(255, 119, 0, 0.2);
  padding-bottom: 10px;
  margin-bottom: 12px;
}

.stremio-popup-close {
  background: transparent;
  border: none;
  color: #888;
  cursor: pointer;
  font-size: 1.1rem;
}

.stremio-popup-close:hover {
  color: var(--orange);
}

.stremio-menu-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 9px 12px;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
  margin-bottom: 5px;
  font-size: 0.88rem;
  border: 1px solid transparent;
}

.stremio-sub-col-list .stremio-menu-item {
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 2px;
}

.stremio-menu-item:hover {
  background: rgba(255, 119, 0, 0.08);
  border-color: rgba(255, 119, 0, 0.25);
}

.stremio-menu-item.active {
  background: rgba(255, 119, 0, 0.18);
  border-color: var(--orange);
  color: #fff;
  font-weight: 700;
  box-shadow: 0 0 14px rgba(255, 119, 0, 0.25);
}

.active-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--orange);
  box-shadow: 0 0 8px var(--orange);
  display: inline-block;
}

/* PLAYER BUFFERING & STATUS OVERLAY */
.player-buffering-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(7, 8, 12, 0.92);
  border: 1px solid var(--cyan);
  box-shadow: 0 0 35px rgba(0, 240, 255, 0.35);
  border-radius: 14px;
  padding: 20px 32px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  z-index: 55;
  backdrop-filter: blur(12px);
  pointer-events: none;
  animation: fadeInBuffering 0.2s ease-out;
}

@keyframes fadeInBuffering {
  from { opacity: 0; transform: translate(-50%, -46%); }
  to { opacity: 1; transform: translate(-50%, -50%); }
}

.player-buffering-spinner {
  width: 36px;
  height: 36px;
  border: 3px solid rgba(0, 240, 255, 0.2);
  border-top-color: var(--cyan);
  border-radius: 50%;
  animation: spinBuffer 0.8s linear infinite;
}

@keyframes spinBuffer {
  to { transform: rotate(360deg); }
}

.player-buffering-text {
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
  text-align: center;
}

.player-buffering-subtext {
  font-size: 0.82rem;
  color: var(--text-muted);
  text-align: center;
}

.stremio-sub-col-title {
  font-size: 0.82rem;
  font-weight: 700;
  color: #a0a0b8;
  margin-bottom: 8px;
}

.stremio-setting-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  font-size: 0.85rem;
  color: #ccc;
}

.stremio-stepper {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 6px;
  padding: 3px 8px;
}

.stremio-step-btn {
  background: rgba(255, 255, 255, 0.12);
  border: none;
  color: #fff;
  width: 26px;
  height: 26px;
  border-radius: 4px;
  font-size: 1rem;
  font-weight: bold;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s;
}

.stremio-step-btn:hover {
  background: var(--orange);
  color: #000;
}

/* UNMUTE CENTER BUTTON */
.unmute-banner-center {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 30;
  pointer-events: auto;
}

.btn-big-unmute {
  background: linear-gradient(135deg, rgba(255, 140, 0, 0.95) 0%, rgba(255, 80, 0, 0.95) 100%);
  border: 2px solid var(--yellow);
  border-radius: 16px;
  padding: 16px 28px;
  color: #fff;
  font-family: inherit;
  cursor: pointer;
  box-shadow: 0 0 30px rgba(255, 140, 0, 0.6);
  display: flex;
  align-items: center;
  gap: 16px;
  text-align: left;
  animation: pulse-unmute 2s infinite ease-in-out;
  transition: transform 0.2s, box-shadow 0.2s;
}

.btn-big-unmute:hover {
  transform: scale(1.05);
  box-shadow: 0 0 40px rgba(255, 140, 0, 0.9);
}

@keyframes pulse-unmute {
  0%, 100% { transform: scale(1); box-shadow: 0 0 25px rgba(255, 140, 0, 0.5); }
  50% { transform: scale(1.03); box-shadow: 0 0 45px rgba(255, 140, 0, 0.85); }
}

/* AUDIO NOTICE TOAST */
.player-audio-notice {
  position: absolute;
  bottom: 80px;
  left: 24px;
  right: 24px;
  max-width: 620px;
  margin: 0 auto;
  background: rgba(13, 16, 26, 0.95);
  border: 1px solid var(--cyan);
  box-shadow: 0 0 20px var(--cyan-glow);
  border-radius: 10px;
  padding: 12px 18px;
  color: var(--text-main);
  font-size: 0.85rem;
  line-height: 1.45;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  z-index: 25;
  animation: slide-up 0.3s ease;
}

@keyframes slide-up {
  from { transform: translateY(20px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

.btn-notice-dismiss {
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 1.1rem;
  padding: 4px;
}

.btn-notice-dismiss:hover {
  color: #fff;
}

/* HIDE INSTALLATION ELEMENTS IN NATIVE ELECTRON APP */
.is-native-app #btn-install-pwa,
.is-native-app #install-modal {
  display: none !important;
}

/* DUAL CHOICE INSTALL MODAL */
.install-modal-card {
  max-width: 700px;
  width: 95%;
  max-height: 94vh;
  overflow-y: auto;
  text-align: center;
}

.install-modal-card .modal-body {
  gap: 10px;
  padding: 14px 20px 18px 20px;
}

.install-cards-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin: 14px 0 14px 0;
  text-align: left;
}

@media (max-width: 640px) {
  .install-cards-grid {
    grid-template-columns: 1fr;
  }
}

.install-option-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  position: relative;
}

.install-option-card:hover {
  border-color: var(--cyan);
  box-shadow: 0 0 15px var(--cyan-glow);
}

.install-option-card.featured {
  border-color: rgba(255, 119, 0, 0.4);
  background: linear-gradient(180deg, rgba(255, 119, 0, 0.05) 0%, rgba(18, 22, 32, 0.95) 100%);
}

.install-option-card.featured:hover {
  border-color: var(--orange);
  box-shadow: 0 0 20px rgba(255, 119, 0, 0.35);
}

.install-badge-top {
  position: absolute;
  top: -10px;
  right: 14px;
  background: var(--orange);
  color: #07080c;
  font-size: 0.7rem;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.install-option-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.install-icon {
  font-size: 1.8rem;
  line-height: 1;
}

.install-option-title {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--text-main);
}

.install-option-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.45;
  margin-bottom: 14px;
  flex-grow: 1;
}

.install-features-list {
  list-style: none;
  padding: 0;
  margin: 0 0 16px 0;
  font-size: 0.8rem;
  color: var(--text-muted);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.install-features-list li {
  display: flex;
  align-items: center;
  gap: 6px;
}

.install-features-list li span.check {
  color: var(--cyan);
  font-weight: bold;
}

.install-option-card.featured .install-features-list li span.check {
  color: var(--orange);
}

/* ==========================================================================
   STREAM STARTING HUD & MODAL OVERLAYS (SOFORTIGES FEEDBACK)
   ========================================================================== */
.stream-starting-hud {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(7, 8, 12, 0.88);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 120;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  animation: fadeInFast 0.15s ease-out;
}

@keyframes fadeInFast {
  from { opacity: 0; transform: scale(0.98); }
  to { opacity: 1; transform: scale(1); }
}

.starting-hud-box {
  background: rgba(15, 18, 28, 0.95);
  border: 1px solid var(--cyan);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.8), 0 0 25px rgba(0, 240, 255, 0.25);
  border-radius: 12px;
  padding: 24px 32px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  max-width: 420px;
  gap: 12px;
}

.starting-hud-spinner {
  width: 46px;
  height: 46px;
  border: 3px solid rgba(0, 240, 255, 0.15);
  border-top-color: var(--cyan);
  border-right-color: var(--orange);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

.starting-hud-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: 0.3px;
}

.starting-hud-status {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--cyan);
  background: rgba(0, 240, 255, 0.08);
  border: 1px solid rgba(0, 240, 255, 0.2);
  padding: 6px 14px;
  border-radius: 6px;
  width: 100%;
}

.starting-hud-sub {
  font-size: 0.76rem;
  color: var(--text-muted);
}

/* ==========================================================================
   HYBRID STREAMING DOCK & STREAM ROW PICKERS
   ========================================================================== */
.hybrid-dock {
  background: rgba(15, 20, 32, 0.9);
  border: 1px solid rgba(255, 119, 0, 0.4);
  box-shadow: 0 4px 20px rgba(255, 119, 0, 0.15);
  border-radius: 8px;
  padding: 10px 14px;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}

.hybrid-dock-left {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.hybrid-dock-badge {
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--orange);
  background: rgba(255, 119, 0, 0.15);
  padding: 4px 8px;
  border-radius: 4px;
  letter-spacing: 0.5px;
}

.hybrid-dock-slot {
  font-size: 0.82rem;
  display: flex;
  align-items: center;
  gap: 6px;
}

.hybrid-dock-slot .slot-label {
  color: var(--text-muted);
  font-weight: 600;
}

.hybrid-dock-slot .slot-val {
  color: #fff;
  font-weight: 700;
  max-width: 240px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.hybrid-dock-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn-pick-source {
  padding: 5px 9px !important;
  font-size: 0.75rem !important;
  font-weight: 700 !important;
  border-radius: 5px !important;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.15s;
}

.btn-pick-video {
  background: rgba(255, 170, 0, 0.08);
  border: 1px solid rgba(255, 170, 0, 0.35);
  color: var(--gold);
}

.btn-pick-video:hover, .btn-pick-video.active {
  background: var(--gold) !important;
  color: #000 !important;
  border-color: var(--gold) !important;
}

.btn-pick-audio {
  background: rgba(255, 119, 0, 0.08);
  border: 1px solid rgba(255, 119, 0, 0.3);
  color: var(--orange);
}

.btn-pick-audio:hover, .btn-pick-audio.active {
  background: var(--orange) !important;
  color: #000 !important;
  border-color: var(--orange) !important;
}

/* ==========================================================================
   AUDIO SYNC TIMELINE (FINAL CUT STYLE)
   ========================================================================== */
.audio-sync-timeline {
  background: rgba(10, 14, 24, 0.95);
  border: 1px solid rgba(0, 240, 255, 0.3);
  border-radius: 8px;
  padding: 10px 14px;
  margin: 8px 0 10px 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  user-select: none;
}

.sync-info-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 0.8rem;
}

.sync-title {
  font-weight: 700;
  color: var(--cyan);
}

.sync-instructions {
  font-size: 0.72rem;
  color: var(--text-muted);
}

.sync-instructions span {
  color: #ddd;
  font-weight: 600;
}

.sync-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.sync-actions button {
  padding: 3px 8px;
  font-size: 0.75rem;
}

.sync-close-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 1rem;
  padding: 2px 6px;
  border-radius: 4px;
}

.sync-close-btn:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
}

.sync-track-container {
  position: relative;
  height: 38px;
  background: rgba(0, 0, 0, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  overflow: hidden;
  cursor: ew-resize;
  display: flex;
  align-items: center;
}

.sync-center-marker {
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 2px;
  background: rgba(255, 255, 255, 0.4);
  z-index: 2;
  pointer-events: none;
}

.sync-audio-bar {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  height: 26px;
  background: linear-gradient(90deg, rgba(0, 240, 255, 0.35), rgba(0, 240, 255, 0.7));
  border: 1px solid var(--cyan);
  border-radius: 4px;
  padding: 0 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-width: 200px;
  cursor: grab;
  box-shadow: 0 0 10px rgba(0, 240, 255, 0.3);
  transition: box-shadow 0.1s;
}

.sync-audio-bar:active {
  cursor: grabbing;
  box-shadow: 0 0 16px rgba(0, 240, 255, 0.6);
}

.sync-bar-label {
  font-size: 0.72rem;
  font-weight: 800;
  color: #000;
  letter-spacing: 0.5px;
  pointer-events: none;
}

.sync-bar-offset {
  font-size: 0.76rem;
  font-weight: 800;
  font-family: monospace;
  color: #000;
  background: #fff;
  padding: 1px 5px;
  border-radius: 3px;
  pointer-events: none;
}

/* --- HERO RECOMMENDATION & CYCLE CONTROLS --- */
.hero-cycle-btn {
  background: rgba(255, 119, 0, 0.14) !important;
  border: 1px solid var(--orange) !important;
  color: var(--orange) !important;
  font-size: 0.76rem !important;
  font-weight: 800 !important;
  padding: 3px 10px !important;
  border-radius: 6px !important;
  cursor: pointer;
  box-shadow: 0 0 10px rgba(255, 119, 0, 0.25);
  transition: all 0.2s ease !important;
}

.hero-cycle-btn:hover {
  background: var(--orange) !important;
  color: #000 !important;
  box-shadow: 0 0 18px rgba(255, 119, 0, 0.6);
}

.hero-recommendation-hint {
  font-size: 0.88rem;
  color: var(--cyan);
  font-weight: 700;
  margin-bottom: 6px;
  text-shadow: 0 0 10px rgba(0, 240, 255, 0.5);
  display: flex;
  align-items: center;
  gap: 6px;
}

/* --- 1-STAR ARCHIVE TOGGLE PILL --- */
.filter-pill-archive {
  background: rgba(255, 70, 70, 0.08) !important;
  border-color: rgba(255, 70, 70, 0.3) !important;
  color: #ff7777 !important;
}

.filter-pill-archive:hover {
  border-color: #ff5555 !important;
  color: #ff9999 !important;
}

.filter-pill-archive.active {
  background: #d60024 !important;
  border-color: #ff3344 !important;
  color: #ffffff !important;
  font-weight: 800 !important;
  box-shadow: 0 0 14px rgba(214, 0, 36, 0.6) !important;
}

/* --- 5-STAR RATING SYSTEM (DIMENSION-NEUTRAL) --- */
.card-rating-stars {
  position: absolute;
  top: 8px;
  right: 8px;
  display: flex;
  align-items: center;
  gap: 2px;
  background: rgba(7, 8, 14, 0.88);
  backdrop-filter: blur(8px);
  padding: 3px 7px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  z-index: 6;
  opacity: 0.9;
  transition: opacity 0.2s, border-color 0.2s, background-color 0.2s;
  pointer-events: auto;
}

.card-rating-stars:hover {
  opacity: 1;
  border-color: var(--orange);
  background: rgba(7, 8, 14, 0.96);
}

.card-rating-stars .star-btn,
.star-rating-widget .star-btn {
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.22);
  cursor: pointer;
  user-select: none;
  line-height: 1;
  transition: color 0.15s, text-shadow 0.15s;
}

.card-rating-stars .star-btn:hover,
.star-rating-widget .star-btn:hover {
  color: #ffe066;
  text-shadow: 0 0 8px rgba(255, 224, 102, 0.8);
}

.card-rating-stars .star-btn.active,
.star-rating-widget .star-btn.active {
  color: #ffcc00;
  text-shadow: 0 0 10px rgba(255, 204, 0, 0.8);
}

.card-rating-stars .star-btn.active-1,
.star-rating-widget .star-btn.active-1 {
  color: #ff3b3b;
  text-shadow: 0 0 10px rgba(255, 59, 59, 0.8);
}

.modal-rating-container {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(18, 22, 32, 0.9);
  border: 1px solid var(--border);
  padding: 5px 12px;
  border-radius: 6px;
}

.star-rating-widget {
  display: flex;
  align-items: center;
  gap: 4px;
}

.star-rating-widget .star-btn {
  font-size: 1.15rem;
}

/* --- SERVER SELECTION MODAL ON TOP OF RUNNING PLAYER (NUR BEI AKTIVEM POPUP) --- */
body.player-active #details-modal.active,
body.player-active #streams-modal.active {
  z-index: 1000005 !important;
  background: rgba(4, 5, 8, 0.75) !important;
  backdrop-filter: blur(8px) !important;
}

body.player-active #details-modal.active .modal-card,
body.player-active #streams-modal.active .modal-card {
  box-shadow: 0 0 50px rgba(0, 240, 255, 0.45);
  border-color: rgba(0, 240, 255, 0.8);
}

#btn-player-switch-stream:hover {
  background: rgba(0, 240, 255, 0.25) !important;
  box-shadow: 0 0 15px rgba(0, 240, 255, 0.4);
  transform: translateY(-1px);
}

/* Community Audio Override & Flag Buttons */
.btn-override-audio {
  cursor: pointer;
  border-radius: 4px;
  line-height: 1.2;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
  user-select: none;
}

.btn-override-audio[data-has-german="false"]:hover {
  background: rgba(255, 60, 60, 0.25) !important;
  color: #ff5555 !important;
  border-color: #ff5555 !important;
}

.btn-override-audio[data-has-german="true"]:hover {
  background: rgba(0, 255, 157, 0.25) !important;
  color: #00ff9d !important;
  border-color: #00ff9d !important;
}

/* Watched Episode Dropdown Styling */
option.watched-ep {
  color: #00ff9d !important;
  background-color: #121622 !important;
  font-weight: 700 !important;
}

/* Stream Feedback Slot (⭐ Star & ❌ Issue Button) - Strict Dimensionsneutralität */
.stream-feedback-slot {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
  margin-right: 8px;
  user-select: none;
}

.btn-stream-star {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #777c8d;
  opacity: 0.35;
  filter: grayscale(100%);
  min-width: 32px;
  height: 28px;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  font-size: 0.88rem;
  cursor: pointer;
  transition: opacity 0.15s, filter 0.15s, color 0.15s, background 0.15s, border-color 0.15s;
  padding: 0 5px;
  box-sizing: border-box;
}

.btn-stream-star:hover {
  opacity: 1;
  filter: grayscale(0%);
  color: #ffd152;
  border-color: rgba(255, 209, 82, 0.5);
  background: rgba(255, 209, 82, 0.12);
}

.btn-stream-star.starred {
  opacity: 1;
  filter: none;
  color: #ffaa00;
  border-color: rgba(255, 170, 0, 0.8);
  background: rgba(255, 170, 0, 0.2);
  box-shadow: 0 0 8px rgba(255, 170, 0, 0.3);
}

.btn-stream-issue {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #777c8d;
  opacity: 0.35;
  filter: grayscale(100%);
  width: 28px;
  height: 28px;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.82rem;
  cursor: pointer;
  transition: opacity 0.15s, filter 0.15s, color 0.15s, background 0.15s, border-color 0.15s;
  padding: 0;
  box-sizing: border-box;
}

.btn-stream-issue:hover {
  opacity: 1;
  filter: grayscale(0%);
  color: #ff6b6b;
  border-color: rgba(255, 107, 107, 0.5);
  background: rgba(255, 107, 107, 0.12);
}

.btn-stream-issue.reported {
  opacity: 1;
  filter: none;
  color: #ff4444;
  border-color: rgba(255, 68, 68, 0.8);
  background: rgba(255, 68, 68, 0.2);
}

/* 1-5 Star Floating Popover (Zero Document-Flow Shift) */
.star-rating-popover {
  position: absolute;
  bottom: calc(100% + 5px);
  left: 0;
  display: none;
  background: #111520;
  border: 1px solid rgba(255, 170, 0, 0.5);
  border-radius: 6px;
  padding: 3px 7px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.7), 0 0 8px rgba(255, 170, 0, 0.25);
  z-index: 9999;
  white-space: nowrap;
  pointer-events: auto;
}

.stream-feedback-slot:hover .star-rating-popover {
  display: inline-flex;
  align-items: center;
  gap: 2px;
}

.star-popover-item {
  cursor: pointer;
  font-size: 1rem;
  color: #555e75;
  transition: color 0.1s, transform 0.1s;
  line-height: 1;
  padding: 2px 2px;
}

.star-popover-item:hover,
.star-popover-item.hovered,
.star-popover-item.active {
  color: #ffaa00;
}

/* Active Playing Stream Highlight */
.stream-item.active-playing {
  border: 1.5px solid #00ff9d !important;
  box-shadow: 0 0 16px rgba(0, 255, 157, 0.3) !important;
  background: rgba(0, 255, 157, 0.06) !important;
}

.live-dot-pulse {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #00ff9d;
  display: inline-block;
  animation: pulseLiveDot 1.4s infinite ease-in-out;
}

@keyframes pulseLiveDot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.35; transform: scale(1.35); }
}

/* Grayed out broken video stream at the bottom / archive */
.stream-item.video-broken {
  opacity: 0.55;
  filter: grayscale(0.75);
  border-color: rgba(255, 80, 80, 0.35) !important;
  background: rgba(25, 15, 20, 0.45) !important;
}

.stream-item.video-broken:hover {
  opacity: 0.9;
  filter: grayscale(0.2);
}

.archive-collapse {
  margin-top: 14px;
  border: 1px dashed rgba(255, 80, 80, 0.35);
  border-radius: 6px;
  background: rgba(25, 15, 20, 0.3);
  padding: 8px 12px;
}

.archive-collapse summary {
  cursor: pointer;
  color: #ff8b8b;
  font-size: 0.85rem;
  font-weight: 700;
  user-select: none;
  outline: none;
}

.archive-collapse summary:hover {
  color: #ffaaaa;
}

.archive-collapse .archive-items {
  margin-top: 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* Community Hybrid Card at the top */
.community-hybrid-card {
  background: linear-gradient(135deg, rgba(255, 170, 0, 0.12) 0%, rgba(20, 24, 35, 0.9) 100%);
  border: 1px solid rgba(255, 170, 0, 0.45);
  border-radius: 6px;
  padding: 10px 14px;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  box-shadow: 0 2px 12px rgba(255, 170, 0, 0.1);
  box-sizing: border-box;
}

.community-hybrid-card.pinned {
  border-color: #00f0ff;
  background: linear-gradient(135deg, rgba(0, 240, 255, 0.14) 0%, rgba(20, 25, 40, 0.95) 100%);
  box-shadow: 0 0 15px rgba(0, 240, 255, 0.2);
}

.community-hybrid-info {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.community-hybrid-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}
