/* ==========================================================
   DragondarnDE - Official YouTube Channel Portal
   Modern Dark Gamer & Dragon Fire Theme
   ========================================================== */

:root {
  --primary: #ff5722;
  --primary-hover: #ff7043;
  --primary-glow: rgba(255, 87, 34, 0.35);
  --secondary: #f59e0b;
  --secondary-hover: #fbbf24;
  --accent-gold: #ffc107;
  --accent-cyan: #06b6d4;
  --accent-green: #10b981;
  --accent-purple: #a855f7;

  --bg-darker: #090c13;
  --bg-dark: #0e131f;
  --bg-surface: #141b2a;
  --bg-card: #182132;
  --bg-card-hover: #1f2b40;
  --bg-input: #101622;

  --border-color: rgba(255, 255, 255, 0.08);
  --border-hover: rgba(255, 87, 34, 0.45);
  --border-glow: rgba(255, 87, 34, 0.25);

  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --text-accent: #ff8a65;

  --radius-xs: 4px;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 22px;
  --radius-full: 9999px;

  /* Resourcenschonende, scharfe Schatten ohne ausufernde Blur-Layer */
  --shadow-sm: 0 2px 6px rgba(0, 0, 0, 0.35);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.45);
  --shadow-lg: 0 10px 28px rgba(0, 0, 0, 0.6);
  --shadow-glow: 0 0 18px var(--primary-glow);

  --font-main: 'Outfit', 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  /* Gezielte Hardware-beschleunigte Transitions (Verhindert teure Layout-Reflows durch 'all') */
  --transition-fast: 0.15s cubic-bezier(0.4, 0, 0.2, 1);
  --transition: transform 0.22s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.22s cubic-bezier(0.4, 0, 0.2, 1), background-color 0.22s cubic-bezier(0.4, 0, 0.2, 1), border-color 0.22s cubic-bezier(0.4, 0, 0.2, 1), color 0.22s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.22s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset & Base */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  overflow-x: clip;
  max-width: 100%;
}

/* Barrierefreiheit & Ressourcenschonung: Reduzierte Bewegung bei Energiesparmodus / Vorliebe */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* CPU-Schonung & Energiesparmodus: Pausieren aller Animationen im inaktiven Hintergrund-Tab */
body.page-hidden *,
body.page-hidden *::before,
body.page-hidden *::after {
  animation-play-state: paused !important;
}

body {
  font-family: var(--font-main);
  background-color: var(--bg-darker);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  overflow-x: clip;
  max-width: 100%;
  position: relative;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  -webkit-tap-highlight-color: transparent;
}

:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 3px;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-fast), opacity var(--transition-fast);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  outline: none;
  background: none;
  transition: background-color var(--transition-fast), border-color var(--transition-fast), color var(--transition-fast), transform var(--transition-fast), box-shadow var(--transition-fast);
  will-change: transform;
}

button:active {
  transform: scale(0.98);
}

input,
textarea,
select {
  font-family: inherit;
  font-size: 0.95rem;
}

.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
  position: relative;
  z-index: 1;
}

/* ==========================================================
   Navigation Bar (Ultra-Modern Glassmorphism & Capsule Design)
   ========================================================== */
.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(11, 15, 25, 0.84);
  backdrop-filter: blur(18px) saturate(180%);
  -webkit-backdrop-filter: blur(18px) saturate(180%);
  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 4px 25px rgba(0, 0, 0, 0.35);
  padding: 0.65rem 0;
  transition: padding var(--transition-fast), background var(--transition-fast), border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.navbar::after {
  content: "";
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, rgba(255, 87, 34, 0.5) 20%, rgba(0, 229, 255, 0.6) 50%, rgba(255, 87, 34, 0.5) 80%, transparent 100%);
  pointer-events: none;
  opacity: 0.8;
}

.navbar.scrolled {
  padding: 0.45rem 0;
  background: rgba(8, 12, 20, 0.95);
  border-bottom-color: rgba(255, 87, 34, 0.25);
  box-shadow: 0 10px 32px rgba(0, 0, 0, 0.6), 0 0 20px rgba(255, 87, 34, 0.1);
}

.navbar .container,
.navbar-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  position: relative;
}

/* Brand / Logo */
.brand {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  flex-shrink: 0;
  text-decoration: none;
  user-select: none;
}

.brand-avatar-wrap {
  position: relative;
  width: 42px;
  height: 42px;
  flex-shrink: 0;
}

.brand-avatar {
  width: 100%;
  height: 100%;
  max-width: 42px;
  max-height: 42px;
  border-radius: 50%;
  border: 2px solid rgba(255, 87, 34, 0.85);
  box-shadow: 0 0 14px var(--primary-glow);
  object-fit: cover;
  position: relative;
  z-index: 2;
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1), border-color 0.3s ease, box-shadow 0.3s ease;
}

.brand-avatar-halo {
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  background: conic-gradient(from 0deg, #ff5722, #ff9100, #00e5ff, #ff5722);
  opacity: 0.4;
  filter: blur(4px);
  z-index: 1;
  pointer-events: none;
  animation: brandHaloRotate 8s linear infinite;
  will-change: transform;
  transform: translate3d(0, 0, 0);
  backface-visibility: hidden;
  perspective: 1000px;
  contain: strict;
  transition: opacity 0.3s ease, filter 0.3s ease;
}

@keyframes brandHaloRotate {
  from {
    transform: rotate(0deg) translate3d(0, 0, 0);
  }

  to {
    transform: rotate(360deg) translate3d(0, 0, 0);
  }
}

.brand:hover .brand-avatar {
  transform: rotate(6deg) scale(1.08);
  border-color: #ff9e80;
  box-shadow: 0 0 18px rgba(255, 87, 34, 0.75);
}

.brand:hover .brand-avatar-halo {
  opacity: 0.85;
  filter: blur(6px);
}

.brand-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  line-height: 1.22;
}

.brand-title {
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.025em;
  background: linear-gradient(135deg, #ffffff 40%, #ff9e80 100%);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

.brand-emoji {
  display: inline-block;
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
  -webkit-text-fill-color: initial;
}

.brand:hover .brand-emoji {
  transform: rotate(18deg) scale(1.25);
}

.brand-tag {
  font-size: 0.72rem;
  color: var(--secondary);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 0.38rem;
}

.brand-pulse-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #00e5ff;
  box-shadow: 0 0 8px #00e5ff;
  transform: translate3d(0, 0, 0);
  backface-visibility: hidden;
  animation: brandDotPulse 2.2s infinite ease-in-out;
  will-change: transform, opacity;
}

@keyframes brandDotPulse {

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

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

/* Nav Links Capsule Track */
.nav-links {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  list-style: none;
  margin: 0;
  padding: 0.28rem 0.4rem;
  background: rgba(255, 255, 255, 0.038);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(12px);
}

.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-secondary);
  padding: 0.44rem 0.92rem;
  border-radius: 999px;
  white-space: nowrap;
  border: 1px solid transparent;
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  text-decoration: none;
  position: relative;
}

.nav-link i {
  font-size: 0.86rem;
  color: var(--text-muted);
  transition: transform 0.22s ease, color 0.22s ease;
}

.nav-link:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
  transform: translateY(-1px);
}

.nav-link:hover i {
  color: #ff7043;
  transform: translateY(-1px);
}

.nav-link.active {
  color: #fff;
  background: linear-gradient(135deg, rgba(255, 87, 34, 0.24) 0%, rgba(255, 112, 67, 0.12) 100%);
  border-color: rgba(255, 87, 34, 0.45);
  box-shadow: 0 2px 14px rgba(255, 87, 34, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.nav-link.active i {
  color: #ff9e80;
}

.nav-badge-pill {
  font-size: 0.65rem;
  font-weight: 800;
  text-transform: uppercase;
  padding: 0.12rem 0.45rem;
  border-radius: 999px;
  background: rgba(0, 229, 255, 0.16);
  color: #00e5ff;
  border: 1px solid rgba(0, 229, 255, 0.4);
  letter-spacing: 0.04em;
  line-height: 1.15;
  box-shadow: 0 0 8px rgba(0, 229, 255, 0.3);
}

/* Nav Actions Toolbar */
.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-shrink: 0;
}

.btn-nav-search {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-secondary);
  font-size: 0.92rem;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.22s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.btn-nav-search:hover {
  color: #00e5ff;
  background: rgba(0, 229, 255, 0.14);
  border-color: rgba(0, 229, 255, 0.45);
  box-shadow: 0 0 16px rgba(0, 229, 255, 0.35);
  transform: translateY(-1px);
}

.btn-yt-sub {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: linear-gradient(135deg, #ff1a1a 0%, #b80000 100%);
  color: #fff !important;
  padding: 0.44rem 1.05rem;
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 700;
  box-shadow: 0 4px 16px rgba(255, 0, 0, 0.38);
  transition: all 0.24s cubic-bezier(0.16, 1, 0.3, 1);
  white-space: nowrap;
  text-decoration: none;
  position: relative;
  overflow: hidden;
}

.btn-yt-sub::after {
  content: "";
  position: absolute;
  top: -50%;
  left: -60%;
  width: 40%;
  height: 200%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.28), transparent);
  transform: rotate(25deg);
  transition: left 0.6s ease;
  pointer-events: none;
}

.btn-yt-sub:hover::after {
  left: 130%;
}

.btn-yt-sub:hover {
  background: linear-gradient(135deg, #ff3333 0%, #d60000 100%);
  transform: translateY(-1px);
  box-shadow: 0 6px 22px rgba(255, 0, 0, 0.55), 0 0 14px rgba(255, 87, 34, 0.3);
  color: #fff !important;
}

.btn-yt-sub i {
  font-size: 1.05rem;
  transition: transform 0.22s ease;
}

.btn-yt-sub:hover i {
  transform: scale(1.15);
}

.nav-hamburger {
  display: none;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #fff;
  font-size: 1.15rem;
  cursor: pointer;
  transition: all 0.22s ease;
  flex-shrink: 0;
}

.nav-hamburger:hover,
.nav-hamburger.is-active {
  background: rgba(255, 87, 34, 0.18);
  border-color: rgba(255, 87, 34, 0.5);
  color: #ff9e80;
  box-shadow: 0 0 16px rgba(255, 87, 34, 0.3);
}


/* Mobile Backdrop */
.nav-mobile-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  z-index: 950;
  transition: opacity 0.28s ease, visibility 0.28s ease;
}

.nav-mobile-backdrop.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

/* ==========================================================
   Hero Section
   ========================================================== */
.hero {
  position: relative;
  padding: 3.5rem 0 2.5rem;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(14, 19, 31, 0.95) 0%, var(--bg-darker) 100%);
  border-bottom: 1px solid var(--border-color);
}

.hero::before {
  content: "";
  position: absolute;
  top: -120px;
  left: 5%;
  width: 500px;
  height: 400px;
  background: radial-gradient(circle, rgba(255, 87, 34, 0.12) 0%, transparent 70%);
  pointer-events: none;
  z-index: 1;
}

.hero-banner-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center top;
  opacity: 0.16;
  pointer-events: none;
  z-index: 0;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 1) 30%, rgba(0, 0, 0, 0) 100%);
  -webkit-mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 1) 30%, rgba(0, 0, 0, 0) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2.5rem;
}

.hero-text {
  max-width: 680px;
}

.badge-tagline {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 87, 34, 0.12);
  border: 1px solid rgba(255, 87, 34, 0.3);
  color: var(--secondary);
  padding: 0.35rem 0.9rem;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 1.2rem;
  box-shadow: 0 2px 8px rgba(255, 87, 34, 0.1);
}

.hero-title {
  font-size: 2.8rem;
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 1rem;
  letter-spacing: -0.025em;
}

.hero-title .fire-text {
  background: linear-gradient(135deg, #ff5722 0%, #ff9800 50%, #ffc107 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 0 24px rgba(255, 87, 34, 0.25);
}

.hero-description {
  font-size: 1.08rem;
  color: var(--text-secondary);
  margin-bottom: 1.8rem;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-bottom: 2rem;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  color: #fff;
  font-weight: 600;
  padding: 0.75rem 1.45rem;
  border-radius: var(--radius-md);
  box-shadow: 0 4px 14px var(--primary-glow);
  font-size: 0.96rem;
  border: 1px solid rgba(255, 255, 255, 0.15);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast), filter var(--transition-fast);
  will-change: transform;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 87, 34, 0.5);
  filter: brightness(1.06);
}

.btn-primary:active {
  transform: translateY(0);
  box-shadow: 0 2px 8px var(--primary-glow);
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-primary);
  font-weight: 500;
  padding: 0.75rem 1.35rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  font-size: 0.96rem;
  transition: background-color var(--transition-fast), border-color var(--transition-fast), transform var(--transition-fast), color var(--transition-fast);
  will-change: transform;
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.2);
  color: #fff;
  transform: translateY(-2px);
}

.btn-outline:active {
  transform: translateY(0);
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-color);
}

.stat-item {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.stat-val {
  font-size: 1.55rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, #ffffff 50%, var(--secondary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.stat-lbl {
  font-size: 0.76rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
}

.hero-card {
  position: relative;
  background: linear-gradient(145deg, var(--bg-card) 0%, rgba(18, 24, 38, 0.85) 100%);
  border: 1px solid var(--border-glow);
  border-radius: var(--radius-lg);
  padding: 1.6rem;
  box-shadow: var(--shadow-md);
  max-width: 420px;
  width: 100%;
  transition: border-color var(--transition-fast), transform var(--transition-fast), box-shadow var(--transition-fast);
  will-change: transform;
}

.hero-card:hover {
  border-color: var(--border-hover);
  box-shadow: var(--shadow-lg), 0 0 20px rgba(255, 87, 34, 0.15);
  transform: translateY(-2px);
}

.hero-card-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.9rem;
  color: var(--secondary);
  font-weight: 700;
  font-size: 0.95rem;
}

/* ==========================================================
   Section Headers
   ========================================================== */
.section {
  padding: 4.5rem 0;
  position: relative;
}

.section-alt {
  background: var(--bg-dark);
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}

.section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 2.5rem;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.section-title-wrap {
  max-width: 650px;
}

.section-subtitle {
  color: var(--secondary);
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.35rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.section-title {
  font-size: 2.2rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #fff;
}

.section-desc {
  color: var(--text-secondary);
  font-size: 1rem;
  margin-top: 0.5rem;
}

/* ==========================================================
   Random Video Grid & Controls
   ========================================================== */
.filter-btn {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-secondary);
  border: 1px solid var(--border-color);
  padding: 0.42rem 0.95rem;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 600;
  transition: background-color var(--transition-fast), border-color var(--transition-fast), color var(--transition-fast), transform var(--transition-fast);
  will-change: transform;
  white-space: nowrap;
}

.filter-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.2);
}

.filter-btn.active {
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 2px 10px var(--primary-glow);
}

.filter-count {
  display: inline-block;
  font-size: 0.72rem;
  opacity: 0.9;
  margin-left: 0.35rem;
  background: rgba(255, 255, 255, 0.14);
  padding: 0.05rem 0.45rem;
  border-radius: var(--radius-full);
  font-weight: 700;
}

.filter-btn.active .filter-count {
  background: rgba(0, 0, 0, 0.28);
  opacity: 1;
}

.search-box {
  position: relative;
  min-width: 250px;
  display: flex;
  align-items: center;
}

.search-box input {
  width: 100%;
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  color: #fff;
  padding: 0.55rem 2.2rem 0.55rem 2.4rem;
  border-radius: var(--radius-full);
  font-size: 0.88rem;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.search-box input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 12px var(--primary-glow);
}

.search-box i.fa-magnifying-glass {
  position: absolute;
  left: 0.95rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-size: 0.85rem;
  pointer-events: none;
}

.search-box-clear {
  position: absolute;
  right: 0.65rem;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.1);
  border: none;
  color: var(--text-secondary);
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: none;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 0.75rem;
  transition: background-color var(--transition-fast), color var(--transition-fast);
}

.search-box-clear:hover {
  background: var(--primary);
  color: #fff;
}

.search-box-shortcut {
  position: absolute;
  right: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.72rem;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 0.1rem 0.4rem;
  border-radius: 4px;
  pointer-events: none;
  font-family: inherit;
  font-weight: 600;
}

.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.5rem;
}

.video-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-fast), border-color var(--transition-fast), box-shadow var(--transition-fast);
  position: relative;
  transform: translate3d(0, 0, 0);
  backface-visibility: hidden;
}

.video-card:hover {
  transform: translate3d(0, -4px, 0);
  border-color: var(--border-hover);
  box-shadow: var(--shadow-md), 0 0 16px rgba(255, 87, 34, 0.14);
  will-change: transform;
}

.video-thumb-wrap {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #000;
  cursor: pointer;
  overflow: hidden;
  transform: translate3d(0, 0, 0);
  backface-visibility: hidden;
}

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

.video-card:hover .video-thumb-wrap img {
  transform: scale(1.04) translate3d(0, 0, 0);
  will-change: transform;
}

.video-duration {
  position: absolute;
  bottom: 8px;
  right: 8px;
  background: rgba(0, 0, 0, 0.85);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.2rem 0.5rem;
  border-radius: var(--radius-xs);
  letter-spacing: 0.02em;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
  pointer-events: none;
}

.video-game-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  background: rgba(15, 20, 31, 0.92);
  color: var(--secondary);
  border: 1px solid rgba(255, 152, 0, 0.3);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.15rem 0.55rem;
  border-radius: var(--radius-full);
  pointer-events: none;
  max-width: calc(100% - 16px);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.video-play-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate3d(-50%, -50%, 0) scale(0.85);
  backface-visibility: hidden;
  width: 52px;
  height: 52px;
  background: var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.3rem;
  opacity: 0;
  box-shadow: 0 0 20px var(--primary-glow);
  transition: opacity var(--transition-fast), transform var(--transition-fast);
  pointer-events: none;
}

.video-card:hover .video-play-btn {
  opacity: 1;
  transform: translate3d(-50%, -50%, 0) scale(1);
}

.video-card-body {
  padding: 1.1rem 1.15rem 1.15rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  justify-content: space-between;
}

.video-card-title {
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.4;
  color: #fff;
  margin-bottom: 0.75rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  cursor: pointer;
  transition: color var(--transition-fast);
}

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

.video-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--text-muted);
  font-size: 0.8rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 0.75rem;
}

/* Benutzerfreundlicher Empty-State für Video-Suchen & Filter */
.empty-state-card {
  grid-column: 1 / -1;
  text-align: center;
  padding: 3.5rem 1.5rem;
  background: var(--bg-card);
  border: 1px dashed var(--border-color);
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.empty-state-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(255, 87, 34, 0.12);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
}

.empty-state-card h3 {
  color: #fff;
  font-size: 1.25rem;
  font-weight: 700;
  margin: 0;
}

.empty-state-card p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  max-width: 480px;
  margin: 0;
  line-height: 1.5;
}

/* Aufrufanzahl bei Videos vollständig deaktiviert */
.video-card-views,
.admin-video-views,
#spotlight-views,
#cinema-views,
.view-count-live {
  display: none !important;
}

.video-card-actions {
  display: flex;
  gap: 0.5rem;
}

.btn-card-action {
  color: var(--text-secondary);
  font-size: 0.85rem;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
}

.btn-card-action:hover {
  color: var(--primary);
  background: rgba(255, 87, 34, 0.1);
}

/* ==========================================================
   News Sektion
   ========================================================== */
.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
  gap: 2rem;
}

.news-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-fast), border-color var(--transition-fast), box-shadow var(--transition-fast);
  position: relative;
  will-change: transform;
}

.news-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-hover);
  box-shadow: var(--shadow-md), 0 0 20px rgba(255, 87, 34, 0.12);
}

.news-card.pinned {
  border-color: rgba(255, 193, 7, 0.4);
}

.news-card.pinned::before {
  content: '📌 Angepinnt';
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(255, 193, 7, 0.9);
  color: #111;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-full);
  z-index: 2;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

.news-img-wrap {
  position: relative;
  aspect-ratio: 16 / 9;
  background: var(--bg-dark);
  overflow: hidden;
}

.news-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
  will-change: transform;
}

.news-card:hover .news-img-wrap img {
  transform: scale(1.04);
}

.news-card-body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  min-width: 0;
}

.news-meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.85rem;
  font-size: 0.8rem;
}

.badge-cat {
  padding: 0.2rem 0.65rem;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 0.75rem;
  text-transform: uppercase;
}

.badge-cat.accent {
  background: rgba(255, 87, 34, 0.15);
  color: var(--secondary);
  border: 1px solid rgba(255, 87, 34, 0.3);
}

.badge-cat.warning {
  background: rgba(255, 152, 0, 0.15);
  color: #ffb74d;
  border: 1px solid rgba(255, 152, 0, 0.3);
}

.badge-cat.info {
  background: rgba(0, 229, 255, 0.15);
  color: var(--accent-cyan);
  border: 1px solid rgba(0, 229, 255, 0.3);
}

.badge-cat.success {
  background: rgba(16, 185, 129, 0.15);
  color: var(--accent-green);
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.news-date {
  color: var(--text-muted);
}

.news-title {
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.35;
  color: #fff;
  margin-bottom: 0.75rem;
  transition: color var(--transition-fast);
  overflow-wrap: anywhere;
  word-break: break-word;
}

.news-card:hover .news-title {
  color: var(--text-accent);
}

.news-teaser {
  color: var(--text-secondary);
  font-size: 0.92rem;
  line-height: 1.6;
  margin-bottom: 1.5rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.news-footer {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.news-author {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--text-secondary);
  font-size: 0.82rem;
}

.btn-read-more {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: var(--secondary);
  font-weight: 600;
  font-size: 0.88rem;
}

.btn-read-more:hover {
  color: #fff;
  transform: translateX(4px);
}

/* ==========================================================
   Modals (Video Player & Article Reader & Admin)
   ========================================================== */
.modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(10, 13, 20, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  padding: 1.5rem;
}

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

.legal-modal-backdrop {
  z-index: 12000;
}

.modal-dialog {
  background: var(--bg-surface);
  border: 1px solid var(--border-glow);
  border-radius: var(--radius-xl);
  width: 100%;
  max-width: 900px;
  min-width: 0;
  box-sizing: border-box;
  overflow-x: hidden;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-lg), 0 0 50px rgba(0, 0, 0, 0.8);
  transform: scale(0.92);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  display: flex;
  flex-direction: column;
}

.modal-backdrop.active .modal-dialog {
  transform: scale(1);
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.75rem;
  border-bottom: 1px solid var(--border-color);
}

.modal-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: #fff;
}

.modal-close {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.07);
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}

.modal-close:hover {
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
}

.modal-body {
  padding: 1.75rem;
}

/* Article Content in Modal */
.article-full-img {
  width: 100%;
  height: 220px;
  max-height: 220px;
  object-fit: cover;
  object-position: center;
  border-radius: var(--radius-md);
  margin-bottom: 0;
  display: block;
}

.article-content {
  font-size: 1.05rem;
  line-height: 1.8;
  color: #e2e8f0;
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: break-word;
  max-width: 100%;
  box-sizing: border-box;
}

.article-content img {
  max-width: 100%;
  max-height: 280px;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: var(--radius-md);
  margin: 1.25rem auto;
  display: block;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
  background: rgba(0, 0, 0, 0.2);
}

/* ==========================================================
   Legal / Impressum Modal
   ========================================================== */
.legal-modal-body {
  line-height: 1.7;
  color: var(--text-secondary);
  font-size: 0.95rem;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 87, 34, 0.35) rgba(0, 0, 0, 0.2);
}

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

.legal-modal-body::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.25);
  border-radius: 4px;
}

.legal-modal-body::-webkit-scrollbar-thumb {
  background: rgba(255, 87, 34, 0.35);
  border-radius: 4px;
}

.legal-modal-body::-webkit-scrollbar-thumb:hover {
  background: var(--primary);
}

.legal-section {
  margin-bottom: 1.75rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border-color);
}

.legal-section:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

#impressum-modal .legal-section {
  border-bottom: none;
  padding-bottom: 0;
  margin-bottom: 2rem;
}

.legal-heading {
  font-size: 1.15rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.85rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.legal-heading i {
  color: var(--primary);
  font-size: 1rem;
}

.legal-subheading {
  font-size: 1rem;
  font-weight: 600;
  color: var(--secondary);
  margin-top: 1.25rem;
  margin-bottom: 0.5rem;
}

.legal-list {
  list-style: none;
  padding: 0;
  margin: 0 0 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.legal-link {
  color: var(--primary-hover);
  text-decoration: underline;
  transition: var(--transition);
}

.legal-link:hover {
  color: #fff;
}

.legal-note {
  color: var(--text-muted);
  font-size: 0.85rem;
}

.legal-warning-box {
  background: rgba(255, 87, 34, 0.08);
  border: 1px solid rgba(255, 87, 34, 0.3);
  border-radius: var(--radius-md);
  padding: 0.85rem 1.1rem;
  font-size: 0.88rem !important;
  font-weight: 400 !important;
  text-transform: none !important;
  letter-spacing: normal !important;
  line-height: 1.55 !important;
  color: var(--text-secondary);
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-top: 1rem;
}

.legal-warning-box span,
.legal-warning-box strong,
.legal-warning-box p {
  font-size: 0.88rem !important;
  text-transform: none !important;
  letter-spacing: normal !important;
}

.legal-warning-box strong {
  font-weight: 700 !important;
}

.legal-warning-box i {
  color: var(--primary);
  font-size: 1rem !important;
  margin-top: 0.18rem !important;
  flex-shrink: 0 !important;
  text-transform: none !important;
}

.legal-social-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.legal-social-badge {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
  padding: 0.4rem 0.8rem;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  color: var(--text-secondary);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: var(--transition);
}

.legal-social-badge:hover {
  background: rgba(255, 87, 34, 0.15);
  border-color: var(--primary);
  color: #fff;
  transform: translateY(-1px);
}

/* ==========================================================
   Admin Interface Styling
   ========================================================== */
.admin-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-md);
}

/* ==========================================================
   Admin Dashboard & Vertical Sidebar Navigation
   ========================================================== */
.admin-dashboard-layout {
  display: grid;
  grid-template-columns: 275px 1fr;
  gap: 1.35rem;
  align-items: start;
}

@media (max-width: 960px) {
  .admin-dashboard-layout {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }
}

.admin-sidebar {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 0.75rem 0.65rem 0.75rem;
  box-shadow: var(--shadow-md);
  position: sticky;
  top: 80px;
  display: flex;
  flex-direction: column;
  max-height: calc(100vh - 95px);
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 87, 34, 0.25) transparent;
}

.admin-sidebar::-webkit-scrollbar {
  width: 4px;
}

.admin-sidebar::-webkit-scrollbar-track {
  background: transparent;
}

.admin-sidebar::-webkit-scrollbar-thumb {
  background: rgba(255, 87, 34, 0.25);
  border-radius: 4px;
}

.admin-sidebar-header {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
  color: var(--text-muted);
  padding: 0.2rem 0.5rem 0.55rem;
  margin-bottom: 0.35rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.admin-tabs {
  display: flex;
  flex-direction: column;
  gap: 0.22rem;
  border-bottom: none;
  margin-bottom: 0;
  overflow-x: visible;
}

.admin-tab {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.44rem 0.65rem;
  font-weight: 500;
  font-size: 0.835rem;
  color: rgba(226, 232, 240, 0.78);
  background: transparent;
  border: 1px solid transparent;
  border-left: 2.5px solid transparent;
  border-radius: var(--radius-sm);
  cursor: pointer;
  white-space: nowrap;
  line-height: 1.25;
  min-height: 33px;
  transition: all 0.16s ease;
  user-select: none;
  position: relative;
}

.admin-tab i {
  font-size: 0.88rem;
  width: 18px;
  text-align: center;
  flex-shrink: 0;
  transition: transform 0.16s ease, color 0.16s ease;
}

.admin-tab>span:first-of-type {
  flex: 1 1 auto;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.admin-tab:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.045);
  border-color: rgba(255, 255, 255, 0.06);
  border-left-color: rgba(255, 87, 34, 0.45);
  transform: translateX(2px);
}

.admin-tab:hover i {
  transform: scale(1.1);
}

.admin-tab.active {
  color: #fff;
  font-weight: 600;
  background: linear-gradient(90deg, rgba(255, 87, 34, 0.15) 0%, rgba(255, 87, 34, 0.03) 100%);
  border: 1px solid rgba(255, 87, 34, 0.28);
  border-left: 3px solid var(--primary);
  box-shadow: 0 2px 8px rgba(255, 87, 34, 0.1);
}

.admin-tab.active::after {
  content: "\f054";
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  font-size: 0.6rem;
  color: var(--primary);
  opacity: 0.75;
  margin-left: 0.2rem;
  flex-shrink: 0;
}

.admin-tab.active i {
  color: var(--primary);
}

.admin-sidebar-footer {
  margin-top: 0.75rem;
  padding-top: 0.65rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.admin-channel-badge {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.6rem;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-sm);
}

.admin-main-content {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  margin-bottom: 1.25rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
}

.form-group.full-width {
  grid-column: span 2;
}

.form-label {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.form-control {
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  color: #fff;
  padding: 0.75rem 1rem;
  font-size: 0.95rem;
  transition: var(--transition);
}

.form-control:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 12px var(--primary-glow);
}

textarea.form-control {
  min-height: 140px;
  resize: vertical;
}

.admin-post-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.25rem;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  margin-bottom: 0.85rem;
  gap: 1rem;
}

.admin-post-item:hover {
  border-color: rgba(255, 255, 255, 0.15);
}

.admin-post-info {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  flex-grow: 1;
  min-width: 0;
  max-width: 100%;
}

.admin-post-title {
  font-weight: 600;
  color: #fff;
  font-size: 1rem;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.admin-post-meta {
  color: var(--text-muted);
  font-size: 0.8rem;
  display: flex;
  gap: 0.75rem;
}

.admin-post-actions {
  display: flex;
  gap: 0.5rem;
}

.btn-icon {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  background: rgba(255, 255, 255, 0.05);
  font-size: 0.95rem;
}

.btn-icon:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

.btn-icon.delete:hover {
  background: rgba(239, 68, 68, 0.2);
  color: #ef4444;
}

/* Live Preview Box */
.preview-box {
  background: var(--bg-surface);
  border: 1px dashed var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  margin-top: 1rem;
}

/* ==========================================================
   Admin Modern Redesign & Cockpit UI
   ========================================================== */

.input-password-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.input-password-wrapper .form-control {
  width: 100%;
  padding-right: 2.75rem;
}

.input-password-wrapper .btn-toggle-pw {
  position: absolute;
  right: 0.5rem;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 0.4rem 0.6rem;
  font-size: 0.95rem;
  transition: color 0.2s ease;
}

.input-password-wrapper .btn-toggle-pw:hover {
  color: #fff;
}

/* 2. Admin Topbar Header */
.admin-topbar-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
  flex-wrap: wrap;
  gap: 1.25rem;
  background: linear-gradient(135deg, rgba(26, 26, 36, 0.85) 0%, rgba(18, 18, 24, 0.95) 100%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-lg);
  padding: 1rem 1.5rem;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(12px);
}

.admin-topbar-left {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.admin-avatar-pulse {
  position: relative;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 2px solid var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 87, 34, 0.15);
  color: var(--primary);
  font-size: 1.2rem;
  flex-shrink: 0;
}

.admin-pulse-dot {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 12px;
  height: 12px;
  background: var(--accent-green);
  border: 2px solid var(--bg-dark);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--accent-green);
}

.admin-topbar-info h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: #fff;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.admin-role-pill {
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.15rem 0.55rem;
  background: rgba(34, 197, 94, 0.15);
  border: 1px solid rgba(34, 197, 94, 0.3);
  color: var(--accent-green);
  border-radius: 12px;
}

.admin-topbar-actions {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-wrap: wrap;
}

.topbar-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.95rem;
  font-size: 0.84rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  transition: all 0.2s ease;
  cursor: pointer;
  text-decoration: none;
}

.topbar-btn-maint {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: var(--text-secondary);
}

.topbar-btn-maint:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.25);
}

.topbar-btn-mediathek {
  background: rgba(168, 85, 247, 0.1);
  border: 1px solid rgba(168, 85, 247, 0.3);
  color: #c084fc;
}

.topbar-btn-mediathek:hover {
  background: rgba(168, 85, 247, 0.2);
  color: #fff;
  border-color: #c084fc;
  transform: translateY(-1px);
}

.topbar-btn-site {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
}

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

.topbar-btn-logout {
  background: rgba(239, 68, 68, 0.08);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #f87171;
}

.topbar-btn-logout:hover {
  background: rgba(239, 68, 68, 0.2);
  color: #fff;
  border-color: #ef4444;
}

/* 3. Sidebar Categories & Count Badges */
.admin-sidebar-group-title {
  font-size: 0.64rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: rgba(161, 161, 170, 0.6);
  padding: 0.45rem 0.5rem 0.15rem;
  margin-top: 0.25rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.admin-sidebar-group-title i {
  font-size: 0.62rem;
  opacity: 0.5;
}

.admin-tab-count {
  flex: 0 0 auto;
  width: auto;
  margin-left: auto;
  font-size: 0.67rem;
  font-weight: 700;
  padding: 0.1rem 0.48rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.09);
  color: rgba(226, 232, 240, 0.7);
  text-align: center;
  line-height: 1.3;
  font-variant-numeric: tabular-nums;
  transition: all 0.16s ease;
}

.admin-tab:hover .admin-tab-count {
  background: rgba(255, 255, 255, 0.09);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.15);
}

.admin-tab.active .admin-tab-count {
  background: rgba(255, 87, 34, 0.2);
  border-color: rgba(255, 87, 34, 0.4);
  color: #ffccbc;
}

/* 4. Cockpit Layout, Hero & KPI Cards */
#admin-section-cockpit {
  display: flex;
  flex-direction: column;
  gap: 2.25rem;
}

#admin-section-cockpit {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  width: 100%;
}

#admin-section-cockpit[style*="display: none"] {
  display: none !important;
}

/* 1. Studio Command Hub */
.cockpit-command-hub {
  background: linear-gradient(135deg, rgba(22, 27, 40, 0.94) 0%, rgba(13, 16, 26, 0.98) 100%);
  border: 1px solid rgba(255, 87, 34, 0.28);
  border-radius: 16px;
  padding: 1.35rem 1.75rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.25rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4), 0 0 25px rgba(255, 87, 34, 0.08);
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.cockpit-command-hub::before {
  content: "";
  position: absolute;
  top: 0;
  left: 20px;
  right: 20px;
  height: 2px;
  background: linear-gradient(90deg, transparent 0%, var(--primary) 25%, #00e5ff 75%, transparent 100%);
  opacity: 0.9;
}

.cockpit-command-left {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex: 1;
  min-width: 280px;
}

.cockpit-hub-avatar {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(255, 87, 34, 0.2) 0%, rgba(245, 158, 11, 0.12) 100%);
  border: 1px solid rgba(255, 87, 34, 0.4);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.45rem;
  flex-shrink: 0;
  position: relative;
  box-shadow: 0 4px 15px rgba(255, 87, 34, 0.2);
}

.cockpit-hub-avatar .hub-pulse-ring {
  position: absolute;
  top: -2px;
  right: -2px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #22c55e;
  border: 2px solid #0d111c;
  box-shadow: 0 0 8px #22c55e;
}

.cockpit-hub-text {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.cockpit-hub-title-row {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-wrap: wrap;
}

.cockpit-hub-title-row h2 {
  font-size: 1.35rem;
  font-weight: 800;
  color: #fff;
  margin: 0;
  letter-spacing: -0.01em;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.cockpit-hub-badge {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.15rem 0.55rem;
  border-radius: 12px;
  background: rgba(0, 229, 255, 0.12);
  border: 1px solid rgba(0, 229, 255, 0.3);
  color: #00e5ff;
}

.cockpit-hub-sub {
  color: #94a3b8;
  font-size: 0.85rem;
  margin: 0;
  line-height: 1.4;
}

.cockpit-command-right {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.cockpit-status-chips {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.cockpit-status-chip,
.cockpit-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 0.4rem 0.85rem;
  border-radius: 20px;
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #e2e8f0;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.cockpit-status-chip.chip-online,
.cockpit-status-pill.online {
  border-color: rgba(34, 197, 94, 0.35);
  background: rgba(34, 197, 94, 0.1);
  color: #86efac;
}

.cockpit-status-chip.chip-online .chip-dot,
.cockpit-status-pill.online::before {
  content: "";
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 6px #22c55e;
}

.cockpit-status-chip.chip-maint,
.cockpit-status-pill.maint-live {
  border-color: rgba(56, 189, 248, 0.35);
  background: rgba(56, 189, 248, 0.1);
  color: #7dd3fc;
}

.cockpit-status-chip.chip-maint.maint-active,
.cockpit-status-pill.maint-active {
  border-color: rgba(245, 158, 11, 0.45);
  background: rgba(245, 158, 11, 0.15);
  color: #fcd34d;
}

.cockpit-status-chip.chip-banner,
.cockpit-status-pill.banner-pill {
  border-color: rgba(168, 85, 247, 0.35);
  background: rgba(168, 85, 247, 0.1);
  color: #c084fc;
}

.cockpit-status-chip.chip-banner.banner-active,
.cockpit-status-pill.banner-active {
  border-color: rgba(56, 189, 248, 0.45);
  background: rgba(56, 189, 248, 0.15);
  color: #38bdf8;
}

.cockpit-hub-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-hub-action {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.45rem 0.9rem;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.05);
  color: #e2e8f0;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  text-decoration: none;
}

.btn-hub-action:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.25);
  color: #fff;
  transform: translateY(-1px);
}

.btn-hub-action.btn-hub-palette {
  background: rgba(255, 87, 34, 0.12);
  border-color: rgba(255, 87, 34, 0.35);
  color: #ff9e80;
}

.btn-hub-action.btn-hub-palette:hover {
  background: rgba(255, 87, 34, 0.22);
  border-color: var(--primary);
  color: #fff;
  box-shadow: 0 0 15px rgba(255, 87, 34, 0.2);
}

.btn-hub-action kbd {
  font-size: 0.68rem;
  padding: 0.12rem 0.35rem;
  border-radius: 4px;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.18);
  font-family: inherit;
  color: inherit;
}

/* 2. KPI Grid (6-Stat Responsive Deck) */
.cockpit-kpi-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

@media (max-width: 1200px) {
  .cockpit-kpi-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 680px) {
  .cockpit-kpi-grid {
    grid-template-columns: 1fr;
  }
}

.cockpit-kpi-card {
  background: linear-gradient(135deg, rgba(20, 24, 38, 0.88) 0%, rgba(13, 17, 28, 0.95) 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 1.25rem 1.4rem;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.35);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.cockpit-kpi-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: transparent;
  transition: background 0.25s ease, box-shadow 0.25s ease;
}

.cockpit-kpi-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.55);
}

.cockpit-kpi-card.card-videos:hover {
  border-color: rgba(255, 87, 34, 0.45);
}

.cockpit-kpi-card.card-videos:hover::before {
  background: linear-gradient(90deg, var(--primary), #fbbf24);
  box-shadow: 0 0 10px rgba(255, 87, 34, 0.6);
}

.cockpit-kpi-card.card-users:hover {
  border-color: rgba(168, 85, 247, 0.45);
}

.cockpit-kpi-card.card-users:hover::before {
  background: linear-gradient(90deg, #a855f7, #c084fc);
  box-shadow: 0 0 10px rgba(168, 85, 247, 0.6);
}

.cockpit-kpi-card.card-news:hover {
  border-color: rgba(56, 189, 248, 0.45);
}

.cockpit-kpi-card.card-news:hover::before {
  background: linear-gradient(90deg, #38bdf8, #0ea5e9);
  box-shadow: 0 0 10px rgba(56, 189, 248, 0.6);
}

.cockpit-kpi-card.card-ranks:hover {
  border-color: rgba(245, 158, 11, 0.45);
}

.cockpit-kpi-card.card-ranks:hover::before {
  background: linear-gradient(90deg, #f59e0b, #fbbf24);
  box-shadow: 0 0 10px rgba(245, 158, 11, 0.6);
}

.cockpit-kpi-card.card-smtp:hover {
  border-color: rgba(16, 185, 129, 0.45);
}

.cockpit-kpi-card.card-smtp:hover::before {
  background: linear-gradient(90deg, #10b981, #34d399);
  box-shadow: 0 0 10px rgba(16, 185, 129, 0.6);
}

.cockpit-kpi-card.card-maint:hover {
  border-color: rgba(0, 229, 255, 0.45);
}

.cockpit-kpi-card.card-maint:hover::before {
  background: linear-gradient(90deg, #00e5ff, #38bdf8);
  box-shadow: 0 0 10px rgba(0, 229, 255, 0.6);
}

.cockpit-kpi-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.65rem;
}

.cockpit-kpi-label {
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #94a3b8;
}

.cockpit-kpi-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  flex-shrink: 0;
  transition: transform 0.22s ease;
}

.cockpit-kpi-card:hover .cockpit-kpi-icon {
  transform: scale(1.08);
}

.cockpit-kpi-icon.videos {
  background: rgba(255, 87, 34, 0.15);
  color: #ff7043;
  border: 1px solid rgba(255, 87, 34, 0.3);
}

.cockpit-kpi-icon.users {
  background: rgba(168, 85, 247, 0.15);
  color: #c084fc;
  border: 1px solid rgba(168, 85, 247, 0.3);
}

.cockpit-kpi-icon.news {
  background: rgba(56, 189, 248, 0.15);
  color: #38bdf8;
  border: 1px solid rgba(56, 189, 248, 0.3);
}

.cockpit-kpi-icon.ranks {
  background: rgba(245, 158, 11, 0.15);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.3);
}

.cockpit-kpi-icon.smtp {
  background: rgba(16, 185, 129, 0.15);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.cockpit-kpi-icon.maint {
  background: rgba(0, 229, 255, 0.15);
  color: #00e5ff;
  border: 1px solid rgba(0, 229, 255, 0.3);
}

.cockpit-kpi-val {
  font-size: 2.15rem;
  font-weight: 800;
  color: #fff;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
}

.cockpit-kpi-sub {
  font-size: 0.8rem;
  color: #94a3b8;
  margin-top: 0.35rem;
  line-height: 1.35;
}

.cockpit-kpi-action {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--primary);
  margin-top: 1rem;
  padding-top: 0.65rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  align-items: center;
  gap: 0.4rem;
  transition: color 0.2s ease;
}

.cockpit-kpi-action i {
  font-size: 0.72rem;
  transition: transform 0.2s ease;
}

.cockpit-kpi-card:hover .cockpit-kpi-action {
  color: #fff;
}

.cockpit-kpi-card:hover .cockpit-kpi-action i {
  transform: translateX(4px);
}

/* 3. Split Studio Control Deck (Two Columns) */
.cockpit-split-deck {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 1.5rem;
  align-items: start;
}

@media (max-width: 1080px) {
  .cockpit-split-deck {
    grid-template-columns: 1fr;
  }
}

.cockpit-tools-box,
.cockpit-telemetry-box {
  background: linear-gradient(135deg, rgba(20, 24, 38, 0.88) 0%, rgba(13, 17, 28, 0.95) 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 1.5rem 1.6rem;
  box-shadow: 0 6px 25px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.cockpit-section-title {
  font-size: 1.12rem;
  font-weight: 800;
  color: #fff;
  margin: 0 0 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.cockpit-section-title .title-left {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

/* Tool Tiles Grid (8 Modern Tiles) */
.cockpit-tool-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.85rem;
}

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

.cockpit-tool-tile {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 12px;
  padding: 0.9rem 1rem;
  display: flex;
  align-items: center;
  gap: 0.85rem;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  color: inherit;
  text-align: left;
  border-left: 3px solid transparent;
  width: 100%;
}

.cockpit-tool-tile:hover {
  transform: translateY(-2px) translateX(2px);
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.16);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35);
}

.cockpit-tool-tile.tool-orange:hover {
  border-left-color: var(--primary);
}

.cockpit-tool-tile.tool-sky:hover {
  border-left-color: #38bdf8;
}

.cockpit-tool-tile.tool-red:hover {
  border-left-color: #ef4444;
}

.cockpit-tool-tile.tool-cyan:hover {
  border-left-color: #00e5ff;
}

.cockpit-tool-tile.tool-purple:hover {
  border-left-color: #a855f7;
}

.cockpit-tool-tile.tool-gold:hover {
  border-left-color: #fbbf24;
}

.cockpit-tool-tile.tool-emerald:hover {
  border-left-color: #10b981;
}

.cockpit-tool-tile.tool-violet:hover {
  border-left-color: #818cf8;
}

.cockpit-tool-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

.cockpit-tool-tile:hover .cockpit-tool-icon {
  transform: scale(1.08);
}

.cockpit-tool-icon.orange {
  background: rgba(255, 87, 34, 0.15);
  color: #ff7043;
  border: 1px solid rgba(255, 87, 34, 0.3);
}

.cockpit-tool-icon.sky {
  background: rgba(56, 189, 248, 0.15);
  color: #38bdf8;
  border: 1px solid rgba(56, 189, 248, 0.3);
}

.cockpit-tool-icon.red {
  background: rgba(239, 68, 68, 0.15);
  color: #ef4444;
  border: 1px solid rgba(239, 68, 68, 0.3);
}

.cockpit-tool-icon.cyan {
  background: rgba(0, 229, 255, 0.15);
  color: #00e5ff;
  border: 1px solid rgba(0, 229, 255, 0.3);
}

.cockpit-tool-icon.purple {
  background: rgba(168, 85, 247, 0.15);
  color: #c084fc;
  border: 1px solid rgba(168, 85, 247, 0.3);
}

.cockpit-tool-icon.gold {
  background: rgba(245, 158, 11, 0.15);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.3);
}

.cockpit-tool-icon.emerald {
  background: rgba(16, 185, 129, 0.15);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.cockpit-tool-icon.violet {
  background: rgba(99, 102, 241, 0.15);
  color: #818cf8;
  border: 1px solid rgba(99, 102, 241, 0.3);
}

.cockpit-tool-info {
  flex: 1;
  min-width: 0;
}

.cockpit-tool-title {
  font-weight: 700;
  font-size: 0.9rem;
  color: #fff;
  line-height: 1.25;
  margin-bottom: 0.15rem;
}

.cockpit-tool-desc {
  font-size: 0.74rem;
  color: #94a3b8;
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Telemetry Box List */
.cockpit-telemetry-list {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.cockpit-telemetry-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.75rem 0.9rem;
  background: rgba(0, 0, 0, 0.28);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  transition: all 0.2s ease;
}

.cockpit-telemetry-item:hover {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.1);
}

.cockpit-telemetry-label {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: #e2e8f0;
}

.cockpit-telemetry-label i {
  font-size: 0.95rem;
  width: 18px;
  text-align: center;
}

.cockpit-telemetry-status {
  font-size: 0.8rem;
  font-weight: 600;
  color: #fff;
  text-align: right;
}

/* Quick Maintenance Switcher Card in Telemetry Box */
.cockpit-quick-maint-card {
  margin-top: 1rem;
  padding: 1rem 1.15rem;
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.08) 0%, rgba(20, 24, 38, 0.85) 100%);
  border: 1px solid rgba(245, 158, 11, 0.25);
  border-radius: 12px;
}

.cockpit-quick-maint-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.45rem;
}

.cockpit-quick-maint-title {
  font-size: 0.85rem;
  font-weight: 700;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.cockpit-quick-maint-desc {
  font-size: 0.74rem;
  color: #94a3b8;
  margin-bottom: 0.75rem;
  line-height: 1.35;
}

/* ==========================================================
   Footer - Modern Creator & Gaming Community Hub
   ========================================================== */
.footer {
  position: relative;
  background: linear-gradient(180deg, #0d121c 0%, #07090f 100%);
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  padding: 4.5rem 0 2.25rem;
  margin-top: auto;
  overflow: hidden;
}

/* Glowing Accent Line at Footer Top Edge */
.footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent 0%, rgba(255, 87, 34, 0.6) 20%, rgba(255, 145, 0, 0.9) 50%, rgba(0, 229, 255, 0.6) 80%, transparent 100%);
  box-shadow: 0 0 16px rgba(255, 87, 34, 0.45);
  pointer-events: none;
  z-index: 2;
}

/* Ambient Radial Glow */
.footer::after {
  content: "";
  position: absolute;
  top: -160px;
  left: 50%;
  transform: translateX(-50%);
  width: 700px;
  height: 320px;
  background: radial-gradient(ellipse at center, rgba(255, 87, 34, 0.08) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.footer .container {
  position: relative;
  z-index: 1;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2.1fr 1.15fr 1.25fr 1.35fr;
  gap: 3rem 2.25rem;
  margin-bottom: 3.25rem;
}

/* Spalte 1: Brand & Creator Info */
.footer-brand-col {
  display: flex;
  flex-direction: column;
}

.footer-brand-wrap {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  margin-bottom: 1rem;
}

.footer-avatar-wrap {
  position: relative;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  padding: 2px;
  background: linear-gradient(135deg, #ff5722 0%, #ff9100 50%, #00e5ff 100%);
  box-shadow: 0 0 16px rgba(255, 87, 34, 0.45);
  flex-shrink: 0;
}

.footer-avatar-wrap .brand-avatar {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  display: block;
}

.brand-title-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.footer-brand-wrap .brand-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.01em;
}

.footer-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 7px;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  background: rgba(255, 87, 34, 0.15);
  border: 1px solid rgba(255, 87, 34, 0.35);
  color: #ff9e80;
}

.footer-brand-wrap .brand-tag {
  font-size: 0.8rem;
  color: var(--text-muted);
  display: block;
  margin-top: 2px;
}

.footer-desc {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-bottom: 1.25rem;
  max-width: 420px;
  line-height: 1.65;
}

.footer-cta-wrap {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  align-items: flex-start;
}

.footer-yt-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.6rem 1.1rem;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, rgba(230, 33, 23, 0.18) 0%, rgba(255, 87, 34, 0.15) 100%);
  border: 1px solid rgba(255, 0, 0, 0.35);
  color: #ffffff;
  font-size: 0.88rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 2px 10px rgba(255, 0, 0, 0.15);
}

.footer-yt-btn i.fa-youtube {
  color: #ff0000;
  font-size: 1.15rem;
  transition: transform 0.25s ease;
}

.footer-yt-btn:hover {
  background: linear-gradient(135deg, rgba(230, 33, 23, 0.3) 0%, rgba(255, 87, 34, 0.28) 100%);
  border-color: rgba(255, 50, 50, 0.65);
  color: #ffffff;
  box-shadow: 0 4px 18px rgba(255, 0, 0, 0.35);
  transform: translateY(-2px);
}

.footer-yt-btn:hover i.fa-youtube {
  transform: scale(1.18);
}

.footer-ext-icon {
  font-size: 0.7rem;
  opacity: 0.6;
  margin-left: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.footer-yt-btn:hover .footer-ext-icon,
.footer-links li a:hover .footer-ext-icon {
  opacity: 1;
  transform: translate(2px, -2px);
}

.footer-status-tag {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 0.78rem;
  color: var(--text-muted);
  user-select: none;
}

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 8px #10b981;
  display: inline-block;
  transform: translate3d(0, 0, 0);
  backface-visibility: hidden;
  animation: footerPulseDot 2.2s ease-in-out infinite;
}

@keyframes footerPulseDot {

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

  50% {
    transform: translate3d(0, 0, 0) scale(1.35);
    opacity: 0.65;
  }
}

/* Headings */
.footer-heading {
  font-size: 0.95rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: #ffffff;
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
  gap: 8px;
}

.footer-heading::after {
  content: "";
  display: inline-block;
  width: 18px;
  height: 2px;
  background: linear-gradient(90deg, #ff5722 0%, transparent 100%);
  border-radius: 2px;
}

/* Links */
.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.footer-links li a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
  color: var(--text-secondary);
  text-decoration: none;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  padding: 3px 0;
  border-radius: var(--radius-xs);
}

.footer-links li a i {
  width: 16px;
  text-align: center;
  font-size: 0.88rem;
  color: var(--text-muted);
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.footer-links li a:hover {
  color: #ff9e80;
  transform: translateX(4px);
}

.footer-links li a:hover i {
  color: var(--primary);
  transform: scale(1.15);
}

.footer-links li a.active-link {
  color: #fff;
  font-weight: 600;
}

.footer-links li a.active-link i {
  color: var(--primary);
}

/* Badges / Pills within Links */
.footer-pill {
  font-size: 0.68rem;
  font-weight: 700;
  padding: 1px 7px;
  border-radius: 999px;
  background: rgba(0, 229, 255, 0.12);
  border: 1px solid rgba(0, 229, 255, 0.35);
  color: #00e5ff;
  letter-spacing: 0.3px;
  margin-left: auto;
}

.footer-pill.hot {
  background: rgba(255, 87, 34, 0.18);
  border-color: rgba(255, 87, 34, 0.45);
  color: #ff9e80;
}

.footer-pill.easteregg {
  background: rgba(168, 85, 247, 0.15);
  border-color: rgba(168, 85, 247, 0.4);
  color: #c084fc;
}

/* Easter Egg Link Item */
.footer-easteregg-item {
  margin-top: 0.4rem;
}

#footer-dummy-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 10px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.03);
  border: 1px dashed rgba(255, 255, 255, 0.14);
  color: var(--text-muted);
  font-size: 0.85rem;
  cursor: pointer;
  user-select: none;
  transition: all 0.22s ease;
  width: 100%;
}

#footer-dummy-link:hover {
  background: rgba(255, 87, 34, 0.09);
  border-color: rgba(255, 87, 34, 0.45);
  color: #ff9e80;
  transform: translateY(-1px);
}

#footer-dummy-link:hover i {
  color: var(--primary);
}

#footer-dummy-link.playing {
  background: rgba(255, 87, 34, 0.22) !important;
  border: 1px solid #ff5722 !important;
  color: #ffffff !important;
  box-shadow: 0 0 16px var(--primary-glow) !important;
  transform: scale(1.02);
}

#footer-dummy-link.playing i {
  display: inline-block;
  color: #ff9e80 !important;
  animation: shakeSound 0.35s ease infinite alternate;
}

@keyframes shakeSound {
  0% {
    transform: rotate(-10deg) scale(1.15);
  }

  100% {
    transform: rotate(10deg) scale(1.15);
  }
}

/* Footer Bottom Bar */
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  padding-top: 1.75rem;
  font-size: 0.85rem;
  color: var(--text-muted);
  flex-wrap: wrap;
  gap: 1.25rem;
}

.footer-bottom-left {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.footer-bottom-copy {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.footer-dot-sep {
  color: var(--text-muted);
  opacity: 0.5;
}

.footer-dev-note {
  color: var(--text-muted);
  font-size: 0.8rem;
}

.footer-bottom-chips {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.footer-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text-secondary);
  font-size: 0.78rem;
  font-family: inherit;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s ease;
}

.footer-chip i {
  font-size: 0.72rem;
  color: var(--text-muted);
  transition: color 0.2s ease;
}

.footer-chip:hover {
  background: rgba(255, 87, 34, 0.12);
  border-color: rgba(255, 87, 34, 0.35);
  color: #ff9e80;
  transform: translateY(-1px);
}

.footer-chip:hover i {
  color: var(--primary);
}

.footer-bottom-right {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.footer-system-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  color: var(--text-muted);
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(16, 185, 129, 0.06);
  border: 1px solid rgba(16, 185, 129, 0.2);
}

.footer-system-status .status-dot {
  width: 6px;
  height: 6px;
}

.footer-back-to-top-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--text-secondary);
  font-family: inherit;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.22s ease;
}

.footer-back-to-top-btn:hover {
  background: var(--primary);
  border-color: var(--primary-hover);
  color: #ffffff;
  box-shadow: 0 4px 14px var(--primary-glow);
  transform: translateY(-2px);
}


/* ==========================================================
   Toast Notifications
   ========================================================== */
.toast-container {
  position: fixed;
  bottom: 80px;
  right: 24px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  pointer-events: none;
}

.toast {
  pointer-events: auto;
  background: var(--bg-card);
  border: 1px solid var(--primary);
  box-shadow: var(--shadow-lg), 0 0 20px var(--primary-glow);
  color: #fff;
  padding: 0.9rem 1.4rem;
  border-radius: var(--radius-md);
  font-size: 0.92rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  animation: slideInRight 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  max-width: 420px;
  line-height: 1.4;
}

.toast.toast-success {
  border-color: #22c55e;
  box-shadow: var(--shadow-lg), 0 0 16px rgba(34, 197, 94, 0.25);
}

.toast.toast-warning {
  border-color: #f59e0b;
  box-shadow: var(--shadow-lg), 0 0 16px rgba(245, 158, 11, 0.25);
}

.toast.toast-error {
  border-color: #ef4444;
  box-shadow: var(--shadow-lg), 0 0 16px rgba(239, 68, 68, 0.25);
}

.toast.toast-info {
  border-color: var(--secondary);
  box-shadow: var(--shadow-lg), 0 0 16px rgba(255, 152, 0, 0.25);
}

@keyframes slideInRight {
  from {
    transform: translateX(100%);
    opacity: 0;
  }

  to {
    transform: translateX(0);
    opacity: 1;
  }
}

/* Animation for dice roll */
.rolling {
  animation: diceSpin 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes diceSpin {
  0% {
    transform: rotate(0deg) scale(1);
  }

  50% {
    transform: rotate(360deg) scale(1.2);
  }

  100% {
    transform: rotate(720deg) scale(1);
  }
}

/* Responsive adjustments */
@media (max-width: 992px) {
  .hero-content {
    flex-direction: column;
    text-align: center;
  }

  .badge-tagline {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-actions {
    justify-content: center;
  }

  .hero-stats {
    justify-content: center;
  }

  .hero-card {
    max-width: 100%;
  }

  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2.5rem 1.75rem;
  }
}

@media (max-width: 640px) {
  .footer {
    padding: 3rem 0 1.75rem;
  }

  .footer::after {
    width: 100vw;
    max-width: 100%;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.15rem;
  }

  .footer-bottom-copy {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.3rem;
  }

  .footer-dot-sep {
    display: none;
  }

  .footer-bottom-chips {
    gap: 0.4rem;
  }

  .footer-chip {
    min-height: 34px;
    padding: 0.35rem 0.75rem;
  }

  .footer-bottom-right {
    width: 100%;
    justify-content: space-between;
    padding-top: 0.75rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
  }
}

/* Responsive Navigation (Collapse at 1024px to prevent collision) */
@media (max-width: 1024px) {
  .nav-links {
    display: none;
  }

  .nav-links.mobile-open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: calc(100% + 0.6rem);
    left: 1rem;
    right: 1rem;
    width: auto;
    background: rgba(13, 17, 28, 0.98);
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
    padding: 1.25rem 1.25rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 18px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.75), 0 0 24px rgba(255, 87, 34, 0.15);
    gap: 0.55rem;
    z-index: 1050;
    animation: mobileNavSlideDown 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  }

  @keyframes mobileNavSlideDown {
    from {
      opacity: 0;
      transform: translateY(-12px) scale(0.97);
    }

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

  .nav-links.mobile-open .nav-link {
    padding: 0.85rem 1.15rem;
    width: 100%;
    font-size: 0.96rem;
    background: rgba(255, 255, 255, 0.035);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    justify-content: flex-start;
  }

  .nav-links.mobile-open .nav-link i {
    font-size: 1.05rem;
    width: 22px;
    text-align: center;
  }

  .nav-links.mobile-open .nav-link:hover,
  .nav-links.mobile-open .nav-link.active {
    background: linear-gradient(135deg, rgba(255, 87, 34, 0.2), rgba(0, 229, 255, 0.12));
    border-color: rgba(255, 87, 34, 0.45);
    color: #fff;
  }

  .nav-hamburger {
    display: inline-flex;
  }
}

@media (max-width: 580px) {
  .navbar {
    padding: 0.5rem 0;
  }

  .navbar .container {
    gap: 0.5rem;
    padding: 0 0.85rem;
    justify-content: space-between;
  }

  .brand {
    gap: 0.45rem;
    min-width: 0;
  }

  .brand-avatar,
  .brand-avatar-wrap {
    width: 34px;
    height: 34px;
  }

  .brand-title {
    font-size: 0.98rem;
    letter-spacing: -0.01em;
  }

  .brand-tag {
    display: none;
  }

  .nav-actions {
    gap: 0.35rem;
  }

  .btn-yt-sub span {
    display: none;
  }

  .btn-yt-sub {
    width: 38px;
    height: 38px;
    min-width: 38px;
    padding: 0;
    justify-content: center;
    border-radius: 50%;
    font-size: 1.05rem;
  }

  .user-pill {
    width: 38px;
    height: 38px;
    min-width: 38px;
    max-width: 38px;
    padding: 0;
    justify-content: center;
    border-radius: 50%;
    border: 1.5px solid rgba(255, 87, 34, 0.45);
    flex-shrink: 0;
  }

  .user-pill:hover,
  .user-pill.active {
    border-color: #ff5722;
    box-shadow: 0 0 14px rgba(255, 87, 34, 0.4);
  }

  .user-pill .user-pill-name,
  .user-pill .user-pill-role,
  .user-pill .user-pill-chevron {
    display: none !important;
  }

  .user-pill .user-avatar-badge {
    width: 28px !important;
    height: 28px !important;
    box-shadow: none !important;
  }

  .user-dropdown-menu {
    right: calc(-1 * (44px + 0.35rem));
    width: min(300px, calc(100vw - 1.5rem));
    max-width: calc(100vw - 1.5rem);
  }

  .btn-account-login span {
    display: none;
  }

  .btn-account-login {
    width: 38px;
    height: 38px;
    min-width: 38px;
    padding: 0;
    justify-content: center;
    border-radius: 50%;
  }

  .btn-account-login i {
    font-size: 0.95rem;
    margin: 0;
  }

  .btn-nav-search {
    width: 38px;
    height: 38px;
    min-width: 38px;
    font-size: 0.92rem;
  }

  .nav-hamburger {
    width: 44px;
    height: 44px;
    min-width: 44px;
    min-height: 44px;
    border-radius: 12px;
  }
}

@media (max-width: 380px) {
  .brand-tag {
    display: none;
  }

  .brand-avatar,
  .brand-avatar-wrap {
    width: 32px;
    height: 32px;
  }

  .brand-title {
    font-size: 0.95rem;
  }

  .nav-actions {
    gap: 0.35rem;
  }

  .btn-nav-search,
  .btn-yt-sub,
  .btn-account-login {
    width: 34px;
    height: 34px;
    min-width: 34px;
  }

  .nav-hamburger {
    width: 40px;
    height: 40px;
    min-width: 40px;
    min-height: 40px;
  }

  .user-pill {
    width: 34px;
    height: 34px;
    min-width: 34px;
    max-width: 34px;
  }

  .user-pill .user-avatar-badge {
    width: 26px !important;
    height: 26px !important;
    font-size: 13px !important;
  }

  .user-dropdown-menu {
    right: calc(-1 * (40px + 0.35rem));
    width: min(280px, calc(100vw - 1rem));
    max-width: calc(100vw - 1rem);
  }
}

@media (max-width: 768px) {
  .user-pill .user-pill-role {
    display: none !important;
  }

  .user-pill .user-pill-name {
    max-width: 90px;
  }

  .hero-title {
    font-size: 2.2rem;
  }

  .section-title {
    font-size: 1.8rem;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }

  .form-group.full-width {
    grid-column: span 1;
  }

  .video-grid {
    grid-template-columns: 1fr;
  }

  .news-grid {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================
   Mediathek & YouTube API Sync Features
   ========================================================== */
.mediathek-nav-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
  gap: 1rem;
  flex-wrap: wrap;
}

.view-mode-tabs {
  display: inline-flex;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-full);
  padding: 0.3rem;
  gap: 0.25rem;
}

.view-mode-tab {
  padding: 0.5rem 1.1rem;
  border-radius: var(--radius-full);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-secondary);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: var(--transition);
  cursor: pointer;
}

.view-mode-tab:hover {
  color: #fff;
}

.view-mode-tab.active {
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  color: #fff;
  box-shadow: 0 2px 10px var(--primary-glow);
}

.view-mode-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 1.15rem;
  background: linear-gradient(135deg, rgba(255, 87, 34, 0.18) 0%, rgba(245, 158, 11, 0.18) 100%);
  border: 1px solid rgba(255, 87, 34, 0.35);
  border-radius: var(--radius-full);
  color: #fff;
  font-weight: 600;
  font-size: 0.88rem;
  box-shadow: 0 2px 10px rgba(255, 87, 34, 0.15);
}

.view-mode-pill i {
  color: var(--secondary);
}

/* ==========================================================
   Mediathek Startseite: Hinweis & Button Styling
   ========================================================== */
.mediathek-hint-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  background: linear-gradient(135deg, rgba(24, 33, 50, 0.9) 0%, rgba(18, 25, 38, 0.95) 100%);
  border: 1px solid rgba(255, 87, 34, 0.28);
  border-left: 4px solid var(--primary);
  border-radius: var(--radius-md);
  padding: 1.05rem 1.45rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.35), 0 0 15px rgba(255, 87, 34, 0.08);
  backdrop-filter: blur(12px);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.mediathek-hint-banner:hover {
  border-color: rgba(255, 87, 34, 0.48);
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.45), 0 0 22px rgba(255, 87, 34, 0.16);
}

.mediathek-hint-content {
  display: flex;
  align-items: center;
  gap: 1.15rem;
  flex: 1;
}

.mediathek-hint-icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(255, 87, 34, 0.22) 0%, rgba(245, 158, 11, 0.22) 100%);
  border: 1px solid rgba(255, 87, 34, 0.4);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  flex-shrink: 0;
  box-shadow: 0 0 12px rgba(255, 87, 34, 0.2);
}

.mediathek-hint-text {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.mediathek-hint-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--secondary);
}

.mediathek-hint-desc {
  font-size: 0.94rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin: 0;
}

.mediathek-hint-desc strong {
  color: var(--text-primary);
  font-weight: 600;
}

.mediathek-hint-btn {
  flex-shrink: 0;
  white-space: nowrap;
  padding: 0.72rem 1.45rem;
  font-size: 0.94rem;
}

.mediathek-hint-btn i.fa-arrow-right {
  transition: transform var(--transition-fast);
}

.mediathek-hint-btn:hover i.fa-arrow-right {
  transform: translateX(4px);
}

/* Bottom CTA unter dem Video-Raster */
.mediathek-bottom-cta {
  margin-top: 2.25rem;
  background: rgba(22, 29, 43, 0.65);
  border: 1px solid var(--border-glow);
  border-radius: var(--radius-md);
  padding: 1.25rem 1.6rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  box-shadow: var(--shadow-sm);
  transition: border-color var(--transition-fast), background-color var(--transition-fast), box-shadow var(--transition-fast);
}

.mediathek-bottom-cta:hover {
  border-color: rgba(255, 87, 34, 0.45);
  background: rgba(22, 29, 43, 0.85);
  box-shadow: var(--shadow-md), 0 0 16px rgba(255, 87, 34, 0.12);
}

.mediathek-bottom-cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  gap: 1.25rem;
  flex-wrap: wrap;
}

.mediathek-bottom-cta-text {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  color: var(--text-secondary);
  font-size: 0.96rem;
}

.mediathek-bottom-cta-text i {
  color: var(--primary);
  font-size: 1.2rem;
}

.mediathek-bottom-btn {
  white-space: nowrap;
  padding: 0.68rem 1.35rem;
  font-size: 0.92rem;
}

.mediathek-bottom-btn i.fa-arrow-right {
  transition: transform var(--transition-fast);
}

.mediathek-bottom-btn:hover i.fa-arrow-right {
  transform: translateX(4px);
}

@media (max-width: 768px) {
  .mediathek-hint-banner {
    flex-direction: column;
    align-items: stretch;
    padding: 1.15rem;
    gap: 1.1rem;
  }

  .mediathek-hint-content {
    align-items: flex-start;
  }

  .mediathek-hint-btn {
    width: 100%;
    justify-content: center;
  }

  .mediathek-bottom-cta-inner {
    flex-direction: column;
    align-items: stretch;
    text-align: center;
    gap: 1rem;
  }

  .mediathek-bottom-cta-text {
    justify-content: center;
  }

  .mediathek-bottom-btn {
    width: 100%;
    justify-content: center;
  }
}


.sync-status-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(22, 29, 43, 0.7);
  border: 1px solid var(--border-glow);
  border-radius: var(--radius-md);
  padding: 0.85rem 1.25rem;
  margin-bottom: 1.5rem;
  gap: 1rem;
  flex-wrap: wrap;
}

.sync-status-info {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.88rem;
  color: var(--text-secondary);
}

.status-indicator-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  flex-shrink: 0;
}

.status-indicator-dot.online {
  background: var(--accent-green);
  box-shadow: 0 0 8px var(--accent-green);
}

.status-indicator-dot.offline {
  background: var(--secondary);
  box-shadow: 0 0 8px var(--secondary);
}

.sync-status-actions {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.progress-container {
  width: 100%;
  background: var(--bg-input);
  border-radius: var(--radius-full);
  height: 10px;
  overflow: hidden;
  margin: 1rem 0;
  border: 1px solid var(--border-color);
}

.progress-bar-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--primary) 0%, var(--secondary) 50%, var(--accent-gold) 100%);
  transition: width 0.3s ease;
  box-shadow: 0 0 10px var(--primary-glow);
}

.sort-select {
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  color: #fff;
  padding: 0.45rem 0.85rem;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  outline: none;
  cursor: pointer;
}

.sort-select:focus {
  border-color: var(--primary);
}

.mediathek-counter {
  font-size: 0.88rem;
  color: var(--text-muted);
}

.load-more-wrap {
  text-align: center;
  margin-top: 2.5rem;
}

/* ==========================================================
   Admin Video Database Management Styling
   ========================================================== */
.admin-videos-grid {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.admin-video-item {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding: 0.85rem 1.25rem;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  transition: var(--transition);
}

.admin-video-item:hover {
  border-color: rgba(255, 107, 0, 0.4);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.35);
  background: rgba(26, 32, 48, 0.8);
}

.admin-video-thumb {
  position: relative;
  width: 125px;
  min-width: 125px;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: #000;
  cursor: pointer;
}

.admin-video-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.admin-video-thumb:hover img {
  transform: scale(1.08);
}

.admin-video-thumb .thumb-duration {
  position: absolute;
  bottom: 4px;
  right: 4px;
  background: rgba(0, 0, 0, 0.85);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 700;
  padding: 0.15rem 0.4rem;
  border-radius: 3px;
}

.admin-video-details {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  min-width: 0;
}

.admin-video-title {
  color: #fff;
  font-weight: 600;
  font-size: 0.98rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-video-title a {
  color: #fff;
  text-decoration: none;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-video-title a:hover {
  color: var(--secondary);
}

.admin-video-meta {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  font-size: 0.8rem;
  color: var(--text-muted);
  flex-wrap: wrap;
}

.admin-video-meta span {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

.admin-video-actions {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  margin-left: auto;
}

.btn-icon.featured-active {
  background: rgba(255, 193, 7, 0.2);
  color: #fbbf24;
  border-color: rgba(255, 193, 7, 0.4);
}

.btn-icon.featured-active:hover {
  background: rgba(255, 193, 7, 0.3);
}

@media (max-width: 768px) {
  .admin-video-item {
    flex-direction: column;
    align-items: flex-start;
  }

  .admin-video-thumb {
    width: 100%;
    min-width: unset;
  }

  .admin-video-actions {
    width: 100%;
    justify-content: flex-end;
    margin-top: 0.5rem;
  }
}

/* ==========================================================
   Admin Video Pagination
   ========================================================== */
.admin-pagination-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 1.5rem;
  padding: 1rem 1.25rem;
  background: var(--bg-surface);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
}

.admin-pagination-info {
  font-size: 0.88rem;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-wrap: wrap;
}

.admin-pagination-info strong {
  color: #fff;
}

.admin-pagination-nav {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  flex-wrap: wrap;
}

.admin-page-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  padding: 0 0.65rem;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-secondary);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--transition-fast);
  text-decoration: none;
  user-select: none;
}

.admin-page-btn:hover:not(:disabled) {
  background: rgba(255, 107, 0, 0.15);
  border-color: rgba(255, 107, 0, 0.4);
  color: #fff;
  transform: translateY(-1px);
}

.admin-page-btn.active {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
  font-weight: 600;
  box-shadow: 0 2px 8px rgba(255, 107, 0, 0.35);
}

.admin-page-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
  pointer-events: none;
}

.admin-page-dots {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 24px;
  height: 36px;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.admin-page-jump {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-left: 0.5rem;
  font-size: 0.82rem;
  color: var(--text-muted);
}

.admin-page-jump input {
  width: 52px;
  padding: 0.25rem 0.4rem;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--border-color);
  border-radius: 4px;
  color: #fff;
  font-size: 0.85rem;
  text-align: center;
}

.admin-page-jump input:focus {
  outline: none;
  border-color: var(--primary);
}

@media (max-width: 768px) {
  .admin-pagination-container {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.85rem;
  }

  .admin-pagination-nav {
    justify-content: center;
  }
}


/* ==========================================================
   Beliebte Spielreihen (Dynamische Box)
   ========================================================== */
.popular-series-card {
  background: var(--bg-card);
  border: 1px solid var(--border-glow);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  box-shadow: var(--shadow-md);
  position: relative;
  overflow: hidden;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.popular-series-card:hover {
  border-color: rgba(255, 87, 34, 0.4);
  box-shadow: var(--shadow-lg), 0 0 20px rgba(255, 87, 34, 0.1);
}

.popular-series-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.25rem;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.popular-series-title-wrap {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-wrap: wrap;
}

.popular-series-title {
  font-size: 1.2rem;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0;
  font-weight: 700;
}

.popular-series-title i {
  color: var(--primary);
}

.popular-series-count-badge {
  font-size: 0.78rem;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.05);
  padding: 0.2rem 0.55rem;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-color);
}

.popular-series-tabs {
  display: inline-flex;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-full);
  padding: 0.25rem;
  gap: 0.2rem;
}

.series-tab-btn {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius-full);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  transition: all var(--transition-fast);
}

.series-tab-btn:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
}

.series-tab-btn.active {
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  color: #fff;
  box-shadow: 0 2px 8px var(--primary-glow);
}

.popular-series-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.popular-series-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.65rem 0.85rem;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  transition: transform var(--transition-fast), border-color var(--transition-fast), background-color var(--transition-fast), box-shadow var(--transition-fast);
  cursor: pointer;
  text-decoration: none;
  user-select: none;
  gap: 0.85rem;
  position: relative;
  overflow: hidden;
}

.popular-series-item:hover {
  background: rgba(255, 87, 34, 0.08);
  border-color: rgba(255, 87, 34, 0.45);
  transform: translateX(4px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3), 0 0 12px rgba(255, 87, 34, 0.15);
}

.popular-series-main {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  min-width: 0;
  flex: 1;
}

.popular-series-thumb-wrap {
  width: 64px;
  height: 38px;
  border-radius: 6px;
  overflow: hidden;
  position: relative;
  flex-shrink: 0;
  background: var(--bg-darker);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.popular-series-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-fast);
}

.popular-series-item:hover .popular-series-thumb {
  transform: scale(1.08);
}

.popular-series-play-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity var(--transition-fast);
  color: #fff;
  font-size: 0.8rem;
}

.popular-series-item:hover .popular-series-play-overlay {
  opacity: 1;
}

.popular-series-info {
  display: flex;
  flex-direction: column;
  min-width: 0;
  gap: 0.15rem;
}

.popular-series-name {
  font-weight: 600;
  color: #fff;
  font-size: 0.92rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.popular-series-sub {
  font-size: 0.76rem;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: block;
}

.popular-series-aside {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}

.popular-series-badge {
  font-size: 0.78rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  color: var(--secondary);
  background: rgba(245, 158, 11, 0.1);
  border: 1px solid rgba(245, 158, 11, 0.25);
  padding: 0.25rem 0.55rem;
  border-radius: var(--radius-full);
}

.popular-series-badge.active-season {
  color: var(--primary);
  background: rgba(255, 87, 34, 0.12);
  border-color: rgba(255, 87, 34, 0.35);
}

.popular-series-play-icon-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  cursor: pointer;
  transition: all var(--transition-fast);
  padding-left: 2px;
}

.popular-series-play-icon-btn:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
  transform: scale(1.1);
  box-shadow: 0 0 10px var(--primary-glow);
}

.popular-series-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 1rem;
  padding-top: 0.85rem;
  border-top: 1px solid var(--border-color);
  flex-wrap: wrap;
  gap: 0.65rem;
}

.popular-series-toggle-btn {
  background: transparent;
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  font-size: 0.8rem;
  padding: 0.4rem 0.85rem;
  border-radius: var(--radius-full);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: all var(--transition-fast);
}

.popular-series-toggle-btn:hover {
  color: #fff;
  border-color: var(--primary);
  background: rgba(255, 87, 34, 0.08);
}

.popular-series-more-link {
  font-size: 0.82rem;
  color: var(--secondary);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-weight: 500;
  transition: all var(--transition-fast);
}

.popular-series-more-link:hover {
  color: #fff;
  transform: translateX(2px);
}

@media (max-width: 640px) {
  .popular-series-card {
    padding: 1.25rem;
  }

  .popular-series-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .popular-series-tabs {
    width: 100%;
    justify-content: space-between;
  }

  .series-tab-btn {
    flex: 1;
    justify-content: center;
  }

  .popular-series-sub {
    display: none;
  }
}

/* ==========================================================
   Cookie Banner & Privacy Consent (Modern Dragon Theme)
   ========================================================== */

/* Subtle Backdrop Overlay */
.cookie-banner-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(5, 8, 14, 0.65);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 9999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.32s cubic-bezier(0.16, 1, 0.3, 1);
}

.cookie-banner-backdrop.active {
  opacity: 1;
  pointer-events: auto;
}

/* Floating Re-Open Button with Expanding Capsule */
.cookie-floating-trigger {
  position: fixed;
  bottom: 1.5rem;
  left: 1.5rem;
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  padding: 6px;
  background: rgba(18, 24, 38, 0.94);
  border: 1px solid rgba(255, 87, 34, 0.45);
  border-radius: var(--radius-full);
  color: var(--primary);
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.55), 0 0 16px rgba(255, 87, 34, 0.2);
  cursor: pointer;
  z-index: 999;
  transition: all 0.28s cubic-bezier(0.34, 1.56, 0.64, 1);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  text-decoration: none;
  overflow: hidden;
  min-width: 46px;
  max-width: 46px;
  height: 46px;
  white-space: nowrap;
  font-family: inherit;
  box-sizing: border-box;
}

.cookie-floating-trigger:hover,
.cookie-floating-trigger:focus-visible {
  max-width: 220px;
  padding-right: 1.15rem;
  background: rgba(24, 33, 50, 0.98);
  border-color: var(--primary);
  color: #fff;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.65), 0 0 24px rgba(255, 87, 34, 0.4);
  transform: translateY(-2px);
}

.cookie-floating-icon-wrap {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 87, 34, 0.15);
  flex-shrink: 0;
  font-size: 1.1rem;
  transition: transform 0.25s ease;
}

.cookie-floating-trigger:hover .cookie-floating-icon-wrap {
  transform: rotate(18deg) scale(1.08);
  background: var(--primary);
  color: #fff;
}

.cookie-floating-dot {
  position: absolute;
  top: 1px;
  right: 1px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-green);
  border: 1.5px solid var(--bg-dark);
}

.cookie-floating-label {
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--text-primary);
  letter-spacing: 0.02em;
  opacity: 0;
  transition: opacity 0.2s ease 0.05s;
}

.cookie-floating-trigger:hover .cookie-floating-label,
.cookie-floating-trigger:focus-visible .cookie-floating-label {
  opacity: 1;
}

/* Main Banner Wrapper */
.cookie-banner-wrap {
  position: fixed;
  bottom: 1.5rem;
  left: 50%;
  transform: translate(-50%, calc(100% + 4rem)) scale(0.96);
  width: calc(100% - 2.5rem);
  max-width: 840px;
  max-height: calc(100vh - 3rem);
  max-height: calc(100dvh - 3rem);
  background: rgba(14, 19, 31, 0.96);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255, 87, 34, 0.32);
  border-radius: var(--radius-xl);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.85), 0 0 35px rgba(255, 87, 34, 0.18);
  z-index: 10000;
  opacity: 0;
  pointer-events: none;
  transition: transform 0.38s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.cookie-banner-wrap.active {
  transform: translate(-50%, 0) scale(1);
  opacity: 1;
  pointer-events: auto;
}

@keyframes cookieShake {

  0%,
  100% {
    transform: translate(-50%, 0) scale(1);
  }

  20%,
  60% {
    transform: translate(calc(-50% - 6px), 0) scale(1.005);
  }

  40%,
  80% {
    transform: translate(calc(-50% + 6px), 0) scale(1.005);
  }
}

.cookie-banner-wrap.shake {
  animation: cookieShake 0.4s ease-in-out;
}

/* Glowing top highlight gradient line */
.cookie-banner-topbar {
  height: 3px;
  width: 100%;
  background: linear-gradient(90deg, transparent 0%, rgba(255, 87, 34, 0.4) 15%, #ff5722 50%, #f59e0b 80%, transparent 100%);
  flex-shrink: 0;
}

/* Inner scrollable area */
.cookie-banner-inner {
  padding: 1.5rem 1.85rem 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 87, 34, 0.4) transparent;
}

.cookie-banner-inner::-webkit-scrollbar {
  width: 6px;
}

.cookie-banner-inner::-webkit-scrollbar-thumb {
  background: rgba(255, 87, 34, 0.4);
  border-radius: 6px;
}

/* Header */
.cookie-banner-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.25rem;
}

.cookie-banner-title-group {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.cookie-banner-icon-badge {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, rgba(255, 87, 34, 0.22) 0%, rgba(245, 158, 11, 0.18) 100%);
  border: 1px solid rgba(255, 87, 34, 0.4);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  flex-shrink: 0;
  box-shadow: 0 4px 14px rgba(255, 87, 34, 0.2);
  margin-top: 2px;
}

.cookie-banner-titles {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.cookie-banner-title-row {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-wrap: wrap;
}

.cookie-banner-title {
  font-size: 1.18rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.01em;
  margin: 0;
  line-height: 1.3;
}

.cookie-banner-badge {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text-accent);
  background: rgba(255, 87, 34, 0.12);
  border: 1px solid rgba(255, 87, 34, 0.28);
  padding: 0.18rem 0.55rem;
  border-radius: var(--radius-full);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.cookie-banner-subtitle {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.45;
  margin: 0;
}

/* Close button */
.cookie-banner-close-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-muted);
  font-size: 1.05rem;
  cursor: pointer;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.2s ease;
}

.cookie-banner-close-btn:hover {
  color: #fff;
  background: rgba(255, 87, 34, 0.2);
  border-color: rgba(255, 87, 34, 0.5);
  transform: rotate(90deg);
}

/* Category Quick Overview Pills */
.cookie-pill-summary {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  flex-wrap: wrap;
  padding: 0.6rem 0.85rem;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-md);
}

.cookie-summary-pill {
  font-size: 0.82rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.3rem 0.7rem;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-secondary);
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: all 0.2s ease;
}

.cookie-summary-pill.pill-essential {
  color: var(--accent-green);
  background: rgba(16, 185, 129, 0.1);
  border-color: rgba(16, 185, 129, 0.3);
}

.cookie-summary-pill.pill-essential em {
  font-style: normal;
  font-size: 0.72rem;
  opacity: 0.85;
}

.cookie-summary-pill.pill-media {
  color: #ff5252;
  background: rgba(255, 82, 82, 0.08);
  border-color: rgba(255, 82, 82, 0.25);
}

.cookie-summary-pill.pill-analytics {
  color: var(--accent-cyan);
  background: rgba(6, 182, 212, 0.08);
  border-color: rgba(6, 182, 212, 0.25);
}

.cookie-summary-pill.is-disabled {
  opacity: 0.45;
  text-decoration: line-through;
  background: rgba(255, 255, 255, 0.02);
  border-color: rgba(255, 255, 255, 0.05);
  color: var(--text-muted);
}

/* Descriptive Text */
.cookie-banner-text {
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin: 0;
}

.cookie-banner-text code {
  background: rgba(255, 255, 255, 0.07);
  padding: 0.15rem 0.4rem;
  border-radius: 4px;
  color: var(--secondary);
  font-size: 0.85rem;
  font-family: inherit;
}

.cookie-banner-text a {
  color: var(--primary-hover);
  text-decoration: underline;
  text-underline-offset: 3px;
  font-weight: 500;
  transition: color var(--transition-fast);
}

.cookie-banner-text a:hover {
  color: #fff;
}

/* Categories Container */
.cookie-categories {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  background: rgba(10, 14, 23, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-lg);
  padding: 1.15rem;
  animation: cookieFadeDown 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes cookieFadeDown {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.cookie-categories-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  flex-wrap: wrap;
}

.cookie-categories-hint {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-secondary);
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.cookie-bulk-actions {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.cookie-bulk-btn {
  background: transparent;
  border: none;
  color: var(--primary-hover);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  padding: 0.2rem 0.4rem;
  border-radius: var(--radius-xs);
  transition: all 0.2s ease;
  font-family: inherit;
}

.cookie-bulk-btn:hover {
  color: #fff;
  background: rgba(255, 87, 34, 0.15);
}

.cookie-bulk-sep {
  color: var(--text-muted);
  font-size: 0.75rem;
}

/* Category Card */
.cookie-category-item {
  display: flex;
  align-items: flex-start;
  gap: 1.1rem;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-md);
  padding: 1.05rem 1.15rem;
  transition: all 0.22s ease;
}

.cookie-category-item:hover,
.cookie-category-item:focus-within {
  background: rgba(255, 255, 255, 0.045);
  border-color: rgba(255, 87, 34, 0.25);
}

.cookie-category-icon-wrap {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  flex-shrink: 0;
  margin-top: 2px;
}

.cat-icon-essential {
  background: rgba(16, 185, 129, 0.14);
  color: var(--accent-green);
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.cat-icon-media {
  background: rgba(255, 0, 0, 0.12);
  color: #ff3333;
  border: 1px solid rgba(255, 0, 0, 0.25);
}

.cat-icon-analytics {
  background: rgba(6, 182, 212, 0.12);
  color: var(--accent-cyan);
  border: 1px solid rgba(6, 182, 212, 0.25);
}

.cookie-category-info {
  flex: 1;
  min-width: 0;
}

.cookie-category-header-line {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-wrap: wrap;
}

.cookie-category-name {
  font-size: 0.96rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.01em;
}

.cookie-badge-locked {
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.32);
  color: var(--accent-green);
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.18rem 0.55rem;
  border-radius: var(--radius-full);
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.cookie-badge-status {
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.18rem 0.55rem;
  border-radius: var(--radius-full);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--text-muted);
  transition: all 0.2s ease;
}

.cookie-badge-status.is-active {
  color: #ff9800;
  background: rgba(255, 152, 0, 0.12);
  border-color: rgba(255, 152, 0, 0.35);
}

.cookie-badge-status.is-inactive {
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.03);
  border-color: rgba(255, 255, 255, 0.08);
}

.cookie-category-desc {
  font-size: 0.84rem;
  color: var(--text-secondary);
  margin-top: 0.35rem;
  line-height: 1.48;
}

.cookie-category-tags {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-wrap: wrap;
  margin-top: 0.55rem;
}

.cookie-tag {
  font-size: 0.72rem;
  color: var(--text-muted);
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.06);
  padding: 0.12rem 0.45rem;
  border-radius: var(--radius-xs);
  font-family: monospace;
}

/* Custom Toggle Switch */
.cookie-switch {
  position: relative;
  display: inline-block;
  width: 48px;
  height: 26px;
  flex-shrink: 0;
  margin-top: 4px;
  cursor: pointer;
}

.cookie-switch input {
  opacity: 0;
  width: 0;
  height: 0;
  position: absolute;
}

.cookie-slider {
  position: absolute;
  cursor: pointer;
  inset: 0;
  background-color: rgba(255, 255, 255, 0.12);
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 26px;
  border: 1.5px solid rgba(255, 255, 255, 0.16);
}

.cookie-slider:before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 2.5px;
  background-color: #cbd5e1;
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1), background-color 0.2s ease;
  border-radius: 50%;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
}

.cookie-switch input:checked+.cookie-slider {
  background: linear-gradient(135deg, var(--primary) 0%, #e64a19 100%);
  border-color: rgba(255, 87, 34, 0.7);
  box-shadow: 0 0 12px rgba(255, 87, 34, 0.35);
}

.cookie-switch input:checked+.cookie-slider:before {
  transform: translateX(20px);
  background-color: #ffffff;
}

.cookie-switch-locked input:checked+.cookie-slider {
  background: linear-gradient(135deg, #059669 0%, #10b981 100%);
  border-color: rgba(16, 185, 129, 0.7);
  box-shadow: 0 0 10px rgba(16, 185, 129, 0.3);
  cursor: not-allowed;
}

.cookie-switch input:focus-visible+.cookie-slider {
  outline: 2px solid var(--primary-hover);
  outline-offset: 3px;
}

/* Action Buttons Grid / Layout */
.cookie-banner-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.85rem;
  flex-wrap: wrap;
  padding-top: 0.35rem;
}

.cookie-actions-secondary {
  display: flex;
  align-items: center;
}

.cookie-actions-primary {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.btn-cookie {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.7rem 1.35rem;
  border-radius: var(--radius-md);
  font-size: 0.92rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.22s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid transparent;
  font-family: inherit;
  line-height: 1.2;
  white-space: nowrap;
}

.btn-cookie:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 3px;
}

.btn-cookie-primary {
  background: linear-gradient(135deg, var(--primary) 0%, #e64a19 100%);
  color: #fff;
  box-shadow: 0 4px 16px rgba(255, 87, 34, 0.4);
}

.btn-cookie-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 22px rgba(255, 87, 34, 0.6);
  filter: brightness(1.08);
}

.btn-cookie-save {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  color: #fff;
  box-shadow: 0 4px 14px rgba(245, 158, 11, 0.35);
}

.btn-cookie-save:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(245, 158, 11, 0.55);
  filter: brightness(1.08);
}

.btn-cookie-secondary {
  background: rgba(255, 255, 255, 0.06);
  color: #f1f5f9;
  border-color: rgba(255, 255, 255, 0.16);
}

.btn-cookie-secondary:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.32);
  color: #fff;
  transform: translateY(-2px);
}

.btn-cookie-outline {
  background: transparent;
  color: var(--text-secondary);
  border-color: rgba(255, 255, 255, 0.14);
}

.btn-cookie-outline:hover {
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
  border-color: rgba(255, 87, 34, 0.45);
}

/* Responsive Overhauls for Mobile & Tablet */
@media (max-width: 768px) {
  .cookie-banner-wrap {
    width: calc(100% - 1rem);
    bottom: 0.5rem;
    max-height: calc(100vh - 1rem);
    max-height: calc(100dvh - 1rem);
    border-radius: var(--radius-lg);
  }

  .cookie-banner-inner {
    padding: 1.15rem 1.15rem 1.35rem;
    gap: 0.95rem;
  }

  .cookie-banner-title {
    font-size: 1.05rem;
  }

  .cookie-banner-icon-badge {
    width: 38px;
    height: 38px;
    font-size: 1.15rem;
  }

  .cookie-banner-actions {
    flex-direction: column-reverse;
    width: 100%;
    gap: 0.6rem;
  }

  .cookie-actions-primary {
    width: 100%;
    flex-direction: column;
    gap: 0.55rem;
  }

  .cookie-actions-secondary {
    width: 100%;
  }

  .btn-cookie {
    width: 100%;
    padding: 0.75rem 1rem;
    font-size: 0.9rem;
  }

  .cookie-floating-trigger {
    bottom: 0.85rem;
    left: 0.85rem;
    padding: 6px;
  }

  .cookie-category-item {
    padding: 0.85rem;
    gap: 0.85rem;
  }
}

/* ==========================================================
   YouTube Player Blocked Placeholder (Cookie Consent)
   ========================================================== */
.video-player-blocked {
  width: 100%;
  height: 100%;
  min-height: 440px;
  background: radial-gradient(circle at center, #1b2438 0%, #0d121c 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2.5rem 1.5rem;
  border-radius: var(--radius-md);
  position: relative;
  box-sizing: border-box;
}

.blocked-icon-wrap {
  position: relative;
  width: 80px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
}

.blocked-yt-icon {
  font-size: 4rem;
  color: #ff0000;
  opacity: 0.9;
  filter: drop-shadow(0 4px 16px rgba(255, 0, 0, 0.35));
}

.blocked-lock-badge {
  position: absolute;
  bottom: 0;
  right: -4px;
  width: 34px;
  height: 34px;
  background: linear-gradient(135deg, var(--primary) 0%, #e64a19 100%);
  border: 2px solid #0d121c;
  border-radius: 50%;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.6);
}

.blocked-player-title {
  font-size: 1.4rem;
  font-weight: 700;
  color: #fff;
  margin: 0 0 0.5rem;
  line-height: 1.3;
}

.blocked-player-video-name {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--primary-hover);
  margin-bottom: 0.75rem;
  max-width: 80%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.blocked-player-desc {
  max-width: 600px;
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.65;
  margin: 0 0 1.75rem;
}

.blocked-player-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.85rem;
  flex-wrap: wrap;
}

.blocked-player-notice {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

@media (max-width: 768px) {
  .video-player-blocked {
    min-height: 320px;
    padding: 1.5rem 1rem;
  }

  .blocked-player-title {
    font-size: 1.15rem;
  }

  .blocked-player-desc {
    font-size: 0.85rem;
    margin-bottom: 1.25rem;
  }

  .blocked-player-actions {
    flex-direction: column;
    width: 100%;
  }
}

/* ==========================================================
   Wiedergabefortschritt & Weiterschauen (Watch Progress)
   ========================================================== */
.watch-progress-bar-wrap {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: rgba(0, 0, 0, 0.6);
  overflow: hidden;
  z-index: 5;
}

.watch-progress-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #ff5722, #ff9800);
  transition: width 0.3s ease;
}

.watch-progress-bar-fill.completed {
  background: #10b981;
}

.watch-progress-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: rgba(15, 20, 31, 0.88);
  backdrop-filter: blur(8px);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.25rem 0.6rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  gap: 0.35rem;
  z-index: 4;
}

.watch-progress-badge.resume {
  color: var(--primary);
  border-color: rgba(255, 87, 34, 0.4);
}

.watch-progress-badge.completed {
  color: #10b981;
  border-color: rgba(16, 185, 129, 0.4);
}

/* Weiterschauen-Sektion */
.continue-watching-section {
  margin-bottom: 3rem;
  background: rgba(255, 87, 34, 0.04);
  border: 1px solid rgba(255, 87, 34, 0.2);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
}

.continue-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.continue-title {
  font-size: 1.35rem;
  font-weight: 700;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.continue-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.25rem;
}

.continue-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: var(--transition);
  position: relative;
}

.continue-card:hover {
  transform: translateY(-4px);
  border-color: var(--primary);
  box-shadow: 0 8px 24px rgba(255, 87, 34, 0.2);
}

.continue-thumb-wrap {
  position: relative;
  aspect-ratio: 16/9;
  cursor: pointer;
  overflow: hidden;
  background: #000;
}

.continue-thumb-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.continue-card:hover .continue-thumb-wrap img {
  transform: scale(1.05);
}

.continue-body {
  padding: 1rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.continue-body-title {
  font-size: 0.95rem;
  font-weight: 600;
  color: #fff;
  line-height: 1.4;
  margin-bottom: 0.5rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.continue-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  color: var(--text-secondary);
  margin-top: auto;
  padding-top: 0.5rem;
}

/* ==========================================================
   Großer Kinomodus (Cinema Suite & Stage)
   ========================================================== */
.cinema-section {
  position: relative;
  padding: 2.5rem 0 3.5rem;
  background: radial-gradient(circle at 50% 10%, rgba(255, 87, 34, 0.08) 0%, rgba(10, 13, 20, 0.95) 75%);
  border-bottom: 1px solid var(--border-color);
  transition: padding 0.3s ease;
  scroll-margin-top: 80px;
}

.cinema-stage-wrapper {
  position: relative;
  transition: all 0.35s ease;
}

/* Ambient Back Glow */
.cinema-ambient-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  height: 100%;
  max-width: 1100px;
  max-height: 600px;
  background: radial-gradient(ellipse at center, rgba(255, 87, 34, 0.28) 0%, rgba(255, 152, 0, 0.14) 38%, rgba(255, 152, 0, 0.03) 62%, transparent 75%);
  opacity: 0.75;
  pointer-events: none;
  z-index: 1;
  will-change: opacity;
  transition: opacity 0.5s ease;
}

.cinema-stage {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 1.5rem;
  align-items: start;
  width: 100%;
  transition: all 0.35s ease;
}

.cinema-main-stage {
  min-width: 0;
  width: 100%;
}

/* Theater Mode: Großer Kinomodus aktiviert */
.cinema-section.theater-mode .container {
  max-width: 98% !important;
  padding: 0 1rem;
}

.cinema-section.theater-mode .cinema-stage {
  grid-template-columns: 1fr;
}

.cinema-section.theater-mode .cinema-ambient-glow {
  max-width: 1400px;
  max-height: 780px;
  opacity: 0.95;
}

.cinema-section.theater-mode .cinema-side-queue {
  margin-top: 1.5rem;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1rem;
  max-height: 380px;
}

/* Cinema Screen Container */
.cinema-screen-box {
  background: #000;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.8), 0 0 30px rgba(255, 87, 34, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.1);
  position: relative;
  width: 100%;
  transition: box-shadow 0.35s ease;
}

.cinema-player-aspect {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
  overflow: hidden;
}

.cinema-player-aspect iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

/* Resume Prompt Banner */
.cinema-resume-banner {
  background: linear-gradient(135deg, rgba(255, 87, 34, 0.2), rgba(15, 20, 31, 0.95));
  border-bottom: 1px solid rgba(255, 87, 34, 0.4);
  padding: 0.75rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
  font-size: 0.9rem;
}

.cinema-resume-info {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #fff;
}

.cinema-resume-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* Cinema Toolbar (Controls & Info) */
.cinema-toolbar {
  padding: 1.25rem 1.5rem;
  background: var(--bg-surface);
  border-top: 1px solid var(--border-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.cinema-video-info {
  flex: 1;
  min-width: 280px;
}

.cinema-video-title {
  font-size: 1.35rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.35;
  margin-bottom: 0.5rem;
}

.cinema-video-meta {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  flex-wrap: wrap;
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.cinema-mode-controls {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.cinema-ctrl-btn {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-color);
  color: #fff;
  padding: 0.5rem 0.85rem;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  transition: var(--transition);
  cursor: pointer;
}

.cinema-ctrl-btn:hover {
  background: rgba(255, 87, 34, 0.18);
  border-color: var(--primary);
  color: #fff;
}

.cinema-ctrl-btn.active {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
  box-shadow: 0 0 12px var(--primary-glow);
}

/* Cinema Side Queue / Playlist */
.cinema-side-queue {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  max-height: 600px;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  overflow: hidden;
}

#cinema-side-queue-list {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  overflow-y: auto;
  flex: 1;
  padding-right: 4px;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 87, 34, 0.3) transparent;
}

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

#cinema-side-queue-list::-webkit-scrollbar-thumb {
  background: rgba(255, 87, 34, 0.3);
  border-radius: 4px;
}

.cinema-queue-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border-color);
  margin-bottom: 0.25rem;
}

.cinema-queue-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.cinema-queue-item {
  display: flex;
  gap: 0.75rem;
  padding: 0.6rem;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid transparent;
  cursor: pointer;
  transition: var(--transition);
  align-items: center;
}

.cinema-queue-item:hover {
  background: rgba(255, 87, 34, 0.08);
  border-color: rgba(255, 87, 34, 0.3);
}

.cinema-queue-item.active {
  background: rgba(255, 87, 34, 0.15);
  border-color: var(--primary);
}

.cinema-queue-thumb {
  width: 95px;
  aspect-ratio: 16/9;
  border-radius: 4px;
  overflow: hidden;
  position: relative;
  flex-shrink: 0;
  background: #000;
}

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

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

.cinema-queue-item-title {
  font-size: 0.85rem;
  font-weight: 600;
  color: #fff;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.cinema-queue-item-meta {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.cinema-queue-item.watched {
  opacity: 0.62;
}

.cinema-queue-item.watched:hover {
  opacity: 0.95;
}

.cinema-queue-badge-next {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  background: rgba(255, 87, 34, 0.2);
  color: var(--primary);
  font-size: 0.68rem;
  font-weight: 600;
  padding: 1px 6px;
  border-radius: 4px;
}

.cinema-queue-badge-watched {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  background: rgba(16, 185, 129, 0.15);
  color: var(--accent-green, #10b981);
  font-size: 0.68rem;
  padding: 1px 6px;
  border-radius: 4px;
}

/* Licht aus Dimmer Overlay */
.cinema-dimmer-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.92);
  z-index: 990;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}

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

.cinema-dimmer-active .cinema-section {
  position: relative;
  z-index: 995;
}

/* Quick Floating Player Bar when scrolled past */
.cinema-floating-bar {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: var(--bg-surface);
  border: 1px solid var(--primary);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg), 0 0 20px rgba(255, 87, 34, 0.35);
  padding: 0.75rem 1rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  z-index: 850;
  transition: all 0.3s ease;
}

@media (max-width: 992px) {
  .cinema-stage {
    grid-template-columns: 1fr;
  }

  .cinema-side-queue {
    max-height: 420px;
  }
}

/* ==========================================================
   Moderne Mediathek 2.0 - Benutzerfreundliche UI-Komponenten
   ========================================================== */

/* 1. Mediathek Hero Hub Banner */
.mediathek-hero-hub {
  position: relative;
  padding: 3rem 0 2rem;
  background: radial-gradient(circle at 50% 0%, rgba(255, 87, 34, 0.14) 0%, rgba(10, 13, 20, 0.98) 70%);
  border-bottom: 1px solid var(--border-color);
  overflow: hidden;
}

.mediathek-hero-container {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.mediathek-hero-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 1.25rem;
}

.mediathek-hero-titles h1 {
  font-size: 2.3rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.02em;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0.35rem;
}

.mediathek-hero-titles p {
  color: var(--text-secondary);
  font-size: 1.05rem;
  max-width: 680px;
  line-height: 1.5;
}

.mediathek-stats-row {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-wrap: wrap;
}

.stat-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 0.45rem 0.95rem;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  color: var(--text-secondary);
  backdrop-filter: blur(8px);
}

.stat-pill strong {
  color: #fff;
}

.mediathek-quick-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.btn-hero-action {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.65rem 1.15rem;
  border-radius: var(--radius-full);
  font-size: 0.9rem;
  font-weight: 600;
  transition: all 0.25s ease;
  cursor: pointer;
  border: 1px solid var(--border-color);
  background: var(--bg-surface);
  color: #fff;
  text-decoration: none;
}

.btn-hero-action:hover {
  background: rgba(255, 87, 34, 0.15);
  border-color: var(--primary);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(255, 87, 34, 0.25);
  color: #fff;
}

.btn-hero-action.primary {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  border-color: transparent;
  color: #fff;
  box-shadow: 0 4px 15px rgba(255, 87, 34, 0.35);
}

.btn-hero-action.primary:hover {
  filter: brightness(1.1);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 87, 34, 0.5);
}

/* 2. Interaktive Kategorie-Pills (Chips-Leiste) */
.mediathek-chips-wrapper {
  margin: 1.5rem 0 1rem;
  position: relative;
}

.mediathek-chips-scroll {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  overflow-x: auto;
  padding: 0.4rem 0.25rem 0.8rem;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 87, 34, 0.3) transparent;
  -webkit-overflow-scrolling: touch;
}

.mediathek-chips-scroll::-webkit-scrollbar {
  height: 6px;
}

.mediathek-chips-scroll::-webkit-scrollbar-thumb {
  background: rgba(255, 87, 34, 0.3);
  border-radius: 4px;
}

.chip-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  padding: 0.5rem 1rem;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 500;
  white-space: nowrap;
  cursor: pointer;
  transition: all 0.2s ease;
  user-select: none;
}

.chip-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.2);
  color: #fff;
}

.chip-btn.active {
  background: linear-gradient(135deg, rgba(255, 87, 34, 0.25), rgba(255, 152, 0, 0.15));
  border-color: var(--primary);
  color: #fff;
  font-weight: 600;
  box-shadow: 0 0 12px rgba(255, 87, 34, 0.25);
}

.chip-count {
  font-size: 0.72rem;
  background: rgba(255, 255, 255, 0.1);
  padding: 1px 6px;
  border-radius: 10px;
  opacity: 0.85;
}

.chip-btn.active .chip-count {
  background: var(--primary);
  color: #fff;
  opacity: 1;
}

/* 3. Moderne Schalter-Toggles (iOS/Material Switch) */
.cinema-switch-label {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--text-secondary);
  font-size: 0.86rem;
  cursor: pointer;
  user-select: none;
  transition: color 0.2s ease;
}

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

.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;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.12);
  transition: 0.3s;
  border-radius: 22px;
}

.cinema-slider:before {
  position: absolute;
  content: "";
  height: 16px;
  width: 16px;
  left: 2px;
  bottom: 2px;
  background-color: white;
  transition: 0.3s;
  border-radius: 50%;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.cinema-switch input:checked+.cinema-slider {
  background-color: var(--primary);
  border-color: var(--primary);
  box-shadow: 0 0 10px var(--primary-glow);
}

.cinema-switch.green input:checked+.cinema-slider {
  background-color: #10b981;
  border-color: #10b981;
  box-shadow: 0 0 10px rgba(16, 185, 129, 0.4);
}

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

/* 4. Queue Equalizer Animation */
.cinema-equalizer {
  display: inline-flex;
  align-items: flex-end;
  gap: 2px;
  height: 14px;
  width: 14px;
}

.cinema-equalizer-bar {
  width: 3px;
  height: 14px;
  background: var(--primary);
  border-radius: 1px;
  transform-origin: bottom;
  transform: translate3d(0, 0, 0);
  backface-visibility: hidden;
  will-change: transform;
  animation: eqBounce 0.9s ease-in-out infinite alternate;
}

.cinema-equalizer-bar:nth-child(1) {
  animation-delay: 0.1s;
}

.cinema-equalizer-bar:nth-child(2) {
  animation-delay: 0.3s;
}

.cinema-equalizer-bar:nth-child(3) {
  animation-delay: 0.2s;
}

@keyframes eqBounce {
  0% {
    transform: scaleY(0.25) translate3d(0, 0, 0);
  }

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

/* 5. Mini-Suchfeld in der Playlist */
.cinema-queue-search-wrap {
  position: relative;
  margin-top: 0.5rem;
}

.cinema-queue-search-wrap input {
  width: 100%;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid var(--border-color);
  color: #fff;
  padding: 0.4rem 0.75rem 0.4rem 2rem;
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  transition: all 0.2s ease;
}

.cinema-queue-search-wrap input:focus {
  outline: none;
  border-color: var(--primary);
  background: rgba(0, 0, 0, 0.5);
}

.cinema-queue-search-wrap i {
  position: absolute;
  left: 0.65rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-size: 0.75rem;
}

/* 6. Entfernen-Button auf Weiterschauen-Karten */
.btn-remove-history {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  cursor: pointer;
  opacity: 0;
  transition: all 0.2s ease;
  z-index: 10;
}

.continue-card:hover .btn-remove-history {
  opacity: 1;
}

.btn-remove-history:hover {
  background: #ef4444;
  border-color: #ef4444;
  transform: scale(1.1);
}

/* 7. Keyboard Shortcuts Modal */
.shortcuts-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(8px);
  z-index: 1100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

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

.shortcuts-modal-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  max-width: 520px;
  width: 100%;
  padding: 2rem;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.7), 0 0 30px rgba(255, 87, 34, 0.15);
  position: relative;
}

.shortcuts-modal-title {
  font-size: 1.35rem;
  font-weight: 700;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0.5rem;
}

.shortcuts-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin: 1.5rem 0;
}

.shortcut-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(255, 255, 255, 0.03);
  padding: 0.65rem 0.9rem;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 0.88rem;
  color: var(--text-secondary);
}

.shortcut-item kbd {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.25);
  box-shadow: 0 2px 0 rgba(0, 0, 0, 0.3);
  border-radius: 4px;
  padding: 2px 8px;
  font-size: 0.8rem;
  font-weight: 700;
  color: #fff;
  font-family: inherit;
}

/* ==========================================================
   Mediathek 2.5 - Neues Premium Control Center & Listenansicht
   ========================================================== */

/* Chips-Leiste mit Desktop-Pfeilnavigation */
.mediathek-chips-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  margin: 1.5rem 0 1.25rem;
}

.chips-nav-btn {
  display: none;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  color: #fff;
  cursor: pointer;
  z-index: 5;
  box-shadow: var(--shadow-md);
  transition: all 0.2s ease;
  flex-shrink: 0;
}

@media (min-width: 992px) {
  .chips-nav-btn {
    display: flex;
  }
}

.chips-nav-btn:hover {
  background: var(--primary);
  border-color: var(--primary);
  box-shadow: 0 0 12px var(--primary-glow);
  transform: scale(1.08);
}

.chips-nav-btn.left {
  margin-right: 0.5rem;
}

.chips-nav-btn.right {
  margin-left: 0.5rem;
}

/* Modernes Mediathek Control Center (Glassmorphism Panel) */
.mediathek-control-bar {
  background: linear-gradient(145deg, rgba(26, 31, 46, 0.95), rgba(15, 20, 31, 0.98));
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-lg);
  padding: 1.35rem 1.6rem;
  margin-bottom: 2rem;
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.45), 0 0 20px rgba(255, 87, 34, 0.05);
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  position: relative;
  backdrop-filter: blur(16px);
}

.mediathek-control-bar::before {
  content: "";
  position: absolute;
  top: 0;
  left: 5%;
  width: 90%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 87, 34, 0.4), transparent);
}

/* Obere Reihe: Suche & Status-Pills */
.mediathek-search-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.mediathek-search-box {
  position: relative;
  flex: 1;
  min-width: 280px;
}

.mediathek-search-box i.fa-magnifying-glass {
  position: absolute;
  left: 1.15rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-size: 1rem;
  transition: color 0.2s ease;
  pointer-events: none;
}

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

.mediathek-search-input {
  width: 100%;
  background: rgba(10, 13, 20, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-full);
  color: #fff;
  padding: 0.8rem 5.5rem 0.8rem 2.85rem;
  font-size: 0.96rem;
  transition: all 0.25s ease;
  font-family: inherit;
}

.mediathek-search-input:focus {
  outline: none;
  background: rgba(10, 13, 20, 0.95);
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(255, 87, 34, 0.18), 0 0 20px rgba(255, 87, 34, 0.2);
}

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

/* 1-Klick Status Tabs (Segmented Control) */
.mediathek-status-tabs {
  display: inline-flex;
  align-items: center;
  background: rgba(10, 13, 20, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-full);
  padding: 4px;
  gap: 4px;
  flex-wrap: wrap;
}

.mediathek-status-tab {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.55rem 0.95rem;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-secondary);
  background: transparent;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  user-select: none;
  white-space: nowrap;
}

.mediathek-status-tab:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
}

.mediathek-status-tab.active {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: #fff;
  font-weight: 600;
  box-shadow: 0 4px 12px rgba(255, 87, 34, 0.35);
}

.mediathek-status-tab .tab-badge {
  font-size: 0.72rem;
  background: rgba(255, 255, 255, 0.15);
  padding: 1px 6px;
  border-radius: 10px;
}

.mediathek-status-tab.active .tab-badge {
  background: rgba(0, 0, 0, 0.25);
  color: #fff;
}

/* Untere Reihe: Filter-Optionen & Ansichts-Umschalter */
.mediathek-options-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  padding-top: 0.75rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.mediathek-filters-group {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  flex-wrap: wrap;
  flex: 1;
}

.mediathek-select-wrap {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.mediathek-select {
  background: rgba(10, 13, 20, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-sm);
  color: #fff;
  padding: 0.5rem 0.85rem;
  font-size: 0.85rem;
  transition: all 0.2s ease;
  cursor: pointer;
  font-family: inherit;
}

.mediathek-select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 2px rgba(255, 87, 34, 0.2);
}

/* View Switcher: Raster vs. Kompakt-Liste */
.mediathek-view-switcher {
  display: inline-flex;
  align-items: center;
  background: rgba(10, 13, 20, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-sm);
  padding: 2px;
}

.mediathek-view-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 32px;
  border-radius: 4px;
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 0.9rem;
}

.mediathek-view-btn:hover {
  color: #fff;
}

.mediathek-view-btn.active {
  background: rgba(255, 87, 34, 0.2);
  color: var(--primary);
  font-weight: 700;
}

/* Aktive Filter Tags Bar */
.mediathek-active-tags {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-top: -1rem;
  margin-bottom: 1.5rem;
}

.filter-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: rgba(255, 87, 34, 0.12);
  border: 1px solid rgba(255, 87, 34, 0.3);
  color: #fff;
  font-size: 0.8rem;
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-full);
}

.filter-tag strong {
  color: var(--primary);
}

.filter-tag-close {
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  padding: 0;
  margin-left: 2px;
  font-size: 0.78rem;
  transition: color 0.15s ease;
}

.filter-tag-close:hover {
  color: #ef4444;
}

/* ==========================================================
   Videokarten Quick-Actions & Listenansicht (List View)
   ========================================================== */

/* Quick-Buttons beim Hovern auf der Grid-Karte */
.video-card-quick-actions {
  position: absolute;
  bottom: 8px;
  right: 8px;
  display: flex;
  align-items: center;
  gap: 5px;
  opacity: 0;
  transform: translate3d(0, 4px, 0);
  backface-visibility: hidden;
  transition: opacity 0.25s ease, transform 0.25s ease;
  z-index: 8;
}

.video-thumb-wrap:hover .video-card-quick-actions {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

.video-card-quick-btn {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: rgba(10, 13, 20, 0.94);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  cursor: pointer;
  transform: translate3d(0, 0, 0);
  backface-visibility: hidden;
  transition: background var(--transition-fast), border-color var(--transition-fast), transform var(--transition-fast);
}

.video-card-quick-btn:hover {
  background: var(--primary);
  border-color: var(--primary);
  transform: scale(1.12) translate3d(0, 0, 0);
  box-shadow: 0 0 10px var(--primary-glow);
}

.video-card-quick-btn.seen-active {
  background: #10b981;
  border-color: #10b981;
  color: #fff;
}

/* Kompakte Listenansicht (List View) */
.video-list-container {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.video-list-item {
  display: grid;
  grid-template-columns: 140px 1fr auto;
  gap: 1.25rem;
  align-items: center;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 0.65rem 1rem;
  transition: all 0.22s ease;
  cursor: pointer;
}

.video-list-item:hover {
  background: rgba(255, 87, 34, 0.06);
  border-color: rgba(255, 87, 34, 0.35);
  transform: translateX(4px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}

.video-list-thumb {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: 6px;
  overflow: hidden;
  background: #000;
}

.video-list-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.video-list-item:hover .video-list-thumb img {
  transform: scale(1.05);
}

.video-list-thumb .video-duration {
  position: absolute;
  bottom: 4px;
  right: 4px;
  background: rgba(0, 0, 0, 0.8);
  font-size: 0.7rem;
  padding: 1px 4px;
  border-radius: 3px;
  color: #fff;
}

.video-list-body {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.video-list-title {
  font-size: 0.98rem;
  font-weight: 600;
  color: #fff;
  line-height: 1.35;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.video-list-item:hover .video-list-title {
  color: var(--primary);
}

.video-list-meta {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  font-size: 0.8rem;
  color: var(--text-muted);
  flex-wrap: wrap;
}

.video-list-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.video-list-play-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.5rem 1rem;
  background: rgba(255, 87, 34, 0.15);
  border: 1px solid rgba(255, 87, 34, 0.35);
  border-radius: var(--radius-full);
  color: #fff;
  font-size: 0.82rem;
  font-weight: 600;
  transition: all 0.2s ease;
}

.video-list-item:hover .video-list-play-btn {
  background: var(--primary);
  border-color: var(--primary);
  box-shadow: 0 0 12px var(--primary-glow);
}

@media (max-width: 768px) {
  .video-list-item {
    grid-template-columns: 100px 1fr;
    gap: 0.75rem;
  }

  .video-list-actions {
    grid-column: 1 / -1;
    justify-content: flex-end;
  }
}

/* ==========================================================
   Responsives Feintuning
   ========================================================== */
@media (max-width: 768px) {
  .mediathek-hero-titles h1 {
    font-size: clamp(1.35rem, 5vw, 1.85rem);
    flex-wrap: wrap;
    gap: 0.5rem;
  }

  .mediathek-hero-titles p {
    font-size: 0.92rem;
    line-height: 1.45;
  }

  .mediathek-stats-row {
    gap: 0.65rem;
  }

  .stat-pill {
    font-size: 0.78rem;
    padding: 0.35rem 0.75rem;
  }

  .cinema-toolbar {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.85rem;
  }

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

  .cinema-mode-controls {
    width: 100%;
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 0.5rem;
    scrollbar-width: none;
  }

  .cinema-mode-controls::-webkit-scrollbar {
    display: none;
  }

  .shortcuts-grid {
    grid-template-columns: 1fr;
  }
}

/* ==============================================================================
   DragondarnDE - Account System, Navbar Widget, Auth Modal & Account Page
   ============================================================================== */

/* 1. Navbar User Widget & Login Button */
.nav-user-widget {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.btn-account-login {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.44rem 1.05rem;
  background: rgba(255, 87, 34, 0.12);
  border: 1px solid rgba(255, 87, 34, 0.38);
  border-radius: var(--radius-full);
  color: #fff;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 2px 10px rgba(255, 87, 34, 0.15);
}

.btn-account-login:hover {
  background: linear-gradient(135deg, #ff5722 0%, #ea580c 100%);
  border-color: #ff5722;
  box-shadow: 0 4px 18px rgba(255, 87, 34, 0.45);
  transform: translateY(-1px);
  color: #fff;
}

.btn-account-login i {
  color: #ff7043;
  font-size: 0.88rem;
  transition: color 0.2s ease, transform 0.2s ease;
}

.btn-account-login:hover i {
  color: #fff;
  transform: scale(1.12);
}

/* 2. User Pill in Navbar */
.user-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.32rem 0.85rem 0.32rem 0.38rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  user-select: none;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
  flex-shrink: 0;
}

.user-pill:hover {
  border-color: rgba(255, 87, 34, 0.45);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.4), 0 0 14px rgba(255, 87, 34, 0.2);
  transform: translateY(-1px);
}

.user-pill-name {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-primary);
  max-width: 140px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.user-pill-role {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.15rem 0.5rem;
  border-radius: var(--radius-full);
}

.user-pill-role.role-admin {
  background: rgba(16, 185, 129, 0.18);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.35);
}

.user-pill-role.role-user {
  background: rgba(255, 87, 34, 0.15);
  color: var(--text-accent);
  border: 1px solid rgba(255, 87, 34, 0.25);
}

.user-pill-chevron {
  font-size: 0.75rem;
  color: var(--text-secondary);
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1), color 0.2s ease;
}

.user-pill.active .user-pill-chevron,
.user-pill:hover .user-pill-chevron {
  color: #fff;
}

.user-pill.active .user-pill-chevron {
  transform: rotate(180deg);
  color: var(--primary);
}

.user-pill.active {
  background: rgba(255, 87, 34, 0.15);
  border-color: rgba(255, 87, 34, 0.55);
  box-shadow: 0 0 16px rgba(255, 87, 34, 0.25);
}

/* 3. User Dropdown Menu (Luxury Studio Edition) */
.user-dropdown-menu {
  position: absolute;
  top: calc(100% + 0.65rem);
  right: 0;
  width: 320px;
  background: rgba(13, 17, 28, 0.96);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.65), 0 0 25px rgba(255, 87, 34, 0.12);
  padding: 0.85rem;
  display: none;
  flex-direction: column;
  z-index: 1050;
  overflow: hidden;
  animation: userDropdownEntrance 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

.user-dropdown-menu::before {
  content: "";
  position: absolute;
  top: 0;
  left: 16px;
  right: 16px;
  height: 2px;
  background: linear-gradient(90deg, transparent 0%, var(--primary) 30%, #00e5ff 70%, transparent 100%);
  opacity: 0.9;
}

@keyframes userDropdownEntrance {
  from {
    opacity: 0;
    transform: translateY(-8px) scale(0.96);
  }

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

.user-dropdown-menu.show {
  display: flex;
}

.dropdown-header {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.35rem 0.35rem 0.75rem;
}

.dropdown-header-avatar-wrap {
  position: relative;
  flex-shrink: 0;
}

.dropdown-header-avatar-wrap .user-avatar-badge {
  border: 2px solid rgba(255, 255, 255, 0.16);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
}

.dropdown-avatar-status-dot {
  position: absolute;
  bottom: 0px;
  right: 0px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 2px solid #0d111c;
}

.dropdown-avatar-status-dot.dot-admin {
  background: #22c55e;
  box-shadow: 0 0 8px #22c55e;
}

.dropdown-avatar-status-dot.dot-user {
  background: #38bdf8;
  box-shadow: 0 0 8px #38bdf8;
}

.dropdown-user-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.dropdown-user-name-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.dropdown-username {
  font-size: 1rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.01em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.dropdown-role-badge {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.12rem 0.5rem;
  border-radius: 12px;
}

.dropdown-role-badge.role-admin {
  background: rgba(34, 197, 94, 0.15);
  border: 1px solid rgba(34, 197, 94, 0.35);
  color: #86efac;
}

.dropdown-role-badge.role-user {
  background: rgba(255, 87, 34, 0.15);
  border: 1px solid rgba(255, 87, 34, 0.3);
  color: #ff9e80;
}

.dropdown-email {
  font-size: 0.76rem;
  color: #94a3b8;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Mini Drachen-Rang & Fortschrittsbalken im Dropdown */
.dropdown-rank-card {
  margin: 0.35rem 0 0.65rem;
  padding: 0.75rem 0.85rem;
  background: linear-gradient(135deg, rgba(255, 87, 34, 0.08) 0%, rgba(20, 24, 38, 0.8) 100%);
  border: 1px solid rgba(255, 87, 34, 0.22);
  border-radius: 12px;
  transition: all 0.22s ease;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.dropdown-rank-card:hover {
  background: linear-gradient(135deg, rgba(255, 87, 34, 0.16) 0%, rgba(28, 34, 52, 0.9) 100%);
  border-color: rgba(255, 87, 34, 0.45);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35), 0 0 15px rgba(255, 87, 34, 0.18);
  transform: translateY(-1px);
}

.dropdown-rank-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

.dropdown-rank-pct {
  font-size: 0.75rem;
  font-weight: 800;
  color: #fbbf24;
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid rgba(245, 158, 11, 0.3);
  padding: 0.1rem 0.45rem;
  border-radius: 6px;
  font-family: var(--font-mono, monospace);
}

.dropdown-rank-bar-wrap {
  width: 100%;
  height: 6px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  overflow: hidden;
  position: relative;
  margin-bottom: 0.45rem;
  border: 1px solid rgba(255, 255, 255, 0.04);
}

.dropdown-rank-bar-fill {
  height: 100%;
  width: 0%;
  border-radius: 999px;
  background: linear-gradient(90deg, #ff7043, #fbbf24);
  box-shadow: 0 0 10px rgba(255, 112, 67, 0.5);
  transition: width 0.45s cubic-bezier(0.16, 1, 0.3, 1), background 0.3s ease;
}

.dropdown-rank-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.dropdown-rank-hint {
  font-size: 0.72rem;
  color: #94a3b8;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.2;
  flex: 1;
}

.dropdown-rank-hint strong {
  color: #fff;
  font-weight: 700;
}

.dropdown-rank-chevron {
  font-size: 0.7rem;
  color: rgba(255, 255, 255, 0.4);
  transition: transform 0.2s ease, color 0.2s ease;
}

.dropdown-rank-card:hover .dropdown-rank-chevron {
  transform: translateX(3px);
  color: var(--primary);
}

.dropdown-divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.08);
  margin: 0.45rem 0.2rem;
}

.dropdown-nav-group {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.dropdown-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.55rem 0.65rem;
  border-radius: 10px;
  color: #e2e8f0;
  font-size: 0.88rem;
  font-weight: 500;
  transition: all 0.18s cubic-bezier(0.16, 1, 0.3, 1);
  text-decoration: none;
  border: 1px solid transparent;
  background: transparent;
  width: 100%;
  text-align: left;
  cursor: pointer;
  position: relative;
}

.dropdown-item:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.08);
  color: #fff;
  transform: translateX(3px);
}

.dropdown-item-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  flex-shrink: 0;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.dropdown-item-icon.icon-account {
  background: rgba(99, 102, 241, 0.15);
  color: #818cf8;
  border: 1px solid rgba(99, 102, 241, 0.3);
}

.dropdown-item-icon.icon-ranks {
  background: rgba(245, 158, 11, 0.15);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.3);
}

.dropdown-item-icon.icon-history {
  background: rgba(6, 182, 212, 0.15);
  color: #22d3ee;
  border: 1px solid rgba(6, 182, 212, 0.3);
}

.dropdown-item-icon.icon-admin {
  background: rgba(16, 185, 129, 0.15);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.dropdown-item-icon.icon-logout {
  background: rgba(239, 68, 68, 0.15);
  color: #f87171;
  border: 1px solid rgba(239, 68, 68, 0.3);
}

.dropdown-item:hover .dropdown-item-icon {
  transform: scale(1.08);
}

.dropdown-item-content {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.dropdown-item-title {
  font-size: 0.86rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.25;
}

.dropdown-item-sub {
  font-size: 0.7rem;
  color: #94a3b8;
  line-height: 1.2;
}

.dropdown-item-arrow {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.25);
  transition: transform 0.2s ease, color 0.2s ease, opacity 0.2s ease;
  opacity: 0.4;
}

.dropdown-item:hover .dropdown-item-arrow {
  transform: translateX(2px);
  color: #fff;
  opacity: 1;
}

.dropdown-item-badge {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 0.15rem 0.45rem;
  border-radius: 6px;
  background: rgba(16, 185, 129, 0.2);
  color: #6ee7b7;
  border: 1px solid rgba(16, 185, 129, 0.4);
}

.dropdown-item.item-admin:hover {
  background: rgba(16, 185, 129, 0.12);
  border-color: rgba(16, 185, 129, 0.25);
}

.dropdown-item.item-logout {
  padding: 0.55rem 0.65rem;
}

.dropdown-item.item-logout:hover {
  background: rgba(239, 68, 68, 0.12);
  border-color: rgba(239, 68, 68, 0.25);
}

.dropdown-item.item-logout:hover .dropdown-item-title {
  color: #f87171;
}

/* 4. Auth Modal Styling (Next-Gen Glassmorphic Dragon Design) */
.auth-modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100vw;
  height: 100vh;
  background: radial-gradient(circle at 50% 35%, rgba(255, 87, 34, 0.16) 0%, rgba(245, 158, 11, 0.06) 35%, rgba(10, 13, 20, 0.88) 75%);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  z-index: 10000;
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.auth-modal-backdrop.active {
  opacity: 1;
  pointer-events: auto;
  visibility: visible;
}

/* Danger / Deletion Modal Theme Variant */
.auth-modal-backdrop.modal-backdrop-danger {
  background: radial-gradient(circle at 50% 35%, rgba(239, 68, 68, 0.22) 0%, rgba(185, 28, 28, 0.08) 35%, rgba(10, 13, 20, 0.92) 75%);
}

.auth-modal-backdrop.modal-backdrop-danger .auth-modal-dialog {
  border-color: rgba(239, 68, 68, 0.4);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.88), 0 0 50px rgba(239, 68, 68, 0.25), inset 0 1px 1px rgba(255, 255, 255, 0.12);
  scrollbar-color: rgba(239, 68, 68, 0.4) transparent;
}

.auth-modal-backdrop.modal-backdrop-danger .auth-modal-dialog::-webkit-scrollbar-thumb {
  background: rgba(239, 68, 68, 0.35);
}

.auth-modal-backdrop.modal-backdrop-danger .auth-modal-dragon-badge {
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 50%, #991b1b 100%);
  box-shadow: inset 0 1px 2px rgba(255, 255, 255, 0.35), 0 8px 24px rgba(239, 68, 68, 0.45);
  transform: translate3d(0, 0, 0);
  backface-visibility: hidden;
  will-change: transform, opacity;
  animation: dangerBadgePulse 3.5s ease-in-out infinite alternate;
}

@keyframes dangerBadgePulse {
  0% {
    transform: translate3d(0, 0, 0) scale(1);
    opacity: 0.92;
  }

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

.auth-modal-backdrop.modal-backdrop-danger .auth-modal-top-accent {
  background: linear-gradient(90deg, transparent 0%, #ef4444 30%, #dc2626 70%, transparent 100%);
  box-shadow: 0 0 15px rgba(239, 68, 68, 0.6);
}

/* Dragon Rank Studio Modal Theme Variant */
.auth-modal-backdrop.modal-backdrop-rank .auth-modal-dialog {
  border-color: rgba(245, 158, 11, 0.35);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.88), 0 0 50px rgba(245, 158, 11, 0.2), inset 0 1px 1px rgba(255, 255, 255, 0.12);
  scrollbar-color: rgba(245, 158, 11, 0.4) transparent;
}

.auth-modal-backdrop.modal-backdrop-rank .auth-modal-dialog::-webkit-scrollbar-thumb {
  background: rgba(245, 158, 11, 0.35);
}

.auth-modal-backdrop.modal-backdrop-rank .auth-modal-dragon-badge {
  background: linear-gradient(135deg, #f59e0b 0%, #ff5722 50%, #b71c1c 100%);
  box-shadow: inset 0 1px 2px rgba(255, 255, 255, 0.4), 0 8px 24px rgba(245, 158, 11, 0.45);
}

.auth-modal-backdrop.modal-backdrop-rank .auth-modal-top-accent {
  background: linear-gradient(90deg, transparent 0%, #ff5722 25%, #f59e0b 50%, #ec4899 75%, transparent 100%);
  box-shadow: 0 0 15px rgba(245, 158, 11, 0.6);
}

/* Warning / Session Expired Modal Theme Variant */
.auth-modal-backdrop.modal-backdrop-warning {
  background: radial-gradient(circle at 50% 35%, rgba(245, 158, 11, 0.22) 0%, rgba(239, 68, 68, 0.09) 35%, rgba(10, 13, 20, 0.94) 75%);
  z-index: 10050;
}

.auth-modal-backdrop.modal-backdrop-warning .auth-modal-dialog {
  max-width: 500px;
  border-color: rgba(245, 158, 11, 0.42);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.92), 0 0 50px rgba(245, 158, 11, 0.22), inset 0 1px 1px rgba(255, 255, 255, 0.14);
  scrollbar-color: rgba(245, 158, 11, 0.4) transparent;
}

.auth-modal-backdrop.modal-backdrop-warning .auth-modal-dialog::-webkit-scrollbar-thumb {
  background: rgba(245, 158, 11, 0.35);
}

.auth-modal-backdrop.modal-backdrop-warning .auth-modal-dragon-badge {
  background: linear-gradient(135deg, #f59e0b 0%, #ea580c 50%, #b91c1c 100%);
  box-shadow: inset 0 1px 2px rgba(255, 255, 255, 0.4), 0 8px 24px rgba(245, 158, 11, 0.45);
  transform: translate3d(0, 0, 0);
  backface-visibility: hidden;
  will-change: transform, opacity;
  animation: warningBadgePulse 3.5s ease-in-out infinite alternate;
}

.auth-modal-backdrop.modal-backdrop-warning .auth-modal-top-accent {
  background: linear-gradient(90deg, transparent 0%, #f59e0b 25%, #ea580c 50%, #ef4444 75%, transparent 100%);
  box-shadow: 0 0 16px rgba(245, 158, 11, 0.6);
}

@keyframes warningBadgePulse {
  0% {
    transform: translate3d(0, 0, 0) scale(1);
    opacity: 0.92;
  }

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

/* Terms Re-Acceptance Modal Theme Variant */
.auth-modal-backdrop.modal-backdrop-terms {
  background: radial-gradient(circle at 50% 35%, rgba(0, 229, 255, 0.18) 0%, rgba(59, 130, 246, 0.08) 35%, rgba(10, 13, 20, 0.94) 75%);
  z-index: 10500;
}

.auth-modal-backdrop.modal-backdrop-terms .auth-modal-dialog {
  max-width: 530px;
  border-color: rgba(0, 229, 255, 0.35);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.92), 0 0 50px rgba(0, 229, 255, 0.18), inset 0 1px 1px rgba(255, 255, 255, 0.14);
}

.auth-modal-backdrop.modal-backdrop-terms .auth-modal-dragon-badge {
  background: linear-gradient(135deg, #00e5ff 0%, #3b82f6 50%, #8b5cf6 100%);
  box-shadow: inset 0 1px 2px rgba(255, 255, 255, 0.4), 0 8px 24px rgba(0, 229, 255, 0.4);
}

.auth-terms-group {
  transition: border-color 0.2s ease, background 0.2s ease;
}

.auth-terms-group:hover {
  border-color: rgba(0, 229, 255, 0.25) !important;
  background: rgba(255, 255, 255, 0.05) !important;
}

.auth-terms-link {
  color: #00e5ff;
  text-decoration: underline;
  font-weight: 600;
  transition: color 0.2s ease, text-shadow 0.2s ease;
}

.auth-terms-link:hover {
  color: #38bdf8;
  text-shadow: 0 0 8px rgba(0, 229, 255, 0.4);
}

.session-expired-card {
  background: rgba(245, 158, 11, 0.08);
  border: 1px solid rgba(245, 158, 11, 0.28);
  border-radius: 16px;
  padding: 1.1rem 1.25rem;
  margin-bottom: 1.25rem;
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.session-expired-card-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(245, 158, 11, 0.16);
  border: 1px solid rgba(245, 158, 11, 0.35);
  color: #fbbf24;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  flex-shrink: 0;
}

.session-expired-card-text {
  flex: 1;
}

.session-expired-card-title {
  font-weight: 700;
  font-size: 0.98rem;
  color: #fbbf24;
  margin: 0 0 0.35rem 0;
}

.session-expired-card-desc {
  font-size: 0.86rem;
  line-height: 1.48;
  color: #cbd5e1;
  margin: 0;
}

.session-expired-video-pill {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 0.65rem 0.95rem;
  margin-bottom: 1.25rem;
  font-size: 0.85rem;
  color: #e2e8f0;
}

.session-expired-video-pill i {
  color: #ef4444;
  font-size: 0.95rem;
}

.session-expired-video-pill strong {
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 320px;
}

/* Warning / Session Expired Modal Action Buttons */
.auth-modal-backdrop.modal-backdrop-warning .auth-submit-btn,
#btn-session-relogin {
  background: linear-gradient(135deg, #f59e0b 0%, #ea580c 50%, #dc2626 100%);
  box-shadow: 0 6px 20px rgba(245, 158, 11, 0.4), inset 0 1px 1px rgba(255, 255, 255, 0.35);
  border: none;
  color: #fff;
}

.auth-modal-backdrop.modal-backdrop-warning .auth-submit-btn:hover,
#btn-session-relogin:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(245, 158, 11, 0.55), inset 0 1px 1px rgba(255, 255, 255, 0.45);
  filter: brightness(1.06);
}

.auth-modal-backdrop.modal-backdrop-warning .auth-submit-btn:active,
#btn-session-relogin:active {
  transform: translateY(1px);
  box-shadow: 0 4px 14px rgba(245, 158, 11, 0.4);
}

.btn-auth-secondary {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  color: #cbd5e1;
  padding: 0.75rem 1rem;
  border-radius: 12px;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  box-sizing: border-box;
  font-family: inherit;
}

.btn-auth-secondary:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.22);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

.btn-auth-secondary:active {
  transform: translateY(0);
}

/* Shake Feedback wenn der Benutzer auf den Backdrop klickt */
@keyframes modalAttentionShake {
  0%, 100% {
    transform: scale(1) translateY(0);
  }
  20%, 60% {
    transform: scale(1.015) translateX(-5px);
  }
  40%, 80% {
    transform: scale(1.015) translateX(5px);
  }
}

.auth-modal-dialog.modal-shake {
  animation: modalAttentionShake 0.38s ease-in-out;
}

.auth-modal-dialog {
  max-width: 490px;
  width: 100%;
  max-height: 92vh;
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 87, 34, 0.4) transparent;
  border-radius: 24px;
  position: relative;
  background: linear-gradient(170deg, rgba(20, 26, 40, 0.97) 0%, rgba(12, 16, 25, 0.99) 100%);
  border: 1px solid rgba(255, 87, 34, 0.28);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.85), 0 0 50px rgba(255, 87, 34, 0.16), inset 0 1px 1px rgba(255, 255, 255, 0.12);
  transform: translateY(20px) scale(0.96);
  opacity: 0;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
  display: flex;
  flex-direction: column;
}

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

.auth-modal-dialog::-webkit-scrollbar-thumb {
  background: rgba(255, 87, 34, 0.35);
  border-radius: 3px;
}

.auth-modal-backdrop.active .auth-modal-dialog {
  transform: translateY(0) scale(1);
  opacity: 1;
}

/* Glowing Top Accent Bar */
.auth-modal-top-accent {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, transparent 0%, #ff5722 30%, #f59e0b 60%, #ff3d00 90%, transparent 100%);
  box-shadow: 0 0 15px rgba(255, 87, 34, 0.6);
  z-index: 2;
}

/* Modal Header */
.auth-modal-header {
  padding: 1.75rem 1.75rem 1.25rem;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  background: rgba(14, 19, 30, 0.7);
  position: relative;
}

.auth-modal-title-group {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.auth-modal-dragon-badge {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  background: linear-gradient(135deg, #ff6b35 0%, #ff3d00 50%, #b71c1c 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.5rem;
  box-shadow: inset 0 1px 2px rgba(255, 255, 255, 0.4), 0 8px 24px rgba(255, 87, 34, 0.45);
  flex-shrink: 0;
  position: relative;
  transform: translate3d(0, 0, 0);
  backface-visibility: hidden;
  will-change: transform, opacity;
  animation: dragonBadgePulse 3.5s ease-in-out infinite alternate;
}

@keyframes dragonBadgePulse {
  0% {
    transform: translate3d(0, 0, 0) scale(1);
    opacity: 0.92;
  }

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

.auth-modal-badge-row {
  margin-bottom: 0.2rem;
}

.auth-badge-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.72rem;
  font-weight: 700;
  color: #ff8a65;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  background: rgba(255, 87, 34, 0.12);
  padding: 0.15rem 0.55rem;
  border-radius: 20px;
  border: 1px solid rgba(255, 87, 34, 0.25);
}

.auth-badge-tag i {
  color: #ff5722;
  font-size: 0.68rem;
}

.auth-modal-title {
  font-size: 1.32rem;
  font-weight: 800;
  color: #fff;
  margin: 0;
  letter-spacing: -0.3px;
  line-height: 1.25;
}

.auth-modal-sub {
  font-size: 0.8rem;
  color: #94a3b8;
  display: block;
  margin-top: 0.25rem;
  line-height: 1.35;
}

/* Close Button */
.auth-modal-close {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #94a3b8;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 0.95rem;
  transition: all 0.25s ease;
  flex-shrink: 0;
  margin-left: 0.5rem;
}

.auth-modal-close:hover {
  background: rgba(239, 68, 68, 0.18);
  border-color: rgba(239, 68, 68, 0.45);
  color: #ff6b6b;
  transform: rotate(90deg) scale(1.05);
}

/* Quick Perks Strip */
.auth-perks-strip {
  display: flex;
  align-items: center;
  justify-content: space-around;
  padding: 0.65rem 1.25rem;
  background: rgba(10, 14, 23, 0.65);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  font-size: 0.78rem;
  color: #94a3b8;
  font-weight: 600;
}

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

.auth-perk-item i {
  color: var(--primary);
  font-size: 0.85rem;
}

.auth-perk-divider {
  width: 1px;
  height: 14px;
  background: rgba(255, 255, 255, 0.1);
}

/* Modern Segmented Capsule Tabs */
.auth-tabs-segmented {
  display: flex;
  gap: 6px;
  padding: 5px;
  margin: 1.25rem 1.75rem 0.5rem;
  background: rgba(9, 13, 22, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
}

.auth-tab-pill {
  flex: 1;
  padding: 0.75rem 1rem;
  border-radius: 10px;
  border: 1px solid transparent;
  background: transparent;
  color: #94a3b8;
  font-size: 0.92rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.auth-tab-pill:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.04);
}

.auth-tab-pill.active {
  background: linear-gradient(135deg, rgba(255, 87, 34, 0.26) 0%, rgba(245, 158, 11, 0.14) 100%);
  border-color: rgba(255, 87, 34, 0.45);
  color: #fff;
  box-shadow: 0 4px 14px rgba(255, 87, 34, 0.25);
}

.auth-tab-pill.active i {
  color: #ff6b35;
}

/* Modal Body */
.auth-modal-body {
  padding: 1.25rem 1.75rem 1.75rem;
  background: transparent;
}

.auth-panel-animated {
  animation: authPanelFadeIn 0.25s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes authPanelFadeIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Inline Alert Box */
.auth-modal-alert {
  border-radius: 12px;
  padding: 0.75rem 1rem;
  margin-bottom: 1.25rem;
  font-size: 0.88rem;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  animation: authAlertPop 0.25s ease-out;
}

@keyframes authAlertPop {
  0% {
    transform: scale(0.97);
    opacity: 0;
  }

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

.auth-modal-alert.auth-alert-error {
  background: rgba(239, 68, 68, 0.14);
  border: 1px solid rgba(239, 68, 68, 0.35);
  color: #fca5a5;
}

.auth-modal-alert.auth-alert-warning {
  background: rgba(245, 158, 11, 0.14);
  border: 1px solid rgba(245, 158, 11, 0.35);
  color: #fcd34d;
}

.auth-modal-alert.auth-alert-success {
  background: rgba(16, 185, 129, 0.14);
  border: 1px solid rgba(16, 185, 129, 0.35);
  color: #6ee7b7;
}

.auth-modal-alert i {
  font-size: 1.1rem;
  flex-shrink: 0;
}

/* Field Groups */
.auth-field-group {
  margin-bottom: 1.15rem;
}

.auth-field-group .form-label {
  font-size: 0.82rem;
  font-weight: 700;
  color: #cbd5e1;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.45rem;
  letter-spacing: 0.2px;
}

.auth-label-hint {
  font-size: 0.75rem;
  font-weight: 500;
  color: #64748b;
}

.form-label-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.45rem;
}

.form-label-row .form-label {
  margin-bottom: 0;
}

.auth-selected-avatar-tag {
  font-size: 0.78rem;
  font-weight: 700;
  color: #ff8a65;
  background: rgba(255, 87, 34, 0.12);
  padding: 0.18rem 0.65rem;
  border-radius: 20px;
  border: 1px solid rgba(255, 87, 34, 0.3);
  transition: all 0.2s ease;
}

/* Inputs & Wrappers */
.auth-input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  border-radius: 12px;
}

.auth-input-wrapper .input-icon {
  position: absolute;
  left: 1rem;
  color: #64748b;
  font-size: 1rem;
  pointer-events: none;
  transition: color 0.2s ease, filter 0.2s ease;
  z-index: 1;
}

.auth-input-wrapper .form-control.with-icon {
  width: 100%;
  padding: 0.85rem 1rem 0.85rem 2.85rem;
  background: rgba(10, 14, 23, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  color: #fff;
  font-size: 0.94rem;
  font-family: inherit;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.auth-input-wrapper .form-control.with-icon::placeholder {
  color: #475569;
}

.auth-input-wrapper:focus-within .form-control.with-icon {
  border-color: #ff5722;
  background: rgba(14, 20, 32, 0.95);
  box-shadow: 0 0 0 3px rgba(255, 87, 34, 0.22), 0 0 20px rgba(255, 87, 34, 0.16);
  outline: none;
}

.auth-input-wrapper:focus-within .input-icon {
  color: #ff6b35;
  filter: drop-shadow(0 0 6px rgba(255, 87, 34, 0.6));
}

.input-password-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.input-password-wrapper .form-control {
  width: 100%;
  padding-right: 2.9rem !important;
}

.input-password-wrapper .btn-toggle-pw {
  position: absolute;
  right: 0.45rem;
  top: 50%;
  transform: translateY(-50%);
  width: 34px;
  height: 34px;
  border-radius: 8px;
  border: none;
  background: transparent;
  color: #64748b;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  transition: all 0.2s ease;
  z-index: 2;
}

.input-password-wrapper .btn-toggle-pw:hover {
  color: #ff6b35;
  background: rgba(255, 87, 34, 0.12);
}

/* Custom Checkbox & Options Row */
.auth-form-options {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 1.15rem 0 1.35rem;
  font-size: 0.86rem;
}

.auth-custom-checkbox {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  cursor: pointer;
  color: #94a3b8;
  user-select: none;
  transition: color 0.2s ease;
}

.auth-custom-checkbox:hover {
  color: #cbd5e1;
}

.auth-custom-checkbox input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
  pointer-events: none;
}

.auth-checkbox-box {
  width: 20px;
  height: 20px;
  border-radius: 6px;
  border: 1.5px solid rgba(255, 255, 255, 0.2);
  background: rgba(10, 14, 23, 0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  color: transparent;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  flex-shrink: 0;
}

.auth-custom-checkbox input:checked+.auth-checkbox-box {
  background: linear-gradient(135deg, #ff5722, #e64a19);
  border-color: #ff5722;
  color: #fff;
  box-shadow: 0 0 12px rgba(255, 87, 34, 0.45);
}

.auth-checkbox-text {
  font-size: 0.86rem;
}

.auth-forgot-link {
  color: #94a3b8;
  text-decoration: none;
  font-size: 0.84rem;
  font-weight: 500;
  transition: color 0.2s ease;
}

.auth-forgot-link:hover {
  color: #ff6b35;
  text-decoration: underline;
}

/* Action CTA Button */
.auth-submit-btn,
.btn-auth-submit {
  width: 100%;
  position: relative;
  overflow: hidden;
  padding: 0.92rem 1.5rem;
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: 0.3px;
  border-radius: 12px;
  background: linear-gradient(135deg, #ff6b35 0%, #ff4500 50%, #d83100 100%);
  border: none;
  color: #fff;
  box-shadow: 0 6px 20px rgba(255, 69, 0, 0.38), inset 0 1px 1px rgba(255, 255, 255, 0.35);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.auth-submit-btn:hover,
.btn-auth-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(255, 69, 0, 0.52), inset 0 1px 1px rgba(255, 255, 255, 0.45);
  filter: brightness(1.05);
}

.auth-submit-btn:active,
.btn-auth-submit:active {
  transform: translateY(1px);
  box-shadow: 0 4px 14px rgba(255, 69, 0, 0.4);
}

.auth-submit-btn:disabled,
.btn-auth-submit:disabled {
  opacity: 0.65;
  cursor: not-allowed;
  transform: none;
}

.auth-btn-shine {
  position: absolute;
  top: 0;
  left: -100%;
  width: 50%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transform: skewX(-25deg);
  transition: left 0.75s ease;
}

.auth-submit-btn:hover .auth-btn-shine,
.btn-auth-submit:hover .auth-btn-shine {
  left: 150%;
}

/* Password Strength Indicator */
.auth-pw-strength-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-top: 0.5rem;
}

.auth-pw-strength-bars {
  display: flex;
  gap: 4px;
  flex: 1;
}

.auth-pw-bar {
  height: 4px;
  flex: 1;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.1);
  transition: background-color 0.25s ease;
}

.auth-pw-strength-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: #64748b;
  min-width: 65px;
  text-align: right;
  transition: color 0.25s ease;
}

/* Avatar Picker Grid */
.auth-avatar-picker-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 0.6rem;
  margin-top: 0.25rem;
  background: rgba(9, 13, 22, 0.5);
  padding: 0.65rem;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.avatar-radio-label {
  cursor: pointer;
  position: relative;
  display: flex;
  justify-content: center;
}

.avatar-radio-label input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
  pointer-events: none;
}

.avatar-radio-box {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  border: 2px solid transparent;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4);
}

.avatar-radio-label:hover .avatar-radio-box {
  transform: translateY(-2px) scale(1.08);
}

.avatar-radio-label input:checked+.avatar-radio-box {
  border-color: #fff;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.3), 0 0 20px #ff5722;
  transform: translateY(-2px) scale(1.12);
}

/* Footer Hint & Inline Switch */
.auth-footer-hint {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  margin-top: 1.35rem;
  font-size: 0.88rem;
  color: #94a3b8;
}

.auth-inline-switch-btn {
  background: transparent;
  border: none;
  color: #ff6b35;
  font-weight: 700;
  cursor: pointer;
  padding: 0;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.88rem;
  transition: color 0.2s ease, transform 0.2s ease;
}

.auth-inline-switch-btn:hover {
  color: #ff8a65;
  transform: translateX(2px);
}

.auth-inline-switch-btn i {
  font-size: 0.78rem;
}

/* Security Guarantee Footer */
.auth-modal-footer-security {
  padding: 0.85rem 1.75rem;
  background: rgba(9, 12, 19, 0.65);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-size: 0.76rem;
  color: #64748b;
  font-weight: 500;
}

.auth-modal-footer-security i {
  color: #10b981;
}

@media (max-width: 540px) {
  .auth-modal-backdrop {
    padding: 0.75rem 0.5rem;
  }

  .auth-modal-dialog {
    border-radius: 18px;
    max-height: 94vh;
  }

  .auth-modal-header {
    padding: 1.25rem 1.15rem 1rem;
  }

  .auth-modal-dragon-badge {
    width: 44px;
    height: 44px;
    font-size: 1.25rem;
    border-radius: 12px;
  }

  .auth-modal-title {
    font-size: 1.18rem;
  }

  .auth-modal-sub {
    font-size: 0.74rem;
  }

  .auth-perks-strip {
    padding: 0.45rem 0.75rem;
    font-size: 0.72rem;
  }

  .auth-tabs-segmented {
    margin: 0.85rem 1.15rem 0.35rem;
    gap: 4px;
    padding: 4px;
  }

  .auth-tab-pill {
    padding: 0.65rem 0.75rem;
    font-size: 0.86rem;
  }

  .auth-modal-body {
    padding: 1rem 1.15rem 1.25rem;
  }

  .auth-field-group {
    margin-bottom: 0.95rem;
  }

  .auth-avatar-picker-grid {
    gap: 0.4rem;
    padding: 0.5rem;
  }

  .avatar-radio-box {
    width: 38px;
    height: 38px;
    font-size: 1rem;
  }

  .auth-submit-btn,
  .btn-auth-submit {
    padding: 0.82rem 1.25rem;
    font-size: 0.95rem;
  }

  .auth-modal-footer-security {
    padding: 0.7rem 1rem;
    font-size: 0.72rem;
  }
}

/* 5. Account Page Layout & Cards - Next Gen Gamer & Glassmorphic Design */
.account-container {
  max-width: 1140px;
  margin: 2.2rem auto 5rem;
  padding: 0 1.5rem;
  position: relative;
}

/* ==========================================================
   Account Loading View
   ========================================================== */
.account-loading-box {
  text-align: center;
  padding: 5rem 1.5rem;
  background: rgba(18, 24, 38, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
}

.account-loading-icon {
  font-size: 3.2rem;
  color: var(--primary);
  margin-bottom: 1.25rem;
  filter: drop-shadow(0 0 20px rgba(255, 87, 34, 0.6));
}

/* ==========================================================
   Account Guest Portal Hero
   ========================================================== */
.account-guest-hero {
  max-width: 780px;
  margin: 2rem auto;
  background: rgba(18, 24, 38, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 24px;
  padding: 3.25rem 2.5rem;
  position: relative;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55), 0 0 60px rgba(255, 87, 34, 0.12);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  text-align: center;
}

.account-guest-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #ff5722, #f59e0b, #ec4899, #a855f7);
}

.guest-hero-badge-wrap {
  width: 90px;
  height: 90px;
  margin: 0 auto 1.5rem;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, rgba(255, 87, 34, 0.3), rgba(15, 23, 42, 0.9));
  border: 2px solid rgba(255, 87, 34, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.8rem;
  color: var(--primary);
  box-shadow: 0 0 35px rgba(255, 87, 34, 0.4), inset 0 0 15px rgba(255, 87, 34, 0.25);
  transform: translate3d(0, 0, 0);
  backface-visibility: hidden;
  will-change: transform, opacity;
  animation: guestPulse 3s ease-in-out infinite;
}

@keyframes guestPulse {

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

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

.guest-hero-title {
  font-size: 2.25rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.5px;
  margin-bottom: 0.75rem;
}

.guest-hero-title span {
  background: linear-gradient(135deg, #ff8a65, #ff5722);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.guest-hero-desc {
  color: var(--text-secondary);
  font-size: 1.02rem;
  max-width: 580px;
  margin: 0 auto 2.25rem;
  line-height: 1.65;
}

.guest-hero-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 2.5rem;
}

.guest-hero-actions .btn-primary {
  padding: 0.95rem 2.2rem;
  font-size: 1.05rem;
  font-weight: 700;
  border-radius: 999px;
  box-shadow: 0 6px 25px rgba(255, 87, 34, 0.45);
}

.guest-hero-actions .btn-outline {
  padding: 0.95rem 2.2rem;
  font-size: 1.05rem;
  font-weight: 700;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #fff;
}

.guest-hero-actions .btn-outline:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.3);
  transform: translateY(-2px);
}

.guest-benefits-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  text-align: left;
  margin-top: 1.5rem;
}

.guest-benefit-item {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: var(--radius-md);
  padding: 1.2rem;
  transition: all 0.25s ease;
}

.guest-benefit-item:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 87, 34, 0.3);
  transform: translateY(-3px);
}

.guest-benefit-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  margin-bottom: 0.75rem;
}

.guest-benefit-title {
  font-size: 0.92rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.35rem;
}

.guest-benefit-desc {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.45;
  margin: 0;
}

/* ==========================================================
   Account Profile Header (Logged View)
   ========================================================== */
.account-header-card {
  background: rgba(18, 24, 38, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 22px;
  padding: 2.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 2rem;
  margin-bottom: 2rem;
  box-shadow: 0 16px 45px rgba(0, 0, 0, 0.45);
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.account-header-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #ff5722, #f59e0b, #a855f7, #00e5ff);
}

.account-profile-main {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  flex-wrap: wrap;
}

.account-avatar-large {
  position: relative;
  display: inline-block;
  cursor: pointer;
  transition: transform 0.25s ease;
}

.account-avatar-large:hover {
  transform: scale(1.04);
}

.account-avatar-large .user-avatar-badge {
  box-shadow: 0 0 35px var(--primary-glow);
  border: 3px solid rgba(255, 255, 255, 0.2);
  transition: box-shadow 0.3s ease;
}

.account-avatar-badge-btn {
  position: absolute;
  bottom: -2px;
  right: -2px;
  width: 28px;
  height: 28px;
  background: #0f172a;
  border: 2px solid var(--primary);
  border-radius: 50%;
  color: #fff;
  font-size: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
  cursor: pointer;
}

.account-title-group h1 {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 0.4rem;
  color: #fff;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  letter-spacing: -0.5px;
}

.user-pill-role {
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.user-pill-role.role-admin {
  background: rgba(16, 185, 129, 0.18);
  border: 1px solid rgba(16, 185, 129, 0.45);
  color: #34d399;
  box-shadow: 0 0 16px rgba(16, 185, 129, 0.25);
}

.user-pill-role.role-user {
  background: rgba(255, 87, 34, 0.15);
  border: 1px solid rgba(255, 87, 34, 0.35);
  color: #ff8a65;
}

.rank-tier-pill {
  font-size: 0.74rem;
  font-weight: 700;
  padding: 0.28rem 0.7rem;
  border-radius: 999px;
  background: rgba(245, 158, 11, 0.15);
  border: 1px solid rgba(245, 158, 11, 0.35);
  color: #fbbf24;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.account-email-sub {
  color: var(--text-secondary);
  font-size: 0.92rem;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.user-copy-chip {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 0.2rem 0.55rem;
  border-radius: 6px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: all 0.2s ease;
  font-size: 0.88rem;
}

.user-copy-chip:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.25);
  color: #fff;
}

.account-header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.btn-sync-status {
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: #34d399;
  padding: 0.65rem 1.15rem;
  border-radius: var(--radius-md);
  font-size: 0.88rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  transition: all 0.25s ease;
}

.btn-sync-status:hover {
  background: rgba(16, 185, 129, 0.2);
  border-color: #10b981;
  box-shadow: 0 0 15px rgba(16, 185, 129, 0.3);
}

.btn-sync-status.syncing i {
  animation: fa-spin 1s linear infinite;
}

/* ==========================================================
   Account Stats Holographic Grid
   ========================================================== */
.account-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
  margin-bottom: 2.25rem;
}

.account-stat-card {
  background: rgba(18, 24, 38, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  padding: 1.5rem 1.35rem;
  display: flex;
  align-items: center;
  gap: 1.25rem;
  position: relative;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.account-stat-card::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 90px;
  height: 90px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.04) 0%, transparent 70%);
  pointer-events: none;
}

.account-stat-card:hover {
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-4px);
  box-shadow: 0 14px 35px rgba(0, 0, 0, 0.45);
}

.account-stat-card.card-red:hover {
  border-color: rgba(255, 87, 34, 0.5);
  box-shadow: 0 14px 35px rgba(255, 87, 34, 0.18);
}

.account-stat-card.card-gold:hover {
  border-color: rgba(245, 158, 11, 0.5);
  box-shadow: 0 14px 35px rgba(245, 158, 11, 0.18);
}

.account-stat-card.card-blue:hover {
  border-color: rgba(0, 229, 255, 0.5);
  box-shadow: 0 14px 35px rgba(0, 229, 255, 0.18);
}

.account-stat-card.card-purple:hover {
  border-color: rgba(168, 85, 247, 0.5);
  box-shadow: 0 14px 35px rgba(168, 85, 247, 0.18);
}

.stat-icon-wrap {
  width: 54px;
  height: 54px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  flex-shrink: 0;
  position: relative;
  transition: transform 0.3s ease;
}

.account-stat-card:hover .stat-icon-wrap {
  transform: scale(1.08);
}

.stat-icon-wrap.stat-red {
  background: radial-gradient(circle at 30% 30%, rgba(255, 87, 34, 0.3), rgba(255, 87, 34, 0.08));
  border: 1px solid rgba(255, 87, 34, 0.35);
  color: #ff7043;
}

.stat-icon-wrap.stat-gold {
  background: radial-gradient(circle at 30% 30%, rgba(245, 158, 11, 0.3), rgba(245, 158, 11, 0.08));
  border: 1px solid rgba(245, 158, 11, 0.35);
  color: #fbbf24;
}

.stat-icon-wrap.stat-blue {
  background: radial-gradient(circle at 30% 30%, rgba(0, 229, 255, 0.3), rgba(0, 229, 255, 0.08));
  border: 1px solid rgba(0, 229, 255, 0.35);
  color: #00e5ff;
}

.stat-icon-wrap.stat-purple {
  background: radial-gradient(circle at 30% 30%, rgba(168, 85, 247, 0.3), rgba(168, 85, 247, 0.08));
  border: 1px solid rgba(168, 85, 247, 0.35);
  color: #c084fc;
}

.stat-info {
  flex-grow: 1;
  min-width: 0;
}

.stat-info .stat-value {
  font-size: 1.65rem;
  font-weight: 800;
  color: #fff;
  line-height: 1.15;
  letter-spacing: -0.3px;
}

.stat-info .stat-label {
  font-size: 0.82rem;
  color: var(--text-secondary);
  margin-top: 0.2rem;
  font-weight: 500;
}

.stat-subtext {
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-top: 0.3rem;
  display: block;
}

/* ==========================================================
   Account Segmented Capsule Tabs
   ========================================================== */
.account-tabs-container {
  display: flex;
  justify-content: flex-start;
  margin-bottom: 2rem;
  overflow-x: auto;
  padding: 0.25rem 0.25rem 0.5rem;
  scrollbar-width: thin;
}

.account-tabs-wrap {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(10, 15, 26, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  padding: 0.45rem;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

.account-tab-btn {
  padding: 0.75rem 1.45rem;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 999px;
  color: var(--text-secondary);
  font-size: 0.94rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  white-space: nowrap;
}

.account-tab-btn:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
}

.account-tab-btn.active {
  background: linear-gradient(135deg, #ff5722, #e64a19);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.2);
  box-shadow: 0 4px 18px rgba(255, 87, 34, 0.45);
}

.account-tab-btn.tab-danger-btn:hover {
  color: #ef4444;
  background: rgba(239, 68, 68, 0.1);
}

.account-tab-btn.tab-danger-btn.active {
  background: linear-gradient(135deg, #ef4444, #dc2626);
  box-shadow: 0 4px 18px rgba(239, 68, 68, 0.45);
}

.account-tab-btn .tab-badge {
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
  font-size: 0.74rem;
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
  font-weight: 800;
}

.account-tab-btn.active .tab-badge {
  background: rgba(0, 0, 0, 0.25);
}

/* ==========================================================
   Account Card Panes
   ========================================================== */
.account-card {
  background: rgba(18, 24, 38, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 22px;
  padding: 2.5rem;
  margin-bottom: 2rem;
  box-shadow: 0 16px 45px rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  position: relative;
  overflow: hidden;
}

.account-card-header {
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.account-card-title {
  font-size: 1.45rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  letter-spacing: -0.3px;
}

.account-card-desc {
  font-size: 0.94rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin: 0;
  max-width: 720px;
}

/* ==========================================================
   Tab 1: Profile Customizer & Live Avatar Picker
   ========================================================== */
.profile-preview-strip {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 1.25rem 1.5rem;
  margin-bottom: 2rem;
}

.profile-preview-badge {
  flex-shrink: 0;
}

.profile-preview-info h4 {
  margin: 0 0 0.25rem;
  color: #fff;
  font-size: 1.1rem;
  font-weight: 700;
}

.profile-preview-info p {
  margin: 0;
  color: var(--text-secondary);
  font-size: 0.85rem;
}

.avatar-picker-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 0.85rem;
}

.avatar-select-card {
  position: relative;
  cursor: pointer;
  border: 2px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 1rem 0.5rem;
  background: rgba(255, 255, 255, 0.02);
  text-align: center;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
}

.avatar-select-card input[type="radio"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.avatar-select-card:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.25);
  transform: translateY(-3px);
}

.avatar-select-card.active,
.avatar-select-card:has(input:checked) {
  border-color: var(--primary);
  background: rgba(255, 87, 34, 0.12);
  box-shadow: 0 0 20px rgba(255, 87, 34, 0.35);
  transform: translateY(-3px);
}

.avatar-select-icon-box {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.45rem;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
  transition: transform 0.2s ease;
}

.avatar-select-card:hover .avatar-select-icon-box {
  transform: scale(1.08);
}

.avatar-select-name {
  font-size: 0.8rem;
  font-weight: 700;
  color: #fff;
  white-space: nowrap;
}

.avatar-select-emoji {
  font-size: 0.8rem;
}

/* ==========================================================
   Tab 2: Password Security & Live Indicators
   ========================================================== */
.pw-strength-meter-wrap {
  margin-top: 0.65rem;
}

.pw-strength-bars {
  display: flex;
  gap: 0.35rem;
  margin-bottom: 0.4rem;
}

.pw-strength-segment {
  height: 5px;
  flex-grow: 1;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  transition: background 0.3s ease;
}

.pw-strength-label-text {
  font-size: 0.78rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.pw-match-indicator {
  font-size: 0.8rem;
  margin-top: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  transition: all 0.2s ease;
}

.pw-match-indicator.match {
  color: #34d399;
}

.pw-match-indicator.mismatch {
  color: #f87171;
}

.security-info-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 2rem;
  padding-top: 1.75rem;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
}

.security-info-tile {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  padding: 1rem;
  font-size: 0.82rem;
  color: var(--text-secondary);
}

.security-info-tile strong {
  display: block;
  color: #fff;
  margin-bottom: 0.3rem;
  font-size: 0.88rem;
}

/* ==========================================================
   Tab 3: Watch History Toolbar & Cards (QoL)
   ========================================================== */
.history-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 16px;
  padding: 1rem 1.25rem;
  margin-bottom: 1.75rem;
}

.history-search-box {
  position: relative;
  flex-grow: 1;
  max-width: 320px;
}

.history-search-box i {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-size: 0.9rem;
}

.history-search-input {
  width: 100%;
  background: rgba(10, 15, 26, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  padding: 0.6rem 1rem 0.6rem 2.5rem;
  color: #fff;
  font-size: 0.88rem;
  transition: all 0.2s ease;
}

.history-search-input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 12px rgba(255, 87, 34, 0.3);
}

.history-filter-chips {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
}

.filter-chip-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-secondary);
  border-radius: 999px;
  padding: 0.45rem 1rem;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

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

.filter-chip-btn.active {
  background: rgba(255, 87, 34, 0.2);
  border-color: var(--primary);
  color: #ff8a65;
  font-weight: 700;
}

.history-actions-group {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.account-history-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(310px, 1fr));
  gap: 1.4rem;
}

.account-history-card {
  background: rgba(18, 24, 38, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.account-history-card:hover {
  border-color: rgba(255, 87, 34, 0.4);
  transform: translateY(-4px);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.5), 0 0 25px rgba(255, 87, 34, 0.15);
}

.account-history-thumb-wrap {
  position: relative;
  aspect-ratio: 16/9;
  background: #000;
  overflow: hidden;
}

.account-history-thumb-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.account-history-card:hover .account-history-thumb-wrap img {
  transform: scale(1.05);
}

.history-overlay-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.1) 40%, rgba(0, 0, 0, 0.85) 100%);
  pointer-events: none;
}

.history-badge-status {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  padding: 0.3rem 0.65rem;
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  backdrop-filter: blur(6px);
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.5);
}

.history-badge-status.completed {
  background: rgba(16, 185, 129, 0.9);
  color: #fff;
}

.history-badge-status.in-progress {
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
}

.history-badge-time {
  position: absolute;
  bottom: 0.65rem;
  right: 0.75rem;
  background: rgba(10, 15, 26, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.25rem 0.6rem;
  border-radius: 6px;
  backdrop-filter: blur(4px);
}

.history-progress-track {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: rgba(255, 255, 255, 0.2);
}

.history-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #ff5722, #f59e0b);
  transition: width 0.3s ease;
}

.history-progress-fill.completed {
  background: #10b981;
}

.account-history-body {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  justify-content: space-between;
  gap: 1rem;
}

.history-game-tag {
  font-size: 0.76rem;
  font-weight: 800;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 0.35rem;
}

.history-video-title {
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
  margin: 0;
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.account-history-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 0.85rem;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
}

.btn-history-play {
  padding: 0.55rem 1.15rem;
  font-size: 0.86rem;
  font-weight: 700;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  background: linear-gradient(135deg, #ff5722, #f4511e);
  color: #fff;
  transition: all 0.2s ease;
  box-shadow: 0 4px 12px rgba(255, 87, 34, 0.3);
}

.btn-history-play:hover {
  background: linear-gradient(135deg, #f4511e, #d84315);
  box-shadow: 0 6px 18px rgba(255, 87, 34, 0.5);
  transform: translateY(-2px);
}

.btn-history-del {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-history-del:hover {
  background: rgba(239, 68, 68, 0.15);
  border-color: rgba(239, 68, 68, 0.4);
  color: #f87171;
  transform: translateY(-2px);
}

/* ==========================================================
   Tab 4: Danger Zone Obsidian Styling
   ========================================================== */
.danger-zone-card {
  border-color: rgba(239, 68, 68, 0.35);
  background: linear-gradient(180deg, rgba(239, 68, 68, 0.05) 0%, rgba(18, 24, 38, 0.9) 100%);
  box-shadow: 0 16px 45px rgba(239, 68, 68, 0.12);
}

.danger-zone-card .account-card-title {
  color: #f87171;
}

.danger-alert-box {
  background: rgba(239, 68, 68, 0.08);
  border: 1px solid rgba(239, 68, 68, 0.25);
  border-radius: 14px;
  padding: 1.25rem;
  margin-bottom: 1.75rem;
  color: #fca5a5;
  font-size: 0.92rem;
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.danger-checklist {
  list-style: none;
  padding: 0;
  margin: 1rem 0 0;
  font-size: 0.85rem;
  color: #fecaca;
}

.danger-checklist li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.35rem;
}

.danger-checklist li i {
  color: #ef4444;
}

.btn-danger {
  background: linear-gradient(135deg, #ef4444, #dc2626);
  color: #fff;
  border: 1px solid #b91c1c;
  padding: 0.85rem 1.8rem;
  border-radius: var(--radius-md);
  font-weight: 700;
  cursor: pointer;
  transition: all 0.25s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  box-shadow: 0 6px 20px rgba(239, 68, 68, 0.35);
}

.btn-danger:hover {
  background: linear-gradient(135deg, #dc2626, #b91c1c);
  box-shadow: 0 8px 25px rgba(239, 68, 68, 0.5);
  transform: translateY(-2px);
}

/* ==========================================================
   Responsive Adaptations
   ========================================================== */
@media (max-width: 1024px) {
  .account-stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .avatar-picker-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  .account-container {
    padding: 0 1rem;
    margin-top: 1.5rem;
  }

  .account-header-card {
    flex-direction: column;
    align-items: flex-start;
    padding: 1.35rem;
    gap: 1.5rem;
  }

  .account-profile-main {
    gap: 1.25rem;
    width: 100%;
  }

  .account-title-group {
    min-width: 0;
    flex-grow: 1;
  }

  .account-title-group h1 {
    font-size: 1.45rem;
    word-break: break-word;
    flex-wrap: wrap;
    gap: 0.5rem;
  }

  .account-email-sub {
    flex-wrap: wrap;
    gap: 0.5rem;
  }

  .account-header-actions {
    width: 100%;
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 0.6rem;
  }

  .account-header-actions button,
  .account-header-actions a {
    flex-grow: 1;
    justify-content: center;
    text-align: center;
  }

  .account-stats-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .guest-benefits-grid {
    grid-template-columns: 1fr;
  }

  .avatar-picker-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .history-toolbar {
    flex-direction: column;
    align-items: stretch;
    gap: 1rem;
  }

  .history-search-box {
    max-width: 100%;
  }

  .history-filter-chips {
    overflow-x: auto;
    width: 100%;
    padding-bottom: 0.25rem;
    -webkit-overflow-scrolling: touch;
  }

  .history-actions-group {
    width: 100%;
  }

  .history-actions-group .btn-primary,
  .history-actions-group .btn-outline {
    flex-grow: 1;
    justify-content: center;
  }

  .security-info-grid {
    grid-template-columns: 1fr;
  }

  .account-tabs-wrap {
    width: 100%;
    overflow-x: auto;
    justify-content: flex-start;
    padding-bottom: 0.35rem;
    -webkit-overflow-scrolling: touch;
  }

  .account-tab-btn {
    white-space: nowrap;
    flex-shrink: 0;
    padding: 0.6rem 0.9rem;
    font-size: 0.85rem;
  }
}

@media (max-width: 600px) {
  .account-header-card {
    text-align: center;
    padding: 1.5rem 1.15rem;
  }

  .account-profile-main {
    flex-direction: column;
    align-items: center;
    text-align: center;
    width: 100%;
  }

  .account-title-group {
    width: 100%;
  }

  .account-title-group h1 {
    justify-content: center;
    font-size: 1.35rem;
  }

  .account-email-sub {
    justify-content: center;
  }

  .account-header-actions {
    flex-direction: column;
    width: 100%;
  }

  .account-header-actions button,
  .account-header-actions a {
    width: 100%;
  }
}

/* ==========================================================
   Back To Top Button
   ========================================================== */
.btn-back-to-top {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(18, 24, 38, 0.92);
  border: 1px solid var(--border-glow);
  color: #fff;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 990;
  box-shadow: var(--shadow-md);
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity var(--transition-fast), transform var(--transition-fast), background-color var(--transition-fast), border-color var(--transition-fast), bottom 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.btn-back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.btn-back-to-top:hover {
  background: var(--primary);
  border-color: var(--primary-hover);
  box-shadow: 0 4px 16px var(--primary-glow);
  transform: translateY(-2px);
}

.btn-back-to-top:active {
  transform: translateY(0);
}

@media (max-width: 600px) {
  .btn-back-to-top {
    bottom: 16px;
    right: 16px;
    width: 40px;
    height: 40px;
    font-size: 0.9rem;
  }

  .toast-container {
    bottom: 68px;
    right: 16px;
  }
}

/* ==============================================================================
   Performance-Optimierungen: Off-Screen Rendering einsparen (CPU & RAM)
   ============================================================================== */
.video-card,
.news-card {
  content-visibility: auto;
  contain-intrinsic-size: auto 320px;
}

/* ==========================================================
   Drachen-Ränge & Badges System (Admin & Account Studio)
   ========================================================== */

/* Rank Tier Pill in Account Header */
.rank-tier-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.82rem;
  font-weight: 700;
  padding: 0.28rem 0.75rem;
  border-radius: 999px;
  background: rgba(255, 112, 67, 0.16);
  border: 1px solid rgba(255, 112, 67, 0.45);
  color: #ff7043;
  box-shadow: 0 0 12px rgba(255, 112, 67, 0.2);
  transition: all var(--transition-fast);
  cursor: pointer;
}

.rank-tier-pill:hover {
  transform: translateY(-1px);
  box-shadow: 0 0 18px rgba(255, 112, 67, 0.35);
}

/* Admin Ränge Roadmap Preview */
.admin-ranks-roadmap-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 1rem;
  margin-bottom: 2rem;
}

.admin-rank-roadmap-card {
  position: relative;
  background: rgba(18, 24, 38, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-lg);
  padding: 1.25rem 1rem;
  text-align: center;
  overflow: hidden;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.25s, box-shadow 0.25s;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.admin-rank-roadmap-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 255, 255, 0.22);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.5);
}

.admin-rank-roadmap-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--card-accent, #ff7043);
  box-shadow: 0 0 12px var(--card-accent, #ff7043);
}

.admin-rank-step-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  font-size: 0.72rem;
  font-weight: 800;
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-muted);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.admin-rank-icon-bubble {
  width: 58px;
  height: 58px;
  margin: 0.5rem auto 0.85rem;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  background: rgba(255, 255, 255, 0.05);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.admin-rank-roadmap-card:hover .admin-rank-icon-bubble {
  transform: scale(1.12) rotate(4deg);
}

.admin-rank-card-title {
  font-size: 1.02rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.25rem;
}

.admin-rank-badge-title {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--card-accent, #ff7043);
  margin-bottom: 0.45rem;
}

.admin-rank-minutes-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.76rem;
  font-weight: 600;
  padding: 0.2rem 0.6rem;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-secondary);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

/* Account Page - Drachen-Ränge & Badges Hero & Roadmap */
.account-ranks-hero {
  background: linear-gradient(135deg, rgba(18, 24, 38, 0.85) 0%, rgba(26, 34, 53, 0.7) 100%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  margin-bottom: 2rem;
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.account-ranks-hero::after {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 320px;
  height: 320px;
  background: radial-gradient(circle, var(--current-rank-color, rgba(255, 112, 67, 0.25)) 0%, transparent 70%);
  filter: blur(40px);
  pointer-events: none;
  z-index: 0;
}

.account-ranks-hero-body {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 2rem;
  align-items: center;
}

@media (max-width: 768px) {
  .account-ranks-hero-body {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 1.25rem;
  }
}

.account-rank-badge-visual {
  width: 96px;
  height: 96px;
  border-radius: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.75rem;
  position: relative;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.5);
  transform: translate3d(0, 0, 0);
  backface-visibility: hidden;
  will-change: transform;
  animation: rankFloat 3.6s ease-in-out infinite alternate;
}

@keyframes rankFloat {
  0% {
    transform: translate3d(0, 0, 0);
  }

  100% {
    transform: translate3d(0, -6px, 0);
  }
}

.account-rank-progress-info {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.account-rank-meta-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.account-rank-name-wrap h3 {
  font-size: 1.45rem;
  font-weight: 800;
  color: #fff;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.account-rank-badge-chip {
  font-size: 0.8rem;
  font-weight: 700;
  padding: 0.2rem 0.65rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #fff;
}

.account-rank-progress-track {
  width: 100%;
  height: 12px;
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  overflow: hidden;
  position: relative;
}

.account-rank-progress-fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #ff5722 0%, #ff9800 60%, #ffeb3b 100%);
  box-shadow: 0 0 14px rgba(255, 152, 0, 0.6);
  transition: width 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.account-rank-next-tip {
  font-size: 0.85rem;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

/* Account Ränge Grid */
.account-ranks-roadmap-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.25rem;
}

.account-rank-badge-card {
  position: relative;
  background: rgba(18, 24, 38, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-lg);
  padding: 1.5rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: all 0.28s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
}

.account-rank-badge-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--rank-color, #ff7043);
  box-shadow: 0 0 10px var(--rank-color, #ff7043);
}

.account-rank-badge-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.45);
}

/* State: Unlocked vs Locked vs Current */
.account-rank-badge-card.unlocked {
  border-color: rgba(255, 255, 255, 0.16);
}

.account-rank-badge-card.current {
  border-color: var(--rank-color, #ff7043);
  box-shadow: 0 0 24px rgba(255, 112, 67, 0.25), 0 14px 30px rgba(0, 0, 0, 0.5);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04) 0%, rgba(18, 24, 38, 0.85) 100%);
}

.account-rank-badge-card.locked {
  opacity: 0.55;
  filter: grayscale(0.5);
}

.account-rank-badge-card.locked:hover {
  opacity: 0.85;
  filter: grayscale(0.2);
}

.rank-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.rank-card-icon-box {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3);
}

.rank-card-status-badge {
  font-size: 0.74rem;
  font-weight: 700;
  padding: 0.22rem 0.6rem;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

.rank-card-status-badge.status-current {
  background: rgba(255, 112, 67, 0.2);
  color: #ff7043;
  border: 1px solid rgba(255, 112, 67, 0.4);
}

.rank-card-status-badge.status-unlocked {
  background: rgba(16, 185, 129, 0.16);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.35);
}

.rank-card-status-badge.status-locked {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-muted);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.rank-card-titles h4 {
  font-size: 1.05rem;
  font-weight: 700;
  color: #fff;
  margin: 0 0 0.2rem 0;
}

.rank-card-badge-name {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--rank-color, #ff7043);
}

.rank-card-desc {
  font-size: 0.82rem;
  color: var(--text-secondary);
  line-height: 1.45;
  margin: 0;
}

.rank-card-requirement {
  font-size: 0.76rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: auto;
  padding-top: 0.65rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

/* ==============================================================================
   Drachen-Rang Aufstieg Celebration Banner & Notification Popup
   ============================================================================== */
.dragon-rank-up-overlay {
  position: fixed;
  top: 22px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 9999999;
  /* Garantiert über dem Kinoplayer (z-index: 1200) und allen Modals */
  pointer-events: none;
  width: calc(100vw - 32px);
  max-width: 600px;
  perspective: 1200px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Canvas für feierliche Drachenfeuer- & Funken-Partikel */
.rank-up-particles-canvas {
  position: absolute;
  top: -60px;
  left: -80px;
  width: calc(100% + 160px);
  height: calc(100% + 140px);
  pointer-events: none;
  z-index: 1;
}

.dragon-rank-up-card {
  position: relative;
  pointer-events: auto;
  width: 100%;
  background: linear-gradient(155deg, rgba(16, 22, 38, 0.97) 0%, rgba(9, 13, 22, 0.98) 100%);
  backdrop-filter: blur(28px) saturate(180%);
  -webkit-backdrop-filter: blur(28px) saturate(180%);
  border: 1px solid rgba(var(--rank-up-rgb, 245, 158, 11), 0.42);
  border-radius: 20px;
  padding: 1.35rem 1.6rem 1.15rem 1.6rem;
  box-shadow: 0 24px 70px -10px rgba(0, 0, 0, 0.95),
    0 0 45px -8px var(--rank-up-glow, rgba(245, 158, 11, 0.35)),
    inset 0 1px 0 rgba(255, 255, 255, 0.18);
  color: #fff;
  overflow: hidden;
  animation: rankUpEntrance 0.52s cubic-bezier(0.16, 1.25, 0.3, 1) forwards;
  transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1),
    opacity 0.25s ease,
    box-shadow 0.25s ease;
  user-select: none;
  touch-action: pan-y;
}

.dragon-rank-up-card.closing {
  animation: rankUpExit 0.32s cubic-bezier(0.4, 0, 0.2, 1) forwards !important;
}

@keyframes rankUpEntrance {
  0% {
    opacity: 0;
    transform: translateY(-50px) scale(0.92) rotateX(10deg);
  }

  65% {
    opacity: 1;
    transform: translateY(6px) scale(1.015) rotateX(0deg);
  }

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

@keyframes rankUpExit {
  0% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }

  100% {
    opacity: 0;
    transform: translateY(-40px) scale(0.9) rotateX(8deg);
  }
}

/* Ambient Radial Glow & Shimmer Sweep */
.rank-up-ambient-glow {
  position: absolute;
  inset: -40px;
  background: radial-gradient(ellipse at 50% 10%, var(--rank-up-glow, rgba(245, 158, 11, 0.32)) 0%, rgba(var(--rank-up-rgb, 245, 158, 11), 0.08) 50%, transparent 75%);
  filter: blur(25px);
  pointer-events: none;
  z-index: 0;
  opacity: 0.85;
  transform: translate3d(0, 0, 0);
  backface-visibility: hidden;
  will-change: transform, opacity;
  animation: rankUpAmbientPulse 3.5s ease-in-out infinite alternate;
}

@keyframes rankUpAmbientPulse {
  from {
    opacity: 0.65;
    transform: translate3d(0, 0, 0) scale(0.95);
  }

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

.rank-up-shimmer-sweep {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent 0%, rgba(var(--rank-up-rgb, 245, 158, 11), 0.4) 20%, #ffffff 50%, rgba(var(--rank-up-rgb, 245, 158, 11), 0.4) 80%, transparent 100%);
  background-size: 200% 100%;
  animation: rankUpShineSweep 2.8s ease-out 1 forwards;
  z-index: 3;
}

@keyframes rankUpShineSweep {
  0% {
    background-position: -150% 0;
    opacity: 0;
  }

  40% {
    opacity: 1;
  }

  100% {
    background-position: 150% 0;
    opacity: 0.75;
  }
}

/* Card Header */
.rank-up-header {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.05rem;
}

.rank-up-badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.74rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.32rem 0.85rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(var(--rank-up-rgb, 245, 158, 11), 0.45);
  color: var(--rank-up-color, #f59e0b);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.35);
  white-space: nowrap;
}

.rank-up-dragon-icon {
  font-size: 0.88rem;
  color: var(--rank-up-color, #f59e0b);
  filter: drop-shadow(0 0 6px var(--rank-up-glow, rgba(245, 158, 11, 0.6)));
  transform: translate3d(0, 0, 0);
  backface-visibility: hidden;
  will-change: transform;
  animation: dragonIconFloat 2s ease-in-out infinite alternate;
}

@keyframes dragonIconFloat {
  0% {
    transform: translate3d(0, 0, 0);
  }

  100% {
    transform: translate3d(0, -2px, 0);
  }
}

.rank-up-tier-dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.35);
}

.rank-up-tier-num {
  color: rgba(255, 255, 255, 0.85);
  font-weight: 700;
}

.rank-up-header-actions {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.rank-up-icon-btn {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: rgba(255, 255, 255, 0.7);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  font-size: 0.85rem;
}

.rank-up-icon-btn:hover {
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.35);
  color: #fff;
  transform: scale(1.08);
}

.rank-up-sound-btn:hover {
  color: var(--rank-up-color, #f59e0b);
  border-color: rgba(var(--rank-up-rgb, 245, 158, 11), 0.5);
}

.rank-up-sound-btn.is-muted {
  color: rgba(255, 255, 255, 0.4);
}

.rank-up-close-btn:hover {
  background: rgba(239, 68, 68, 0.22);
  border-color: rgba(239, 68, 68, 0.55);
  color: #ff6b6b;
  transform: rotate(90deg);
}

/* Card Main Area */
.rank-up-main {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 1.35rem;
  margin-bottom: 1.15rem;
}

/* Dragon Sigil Crest */
.rank-up-crest-wrapper {
  position: relative;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.rank-up-crest-halo {
  position: absolute;
  inset: -12px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--rank-up-glow, rgba(245, 158, 11, 0.45)) 0%, transparent 70%);
  filter: blur(10px);
  pointer-events: none;
  transform: translate3d(0, 0, 0);
  backface-visibility: hidden;
  will-change: transform, opacity;
  animation: crestPulse 2.4s ease-in-out infinite alternate;
}

@keyframes crestPulse {
  0% {
    transform: translate3d(0, 0, 0) scale(0.92);
    opacity: 0.6;
  }

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

.rank-up-sigil-disc {
  position: relative;
  width: 78px;
  height: 78px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at 35% 30%, rgba(var(--rank-up-rgb, 245, 158, 11), 0.32) 0%, rgba(13, 18, 30, 0.95) 75%);
  border: 2px solid var(--rank-up-color, #f59e0b);
  box-shadow: 0 0 32px var(--rank-up-glow, rgba(245, 158, 11, 0.5)),
    inset 0 2px 6px rgba(255, 255, 255, 0.35);
}

.rank-up-sigil-ring {
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 1.5px dashed rgba(var(--rank-up-rgb, 245, 158, 11), 0.55);
  animation: sigilRingRotate 18s linear infinite;
  pointer-events: none;
}

@keyframes sigilRingRotate {
  from {
    transform: rotate(0deg) translate3d(0, 0, 0);
  }

  to {
    transform: rotate(360deg) translate3d(0, 0, 0);
  }
}

.rank-up-sigil-icon {
  font-size: 2.15rem;
  color: #ffffff;
  filter: drop-shadow(0 0 12px var(--rank-up-color, #f59e0b));
  animation: sigilIconPop 0.65s cubic-bezier(0.16, 1.35, 0.3, 1) forwards;
}

@keyframes sigilIconPop {
  0% {
    transform: scale(0.4) rotate(-20deg);
    opacity: 0;
  }

  100% {
    transform: scale(1) rotate(0deg);
    opacity: 1;
  }
}

.rank-up-sigil-badge {
  position: absolute;
  bottom: -7px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, var(--rank-up-color, #f59e0b) 0%, rgba(var(--rank-up-rgb, 245, 158, 11), 0.85) 100%);
  color: #080c16;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  padding: 0.16rem 0.6rem;
  border-radius: 999px;
  white-space: nowrap;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.6);
  border: 2px solid #0b0f19;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  z-index: 3;
}

.rank-up-sigil-badge i {
  font-size: 0.65rem;
}

/* Rank Details Column */
.rank-up-details {
  flex: 1;
  min-width: 0;
}

.rank-up-progression-crumb {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.76rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 0.25rem;
  flex-wrap: wrap;
}

.crumb-prev {
  opacity: 0.72;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

.crumb-arrow {
  color: var(--rank-up-color, #f59e0b);
  font-size: 0.7rem;
  animation: crumbArrowBounce 1.4s ease-in-out infinite;
}

@keyframes crumbArrowBounce {

  0%,
  100% {
    transform: translateX(0);
  }

  50% {
    transform: translateX(3px);
  }
}

.crumb-curr {
  color: var(--rank-up-color, #f59e0b);
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

.rank-up-title {
  font-size: 1.6rem;
  font-weight: 800;
  line-height: 1.18;
  margin: 0 0 0.32rem 0;
  background: linear-gradient(135deg, #ffffff 45%, var(--rank-up-color, #f59e0b) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 2px 14px var(--rank-up-glow, rgba(245, 158, 11, 0.5)));
}

.rank-up-desc {
  font-size: 0.86rem;
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.44;
  margin: 0 0 0.6rem 0;
}

.rank-up-reward-box {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  background: rgba(var(--rank-up-rgb, 245, 158, 11), 0.1);
  border: 1px solid rgba(var(--rank-up-rgb, 245, 158, 11), 0.38);
  padding: 0.38rem 0.8rem;
  border-radius: 10px;
  font-size: 0.82rem;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.25);
  max-width: 100%;
}

.rank-up-reward-icon {
  width: 26px;
  height: 26px;
  border-radius: 7px;
  background: rgba(var(--rank-up-rgb, 245, 158, 11), 0.22);
  color: var(--rank-up-color, #f59e0b);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.86rem;
  flex-shrink: 0;
}

.rank-up-reward-text {
  display: flex;
  flex-direction: column;
  line-height: 1.25;
}

.reward-subtitle {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: rgba(255, 255, 255, 0.6);
  font-weight: 600;
}

.reward-badge-name {
  color: #fff;
  font-weight: 700;
  font-size: 0.84rem;
}

/* Card Footer & Action Buttons */
.rank-up-footer {
  position: relative;
  z-index: 2;
}

.rank-up-actions-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.rank-up-action-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.68rem 1.25rem;
  border-radius: 11px;
  font-weight: 800;
  font-size: 0.86rem;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  border: none;
  font-family: inherit;
}

.rank-up-action-btn.primary {
  flex: 1.25;
  background: linear-gradient(135deg, var(--rank-up-color, #f59e0b) 0%, rgba(var(--rank-up-rgb, 245, 158, 11), 0.88) 100%);
  color: #080c16;
  box-shadow: 0 4px 18px var(--rank-up-glow, rgba(245, 158, 11, 0.45));
}

.rank-up-action-btn.primary:hover {
  transform: translateY(-2px);
  filter: brightness(1.12);
  box-shadow: 0 6px 24px var(--rank-up-glow, rgba(245, 158, 11, 0.65));
}

.rank-up-action-btn.secondary {
  flex: 0.85;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: #ffffff;
}

.rank-up-action-btn.secondary:hover {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.32);
  transform: translateY(-2px);
  color: #fff;
}

/* Timer Bar & Live Countdown */
.rank-up-timer-bar-wrap {
  margin-top: 0.85rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.rank-up-timer-track {
  position: relative;
  width: 100%;
  height: 3.5px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  overflow: hidden;
}

.rank-up-timer-fill {
  height: 100%;
  width: 100%;
  background: linear-gradient(90deg, rgba(var(--rank-up-rgb, 245, 158, 11), 0.6), var(--rank-up-color, #f59e0b));
  transform-origin: left center;
  transition: transform 0.1s linear;
}

.rank-up-timer-info {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.71rem;
  color: rgba(255, 255, 255, 0.48);
}

.rank-up-timer-countdown {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

.rank-up-timer-countdown i {
  font-size: 0.68rem;
  color: var(--rank-up-color, #f59e0b);
}

.rank-up-timer-hint {
  opacity: 0.85;
}

/* ==============================================================================
   Responsive Optimierung für Tablets und Mobilgeräte (< 600px)
   ============================================================================== */
@media (max-width: 600px) {
  .dragon-rank-up-overlay {
    top: 10px;
    width: calc(100vw - 18px);
    max-width: calc(100vw - 18px);
  }

  .dragon-rank-up-card {
    padding: 1.1rem 1rem 0.95rem 1rem;
    border-radius: 17px;
  }

  .rank-up-header {
    margin-bottom: 0.85rem;
  }

  .rank-up-badge-pill {
    font-size: 0.68rem;
    padding: 0.28rem 0.65rem;
    gap: 0.35rem;
  }

  .rank-up-main {
    gap: 0.95rem;
    align-items: flex-start;
    margin-bottom: 0.95rem;
  }

  .rank-up-crest-wrapper {
    margin-top: 0.25rem;
  }

  .rank-up-sigil-disc {
    width: 62px;
    height: 62px;
  }

  .rank-up-sigil-icon {
    font-size: 1.65rem;
  }

  .rank-up-sigil-badge {
    font-size: 0.62rem;
    padding: 0.12rem 0.45rem;
    bottom: -6px;
  }

  .rank-up-progression-crumb {
    font-size: 0.72rem;
    margin-bottom: 0.2rem;
  }

  .rank-up-title {
    font-size: 1.35rem;
    margin-bottom: 0.25rem;
  }

  .rank-up-desc {
    font-size: 0.78rem;
    line-height: 1.38;
    margin-bottom: 0.5rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .rank-up-reward-box {
    padding: 0.32rem 0.65rem;
    font-size: 0.76rem;
    width: 100%;
  }

  .rank-up-actions-row {
    width: 100%;
    gap: 0.5rem;
  }

  .rank-up-action-btn {
    flex: 1 1 calc(50% - 0.25rem);
    min-width: 0;
    padding: 0.62rem 0.55rem;
    font-size: 0.78rem;
    gap: 0.35rem;
  }

  .rank-up-action-btn span {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .rank-up-timer-info {
    font-size: 0.66rem;
  }

  .rank-up-timer-hint {
    display: none;
    /* Auf kleinen Bildschirmen Platz sparen */
  }
}

/* ==============================================================================
   DragondarnDE - Dynamic Announcement Banner (Hinweisbanner)
   ============================================================================== */
.announcement-banner {
  position: relative;
  z-index: 99;
  width: 100%;
  color: #ffffff;
  font-family: 'Outfit', sans-serif;
  overflow: hidden;
  transform: translate3d(0, 0, 0);
  backface-visibility: hidden;
  transition: max-height 0.38s cubic-bezier(0.4, 0, 0.2, 1),
    opacity 0.32s ease,
    padding 0.38s ease;
  max-height: 250px;
}

.announcement-banner.banner-hidden {
  max-height: 0 !important;
  opacity: 0 !important;
  padding: 0 !important;
  pointer-events: none;
}

/* Background Themes & Gradients */
.announcement-banner.banner-dragon {
  background: linear-gradient(135deg, #b91c1c 0%, #ea580c 45%, #c2410c 100%);
  border-bottom: 1px solid rgba(254, 215, 170, 0.35);
  box-shadow: 0 4px 20px rgba(234, 88, 12, 0.3);
}

.announcement-banner.banner-info {
  background: linear-gradient(135deg, #0369a1 0%, #0284c7 50%, #0ea5e9 100%);
  border-bottom: 1px solid rgba(186, 230, 253, 0.35);
  box-shadow: 0 4px 20px rgba(2, 132, 199, 0.28);
}

.announcement-banner.banner-warning {
  background: linear-gradient(135deg, #b45309 0%, #d97706 50%, #f59e0b 100%);
  border-bottom: 1px solid rgba(254, 240, 138, 0.4);
  box-shadow: 0 4px 20px rgba(217, 119, 6, 0.28);
}

.announcement-banner.banner-success {
  background: linear-gradient(135deg, #047857 0%, #059669 50%, #10b981 100%);
  border-bottom: 1px solid rgba(167, 243, 208, 0.35);
  box-shadow: 0 4px 20px rgba(5, 150, 105, 0.28);
}

.announcement-banner.banner-live {
  background: linear-gradient(135deg, #991b1b 0%, #dc2626 50%, #ef4444 100%);
  border-bottom: 1px solid rgba(254, 202, 202, 0.4);
  box-shadow: 0 4px 24px rgba(220, 38, 38, 0.38);
}

.announcement-banner.banner-magic {
  background: linear-gradient(135deg, #581c87 0%, #7c3aed 50%, #9333ea 100%);
  border-bottom: 1px solid rgba(233, 213, 255, 0.35);
  box-shadow: 0 4px 22px rgba(124, 58, 237, 0.32);
}

/* Light shimmer sweep effect */
.announcement-banner::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 50%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.15), transparent);
  transform: translate3d(-150%, 0, 0) skewX(-25deg);
  backface-visibility: hidden;
  will-change: transform;
  animation: bannerShimmerSweep 7s infinite ease-in-out;
  pointer-events: none;
}

@keyframes bannerShimmerSweep {
  0% {
    transform: translate3d(-150%, 0, 0) skewX(-25deg);
  }

  22%,
  100% {
    transform: translate3d(350%, 0, 0) skewX(-25deg);
  }
}

.banner-container {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0.65rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  position: relative;
  z-index: 2;
}

.banner-content {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  flex: 1;
  min-width: 0;
  justify-content: center;
  text-align: center;
  flex-wrap: wrap;
}

.banner-icon-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.22);
  color: #ffffff;
  font-size: 0.85rem;
  flex-shrink: 0;
  position: relative;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.banner-live-dot {
  position: absolute;
  top: -1px;
  right: -1px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 0 8px #ffffff;
  transform: translate3d(0, 0, 0);
  backface-visibility: hidden;
  will-change: transform, opacity;
  animation: liveBeaconAnim 1.3s infinite ease-in-out;
}

@keyframes liveBeaconAnim {

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

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

.banner-text {
  font-size: 0.94rem;
  font-weight: 500;
  color: #ffffff;
  line-height: 1.45;
  letter-spacing: 0.01em;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
  word-break: break-word;
}

.banner-text strong {
  font-weight: 700;
}

.banner-link-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.35rem 0.95rem;
  background: rgba(255, 255, 255, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 20px;
  color: #ffffff;
  font-size: 0.84rem;
  font-weight: 600;
  text-decoration: none;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  transition: all 0.2s ease;
  white-space: nowrap;
  flex-shrink: 0;
}

.banner-link-btn:hover {
  background: #ffffff;
  color: #111827;
  border-color: #ffffff;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
  transform: translateY(-1px);
}

.banner-link-btn i {
  font-size: 0.72rem;
  transition: transform 0.2s ease;
}

.banner-link-btn:hover i {
  transform: translateX(3px);
}

.banner-close-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  background: rgba(0, 0, 0, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 50%;
  color: rgba(255, 255, 255, 0.9);
  cursor: pointer;
  padding: 0;
  transition: all 0.22s ease;
  flex-shrink: 0;
}

.banner-close-btn:hover {
  background: rgba(0, 0, 0, 0.4);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.6);
  transform: rotate(90deg);
}

/* Subtle Pulse Glow */
.announcement-banner.banner-pulse {
  will-change: opacity;
  animation: bannerPulseGlow 3.5s infinite ease-in-out;
}

@keyframes bannerPulseGlow {

  0%,
  100% {
    opacity: 0.95;
  }

  50% {
    opacity: 1;
  }
}

@media (max-width: 768px) {
  .banner-container {
    padding: 0.6rem 0.85rem;
    gap: 0.65rem;
  }

  .banner-content {
    justify-content: flex-start;
    text-align: left;
    gap: 0.65rem;
  }

  .banner-text {
    font-size: 0.86rem;
  }

  .banner-link-btn {
    padding: 0.28rem 0.72rem;
    font-size: 0.78rem;
  }
}

/* ==========================================================
   Startseite Quality-of-Life & Visual Enhancements (v4.0)
   ========================================================== */

/* 1. Hero Dragon Glow & Floating Embers */
.hero {
  position: relative;
  overflow: hidden;
  transform: translate3d(0, 0, 0);
  backface-visibility: hidden;
}

/* Offscreen Animation Pausing: Stoppt alle CPU/GPU-Renderzyklen im Hero, sobald der Nutzer nach unten scrollt */
.hero.hero-offscreen .hero-dragon-glow,
.hero.hero-offscreen .hero-embers span,
.hero.hero-offscreen .fire-pulse,
.hero.hero-offscreen .hero-pulse-dot {
  animation-play-state: paused !important;
}

.hero-dragon-glow {
  position: absolute;
  top: 10%;
  left: -10%;
  width: 650px;
  height: 550px;
  background: radial-gradient(circle, rgba(255, 87, 34, 0.20) 0%, rgba(245, 158, 11, 0.10) 35%, rgba(245, 158, 11, 0.02) 60%, transparent 72%);
  pointer-events: none;
  z-index: 1;
  filter: blur(20px);
  transform: translate3d(0, 0, 0);
  backface-visibility: hidden;
  perspective: 1000px;
  will-change: transform, opacity;
  contain: strict;
  animation: dragonAuraPulse 7s infinite ease-in-out;
}

@keyframes dragonAuraPulse {

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

  50% {
    opacity: 0.55;
    transform: translate3d(20px, -15px, 0) scale(1.1);
  }
}

.hero-embers {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  overflow: hidden;
  transform: translate3d(0, 0, 0);
  backface-visibility: hidden;
}

.hero-embers span {
  position: absolute;
  bottom: 0;
  width: 4px;
  height: 4px;
  background: #ff7043;
  border-radius: 50%;
  box-shadow: 0 0 8px #ff5722, 0 0 14px #ffc107;
  transform: translate3d(0, 0, 0);
  backface-visibility: hidden;
  will-change: transform, opacity;
  animation: emberDrift 5s infinite ease-out;
  opacity: 0;
}

.hero-embers span:nth-child(1) {
  left: 15%;
  width: 3px;
  height: 3px;
  animation-duration: 4.8s;
  animation-delay: 0.2s;
}

.hero-embers span:nth-child(2) {
  left: 32%;
  width: 5px;
  height: 5px;
  animation-duration: 6.2s;
  animation-delay: 1.5s;
}

.hero-embers span:nth-child(3) {
  left: 52%;
  width: 4px;
  height: 4px;
  animation-duration: 5.5s;
  animation-delay: 0.7s;
}

.hero-embers span:nth-child(4) {
  left: 68%;
  width: 3px;
  height: 3px;
  animation-duration: 6.8s;
  animation-delay: 2.2s;
}

.hero-embers span:nth-child(5) {
  left: 82%;
  width: 4px;
  height: 4px;
  animation-duration: 5.2s;
  animation-delay: 1.1s;
}

.hero-embers span:nth-child(6) {
  left: 92%;
  width: 3px;
  height: 3px;
  animation-duration: 6.5s;
  animation-delay: 3.1s;
}

@keyframes emberDrift {
  0% {
    transform: translate3d(0, 0, 0) scale(0.6);
    opacity: 0;
  }

  20% {
    opacity: 0.85;
  }

  80% {
    opacity: 0.75;
  }

  100% {
    transform: translate3d(35px, -240px, 0) scale(0.2);
    opacity: 0;
  }
}

.fire-pulse {
  display: inline-block;
  filter: drop-shadow(0 0 6px rgba(255, 87, 34, 0.7));
  transform: translate3d(0, 0, 0);
  backface-visibility: hidden;
  will-change: transform, opacity;
  animation: flameFlicker 2.5s infinite ease-in-out;
}

@keyframes flameFlicker {

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

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

/* 2. Hero Keyboard Shortcuts Hint */
.hero-shortcuts-hint {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(14, 19, 31, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 0.4rem 0.95rem;
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  color: var(--text-secondary);
  margin-bottom: 1.85rem;
}

.hero-shortcuts-hint i {
  color: var(--secondary);
}

.hero-shortcuts-hint kbd {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  padding: 0.12rem 0.45rem;
  border-radius: 4px;
  font-weight: 700;
  font-size: 0.74rem;
  border: 1px solid rgba(255, 255, 255, 0.22);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
  font-family: inherit;
}

.hero-shortcuts-hint .sep {
  color: rgba(255, 255, 255, 0.25);
  font-size: 0.75rem;
}

/* 3. Hero Stats mit Icons & Count-Up */
.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
  padding-top: 1.6rem;
  border-top: 1px solid var(--border-color);
}

.hero-stats .stat-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.stat-icon-wrap {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: rgba(255, 87, 34, 0.12);
  border: 1px solid rgba(255, 87, 34, 0.25);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
  transition: all var(--transition-fast);
}

.stat-item:hover .stat-icon-wrap {
  background: rgba(255, 87, 34, 0.22);
  border-color: var(--primary);
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 4px 12px var(--primary-glow);
}

.stat-details {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

/* 4. Hero Quick-Play Card */
.hero-quickplay-card {
  position: relative;
  background: linear-gradient(155deg, rgba(24, 33, 50, 0.94) 0%, rgba(14, 19, 31, 0.96) 100%);
  border: 1px solid rgba(255, 87, 34, 0.28);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.55), 0 0 24px rgba(255, 87, 34, 0.12);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  max-width: 420px;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  transition: all var(--transition-fast);
}

.hero-quickplay-card:hover {
  border-color: var(--primary);
  box-shadow: 0 16px 42px rgba(0, 0, 0, 0.6), 0 0 28px rgba(255, 87, 34, 0.22);
  transform: translateY(-3px);
}

.hero-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.hero-card-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: var(--secondary);
  font-weight: 700;
  font-size: 0.88rem;
  letter-spacing: 0.02em;
}

.hero-pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 8px #10b981;
  transform: translate3d(0, 0, 0);
  backface-visibility: hidden;
  will-change: transform, opacity;
  animation: pulseGreenDot 2s infinite ease-in-out;
}

@keyframes pulseGreenDot {

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

  50% {
    transform: translate3d(0, 0, 0) scale(1.3);
    opacity: 0.6;
  }
}

.hero-quickplay-preview {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-md);
  overflow: hidden;
  cursor: pointer;
  background: #000;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.hero-quickplay-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.hero-quickplay-preview:hover img {
  transform: scale(1.05);
}

.hero-quickplay-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.25s ease;
}

.hero-quickplay-preview:hover .hero-quickplay-overlay {
  background: rgba(0, 0, 0, 0.15);
}

.hero-quickplay-play-btn {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  box-shadow: 0 0 20px var(--primary-glow);
  transition: transform var(--transition-fast), background var(--transition-fast);
}

.hero-quickplay-preview:hover .hero-quickplay-play-btn {
  transform: scale(1.15);
  background: var(--primary-hover);
}

.hero-quickplay-game {
  position: absolute;
  top: 8px;
  left: 8px;
  background: rgba(14, 19, 31, 0.88);
  color: var(--secondary);
  border: 1px solid rgba(255, 152, 0, 0.35);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.15rem 0.55rem;
  border-radius: var(--radius-full);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  pointer-events: none;
}

.hero-quickplay-duration {
  position: absolute;
  bottom: 8px;
  right: 8px;
  background: rgba(0, 0, 0, 0.85);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.15rem 0.45rem;
  border-radius: 4px;
  pointer-events: none;
}

.hero-quickplay-title {
  color: #fff;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.35;
  cursor: pointer;
  margin-bottom: 0.4rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color var(--transition-fast);
}

.hero-quickplay-title:hover {
  color: var(--primary-hover);
}

.hero-quickplay-desc {
  color: var(--text-secondary);
  font-size: 0.86rem;
  line-height: 1.5;
  margin: 0;
}

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

.hero-btn-play {
  justify-content: center;
  font-size: 0.9rem;
  padding: 0.65rem 1rem;
}

.hero-btn-reroll {
  justify-content: center;
  font-size: 0.88rem;
  padding: 0.65rem 0.85rem;
}

/* 5. Weiterschauen / Continue Watching Shelf */
.section-continue {
  background: linear-gradient(180deg, var(--bg-darker) 0%, rgba(14, 19, 31, 0.85) 100%);
  border-bottom: 1px solid var(--border-color);
  padding: 3rem 0;
  animation: fadeInDown 0.4s ease-out;
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-12px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.continue-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.5rem;
  margin-bottom: 1.75rem;
  flex-wrap: wrap;
}

.continue-title {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.35rem;
}

.continue-count-badge {
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.35);
  color: #10b981;
  font-size: 0.85rem;
  font-weight: 700;
  padding: 0.15rem 0.65rem;
  border-radius: var(--radius-full);
}

.continue-header-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-rail-nav {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.88rem;
  transition: all var(--transition-fast);
}

.btn-rail-nav:hover {
  background: var(--bg-card-hover);
  border-color: var(--primary);
  color: #fff;
  transform: scale(1.06);
}

.continue-all-link {
  padding: 0.5rem 0.95rem;
  font-size: 0.86rem;
}

.continue-rail-wrap {
  position: relative;
  overflow: hidden;
}

.continue-rail {
  display: flex;
  gap: 1.25rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 0.75rem;
  padding-top: 0.25rem;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 87, 34, 0.3) transparent;
}

.continue-rail::-webkit-scrollbar {
  height: 6px;
}

.continue-rail::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.2);
  border-radius: 3px;
}

.continue-rail::-webkit-scrollbar-thumb {
  background: rgba(255, 87, 34, 0.3);
  border-radius: 3px;
}

.continue-rail::-webkit-scrollbar-thumb:hover {
  background: var(--primary);
}

.continue-card {
  flex: 0 0 280px;
  scroll-snap-align: start;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
  cursor: pointer;
  transition: transform var(--transition-fast), border-color var(--transition-fast), box-shadow var(--transition-fast);
  display: flex;
  flex-direction: column;
}

.continue-card:hover {
  transform: translateY(-4px);
  border-color: var(--primary);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.45), 0 0 16px rgba(255, 87, 34, 0.16);
}

.continue-thumb-wrap {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #000;
  overflow: hidden;
}

.continue-thumb-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.continue-card:hover .continue-thumb-wrap img {
  transform: scale(1.05);
}

.continue-play-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity var(--transition-fast);
}

.continue-card:hover .continue-play-overlay {
  opacity: 1;
}

.continue-play-circle {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  box-shadow: 0 0 16px var(--primary-glow);
  transform: scale(0.85);
  transition: transform var(--transition-fast);
}

.continue-card:hover .continue-play-circle {
  transform: scale(1);
}

.continue-game-badge {
  position: absolute;
  top: 7px;
  left: 7px;
  background: rgba(14, 19, 31, 0.9);
  border: 1px solid;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.12rem 0.5rem;
  border-radius: var(--radius-full);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  pointer-events: none;
  max-width: calc(100% - 40px);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.continue-dismiss-btn {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.75);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  opacity: 0;
  transition: opacity var(--transition-fast), background var(--transition-fast);
  z-index: 4;
}

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

.continue-dismiss-btn:hover {
  background: #ef4444;
  border-color: #ef4444;
}

.continue-progress-track {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: rgba(0, 0, 0, 0.65);
  z-index: 3;
}

.continue-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--primary) 0%, #10b981 100%);
  box-shadow: 0 0 8px rgba(16, 185, 129, 0.7);
  transition: width 0.3s ease;
}

.continue-card-body {
  padding: 0.85rem 0.95rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.continue-time-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.74rem;
  font-weight: 600;
  color: var(--text-muted);
}

.continue-remaining {
  color: #10b981;
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.continue-card-title {
  color: #fff;
  font-size: 0.88rem;
  font-weight: 600;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin: 0;
}

/* 6. Spotlight Video Card Progress Bar */
.spotlight-progress-wrap {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.88) 0%, transparent 100%);
  padding: 0.6rem 0.85rem 0.6rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  z-index: 3;
}

.spotlight-progress-bar {
  height: 4px;
  background: linear-gradient(90deg, var(--primary) 0%, #10b981 100%);
  border-radius: 2px;
  box-shadow: 0 0 10px rgba(16, 185, 129, 0.8);
  transition: width 0.3s ease;
}

.spotlight-progress-text {
  font-size: 0.75rem;
  color: #10b981;
  font-weight: 700;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
}

/* 7. Home Grid Header & Mode Tabs */
.home-grid-header {
  align-items: center;
}

.home-header-controls {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.home-mode-tabs {
  display: inline-flex;
  background: rgba(14, 19, 31, 0.95);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 0.3rem;
  gap: 0.25rem;
}

.home-mode-tab-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.5rem 0.95rem;
  border-radius: var(--radius-sm);
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--text-secondary);
  background: transparent;
  border: 1px solid transparent;
  transition: all var(--transition-fast);
}

.home-mode-tab-btn:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.05);
}

.home-mode-tab-btn.active {
  background: linear-gradient(135deg, rgba(255, 87, 34, 0.2) 0%, rgba(245, 158, 11, 0.2) 100%);
  color: #fff;
  border-color: rgba(255, 87, 34, 0.45);
  box-shadow: 0 2px 10px rgba(255, 87, 34, 0.15);
}

.home-mode-tab-btn i {
  color: var(--secondary);
}

/* 8. Schnellsuche & Franchise Filter-Toolbar */
.home-filter-toolbar {
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
  margin-bottom: 2.25rem;
}

.home-search-wrap {
  position: relative;
  width: 100%;
  max-width: 580px;
}

.home-search-input {
  width: 100%;
  padding: 0.8rem 3.2rem 0.8rem 2.75rem;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  color: #fff;
  font-size: 0.95rem;
  font-family: inherit;
  transition: all var(--transition-fast);
  box-shadow: var(--shadow-sm);
}

.home-search-input:focus {
  border-color: var(--primary);
  background: var(--bg-surface);
  box-shadow: 0 0 0 3px rgba(255, 87, 34, 0.2);
  outline: none;
}

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

.home-search-shortcut {
  position: absolute;
  right: 0.85rem;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-muted);
  padding: 0.15rem 0.45rem;
  border-radius: 4px;
  font-size: 0.72rem;
  font-weight: 700;
  border: 1px solid rgba(255, 255, 255, 0.12);
  pointer-events: none;
}

.btn-clear-search {
  position: absolute;
  right: 0.85rem;
  top: 50%;
  transform: translateY(-50%);
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  cursor: pointer;
  transition: background var(--transition-fast);
}

.btn-clear-search:hover {
  background: rgba(255, 255, 255, 0.2);
}

.franchise-pills-bar {
  overflow-x: auto;
  padding-bottom: 0.35rem;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.15) transparent;
}

.franchise-pills-scroll {
  display: flex;
  gap: 0.6rem;
  align-items: center;
  flex-wrap: nowrap;
  min-width: max-content;
}

.franchise-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.42rem 0.85rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-full);
  color: var(--text-secondary);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
  white-space: nowrap;
}

.franchise-pill:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.22);
  color: #fff;
  transform: translateY(-1px);
}

.franchise-pill.active {
  background: rgba(255, 87, 34, 0.16);
  border-color: var(--pill-accent, var(--primary));
  color: #fff;
  box-shadow: 0 2px 10px rgba(255, 87, 34, 0.2);
}

.franchise-count {
  background: rgba(0, 0, 0, 0.35);
  padding: 0.1rem 0.45rem;
  border-radius: var(--radius-full);
  font-size: 0.7rem;
  color: var(--text-muted);
  font-weight: 700;
}

.franchise-pill.active .franchise-count {
  background: rgba(255, 87, 34, 0.3);
  color: #fff;
}

/* 9. Rolling 3D Dice Animation */
@keyframes rollDice3D {
  0% {
    transform: rotate(0deg) scale(1);
  }

  35% {
    transform: rotate(180deg) scale(1.25);
    color: var(--secondary);
  }

  70% {
    transform: rotate(320deg) scale(1.1);
  }

  100% {
    transform: rotate(360deg) scale(1);
  }
}

.rolling {
  animation: rollDice3D 0.7s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
}

/* 10. Responsive Optimierungen für Startseite & Mobile First */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 3rem;
  align-items: center;
}

@media (max-width: 960px) {
  .about-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

@media (max-width: 1024px) {
  .hero-content {
    flex-direction: column;
    align-items: stretch;
    gap: 2.5rem;
  }

  .hero-text {
    max-width: 100%;
  }

  .hero-quickplay-card {
    max-width: 100%;
  }

  .hero-stats {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }
}

@media (max-width: 768px) {
  .hero {
    padding: 2.5rem 0 2rem;
  }

  .hero-dragon-glow {
    width: 320px;
    height: 320px;
    left: -5%;
    top: 5%;
    filter: blur(35px);
  }

  .hero-title {
    font-size: clamp(1.85rem, 6.5vw, 2.3rem);
    line-height: 1.22;
  }

  .hero-description {
    font-size: 0.96rem;
    line-height: 1.6;
  }

  .hero-actions {
    flex-direction: column;
    gap: 0.75rem;
    width: 100%;
  }

  .hero-actions .btn-primary,
  .hero-actions .btn-outline {
    width: 100%;
    justify-content: center;
    min-height: 48px;
    font-size: 0.95rem;
  }

  .hero-shortcuts-hint {
    display: none;
  }

  .home-grid-header {
    flex-direction: column;
    align-items: stretch;
    gap: 1rem;
  }

  .home-header-controls {
    flex-direction: column;
    align-items: stretch;
    gap: 0.75rem;
  }

  .home-mode-tabs {
    width: 100%;
    justify-content: stretch;
  }

  .home-mode-tab-btn {
    flex: 1;
    justify-content: center;
    font-size: 0.82rem;
    padding: 0.5rem 0.65rem;
    min-height: 42px;
  }

  .home-search-wrap {
    max-width: 100%;
    width: 100%;
  }

  .continue-card {
    flex: 0 0 240px;
  }

  /* iOS Auto-Zoom Prevention: Alle Formular-Eingabefelder mindestens 16px */
  input,
  select,
  textarea,
  .form-control,
  .catalog-search-input,
  .home-search-input,
  .auth-form-input {
    font-size: 16px !important;
  }
}

@media (max-width: 640px) {

  /* Modals: Mobile-freundliche Full-Width Dialoge & Touch-Schließen */
  .modal-backdrop {
    padding: 0.5rem;
  }

  .modal-dialog {
    width: 100% !important;
    max-width: 100% !important;
    max-height: calc(100dvh - 1.25rem) !important;
    margin: 0 auto;
    border-radius: 18px;
  }

  .modal-header {
    padding: 0.85rem 1rem;
  }

  .modal-body {
    padding: 1rem;
  }

  .modal-close {
    width: 44px;
    height: 44px;
    min-width: 44px;
    min-height: 44px;
    font-size: 1.25rem;
  }

  .article-img-wrap,
  .article-full-img {
    height: 160px;
    max-height: 160px;
  }

  .article-content img {
    max-height: 200px;
  }

  .article-content {
    font-size: 0.96rem;
    line-height: 1.65;
  }

  .continue-rail {
    -webkit-overflow-scrolling: touch;
    scroll-padding: 0.75rem;
    padding-bottom: 0.5rem;
  }
}

@media (max-width: 480px) {
  .hero-stats {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.65rem;
    padding-top: 1.15rem;
  }

  .hero-stats .stat-item {
    padding: 0.5rem 0.35rem;
    gap: 0.55rem;
    min-width: 0;
  }

  .stat-icon-wrap {
    width: 36px;
    height: 36px;
    font-size: 0.95rem;
    border-radius: 10px;
  }

  .stat-val {
    font-size: 1.15rem;
  }

  .stat-lbl {
    font-size: 0.72rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .hero-quickplay-card {
    padding: 1.15rem 1rem;
    border-radius: 18px;
  }

  .hero-quickplay-actions {
    flex-direction: column;
    gap: 0.65rem;
  }

  .hero-btn-play,
  .hero-btn-reroll {
    width: 100%;
    justify-content: center;
    min-height: 44px;
  }

  .continue-card {
    flex: 0 0 215px;
  }

  .popular-series-tabs {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 2px;
  }

  .series-tab-btn {
    padding: 0.45rem 0.65rem;
    font-size: 0.78rem;
    white-space: nowrap;
  }
}

/* Touch Action Optimierung: Beseitigt den 300ms Klick-Delay auf Mobilgeräten */
button,
a,
input,
select,
textarea,
[role="button"],
.nav-link,
.series-tab-btn,
.home-mode-tab-btn,
.footer-chip,
.btn-primary,
.btn-outline,
.stream-tab-btn,
.stream-action-btn {
  touch-action: manipulation;
}

/* ==========================================================
   Kanal-News & Magazin-Bereich Upgrade (v4.1)
   ========================================================== */

/* 1. News Header & Filter Tabs */
.news-section-header {
  align-items: center;
}

.news-header-actions {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  flex-wrap: wrap;
}

/* News Schnellsuche */
.news-search-box {
  position: relative;
  display: flex;
  align-items: center;
  background: rgba(14, 19, 31, 0.95);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 0.38rem 0.85rem;
  transition: all var(--transition-fast);
  min-width: 200px;
}

.news-search-box:focus-within {
  border-color: var(--primary);
  box-shadow: 0 0 12px var(--primary-glow);
}

.news-search-icon {
  color: var(--text-muted);
  font-size: 0.82rem;
  margin-right: 0.5rem;
}

.news-search-input {
  background: transparent;
  border: none;
  outline: none;
  color: #fff;
  font-size: 0.85rem;
  width: 100%;
}

.news-search-input::placeholder {
  color: var(--text-muted);
}

.btn-clear-news-search {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 0.8rem;
  cursor: pointer;
  padding: 0 0.2rem;
  transition: color var(--transition-fast);
}

.btn-clear-news-search:hover {
  color: #fff;
}

.news-category-tabs {
  display: inline-flex;
  background: rgba(14, 19, 31, 0.95);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 0.28rem;
  gap: 0.25rem;
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.news-category-tabs::-webkit-scrollbar {
  display: none;
}

.news-tab-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.45rem 0.85rem;
  border-radius: var(--radius-sm);
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--text-secondary);
  background: transparent;
  border: 1px solid transparent;
  transition: all var(--transition-fast);
}

.news-tab-btn:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.05);
}

.news-tab-btn.active {
  background: linear-gradient(135deg, rgba(255, 87, 34, 0.22) 0%, rgba(245, 158, 11, 0.22) 100%);
  color: #fff;
  border-color: rgba(255, 87, 34, 0.45);
  box-shadow: 0 2px 10px rgba(255, 87, 34, 0.15);
}

.news-tab-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.12);
  color: var(--text-secondary);
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.1rem 0.45rem;
  border-radius: var(--radius-full);
  min-width: 18px;
  height: 18px;
  line-height: 1;
  transition: all var(--transition-fast);
}

.news-tab-btn.active .news-tab-count {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 0 8px rgba(255, 87, 34, 0.4);
}

.news-yt-community-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.95rem;
  font-size: 0.84rem;
  font-weight: 600;
}

/* ==========================================================================
   Modernes Kompaktes News-Layout & All-News Archiv (news.php & index.php)
   ========================================================================== */

/* 1. Kompaktes News Raster (Cards Grid) */
.news-compact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(310px, 1fr));
  gap: 1.5rem;
  width: 100%;
}

/* Auf der Startseite mit bis zu 3 Elementen: sauberes 3-Spalten-Layout auf Desktop */
#news-grid-container[data-mode="home"].news-compact-grid {
  grid-template-columns: repeat(auto-fit, minmax(310px, 1fr));
}

@media (min-width: 1024px) {
  #news-grid-container[data-mode="home"].news-compact-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Kompakte News-Karte */
.news-card-compact {
  display: flex;
  flex-direction: column;
  background: linear-gradient(160deg, rgba(22, 29, 45, 0.9) 0%, rgba(14, 19, 31, 0.96) 100%);
  border: 1px solid rgba(255, 87, 34, 0.22);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
  transition: transform var(--transition-fast), border-color var(--transition-fast), box-shadow var(--transition-fast);
  cursor: pointer;
  position: relative;
}

.news-card-compact:hover {
  transform: translateY(-4px);
  border-color: var(--primary);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.6), 0 0 25px rgba(255, 87, 34, 0.22);
}

.news-card-compact.is-pinned {
  border-color: rgba(245, 158, 11, 0.5);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45), 0 0 16px rgba(245, 158, 11, 0.15);
}

/* Kompaktes Thumbnail */
.news-compact-thumb-wrap {
  position: relative;
  aspect-ratio: 16 / 9;
  max-height: 180px;
  background: #090d16;
  overflow: hidden;
}

.news-compact-thumb-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}

.news-card-compact:hover .news-compact-thumb-wrap img {
  transform: scale(1.06);
}

.news-compact-thumb-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity var(--transition-fast);
  z-index: 2;
}

.news-card-compact:hover .news-compact-thumb-overlay {
  opacity: 1;
}

.news-compact-read-hint {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: var(--primary);
  color: #fff;
  font-size: 0.84rem;
  font-weight: 700;
  padding: 0.45rem 1rem;
  border-radius: var(--radius-full);
  box-shadow: 0 0 15px var(--primary-glow);
  transform: translateY(6px);
  transition: transform var(--transition-fast);
}

.news-card-compact:hover .news-compact-read-hint {
  transform: translateY(0);
}

/* Badges über dem Thumbnail */
.news-compact-badges {
  position: absolute;
  top: 10px;
  left: 10px;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-wrap: wrap;
  z-index: 3;
}

.news-compact-badges .badge-cat {
  font-size: 0.72rem;
  padding: 0.2rem 0.55rem;
}

.news-compact-badges .news-pin-badge {
  position: static;
  font-size: 0.72rem;
  padding: 0.2rem 0.55rem;
}

.news-compact-badges .news-unread-pill {
  font-size: 0.7rem;
  padding: 0.15rem 0.5rem;
}

/* Kompakte Karteninhalte */
.news-compact-body {
  padding: 1.15rem 1.25rem 1.25rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  min-width: 0;
}

.news-compact-meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.55rem;
  font-size: 0.78rem;
  color: var(--text-muted);
}

.news-author-tiny {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.news-compact-title {
  font-size: 1.15rem;
  font-weight: 750;
  line-height: 1.38;
  color: #fff;
  margin: 0 0 0.5rem 0;
  letter-spacing: -0.01em;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color var(--transition-fast);
  overflow-wrap: anywhere;
  word-break: break-word;
}

.news-card-compact:hover .news-compact-title {
  color: var(--text-accent);
}

.news-compact-teaser {
  font-size: 0.88rem;
  line-height: 1.55;
  color: var(--text-secondary);
  margin: 0 0 1rem 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.news-compact-footer {
  margin-top: auto;
  padding-top: 0.85rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.5rem;
}

.btn-compact-read {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: rgba(255, 87, 34, 0.12);
  color: var(--primary);
  border: 1px solid rgba(255, 87, 34, 0.35);
  border-radius: var(--radius-sm);
  padding: 0.42rem 0.85rem;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.btn-compact-read i {
  transition: transform var(--transition-fast);
}

.btn-compact-read:hover {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 0 12px var(--primary-glow);
}

.btn-compact-read:hover i {
  transform: translateX(3px);
}

/* 2. Dichte Listenansicht (.news-list-view) */
.news-list-view {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  width: 100%;
}

.news-list-item {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  background: linear-gradient(135deg, rgba(22, 29, 45, 0.75) 0%, rgba(14, 19, 31, 0.88) 100%);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: var(--radius-md);
  padding: 0.85rem 1.15rem;
  transition: all var(--transition-fast);
  cursor: pointer;
}

.news-list-item:hover {
  border-color: var(--primary);
  transform: translateX(4px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.45), 0 0 15px rgba(255, 87, 34, 0.15);
}

.news-list-item.is-pinned {
  border-color: rgba(245, 158, 11, 0.45);
}

.news-list-thumb-wrap {
  width: 125px;
  height: 75px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  position: relative;
  flex-shrink: 0;
  background: #090d16;
}

.news-list-thumb-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.news-pin-badge-mini {
  position: absolute;
  top: 5px;
  left: 5px;
  background: #f59e0b;
  color: #000;
  font-size: 0.65rem;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.news-list-content {
  flex-grow: 1;
  min-width: 0;
}

.news-list-meta {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 0.3rem;
  font-size: 0.76rem;
  color: var(--text-muted);
  flex-wrap: wrap;
}

.news-list-meta .badge-cat {
  font-size: 0.7rem;
  padding: 0.15rem 0.5rem;
}

.news-list-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: #fff;
  margin: 0 0 0.25rem 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: color var(--transition-fast);
}

.news-list-item:hover .news-list-title {
  color: var(--text-accent);
}

.news-list-teaser {
  font-size: 0.84rem;
  color: var(--text-secondary);
  margin: 0;
  white-space: normal;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.news-list-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}

/* 3. Startseite: News Bottom CTA */
.news-home-bottom-cta {
  margin-top: 2rem;
  background: linear-gradient(135deg, rgba(255, 87, 34, 0.09) 0%, rgba(14, 19, 31, 0.95) 100%);
  border: 1px solid rgba(255, 87, 34, 0.25);
  border-radius: var(--radius-md);
  padding: 1.25rem 1.75rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

.news-home-bottom-content {
  display: flex;
  align-items: center;
  gap: 1.15rem;
}

.news-home-bottom-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255, 87, 34, 0.15);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  flex-shrink: 0;
}

.news-home-bottom-text h4 {
  color: #fff;
  font-size: 1.05rem;
  font-weight: 700;
  margin: 0 0 0.25rem 0;
}

.news-home-bottom-text p {
  color: var(--text-secondary);
  font-size: 0.88rem;
  margin: 0;
  line-height: 1.45;
}

.news-home-bottom-btn {
  white-space: nowrap;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.65rem 1.25rem;
  font-size: 0.88rem;
}

/* 4. News Page (news.php) Header & Toolbar */
.news-page-hero {
  position: relative;
  padding: 4.5rem 0 2.5rem;
  background: radial-gradient(circle at 50% 0%, rgba(255, 87, 34, 0.12) 0%, rgba(11, 15, 25, 0) 70%);
  text-align: center;
  overflow: hidden;
}

.news-hero-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  z-index: 2;
}

.news-hero-badge {
  margin-bottom: 1rem;
}

.news-hero-title {
  margin-bottom: 1rem;
  max-width: 800px;
}

.news-hero-desc {
  max-width: 650px;
  margin: 0 auto 1.75rem;
  font-size: 1.05rem;
  color: var(--text-secondary);
  line-height: 1.65;
}

.news-hero-stats {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
}

.news-stat-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  background: rgba(22, 29, 45, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 0.5rem 1rem;
  border-radius: var(--radius-full);
  font-size: 0.88rem;
  color: #fff;
  backdrop-filter: blur(8px);
}

.news-stat-pill strong {
  color: var(--primary);
  font-size: 0.95rem;
}

/* News Toolbar */
.news-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  padding: 0.95rem 1.25rem;
  background: rgba(18, 24, 38, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: var(--radius-md);
  margin-bottom: 1.75rem;
  backdrop-filter: blur(10px);
}

.news-view-controls {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.news-sort-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.news-sort-icon {
  position: absolute;
  left: 10px;
  color: var(--text-muted);
  font-size: 0.8rem;
  pointer-events: none;
}

.news-sort-select {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #fff;
  padding: 0.45rem 0.85rem 0.45rem 2.1rem;
  border-radius: var(--radius-sm);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  outline: none;
  transition: all var(--transition-fast);
}

.news-sort-select:hover,
.news-sort-select:focus {
  border-color: var(--primary);
  background: rgba(255, 255, 255, 0.1);
}

.news-sort-select option {
  background: #0f1420;
  color: #fff;
}

.news-layout-toggles {
  display: inline-flex;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-sm);
  padding: 0.15rem;
  gap: 0.15rem;
}

.btn-layout-toggle {
  background: transparent;
  border: none;
  color: var(--text-muted);
  width: 32px;
  height: 32px;
  border-radius: var(--radius-xs);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.88rem;
  transition: all var(--transition-fast);
}

.btn-layout-toggle:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

.btn-layout-toggle.active {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 0 10px var(--primary-glow);
}

/* Treffermeta */
.news-results-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
  font-size: 0.84rem;
  color: var(--text-secondary);
  padding: 0 0.25rem;
}

/* Responsive News Anpassungen */
@media (max-width: 900px) {
  .news-home-bottom-cta {
    flex-direction: column;
    align-items: flex-start;
    padding: 1.25rem;
  }

  .news-home-bottom-btn {
    width: 100%;
    justify-content: center;
  }

  .news-list-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.85rem;
  }

  .news-list-thumb-wrap {
    width: 100%;
    height: 150px;
  }

  .news-list-title,
  .news-list-teaser {
    white-space: normal;
  }

  .news-list-actions {
    width: 100%;
    justify-content: flex-end;
  }
}

@media (max-width: 768px) {
  .news-toolbar {
    flex-direction: column;
    align-items: stretch;
    gap: 0.85rem;
  }

  .news-view-controls {
    justify-content: space-between;
  }

  .news-sort-wrap {
    flex-grow: 1;
  }

  .news-sort-select {
    width: 100%;
  }
}

.news-card-readtime {
  position: absolute;
  bottom: 8px;
  right: 8px;
  background: rgba(0, 0, 0, 0.85);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.15rem 0.5rem;
  border-radius: var(--radius-xs);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.news-empty-card {
  text-align: center;
  padding: 3.5rem 1.5rem;
  background: var(--bg-card);
  border: 1px dashed var(--border-color);
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.news-empty-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(255, 87, 34, 0.12);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
}

.news-empty-card h3 {
  color: #fff;
  font-size: 1.25rem;
  font-weight: 700;
  margin: 0;
}

.news-empty-card p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  max-width: 480px;
  margin: 0;
  line-height: 1.5;
}

.news-empty-actions {
  display: flex;
  gap: 0.75rem;
  margin-top: 0.5rem;
  flex-wrap: wrap;
  justify-content: center;
}

/* 4. YouTube Community Showcase Banner */
.news-community-showcase {
  margin-top: 2.25rem;
  background: linear-gradient(135deg, rgba(22, 29, 45, 0.9) 0%, rgba(15, 20, 32, 0.95) 100%);
  border: 1px solid rgba(255, 87, 34, 0.22);
  border-radius: var(--radius-lg);
  padding: 1.5rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.75rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  position: relative;
  overflow: hidden;
}

.news-community-showcase::before {
  content: '';
  position: absolute;
  top: -40px;
  right: -40px;
  width: 140px;
  height: 140px;
  background: radial-gradient(circle, rgba(255, 0, 0, 0.12) 0%, transparent 70%);
  pointer-events: none;
}

.community-showcase-left {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.community-showcase-avatar-wrap {
  position: relative;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  overflow: visible;
  flex-shrink: 0;
}

.community-showcase-avatar-wrap img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(255, 87, 34, 0.4);
}

.community-status-online {
  position: absolute;
  bottom: 2px;
  right: 2px;
  width: 14px;
  height: 14px;
  background: #10b981;
  border: 2px solid var(--bg-card);
  border-radius: 50%;
  box-shadow: 0 0 8px rgba(16, 185, 129, 0.7);
}

.community-showcase-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.3rem;
}

.community-showcase-title {
  color: #fff;
  font-size: 1.15rem;
  font-weight: 700;
  margin: 0 0 0.35rem 0;
}

.community-showcase-desc {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.5;
  margin: 0;
  max-width: 620px;
}

.community-showcase-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  white-space: nowrap;
  padding: 0.75rem 1.35rem;
  font-size: 0.9rem;
}

/* 5. Article Reader Modal (Modern Magazine Reader) */
.article-reader-dialog {
  width: 100%;
  max-width: 840px;
  min-width: 0;
  box-sizing: border-box;
  overflow-x: hidden;
  border-color: rgba(255, 87, 34, 0.35);
  box-shadow: 0 16px 50px rgba(0, 0, 0, 0.8), 0 0 32px rgba(255, 87, 34, 0.15);
  position: relative;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 87, 34, 0.35) rgba(0, 0, 0, 0.2);
}

.article-reader-dialog::-webkit-scrollbar {
  width: 7px;
}

.article-reader-dialog::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.25);
  border-radius: 4px;
}

.article-reader-dialog::-webkit-scrollbar-thumb {
  background: rgba(255, 87, 34, 0.35);
  border-radius: 4px;
}

.article-reader-dialog::-webkit-scrollbar-thumb:hover {
  background: var(--primary);
}

/* Lese-Fortschrittsbalken */
.article-progress-track {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
  z-index: 10;
  border-top-left-radius: var(--radius-lg);
  border-top-right-radius: var(--radius-lg);
}

.article-progress-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--primary) 0%, var(--secondary) 100%);
  box-shadow: 0 0 8px var(--primary-glow);
  transition: width 0.1s ease;
}

.article-reader-header {
  padding: 1.15rem 1.75rem;
  background: rgba(14, 19, 31, 0.75);
}

.article-modal-header-meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.article-read-time {
  color: var(--text-muted);
  font-size: 0.82rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.article-read-status {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.15rem 0.55rem;
  border-radius: var(--radius-full);
}

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

/* Textgröße Steuerung */
.article-font-controls {
  display: inline-flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-full);
  padding: 0.15rem;
  gap: 0.15rem;
}

.btn-font-size {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  font-size: 0.76rem;
  font-weight: 700;
  padding: 0.2rem 0.5rem;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.btn-font-size:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

/* Link teilen & Kopier-Toast */
.article-share-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.btn-copy-article-link {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  transition: all var(--transition-fast);
}

.btn-copy-article-link:hover {
  background: rgba(255, 87, 34, 0.2);
  border-color: var(--primary);
  color: #fff;
  transform: scale(1.08);
}

.article-copy-toast {
  position: absolute;
  bottom: -32px;
  right: 0;
  background: #10b981;
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-sm);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-4px);
  transition: all var(--transition-fast);
  z-index: 20;
}

.article-copy-toast.show {
  opacity: 1;
  transform: translateY(0);
}

.article-reader-body {
  padding: 2rem 2.25rem 2.25rem;
  max-height: calc(85vh - 75px);
  overflow-y: auto;
  overflow-x: hidden;
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
  overflow-wrap: anywhere;
  word-break: break-word;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 87, 34, 0.35) rgba(0, 0, 0, 0.2);
}

.article-reader-body::-webkit-scrollbar {
  width: 7px;
}

.article-reader-body::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.25);
  border-radius: 4px;
}

.article-reader-body::-webkit-scrollbar-thumb {
  background: rgba(255, 87, 34, 0.35);
  border-radius: 4px;
}

.article-reader-body::-webkit-scrollbar-thumb:hover {
  background: var(--primary);
}

.article-modal-title {
  font-size: 1.9rem;
  font-weight: 800;
  line-height: 1.25;
  color: #fff;
  letter-spacing: -0.02em;
  margin-bottom: 0.85rem;
  overflow-wrap: anywhere;
  word-break: break-word;
  max-width: 100%;
}

.article-modal-meta-bar {
  margin-bottom: 1.5rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.article-img-wrap {
  margin-bottom: 1.35rem;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
  max-height: 220px;
  background: #080c14;
}

.article-paragraph {
  font-size: 1.05rem;
  line-height: 1.85;
  color: #e2e8f0;
  margin-bottom: 1.4rem;
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: break-word;
  max-width: 100%;
}

/* Callout Box & Zitate im Artikel */
.article-callout-box {
  background: linear-gradient(135deg, rgba(255, 87, 34, 0.12) 0%, rgba(245, 158, 11, 0.06) 100%);
  border-left: 4px solid var(--primary);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  padding: 1.15rem 1.35rem;
  margin: 1.6rem 0;
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
  color: #f1f5f9;
  font-size: 0.98rem;
  line-height: 1.65;
  min-width: 0;
  overflow-wrap: anywhere;
  word-break: break-word;
  max-width: 100%;
  box-sizing: border-box;
}

.article-callout-icon {
  color: var(--secondary);
  font-size: 1.25rem;
  flex-shrink: 0;
  margin-top: 0.15rem;
}

.article-quote {
  border-left: 3px solid var(--secondary);
  padding: 0.75rem 1.25rem;
  margin: 1.4rem 0;
  font-style: italic;
  color: #cbd5e1;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  overflow-wrap: anywhere;
  word-break: break-word;
  max-width: 100%;
  box-sizing: border-box;
}

/* News & Markdown Callout Boxes */
.news-callout-box {
  display: flex;
  gap: 0.85rem;
  padding: 0.85rem 1.15rem;
  border-radius: 6px;
  margin: 1.2rem 0;
  line-height: 1.6;
  font-size: 0.95rem;
  min-width: 0;
  overflow-wrap: anywhere;
  word-break: break-word;
  max-width: 100%;
  box-sizing: border-box;
}

.news-callout-tip {
  background: rgba(245, 158, 11, 0.1);
  border-left: 3px solid #fbbf24;
  color: #fef3c7;
}

.news-callout-egg {
  background: rgba(168, 85, 247, 0.12);
  border-left: 3px solid #c084fc;
  color: #f3e8ff;
}

.news-callout-warn {
  background: rgba(239, 68, 68, 0.1);
  border-left: 3px solid #f87171;
  color: #fee2e2;
}

.news-callout-box strong.news-callout-title {
  font-weight: 700;
  margin-right: 0.25rem;
  display: inline;
}

.news-callout-tip strong.news-callout-title {
  color: #fef08a;
}

.news-callout-egg strong.news-callout-title {
  color: #f3e8ff;
}

.news-callout-warn strong.news-callout-title {
  color: #fee2e2;
}

/* Markdown Rendered Table */
.news-rendered-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
  word-break: normal;
  margin: 0.85rem 0;
}

.news-rendered-table th {
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 0.6rem 0.85rem;
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  font-weight: 700;
  text-align: left;
}

.news-rendered-table td {
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 0.6rem 0.85rem;
  color: var(--text-secondary);
  word-break: break-word;
}

/* Markdown Task Lists */
.article-task-list {
  list-style-type: none !important;
  padding-left: 0.25rem !important;
}

.article-task-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  list-style-type: none !important;
  margin-left: 0 !important;
}

.article-task-list input[type="checkbox"] {
  margin-top: 0.35rem;
  accent-color: var(--primary);
  flex-shrink: 0;
  cursor: default;
}

/* Code & Pre in Article Content */
.article-content pre {
  background: rgba(0, 0, 0, 0.55);
  padding: 0.85rem 1.15rem;
  border-radius: 6px;
  font-family: monospace;
  overflow-x: auto;
  max-width: 100%;
  box-sizing: border-box;
  border: 1px solid rgba(255, 255, 255, 0.08);
  margin: 1rem 0;
  white-space: pre-wrap;
  word-break: break-all;
}

.article-content code {
  font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace;
}

.article-list {
  margin: 1.2rem 0 1.4rem 1.5rem;
  color: #e2e8f0;
  line-height: 1.75;
  overflow-wrap: anywhere;
  word-break: break-word;
  max-width: 100%;
}

.article-list li {
  margin-bottom: 0.5rem;
}

/* Schriftgrößen-Varianten */
.article-reader-body.font-sm .article-paragraph,
.article-reader-body.font-sm .article-callout-box,
.article-reader-body.font-sm .news-callout-box {
  font-size: 0.92rem;
  line-height: 1.7;
}

.article-reader-body.font-lg .article-paragraph,
.article-reader-body.font-lg .article-callout-box,
.article-reader-body.font-lg .news-callout-box {
  font-size: 1.2rem;
  line-height: 1.95;
}

/* Artikel Blättern */
.article-nav-rail {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem 0;
  margin-top: 1.5rem;
  border-top: 1px dashed rgba(255, 255, 255, 0.1);
  border-bottom: 1px dashed rgba(255, 255, 255, 0.1);
}

.article-nav-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.article-modal-footer {
  margin-top: 2rem;
  padding-top: 1.75rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.article-footer-buttons {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.article-author-signature {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.author-avatar-wrap {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid var(--primary);
  box-shadow: 0 0 10px var(--primary-glow);
}

.author-avatar-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.author-name {
  font-size: 0.95rem;
  font-weight: 700;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.author-role {
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* 6. Responsive Anpassungen für News-Bereich */
@media (max-width: 900px) {
  .news-featured-card {
    grid-template-columns: 1fr;
  }

  .news-featured-content {
    padding: 1.5rem 1.75rem;
  }

  .news-featured-title {
    font-size: 1.35rem;
  }

  .news-community-showcase {
    flex-direction: column;
    align-items: flex-start;
    padding: 1.5rem;
  }

  .community-showcase-btn {
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 768px) {
  .news-section-header {
    flex-direction: column;
    align-items: stretch;
  }

  .news-header-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .news-search-box {
    width: 100%;
  }

  .news-category-tabs {
    width: 100%;
  }

  .news-tab-btn {
    flex: 1;
    justify-content: center;
    font-size: 0.8rem;
    padding: 0.4rem 0.5rem;
  }

  .news-yt-community-btn {
    width: 100%;
    justify-content: center;
  }

  .article-modal-title {
    font-size: 1.45rem;
  }

  .article-reader-body {
    padding: 1.25rem 1.25rem 1.5rem;
  }

  .article-paragraph {
    font-size: 0.98rem;
  }

  .article-modal-footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.25rem;
  }

  .article-footer-buttons {
    width: 100%;
    justify-content: space-between;
  }
}

/* ==========================================================================
   Zwei-Faktor-Authentifizierung (2FA / TOTP) Styles
   ========================================================================== */
.twofa-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.twofa-status-pill.active {
  background: rgba(16, 185, 129, 0.15);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.4);
  box-shadow: 0 0 12px rgba(16, 185, 129, 0.25);
}

.twofa-status-pill.inactive {
  background: rgba(239, 68, 68, 0.12);
  color: #fca5a5;
  border: 1px solid rgba(239, 68, 68, 0.35);
}

.twofa-status-banner {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 1.35rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  flex-wrap: wrap;
  transition: all 0.3s ease;
}

.twofa-status-banner.is-enabled {
  border-color: rgba(16, 185, 129, 0.3);
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.06), rgba(0, 0, 0, 0.25));
}

.twofa-status-banner.is-disabled {
  border-color: rgba(255, 87, 34, 0.25);
  background: linear-gradient(135deg, rgba(255, 87, 34, 0.05), rgba(0, 0, 0, 0.25));
}

.twofa-status-banner-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  flex-shrink: 0;
}

.twofa-status-banner.is-enabled .twofa-status-banner-icon {
  background: rgba(16, 185, 129, 0.18);
  color: #10b981;
  border: 1px solid rgba(16, 185, 129, 0.4);
  box-shadow: 0 4px 20px rgba(16, 185, 129, 0.3);
}

.twofa-status-banner.is-disabled .twofa-status-banner-icon {
  background: rgba(255, 87, 34, 0.15);
  color: #ff7043;
  border: 1px solid rgba(255, 87, 34, 0.35);
  box-shadow: 0 4px 20px rgba(255, 87, 34, 0.2);
}

.twofa-status-banner-info {
  flex: 1;
  min-width: 240px;
}

.twofa-status-banner-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: #fff;
  margin: 0 0 0.3rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.twofa-status-banner-desc {
  font-size: 0.88rem;
  color: var(--text-secondary);
  margin: 0 0 0.5rem;
  line-height: 1.5;
}

.twofa-status-meta-tags {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.twofa-meta-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.25rem 0.6rem;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.twofa-status-banner-actions {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-wrap: wrap;
}

/* Wizard Stepper im Einrichtungs-Modal */
.twofa-wizard-indicator {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.25rem 0.5rem;
  gap: 0.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(0, 0, 0, 0.2);
}

.twofa-step-item {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
  transition: all 0.25s ease;
}

.twofa-step-item.active {
  color: #fff;
}

.twofa-step-num {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 800;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.06);
  transition: all 0.25s ease;
}

.twofa-step-item.active .twofa-step-num {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: #fff;
  border-color: transparent;
  box-shadow: 0 0 12px rgba(255, 87, 34, 0.5);
}

.twofa-step-item.completed .twofa-step-num {
  background: #10b981;
  color: #fff;
  border-color: #10b981;
}

.twofa-step-line {
  flex: 1;
  max-width: 45px;
  height: 2px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 2px;
  transition: background 0.25s ease;
}

.twofa-step-line.active {
  background: var(--primary);
}

/* QR Code Box */
.twofa-qr-center-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  margin: 0.75rem 0;
}

.twofa-qr-frame {
  width: 200px;
  height: 200px;
  padding: 10px;
  background: #ffffff;
  border-radius: 14px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.twofa-qr-frame svg,
.twofa-qr-frame canvas,
.twofa-qr-frame img {
  width: 100% !important;
  height: 100% !important;
  display: block;
}

/* Manueller Schlüssel */
.twofa-secret-box {
  background: rgba(255, 255, 255, 0.03);
  border: 1px dashed rgba(255, 255, 255, 0.15);
  border-radius: 12px;
  padding: 0.85rem 1rem;
}

.twofa-secret-display-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.twofa-secret-code {
  font-family: 'Consolas', 'Courier New', monospace;
  font-size: 0.95rem;
  font-weight: 700;
  color: #00e5ff;
  letter-spacing: 0.12em;
  user-select: all;
  word-break: break-all;
}

/* TOTP 6-Ziffern Eingabefelder */
.totp-digits-grid {
  display: flex;
  justify-content: center;
  gap: 0.55rem;
  margin: 1.25rem 0;
}

.totp-digit-input {
  width: 48px;
  height: 56px;
  font-size: 1.65rem;
  font-weight: 700;
  text-align: center;
  border-radius: 12px;
  background: rgba(18, 18, 28, 0.85);
  border: 1.5px solid rgba(255, 255, 255, 0.15);
  color: #fff;
  transition: all 0.2s ease;
  caret-color: var(--primary);
  font-family: 'Consolas', 'Courier New', monospace;
}

.totp-digit-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 16px rgba(255, 87, 34, 0.45);
  outline: none;
  background: rgba(26, 26, 40, 0.95);
}

@media (max-width: 420px) {
  .totp-digit-input {
    width: 40px;
    height: 48px;
    font-size: 1.35rem;
  }

  .totp-digits-grid {
    gap: 0.35rem;
  }
}

/* Backup Codes Grid */
.twofa-backup-codes-box {
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  padding: 1.25rem;
}

.twofa-backup-codes-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.6rem;
  margin-bottom: 0.5rem;
}

@media (max-width: 480px) {
  .twofa-backup-codes-grid {
    grid-template-columns: 1fr;
  }
}

.twofa-backup-tile {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.6rem 0.85rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  font-family: 'Consolas', 'Courier New', monospace;
  font-size: 0.92rem;
  font-weight: 700;
  color: #fbbf24;
  letter-spacing: 0.08em;
}

.twofa-backup-tile .tile-num {
  font-size: 0.72rem;
  color: var(--text-muted);
  font-weight: 600;
}

/* 2FA / Passkey Modal Challenge Styles */
.auth-2fa-shield-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  margin: 0 auto 0.6rem auto;
  font-size: 2.2rem;
  background: transparent;
  filter: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  text-align: center;
}

#auth-2fa-shield-icon {
  display: inline-block;
  margin: 0 auto;
}

.auth-2fa-tag-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  font-size: 0.82rem;
  font-weight: 700;
  color: #cbd5e1;
  margin: 0 auto 0.4rem auto;
}

/* ==============================================================================
   WebAuthn & Passkey Authentication Design System
   ============================================================================== */

/* Hero Passkey Button im Login-Modal */
.auth-passkey-hero-section {
  margin-bottom: 1.25rem;
}

.btn-passkey-login {
  position: relative;
  width: 100%;
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.85rem 1.15rem;
  background: linear-gradient(135deg, rgba(0, 229, 255, 0.12), rgba(2, 132, 199, 0.08));
  border: 1px solid rgba(0, 229, 255, 0.4);
  border-radius: 14px;
  color: #fff;
  cursor: pointer;
  text-align: left;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
  box-shadow: 0 4px 18px rgba(0, 229, 255, 0.12);
}

.btn-passkey-login:hover {
  transform: translateY(-2px);
  border-color: #00e5ff;
  background: linear-gradient(135deg, rgba(0, 229, 255, 0.2), rgba(2, 132, 199, 0.14));
  box-shadow: 0 8px 26px rgba(0, 229, 255, 0.28);
}

.btn-passkey-login:active {
  transform: translateY(0);
}

.btn-passkey-login:focus-visible {
  outline: 2px solid #00e5ff;
  outline-offset: 2px;
}

.passkey-btn-glow {
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(0, 229, 255, 0.15) 0%, transparent 60%);
  pointer-events: none;
  opacity: 0.6;
  transition: opacity 0.3s;
}

.btn-passkey-login:hover .passkey-btn-glow {
  opacity: 1;
}

.passkey-btn-icon-wrap {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(0, 229, 255, 0.25), rgba(2, 132, 199, 0.35));
  border: 1px solid rgba(0, 229, 255, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  color: #00e5ff;
  flex-shrink: 0;
  box-shadow: 0 2px 10px rgba(0, 229, 255, 0.25);
  transition: transform 0.3s ease;
}

.btn-passkey-login:hover .passkey-btn-icon-wrap {
  transform: scale(1.08) rotate(3deg);
}

.passkey-btn-content {
  flex: 1;
  min-width: 0;
}

.passkey-btn-title {
  font-size: 0.98rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.01em;
  margin-bottom: 0.15rem;
}

.passkey-btn-desc {
  font-size: 0.78rem;
  color: var(--text-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.passkey-btn-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.3rem 0.65rem;
  border-radius: 20px;
  background: rgba(0, 229, 255, 0.18);
  border: 1px solid rgba(0, 229, 255, 0.35);
  color: #38bdf8;
  font-size: 0.74rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  flex-shrink: 0;
}

.auth-passkey-remember-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 0.65rem;
  padding: 0 0.35rem;
}

.auth-passkey-session-hint {
  font-size: 0.76rem;
  color: #38bdf8;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  opacity: 0.9;
  font-weight: 500;
}

/* Trennlinie mit Text */
.auth-divider-with-text {
  display: flex;
  align-items: center;
  text-align: center;
  margin: 1.15rem 0 0.85rem;
  color: var(--text-muted);
  font-size: 0.76rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.auth-divider-with-text::before,
.auth-divider-with-text::after {
  content: '';
  flex: 1;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.auth-divider-with-text span {
  padding: 0 0.85rem;
}

/* Status Pill */
.passkey-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.passkey-status-pill.active {
  background: rgba(0, 229, 255, 0.14);
  color: #00e5ff;
  border: 1px solid rgba(0, 229, 255, 0.35);
}

.passkey-status-pill.inactive {
  background: rgba(148, 163, 184, 0.12);
  color: #94a3b8;
  border: 1px solid rgba(148, 163, 184, 0.25);
}

/* Passkey List Items im Account-Bereich */
.passkey-items-grid {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.passkey-item-tile {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 1rem 1.15rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  transition: all 0.25s ease;
}

.passkey-item-tile:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(0, 229, 255, 0.3);
  transform: translateX(3px);
}

.passkey-tile-left {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  flex: 1;
  min-width: 220px;
}

.passkey-tile-icon {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: rgba(0, 229, 255, 0.12);
  border: 1px solid rgba(0, 229, 255, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #00e5ff;
  font-size: 1.25rem;
  flex-shrink: 0;
}

.passkey-tile-info {
  flex: 1;
}

.passkey-tile-title-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.2rem;
}

.passkey-tile-name {
  font-size: 0.96rem;
  font-weight: 700;
  color: #fff;
}

.passkey-tile-meta {
  font-size: 0.78rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.passkey-tile-meta span {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

.passkey-tile-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.passkey-action-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  color: var(--text-secondary);
  padding: 0.45rem 0.75rem;
  font-size: 0.8rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: all 0.2s ease;
}

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

.passkey-action-btn.delete-btn {
  color: #fca5a5;
  border-color: rgba(239, 68, 68, 0.3);
}

.passkey-action-btn.delete-btn:hover {
  background: rgba(239, 68, 68, 0.15);
  color: #ef4444;
  border-color: rgba(239, 68, 68, 0.5);
}

/* Empty State Card */
.passkey-empty-card {
  text-align: center;
  padding: 2.25rem 1.5rem;
  background: rgba(255, 255, 255, 0.02);
  border: 1px dashed rgba(255, 255, 255, 0.12);
  border-radius: 14px;
}

.passkey-empty-icon {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: rgba(0, 229, 255, 0.1);
  border: 1px solid rgba(0, 229, 255, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  color: #00e5ff;
  margin: 0 auto 1rem;
}

.passkey-empty-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.35rem;
}

.passkey-empty-desc {
  font-size: 0.88rem;
  color: var(--text-secondary);
  max-width: 480px;
  margin: 0 auto 1.25rem;
  line-height: 1.5;
}

/* Guest Button */
.btn-passkey-guest {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.75rem 1.4rem;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(0, 229, 255, 0.18), rgba(2, 132, 199, 0.15));
  border: 1px solid rgba(0, 229, 255, 0.45);
  color: #00e5ff;
  font-size: 0.92rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.25s ease;
  box-shadow: 0 4px 14px rgba(0, 229, 255, 0.15);
}

.btn-passkey-guest:hover {
  background: linear-gradient(135deg, rgba(0, 229, 255, 0.3), rgba(2, 132, 199, 0.25));
  border-color: #00e5ff;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 229, 255, 0.3);
}

/* ==============================================================================
   Hardware-Beschleunigung & CPU-Last-Reduzierung (GPU Compositor Optimization)
   ============================================================================== */
.gpu-accelerated,
.modal-dialog,
.auth-modal-dialog,
.cinema-modal-dialog,
.stream-modal-card {
  transform: translate3d(0, 0, 0);
  backface-visibility: hidden;
  perspective: 1000px;
}

/* Glatte 60fps GPU-Scroll-Beschleunigung für fließende Container */
.video-grid,
.news-grid,
.continue-rail {
  transform: translate3d(0, 0, 0);
  backface-visibility: hidden;
}

/* Optimierte Bild-Rendering-Pipeline */
img[loading="lazy"] {
  content-visibility: auto;
}