/* main.css - Extracted from index.php */
/* Generated: 2026-02-19 */

/* ============================================================ */
/* main-styles (originally lines 4838-11646) */
/* ============================================================ */

    /* Version: 2.0 - Ribbon Update - DO NOT CACHE */
    :root{
      --aurora-strength: 0.8;
      --grain-strength: 0.02;

      color-scheme: dark;

      /* Player Docking (Bottom fix) */
      --player-bottom: 26px; 
      --player-top: auto;   
      --player-space: 0px;

      /* Colors */
      --bg0:#07090d;
      --bg1:#0b1020;

      --text:rgba(255,255,255,.92);
      --muted:rgba(255,255,255,.70);
      --faint:rgba(255,255,255,.48);

      --accent:rgba(124,92,255,.95);
      --accentBorder:rgba(124,92,255,.55);

      --shadow:0 18px 60px rgba(0,0,0,.55);
      --r-lg:22px;
      --r-md:14px;
      
      --color-watched: #2ecc71; /* Grün für Haken */
      
      /* NEU: Timer/Autoplay Colors */
      --color-autoplay: #f39c12;
      --color-autoplay-bg: rgba(243, 156, 18, 0.12);
      --color-autoplay-border: rgba(243, 156, 18, 0.45);
      
      /* Scroll to top button */
      --scroll-btn-size: 56px;
    }

    *{box-sizing:border-box}

    html {
      overflow-x: hidden !important;
      width: 100%;
      background: #07090d;
      color-scheme: dark;
    }

    body{
      position: relative;
      margin:0;
      min-height:100vh;
      padding:28px 20px;
      font-family:system-ui,-apple-system,"Segoe UI",Roboto,Arial;
      color:var(--text);
      background:
        radial-gradient(1100px 650px at 20% 10%, rgba(124,92,255,.18), transparent 55%),
        radial-gradient(900px 600px at 80% 20%, rgba(0,194,255,.10), transparent 60%),
        radial-gradient(900px 600px at 50% 90%, rgba(255,255,255,.06), transparent 55%),
        linear-gradient(180deg, var(--bg1), var(--bg0));
      background-attachment: fixed;
      overflow-x: hidden !important;
      width: 100%;
    }

/* ===== Background Enhancements: OPTION 1 (Aurora) + OPTION 2 (Noise) ===== */
body::before{
  content:"";
  position: fixed;
  inset: -20%;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(600px 400px at 20% 20%, rgba(124,92,255,.35), transparent 60%),
    radial-gradient(700px 500px at 80% 30%, rgba(0,194,255,.28), transparent 65%),
    radial-gradient(600px 400px at 50% 80%, rgba(255,255,255,.08), transparent 60%);
  filter: blur(60px);
  opacity: var(--aurora-strength);;
}

body::after{
  filter: opacity(var(--grain-strength));
  content:"";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;

  /* Subtle film grain for more realistic glass */
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='120' height='120' filter='url(%23n)' opacity='0.035'/%3E%3C/svg%3E");
  opacity: 1;
  mix-blend-mode: overlay;
}


    /* Dark scrollbar */
    *{
      scrollbar-width: thin;
      scrollbar-color: rgba(255,255,255,.18) rgba(0,0,0,.28);
    }
    ::-webkit-scrollbar{ width: 10px; height: 10px; }
    ::-webkit-scrollbar-track{ background: rgba(0,0,0,.28); border-radius: 999px; }
    ::-webkit-scrollbar-thumb{
      background: rgba(255,255,255,.18);
      border-radius: 999px;
      border: 2px solid rgba(0,0,0,.28);
    }
    ::-webkit-scrollbar-thumb:hover{ background: rgba(255,255,255,.26); }

    /* Platz im Container wenn Player offen */
    body.player-open .glass-container{
      /* Padding unten, basierend auf Player-Höhe */
      padding-bottom: calc(26px + var(--player-space));
      padding-top: 26px; /* Sicherstellen, dass oben nur normaler Abstand ist */
    }

    /* Dezember Sterne (HINTER Glass) */
    #december-stars{
      position: fixed;
      inset: 0;
      pointer-events: none;
      z-index: -1; /* NEGATIV - Hinter allem */
      overflow: hidden;
    }
    .star{
      position: absolute;
      top: -20px;
      width: 2px;
      height: 2px;
      border-radius: 999px;
      background: rgba(255,255,255,.9);
      box-shadow: 
        0 0 6px rgba(255,255,255,.6),
        0 0 12px rgba(255,255,255,.3);
      opacity: .85;
      animation: starFall linear forwards, starTwinkle 3s ease-in-out infinite;
    }
    .star::after{
      content:"";
      position:absolute;
      left: 2px;
      top: 0;
      width: 30px;
      height: 1px;
      background: linear-gradient(90deg, 
        rgba(255,255,255,.5), 
        transparent);
      opacity: .5;
    }
    .star:nth-child(7n){
      width: 2.5px;
      height: 2.5px;
      box-shadow: 
        0 0 8px rgba(255,255,255,.7),
        0 0 14px rgba(255,255,255,.35);
    }
    @keyframes starFall{
      to{
        transform: translateY(110vh) translateX(var(--drift));
        opacity: 0;
      }
    }
    @keyframes starTwinkle{
      0%, 100% { opacity: .85; }
      50% { opacity: .4; }
    }

    /* ===== SILVESTER FEUERWERK (31.12) ===== */
    #fireworks-canvas {
      position: fixed;
      inset: 0;
      pointer-events: none;
      z-index: 1;
      background: transparent;
    }
    
    .firework-message {
      position: fixed;
      font-size: 2.5rem;
      font-weight: 800;
      pointer-events: none;
      white-space: nowrap;
      transform: translate(-50%, -50%) rotate(var(--rotation, 0deg));
      animation: messageAppear 4s ease-out forwards;
      z-index: 999998;
    }
    
    @media (max-width: 600px) {
      .firework-message {
        font-size: 1.5rem;
      }
    }
    
    @keyframes spin {
      from { transform: rotate(0deg); }
      to { transform: rotate(360deg); }
    }
    
    @keyframes pulse {
      0%, 100% { 
        opacity: 1; 
        transform: scale(1); 
      }
      50% { 
        opacity: 0.5; 
        transform: scale(1.1); 
      }
    }
    
    @keyframes fadeIn {
      from {
        opacity: 0;
      }
      to {
        opacity: 1;
      }
    }
    
    @keyframes messageAppear {
      0% {
        opacity: 0;
        transform: translate(-50%, -50%) rotate(var(--rotation, 0deg)) scale(0.5);
      }
      15% {
        opacity: 1;
        transform: translate(-50%, -50%) rotate(var(--rotation, 0deg)) scale(1.1);
      }
      25% {
        transform: translate(-50%, -50%) rotate(var(--rotation, 0deg)) scale(1);
      }
      75% {
        opacity: 1;
      }
      100% {
        opacity: 0;
        transform: translate(-50%, -50%) rotate(var(--rotation, 0deg)) scale(1.2) translateY(-20px);
      }
    }

    /* HEADER / BRAND */
    .site-header{
      text-align:center;
      margin: -20px auto 0; /* Logo höher positioniert */
      position: relative;
      z-index: 10;
    }
    
/* === AUTH-HEADER CONTAINER STYLE: GLASS LEISTE === */
    .auth-info-container {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 12px;
        
        margin: 20px auto 26px;
        padding: 16px 24px;
        max-width: 1040px;
        
        border-radius: var(--r-md);
        
        /* KORREKTUR: Hintergrund dunkler und satter */
        background: linear-gradient(180deg, rgba(14, 16, 26, .70), rgba(8, 10, 18, .55)); 
        
        /* KORREKTUR: Milchiger Border (etwas dunkler, damit er edler wirkt) */
        border: 1px solid rgba(255,255,255,.08); 
        
        /* Milchigkeit beibehalten */
        backdrop-filter: blur(2px) saturate(180%);
        -webkit-backdrop-filter: blur(2px) saturate(180%);
        
        /* KORREKTUR: Dunklerer, prominenterer Schatten */
        box-shadow: 0 18px 60px rgba(0,0,0,.45); 
        
        position: relative;
        z-index: 10;
        isolation: isolate;
    }
    
    /* Subtiler Glow-Effekt */
    .auth-info-container::before {
        content: "";
        position: absolute;
        inset: -2px;
        /* Hauch von Akzentfarbe von oben, sehr subtil */
        background: radial-gradient(600px 200px at 50% 0%, rgba(124,92,255,.05), transparent 70%);
        border-radius: var(--r-md);
        pointer-events: none;
        z-index: -1;
    }
    
    .auth-info-container > * {
        position: relative;
        z-index: 1;
    }
    
    .auth-info-container > strong,
    .auth-info-container > span {
        flex-shrink: 0;
        color: var(--text);
        font-weight: 500;
    }
    
    .auth-info-container .button-group {
        margin: 0;
        display: flex;
        gap: 10px;
        flex-wrap: wrap;
        justify-content: center;
        flex-shrink: 0;
        align-items: center;
        flex-wrap: wrap;
        position: relative; /* Für absolut positionierten Schneemann */
    }
    
    @media (max-width: 768px) {
        .auth-info-container {
            padding: 14px 16px !important;
            gap: 12px !important;
            margin: 15px auto 20px !important;
        }
        
        .auth-info-container .button-group {
            gap: 8px;
            width: 100%;
            justify-content: center;
        }
        
        .auth-info-container a.glass-btn, .auth-info-container button.glass-btn {
            font-size: 0.82rem !important;
            padding: 8px 12px !important;
        }
        
        .btn-badge {
            min-width: 18px !important;
            height: 18px !important;
            font-size: 10px !important;
        }
        
        /* Welcome Title auf Mobile - größer, einzeilig, MITTIG */
        #welcome-title {
            font-size: 1.12rem !important;
            margin: 0 0 12px !important;
            line-height: 1.2 !important;
            font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
            letter-spacing: -0.5px !important;
            white-space: nowrap !important;
            text-align: center !important;
        }
        
        /* Mobile: Rolle kleiner damit alles in eine Zeile passt */
        .auth-user-text {
            font-size: 0.9rem;
        }
        .auth-info-container .role-tag {
            font-size: 0.6rem !important;
            padding: 3px 8px !important;
            margin-left: 6px !important;
        }
        .auth-avatar {
            width: 36px !important;
            height: 36px !important;
        }
        .auth-user {
            gap: 10px !important;
        }
    }
    
    /* Kleine Screens: noch kompakter */
    @media (max-width: 480px) {
        .auth-info-container a.glass-btn, .auth-info-container button.glass-btn {
            font-size: 0.78rem !important;
            padding: 7px 10px !important;
        }
        
        .btn-icon {
            font-size: 0.9rem;
        }
        
        .auth-user-text {
            font-size: 0.85rem;
        }
        .auth-info-container .role-tag {
            font-size: 0.55rem !important;
            padding: 2px 6px !important;
        }
    }
    
    .auth-info-container a.glass-btn, .auth-info-container button.glass-btn { 
        font-size: 0.88rem; 
        width: auto; 
        padding: 9px 16px; 
        display: inline-block;
        white-space: nowrap;
        margin: 0;
        font-weight: 500;
    }
    
    .auth-info-container .role-tag {
        font-size: 0.75rem;
        padding: 5px 12px;
        border-radius: 999px;
        margin-left: 8px;
        font-weight: 600;
        letter-spacing: 0.05em;
        text-transform: uppercase;
    }
	
	/* ===== Avatar im Header (Auth-Leiste) ===== */
.auth-user{
  display:flex;
  align-items:center;
  gap: 14px;
  text-decoration:none;
  color: inherit;
}

.auth-avatar{
  width: 42px;
  height: 42px;
  border-radius: 50%;
  object-fit: cover;

  border: 2px solid var(--accentBorder);
  box-shadow: 0 6px 18px rgba(0,0,0,.35);
  background: rgba(255,255,255,.08);
}

/* Upload Benachrichtigungs-Badge am Avatar */
.avatar-wrapper {
    position: relative;
    display: inline-block;
}
.notification-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #ff3b30;
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    min-width: 18px;
    height: 18px;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 5px;
    line-height: 1;
    box-sizing: border-box;
    box-shadow: 0 2px 6px rgba(255, 59, 48, 0.5);
    font-family: inherit;
    pointer-events: none;
    z-index: 1;
    white-space: nowrap;
}

/* Badge an der Admin-Pille */
.admin-pill-badge {
    position: absolute;
    top: -6px;
    right: -6px;
    background: #ff3b30;
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    min-width: 18px;
    height: 18px;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 5px;
    line-height: 1;
    box-sizing: border-box;
    box-shadow: 0 2px 6px rgba(255, 59, 48, 0.5);
    font-family: inherit;
    pointer-events: none;
    z-index: 1;
    white-space: nowrap;
}
@media (max-width: 600px) {
    .admin-pill-badge {
        left: calc(100% + 4px);
        right: auto;
        top: 50%;
        transform: translateY(-55%);
    }
    .auth-info-container .role-tag.role-admin {
        margin-right: 14px !important;
    }
}

/* Badge für Buttons */
.btn-wrapper {
    position: relative;
    display: inline-block;
}
.btn-badge {
    position: absolute;
    top: -6px;
    right: -6px;
    background: #ff3b30;
    color: white;
    font-size: 11px;
    font-weight: 600;
    min-width: 18px;
    height: 18px;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 5px;
    border: 2px solid var(--bg0);
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", sans-serif;
    line-height: 1;
    box-sizing: border-box;
    z-index: 10;
}

.auth-user-text{
  display:flex;
  align-items:center;
  flex-wrap: wrap;
  gap: 6px;
}

    
    /* DEFINITION DER ROLLENFARBEN */
    .role-admin {
        background: linear-gradient(135deg, rgba(231, 76, 60, 0.20), rgba(231, 76, 60, 0.12)); /* ROT */
        color: #e74c3c;
        border: 1px solid rgba(231, 76, 60, 0.45);
        box-shadow: 0 4px 12px rgba(231, 76, 60, 0.15);
    }
    /* Admin-Pille: overflow visible damit der Badge außen sichtbar bleibt */
    .auth-info-container .role-tag.role-admin {
        overflow: visible !important;
    }
    .role-bot { 
        background: linear-gradient(135deg, rgba(155, 89, 182, 0.20), rgba(155, 89, 182, 0.12)); /* LILA */
        color: #9b59b6; 
        border: 1px solid rgba(155, 89, 182, 0.45);
        box-shadow: 0 4px 12px rgba(155, 89, 182, 0.15);
    }
    .role-moderator { 
        background: linear-gradient(135deg, rgba(16, 185, 129, 0.20), rgba(16, 185, 129, 0.12)); /* GRÜN */
        color: #ffffff; /* WEIß */
        border: 1px solid rgba(16, 185, 129, 0.45);
        box-shadow: 0 4px 12px rgba(16, 185, 129, 0.15);
    }
    .role-member { 
        background: linear-gradient(135deg, rgba(241, 196, 15, 0.20), rgba(241, 196, 15, 0.12)); /* GELB */
        color: #f1c40f; 
        border: 1px solid rgba(241, 196, 15, 0.45);
        box-shadow: 0 4px 12px rgba(241, 196, 15, 0.15);
    }
    .role-donor { 
        /* FIX: FINAL Donor-Farbe (Cyan/Hellblau) */
        background: linear-gradient(135deg, rgba(0, 194, 255, 0.20), rgba(0, 150, 200, 0.12)); 
        color: #00BFFF; 
        border: 1px solid rgba(0, 194, 255, 0.45);
        box-shadow: 0 4px 12px rgba(0, 194, 255, 0.15);
    }
    .role-user { 
        background: linear-gradient(135deg, rgba(255, 255, 255, 0.10), rgba(255, 255, 255, 0.05)); /* Subtil/Normal */
        color: var(--text); 
        border: 1px solid rgba(255, 255, 255, 0.35);
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    }
    
    /* GLASS-BUTTON STYLES FÜR AUTH */
    .glass-btn.btn-login {
        background: rgba(46, 204, 113, .12); /* Green */
        border-color: rgba(46, 204, 113, .45);
        color: rgba(255, 255, 255, .95);
    }
    .glass-btn.btn-login:hover {
        background: rgba(46, 204, 113, .16);
        border-color: rgba(46, 204, 113, .65);
    }
    .glass-btn.btn-logout {
        background: rgba(231, 76, 60, .12); /* Red */
        border-color: rgba(231, 76, 60, .45);
        color: rgba(255, 255, 255, .95);
    }
    .glass-btn.btn-logout:hover {
        background: rgba(231, 76, 60, .16);
        border-color: rgba(231, 76, 60, .65);
    }
    .glass-btn.btn-admin {
        background: rgba(243, 156, 18, .12); /* Orange (Admin Panel) */
        border-color: rgba(243, 156, 18, .45);
        color: rgba(255, 255, 255, .95);
    }
    .glass-btn.btn-admin:hover {
        background: rgba(243, 156, 18, .16);
        border-color: rgba(243, 156, 18, .65);
    }
    /* Mein Konto Button Style */
    .glass-btn.btn-account {
        background: rgba(124, 92, 255, .12); /* Violett */
        border-color: rgba(124, 92, 255, .45);
        color: rgba(255, 255, 255, .95);
    }
    .glass-btn.btn-account:hover {
        background: rgba(124, 92, 255, .16);
        border-color: rgba(124, 92, 255, .65);
    }
    
    /* Nachrichten Button Style */
    .glass-btn.btn-messages {
        background: rgba(52, 152, 219, .12); /* Blau */
        border-color: rgba(52, 152, 219, .45);
        color: rgba(255, 255, 255, .95);
    }
    .glass-btn.btn-messages:hover {
        background: rgba(52, 152, 219, .16);
        border-color: rgba(52, 152, 219, .65);
    }
    
    /* Timer/Autoplay Button Style */
    .glass-btn.btn-autoplay {
        background: var(--color-autoplay-bg);
        border-color: var(--color-autoplay-border);
        color: var(--color-autoplay);
        transition: transform .15s ease, background .2s ease, border-color .2s ease, opacity .2s ease;
    }
    .glass-btn.btn-autoplay:hover {
        background: rgba(243, 156, 18, .16);
        border-color: rgba(243, 156, 18, .65);
    }
    .glass-btn.btn-autoplay[data-active="true"] {
        background: rgba(46, 204, 113, .16); /* Grün, wenn aktiv */
        border-color: rgba(46, 204, 113, .65);
        color: #2ecc71;
    }
    /* NEU: Sequenz-Status - explizit zurücksetzen wenn nicht aktiv */
    .glass-btn.btn-autoplay[data-sequence-active="false"] {
        background: var(--color-autoplay-bg) !important;
        border-color: var(--color-autoplay-border) !important;
    }

    /* Autoplay Modal Styling */
    .autoplay-modal-overlay {
        position: fixed;
        top: 0; left: 0; right: 0; bottom: 0;
        background: rgba(0, 0, 0, 0.75);
        backdrop-filter: blur(8px);
        z-index: 10000;
        display: none;
        justify-content: center;
        align-items: center;
    }
    .autoplay-modal {
        padding: 30px;
        border-radius: var(--r-lg);
        background: transparent;
        border: 1px solid rgba(255,255,255,.15);
        backdrop-filter: blur(24px) saturate(180%);
        -webkit-backdrop-filter: blur(24px) saturate(180%);
        width: 90%;
        max-width: 450px;
        box-shadow: var(--shadow);
        color: var(--text);
    }
    .autoplay-modal h3 {
        margin: 0 0 20px;
        font-size: 1.5rem;
        font-weight: 700;
        color: var(--accent);
        text-align: center;
    }
    .modal-group {
        margin-bottom: 20px;
    }
    .modal-group label {
        display: block;
        margin-bottom: 8px;
        font-weight: 600;
        color: var(--muted);
    }
    .modal-group select, .modal-group input[type="number"] {
        width: 100%;
        padding: 10px 12px;
        border-radius: 10px;
        border: 1px solid rgba(255,255,255,.14);
        background: rgba(255,255,255,.08);
        color: var(--text);
        font-size: 1rem;
        outline: none;
    }
    .modal-buttons {
        display: flex;
        justify-content: space-between;
        gap: 10px;
        margin-top: 20px;
        padding-bottom: 10px; /* Extra padding für Mobile */
    }
    .modal-buttons button {
        flex-grow: 1;
        padding: 12px;
        font-size: 1rem;
    }
    
    /* Mobile: Kleinere Buttons und Modal anpassen */
    @media (max-width: 600px) {
      .autoplay-modal-overlay {
        padding: 0;
        align-items: stretch;
        overflow: hidden;
        z-index: 999999 !important;
        overscroll-behavior: contain;
        background: none;
        backdrop-filter: none;
      }

      .autoplay-modal {
        width: 100%;
        max-width: 100%;
        min-height: 100%;
        max-height: none;
        margin: 0;
        border-radius: 0;
        border: none;
        padding: 24px 20px 0;
        box-sizing: border-box;
        position: relative;
        z-index: 1000000;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        overflow-x: hidden;
        background: linear-gradient(180deg, rgba(15,17,26,1), rgba(10,12,20,1));
        backdrop-filter: none;
        box-shadow: none;
      }
      
      /* Verhindere dass Inhalte über Buttons gehen */
      .modal-group {
        position: relative;
        z-index: 1;
      }
      
      .modal-buttons {
        position: sticky !important;
        bottom: 0 !important;
        left: 0 !important;
        right: 0 !important;
        background: linear-gradient(180deg, rgba(20,22,32,.98), rgba(12,14,22,.95)) !important;
        border-top: 1px solid rgba(255,255,255,.2);
        padding: 15px !important;
        padding-bottom: max(15px, env(safe-area-inset-bottom)) !important;
        margin: 0 -20px !important;
        z-index: 1000001 !important;
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
        pointer-events: auto !important;
        display: flex !important;
        gap: 10px;
        box-shadow: 0 -4px 20px rgba(0,0,0,0.3);
        -webkit-transform: translateZ(0);
        transform: translateZ(0);
      }
      
      .modal-buttons button {
        flex: 1 !important;
        padding: 14px 8px !important;
        font-size: 0.95rem !important;
        pointer-events: auto !important;
        position: relative !important;
        z-index: 1000002 !important;
        cursor: pointer !important;
        touch-action: manipulation !important;
        -webkit-tap-highlight-color: rgba(124,92,255,0.2);
        min-height: 48px;
        -webkit-appearance: none;
        border-radius: 8px;
      }
    }
    
    .btn-save-timer {
        background: rgba(46, 204, 113, .12);
        border-color: rgba(46, 204, 113, .45);
    }
    .btn-save-timer:hover {
        background: rgba(46, 204, 113, .16);
    }
    .btn-cancel-timer {
        background: rgba(255,255,255,.08);
        border-color: rgba(255,255,255,.14);
    }
    /* Anzeige des aktiven Timers im Sticky Player */
    #sticky-kicker[data-timer-active="true"] {
        color: var(--color-autoplay);
        font-weight: 700;
    }
    
.logo-wrap{
  display:inline-block;
  position:relative;
  border-radius: 26px;
  padding: 10px;
  isolation: isolate; /* wichtig: Glow bleibt hinter dem Logo */
}
    .logo-wrap::before{
      content:"";
      position:absolute;
      inset:-18px;
      border-radius: 28px;
      background:
        radial-gradient(closest-side, rgba(124,92,255,.35), transparent 70%),
        radial-gradient(closest-side at 70% 30%, rgba(0,194,255,.18), transparent 65%);
      filter: blur(10px);
      opacity: .85;
      pointer-events:none;
    }
    
    /* Jahre Corner Ribbon Banner - Glass Effect */
    .years-badge-corner {
      position: absolute !important;
      top: 24px !important;
      left: -32px !important;
      background: linear-gradient(135deg, rgba(124,92,255,.35), rgba(155,140,255,.25));
      backdrop-filter: blur(12px) saturate(180%);
      -webkit-backdrop-filter: blur(12px) saturate(180%);
      color: rgba(255,255,255,.98);
      font-size: 11px;
      font-weight: 700;
      padding: 6px 40px;
      transform: rotate(-45deg) !important;
      transform-origin: center;
      box-shadow: 
        0 2px 6px rgba(0,0,0,.3);
      letter-spacing: 0.12em;
      white-space: nowrap;
      z-index: 100;
      text-align: center;
      border-top: 1px solid rgba(255,255,255,.25);
      border-bottom: 1px solid rgba(0,0,0,.15);
    }
    
    /* Ribbon Schatten-Effekt */
    .years-badge-corner::before,
    .years-badge-corner::after {
      display: none; /* Spitzen entfernt */
    }

    .logo-wrapper {
      position: relative;
      display: inline-block;
      margin: 0 auto -25px;
      overflow: visible;
    }
    
    .logo{
      display:block;
      width: 280px;
      max-width: 80vw;
      position: relative;
      z-index: 10;
      filter: drop-shadow(0 10px 30px rgba(0,0,0,.5));
      transition: all 0.3s ease;
      /* Prevent layout shift */
      aspect-ratio: 1 / 1;
      object-fit: contain;
    }
    
    .logo:hover {
      transform: scale(1.03);
      filter: drop-shadow(0 15px 40px rgba(0,0,0,.7));
    }
    
    .brand{
      display:flex;
      flex-direction:column;
      align-items:center;
      gap: 4px;
      margin-top: -20px;
    }
    
    .brand-title{
      font-size: 34px;
      font-weight: 800;
      letter-spacing: -2px;
      line-height: 1.05;
      color: rgba(255,255,255,.95);
      text-shadow: 0 10px 30px rgba(0,0,0,.55);
    }
    
    .brand-sub{
      font-size: 12px;
      font-weight: 500;
      letter-spacing: .12em;
      color: rgba(255,255,255,.70);
      text-shadow: 0 8px 24px rgba(0,0,0,.55);
    }
    .brand{
      display:flex;
      flex-direction:column;
      align-items:center;
      gap: 4px;
      margin-top: -5px;
    }

    /* CONTAINER */
    .glass-container{
      max-width: 1040px;
      margin: 0 auto;
      padding: 26px;
      border-radius: var(--r-lg);
      /* Dunkler Hintergrund: Wetter bleibt im Hintergrund, scheint nicht durch */
      background: linear-gradient(180deg, rgba(20,22,35,.82), rgba(12,14,25,.75));
      border: 1px solid rgba(255,255,255,.12);
      backdrop-filter: blur(16px) saturate(155%);
      -webkit-backdrop-filter: blur(16px) saturate(155%);
      box-shadow: var(--shadow);
      position:relative;
      overflow: hidden;
      z-index: 10;
    }

    
    /* Wenn Sterne aktiv: Opakerer Hintergrund + reduzierter Blur für schönen Wetter-Effekt */
    body.stars-active .glass-container {
      backdrop-filter: blur(14px) saturate(140%);
      -webkit-backdrop-filter: blur(14px) saturate(140%);
      background: linear-gradient(180deg, rgba(20, 22, 35, .82), rgba(12, 14, 25, .75));
    }

    /* ✅ WICHTIG: Overlays dürfen NIE Klicks blockieren */
    .glass-container::before,
    .glass-container::after{
      pointer-events:none !important;
    }

    .glass-container::before{
      content:"";
      position:absolute;
      inset:-2px;
      background: radial-gradient(800px 260px at 15% 0%, rgba(255,255,255,.12), transparent 60%);
    }
    .glass-container > *{ position:relative; z-index:1; }

    h1,h2,h3,h4{ font-weight:320; margin:0 0 10px 0; }
    h2{ margin-top: 0; }

    /* ============================== */
    /* MUSIK-PROMO BANNER             */
    /* ============================== */
    .musik-promo-banner {
      position: relative;
      z-index: 10; /* VOR dem Wetter (Wetter ist z-index: 2) */
      overflow: visible;
      background: linear-gradient(135deg, rgba(124,92,255,.12) 0%, rgba(15,17,26,.98) 40%, rgba(236,72,153,.08) 100%);
      border: 1px solid rgba(124,92,255,.2);
      border-radius: 18px;
      max-width: 1040px;
      margin: -10px auto 26px;
      backdrop-filter: blur(20px);
      transition: all 0.4s cubic-bezier(.4,0,.2,1);
    }
    .musik-promo-banner:hover {
      border-color: rgba(124,92,255,.4);
      box-shadow: 0 8px 40px rgba(124,92,255,.15), 0 0 80px rgba(236,72,153,.06);
    }
    .musik-promo-glow {
      position: absolute;
      inset: 0;
      border-radius: 18px;
      overflow: hidden;
      background: radial-gradient(ellipse at 20% 50%, rgba(124,92,255,.1) 0%, transparent 60%),
                  radial-gradient(ellipse at 80% 50%, rgba(236,72,153,.07) 0%, transparent 60%);
      pointer-events: none;
      animation: promoGlowShift 8s ease-in-out infinite alternate;
    }
    @keyframes promoGlowShift {
      0% { opacity: 0.6; }
      100% { opacity: 1; }
    }
    .musik-promo-inner {
      position: relative;
      z-index: 1;
      display: flex;
      align-items: center;
      gap: 18px;
      padding: 16px 20px;
    }
    .musik-promo-artwork {
      position: relative;
      flex-shrink: 0;
      width: 72px;
      height: 72px;
    }
    .musik-promo-vinyl {
      width: 72px;
      height: 72px;
      border-radius: 50%;
      background: radial-gradient(circle at 50% 50%, #1a1a2e 0%, #0a0a15 60%, #000 100%);
      box-shadow: 0 0 0 2px rgba(124,92,255,.3), 0 4px 20px rgba(0,0,0,.5);
      display: flex;
      align-items: center;
      justify-content: center;
      transition: transform 0.3s ease;
    }
    .musik-promo-vinyl.spinning {
      animation: vinylSpin 3s linear infinite;
    }
    @keyframes vinylSpin {
      from { transform: rotate(0deg); }
      to { transform: rotate(360deg); }
    }
    .musik-promo-vinyl-inner {
      width: 32px;
      height: 32px;
      border-radius: 50%;
      background: rgba(124,92,255,.15);
      border: 2px solid rgba(124,92,255,.3);
      display: flex;
      align-items: center;
      justify-content: center;
      overflow: hidden;
    }
    .musik-promo-vinyl-logo {
      width: 22px;
      height: 22px;
      object-fit: contain;
      filter: brightness(1.5) saturate(0.5);
    }
    .musik-promo-vinyl::before {
      content: '';
      position: absolute;
      inset: 4px;
      border-radius: 50%;
      border: 1px solid rgba(255,255,255,.04);
    }
    .musik-promo-vinyl::after {
      content: '';
      position: absolute;
      inset: 12px;
      border-radius: 50%;
      border: 1px solid rgba(255,255,255,.03);
    }
    .musik-promo-play-btn {
      position: absolute;
      inset: 0;
      width: 100%;
      height: 100%;
      border-radius: 50%;
      border: none;
      background: rgba(124,92,255,.6);
      color: white;
      cursor: pointer;
      display: flex;
      align-items: center;
      justify-content: center;
      opacity: 0;
      transition: all 0.25s ease;
      z-index: 2;
    }
    .musik-promo-play-btn svg {
      width: 28px;
      height: 28px;
    }
    .musik-promo-artwork:hover .musik-promo-play-btn {
      opacity: 1;
      backdrop-filter: blur(4px);
    }
    .musik-promo-play-btn.is-playing {
      opacity: 0;
    }
    .musik-promo-info {
      flex: 1;
      min-width: 0;
    }
    .musik-promo-badge {
      display: inline-block;
      padding: 2px 8px;
      border-radius: 4px;
      font-size: 0.6rem;
      font-weight: 800;
      letter-spacing: 1.5px;
      text-transform: uppercase;
      background: linear-gradient(135deg, rgba(124,92,255,.9), rgba(236,72,153,.9));
      color: #fff;
      margin-bottom: 6px;
      animation: badgePulse 3s ease-in-out infinite;
    }
    @keyframes badgePulse {
      0%, 100% { box-shadow: 0 0 8px rgba(124,92,255,.3); }
      50% { box-shadow: 0 0 16px rgba(236,72,153,.4); }
    }
    .musik-promo-hifi-badge {
      display: inline-block;
      padding: 2px 8px;
      border-radius: 4px;
      font-size: 0.6rem;
      font-weight: 800;
      letter-spacing: 1px;
      background: linear-gradient(135deg, rgba(124,92,255,.25), rgba(59,130,246,.2));
      border: 1px solid rgba(124,92,255,.4);
      color: #a78bfa;
      margin-bottom: 6px;
      margin-left: 6px;
    }
    .musik-promo-title {
      font-size: 1.05rem;
      font-weight: 700;
      color: var(--text);
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
      line-height: 1.3;
    }
    .musik-promo-subtitle {
      font-size: 0.75rem;
      color: var(--muted);
      margin-top: 2px;
    }
    .musik-promo-track-name {
      font-size: 0.8rem;
      color: rgba(124,92,255,.9);
      margin-top: 4px;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
      font-weight: 500;
    }
    .musik-promo-controls {
      flex-shrink: 0;
      width: 180px;
      display: flex;
      flex-direction: column;
      gap: 6px;
    }
    .musik-promo-progress-wrap {
      width: 100%;
      height: 4px;
      background: rgba(255,255,255,.08);
      border-radius: 2px;
      cursor: pointer;
      overflow: hidden;
      position: relative;
    }
    .musik-promo-buffer-bar {
      position: absolute;
      top: 0; left: 0;
      height: 100%;
      width: 0%;
      background: rgba(255,255,255,.12);
      border-radius: 2px;
      transition: width 0.3s ease;
    }
    .musik-promo-progress-bar {
      position: absolute;
      top: 0; left: 0;
      height: 100%;
      width: 0%;
      background: linear-gradient(90deg, rgba(124,92,255,.9), rgba(236,72,153,.8));
      border-radius: 2px;
      transition: width 0.1s linear;
    }
    .musik-promo-time {
      display: flex;
      justify-content: space-between;
      font-size: 0.65rem;
      color: var(--muted);
    }
    .musik-promo-nav {
      display: flex;
      gap: 8px;
      justify-content: center;
    }
    .musik-promo-nav-btn {
      width: 32px;
      height: 32px;
      border-radius: 50%;
      border: 1px solid rgba(255,255,255,.1);
      background: rgba(255,255,255,.05);
      color: rgba(255,255,255,.7);
      cursor: pointer;
      display: flex;
      align-items: center;
      justify-content: center;
      transition: all 0.2s;
    }
    .musik-promo-nav-btn svg {
      width: 16px;
      height: 16px;
    }
    .musik-promo-nav-btn:hover {
      background: rgba(124,92,255,.2);
      border-color: rgba(124,92,255,.4);
      color: #fff;
    }
    .musik-promo-bg-cover {
      position: absolute;
      top: 0;
      right: 16%;
      width: 57%;
      height: 100%;
      background-size: 88%;
      background-position: 51% 148%;
      opacity: 0.40;
      mask-image: linear-gradient(to right, transparent 5%, black 20%, black 77%, transparent 92%);
      -webkit-mask-image: linear-gradient(to right, transparent 5%, black 20%, black 77%, transparent 92%);
      pointer-events: none;
      z-index: 0;
    }

    .musik-promo-close {
      position: absolute;
      top: -10px;
      right: -6px;
      width: 26px;
      height: 26px;
      border-radius: 50%;
      border: 1px solid rgba(255,255,255,.15);
      background: rgba(15,17,26,.95);
      color: rgba(255,255,255,.5);
      font-size: 0.75rem;
      cursor: pointer;
      display: flex;
      align-items: center;
      justify-content: center;
      transition: all 0.2s;
      z-index: 3;
      box-shadow: 0 2px 8px rgba(0,0,0,.4);
    }
    .musik-promo-close:hover {
      background: rgba(255,255,255,.12);
      color: rgba(255,255,255,.7);
    }

    .musik-promo-reopen {
      display: none;
      max-width: 1040px;
      margin: -10px auto 20px;
      padding: 8px 18px;
      align-items: center;
      justify-content: center;
      gap: 8px;
      border-radius: 12px;
      border: 1px solid rgba(124,92,255,.2);
      background: linear-gradient(135deg, rgba(124,92,255,.08), rgba(236,72,153,.05));
      color: rgba(124,92,255,.8);
      font-size: 0.8rem;
      cursor: pointer;
      transition: all 0.25s;
    }
    .musik-promo-reopen:hover {
      border-color: rgba(124,92,255,.4);
      background: linear-gradient(135deg, rgba(124,92,255,.15), rgba(236,72,153,.08));
      color: rgba(124,92,255,1);
    }

    /* Musik-Promo Mobile */
    @media (max-width: 768px) {
      .musik-promo-banner { margin: -4px 10px 16px; }
      .musik-promo-inner {
        flex-wrap: wrap;
        gap: 12px;
        padding: 14px 16px;
      }
      .musik-promo-artwork { width: 68px; height: 68px; }
      .musik-promo-vinyl { width: 68px; height: 68px; }
      .musik-promo-vinyl-inner { width: 32px; height: 32px; }
      .musik-promo-vinyl-logo { width: 24px; height: 24px; }
      .musik-promo-info { flex: 1; min-width: 120px; }
      .musik-promo-title { font-size: 0.9rem; }
      .musik-promo-controls { width: 100%; flex-direction: row; flex-wrap: wrap; align-items: center; gap: 10px; }
      .musik-promo-progress-wrap { flex: 1; min-width: 80px; }
      .musik-promo-time { width: auto; gap: 8px; }
      .musik-promo-nav { gap: 6px; }
      .musik-promo-play-btn {
        opacity: 1;
        background: rgba(124,92,255,.35);
        backdrop-filter: blur(2px);
        inset: auto;
        width: 34px;
        height: 34px;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
      }
      .musik-promo-play-btn svg {
        width: 18px;
        height: 18px;
      }
      .musik-promo-play-btn.is-playing {
        opacity: 0;
      }
      .musik-promo-bg-cover {
        width: 100%;
        right: -6%;
        background-size: 144%;
        background-position: 14% 8%;
        opacity: 0.28;
        mask-image: linear-gradient(to right, black 0%, black 85%, transparent 100%);
        -webkit-mask-image: linear-gradient(to right, black 0%, black 85%, transparent 100%);
      }
    }

    /* PLAYER FIXED (Bottom-Fix) */
    .sticky-player{
      position: fixed !important;
      bottom: var(--player-bottom) !important; 
      top: auto !important; /* MUSS auf auto sein für Bottom-Fix */

      /* NEU: Safe-Area + iOS Fix */
      left: 0 !important;
      right: 0 !important;
      transform: none !important;

      width: auto !important;
      margin-left: auto;
      margin-right: auto;

      /* NEU: Innenabstand für Notch / iOS */
      padding-left: env(safe-area-inset-left);
      padding-right: env(safe-area-inset-right);

      max-width: 1040px;
      z-index: 99999 !important;
      border-radius: var(--r-lg);
      
      @media (max-width: 900px){
        .sticky-player{
          left: 0 !important; /* KEIN Abstand links */
          right: 0 !important; /* KEIN Abstand rechts */
          border-radius: 0 !important; /* KEINE abgerundeten Ecken */
        }
      }

      /* Glass Style für den Player */
      background: linear-gradient(180deg, rgba(20,22,32,.88), rgba(12,14,22,.82));
      border: 1px solid rgba(255,255,255,.14);
      backdrop-filter: blur(28px) saturate(160%);
      -webkit-backdrop-filter: blur(28px) saturate(160%);
      box-shadow: 0 -24px 70px rgba(0,0,0,.55); /* Schatten nach oben */

      /* GPU-Beschleunigung für ältere iOS-Geräte */
      will-change: transform;
      -webkit-transform: translateZ(0);

      overflow: hidden;
      display: none;
    }
    .sticky-head{
      display:flex;
      flex-direction: column; /* Column für Mobile */
      align-items:stretch;
      gap: 10px;
      padding: 14px 14px 10px; /* ORIGINAL DESKTOP PADDING */
    }
    
    .sticky-now-playing {
      width: 100%;
      text-align: center;
    }
    
    .sticky-controls {
      width: 100%;
    }
    
    .sticky-kicker{
      font-size:.78rem;
      letter-spacing:.18em;
      text-transform: uppercase;
      color: var(--muted);
    }
    .sticky-title{
      overflow: visible;
      line-height: 1.3;
    }
    .sticky-date-line {
      display: block;
      font-size: .78rem;
      color: var(--muted);
      letter-spacing: .03em;
      text-align: center;
    }
    .sticky-topic-line {
      display: block;
      font-size: .93rem;
      color: var(--text);
      text-align: center;
      white-space: normal;
      word-break: break-word;
      line-height: 1.35;
    }
    .sticky-actions{ display:flex; gap:10px; flex-shrink:0; }

    .glass-btn{
      border: 1px solid rgba(255,255,255,.14);
      background: rgba(255,255,255,.08);
      color: var(--text);
      padding: 9px 12px;
      border-radius: 12px;
      font-size: .92rem;
      cursor:pointer;
      white-space:nowrap;
      text-decoration: none !important;
      transition: transform .15s ease, background .2s ease, border-color .2s ease;
    }
    .glass-btn:hover, .glass-btn:focus, .glass-btn:active { 
      transform: translateY(-1px); 
      background: rgba(255,255,255,.10); 
      border-color: rgba(255,255,255,.22); 
      text-decoration: none !important; 
    }
    
    /* Emoji Icons ohne Unterstreichung */
    .btn-icon {
      text-decoration: none !important;
      display: inline-block;
      border-bottom: none !important;
    }
    
    /* Disabled buttons for guests */
    .btn-disabled, button[disabled][data-guest="true"], .filter-disabled {
      opacity: 0.4 !important;
      cursor: not-allowed !important;
      background: rgba(255,255,255,.04) !important;
      pointer-events: auto !important;
    }
    .btn-disabled:hover, button[disabled][data-guest="true"]:hover {
      transform: none !important;
      background: rgba(255,255,255,.04) !important;
    }
    
    /* Skip Buttons */
    .skip-btn {
      width: 40px;
      height: 40px;
      padding: 0 !important;
      font-size: 1.1rem;
      display: flex;
      align-items: center;
      justify-content: center;
      background: linear-gradient(135deg, rgba(124,92,255,.15), rgba(124,92,255,.08));
      border: 1px solid rgba(124,92,255,.3);
      position: relative;
      overflow: hidden;
    }
    .skip-btn::before {
      content: '';
      position: absolute;
      inset: 0;
      background: linear-gradient(135deg, rgba(124,92,255,.3), transparent);
      opacity: 0;
      transition: opacity 0.3s ease;
    }
    .skip-btn:hover::before {
      opacity: 1;
    }
    .skip-btn:hover {
      background: linear-gradient(135deg, rgba(124,92,255,.3), rgba(124,92,255,.18));
      border-color: rgba(124,92,255,.6);
      transform: translateY(-2px);
    }
    .skip-btn:active {
      transform: translateY(0);
    }
    
    /* Skip Timeline Buttons */
    .skip-time-btn {
      padding: 10px 16px;
      font-size: 0.9rem;
      min-width: 65px;
      font-weight: 600;
      background: linear-gradient(135deg, rgba(255,255,255,.08), rgba(255,255,255,.05));
      border: 1px solid rgba(255,255,255,.15);
      position: relative;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: 3px;
    }
    .skip-time-btn .skip-sign {
      font-weight: 700;
      color: rgba(255,255,255,.9);
      font-size: 0.95rem;
    }
    .skip-time-btn:hover {
      background: linear-gradient(135deg, rgba(124,92,255,.25), rgba(124,92,255,.15));
      border-color: rgba(124,92,255,.45);
      transform: translateY(-2px);
    }
    
    #sticky-player-mount{ padding: 0 14px 6px; } /* ORIGINAL DESKTOP PADDING */
    
    /* ============================================================================
       UNTERTITEL/TRANSKRIPT STYLES (iMessage-Style Chat Bubbles)
       ============================================================================ */
    
    /* Chat Bubble Base */
    .subtitle-bubble {
      max-width: 82%;
      padding: 10px 14px;
      border-radius: 18px;
      font-size: 0.9rem;
      line-height: 1.45;
      position: relative;
      opacity: 0.4;
      transition: opacity 0.3s ease, transform 0.2s ease, background 0.3s ease;
      cursor: pointer;
      display: flex;
      flex-direction: column;
    }
    
    /* Für Gäste: Bubbles nicht klickbar machen, aber sichtbar */
    body.guest-user .subtitle-row {
      cursor: default;
    }
    
    body.guest-user .subtitle-bubble {
      cursor: default;
    }
    
    .subtitle-bubble:hover {
      opacity: 0.7;
    }
    
    .subtitle-bubble.active {
      opacity: 1;
      transform: scale(1.02);
    }
    
    /* Bubble Row mit Avatar */
    .subtitle-row {
      display: flex;
      align-items: flex-end;
      gap: 10px;
      width: 100%;
      margin-bottom: 18px; /* Mehr Lücke zwischen Bubbles */
    }
    
    .subtitle-row.left {
      flex-direction: row;
    }
    
    .subtitle-row.right {
      flex-direction: row-reverse;
    }
    
    /* Avatar */
    .subtitle-avatar {
      width: 62px;
      height: 62px;
      border-radius: 50%;
      flex-shrink: 0;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 1.4rem;
      background: rgba(255,255,255,0.1);
      border: 2px solid rgba(255,255,255,0.2);
      overflow: hidden;
      position: relative;
      transform: translateY(60px); /* Avatar nach unten verschieben */
    }
    
    .subtitle-avatar img {
      width: 100%;
      height: 100%;
      object-fit: cover;
      pointer-events: none;
      user-select: none;
      -webkit-user-select: none;
      -moz-user-select: none;
      -ms-user-select: none;
    }
    
    /* Doppel-Avatar für Gäste-Sendungen (Gast über Domian) */
    .subtitle-avatar.dual-avatar {
      width: 62px;
      height: 100px; /* Höher für zwei Avatare */
      border-radius: 31px;
      flex-direction: column;
      background: transparent;
      border: none;
      overflow: visible;
      transform: translateY(40px);
    }
    
    .subtitle-avatar.dual-avatar .guest-avatar,
    .subtitle-avatar.dual-avatar .domian-avatar {
      width: 50px;
      height: 50px;
      border-radius: 50%;
      overflow: hidden;
      border: 2px solid rgba(255,255,255,0.3);
      background: rgba(255,255,255,0.1);
    }
    
    .subtitle-avatar.dual-avatar .guest-avatar {
      border-color: rgba(255, 193, 7, 0.6); /* Goldener Rand für Gast */
      box-shadow: 0 2px 8px rgba(255, 193, 7, 0.3);
      margin-bottom: -8px; /* Leichte Überlappung */
      z-index: 2;
      position: relative;
    }
    
    .subtitle-avatar.dual-avatar .domian-avatar {
      border-color: rgba(124, 92, 255, 0.5);
      z-index: 1;
    }
    
    .subtitle-avatar.dual-avatar .guest-avatar img,
    .subtitle-avatar.dual-avatar .domian-avatar img {
      width: 100%;
      height: 100%;
      object-fit: cover;
    }
    
    /* Speaker Label */
    .subtitle-speaker {
      font-size: 0.72rem;
      font-weight: 600;
      text-transform: uppercase;
      letter-spacing: 0.04em;
      margin-bottom: 3px;
      opacity: 0.8;
    }
    
    /* Timestamp */
    .subtitle-time {
      font-size: 0.68rem;
      opacity: 0.5;
      margin-top: 4px;
      font-variant-numeric: tabular-nums;
    }
    
    /* DOMIAN - Links (wie empfangene Nachrichten) */
    .subtitle-bubble.domian {
      background: linear-gradient(135deg, rgba(124, 92, 255, 0.35), rgba(99, 73, 204, 0.3));
      border: 1px solid rgba(124, 92, 255, 0.4);
      border-left: none;
      color: #e0d8ff;
      border-bottom-left-radius: 4px;
      margin-left: 12px;
      position: relative;
    }
    
    /* Sprechblasen-Haken für Domian (links unten) - vom Avatar zur Bubble */
    .subtitle-bubble.domian::before {
      content: '';
      position: absolute;
      bottom: -1.1rem;
      left: -0.4rem;
      height: 1rem;
      border-bottom-right-radius: 0.8rem 0.7rem;
      border-left: 1rem solid rgba(124, 92, 255, 0.35);
      transform: translate(0, -0.1rem);
    }
    
    .subtitle-bubble.domian::after {
      content: '';
      position: absolute;
      bottom: -1.1rem;
      left: 20px;
      height: 1rem;
      width: 10px;
      background-color: rgb(15, 17, 26);
      border-bottom-right-radius: 0.5rem;
      transform: translate(-30px, -2px);
    }
    
    .subtitle-bubble.domian .subtitle-speaker {
      color: rgba(167, 139, 250, 0.9);
    }
    
    .subtitle-bubble.domian.active {
      background: linear-gradient(135deg, rgba(124, 92, 255, 0.55), rgba(99, 73, 204, 0.5));
      border-color: rgba(124, 92, 255, 0.7);
      box-shadow: 0 0 20px rgba(124, 92, 255, 0.3);
    }
    
    .subtitle-bubble.domian.active::before {
      border-left-color: rgba(124, 92, 255, 0.55);
    }
    
    .subtitle-row.left .subtitle-avatar {
      background: linear-gradient(135deg, rgba(124, 92, 255, 0.3), rgba(99, 73, 204, 0.25));
      border-color: rgba(124, 92, 255, 0.5);
    }
    
    /* ANRUFER - Rechts (wie eigene Nachrichten) */
    .subtitle-bubble.anrufer {
      background: linear-gradient(135deg, rgba(16, 185, 129, 0.25), rgba(13, 148, 103, 0.2));
      border: 1px solid rgba(16, 185, 129, 0.35);
      border-right: none;
      color: #c6f6e5;
      border-bottom-right-radius: 4px;
      text-align: right;
      margin-right: 12px;
      position: relative;
    }
    
    /* Sprechblasen-Haken für Anrufer (rechts unten) - iMessage Style */
    .subtitle-bubble.anrufer::before {
      content: '';
      position: absolute;
      bottom: -1.1rem;
      right: -0.4rem;
      height: 1rem;
      border-bottom-left-radius: 0.8rem 0.7rem;
      border-right: 1rem solid rgba(16, 185, 129, 0.25);
      transform: translate(0, -0.1rem);
    }
    
    .subtitle-bubble.anrufer::after {
      content: '';
      position: absolute;
      bottom: -1.1rem;
      right: -40px;
      height: 1rem;
      width: 10px;
      background-color: rgb(15, 17, 26);
      border-bottom-left-radius: 0.5rem;
      transform: translate(-30px, -2px);
    }
    
    .subtitle-bubble.anrufer .subtitle-speaker {
      color: rgba(52, 211, 153, 0.9);
      text-align: right;
    }
    
    .subtitle-bubble.anrufer .subtitle-time {
      text-align: right;
    }
    
    .subtitle-bubble.anrufer.active {
      background: linear-gradient(135deg, rgba(16, 185, 129, 0.45), rgba(13, 148, 103, 0.4));
      border-color: rgba(16, 185, 129, 0.65);
      box-shadow: 0 0 20px rgba(16, 185, 129, 0.25);
    }
    
    .subtitle-bubble.anrufer.active::before {
      border-right-color: rgba(16, 185, 129, 0.45);
    }
    
    .subtitle-row.right .subtitle-avatar {
      background: linear-gradient(135deg, rgba(16, 185, 129, 0.25), rgba(13, 148, 103, 0.2));
      border-color: rgba(16, 185, 129, 0.4);
    }
    
    /* INTRO/MUSIK - Mitte (System-Nachrichten) */
    .subtitle-row.center {
      justify-content: center;
    }
    
    .subtitle-row.center .subtitle-avatar {
      margin-right: 8px;
      transform: none !important; /* Kein translateY für Intro */
      width: 36px;
      height: 36px;
      align-self: center;
    }
    
    .subtitle-bubble.intro {
      background: linear-gradient(135deg, rgba(59, 130, 246, 0.2), rgba(37, 99, 235, 0.15));
      border: 1px solid rgba(59, 130, 246, 0.3);
      color: #bfdbfe;
      border-radius: 12px;
      text-align: center;
      max-width: 90%;
      font-style: italic;
    }
    
    .subtitle-bubble.intro::before {
      display: none; /* Kein Haken für Intro */
    }
    
    .subtitle-bubble.intro .subtitle-speaker {
      color: rgba(96, 165, 250, 0.9);
      text-align: center;
    }
    
    .subtitle-bubble.intro .subtitle-time {
      text-align: center;
    }
    
    .subtitle-bubble.intro.active {
      background: linear-gradient(135deg, rgba(59, 130, 246, 0.4), rgba(37, 99, 235, 0.35));
      border-color: rgba(59, 130, 246, 0.6);
      box-shadow: 0 0 15px rgba(59, 130, 246, 0.2);
    }
    
    /* Unbekannter Sprecher - Links wie Domian */
    .subtitle-bubble.unknown {
      background: rgba(255, 255, 255, 0.08);
      border: 1px solid rgba(255, 255, 255, 0.15);
      border-left: none;
      color: var(--text);
      border-bottom-left-radius: 4px;
      margin-left: 12px;
      position: relative;
    }
    
    .subtitle-bubble.unknown::before {
      content: '';
      position: absolute;
      bottom: -1.1rem;
      left: -0.4rem;
      height: 1rem;
      border-bottom-right-radius: 0.8rem 0.7rem;
      border-left: 1rem solid rgba(255, 255, 255, 0.08);
      transform: translate(0, -0.1rem);
    }
    
    .subtitle-bubble.unknown::after {
      content: '';
      position: absolute;
      bottom: -1.1rem;
      left: 20px;
      height: 1rem;
      width: 10px;
      background-color: rgb(15, 17, 26);
      border-bottom-right-radius: 0.5rem;
      transform: translate(-30px, -2px);
    }
    
    .subtitle-bubble.unknown .subtitle-speaker {
      color: var(--muted);
    }
    
    .subtitle-bubble.unknown.active {
      background: rgba(255, 255, 255, 0.15);
      border-color: rgba(255, 255, 255, 0.3);
    }
    
    .subtitle-bubble.unknown.active::before {
      border-left-color: rgba(255, 255, 255, 0.15);
    }
    
    /* Subtitles Toggle Button Active State */
    #sticky-subtitles-toggle.active {
      background: rgba(16, 185, 129, 0.3) !important;
      border-color: rgba(16, 185, 129, 0.6) !important;
    }
    
    /* ============================================
       TRAINER EDIT-MODUS: Split-View
       ============================================ */
    .trainer-edit-mode #subtitles-messages {
      gap: 2px !important;
    }
    
    .trainer-edit-mode .subtitle-row {
      flex-direction: row !important;
      align-items: flex-start !important;
      margin-bottom: 4px !important;
      padding: 10px 12px;
      background: rgba(0,0,0,0.2);
      border-radius: 8px;
      gap: 10px !important;
      min-height: 52px;
      width: 100% !important;
      display: flex !important;
    }
    
    .trainer-edit-mode .subtitle-row.active {
      background: rgba(124, 92, 255, 0.15);
      border: 1px solid rgba(124, 92, 255, 0.3);
    }
    
    .trainer-edit-mode .subtitle-avatar {
      width: 36px !important;
      height: 36px !important;
      min-width: 36px;
      transform: none !important;
      font-size: 1.1rem !important;
      margin-top: 2px;
      flex-shrink: 0;
    }
    
    .trainer-edit-mode .subtitle-avatar.dual-avatar {
      height: 36px !important;
    }
    
    .trainer-edit-mode .subtitle-bubble {
      flex: 1 !important;
      max-width: none !important;
      min-width: 200px !important;
      background: transparent !important;
      border: none !important;
      padding: 4px 8px !important;
      border-radius: 0 !important;
      align-self: flex-start;
      overflow: visible !important;
    }
    
    .trainer-edit-mode .subtitle-bubble::before,
    .trainer-edit-mode .subtitle-bubble::after {
      display: none !important;
    }
    
    .trainer-edit-mode .subtitle-speaker {
      display: none !important;
    }
    
    .trainer-edit-mode .subtitle-text {
      font-size: 0.85rem;
      line-height: 1.4;
      color: var(--text);
      white-space: normal;
      word-wrap: break-word;
      display: block !important;
      visibility: visible !important;
      opacity: 1 !important;
      /* KEIN line-clamp mehr - Text wird vollständig angezeigt */
    }
    
    .trainer-edit-mode .subtitle-time {
      display: none !important;
    }
    
    /* Edit Icons Container */
    .trainer-edit-icons {
      display: flex;
      align-items: center;
      gap: 4px;
      flex-shrink: 1;
      padding-left: 10px;
      margin-left: 10px;
      border-left: 1px solid rgba(255,255,255,0.15);
      overflow-x: auto;
      overflow-y: hidden;
      max-width: 60%;
      flex-wrap: nowrap;
      scrollbar-width: thin;
      scrollbar-color: rgba(124, 92, 255, 0.5) transparent;
    }
    
    .trainer-edit-icons::-webkit-scrollbar {
      height: 4px;
    }
    
    .trainer-edit-icons::-webkit-scrollbar-thumb {
      background: rgba(124, 92, 255, 0.5);
      border-radius: 2px;
    }
    
    .trainer-edit-icons::-webkit-scrollbar-track {
      background: transparent;
    }
    
    .trainer-edit-icon {
      width: 32px;
      height: 32px;
      border-radius: 50%;
      border: 2px solid rgba(255,255,255,0.2);
      background: rgba(255,255,255,0.05);
      cursor: pointer;
      display: flex;
      align-items: center;
      justify-content: center;
      transition: all 0.15s;
      padding: 0;
      overflow: hidden;
      flex-shrink: 0;
    }
    
    .trainer-edit-icon:hover {
      transform: scale(1.15);
      border-color: rgba(124, 92, 255, 0.6);
    }
    
    .trainer-edit-icon.active {
      border-color: rgba(16, 185, 129, 0.8);
      background: rgba(16, 185, 129, 0.3);
      box-shadow: 0 0 8px rgba(16, 185, 129, 0.4);
    }
    
    .trainer-edit-icon img {
      width: 100%;
      height: 100%;
      object-fit: cover;
      border-radius: 50%;
      pointer-events: none;
      user-select: none;
      -webkit-user-select: none;
      -moz-user-select: none;
      -ms-user-select: none;
    }
    
    /* Mobile Optimierung */
    @media (max-width: 600px) {
      .subtitle-bubble {
        max-width: 85%;
        font-size: 0.82rem;
        padding: 8px 10px;
      }
      
      /* Avatar kleiner und MITTIG positioniert auf Mobile */
      .subtitle-avatar {
        width: 40px;
        height: 40px;
        min-width: 40px;
        min-height: 40px;
        font-size: 0.9rem;
        flex-shrink: 0;
        align-self: center;
        margin-top: 0;
        transform: none !important; /* Desktop translateY entfernen */
      }
      
      .subtitle-avatar img {
        width: 40px;
        height: 40px;
      }
      
      /* Haken/Sprechblasen-Schwänze auf Mobile komplett verstecken */
      .subtitle-bubble.domian::before,
      .subtitle-bubble.domian::after,
      .subtitle-bubble.anrufer::before,
      .subtitle-bubble.anrufer::after,
      .subtitle-bubble.unknown::before,
      .subtitle-bubble.unknown::after,
      .subtitle-bubble.intro::before,
      .subtitle-bubble.intro::after {
        display: none !important;
      }
      
      /* Row Layout für Mobile */
      .subtitle-row {
        gap: 6px;
        align-items: center;
      }
      
      .subtitle-row.left {
        padding-right: 12%;
      }
      
      .subtitle-row.right {
        padding-left: 12%;
      }
      
      #sticky-subtitles-container {
        max-height: 280px !important;
      }
      
      #subtitles-chat-area {
        max-height: 220px !important;
        padding: 8px 10px 12px !important;
      }
      
      /* Transkript-Button gleich groß wie andere Buttons auf Mobile */
      #sticky-subtitles-toggle {
        width: 40px !important;
        height: 40px !important;
      }
      
      /* Tr. Icon in Episode-Liste auf Mobile */
      .has-srt-icon {
        width: 20px !important;
        height: 20px !important;
        font-size: 0.5rem !important;
      }
    }
    
    /* NEU: Kapitel-Marker Hover Style */
    .chapter-item:hover {
        background: rgba(124, 92, 255, .12) !important;
        border-color: rgba(124, 92, 255, .45) !important;
        transform: translateY(-1px);
    }
	
	.chapter-item.active-chapter {
  background: linear-gradient(135deg, rgba(124,92,255,.25), rgba(124,92,255,.15)) !important;
  border-color: rgba(124, 92, 255, .65) !important;
  box-shadow: 0 0 20px rgba(124, 92, 255, .3);
  transform: translateX(4px);
}

.chapter-item.active-chapter strong {
  color: #a78bfa !important;
}

.chapter-item.active-chapter {
  background: linear-gradient(135deg, rgba(124,92,255,.25), rgba(124,92,255,.15)) !important;
  border-color: rgba(124, 92, 255, .65) !important;
  box-shadow: 0 0 20px rgba(124, 92, 255, .3);
  transform: translateX(4px);
}

/* FILTER */
    .filter-area{
      display:flex;
      flex-direction: column;
      gap: 12px;

      padding: 14px;
      margin: 18px 0 20px;

      border-radius: var(--r-md);

      background: linear-gradient(180deg, rgba(14, 16, 26, .70), rgba(8, 10, 18, .55));
      border: 1px solid rgba(255,255,255,.08);

      backdrop-filter: blur(20px) saturate(180%);
      -webkit-backdrop-filter: blur(20px) saturate(180%);

      box-shadow: 0 18px 60px rgba(0,0,0,.45);

      position: sticky;
      top: 0;
      z-index: 5000;
      overflow: visible; /* WICHTIG: Damit Dropdowns nicht abgeschnitten werden */
    }
    
    /* MOBILE: Filter ausblenden wenn Suchergebnisse angezeigt werden */
    @media (max-width: 768px) {
      body.search-active .filter-area {
        display: none !important;
      }
    }

    .filter-row{
      display:grid;
      gap: 12px 14px;
      align-items:center;
      overflow: visible; /* WICHTIG: Damit Dropdowns nicht abgeschnitten werden */
    }

    .filter-row.top{
      grid-template-columns:
        max-content minmax(140px, 1fr)
        max-content minmax(140px, 1fr);
    }

    .filter-row.bottom{
      grid-template-columns:
        max-content minmax(140px, 1fr)
        max-content minmax(140px, 1fr)
        max-content;
    }

    .filter-action{
      justify-self: end;
      align-self: stretch;
      display:flex;
      align-items:center;
    }

    .filter-area label{ color: var(--muted); font-size:.95rem; }
	
	@media (max-width: 600px) {
  .filter-row.top, .filter-row.bottom {
    display: flex;
    flex-direction: column;
    gap: 8px;
  }
  
  .filter-area label {
    margin-bottom: -4px;
    font-size: 0.85rem;
  }

  .selectx-btn {
    padding: 12px 14px; /* Größere Klickfläche für Finger */
  }
}

/* =============================================
   MOBILE ARCHIV LAYOUT - Episode Cards (≤600px)
   Normal: Text-Buttons / Aktiv: Dezente Icon-Buttons
   ============================================= */
@media (max-width: 600px) {
  /* Episode Card Container */
  .episode-item {
    padding: 14px;
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }

  /* NEU-Balken auf Mobile */
  .episode-item:has(.new-episode-badge) {
    padding-left: 28px !important;
  }
  .new-episode-badge {
    width: 18px;
    font-size: 0.42rem;
    letter-spacing: 0.18em;
  }

  /* Abspielen + Download nebeneinander trotz NEU-Balken */
  .episode-item:has(.new-episode-badge) .episode-actions .play-button,
  .episode-item:has(.new-episode-badge) .episode-actions .download-link {
    flex: 1 1 auto !important;
    min-width: 0 !important;
    max-width: none !important;
    padding: 10px 8px !important;
  }

  /* Info-Bereich */
  .episode-info {
    width: 100%;
  }

  /* Buttons-Bereich: Flexbox in einer Reihe */
  .episode-actions {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    gap: 6px !important;
    width: 100%;
    margin-top: 4px;
  }

  /* Gehört-Button (☐) */
  .episode-actions .toggle-watched-btn {
    order: 1;
    position: relative !important;
    width: 42px !important;
    height: 42px !important;
    min-width: 42px !important;
    flex-shrink: 0 !important;
    padding: 0 !important;
  }

  /* Playlist-Button (★) */
  .episode-actions .toggle-playlist-btn {
    order: 2;
    position: relative !important;
    width: 42px !important;
    height: 42px !important;
    min-width: 42px !important;
    flex-shrink: 0 !important;
    padding: 0 !important;
  }

  /* Mini-Time - versteckt wenn nicht aktiv */
  .episode-actions .mini-time {
    order: 3;
  }

  /* Play-Button - NORMAL: mit Text */
  .episode-actions .play-button {
    order: 4;
    flex: 1 1 auto !important;
    min-width: 90px !important;
    max-width: 180px !important; /* Verhindert Überlappung */
    padding: 10px 12px !important;
    font-size: 0.85rem !important;
    white-space: nowrap !important;
  }

  /* Download-Button - NORMAL: mit Text */
  .episode-actions .download-link {
    order: 5;
    flex: 0 0 auto !important;
    min-width: 80px !important;
    max-width: 160px !important;
    padding: 10px 12px !important;
    font-size: 0.85rem !important;
    white-space: nowrap !important;
  }

  /* ========================================
     AKTIVE EPISODE: Dezente Icons (wie ☐ ★)
     ======================================== */
  
  /* Zeit-Pille nimmt Platz ein */
  .episode-item.active .episode-actions .mini-time {
    flex: 1 1 auto !important;
    min-width: 90px !important;
    text-align: center;
    justify-content: center;
  }

  /* Play/Pause-Button - AKTIV: dezentes Icon ॥ */
  .episode-item.active .episode-actions .play-button {
    width: 42px !important;
    height: 42px !important;
    min-width: 42px !important;
    max-width: 42px !important;
    flex: 0 0 42px !important;
    padding: 0 !important;
    font-size: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
  }
  .episode-item.active .episode-actions .play-button::before {
    content: "❚❚";
    font-size: 1rem;
    letter-spacing: 1px;
  }

  /* Download-Button - AKTIV: dezentes Icon */
  .episode-item.active .episode-actions .download-link {
    width: 42px !important;
    height: 42px !important;
    min-width: 42px !important;
    max-width: 42px !important;
    flex: 0 0 42px !important;
    padding: 0 !important;
    font-size: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
  }
  .episode-item.active .episode-actions .download-link::before {
    content: "⤓";
    font-size: 1.3rem;
  }
  
  /* Mülleimer-Button (delete-resume-btn) - AKTIV: nach rechts neben Download */
  .episode-item.active .episode-actions .delete-resume-btn {
    order: 99 !important; /* Ganz rechts */
    margin-left: auto !important;
  }
  
  /* Auch für nicht-aktive Episoden auf Mobile */
  .episode-item .episode-actions .delete-resume-btn {
    order: 99 !important;
  }
}

/* Stats Pills Container - Desktop */
.stats-pills-container {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 15px;
  justify-content: center;
  align-items: center;
}

@media (max-width: 600px) {
  .stats-pills-container {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important; /* 3 Spalten wie vorher */
    gap: 6px !important;
  }

  .stat-pill {
    width: 100%;
    text-align: center;
    font-size: 0.65rem !important;
    padding: 6px 4px !important;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  
  /* Verstecke Stats-Pills auf Mobile wenn Suche aktiv ist */
  body.search-active .stats-pills-container {
    display: none !important;
  }
  
  /* Timer auf Mobile: Zurück in normalen Flow statt fixed */
  #stats-timer-pill {
    position: static !important;
    margin: 10px auto 15px auto !important;
    width: fit-content !important;
  }
  
  .stat-pill strong {
    display: block;
    font-size: 0.75rem;
    margin-top: 2px;
  }
}

@media (max-width: 600px) {
  .auth-info-container {
    padding: 12px;
    margin: 10px auto;
    flex-direction: column;
    gap: 10px;
  }

  .auth-user {
    justify-content: center;
  }

  .logo {
    width: 140px; /* Kleineres Logo spart Platz */
  }
}

    /* ===== Custom Select ===== */
    select.native-select{
      position:absolute !important;
      opacity:0 !important;
      pointer-events:none !important;
      width:1px !important;
      height:1px !important;
      left:-9999px !important;
    }

    .selectx{ position:relative; width:100%; min-width:0; z-index: 6000; }
    .selectx-btn{
      width:100%;
      text-align:left;
      padding: 11px 44px 11px 14px;
      border-radius: 16px;
      border: 1px solid rgba(255,255,255,.14);
      background: rgba(255,255,255,.08);
      color: var(--text);
      cursor:pointer;
      font-size:.95rem;
      backdrop-filter: blur(14px) saturate(150%);
      -webkit-backdrop-filter: blur(14px) saturate(150%);
      position:relative;
      transition: background .2s ease, border-color .2s ease, box-shadow .2s ease;
      white-space: nowrap;
      overflow:hidden;
      text-overflow: ellipsis;
    }
    .selectx-btn::after{
      content:"";
      position:absolute;
      right: 14px;
      top: 50%;
      width: 18px;
      height: 18px;
      transform: translateY(-50%);
      background-repeat:no-repeat;
      background-size:18px;
      background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24'%3E%3Cpath fill='rgba(255,255,255,0.75)' d='M7 10l5 5l5-5z'/%3E%3C/svg%3E");
      opacity:.95;
    }
    .selectx-btn:hover{ background: rgba(255,255,255,.10); border-color: rgba(255,255,255,.22); }
    .selectx.open .selectx-btn{
      border-color: var(--accentBorder);
      box-shadow: 0 0 0 3px rgba(124,92,255,.16);
      background: rgba(255,255,255,.11);
    }

    .selectx-panel{
      position:absolute;
      left:0;
      right:0;
      top: calc(100% + 10px);
      border-radius: 18px;
      overflow:hidden;
      z-index: 99999;            /* ✅ über alles */
      pointer-events: auto;      /* ✅ klickbar */

      background: linear-gradient(180deg, rgba(20,22,32,.72), rgba(12,14,22,.58));
      border: 1px solid rgba(255,255,255,.14);
      backdrop-filter: blur(18px) saturate(160%);
      -webkit-backdrop-filter: blur(18px) saturate(160%);
      box-shadow: 0 24px 70px rgba(0,0,0,.45);

      display:none;
    }
    .selectx.open .selectx-panel{ display:block; }

    .selectx-list{
      max-height: 480px;
      overflow:auto;
      padding: 8px;
      pointer-events: auto;
    }
    .selectx-item{
      padding: 10px 10px;
      border-radius: 12px;
      color: rgba(255,255,255,.90);
      cursor:pointer;
      user-select:none;
      white-space: nowrap;
      overflow:hidden;
      text-overflow: ellipsis;
      border: 1px solid transparent;
      transition: background .15s ease, border-color .15s ease;
      pointer-events: auto;
    }
    .selectx-item:hover{ background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.10); }
    .selectx-item.active{ background: rgba(124,92,255,.18); border-color: rgba(124,92,255,.40); }
    .selectx-item[aria-disabled="true"]{ 
      opacity: 0.8; 
      cursor: not-allowed; 
      color: #a78bfa;
    }
    .selectx-item[aria-disabled="true"]::before {
      content: '🔒 ';
      font-size: 0.85em;
    }
    .selectx-item[aria-disabled="true"]::after {
      content: ' (Nur für Mitglieder)';
      font-size: 0.8em;
      opacity: 0.7;
    }
    body.is-member .selectx-item[aria-disabled="true"]::after {
      content: ' (Derzeit nicht verfügbar)';
    }

/* ===== Dropdown-Fokus / Priorität + Hintergrund-Blur ===== */
.selectx{ z-index: 6000; }              /* Basis */
.selectx.open{ z-index: 120000; }       /* geöffnet immer ganz oben */

/* ===== Grid-Kalender für Jahr/Monat-Dropdown ===== */
.selectx-grid .selectx-panel{
  left: 0; right: 0;
}
.selectx-grid .selectx-list{
  max-height: none;
  padding: 6px;
}
.selectx-grid .selectx-item{
  border-radius: 8px;
  font-size: .82rem;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}


/* LISTE */
    ul{ list-style:none; padding:0; margin:0; }

    .episode-item{
      position:relative;
      display:flex;
      justify-content:space-between;
      align-items:center;
      gap: 14px;
      padding: 16px 14px;
      margin: 10px 0;

      border-radius: var(--r-md);
      
      /* Original Glass-Effekt */
      background: linear-gradient(180deg, rgba(14, 16, 26, .50), rgba(8, 10, 18, .40));
      
      border: 1px solid rgba(255,255,255,.08);
      
      backdrop-filter: blur(12px) saturate(180%);
      -webkit-backdrop-filter: blur(12px) saturate(180%);
      
      box-shadow: 0 18px 55px rgba(0,0,0,.16);

      transition: transform .15s cubic-bezier(0.4, 0, 0.2, 1), 
                  border-color .2s ease, 
                  box-shadow .2s ease;
    }
    .episode-item:hover{ 
        transform: translateY(-2px) translateZ(0); 
        border-color: rgba(255,255,255,.20); 
        box-shadow: 0 22px 70px rgba(0,0,0,.20); 
    }
    
    /* Visuelle Markierung für gehörte Episoden */
    .episode-item.watched {
        border-color: var(--color-watched);
        box-shadow: 0 18px 55px rgba(46, 204, 113, 0.16);
        background: linear-gradient(180deg, rgba(46, 204, 113, 0.10), rgba(8, 10, 18, .40));
    }
    .episode-item.watched:hover {
        box-shadow: 0 22px 70px rgba(46, 204, 113, 0.22);
    }
    
    .episode-item.active{
      background: linear-gradient(180deg, rgba(124,92,255,.25), rgba(12,14,22,.28));
      border-color: var(--accentBorder);
      box-shadow: 0 26px 80px rgba(124,92,255,.12);
    }
    
    /* Wenn Sterne aktiv: Leichter Blur beibehalten für Wetter-Effekt */
    body.stars-active .episode-item {
      backdrop-filter: blur(10px) saturate(140%);
      -webkit-backdrop-filter: blur(10px) saturate(140%);
      background: linear-gradient(180deg, rgba(18, 20, 32, .80), rgba(10, 12, 22, .75));
    }
    body.stars-active .episode-item.watched {
      background: linear-gradient(180deg, rgba(25, 45, 35, .80), rgba(10, 12, 22, .75));
    }
    body.stars-active .episode-item.active {
      background: linear-gradient(180deg, rgba(45, 35, 70, .80), rgba(12, 14, 24, .75));
    }

    .episode-info{
      display:flex;
      flex-wrap:wrap; /* Erlaubt Umbruch für den Text */
      gap: 6px 8px;
      align-items:baseline;
      min-width:0;
      width: 100%;
      flex: 1 1 auto;
    }
    .date{ font-weight:600; color: var(--muted); flex-shrink: 0; }
    .topic{ 
      color: var(--text); 
      display:inline; /* inline statt inline-block */
      max-width: 100%; /* Volle Breite erlauben */
      min-width:0; 
    }
    .topic-default{ color: var(--faint); }

    .source-tag{
      font-size: .72rem;
      padding: 4px 8px;
      border-radius: 999px;
      margin-left: 10px;
      white-space: nowrap;
      border: 1px solid rgba(255,255,255,.14);
      background: rgba(255,255,255,.06);
      color: var(--muted);
      flex-shrink: 0; /* Verhindert dass die Pille schrumpft */
      transition: transform 0.15s, background 0.2s;
    }
    .source-tag.thema{ border-color: rgba(124,92,255,.55); background: rgba(124,92,255,.14); color: rgba(255,255,255,.88); }
    .source-tag.sonder{ border-color: rgba(255, 107, 107, .55); background: rgba(255, 107, 107, .14); color: rgba(255,255,255,.88); }
    .source-tag.special{ border-color: rgba(233, 30, 99, .55); background: rgba(233, 30, 99, .14); color: rgba(255,255,255,.88); }
    .source-tag.interessant{ border-color: rgba(255, 193, 7, .55); background: rgba(255, 193, 7, .14); color: rgba(255,255,255,.88); }
    .source-tag.gaeste{ border-color: rgba(0, 188, 212, .55); background: rgba(0, 188, 212, .14); color: rgba(255,255,255,.88); }
    .source-tag.exklusiv-pill{ border-color: rgba(255, 215, 0, .5); background: linear-gradient(135deg, rgba(255, 215, 0, .15), rgba(255, 165, 0, .15)); color: rgba(255, 215, 0, .95); font-weight: 600; }
    .source-tag.musik{ border-color: rgba(156, 39, 176, .55); background: rgba(156, 39, 176, .14); color: rgba(255,255,255,.88); }
    .source-tag.video{ border-color: rgba(239, 68, 68, .55); background: rgba(239, 68, 68, .14); color: rgba(255,255,255,.88); }
    .source-tag.live{ border-color: rgba(239, 68, 68, .7); background: rgba(239, 68, 68, .2); color: #ff6b6b; font-weight: 600; }
    /* NEU-Balken: vertikaler Glasbalken links am Episodeneintrag */
    .new-episode-badge {
      position: absolute;
      left: 0; top: 0; bottom: 0;
      width: 22px;
      margin: 0 !important;
      padding: 0 !important;
      border-radius: 0 !important;
      border: none !important;
      border-right: none !important;
      background: linear-gradient(180deg, rgba(46,204,113,.22) 0%, rgba(46,204,113,.10) 100%) !important;
      backdrop-filter: blur(6px);
      -webkit-backdrop-filter: blur(6px);
      display: flex !important;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      gap: 1px;
      font-size: 0.6rem;
      font-weight: 700;
      letter-spacing: 0.05em;
      -webkit-font-smoothing: antialiased;
      -moz-osx-font-smoothing: grayscale;
      text-rendering: geometricPrecision;
      color: rgba(46,204,113,.95) !important;
      text-transform: uppercase;
      pointer-events: none;
      z-index: 2;
      animation: new-badge-pulse 2.5s ease-in-out infinite;
      flex-shrink: 0;
      border-radius: 0 !important;
    }
    .episode-item:has(.new-episode-badge) {
      position: relative;
      overflow: hidden;
      padding-left: 30px !important;
    }
    @keyframes new-badge-pulse {
      0%, 100% { opacity: 1; }
      50% { opacity: 0.55; }
    }
    .source-tag.warn{ border-color: rgba(255, 176, 0, .55); background: rgba(255, 176, 0, .12); color: rgba(255,255,255,.88); }
    
    /* Source-Tags mit Hauptthema sind klickbar */
    .source-tag.has-hauptthema-pill {
      cursor: pointer;
    }
    .source-tag.has-hauptthema-pill:hover {
      transform: scale(1.05);
      filter: brightness(1.2);
    }

.has-chapters-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.72rem;
  padding: 4px 8px;
  border-radius: 999px;
  margin-left: 10px;
  background: linear-gradient(135deg, rgba(124,92,255,.20), rgba(124,92,255,.12));
  color: rgba(124,92,255,.95);
  border: 1px solid rgba(124,92,255,.45);
  white-space: nowrap;
  transition: transform 0.15s, background 0.2s, filter 0.2s;
  cursor: pointer;
}

.has-chapters-pill:hover {
  transform: scale(1.05);
  filter: brightness(1.2);
  background: linear-gradient(135deg, rgba(124,92,255,.30), rgba(124,92,255,.20));
}

.has-info-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(59, 130, 246, 0.2);
  color: #3b82f6;
  font-size: 0.75rem;
  font-weight: 700;
  border: 1px solid rgba(59, 130, 246, 0.4);
  margin-left: 6px;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
  flex-shrink: 0;
}

.has-info-pill:hover {
  background: rgba(59, 130, 246, 0.35);
  transform: scale(1.1);
}

/* NEU: Transkript/SRT-Icon (UT = Untertitel) */
.has-srt-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(16, 185, 129, 0.2);
  color: #10b981;
  border: 1px solid rgba(16, 185, 129, 0.4);
  margin-left: 6px;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
  flex-shrink: 0;
  font-size: 0.55rem;
  font-weight: 700;
  letter-spacing: -0.3px;
  vertical-align: middle;
  position: relative;
  top: -1px;
}

.has-srt-icon:hover {
  background: rgba(16, 185, 129, 0.35);
  transform: scale(1.1);
}

/* TR-Button Loading State */
.has-srt-icon.loading {
  pointer-events: none;
  background: rgba(16, 185, 129, 0.3);
  color: transparent;
}
.has-srt-icon.loading::after {
  content: '';
  position: absolute;
  inset: 0;
  margin: auto;
  width: 12px;
  height: 12px;
  border: 2px solid rgba(16, 185, 129, 0.3);
  border-top-color: #10b981;
  border-radius: 50%;
  animation: tr-btn-spin 0.6s linear infinite;
}
@keyframes tr-btn-spin {
  to { transform: rotate(360deg); }
}

/* === EPISODE QUIZ BADGE === */
.has-quiz-badge {
  display: inline-flex; align-items: center; justify-content: center;
  width: 22px; height: 22px; border-radius: 50%;
  background: rgba(59, 130, 246, 0.2); color: #3b82f6;
  border: 1px solid rgba(59, 130, 246, 0.4); margin-left: 6px;
  cursor: pointer; transition: background 0.2s, transform 0.15s;
  flex-shrink: 0; font-size: 0.55rem; font-weight: 700;
  letter-spacing: -0.3px;
  vertical-align: middle; position: relative; top: -1px;
}
.has-quiz-badge:hover { background: rgba(59, 130, 246, 0.35); transform: scale(1.1); }
.has-quiz-badge.completed {
  background: rgba(59, 130, 246, 0.85); color: #fff;
  border-color: rgba(59, 130, 246, 0.9);
}
.has-quiz-badge.completed:hover { background: rgba(59, 130, 246, 0.95); }

/* Quiz-Badge: Locked-Styling ueberschreiben - normales Q fuer alle */
.has-quiz-badge.quiz-locked {
    opacity: 1 !important;
    cursor: pointer !important;
    filter: none !important;
}
.has-quiz-badge.quiz-locked::after {
    content: none !important;
}

/* Video-Link Icon (🎬 Filmklappe bei Audio-Episoden mit zugehörigem Video) */
.has-video-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(239, 68, 68, 0.15);
  color: rgba(239, 68, 68, 0.9);
  font-size: 0.7rem;
  font-weight: 700;
  border: 1px solid rgba(239, 68, 68, 0.35);
  margin-left: 4px;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
  flex-shrink: 0;
  vertical-align: middle;
  position: relative;
  top: -1px;
}
.has-video-link:hover {
  background: rgba(239, 68, 68, 0.3);
  transform: scale(1.1);
}
#quiz-panel {
  display: none; background: linear-gradient(180deg, rgba(11,15,26,.98), rgba(15,19,32,.96));
  border-top: 1px solid rgba(59, 130, 246, 0.2);
  max-height: 55vh; overflow: hidden; padding: 16px 20px;
}
#quiz-panel.active { display: block; }
.quiz-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.quiz-header h3 { margin: 0; font-size: 1rem; color: #fff; }
.quiz-progress-bar { height: 4px; background: rgba(255,255,255,.08); border-radius: 4px; overflow: hidden; margin-bottom: 14px; }
.quiz-progress-fill { height: 100%; background: linear-gradient(90deg, #3b82f6, #8b5cf6); border-radius: 4px; transition: width 0.5s ease; }
.quiz-question-card { background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.08); border-radius: 12px; padding: 14px 16px; margin-bottom: 10px; }
.quiz-question-text { font-size: 0.95rem; font-weight: 600; color: #fff; margin-bottom: 10px; line-height: 1.4; }
.quiz-question-meta { font-size: 0.75rem; color: rgba(255,255,255,.45); margin-bottom: 8px; }
.quiz-answers { display: grid; gap: 6px; }
.quiz-answer-btn {
  display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 8px;
  border: 1px solid rgba(255,255,255,.1); background: rgba(255,255,255,.04);
  color: rgba(255,255,255,.9); cursor: pointer; transition: all 0.15s;
  font-size: 0.9rem; text-align: left; width: 100%;
}
.quiz-answer-btn:hover:not(.answered) { background: rgba(59, 130, 246, 0.12); border-color: rgba(59, 130, 246, 0.3); }
.quiz-answer-btn.correct { background: rgba(46,204,113,.15)!important; border-color: rgba(46,204,113,.5)!important; color: #2ecc71!important; cursor: default; }
.quiz-answer-btn.wrong { background: rgba(231,76,60,.15)!important; border-color: rgba(231,76,60,.5)!important; color: #e74c3c!important; cursor: default; }
.quiz-answer-btn.answered:not(.correct):not(.wrong) { opacity: 0.4; cursor: default; }
.quiz-answer-btn .answer-num {
  width: 24px; height: 24px; border-radius: 50%; display: flex; align-items: center;
  justify-content: center; font-size: 0.75rem; font-weight: 700; flex-shrink: 0;
  background: rgba(255,255,255,.08); color: rgba(255,255,255,.5);
}
.quiz-answer-btn.correct .answer-num { background: rgba(46,204,113,.25); color: #2ecc71; }
.quiz-answer-btn.wrong .answer-num { background: rgba(231,76,60,.25); color: #e74c3c; }
.quiz-result-banner { text-align: center; padding: 20px; border-radius: 12px; background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.08); }
.quiz-result-score { font-size: 2rem; font-weight: 800; margin-bottom: 4px; }
.quiz-result-pct { font-size: 1.1rem; color: rgba(255,255,255,.7); }
.quiz-nav { display: flex; gap: 6px; margin-top: 12px; flex-wrap: wrap; justify-content: center; }
.quiz-nav-dot {
  width: 28px; height: 28px; border-radius: 50%; border: 1px solid rgba(255,255,255,.15);
  background: rgba(255,255,255,.04); color: rgba(255,255,255,.5);
  display: flex; align-items: center; justify-content: center; font-size: 0.7rem; font-weight: 700;
  cursor: pointer; transition: all 0.15s;
}
.quiz-nav-dot.active { border-color: rgba(59,130,246,.5); color: #3b82f6; background: rgba(59,130,246,.1); }
.quiz-nav-dot.correct { border-color: rgba(46,204,113,.5); color: #2ecc71; background: rgba(46,204,113,.1); }
.quiz-nav-dot.wrong { border-color: rgba(231,76,60,.5); color: #e74c3c; background: rgba(231,76,60,.1); }
#sticky-quiz-toggle {
  width: 38px; height: 38px; padding: 0; display: none; align-items: center; justify-content: center;
  background: rgba(59,130,246,.1); border: 1px solid rgba(59,130,246,.3); color: #3b82f6;
  border-radius: 8px; cursor: pointer; transition: all 0.2s;
}
#sticky-quiz-toggle:hover { background: rgba(59,130,246,.2); }
#sticky-quiz-toggle.active { background: rgba(59,130,246,.2); border-color: rgba(59,130,246,.5); }
#sticky-quiz-toggle.completed { background: rgba(59,130,246,.85); border-color: rgba(59,130,246,.9); color: #fff; }
#sticky-quiz-toggle.completed:hover { background: rgba(59,130,246,.95); }
@keyframes quizPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(59,130,246,0.7); }
  50% { box-shadow: 0 0 0 8px rgba(59,130,246,0); }
}
#sticky-quiz-toggle.quiz-pulse { animation: quizPulse 1.2s ease-in-out infinite; }
.quiz-login-prompt { text-align: center; padding: 24px; color: rgba(255,255,255,.7); font-size: 0.9rem; }
.quiz-login-prompt a { color: #3b82f6; text-decoration: none; font-weight: 600; }
@media (max-width: 768px) {
  #quiz-panel { padding: 12px 14px; max-height: 50vh; }
  .quiz-answer-btn { padding: 9px 12px; font-size: 0.85rem; }
}


    .episode-actions{
      display:flex;
      align-items:center;
      gap:10px;
      flex-shrink:0;
    }

    /* NEUER HAKEN-BUTTON STIL */
    .toggle-watched-btn {
        background: rgba(255,255,255,.08);
        border: 1px solid rgba(255,255,255,.14);
        border-radius: 12px;
        color: var(--muted);
        width: 38px;
        height: 38px;
        display: flex;
        align-items: center;
        justify-content: center;
        flex-shrink: 0;
        padding: 0;
        cursor: pointer;
        transition: transform .15s ease, background .2s ease, border-color .2s ease, color .2s ease;
    }
    .toggle-watched-btn:hover {
        transform: translateY(-1px);
        background: rgba(255,255,255,.12);
    }
    /* Stil wenn gesetzt (watched=true) */
    .toggle-watched-btn[data-status="true"] {
        background: rgba(46, 204, 113, 0.16);
        color: var(--color-watched);
        border-color: var(--color-watched);
    }
    .toggle-watched-btn[data-status="true"]:hover {
        background: rgba(46, 204, 113, 0.25);
        border-color: rgba(46, 204, 113, .65);
    }
    .toggle-watched-btn .icon {
        font-size: 1.2rem;
        line-height: 1;
    }

    /* PLAYLIST-BUTTON STIL */
    .toggle-playlist-btn {
        background: rgba(255,255,255,.08);
        border: 1px solid rgba(255,255,255,.14);
        border-radius: 12px;
        color: var(--muted);
        width: 38px;
        height: 38px;
        display: flex;
        align-items: center;
        justify-content: center;
        flex-shrink: 0;
        padding: 0;
        cursor: pointer;
        transition: transform .15s ease, background .2s ease, border-color .2s ease, color .2s ease, opacity .3s ease;
    }
    
    /* NEU: Buttons deaktiviert bis Playlist geladen - direkt auf Button-Klasse */
    .toggle-playlist-btn.playlist-loading {
        opacity: 0.3 !important;
        pointer-events: none !important;
        cursor: wait !important;
    }
    
    .toggle-playlist-btn:hover {
        transform: translateY(-1px);
        background: rgba(255,255,255,.12);
    }
    /* Stil wenn in Playlist (data-status="true") */
    .toggle-playlist-btn[data-status="true"] {
        background: rgba(255, 193, 7, 0.16);
        color: #ffc107;
        border-color: rgba(255, 193, 7, 0.45);
    }
    .toggle-playlist-btn[data-status="true"]:hover {
        background: rgba(255, 193, 7, 0.25);
        border-color: rgba(255, 193, 7, .65);
    }
    .toggle-playlist-btn .icon {
        font-size: 1.2rem;
        line-height: 1;
    }

    .play-button,
    .download-link{
      border: 1px solid rgba(255,255,255,.14);
      background: rgba(255,255,255,.08);
      color: var(--text);
      padding: 9px 12px;
      border-radius: 12px;
      font-size: .92rem;
      text-decoration:none;
      cursor:pointer;
      transition: transform .15s ease, background .2s ease, border-color .2s ease;
      white-space: nowrap;
    }
    .play-button:hover,
    .download-link:hover{
      transform: translateY(-1px);
      background: rgba(255,255,255,.10);
      border-color: rgba(255,255,255,.22);
    }
    /* Deaktivierter Download-Button Style */
    .download-link[disabled], 
    .download-link[disabled]:hover,
    .download-link[data-disabled="true"], 
    .download-link[data-disabled="true"]:hover {
        background: rgba(255, 50, 50, .15) !important; 
        color: var(--faint) !important; 
        cursor: not-allowed !important; 
        opacity: .7 !important;
        transform: none !important;
        border-color: rgba(255, 50, 50, .3) !important;
    }


    .mini-time{
      display:none;
      align-items:center;
      gap:8px;
      padding: 7px 10px;
      border-radius:999px;
      font-size:.78rem;

      background: linear-gradient(180deg, rgba(20,22,32,.55), rgba(12,14,22,.38));
      border: 1px solid rgba(255,255,255,.14);
      backdrop-filter: blur(16px) saturate(160%);
      -webkit-backdrop-filter: blur(16px) saturate(160%);
      box-shadow: 0 14px 40px rgba(0,0,0,.22);

      color: rgba(255,255,255,.88);
      font-variant-numeric: tabular-nums;
      letter-spacing:.02em;
      pointer-events:none;
    }
    .episode-item.active .mini-time{ display:inline-flex; }

    .mini-progress{
      position: relative;
      width: 100%;
      height: 7px;
      margin-top: 6px;
      margin-bottom: 2px;
      background: rgba(255,255,255,.14);
      border-radius: 999px;
      overflow: hidden;
      display:none;
      cursor:pointer;
      touch-action:none;
    }
    .episode-item.active .mini-progress{ display:block; }

    .mini-progress-bar{
      position:absolute;
      left:0; top:0; bottom:0;
      width:0%;
      background: linear-gradient(90deg, #7c5cff 0%, #a855f7 100%);
      border-radius: 999px;
      transition: width .12s linear;
      box-shadow: 0 0 10px rgba(124, 92, 255, 0.5);
    }
    .mini-progress-handle{
      position:absolute;
      top:50%;
      left:0%;
      width:12px;
      height:12px;
      transform: translate(-50%, -50%);
      border-radius:999px;
      background: rgba(255,255,255,.88);
      box-shadow: 0 6px 18px rgba(0,0,0,.35);
      border:1px solid rgba(255,255,255,.35);
      pointer-events:none;
      opacity:.95;
    }

    /* MediaElement */
    .mejs__container{
      background: rgba(255,255,255,.05) !important;
      border: none !important;
      border-radius: 14px !important;
      box-shadow: none !important;
      backdrop-filter: blur(18px) saturate(150%) !important;
      -webkit-backdrop-filter: blur(18px) saturate(150%) !important;
      padding: 6px 10px !important;
      outline: none !important;
    }
    /* Verstecke den mejs Play/Pause-Button (Custom-Buttons im Header steuern den Player) */
    .mejs__playpause-button,
    .mejs__volume-button,
    .mejs__mute,
    .mejs__unmute {
      position: absolute !important;
      width: 1px !important;
      height: 1px !important;
      overflow: hidden !important;
      clip: rect(0,0,0,0) !important;
      -webkit-clip-path: inset(50%) !important;
      clip-path: inset(50%) !important;
      opacity: 0 !important;
      pointer-events: none !important;
    }
    /* Verstecke das native Audio-Element komplett (verhindert Ghost-Play-Button) */
    .mejs__mediaelement,
    .mejs__mediaelement audio,
    .mejs__container audio,
    .mejs__container video,
    #sticky-player-mount audio,
    #sticky-player-mount video,
    #sticky-player-mount .mejs__mediaelement {
      position: absolute !important;
      width: 1px !important;
      height: 1px !important;
      overflow: hidden !important;
      pointer-events: none !important;
      opacity: 0 !important;
      clip: rect(0,0,0,0) !important;
      -webkit-clip-path: inset(50%) !important;
      clip-path: inset(50%) !important;
      z-index: -1 !important;
      visibility: hidden !important;
    }
    /* Browser-native Controls via Shadow DOM verstecken */
    audio::-webkit-media-controls,
    audio::-webkit-media-controls-panel,
    audio::-webkit-media-controls-play-button,
    audio::-webkit-media-controls-start-playback-button,
    audio::-webkit-media-controls-overlay-play-button,
    audio::-webkit-media-controls-enclosure {
      -webkit-appearance: none !important;
      display: none !important;
      opacity: 0 !important;
      pointer-events: none !important;
      visibility: hidden !important;
      width: 0 !important;
      height: 0 !important;
    }
    /* Overlay-Layer von MediaElement.js verstecken */
    .mejs__overlay,
    .mejs__overlay-play,
    .mejs__overlay-button,
    .mejs__poster {
      display: none !important;
      pointer-events: none !important;
    }
    .mejs__container:focus,
    .mejs__container:focus-visible {
      outline: none !important;
      border: none !important;
      box-shadow: none !important;
    }
    .mejs__controls{ 
      background: transparent !important; 
      padding: 6px 6px !important; /* ORIGINAL DESKTOP PADDING */
      display: flex !important;
      align-items: center !important;
    }
    .mejs__time, .mejs__duration{ 
      color: var(--muted) !important; 
      font-weight: 500;
    }
    
    /* PROGRESS BAR - GRÖSSERER TOUCH-BEREICH */
    .mejs__time-rail {
      padding: 8px 0 !important;
    }
    .mejs__time-total{ 
      background: rgba(124, 92, 255, 0.2) !important; /* Helleres Lila wie in Episode-Liste */
      border-radius: 999px !important;
      height: 6px !important;
      margin: 10px 0 !important;
      overflow: hidden !important; /* Für Gradient-Overflow */
    }
    .mejs__time-current{ 
      background: linear-gradient(90deg, #7c5cff 0%, #a855f7 100%) !important; /* GRADIENT wie Episode-Liste! */
      border-radius: 999px !important;
      box-shadow: 0 0 10px rgba(124, 92, 255, 0.5) !important; /* Leichter Glow-Effekt */
    }
    .mejs__time-loaded {
      background: rgba(124, 92, 255, 0.3) !important; /* Geladener Teil etwas heller */
      border-radius: 999px !important;
    }
    .mejs__time-handle {
      display: none !important; /* Verstecke den Handle komplett */
    }
    .mejs__time-handle-content {
      display: none !important;
    }
    
    /* Lautstärke-Slider mit gleichem Stil */
    .mejs__horizontal-volume-total{ 
      background: rgba(124, 92, 255, 0.2) !important; 
      border-radius: 999px !important; 
    }
    .mejs__horizontal-volume-current{ 
      background: linear-gradient(90deg, #7c5cff 0%, #a855f7 100%) !important; /* GRADIENT! */
      border-radius: 999px !important; 
    }
    
    /* ENTFERNE ALLE WEISSEN RAHMEN VON MEDIAELEMENT KOMPONENTEN */
    /* ABER: box-shadow für .mejs__time-current erlauben (für Glow-Effekt) */
    .mejs__container *:not(.mejs__time-current),
    .mejs__controls *:not(.mejs__time-current),
    .mejs__time-rail *:not(.mejs__time-current),
    .mejs__horizontal-volume-slider *,
    .mejs__volume-button *,
    .mejs__button *,
    .mejs__playpause-button *,
    .mejs__time *,
    .mejs__time-total *,
    .mejs__time-loaded *,
    .mejs__horizontal-volume-total *,
    .mejs__horizontal-volume-current * {
      border: none !important;
      outline: none !important;
      box-shadow: none !important;
    }
    
    /* AUCH BEI FOCUS */
    .mejs__container *:focus,
    .mejs__container *:focus-visible,
    .mejs__controls *:focus,
    .mejs__controls *:focus-visible {
      border: none !important;
      outline: none !important;
      box-shadow: none !important;
    }

    .year-block, .month-block { display:none; }
    #themed-archive-container{ display:none; margin-top: 26px; }
    #sonder-archive-container{ display:none; margin-top: 26px; }
    #special-archive-container{ display:none; margin-top: 26px; }
    #interessant-archive-container{ display:none; margin-top: 26px; }
    #gaeste-archive-container{ display:none; margin-top: 26px; }
    #musik-archive-container{ display:none; margin-top: 26px; }
    #videos-archive-container{ display:none; margin-top: 26px; }
    /* Video Player Styles */
    #sticky-video-container { width:100%; background:#000; display:flex; flex-direction:column; align-items:center; position:relative; }
    #sticky-video-display,
    #sticky-video-container > #sticky-video-player {
      display:block; background:#000; cursor:pointer;
      /* Standard: Mini - feste Breite, Höhe passt sich ans Seitenverhältnis an */
      width:640px; height:auto; max-width:100%;
    }
    #sticky-video-display.video-size-original,
    #sticky-video-container > #sticky-video-player.video-size-original {
      width:100%; height:auto;
    }
    /* Fullscreen: Video füllt den ganzen Bildschirm */
    #sticky-video-player:fullscreen {
      width:100vw !important; height:100vh !important; max-width:none !important;
      object-fit:contain; background:#000;
    }
    /* Verstecke das Original-Video im MediaElement.js Wrapper */
    #sticky-player-mount .mejs__container video,
    #sticky-player-mount video#sticky-video-player {
      position:absolute!important; width:1px!important; height:1px!important;
      opacity:0!important; pointer-events:none!important; overflow:hidden!important;
    }
    #sticky-player-mount .mejs__container { width:100%!important; }
    #sticky-player-mount .mejs__container.mejs__video {
      height: auto !important; min-height: 40px !important; max-height: 60px !important; overflow: hidden !important;
    }
    #sticky-player-mount .mejs__container.mejs__video .mejs__mediaelement,
    #sticky-player-mount .mejs__container.mejs__video .mejs__overlay,
    #sticky-player-mount .mejs__container.mejs__video .mejs__poster,
    #sticky-player-mount .mejs__container.mejs__video .mejs__overlay-play,
    #sticky-player-mount .mejs__container.mejs__video .mejs__overlay-loading {
      display: none !important; position: absolute !important; width: 1px !important; height: 1px !important;
    }
    /* Vollbild-Button: dezent, nur sichtbar bei Hover */
    .video-fullscreen-btn { background:rgba(0,0,0,0.35)!important; }
    /* MEJS nativer Fullscreen-Button: komplett ausblenden (eigener Button im Video vorhanden) */
    #sticky-player-mount .mejs__fullscreen-button { display: none !important; }
    /* Fullscreen: Verstecke native Browser-Controls (Volume/Audio-Track-Liste) */
    #sticky-video-display::-webkit-media-controls,
    #sticky-video-player::-webkit-media-controls { display: none !important; }
    #sticky-video-display::-webkit-media-controls-enclosure,
    #sticky-video-player::-webkit-media-controls-enclosure { display: none !important; }
    #sticky-video-display::-webkit-media-controls-panel,
    #sticky-video-player::-webkit-media-controls-panel { display: none !important; }
    /* videoContainer im Vollbild: Video füllt den Bildschirm, Controls bleiben sichtbar */
    #sticky-video-container:fullscreen,
    #sticky-video-container:-webkit-full-screen {
      width: 100vw !important;
      height: 100vh !important;
      background: #000 !important;
      display: flex !important;
      align-items: center !important;
      justify-content: center !important;
    }
    #sticky-video-container:fullscreen #sticky-video-display,
    #sticky-video-container:-webkit-full-screen #sticky-video-display {
      width: 100vw !important;
      height: 100vh !important;
      max-width: none !important;
      object-fit: contain !important;
    }
    /* Untertitel im Vollbild: etwas größer */
    #sticky-video-container:fullscreen #sticky-video-display::cue,
    #sticky-video-container:-webkit-full-screen #sticky-video-display::cue {
      font-size: 1.6rem !important;
    }
    /* Video-Untertitel Styling (normal) */
    #sticky-video-display::cue {
      background: rgba(0,0,0,0.75);
      color: #fff;
      font-size: 1.1rem;
      font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
      line-height: 1.4;
      padding: 2px 6px;
      border-radius: 4px;
    }
    /* MEJS Controls im Video-Modus: IMMER sichtbar, kein Autohide */
    #sticky-player-mount .mejs__container.mejs__video .mejs__controls {
      display: flex !important;
      visibility: visible !important;
      opacity: 1 !important;
      transform: none !important;
      position: relative !important;
      bottom: auto !important;
    }
    /* iOS nativer Video-Player: MEJS-Mount verstecken wenn iOS-Video aktiv */
    body.ios-video-mode #sticky-player-mount { display: none !important; }

    /* iOS Video: Chat-Pille nach oben verschieben damit sie die Video-Controls nicht überlagert */
    .chat-widget.minimized {
      transition: bottom 0.5s cubic-bezier(0.4, 0, 0.2, 1),
                  right 0.3s ease !important;
    }
    body.ios-video-mode .chat-widget.minimized {
      bottom: calc(100vh - 54px) !important;
      right: 12px;
    }

    /* MOBILE (Wiederherstellung des gewünschten Layouts) */
    @media (max-width: 900px){
      /* FILTER MOBILE */
      .filter-row{ grid-template-columns: max-content 1fr; }
      .filter-row.bottom{ grid-template-columns: max-content 1fr; }
      .filter-action{ justify-self: stretch; }
      .filter-action .glass-btn{ width:100%; justify-content:center; }

/* EPISODE ITEM MOBILE LAYOUT WIEDERHERSTELLEN */
      .episode-item{
        flex-direction: column; /* Vertikal stapeln */
        align-items: stretch;
        gap: 8px; /* Reduziert von 12px für kompakteres Layout */
        padding: 12px !important; /* Reduziert von 14px für mehr Platz */
      }
      
      .episode-actions{
        justify-content: flex-start; /* Buttons linksbündig */
        flex-wrap: wrap;
        margin-top: 0 !important; /* Kein zusätzlicher Abstand */
      }
      
      .episode-info {
          flex: 1 1 100%; /* Volle Breite für Info Block */
          /* Sicherstellen, dass Datum/Thema/Tag in einer Zeile bleiben, wenn möglich,
             und der Tag rechts angezeigt wird, wie in image1.jpg */
          display: flex;
          justify-content: space-between;
          align-items: center;
          flex-wrap: nowrap; /* Verhindert Umbruch des Datums/Themas */
          margin-bottom: 0;
      }
      
      /* Anpassungen für den Tag */
      .episode-info .source-tag {
          margin-left: 10px; /* Abstand zum Thema */
          flex-shrink: 0;
          flex-basis: auto;
          margin-top: 0;
      }
      
      /* Mini-Progress muss unter Info/Tag auf volle Breite */
      .episode-info .mini-progress {
          flex-basis: 100%; 
          order: 99; /* Zwang unter die Haupt-Infos */
          margin-top: 6px !important; /* Weiter reduziert für kompakteres Layout */
          margin-bottom: 2px !important; /* Minimaler Abstand nach unten */
          height: 8px; /* Auf Mobile etwas höher für bessere Touch-Bedienung */
      }
      
      /* Playback Progress Container auf Mobile optimieren */
      .playback-progress-container {
          margin-top: 4px !important;
          order: 50 !important; /* Nach mini-progress (40) */
      }
      
      .playback-time-display {
          margin-top: 2px !important;
          font-size: 0.7rem !important;
          order: 51 !important; /* Nach playback-progress-container */
      }
      
      /* mini-progress (Zeitleiste) muss VOR playback-progress kommen */
      .episode-item .mini-progress {
          order: 40 !important;
      }

      .selectx-panel{ position: static; margin-top: 10px; }
    }
    
    /* Welcome-Content Card Basis-Styles */
    .welcome-content {
      max-width: 900px;
      margin: 0 auto;
      padding: 30px;
      background: rgba(255,255,255,.04);
      border: 1px solid rgba(255,255,255,.08);
      border-radius: 16px;
    }

    /* Welcome screen desktop layout */
    @media (min-width: 768px) {
      .welcome-content {
        flex-direction: row !important;
        text-align: left;
      }
      
      /* Sticky player - horizontal layout on desktop */
      .sticky-head {
        flex-direction: row !important;
        align-items: center !important;
      }
      
      /* Hide mobile now-playing, show desktop version */
      .sticky-now-playing {
        display: none !important;
      }
      
      .sticky-now-playing-desktop {
        display: block !important;
        text-align: center !important;
      }
      
      .sticky-now-playing-desktop .sticky-kicker {
        text-align: center;
      }
      
      .sticky-now-playing-desktop .sticky-title {
        text-align: center;
        margin: 0 auto;
      }
      
      .mobile-spacer {
        display: none !important;
      }
      
      .sticky-controls {
        flex: 1;
        width: 100%;
      }
      
      .sticky-title {
        max-width: 600px;
      }
    }
    
    @media (max-width: 600px){
      body{ padding:16px 10px; }
      .logo{ width: 200px; margin-bottom: 10px; }
      .brand-sub{ font-size: 12px; letter-spacing: .12em; }
      .glass-container{ padding: 14px; border-radius: 16px; }
      .sticky-head{ padding: 10px 8px 8px 8px !important; } /* Mobile: symmetrisches Padding */
      #sticky-player-mount{ padding: 0 8px 6px !important; } /* Mobile: symmetrisches Padding */
      /* Player wächst nach oben, nicht nach unten */
      .sticky-player{
        max-height: 92vh !important;
        overflow-y: auto !important;
        -webkit-overflow-scrolling: touch !important;
        overscroll-behavior: contain !important;
        /* Reduzierter Blur für ältere iOS-Geräte (iPhone X etc.) */
        backdrop-filter: blur(12px) saturate(140%) !important;
        -webkit-backdrop-filter: blur(12px) saturate(140%) !important;
        background: linear-gradient(180deg, rgba(20,22,32,.92), rgba(12,14,22,.88)) !important;
      }
      #quiz-panel { max-height: none !important; }
      .glass-btn{ padding: 7px 9px; font-size:.85rem; }
      .mini-time{ font-size:.72rem; padding:6px 9px; }
      
      /* NEU: Scroll-Isolation für Player-Container auf Mobile */
      #sticky-chapters-container,
      #sticky-hauptthema-container {
        overscroll-behavior: contain !important;
        -webkit-overflow-scrolling: touch !important;
        touch-action: pan-y !important;
        isolation: isolate !important;
      }
      
      /* JETZT LÄUFT - Mittig, symmetrisches Padding damit Text wirklich zentriert ist */
      .sticky-now-playing {
        text-align: center !important;
        padding: 0 40px !important; /* Platz für Topic-Text, X-Button hat absolute Position */
      }
      
      /* X-BUTTON OBEN RECHTS */
      #sticky-close {
        position: absolute !important;
        top: 10px !important;
        right: 10px !important;
        width: 28px !important;
        height: 28px !important;
        min-width: 28px !important;
        padding: 0 !important;
        margin: 0 !important;
        z-index: 10 !important;
        font-size: 0.85rem !important;
      }
      
      /* SKIP BUTTONS - kleiner */
      #sticky-skip-back,
      #sticky-skip-forward {
        width: 36px !important;
        height: 36px !important;
        min-width: 36px !important;
        font-size: 0.95rem !important;
      }
      
      /* Play/Pause Button */
      #sticky-play-pause {
        width: 40px !important;
        height: 40px !important;
        min-width: 40px !important;
        font-size: 1.2rem !important;
      }
      
      /* Mobile Spacer entfernen - mehr Platz an den Rändern */
      .mobile-spacer {
        display: none !important;
      }
      
      /* Mehr Padding an den Seiten des Players */
      .sticky-head {
        padding: 10px 12px 8px 12px !important;
        position: relative !important;
      }
      #sticky-player-mount {
        padding: 0 12px 6px !important;
      }
      
      /* RECHTE BUTTONS - KLEINER, ENGER */
      #sticky-watched,
      #sticky-quiz-toggle,
      #sticky-quiz-toggle-locked,
      #sticky-chapters-toggle,
      #sticky-playlist,
      #sticky-subtitles-toggle {
        width: 32px !important;
        height: 32px !important;
        min-width: 32px !important;
        flex-shrink: 0 !important;
        margin: 0 !important;
      }

      /* Button SVGs auf Mobile anpassen */
      #sticky-subtitles-toggle svg,
      #sticky-quiz-toggle svg,
      #sticky-quiz-toggle-locked svg {
        width: 18px !important;
        height: 18px !important;
      }
      
      /* Buttons sichtbar machen wenn aktiv */
      #sticky-subtitles-toggle[style*="display: flex"],
      #sticky-subtitles-toggle[style*="display:flex"],
      #sticky-quiz-toggle[style*="display: flex"],
      #sticky-quiz-toggle[style*="display:flex"],
      #sticky-share[style*="display: flex"],
      #sticky-share[style*="display:flex"] {
        display: flex !important;
      }
      
      /* Mobile: Quiz-Toggle klickbar machen (z-index + touch-action) */
      #sticky-quiz-toggle {
        z-index: 5 !important;
        touch-action: manipulation !important;
        -webkit-tap-highlight-color: rgba(59, 130, 246, 0.3) !important;
        pointer-events: auto !important;
      }
      
      /* Mobile: Kein Hochspringen bei Touch auf Buttons */
      .skip-btn:hover,
      .skip-btn:active,
      .skip-btn:focus {
        transform: none !important;
      }
      .glass-btn:hover,
      .glass-btn:active,
      .glass-btn:focus {
        transform: none !important;
      }

      /* Speed Button auf Mobile kleiner */
      #sticky-speed {
        width: 32px !important;
        height: 32px !important;
        min-width: 32px !important;
        padding: 0 4px !important;
        font-size: 0.7rem !important;
        flex-shrink: 0 !important;
        margin-right: 12px !important;
      }
      
      /* Lesezeichen verstecken auf Mobile */
      #sticky-bookmark {
        display: none !important;
      }

      /* Share-Button auf Mobile: oben rechts, links neben X */
      #sticky-share {
        position: absolute !important;
        top: 10px !important;
        right: 44px !important;
        width: 28px !important;
        height: 28px !important;
        min-width: 28px !important;
        padding: 0 !important;
        margin: 0 !important;
        z-index: 10 !important;
      }
      #sticky-share svg {
        width: 16px !important;
        height: 16px !important;
      }
      
      #sticky-jump {
        height: 32px !important;
        font-size: 0.65rem !important;
        padding: 4px 6px !important;
        white-space: nowrap !important;
        min-width: auto !important;
        flex-shrink: 0 !important;
        position: absolute !important;
        top: 10px !important;
        left: 10px !important;
        z-index: 10 !important;
      }
      
      /* Sticky Controls - weniger Gap */
      .sticky-controls {
        gap: 3px !important;
        justify-content: center !important; /* Nur die Buttons mittig */
        padding: 0 4px !important; /* Mehr Platz links/rechts */
      }
      
      /* MediaElement Player Controls */
      #sticky-player-mount .mejs__button,
      .mejs__button {
        width: 48px !important;
        height: 48px !important;
        min-width: 48px !important;
        margin: 0 !important;
        flex-shrink: 0 !important;
      }
      
      #sticky-player-mount .mejs__playpause-button,
      .mejs__playpause-button {
        width: 50px !important;
        min-width: 50px !important;
        margin: 0 !important;
      }
      
      #sticky-player-mount .mejs__skip-back-button, 
      #sticky-player-mount .mejs__skip-forward-button,
      .mejs__skip-back-button, 
      .mejs__skip-forward-button {
        width: 48px !important;
        min-width: 48px !important;
        margin: 0 !important;
      }
      
      #sticky-player-mount .mejs__controls,
      .mejs__controls {
        gap: 4px !important;
        justify-content: flex-start !important; /* Progress-Bar NICHT mittig */
        padding: 6px 8px !important;
        margin: 0 !important;
      }
      
      /* Mobile: Sticky Player Mount symmetrisches Padding */
      #sticky-player-mount {
        padding: 0 8px 6px !important; /* Symmetrisches Padding */
        margin: 0 !important;
      }
      
      /* Mobile: Sticky Head symmetrisches Padding und mittig */
      .sticky-head {
        padding: 10px 8px 8px 8px !important; /* Symmetrisches seitliches Padding */
        align-items: center !important; /* Alles mittig */
      }
      
      /* Mobile: Time-Rail Margins auf 0 */
      .mejs__time-rail {
        margin: 0 !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
      }
      
      .mejs__time-total {
        margin-left: 0 !important;
        margin-right: 0 !important;
      }
      
      /* Mobile: Buttons VIEL kleiner machen damit Progress-Bar mehr Platz hat */
      #sticky-player-mount .mejs__button,
      .mejs__button {
        width: 36px !important;
        height: 36px !important;
        min-width: 36px !important;
      }
      
      #sticky-player-mount .mejs__playpause-button,
      .mejs__playpause-button {
        width: 40px !important;
        min-width: 40px !important;
      }
      
      #sticky-player-mount .mejs__skip-back-button,
      #sticky-player-mount .mejs__skip-forward-button,
      .mejs__skip-back-button,
      .mejs__skip-forward-button {
        width: 38px !important;
        min-width: 38px !important;
      }
      
      /* Mobile: Zeit-Anzeigen kleiner */
      .mejs__time,
      .mejs__duration {
        font-size: 0.7rem !important;
      }
      
      /* Mobile: Zeige den Scrubber-Handle für bessere Bedienung */
      .mejs__time-handle {
        display: block !important;
        width: 12px !important; /* Kleiner: 12px statt 14px */
        height: 12px !important;
        background: #fff !important;
        border-radius: 50% !important;
        position: absolute !important;
        top: 50% !important;
        margin-top: -6px !important; /* Half of 12px */
        margin-left: -6px !important; /* Half of 12px */
        box-shadow: 0 2px 6px rgba(0,0,0,0.3) !important; /* Weicherer Schatten */
        border: 2px solid rgba(124, 92, 255, 0.8) !important; /* Lila Border */
        z-index: 10 !important;
        cursor: pointer !important;
      }
      
      .mejs__time-handle-content {
        display: block !important;
        width: 100% !important;
        height: 100% !important;
      }
      
      /* Live Player Mobile */
      #live-player-container {
        flex-direction: column;
        gap: 16px;
        padding: 16px 14px;
        max-width: 100vw;
        overflow-x: hidden;
      }
      
      /* Auch auf Mobile: Kein Platz wenn ausgeblendet! */
      #live-player-container[style*="display: none"],
      #live-player-container[style*="display:none"] {
        margin: 0 !important;
        padding: 0 !important;
        height: 0 !important;
        min-height: 0 !important;
        max-height: 0 !important;
      }
      
      .live-info {
        min-width: auto;
        width: 100%;
        max-width: 100%;
      }
      
      .audio-wrapper {
        max-width: 100%;
        overflow-x: hidden;
        padding: 14px 18px; /* Mehr Padding damit Button nicht rausbricht */
      }
      
      /* CD Cover auf Mobile - VERSTECKT */
      .live-cd-cover {
        display: none !important;
      }
      
      /* Welcome screen mobile */
      .welcome-content {
        padding: 20px 15px !important;
      }
      
      /* Banner mobile - höher und kleiner */
      .years-badge-corner {
        top: 20px !important;
        left: -30px !important;
        font-size: 9px !important;
        padding: 4px 30px !important;
        letter-spacing: 0.1em !important;
      }
      
      /* Search wrapper mobile - breiter und dicker */
      .search-wrapper {
        max-width: 279px !important; /* 266px + 5% = 279px */
        margin: 0 0 15px 0 !important;
        margin-left: auto !important;
      }
      
      #theme-search {
        padding: 11px 34px 11px 34px !important; /* noch dicker: 11px */
        font-size: 0.78rem !important;
        border-radius: 9px !important;
      }
      
      .search-wrapper span {
        left: 10px !important;
        font-size: 0.9rem !important;
      }
      
      #clear-search {
        right: 10px !important;
        font-size: 1rem !important;
      }
      
      /* Kategorie-Button auf Mobile - gleiche Höhe wie Suchleiste */
      #category-browser-btn {
        width: 38px !important;
        height: 38px !important;
        border-radius: 9px !important;
        font-size: 1.1rem !important;
      }
      
      /* Timer - Mobile Scroll Picker */
      .timer-desktop {
        display: none !important;
      }
      
      .timer-mobile {
        display: block !important;
      }

      /* Mobile Layout für episode-info:
         Zeile 1: [THEMA/OFFEN] [KAPITEL] ............ Datum
         Zeile 2: Der Topic-Text (nur bei echten Themen)
      */
      .episode-item .episode-info {
          display: flex;
          flex-wrap: wrap;
          align-items: center;
          gap: 4px;
      }
      
      /* Datum rechts oben - OHNE Punkt auf Mobile */
      .episode-item .date {
          order: 10;
          margin-left: auto;
          font-size: 0.85rem;
      }
      
      /* Punkt nach Datum auf Mobile ausblenden */
      .episode-item .date::after {
          content: none !important;
      }
      
      /* Topic-Text auf neue Zeile, volle Breite */
      .episode-item .topic {
          order: 20;
          width: 100%;
          flex-basis: 100%;
          padding-left: 0;
          margin-top: 4px;
          font-size: 0.95rem;
          line-height: 1.3;
      }
      
      /* Bei "Offene Sendung" - topic verstecken */
      .episode-item .topic.topic-default {
          display: none;
      }
      
      /* THEMA/OFFEN Pill links */
      .episode-item .source-tag {
          order: 1 !important;
          margin: 0 2px 0 0 !important;
          font-size: .65rem !important;
          padding: 3px 6px !important;
      }
      
      /* HIGHLIGHT Pill auch links */
      .episode-item .source-tag.interessant {
          order: 1 !important;
          margin: 0 2px 0 0 !important;
      }
      
      /* KAPITEL Pill nach THEMA */
      .episode-item .has-chapters-pill {
          order: 2 !important;
          margin: 0 2px 0 0 !important;
      }
      
      /* Video-Link Icon NACH KAPITEL */
      .episode-item .has-video-link {
          order: 3 !important;
          margin: 0 2px 0 0 !important;
      }
      
      /* TR Icon NACH Video */
      .episode-item .has-srt-icon {
          order: 4 !important;
          margin: 0 2px 0 0 !important;
      }
      
      /* Q-Badge RECHTS neben TR */
      .episode-item .has-quiz-badge {
          order: 5 !important;
          margin: 0 2px 0 0 !important;
      }
      
      /* Verified Checkbox nach Q */
      .episode-item .verified-checkbox {
          order: 6 !important;
          margin: 0 2px 0 0 !important;
      }
      
      /* Forum Pill nach Checkbox */
      .episode-item .has-forum-pill {
          order: 7 !important;
          margin: 0 2px 0 0 !important;
      }
      
      /* Datum RECHTS (mit auto-margin) - nie umbrechen */
      .episode-item .date {
          order: 10 !important;
          margin-left: auto !important;
          margin-right: 0 !important;
          flex-shrink: 0 !important;
          white-space: nowrap !important;
      }
      
      /* Audio/Video Toggle auf eigene Zeile unter Pills+Datum */
      .episode-item .archive-media-toggle {
          order: 15 !important;
          flex-basis: 100% !important;
          width: fit-content !important;
          margin-top: 2px !important;
      }

      /* KAPITEL-Pill gleiche Größe wie source-tags */
      .episode-item .has-chapters-pill {
          font-size: .65rem !important;
          padding: 3px 6px !important;
      }

      /* Topic UNTEN auf eigener Zeile */
      .episode-item .topic {
          order: 20 !important;
          width: 100% !important;
          flex-basis: 100% !important;
          margin-top: 6px !important;
          margin-left: 0 !important;
      }
      
      /* Progress Bar - NACH Player-Buttons */
      .episode-item .mini-progress {
          order: 40;
          width: 100%;
          margin-top: 8px;
      }
      
      /* Player Actions kommen vor Progress Bar */
      .episode-item .episode-actions {
          order: 35;
          width: 100%;
      }
      
      /* Wichtig: episode-info muss flex-column sein auf Mobile */
      .episode-item {
          display: flex;
          flex-direction: column;
      }
      
      /* episode-info enthält alles AUßER episode-actions */
      .episode-item > * {
          order: 0; /* Default */
      }
      
      /* episode-info (enthält Datum, Topic, Progress) */
      .episode-item .episode-info {
          order: 10;
      }
      
      /* episode-actions (Buttons) */
      .episode-item .episode-actions {
          order: 20; /* NACH episode-info */
          margin-top: 10px;
      }
      
      /* Scroll-to-Top Button - UNTEN rechts, ÜBER dem Chat-Button */
      #scroll-to-top {
          bottom: 100px !important; /* Über Chat */
          top: auto !important;
          right: 20px !important; /* Rechts wie Chat */
          width: 50px !important;
          height: 50px !important;
          z-index: 99998 !important;
      }
      
      /* Wenn Chat offen: Button bleibt sichtbar */
      body.chat-open #scroll-to-top {
          opacity: 1 !important;
      }
      
      /* ===== MOBILE PERFORMANCE BOOST ===== */
      /* Reduziere backdrop-filter auf Mobile (CPU-intensiv!) */
      .glass-container,
      .glass-btn,
      #scroll-to-top {
        backdrop-filter: blur(8px) !important;
        -webkit-backdrop-filter: blur(8px) !important;
      }
      
      /* Deaktiviere nicht-essentielle Transitions */
      .episode-item,
      .glass-btn,
      .toggle-watched-btn,
      .toggle-playlist-btn {
        transition: none !important;
      }
    }
    
    /* ===== SCROLL TO TOP BUTTON ===== */
    #scroll-to-top {
      position: fixed;
      bottom: 60px; /* Gleiche Höhe wie Chat-Button */
      right: 280px; /* Links vom Chat (Chat: right 15px + width 120px + gap 20px + scroll-button 60px + gap 65px) */
      width: var(--scroll-btn-size);
      height: var(--scroll-btn-size);
      background: rgba(124, 92, 255, 0.15);
      backdrop-filter: blur(12px);
      border: 1.5px solid var(--accentBorder);
      border-radius: 50%;
      cursor: pointer;
      opacity: 0;
      visibility: hidden;
      transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
      z-index: 9998;
      display: flex;
      align-items: center;
      justify-content: center;
      box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    }
    
    /* Wenn Chat offen ist: weiter links positionieren */
    body.chat-open #scroll-to-top {
      right: 360px;
      bottom: 100px;
    }
    
    #scroll-to-top.visible {
      opacity: 1;
      visibility: visible;
    }
    
    #scroll-to-top:hover {
      background: rgba(124, 92, 255, 0.25);
      border-color: var(--accent);
      transform: translateY(-3px);
      box-shadow: 0 6px 25px rgba(124, 92, 255, 0.4);
    }
    
    #scroll-to-top:active {
      transform: translateY(-1px);
    }
    
    #scroll-to-top svg {
      width: 24px;
      height: 24px;
      fill: none;
      stroke: var(--accent);
      stroke-width: 2.5;
      stroke-linecap: round;
      stroke-linejoin: round;
    }
    
    /* Mobile: Scroll-Button rechts unten unter dem Chat */
    @media (max-width: 768px) {
      #scroll-to-top {
        right: 15px;
        bottom: 25px; /* Unter dem Chat (Chat ist bei 60px wenn minimiert) */
      }
      
      body.chat-open #scroll-to-top {
        bottom: calc(100% - 80px); /* Über dem offenen Chat */
        right: 15px;
      }
    }
    
    /* ===== LIVE PLAYER ===== */
    #live-player-container {
      max-width: 1040px;
      margin: 0 auto 26px;
      padding: 20px 26px;
      border-radius: var(--r-md);
      background: 
        radial-gradient(circle at top right, rgba(124, 92, 255, 0.15), transparent 60%),
        linear-gradient(135deg, rgba(14, 16, 26, .85), rgba(8, 10, 18, .75));
      backdrop-filter: blur(6px) saturate(180%);
      -webkit-backdrop-filter: blur(6px) saturate(180%);
      border: 1.5px solid rgba(124, 92, 255, 0.25);
      box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.4),
        0 0 60px rgba(124, 92, 255, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
      position: relative;
      z-index: 10; /* VOR dem Wetter (Wetter ist z-index: 1) */
      overflow: hidden;
      display: flex;
      align-items: center;
      gap: 24px;
    }
    
    /* WICHTIG: Wenn Player ausgeblendet ist - KEIN PLATZ! */
    #live-player-container[style*="display: none"],
    #live-player-container[style*="display:none"] {
      margin: 0 !important;
      padding: 0 !important;
      height: 0 !important;
      min-height: 0 !important;
      max-height: 0 !important;
      border: none !important;
      box-shadow: none !important;
      overflow: hidden !important;
    }
    
    /* Animated background glow */
    #live-player-container::before {
      content: '';
      position: absolute;
      top: -50%;
      left: -50%;
      width: 200%;
      height: 200%;
      background: radial-gradient(circle, rgba(124, 92, 255, 0.08) 0%, transparent 70%);
      animation: rotateGlow 15s linear infinite;
      pointer-events: none;
    }
    
    @keyframes rotateGlow {
      0% { transform: rotate(0deg); }
      100% { transform: rotate(360deg); }
    }
    
    /* Left section - LIVE indicator */
    #live-player-container .live-header {
      position: relative;
      z-index: 1;
      flex-shrink: 0;
    }
    
    #live-player-container .live-indicator {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      font-size: 0.75rem;
      font-weight: 700;
      color: #fff;
      text-transform: uppercase;
      letter-spacing: 0.12em;
      padding: 6px 14px;
      background: linear-gradient(135deg, rgba(124, 92, 255, 0.25), rgba(124, 92, 255, 0.15));
      border: 1.5px solid rgba(124, 92, 255, 0.5);
      border-radius: 999px;
      box-shadow: 
        0 4px 12px rgba(124, 92, 255, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    }
    
    #live-player-container .live-dot {
      width: 8px;
      height: 8px;
      background: linear-gradient(135deg, #ff4081, #e91e63);
      border-radius: 50%;
      animation: pulseLive 2s ease-in-out infinite;
      box-shadow: 
        0 0 12px rgba(255, 64, 129, 0.8),
        0 0 24px rgba(255, 64, 129, 0.4);
      position: relative;
    }
    
    #live-player-container .live-dot::after {
      content: '';
      position: absolute;
      inset: -3px;
      border-radius: 50%;
      border: 1.5px solid rgba(255, 64, 129, 0.3);
      animation: ripple 2s ease-out infinite;
    }
    
    @keyframes pulseLive {
      0%, 100% { 
        opacity: 1; 
        transform: scale(1);
        box-shadow: 0 0 12px rgba(255, 64, 129, 0.8), 0 0 24px rgba(255, 64, 129, 0.4);
      }
      50% { 
        opacity: 0.8; 
        transform: scale(1.15);
        box-shadow: 0 0 16px rgba(255, 64, 129, 1), 0 0 32px rgba(255, 64, 129, 0.6);
      }
    }
    
    @keyframes ripple {
      0% {
        transform: scale(1);
        opacity: 1;
      }
      100% {
        transform: scale(2.5);
        opacity: 0;
      }
    }
    
    @keyframes pulse-glow {
      0%, 100% {
        box-shadow: 0 0 5px rgba(147,51,234,.3), 0 0 15px rgba(147,51,234,.2);
      }
      50% {
        box-shadow: 0 0 15px rgba(147,51,234,.5), 0 0 30px rgba(147,51,234,.3);
      }
    }
    
    /* Center section - Title and Date */
    .live-info {
      position: relative;
      z-index: 1;
      text-align: center;
      flex-shrink: 0;
      min-width: 200px;
    }
    
    #live-player-container .live-title {
      font-size: 0.95rem;
      color: var(--text);
      margin: 0 0 4px;
      font-weight: 600;
      letter-spacing: -0.01em;
      text-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
    }
    
    #live-player-container .live-date {
      font-size: 0.75rem;
      color: var(--muted);
      margin: 0;
      opacity: 0.85;
    }
    
    /* CD Cover - Hirsch als Silhouette/Wasserzeichen */
    .live-cd-cover {
      position: relative;
      z-index: 1;
      flex-shrink: 0;
      width: auto; /* Auto-Breite basierend auf Höhe */
      height: 70px; /* Kleiner Hirsch - passt zur Player-Höhe */
      border-radius: 0;
      overflow: visible;
      background: none;
      border: none;
      box-shadow: none;
      pointer-events: none;
      margin-left: 40px; /* Abstand vom Player */
      opacity: 1; /* Volle Deckkraft - kein Wasserzeichen mehr */
    }
    
    .live-cover-image {
      width: auto;
      height: 100%;
      object-fit: contain;
      transform: none;
      filter: 
        brightness(100) /* Extrem hell für reines Weiß */
        saturate(0) /* Keine Farbe = nur Weiß */
        contrast(2) /* Starker Kontrast für klare Silhouette */
        drop-shadow(0 2px 8px rgba(255, 255, 255, 0.3)); /* Weißer Glow */
    }
    
    <!-- Right section - Custom Player -->
    #live-player-container .audio-wrapper {
      position: relative;
      z-index: 1;
      flex: 1;
      background: linear-gradient(135deg, rgba(20, 22, 35, 0.6), rgba(15, 17, 28, 0.7));
      border-radius: 14px;
      padding: 12px 16px;
      border: 1px solid rgba(124, 92, 255, 0.15);
      box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.4);
    }
    
    /* Loading Progress Bar */
    .live-loading-bar {
      position: absolute;
      top: 0;
      left: 0;
      right: 0;
      height: 3px;
      background: rgba(124, 92, 255, 0.2);
      border-radius: 14px 14px 0 0;
      overflow: hidden;
      opacity: 0;
      transition: opacity 0.3s;
    }
    
    .live-loading-bar.active {
      opacity: 1;
    }
    
    .live-loading-progress {
      height: 100%;
      background: linear-gradient(90deg, rgba(124, 92, 255, 0.8), rgba(155, 140, 255, 0.9));
      width: 0%;
      transition: width 0.3s ease;
      box-shadow: 0 0 10px rgba(124, 92, 255, 0.6);
    }
    
    /* Hide default player completely */
    #live-player-container audio {
      position: absolute;
      opacity: 0;
      pointer-events: none;
      width: 0;
      height: 0;
    }
    
    /* Custom Player Controls */
    .live-custom-player {
      display: flex;
      align-items: center;
      gap: 12px;
    }
    
    .live-play-btn {
      width: 38px;
      height: 38px;
      border-radius: 50%;
      background: linear-gradient(135deg, rgba(124, 92, 255, 0.3), rgba(124, 92, 255, 0.15));
      border: 1.5px solid rgba(124, 92, 255, 0.6);
      display: flex;
      align-items: center;
      justify-content: center;
      cursor: pointer;
      transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
      flex-shrink: 0;
      box-shadow: 
        0 3px 12px rgba(124, 92, 255, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.15);
    }
    
    .live-play-btn:hover {
      background: linear-gradient(135deg, rgba(124, 92, 255, 0.4), rgba(124, 92, 255, 0.25));
      border-color: rgba(124, 92, 255, 0.8);
      transform: scale(1.05);
      box-shadow: 
        0 4px 16px rgba(124, 92, 255, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    }
    
    .live-play-btn:active {
      transform: scale(0.98);
    }
    
    .live-play-btn svg {
      width: 20px;
      height: 20px;
      fill: #fff;
      filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
    }
    
    .live-play-btn.playing svg {
      width: 14px;
    }
    
    /* Waveform Visualization */
    .live-waveform {
      flex: 1;
      display: flex;
      align-items: center;
      gap: 3px;
      height: 38px;
      overflow: hidden;
    }
    
    .wave-bar {
      flex: 1;
      background: linear-gradient(180deg, rgba(124, 92, 255, 0.8), rgba(124, 92, 255, 0.4));
      border-radius: 2px;
      min-width: 3px;
      height: 20%;
      opacity: 0.6;
    }
    
    /* CSS-Animation wenn active (Default für iOS) */
    .wave-bar.active {
      animation: wave 1s ease-in-out infinite;
      opacity: 1;
      will-change: height;
    }
    
    /* Verschiedene Delays für natürlichere Animation */
    .wave-bar.active:nth-child(3n) { animation-duration: 1.1s; }
    .wave-bar.active:nth-child(3n+1) { animation-duration: 0.9s; }
    .wave-bar.active:nth-child(5n) { animation-duration: 1.2s; }
    
    @keyframes wave {
      0%, 100% { height: 25%; }
      50% { height: 70%; }
    }
    
    /* Auf Mobile: Reduziere Animationen für bessere Performance */
    @media (max-width: 768px) {
      /* Deaktiviere das rotierende Glow auf Mobile */
      #live-player-container::before {
        display: none !important;
        animation: none !important;
      }
      
      /* Deaktiviere ALLE pulsierenden Animationen auf Mobile für Akku */
      #live-player-container .live-dot,
      #live-player-container .live-dot::after,
      .live-player-floating .live-dot,
      .live-player-floating .live-dot::after {
        animation: none !important;
      }
      
      /* Deaktiviere will-change auf Mobile für Performance */
      .wave-bar.active {
        will-change: auto;
      }
      
      /* Größerer Play-Button auf Mobile */
      .live-play-btn {
        width: 44px !important;
        height: 44px !important;
      }
      
      .live-play-btn svg {
        width: 20px !important;
        height: 20px !important;
      }
      
      /* Größerer Volume/Mute-Button auf Mobile */
      .live-volume-btn {
        width: 44px !important;
        height: 44px !important;
      }
      
      .live-volume-btn svg {
        width: 22px !important;
        height: 22px !important;
      }
    }
    
    /* Volume Control */
    .live-volume {
      display: flex;
      align-items: center;
      gap: 8px;
      flex-shrink: 0;
    }
    
    .live-volume-btn {
      width: 32px;
      height: 32px;
      border-radius: 50%;
      background: rgba(255, 255, 255, 0.05);
      border: 1px solid rgba(255, 255, 255, 0.1);
      display: flex;
      align-items: center;
      justify-content: center;
      cursor: pointer;
      transition: all 0.3s;
    }
    
    .live-volume-btn:hover {
      background: rgba(255, 255, 255, 0.1);
      border-color: rgba(255, 255, 255, 0.2);
    }
    
    .live-volume-btn svg {
      width: 16px;
      height: 16px;
      fill: var(--text);
    }
    
    .live-volume-slider {
      width: 60px;
      height: 3px;
      background: rgba(255, 255, 255, 0.1);
      border-radius: 2px;
      position: relative;
      cursor: pointer;
    }
    
    .live-volume-fill {
      height: 100%;
      background: linear-gradient(90deg, rgba(124, 92, 255, 0.8), rgba(124, 92, 255, 0.6));
      border-radius: 2px;
      width: 100%;
      transition: width 0.15s;
      box-shadow: 0 0 6px rgba(124, 92, 255, 0.4);
    }
    
    /* Time Display */
    .live-time-display {
      font-size: 0.75rem;
      font-weight: 600;
      color: var(--muted);
      font-family: 'SF Mono', 'Monaco', monospace;
      letter-spacing: 0.5px;
      min-width: 50px;
      text-align: right;
    }
    
    /* ===== BUTTON CONTAINER FÜR UNDOCK + TRANSKRIPT ===== */
    .live-buttons-container {
      position: absolute;
      right: 14px;
      top: 50%;
      transform: translateY(-50%);
      display: flex;
      flex-direction: column;
      gap: 8px;
      z-index: 2;
    }
    
    /* ===== UNDOCK BUTTON ===== */
    .live-undock-btn {
      position: relative;
      z-index: 2;
      width: 36px;
      height: 36px;
      border-radius: 8px;
      border: 1.5px solid rgba(124, 92, 255, 0.3);
      background: linear-gradient(135deg, rgba(20, 22, 35, 0.8), rgba(15, 17, 28, 0.9));
      color: var(--muted);
      cursor: pointer;
      display: flex;
      align-items: center;
      justify-content: center;
      transition: all 0.2s ease;
      flex-shrink: 0;
      opacity: 0.25;
    }
    
    .live-undock-btn:hover {
      background: linear-gradient(135deg, rgba(124, 92, 255, 0.25), rgba(99, 73, 204, 0.2));
      border-color: rgba(124, 92, 255, 0.5);
      color: var(--accent);
      transform: translateY(-2px);
      box-shadow: 0 4px 12px rgba(124, 92, 255, 0.3);
      opacity: 1;
    }
    
    .live-undock-btn svg {
      width: 20px;
      height: 20px;
    }
    
    /* NEU: Transkript-Button im Live-Radio (für Gehörlose) - unter dem Undock-Button */
    #live-transcript-btn,
    .live-transcript-btn {
      position: relative;
      z-index: 2;
      width: 36px;
      height: 36px;
      border-radius: 8px;
      border: 1px solid rgba(16, 185, 129, 0.3);
      background: linear-gradient(135deg, rgba(20, 22, 35, 0.8), rgba(15, 17, 28, 0.9));
      color: rgba(16, 185, 129, 0.6);
      cursor: not-allowed;
      display: flex;
      align-items: center;
      justify-content: center;
      transition: all 0.2s ease;
      opacity: 0.25;
    }
    
    #live-transcript-btn:hover:not([disabled]),
    .live-transcript-btn:hover:not([disabled]) {
      background: linear-gradient(135deg, rgba(16, 185, 129, 0.2), rgba(16, 185, 129, 0.1));
      border-color: rgba(16, 185, 129, 0.5);
      color: rgba(16, 185, 129, 1);
      box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
      opacity: 1;
    }
    
    #live-transcript-btn.active,
    .live-transcript-btn.active {
      background: rgba(16, 185, 129, 0.15);
      border-color: rgba(16, 185, 129, 0.5);
      color: rgba(16, 185, 129, 1);
      opacity: 1;
    }
    
    #live-transcript-btn[disabled],
    .live-transcript-btn[disabled] {
      opacity: 0.15;
      cursor: not-allowed;
    }
    
    /* NEU: Versteckter Zustand während Ladezeit */
    #live-transcript-btn.loading-hidden,
    .live-transcript-btn.loading-hidden {
      opacity: 0 !important;
      visibility: hidden !important;
      pointer-events: none !important;
      transform: scale(0.8);
      transition: none !important;
    }
    
    /* NEU: Lade-Animation (Spinner während 12 Sek warten) */
    #live-transcript-btn.loading,
    .live-transcript-btn.loading {
      opacity: 0.6 !important;
      cursor: wait !important;
      pointer-events: none !important;
      position: relative;
      overflow: hidden;
    }
    
    #live-transcript-btn.loading::after,
    .live-transcript-btn.loading::after {
      content: '';
      position: absolute;
      top: 3px;
      left: 3px;
      right: 3px;
      bottom: 3px;
      border: 2px solid transparent;
      border-top-color: rgba(16, 185, 129, 0.8);
      border-radius: 50%;
      animation: transcript-btn-spin 0.8s linear infinite;
      box-sizing: border-box;
    }
    
    /* SVG während Loading verstecken */
    #live-transcript-btn.loading svg,
    .live-transcript-btn.loading svg {
      opacity: 0;
    }
    
    @keyframes transcript-btn-spin {
      to { transform: rotate(360deg); }
    }
    
    /* NEU: Einblend-Animation wenn Button bereit ist */
    #live-transcript-btn.ready-appear,
    .live-transcript-btn.ready-appear {
      animation: transcript-btn-appear 0.4s ease-out forwards;
    }
    
    @keyframes transcript-btn-appear {
      0% {
        opacity: 0;
        transform: scale(0.5);
      }
      50% {
        transform: scale(1.1);
      }
      100% {
        opacity: 1;
        transform: scale(1);
      }
    }
    
    /* Pulsieren wenn bereit (Aufmerksamkeit) */
    #live-transcript-btn.ready-pulse,
    .live-transcript-btn.ready-pulse {
      animation: transcript-btn-pulse 1s ease-in-out 2;
    }
    
    @keyframes transcript-btn-pulse {
      0%, 100% {
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.4);
      }
      50% {
        box-shadow: 0 0 0 8px rgba(16, 185, 129, 0);
      }
    }
    
    #live-transcript-btn svg,
    .live-transcript-btn svg {
      width: 20px;
      height: 20px;
    }
    
    /* Live-Transkript nutzt GENAU die gleichen Styles wie Sticky-Player Subtitles */
    /* Die Styles werden von den globalen .subtitle-* Klassen geerbt */
    
    /* ===== LIVE-TRANSKRIPT PANEL ===== */
    .live-transcript-panel {
      display: none;
      max-width: 1040px;
      margin: 0 auto 26px;
      background: rgba(15, 17, 26, 0.98);
      border: 1.5px solid rgba(124, 92, 255, 0.4);
      border-radius: var(--r-md);
      backdrop-filter: blur(12px);
      max-height: 0;
      overflow: hidden;
      position: relative;
      opacity: 0;
      transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), 
                  opacity 0.3s ease,
                  margin 0.3s ease;
    }
    
    .live-transcript-panel.open {
      display: block;
      max-height: 450px;
      opacity: 1;
    }
    
    .live-transcript-header {
      display: flex;
      justify-content: space-between;
      align-items: center;
      padding: 20px 24px 14px;
      border-bottom: 1px solid rgba(124, 92, 255, 0.15);
      position: sticky;
      top: 0;
      background: rgba(15, 17, 26, 0.98);
      z-index: 2;
    }
    
    .live-transcript-header h3 {
      margin: 0;
      font-size: 1rem;
      color: rgba(124, 92, 255, 1);
      font-weight: 600;
      display: flex;
      align-items: center;
      gap: 10px;
    }
    
    .live-transcript-icon {
      font-size: 1.2rem;
    }
    
    .live-transcript-count {
      font-size: 0.75rem;
      color: var(--muted);
      font-weight: 400;
    }
    
    .live-transcript-close-btn {
      background: rgba(124, 92, 255, 0.1);
      border: 1px solid rgba(124, 92, 255, 0.3);
      border-radius: 8px;
      color: rgba(124, 92, 255, 0.8);
      cursor: pointer;
      padding: 8px 12px;
      font-size: 1.1rem;
      transition: all 0.2s ease;
    }
    
    .live-transcript-close-btn:hover {
      background: rgba(124, 92, 255, 0.2);
      border-color: rgba(124, 92, 255, 0.5);
      color: rgba(124, 92, 255, 1);
    }
    
    .live-transcript-chat {
      padding: 16px 20px 20px;
      max-height: 380px;
      overflow: hidden; /* KEIN manuelles Scrollen - nur Auto-Scroll bei Timestamps */
      overscroll-behavior: contain;
    }
    
    .live-transcript-loading {
      text-align: center;
      padding: 40px;
      color: var(--muted);
    }
    
    .live-transcript-loading .spinner {
      display: inline-block;
      animation: spin 1s linear infinite;
    }
    
    #live-transcript-messages {
      display: flex;
      flex-direction: column;
    }
    
    /* WICHTIG: Bubbles im Live-Transkript NICHT klickbar! */
    #live-transcript-messages .subtitle-row {
      cursor: default !important;
      pointer-events: none;
    }
    
    #live-transcript-messages .subtitle-bubble {
      cursor: default !important;
    }

    /* ===== FLOATING LIVE PLAYER (Entkoppelt) ===== */
    .live-player-floating {
      position: fixed;
      top: 50%;
      right: 0;
      transform: translateY(-50%);
      z-index: 9999;
      transition: right 0.3s cubic-bezier(0.4, 0, 0.2, 1);
      display: none; /* Standardmäßig versteckt */
    }
    
    .live-player-floating.active {
      display: block;
    }
    
    /* Collapsed state - nur Toggle-Pfeil sichtbar */
    .live-player-floating.collapsed {
      right: -220px;
    }
    
    /* Expanded state - voller Player sichtbar */
    .live-player-floating:not(.collapsed) {
      right: 0;
    }
    
    .live-floating-toggle {
      position: absolute;
      left: -32px;
      top: 50%;
      transform: translateY(-50%);
      width: 32px;
      height: 64px;
      background: linear-gradient(135deg, rgba(124, 92, 255, 0.95), rgba(99, 73, 204, 0.95));
      border: none;
      border-radius: 8px 0 0 8px;
      color: white;
      cursor: pointer;
      display: flex;
      align-items: center;
      justify-content: center;
      box-shadow: -2px 0 8px rgba(0, 0, 0, 0.3);
      transition: all 0.2s ease;
      z-index: 1;
    }
    
    .live-floating-toggle:hover {
      background: linear-gradient(135deg, rgba(124, 92, 255, 1), rgba(99, 73, 204, 1));
      left: -36px;
    }
    
    .live-floating-toggle svg {
      transition: transform 0.3s ease;
    }
    
    .live-player-floating:not(.collapsed) .live-floating-toggle svg {
      transform: rotate(180deg);
    }
    
    .live-floating-content {
      width: 220px;
      background: linear-gradient(135deg, rgba(14, 16, 26, .95), rgba(8, 10, 18, .95));
      backdrop-filter: blur(12px) saturate(180%);
      border-left: 2px solid rgba(124, 92, 255, 0.4);
      box-shadow: -4px 0 24px rgba(0, 0, 0, 0.5);
      padding: 16px;
      display: flex;
      flex-direction: column;
      gap: 12px;
    }
    
    .live-floating-header {
      display: flex;
      align-items: center;
      justify-content: space-between;
    }
    
    .live-floating-header .live-indicator {
      display: inline-flex;
      align-items: center;
      gap: 6px;
      font-size: 0.65rem;
      font-weight: 700;
      color: #fff;
      text-transform: uppercase;
      letter-spacing: 0.12em;
      padding: 4px 10px;
      background: linear-gradient(135deg, rgba(124, 92, 255, 0.25), rgba(124, 92, 255, 0.15));
      border: 1.5px solid rgba(124, 92, 255, 0.5);
      border-radius: 999px;
    }
    
    .live-floating-header .live-dot {
      width: 6px;
      height: 6px;
      background: linear-gradient(135deg, #ff4081, #e91e63);
      border-radius: 50%;
      animation: pulseLive 2s ease-in-out infinite;
      box-shadow: 0 0 8px rgba(255, 64, 129, 0.8);
    }
    
    .live-floating-dock {
      width: 28px;
      height: 28px;
      border-radius: 6px;
      border: 1px solid rgba(124, 92, 255, 0.3);
      background: linear-gradient(135deg, rgba(20, 22, 35, 0.6), rgba(15, 17, 28, 0.7));
      color: var(--muted);
      cursor: pointer;
      display: flex;
      align-items: center;
      justify-content: center;
      transition: all 0.2s ease;
    }
    
    .live-floating-dock:hover {
      background: linear-gradient(135deg, rgba(124, 92, 255, 0.25), rgba(99, 73, 204, 0.2));
      border-color: rgba(124, 92, 255, 0.5);
      color: var(--accent);
    }
    
    .live-floating-info {
      text-align: center;
    }
    
    .live-floating-title {
      font-size: 0.85rem;
      color: var(--text);
      font-weight: 600;
      margin-bottom: 4px;
      line-height: 1.3;
      display: -webkit-box;
      -webkit-line-clamp: 2;
      -webkit-box-orient: vertical;
      overflow: hidden;
    }
    
    .live-floating-date {
      font-size: 0.7rem;
      color: var(--muted);
      opacity: 0.85;
    }
    
    .live-floating-controls {
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 12px;
      padding: 8px 0;
    }
    
    .live-floating-play-btn {
      width: 42px;
      height: 42px;
      border-radius: 50%;
      border: 2px solid rgba(124, 92, 255, 0.4);
      background: linear-gradient(135deg, rgba(124, 92, 255, 0.25), rgba(99, 73, 204, 0.2));
      color: var(--accent);
      cursor: pointer;
      display: flex;
      align-items: center;
      justify-content: center;
      transition: all 0.2s ease;
    }
    
    .live-floating-play-btn:hover {
      background: linear-gradient(135deg, rgba(124, 92, 255, 0.35), rgba(99, 73, 204, 0.3));
      border-color: rgba(124, 92, 255, 0.6);
      transform: scale(1.05);
    }
    
    .live-floating-play-btn svg {
      width: 20px;
      height: 20px;
      fill: currentColor;
    }
    
    .live-floating-time {
      font-size: 0.75rem;
      font-weight: 600;
      color: var(--muted);
      font-family: 'SF Mono', 'Monaco', monospace;
      min-width: 45px;
      text-align: center;
    }
    
    .live-floating-volume-btn {
      width: 32px;
      height: 32px;
      border-radius: 6px;
      border: 1px solid rgba(124, 92, 255, 0.3);
      background: linear-gradient(135deg, rgba(20, 22, 35, 0.6), rgba(15, 17, 28, 0.7));
      color: var(--muted);
      cursor: pointer;
      display: flex;
      align-items: center;
      justify-content: center;
      transition: all 0.2s ease;
    }
    
    .live-floating-volume-btn:hover {
      background: linear-gradient(135deg, rgba(124, 92, 255, 0.25), rgba(99, 73, 204, 0.2));
      border-color: rgba(124, 92, 255, 0.5);
      color: var(--accent);
    }
    
    .live-floating-volume-btn svg {
      width: 18px;
      height: 18px;
      fill: currentColor;
    }
    
    /* Floating Transcript Button */
    .live-floating-transcript-btn {
      width: 32px;
      height: 32px;
      border-radius: 6px;
      border: 1px solid rgba(16, 185, 129, 0.3);
      background: linear-gradient(135deg, rgba(20, 22, 35, 0.6), rgba(15, 17, 28, 0.7));
      color: rgba(16, 185, 129, 0.6);
      cursor: pointer;
      display: flex;
      align-items: center;
      justify-content: center;
      transition: all 0.2s ease;
    }
    
    .live-floating-transcript-btn:hover {
      background: linear-gradient(135deg, rgba(16, 185, 129, 0.2), rgba(16, 185, 129, 0.1));
      border-color: rgba(16, 185, 129, 0.5);
      color: rgba(16, 185, 129, 1);
    }
    
    .live-floating-transcript-btn.active {
      background: rgba(16, 185, 129, 0.15);
      border-color: rgba(16, 185, 129, 0.5);
      color: rgba(16, 185, 129, 1);
    }
    
    .live-floating-transcript-btn svg {
      width: 16px;
      height: 16px;
    }
    
    .live-floating-cover {
      width: 100%;
      aspect-ratio: 1;
      border-radius: 8px;
      overflow: hidden;
      background: linear-gradient(135deg, rgba(124, 92, 255, 0.1), rgba(99, 73, 204, 0.05));
      border: 1px solid rgba(124, 92, 255, 0.2);
    }
    
    .live-floating-cover img {
      width: 100%;
      height: 100%;
      object-fit: contain;
      filter: brightness(100) saturate(0) contrast(2);
      opacity: 0.4;
    }
    
    /* Mobile: Floating Player verstecken */
    @media (max-width: 768px) {
      .live-player-floating {
        display: none !important;
      }
      
      .live-undock-btn {
        display: none !important;
      }
      
      /* Button Container auf Mobile komplett verstecken */
      .live-buttons-container {
        display: none !important;
      }
      
      /* Transkript-Button auf Mobile - in der Player-Leiste nach Play-Button */
      #live-transcript-btn.mobile-inline {
        position: static !important;
        width: 32px !important;
        height: 32px !important;
        min-width: 32px !important;
        border-radius: 50% !important;
        flex-shrink: 0 !important;
        margin-left: 4px !important;
        margin-right: 0 !important;
        background: linear-gradient(135deg, rgba(16, 185, 129, 0.1), rgba(16, 185, 129, 0.05)) !important;
        border: 1.5px solid rgba(16, 185, 129, 0.2) !important;
        color: rgba(16, 185, 129, 0.3) !important;
        padding: 0 !important;
        opacity: 0.5 !important;
      }
      
      #live-transcript-btn.mobile-inline svg {
        width: 14px !important;
        height: 14px !important;
        opacity: 0.5 !important;
        stroke: rgba(16, 185, 129, 0.5) !important;
      }
      
      /* NEU: Versteckter Zustand während Ladezeit auf Mobile */
      #live-transcript-btn.mobile-inline.loading-hidden {
        opacity: 0 !important;
        visibility: hidden !important;
        pointer-events: none !important;
        width: 0 !important;
        min-width: 0 !important;
        margin: 0 !important;
        padding: 0 !important;
        border: none !important;
        overflow: hidden !important;
      }
      
      /* NEU: Lade-Animation auf Mobile */
      #live-transcript-btn.mobile-inline.loading {
        opacity: 0.5 !important;
        cursor: wait !important;
        pointer-events: none !important;
        background: linear-gradient(135deg, rgba(16, 185, 129, 0.15), rgba(16, 185, 129, 0.08)) !important;
        position: relative !important;
        overflow: hidden !important;
      }
      
      #live-transcript-btn.mobile-inline.loading::after {
        content: '';
        position: absolute !important;
        top: 4px !important;
        left: 4px !important;
        right: 4px !important;
        bottom: 4px !important;
        width: auto !important;
        height: auto !important;
        border: 2px solid transparent !important;
        border-top-color: rgba(16, 185, 129, 0.8) !important;
        border-radius: 50% !important;
        animation: transcript-btn-spin 0.8s linear infinite !important;
        box-sizing: border-box !important;
      }
      
      /* SVG während Loading verstecken */
      #live-transcript-btn.mobile-inline.loading svg {
        opacity: 0 !important;
      }
      
      /* NEU: Einblend-Animation auf Mobile */
      #live-transcript-btn.mobile-inline.ready-appear {
        animation: transcript-btn-appear-mobile 0.4s ease-out forwards;
      }
      
      @keyframes transcript-btn-appear-mobile {
        0% {
          opacity: 0;
          transform: scale(0.3);
          width: 0;
          min-width: 0;
          margin: 0;
        }
        100% {
          opacity: 1;
          transform: scale(1);
          width: 32px;
          min-width: 32px;
          margin-left: 4px;
        }
      }
      
      /* Wenn Button aktivierbar ist (nicht mehr disabled) - voll sichtbar GRÜN */
      #live-transcript-btn.mobile-inline:not([disabled]) {
        background: linear-gradient(135deg, rgba(16, 185, 129, 0.3), rgba(16, 185, 129, 0.15)) !important;
        border: 1.5px solid rgba(16, 185, 129, 0.6) !important;
        color: rgba(255, 255, 255, 0.9) !important;
        opacity: 1 !important;
        box-shadow: 0 3px 12px rgba(16, 185, 129, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.15) !important;
      }
      
      #live-transcript-btn.mobile-inline:not([disabled]) svg {
        opacity: 1 !important;
        stroke: #fff !important;
      }
      
      /* Wenn aktiv (Transkript offen) */
      #live-transcript-btn.mobile-inline.active {
        background: linear-gradient(135deg, rgba(16, 185, 129, 0.5), rgba(16, 185, 129, 0.35)) !important;
        border-color: rgba(16, 185, 129, 0.8) !important;
        color: #fff !important;
        box-shadow: 0 4px 16px rgba(16, 185, 129, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.2) !important;
      }
      
      /* Deaktiviere spezifische Animationen auf Mobile - spart CPU/Akku! */
      #live-player-container::before,
      #live-player-container .live-dot,
      #live-player-container .live-dot::after,
      .live-player-floating .live-dot,
      .live-player-floating .live-dot::after {
        animation: none !important;
      }
      
      /* Deaktiviere Transitions auf Mobile */
      .live-play-btn,
      .live-volume-btn,
      .live-transcript-btn,
      #live-transcript-btn {
        transition: none !important;
      }
      
      /* Waveform auf Mobile - muss sichtbar bleiben! */
      .live-waveform {
        flex: 1 !important;
        min-width: 50px !important;
        display: flex !important;
      }
      
      /* Zeit auf Mobile - kleiner aber in der Zeile */
      .live-time-display {
        font-size: 0.7rem !important;
        min-width: 40px !important;
      }
      
      /* Play-Button auf Mobile - größer wie vorher */
      .live-play-btn {
        width: 44px !important;
        height: 44px !important;
      }
      
      /* Player-Leiste kompakter auf Mobile */
      .live-custom-player {
        gap: 8px !important;
      }
      
      /* Volume auf Mobile kompakter aber sichtbar */
      .live-volume {
        gap: 6px !important;
      }
      
      .live-volume-btn {
        width: 36px !important;
        height: 36px !important;
        min-width: 36px !important;
      }
      
      .live-volume-btn svg {
        width: 20px !important;
        height: 20px !important;
      }
      
      .live-volume-slider {
        width: 50px !important;
      }
      
      /* Live-Transkript-Panel auf Mobile - größer */
      .live-transcript-panel {
        margin: 16px 0 16px 0 !important;
        border-radius: var(--r-md) !important;
        max-width: 100% !important;
      }
      
      .live-transcript-panel.open {
        max-height: 380px !important;
      }
      
      .live-transcript-header {
        padding: 14px 16px 10px !important;
      }
      
      .live-transcript-header h3 {
        font-size: 0.9rem !important;
      }
      
      .live-transcript-chat {
        max-height: 320px !important;
        padding: 12px 14px 14px !important;
      }
      
      /* Bubbles auf Mobile etwas kleiner */
      .live-transcript-panel .subtitle-bubble {
        max-width: 85% !important;
        font-size: 0.85rem !important;
      }
      
      .live-transcript-panel .subtitle-avatar {
        width: 42px !important;
        height: 42px !important;
      }
      
      /* Live Player Mobile Anpassungen */
      #live-player-container .live-cd-cover {
        width: 40px !important;
        height: 40px !important;
        align-self: center !important;
        transform: none !important;
      }
      
      #live-player-container .live-cd-cover img {
        width: 24px !important;
        height: 24px !important;
      }
      
      /* Entferne Chat-Bubble Tails auf Mobile */
      #live-player-container::before,
      #live-player-container::after,
      .live-info::before,
      .live-info::after {
        display: none !important;
      }
    }
    
    /* Mobile responsiveness */
    @media (max-width: 768px) {
      #live-player-container {
        flex-direction: column;
        align-items: stretch;
        gap: 16px;
        padding: 16px 20px;
        /* Hellerer Hintergrund für besseren Glass-Effekt auf Mobile */
        background: 
          radial-gradient(circle at top right, rgba(124, 92, 255, 0.2), transparent 60%),
          linear-gradient(135deg, rgba(14, 16, 26, .7), rgba(8, 10, 18, .6)) !important;
        backdrop-filter: blur(8px) saturate(180%) !important;
        -webkit-backdrop-filter: blur(8px) saturate(180%) !important;
        border: 1.5px solid rgba(124, 92, 255, 0.35) !important;
      }
      
      .live-info {
        text-align: center;
        min-width: auto;
      }
      
      #live-player-container .live-header {
        display: flex;
        justify-content: center;
      }
      
      
      /* Audio-Wrapper größer für Play-Button */
      #live-player-container .audio-wrapper {
        padding: 14px 18px !important;
      }
      .wave-bar.active:nth-child(7n) { height: 55% !important; }
      
      /* Deaktiviere Performance-Fresser auf Mobile */
      .live-play-btn,
      .live-volume-btn,
      .wave-bar {
        transition: none !important;
      }
    }
  
  /* ===== WETTER-EFFEKTE FÜR KÖLN ===== */
  .weather-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 2; /* Über body-bg (0) und grain (1), unter Content (glass-container z-index:10) */
    overflow: hidden;
  }

  .raindrop {
    position: absolute;
    top: -50px; /* Starte ÜBER dem sichtbaren Bereich */
    width: 2px;
    background: linear-gradient(to bottom, transparent, rgba(173, 216, 230, 0.6));
    animation: rain-fall linear forwards; /* forwards = bleibt nach Animation */
    will-change: transform;
    contain: layout style paint; /* Performance: Isoliere Repaints */
  }

  @keyframes rain-fall {
    0% { 
      transform: translateY(0); 
      opacity: 1; 
    }
    95% {
      opacity: 0.8;
    }
    100% { 
      transform: translateY(calc(100vh + 100px)); 
      opacity: 0; 
    }
  }

  .weather-snowflake {
    position: absolute;
    top: -50px; /* Starte ÜBER dem sichtbaren Bereich */
    color: #fff;
    font-size: 1.2em;
    user-select: none;
    pointer-events: none;
    animation: snow-fall linear forwards;
    text-shadow: 0 0 5px rgba(255,255,255,0.8);
    will-change: transform;
    contain: layout style paint; /* Performance: Isoliere Repaints */
  }

  @keyframes snow-fall {
    0% { 
      transform: translateY(0) rotate(0deg); 
      opacity: 1; 
    }
    95% {
      opacity: 0.8;
    }
    100% { 
      transform: translateY(calc(100vh + 100px)) rotate(360deg); 
      opacity: 0; 
    }
  }

  .weather-cloud {
    position: absolute;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0.25), rgba(255, 255, 255, 0.15));
    border-radius: 200px;
    animation: cloud-drift linear infinite;
    box-shadow: 
      0 10px 30px rgba(0, 0, 0, 0.15),
      inset 0 -10px 20px rgba(0, 0, 0, 0.05);
    filter: blur(1px);
  }

  .weather-cloud::before,
  .weather-cloud::after {
    content: '';
    position: absolute;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0.3), rgba(255, 255, 255, 0.2));
    border-radius: 200px;
    box-shadow: inset 0 -5px 15px rgba(0, 0, 0, 0.05);
  }

  .weather-cloud::before {
    width: 60%;
    height: 80%;
    top: -40%;
    left: 15%;
  }

  .weather-cloud::after {
    width: 70%;
    height: 90%;
    top: -45%;
    right: 10%;
  }

  @keyframes cloud-drift {
    from { transform: translateX(-200px); opacity: 0; }
    10% { opacity: 0.8; }
    90% { opacity: 0.8; }
    to { transform: translateX(calc(100vw + 200px)); opacity: 0; }
  }

  /* Wunderschöne realistische Sonne */
  .sun-container {
    position: absolute;
    top: 8%;
    right: 8%;
    width: 300px;
    height: 300px;
    pointer-events: none;
  }
  
  /* Äußerer Glow */
  .sun-outer-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 280px;
    height: 280px;
    background: radial-gradient(circle, 
      rgba(255, 200, 80, 0.12) 0%,
      rgba(255, 180, 60, 0.06) 40%,
      transparent 70%
    );
    border-radius: 50%;
    animation: pulse-outer-glow 4s ease-in-out infinite;
    z-index: 3;
  }
  
  /* Strahlen HINTER der Sonne */
  .sun-rays {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    transform: translate(-50%, -50%);
    animation: rotate-rays 30s linear infinite;
    z-index: 1; /* HINTER dem Kern */
  }
  
  .sun-ray {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 5px;
    height: 110px;
    margin-left: -2.5px;
    margin-top: -55px;
    background: linear-gradient(to bottom, 
      rgba(255, 245, 220, 0.35) 0%,
      rgba(255, 235, 200, 0.25) 20%,
      rgba(255, 225, 180, 0.15) 40%,
      rgba(255, 215, 160, 0.08) 60%,
      transparent 100%
    );
    transform-origin: center center;
    border-radius: 3px;
    filter: blur(1px);
  }
  
  .sun-ray:nth-child(1) { transform: rotate(0deg) translateY(-70px); }
  .sun-ray:nth-child(2) { transform: rotate(30deg) translateY(-70px); opacity: 0.5; }
  .sun-ray:nth-child(3) { transform: rotate(60deg) translateY(-70px); }
  .sun-ray:nth-child(4) { transform: rotate(90deg) translateY(-70px); opacity: 0.5; }
  .sun-ray:nth-child(5) { transform: rotate(120deg) translateY(-70px); }
  .sun-ray:nth-child(6) { transform: rotate(150deg) translateY(-70px); opacity: 0.5; }
  .sun-ray:nth-child(7) { transform: rotate(180deg) translateY(-70px); }
  .sun-ray:nth-child(8) { transform: rotate(210deg) translateY(-70px); opacity: 0.5; }
  .sun-ray:nth-child(9) { transform: rotate(240deg) translateY(-70px); }
  .sun-ray:nth-child(10) { transform: rotate(270deg) translateY(-70px); opacity: 0.5; }
  .sun-ray:nth-child(11) { transform: rotate(300deg) translateY(-70px); }
  .sun-ray:nth-child(12) { transform: rotate(330deg) translateY(-70px); opacity: 0.5; }
  
  /* Sekundäre kürzere Strahlen - noch dezenter */
  .sun-ray-short {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 3px;
    height: 60px;
    margin-left: -1.5px;
    margin-top: -30px;
    background: linear-gradient(to bottom, 
      rgba(255, 250, 230, 0.2) 0%,
      rgba(255, 240, 210, 0.12) 40%,
      transparent 100%
    );
    transform-origin: center center;
    border-radius: 2px;
    filter: blur(1.5px);
  }
  
  .sun-ray-short:nth-child(13) { transform: rotate(15deg) translateY(-75px); opacity: 0.4; }
  .sun-ray-short:nth-child(14) { transform: rotate(45deg) translateY(-75px); opacity: 0.4; }
  .sun-ray-short:nth-child(15) { transform: rotate(75deg) translateY(-75px); opacity: 0.4; }
  .sun-ray-short:nth-child(16) { transform: rotate(105deg) translateY(-75px); opacity: 0.4; }
  .sun-ray-short:nth-child(17) { transform: rotate(135deg) translateY(-75px); opacity: 0.4; }
  .sun-ray-short:nth-child(18) { transform: rotate(165deg) translateY(-75px); opacity: 0.4; }
  .sun-ray-short:nth-child(19) { transform: rotate(195deg) translateY(-75px); opacity: 0.4; }
  .sun-ray-short:nth-child(20) { transform: rotate(225deg) translateY(-75px); opacity: 0.4; }
  .sun-ray-short:nth-child(21) { transform: rotate(255deg) translateY(-75px); opacity: 0.4; }
  .sun-ray-short:nth-child(22) { transform: rotate(285deg) translateY(-75px); opacity: 0.4; }
  .sun-ray-short:nth-child(23) { transform: rotate(315deg) translateY(-75px); opacity: 0.4; }
  .sun-ray-short:nth-child(24) { transform: rotate(345deg) translateY(-75px); opacity: 0.4; }
  
  /* Sonnen-Kern VOR den Strahlen */
  .sun-core {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 140px;
    height: 140px;
    background: radial-gradient(circle, 
      #fff9e6 0%,
      #ffe680 20%,
      #ffdb4d 40%,
      #ffcd1a 60%,
      rgba(255, 180, 0, 0.8) 80%,
      rgba(255, 140, 0, 0.3) 100%
    );
    border-radius: 50%;
    animation: pulse-sun-core 4s ease-in-out infinite;
    box-shadow: 
      0 0 30px rgba(255, 215, 0, 0.8),
      0 0 60px rgba(255, 180, 0, 0.6),
      0 0 90px rgba(255, 140, 0, 0.4),
      inset 0 0 30px rgba(255, 255, 200, 0.3);
    z-index: 2; /* VOR den Strahlen */
  }
  
  /* Funkelnde Lichtpunkte */
  .sun-sparkle {
    position: absolute;
    width: 3px;
    height: 3px;
    background: rgba(255, 250, 230, 0.8);
    border-radius: 50%;
    box-shadow: 0 0 6px rgba(255, 245, 200, 0.6);
    animation: sparkle-twinkle 2s ease-in-out infinite;
    z-index: 2;
  }
  
  @keyframes pulse-outer-glow {
    0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 0.5; }
    50% { transform: translate(-50%, -50%) scale(1.1); opacity: 0.7; }
  }
  
  @keyframes pulse-sun-core {
    0%, 100% { transform: translate(-50%, -50%) scale(1); }
    50% { transform: translate(-50%, -50%) scale(1.08); }
  }
  
  @keyframes rotate-rays {
    from { transform: translate(-50%, -50%) rotate(0deg); }
    to { transform: translate(-50%, -50%) rotate(360deg); }
  }
  
  @keyframes sparkle-twinkle {
    0%, 100% { 
      transform: scale(0.5); 
      opacity: 0.2; 
    }
    50% { 
      transform: scale(1.5); 
      opacity: 0.8; 
    }
  }
  
  /* Sterne für klare Nächte */
  @keyframes star-twinkle {
    0%, 100% { 
      opacity: 0.3; 
      transform: scale(1);
    }
    50% { 
      opacity: 1; 
      transform: scale(1.3);
    }
  }
  
  /* Animation für Resume-Benachrichtigung */
  @keyframes slideDown {
    from {
      opacity: 0;
      transform: translateX(-50%) translateY(-20px);
    }
    to {
      opacity: 1;
      transform: translateX(-50%) translateY(0);
    }
  }
  
  
/* =============================================================================
   FORUM STYLES - Integriert
   ============================================================================= */
/* =============================================================================
   FORUM STYLES - Glass Design Integration für Domian.one
   Füge diesen Block in deinen bestehenden <style> Tag ein
   ============================================================================= */

/* Forum Layout mit Sidebar */
.forum-layout {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.forum-main {
    flex: 1;
    min-width: 0;
}

/* Forum Sidebar */
.forum-sidebar {
    width: 280px;
    flex-shrink: 0;
    background: linear-gradient(180deg, rgba(255,255,255,.03), rgba(255,255,255,.01));
    border: 1px solid rgba(255,255,255,.08);
    border-radius: var(--r-md);
    padding: 16px;
    position: sticky;
    top: 80px;
    max-height: calc(100vh - 100px);
    overflow-y: auto;
}

.forum-sidebar-title {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(255,255,255,.08);
}

.forum-sidebar-tree {
    list-style: none;
    padding: 0;
    margin: 0;
}

.forum-sidebar-item {
    margin-bottom: 2px;
}

.forum-sidebar-link {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 10px;
    color: var(--text);
    text-decoration: none;
    font-size: 0.9rem;
    border-radius: 6px;
    transition: all 0.15s ease;
}

.forum-sidebar-link:hover {
    background: rgba(255,255,255,.05);
    color: var(--accent);
}

.forum-sidebar-link.active {
    background: rgba(124, 92, 255, .15);
    color: var(--accent);
}

.forum-sidebar-icon {
    font-size: 1rem;
    width: 20px;
    text-align: center;
}

.forum-sidebar-count {
    margin-left: auto;
    background: rgba(124, 92, 255, .2);
    color: var(--accent);
    font-size: 0.75rem;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 10px;
    min-width: 24px;
    text-align: center;
}

.forum-sidebar-unread {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    color: #fff;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: 10px;
    min-width: 20px;
    text-align: center;
    margin-left: 4px;
    animation: unreadPulse 2s ease-in-out infinite;
}

@keyframes unreadPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

/* Thread Unread Badge */
.forum-unread-badge {
    display: inline-block;
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    color: #fff;
    font-size: 0.65rem;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 4px;
    margin-left: 8px;
    vertical-align: middle;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.forum-thread-item.unread {
    background: rgba(231, 76, 60, 0.05);
    border-left: 3px solid #e74c3c;
}

.forum-thread-item.unread .forum-thread-title {
    font-weight: 600;
}

/* Forum Section Container */
.forum-section {
    margin-top: 20px;
}

.forum-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(255,255,255,.1);
}

.forum-header-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.forum-title {
    font-size: 1.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--accent), rgba(0,194,255,.9));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.forum-title-icon {
    font-size: 1.3rem;
    -webkit-text-fill-color: initial;
}

/* View Toggle Button */
.forum-view-toggle {
    display: flex;
    gap: 4px;
    background: rgba(255,255,255,.05);
    border-radius: 8px;
    padding: 4px;
}

.forum-view-btn {
    background: transparent;
    border: none;
    color: var(--muted);
    padding: 6px 10px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.15s ease;
}

.forum-view-btn:hover {
    color: var(--text);
    background: rgba(255,255,255,.05);
}

.forum-view-btn.active {
    background: rgba(124, 92, 255, .2);
    color: var(--accent);
}

/* Breadcrumb Navigation */
.forum-breadcrumb {
    display: flex;
    gap: 8px;
    align-items: center;
    color: var(--muted);
    font-size: 0.85rem;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.forum-breadcrumb a {
    color: var(--accent);
    text-decoration: none;
    transition: opacity .2s;
}

.forum-breadcrumb a:hover {
    opacity: 0.8;
    text-decoration: none;
}

.forum-breadcrumb > span {
    opacity: 0.5;
}

/* Categories Grid */
.forum-categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 14px;
}

/* Categories List View */
.forum-categories-list {
    display: none;
}

.forum-categories-list.active {
    display: block;
}

.forum-categories-grid.hidden {
    display: none;
}

.forum-category-list-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: linear-gradient(180deg, rgba(255,255,255,.03), rgba(255,255,255,.01));
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 8px;
    margin-bottom: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.forum-category-list-item:hover {
    border-color: var(--accentBorder);
    background: rgba(124, 92, 255, .05);
}

.forum-category-list-icon {
    font-size: 1.3rem;
}

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

.forum-category-list-name {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text);
    margin-bottom: 2px;
}

.forum-category-list-desc {
    font-size: 0.8rem;
    color: var(--muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.forum-category-list-stats {
    display: flex;
    gap: 12px;
    font-size: 0.8rem;
    color: var(--faint);
}

.forum-category-card {
    background: linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,.015));
    border: 1px solid rgba(255,255,255,.10);
    border-radius: var(--r-md);
    padding: 16px;
    cursor: pointer;
    transition: all .2s ease;
    position: relative;
    overflow: hidden;
}

.forum-category-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(300px 150px at 20% 0%, rgba(124,92,255,.08), transparent 70%);
    opacity: 0;
    transition: opacity .25s;
    pointer-events: none;
}

.forum-category-card:hover {
    border-color: var(--accentBorder);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(124, 92, 255, .12);
}

.forum-category-card:hover::before {
    opacity: 1;
}

/* Admin Actions - dezent im Titel-Bereich */
.forum-category-admin-actions {
    display: flex;
    gap: 4px;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.forum-category-card:hover .forum-category-admin-actions,
.forum-category-list-item:hover .forum-category-admin-actions {
    opacity: 1;
}

/* Live Radio Dot im Forum - gleich wie beim Live Radio Player */
.forum-live-dot {
    width: 10px;
    height: 10px;
    background: linear-gradient(135deg, #ff4081, #e91e63);
    border-radius: 50%;
    animation: forumPulseLive 2s ease-in-out infinite;
    box-shadow: 
        0 0 12px rgba(255, 64, 129, 0.8),
        0 0 24px rgba(255, 64, 129, 0.4);
    display: inline-block;
    margin-left: 8px;
    vertical-align: middle;
    position: relative;
    top: -1px;
}

.forum-live-dot::after {
    content: '';
    position: absolute;
    inset: -3px;
    border-radius: 50%;
    border: 1.5px solid rgba(255, 64, 129, 0.3);
    animation: forumRipple 2s ease-out infinite;
}

@keyframes forumPulseLive {
    0%, 100% { 
        opacity: 1; 
        transform: scale(1);
        box-shadow: 0 0 12px rgba(255, 64, 129, 0.8), 0 0 24px rgba(255, 64, 129, 0.4);
    }
    50% { 
        opacity: 0.85; 
        transform: scale(1.15);
        box-shadow: 0 0 16px rgba(255, 64, 129, 1), 0 0 32px rgba(255, 64, 129, 0.6);
    }
}

@keyframes forumRipple {
    0% { transform: scale(1); opacity: 0.5; }
    100% { transform: scale(2); opacity: 0; }
}

.forum-sidebar-link .forum-live-dot {
    width: 8px;
    height: 8px;
    margin-left: 6px;
    top: -1px;
}

.forum-category-info h3 .forum-live-dot,
.forum-category-list-name .forum-live-dot {
    width: 10px;
    height: 10px;
    top: -1px;
}

.forum-category-card:hover .forum-category-admin-actions,
.forum-category-list-item:hover .forum-category-admin-actions {
    opacity: 1;
}

.forum-category-admin-actions .admin-icon-btn {
    background: rgba(255,255,255,0.1);
    border: none;
    border-radius: 4px;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 0.7rem;
    transition: all 0.2s ease;
    color: var(--muted);
}

.forum-category-admin-actions .admin-icon-btn:hover {
    background: rgba(124, 92, 255, 0.3);
    color: #fff;
}

.forum-category-admin-actions .admin-icon-btn.btn-danger:hover {
    background: rgba(231, 76, 60, 0.4);
}

/* Drag Handle */
.forum-drag-handle {
    cursor: grab;
    opacity: 0.5;
    transition: opacity 0.2s;
    padding: 2px 4px;
    color: var(--muted);
    font-size: 0.8rem;
}

.forum-drag-handle:hover {
    opacity: 1;
}

.forum-drag-handle:active {
    cursor: grabbing;
}

/* Drag & Drop States */
.forum-category-card.dragging,
.forum-category-list-item.dragging {
    opacity: 0.5;
    transform: scale(0.98);
}

.forum-category-card.drag-over,
.forum-category-list-item.drag-over {
    border-color: var(--accent) !important;
    box-shadow: 0 0 15px rgba(124, 92, 255, 0.3);
}

.forum-category-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
}

.forum-category-icon {
    font-size: 1.8rem;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,.2));
}

.forum-category-info h3 {
    font-size: 1rem;
    font-weight: 600;
    margin: 0 0 3px;
    color: var(--text);
}

.forum-category-description {
    color: var(--muted);
    font-size: 0.8rem;
    line-height: 1.4;
}

.forum-category-stats {
    display: flex;
    gap: 14px;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid rgba(255,255,255,.06);
    font-size: 0.78rem;
    color: var(--faint);
}

.forum-category-stats span {
    display: flex;
    align-items: center;
    gap: 4px;
}

/* Thread List */
.forum-thread-list {
    background: linear-gradient(180deg, rgba(255,255,255,.03), rgba(255,255,255,.01));
    border: 1px solid rgba(255,255,255,.08);
    border-radius: var(--r-md);
    overflow: hidden;
}

/* MODERATION STYLES */
.hidden-content {
    background: rgba(255, 68, 68, 0.08) !important;
    border-left: 3px solid #ff4444 !important;
    position: relative;
}

.moderation-badge {
    background: linear-gradient(135deg, #ff4444, #cc0000);
    color: white;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: bold;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    box-shadow: 0 2px 8px rgba(255, 0, 0, 0.3);
}

.mod-action-btn {
    background: rgba(255,255,255,0.2);
    border: none;
    border-radius: 4px;
    padding: 3px 8px;
    cursor: pointer;
    font-size: 12px;
    transition: all 0.2s;
    color: white;
}

.mod-action-btn:hover {
    background: rgba(255,255,255,0.4);
    transform: scale(1.05);
}

.mod-action-btn.danger:hover {
    background: rgba(0,0,0,0.3);
}

.forum-thread-item {
    padding: 12px 16px;
    border-bottom: 1px solid rgba(255,255,255,.06);
    transition: background .15s;
    display: flex;
    align-items: center;
    gap: 12px;
    position: relative;
}

.forum-thread-item:hover {
    background: rgba(255,255,255,.02);
}

.forum-thread-item:last-child {
    border-bottom: none;
}

.forum-thread-icon {
    font-size: 1.1rem;
    opacity: 0.5;
    flex-shrink: 0;
}

.forum-thread-icon.pinned {
    color: var(--accent);
    opacity: 1;
}

.forum-thread-icon.locked {
    color: rgba(231, 76, 60, .9);
    opacity: 1;
}

.forum-thread-content {
    flex: 1;
    min-width: 0;
}

.forum-thread-title {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 3px;
    color: var(--text);
    text-decoration: none;
    display: block;
    transition: color .2s;
    overflow: visible;
    white-space: normal;
    word-wrap: break-word;
}

.forum-thread-title:hover {
    color: var(--accent);
}

.forum-thread-meta {
    display: flex;
    gap: 10px;
    font-size: 0.78rem;
    color: var(--muted);
    flex-wrap: wrap;
    align-items: center;
}

.forum-thread-stats {
    text-align: right;
    color: var(--muted);
    font-size: 0.78rem;
    flex-shrink: 0;
}

.forum-thread-stats div {
    margin-bottom: 2px;
}

/* Forum Tutorial Video Block */
.forum-tut-wrap {
    border: 1px solid rgba(124,92,255,.25);
    border-radius: 12px; margin: 8px 0; overflow: hidden;
}
.forum-tut-sum {
    display: flex; align-items: center; gap: 12px;
    padding: 12px 16px; cursor: pointer; user-select: none;
    list-style: none; background: rgba(124,92,255,.08);
    transition: background .15s;
}
.forum-tut-sum::-webkit-details-marker { display: none; }
.forum-tut-sum:hover { background: rgba(124,92,255,.15); }
.forum-tut-arrow {
    width: 26px; height: 26px; border-radius: 50%;
    background: rgba(124,92,255,.25); border: 1px solid rgba(124,92,255,.4);
    display: flex; align-items: center; justify-content: center;
    font-size: .7rem; color: #c4b5fd; flex-shrink: 0;
    transition: transform .2s, background .15s;
}
.forum-tut-wrap[open] .forum-tut-arrow { transform: rotate(90deg); background: rgba(124,92,255,.4); }
.forum-tut-title { font-weight: 600; font-size: .95rem; color: #e8eaf6; }
.forum-tut-video {
    width: 100%; max-width: 100%; display: block;
    background: #000; border-top: 1px solid rgba(124,92,255,.2);
}
/* Alle aufklappen Button */
.forum-videos-toggle-all {
    display: inline-flex; align-items: center; gap: 6px;
    cursor: pointer; background: rgba(255,255,255,.05);
    border: 1px solid rgba(255,255,255,.1); border-radius: 50px;
    padding: 5px 13px; color: rgba(255,255,255,.5); font-size: .78rem;
    font-weight: 600; transition: all .15s; margin-bottom: 10px;
    font-family: inherit;
}
.forum-videos-toggle-all:hover { background: rgba(255,255,255,.09); color: rgba(255,255,255,.75); }

/* Post Container - Kompakter */
.forum-post {
    background: linear-gradient(180deg, rgba(255,255,255,.03), rgba(255,255,255,.01));
    border: 1px solid rgba(255,255,255,.08);
    border-radius: var(--r-md);
    padding: 16px;
    margin-bottom: 12px;
    position: relative;
    overflow: hidden;
}

.forum-post.is-op {
    border-color: rgba(124, 92, 255, .2);
}

.forum-post.is-op::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--accent), rgba(0,194,255,.8));
    border-radius: var(--r-md) var(--r-md) 0 0;
}

.forum-post-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 12px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255,255,255,.06);
    gap: 10px;
    flex-wrap: wrap;
}

.forum-post-author {
    display: flex;
    align-items: center;
    gap: 10px;
}

.forum-post-number {
    flex-shrink: 0;
    text-align: center;
    line-height: 1.3;
}
.forum-post-number.has-select {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.forum-post-number a {
    color: rgba(255,255,255,.35);
    text-decoration: none;
    font-size: 0.82rem;
    font-weight: 600;
    font-family: 'Courier New', monospace;
    transition: color 0.2s;
}

.forum-post-number a:hover {
    color: var(--accent);
}

.forum-post-avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent), rgba(0,194,255,.8));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0;
    border: 2px solid rgba(255,255,255,.1);
    object-fit: cover;
}

.forum-post-author-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.forum-post-username {
    font-weight: 600;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.forum-post-time {
    font-size: 0.78rem;
    color: var(--muted);
}

.forum-post-content {
    line-height: 1.5;
    word-wrap: break-word;
    color: var(--text);
    font-size: 0.95rem;
}

.forum-post-footer {
    display: flex;
    gap: 10px;
    margin-top: 12px;
    padding-top: 10px;
    border-top: 1px solid rgba(255,255,255,.06);
    flex-wrap: wrap;
    align-items: center;
}

.forum-category-card:hover::before {
    opacity: 1;
}

.forum-category-header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 12px;
}

.forum-category-icon {
    font-size: 2.2rem;
    filter: drop-shadow(0 4px 8px rgba(0,0,0,.3));
}

.forum-category-info h3 {
    font-size: 1.15rem;
    font-weight: 600;
    margin: 0 0 4px;
    color: var(--text);
}

.forum-category-description {
    color: var(--muted);
    font-size: 0.85rem;
    line-height: 1.4;
}

.forum-category-stats {
    display: flex;
    gap: 18px;
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid rgba(255,255,255,.08);
    font-size: 0.82rem;
    color: var(--faint);
}

.forum-category-stats span {
    display: flex;
    align-items: center;
    gap: 5px;
}

/* Thread List */
.forum-thread-list {
    background: linear-gradient(180deg, rgba(255,255,255,.035), rgba(255,255,255,.012));
    border: 1px solid rgba(255,255,255,.10);
    border-radius: var(--r-md);
    overflow: hidden;
}

.forum-thread-item {
    padding: 18px 22px;
    border-bottom: 1px solid rgba(255,255,255,.07);
    transition: background .2s;
    display: flex;
    align-items: center;
    gap: 18px;
}

.forum-thread-item:hover {
    background: rgba(255,255,255,.03);
}

.forum-thread-item:last-child {
    border-bottom: none;
}

.forum-thread-icon {
    font-size: 1.4rem;
    opacity: 0.6;
    flex-shrink: 0;
}

.forum-thread-icon.pinned {
    color: var(--accent);
    opacity: 1;
}

.forum-thread-icon.locked {
    color: rgba(231, 76, 60, .9);
    opacity: 1;
}

.forum-thread-content {
    flex: 1;
    min-width: 0;
}

.forum-thread-title {
    font-size: 1.05rem;
    font-weight: 600;
    margin-bottom: 6px;
    color: var(--text);
    text-decoration: none;
    display: block;
    transition: color .2s;
    overflow: visible;
    white-space: normal;
    word-wrap: break-word;
}

.forum-thread-title:hover {
    color: var(--accent);
}

.forum-thread-meta {
    display: flex;
    gap: 14px;
    font-size: 0.82rem;
    color: var(--muted);
    flex-wrap: wrap;
    align-items: center;
}

.forum-thread-stats {
    text-align: right;
    color: var(--muted);
    font-size: 0.82rem;
    flex-shrink: 0;
}

.forum-thread-stats div {
    margin-bottom: 4px;
}

/* Post Container */
.forum-post {
    background: linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,.015));
    border: 1px solid rgba(255,255,255,.10);
    border-radius: var(--r-md);
    padding: 22px;
    margin-bottom: 18px;
    position: relative;
    overflow: hidden;
}

.forum-post.is-op {
    border-color: rgba(124, 92, 255, .25);
}

.forum-post.is-op::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--accent), rgba(0,194,255,.8));
    border-radius: var(--r-md) var(--r-md) 0 0;
}

.forum-post-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 18px;
    padding-bottom: 14px;
    border-bottom: 1px solid rgba(255,255,255,.08);
    gap: 15px;
    flex-wrap: wrap;
}

.forum-post-author {
    display: flex;
    align-items: center;
    gap: 12px;
}

.forum-post-avatar {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent), rgba(0,194,255,.8));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    flex-shrink: 0;
    border: 2px solid rgba(255,255,255,.15);
    object-fit: cover;
}

.forum-post-author-info {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.forum-post-username {
    font-weight: 600;
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.forum-post-time {
    font-size: 0.82rem;
    color: var(--muted);
}

.forum-post-content {
    line-height: 1.5;
    word-wrap: break-word;
    color: var(--text);
}

.forum-post-footer {
    display: flex;
    gap: 12px;
    margin-top: 18px;
    padding-top: 14px;
    border-top: 1px solid rgba(255,255,255,.08);
    flex-wrap: wrap;
    align-items: center;
}

.forum-post-actions {
    display: flex;
    gap: 6px;
    margin-left: auto;
    flex-wrap: wrap;
}

/* Role Badges - Kompakter */
.forum-role-badge {
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    display: inline-block;
}

.forum-role-badge.role-admin {
    background: linear-gradient(135deg, rgba(231, 76, 60, 0.2), rgba(231, 76, 60, 0.1));
    color: #ff6b6b;
    border: 1px solid rgba(231, 76, 60, 0.3);
}

.forum-role-badge.role-bot {
    background: linear-gradient(135deg, rgba(155, 89, 182, 0.2), rgba(155, 89, 182, 0.1));
    color: #9b59b6;
    border: 1px solid rgba(155, 89, 182, 0.3);
}

.forum-role-badge.role-moderator {
    background: linear-gradient(135deg, rgba(46, 204, 113, 0.2), rgba(46, 204, 113, 0.1));
    color: #2ecc71;
    border: 1px solid rgba(46, 204, 113, 0.3);
}

.forum-role-badge.role-donor {
    background: linear-gradient(135deg, rgba(52, 152, 219, 0.2), rgba(52, 152, 219, 0.1));
    color: #5dade2;
    border: 1px solid rgba(52, 152, 219, 0.3);
}

.forum-role-badge.role-member {
    background: linear-gradient(135deg, rgba(241, 196, 15, 0.2), rgba(241, 196, 15, 0.1));
    color: #f1c40f;
    border: 1px solid rgba(241, 196, 15, 0.3);
}

.forum-role-badge.role-user {
    background: linear-gradient(135deg, rgba(149, 165, 166, 0.2), rgba(149, 165, 166, 0.1));
    color: #95a5a6;
    border: 1px solid rgba(149, 165, 166, 0.3);
}

/* Schickes Lösch-Bestätigungs-Modal */
.forum-confirm-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.75);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 10000;
    justify-content: center;
    align-items: center;
}

.forum-confirm-modal.active {
    display: flex;
}

.forum-confirm-modal-content {
    background: transparent;
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 20px;
    padding: 32px;
    max-width: 400px;
    width: 90%;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0,0,0,0.5), 0 0 40px rgba(124,92,255,.1);
    animation: modalSlideIn 0.2s ease-out;
}

@keyframes modalSlideIn {
    from { opacity: 0; transform: scale(0.95) translateY(-10px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}

.forum-confirm-modal-icon {
    font-size: 3rem;
    margin-bottom: 16px;
}

.forum-confirm-modal-title {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--text);
}

.forum-confirm-modal-text {
    color: var(--muted);
    margin-bottom: 24px;
    font-size: 0.95rem;
    line-height: 1.5;
}

.forum-confirm-modal-buttons {
    display: flex;
    gap: 12px;
    justify-content: center;
}

/* Reaction Pill (Herz + Zahl in einer Pille) */
.reaction-pill {
    display: inline-flex;
    align-items: center;
    border: 1px solid rgba(255,255,255,.1);
    border-radius: 20px;
    background: rgba(255,255,255,.03);
    overflow: hidden;
    transition: all .15s;
    font-size: 0.82rem;
}
.reaction-pill:hover {
    border-color: rgba(255,255,255,.18);
}
.reaction-pill.active {
    border-color: rgba(239,68,68,.4);
    background: rgba(239,68,68,.08);
}
.reaction-pill-heart {
    background: none;
    border: none;
    padding: 5px 10px;
    cursor: pointer;
    font-size: 0.85rem;
    line-height: 1;
    transition: transform .15s;
    color: inherit;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.reaction-pill-heart:hover {
    transform: scale(1.2);
}
.reaction-pill.active .reaction-pill-heart {
    filter: none;
}
.reaction-pill-count {
    padding: 5px 10px 5px 4px;
    color: var(--muted);
    font-weight: 600;
    font-size: 0.78rem;
    cursor: pointer;
    border-left: 1px solid rgba(255,255,255,.08);
    transition: all .15s;
    min-width: 24px;
    text-align: center;
}
.reaction-pill-count:hover {
    color: var(--text);
    background: rgba(255,255,255,.05);
}
.reaction-pill-count.hidden {
    display: none;
}
.reaction-pill.active .reaction-pill-count {
    color: rgba(239,68,68,.8);
}

/* Reaction Users Modal (Glass-Design wie Profil) */
.reaction-users-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.75);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 1000;
}
.reaction-users-modal {
    display: flex;
    position: fixed;
    inset: 0;
    z-index: 1001;
    justify-content: center;
    align-items: center;
    padding: 20px;
}
.reaction-users-glass {
    background: transparent;
    border: 1px solid rgba(255,255,255,.1);
    box-shadow: 0 20px 60px rgba(0,0,0,.5);
    border-radius: 16px;
    overflow: hidden;
    max-width: 420px;
    width: 100%;
    max-height: 70vh;
    display: flex;
    flex-direction: column;
}
.reaction-users-glass-inner {
    background: transparent;
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
}
.reaction-users-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 1px solid rgba(255,255,255,.08);
}
.reaction-users-header h3 {
    margin: 0;
    font-size: 1rem;
    font-weight: 700;
    color: var(--text);
    display: flex;
    align-items: center;
    gap: 8px;
}
.reaction-users-close {
    background: rgba(255,255,255,.06);
    border: 1px solid rgba(255,255,255,.1);
    color: var(--muted);
    width: 32px;
    height: 32px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: .15s;
}
.reaction-users-close:hover {
    background: rgba(255,255,255,.12);
    color: var(--text);
}
.reaction-users-list {
    overflow-y: auto;
    max-height: calc(70vh - 60px);
    padding: 6px 0;
}
.reaction-user-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 20px;
    cursor: pointer;
    transition: background .15s;
}
.reaction-user-item:hover {
    background: rgba(255,255,255,.05);
}
.reaction-user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(255,255,255,.1);
    flex-shrink: 0;
}
.reaction-user-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.reaction-user-name {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text);
}
.reaction-user-role {
    font-size: 0.7rem;
    padding: 2px 8px;
    border-radius: 6px;
    font-weight: 600;
    display: inline-block;
    width: fit-content;
}

/* Quote - Kompakter */
.forum-quoted-content {
    background: rgba(0,0,0,.15);
    border-left: 2px solid var(--accent);
    padding: 10px 12px;
    margin-bottom: 12px;
    border-radius: 0 6px 6px 0;
    font-size: 0.85rem;
    color: var(--muted);
}

.forum-quoted-content strong {
    color: var(--accent);
    display: block;
    margin-bottom: 4px;
    font-size: 0.8rem;
}

/* Edit Indicator */
.forum-edit-indicator {
    font-size: 0.75rem;
    color: var(--faint);
    font-style: italic;
    margin-top: 8px;
}

/* Modal */
.forum-modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 100001;
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
}

.forum-modal.active {
    display: flex;
}

.forum-modal-content {
    background: transparent;
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 20px;
    padding: 28px;
    max-width: 600px;
    width: 100%;
    max-height: 85vh;
    overflow-y: auto;
    box-shadow: 0 25px 80px rgba(0,0,0,.5), 0 0 40px rgba(124,92,255,.1);
    animation: modalAppear 0.25s ease-out;
}

@keyframes modalAppear {
    from {
        opacity: 0;
        transform: scale(0.92) translateY(-15px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.forum-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 22px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(255,255,255,.1);
}

.forum-modal-header h2 {
    font-size: 1.35rem;
    font-weight: 600;
    margin: 0;
    color: var(--text);
}

.forum-modal-close {
    background: transparent;
    border: none;
    color: var(--muted);
    font-size: 1.8rem;
    cursor: pointer;
    line-height: 1;
    padding: 0;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    transition: all .2s;
}

.forum-modal-close:hover {
    color: var(--text);
    background: rgba(255,255,255,.08);
}

/* Form Elements */
.forum-form-group {
    margin-bottom: 20px;
}

.forum-form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--text);
    font-size: 0.95rem;
}

/* Editor Toolbar */
.forum-editor-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    padding: 8px 10px;
    background: rgba(0,0,0,.3);
    border: 1px solid rgba(255,255,255,.12);
    border-bottom: none;
    border-radius: 10px 10px 0 0;
}

.forum-editor-toolbar button {
    background: rgba(255,255,255,.08);
    border: 1px solid rgba(255,255,255,.1);
    border-radius: 6px;
    color: var(--muted);
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all .15s;
}

.forum-editor-toolbar button:hover {
    background: rgba(124, 92, 255, .2);
    border-color: var(--accentBorder);
    color: var(--text);
}

.forum-editor-toolbar button:active {
    transform: scale(0.95);
}

.forum-editor-toolbar .separator {
    width: 1px;
    height: 24px;
    background: rgba(255,255,255,.1);
    margin: 4px 6px;
}

.forum-form-group.has-toolbar textarea {
    border-radius: 0 0 10px 10px;
}

/* Editor Toolbar Groups & Dropdowns */
.forum-editor-toolbar .toolbar-group {
    display: flex;
    gap: 3px;
    align-items: center;
}
.forum-editor-toolbar .toolbar-group + .toolbar-group {
    margin-left: 2px;
    padding-left: 8px;
    border-left: 1px solid rgba(255,255,255,.08);
}
.forum-editor-toolbar .toolbar-btn-label {
    font-size: .75rem;
    padding: 0 4px;
    min-width: auto;
    width: auto;
    white-space: nowrap;
}
.forum-editor-toolbar .toolbar-dropdown-btn {
    position: relative;
    width: auto;
    min-width: 32px;
    padding: 0 6px;
    font-size: .78rem;
    gap: 3px;
}
.forum-editor-toolbar .toolbar-dropdown-btn::after {
    content: '▾';
    font-size: .6rem;
    opacity: .5;
}

/* Dropdown Panels */
.toolbar-dropdown-panel {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 100;
    min-width: 140px;
    background: rgba(30,30,40,.97);
    border: 1px solid rgba(255,255,255,.15);
    border-radius: 8px;
    padding: 6px;
    box-shadow: 0 8px 32px rgba(0,0,0,.5);
    backdrop-filter: blur(12px);
}
.toolbar-dropdown-panel.active {
    display: block;
}
.toolbar-dropdown-panel button {
    display: block;
    width: 100%;
    text-align: left;
    padding: 7px 10px;
    background: none;
    border: none;
    border-radius: 5px;
    color: var(--text);
    font-size: .88rem;
    cursor: pointer;
    white-space: nowrap;
}
.toolbar-dropdown-panel button:hover {
    background: rgba(124,92,255,.2);
}

/* Color Palette */
.toolbar-color-panel {
    min-width: 200px;
    padding: 10px;
}
.toolbar-color-panel .color-grid {
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    gap: 4px;
}
.toolbar-color-panel .color-swatch {
    width: 22px;
    height: 22px;
    border-radius: 4px;
    border: 2px solid transparent;
    cursor: pointer;
    transition: transform .1s, border-color .1s;
}
.toolbar-color-panel .color-swatch:hover {
    transform: scale(1.25);
    border-color: #fff;
}

/* Forum Post Content — rendered styles */
.forum-post-content h3,
.forum-post-content h4,
.forum-post-content h5 {
    margin: 12px 0 6px;
    line-height: 1.3;
}
.forum-post-content h3 { font-size: 1.3rem; }
.forum-post-content h4 { font-size: 1.15rem; }
.forum-post-content h5 { font-size: 1rem; }

.forum-post-content blockquote {
    border-left: 3px solid var(--accent, #7c5cff);
    margin: 8px 0;
    padding: 8px 14px;
    background: rgba(124,92,255,.06);
    border-radius: 0 6px 6px 0;
    color: rgba(255,255,255,.8);
}

.forum-post-content pre {
    background: rgba(0,0,0,.4);
    border: 1px solid rgba(255,255,255,.1);
    border-radius: 8px;
    padding: 12px 14px;
    overflow-x: auto;
    margin: 8px 0;
    font-family: 'Fira Code', 'Consolas', monospace;
    font-size: .88rem;
    line-height: 1.5;
}
.forum-post-content pre code {
    background: none !important;
    padding: 0 !important;
    border-radius: 0 !important;
    font-size: inherit;
}

.forum-post-content ul,
.forum-post-content ol {
    margin: 6px 0;
    padding-left: 24px;
}
.forum-post-content li {
    margin: 3px 0;
}

.forum-post-content details {
    background: rgba(255,255,255,.04);
    border: 1px solid rgba(255,255,255,.1);
    border-radius: 8px;
    margin: 8px 0;
    overflow: hidden;
}
.forum-post-content details summary {
    padding: 10px 14px;
    cursor: pointer;
    font-weight: 600;
    background: rgba(255,255,255,.03);
    user-select: none;
}
.forum-post-content details summary:hover {
    background: rgba(255,255,255,.06);
}
.forum-post-content details > div {
    padding: 10px 14px;
}

.forum-post-content .table-wrapper {
    overflow-x: auto;
    margin: 8px 0;
    border-radius: 8px;
    border: 1px solid rgba(255,255,255,.12);
}
.forum-post-content table {
    border-collapse: collapse;
    width: 100%;
    min-width: 200px;
}
.forum-post-content td,
.forum-post-content th {
    border: 1px solid rgba(255,255,255,.12);
    padding: 8px 14px;
    text-align: left;
    min-width: 60px;
}
.forum-post-content tr:nth-child(even) {
    background: rgba(255,255,255,.03);
}
.forum-post-content th {
    background: rgba(124,92,255,.12);
    font-weight: 600;
    color: var(--text);
}

.forum-post-content iframe {
    border-radius: 8px;
    margin: 8px 0;
    max-width: 100%;
}

/* Post select checkbox (Moderator) */
.forum-post-select {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    cursor: pointer;
    margin-left: 4px;
}
.forum-post-select input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: var(--accent, #7c5cff);
}
.forum-post {
    position: relative;
}
.forum-post.batch-selected {
    outline: 2px solid var(--accent, #7c5cff);
    outline-offset: -2px;
    background: rgba(124,92,255,.04);
}

/* Batch action bar */
.forum-batch-bar {
    position: sticky;
    bottom: 0;
    z-index: 50;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 18px;
    background: rgba(30,30,40,.95);
    border: 1px solid rgba(124,92,255,.3);
    border-radius: 12px;
    margin: 12px 0;
    backdrop-filter: blur(12px);
    font-size: .9rem;
    color: var(--text);
    flex-wrap: wrap;
}

/* Tabellen-Editor im Modal (WBB3-Style) */
.table-editor-table {
    width: 100%;
    border-collapse: collapse;
    border: 1px solid rgba(255,255,255,.2);
    border-radius: 6px;
    overflow: hidden;
}
.table-editor-table th,
.table-editor-table td {
    border: 1px solid rgba(255,255,255,.15);
    padding: 0;
}
.table-editor-table th {
    background: rgba(124,92,255,.15);
}
.table-editor-table td {
    background: rgba(0,0,0,.2);
}
.table-editor-table input {
    width: 100%;
    min-width: 80px;
    padding: 8px 10px;
    background: transparent;
    border: none;
    color: var(--text);
    font-size: 0.9rem;
    font-family: inherit;
    outline: none;
    box-sizing: border-box;
}
.table-editor-table input:focus {
    background: rgba(124,92,255,.08);
}
.table-editor-table input::placeholder {
    color: rgba(255,255,255,.25);
    font-style: italic;
}

/* Mobile toolbar adjustments */
@media (max-width: 600px) {
    .forum-editor-toolbar {
        gap: 3px;
        padding: 6px 8px;
    }
    .forum-editor-toolbar .toolbar-group + .toolbar-group {
        padding-left: 5px;
    }
    .forum-editor-toolbar button {
        width: 28px;
        height: 28px;
        font-size: .8rem;
    }
}

.forum-form-group input,
.forum-form-group textarea,
.forum-form-group select {
    width: 100%;
    padding: 12px 14px;
    background: rgba(255,255,255,.06);
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 10px;
    color: var(--text);
    font-size: 0.95rem;
    font-family: inherit;
    transition: all .2s;
}

.forum-form-group input:focus,
.forum-form-group textarea:focus,
.forum-form-group select:focus {
    outline: none;
    border-color: var(--accentBorder);
    background: rgba(255,255,255,.08);
    box-shadow: 0 0 0 3px rgba(124, 92, 255, .12);
}

.forum-form-group textarea {
    min-height: 360px;
    resize: vertical;
    line-height: 1.6;
}

/* Toggle Switch */
.forum-toggle-switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 26px;
    flex-shrink: 0;
}
.forum-toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}
.forum-toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(255,255,255,.15);
    transition: .3s;
    border-radius: 26px;
}
.forum-toggle-slider:before {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    left: 3px;
    bottom: 3px;
    background: white;
    transition: .3s;
    border-radius: 50%;
}
.forum-toggle-switch input:checked + .forum-toggle-slider {
    background: linear-gradient(135deg, #7c5cff, #00d9ff);
}
.forum-toggle-switch input:checked + .forum-toggle-slider:before {
    transform: translateX(24px);
}

/* Pagination */
.forum-pagination {
    display: flex;
    gap: 8px;
    justify-content: center;
    margin-top: 28px;
    flex-wrap: wrap;
}

.forum-pagination a,
.forum-pagination span {
    padding: 8px 14px;
    background: rgba(255,255,255,.06);
    border: 1px solid rgba(255,255,255,.10);
    border-radius: 8px;
    color: var(--text);
    text-decoration: none;
    transition: all .2s;
    font-size: 0.9rem;
}

.forum-pagination a:hover {
    border-color: var(--accentBorder);
    color: var(--accent);
    background: rgba(124, 92, 255, .08);
}

.forum-pagination .active {
    background: rgba(124, 92, 255, .2);
    border-color: var(--accentBorder);
    color: var(--accent);
}

/* Thread Actions Bar */
.forum-thread-actions {
    display: flex;
    gap: 10px;
    margin-bottom: 22px;
    flex-wrap: wrap;
}

/* Empty State */
.forum-empty-state {
    text-align: center;
    padding: 50px 20px;
    color: var(--muted);
}

.forum-empty-state .icon {
    font-size: 3.5rem;
    margin-bottom: 18px;
    opacity: 0.6;
}

.forum-empty-state p {
    font-size: 1.05rem;
    margin-bottom: 20px;
}

/* Reply Form */
.forum-reply-form {
    background: linear-gradient(180deg, rgba(255,255,255,.035), rgba(255,255,255,.015));
    border: 1px solid rgba(255,255,255,.10);
    border-radius: var(--r-md);
    padding: 22px;
    margin-top: 25px;
}

.forum-reply-form h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0 0 18px;
    color: var(--text);
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Mobile Responsive */
@media (max-width: 992px) {
    .forum-sidebar {
        display: none;
    }
    
    .forum-layout {
        display: block;
    }
}

@media (max-width: 768px) {
    .forum-categories-grid {
        grid-template-columns: 1fr;
    }
    
    .forum-thread-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
        padding: 10px 14px;
    }
    
    .forum-thread-stats {
        text-align: left;
        width: 100%;
        display: flex;
        gap: 12px;
    }
    
    .forum-post-header {
        flex-direction: column;
        gap: 8px;
    }
    
    .forum-post-actions {
        margin-left: 0;
        width: 100%;
        justify-content: flex-start;
    }
    
    .forum-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .forum-header-left {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .forum-title {
        font-size: 1.3rem;
    }
    
    .forum-modal-content {
        padding: 16px;
    }
    
    .forum-category-stats {
        flex-wrap: wrap;
        gap: 8px;
    }
    
    .forum-category-card {
        padding: 14px;
    }
    
    .forum-post {
        padding: 12px;
        margin-bottom: 10px;
    }
}

@media (max-width: 480px) {
    .forum-thread-stats {
        flex-direction: column;
        gap: 4px;
    }
    
    .forum-post-footer {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .forum-post-actions {
        width: 100%;
    }
    
    .forum-view-toggle {
        display: none;
    }
}

/* =============================================================================
   ENDE FORUM STYLES
   ============================================================================= */

/* =============================================================================
   SMILIES PANEL
   ============================================================================= */
.smilies-panel {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 8px;
    padding: 12px;
    margin-bottom: 12px;
    display: none;
}

.smilies-panel.active {
    display: block;
}

.smilies-toggle {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 6px;
    color: var(--text);
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.2s;
    margin-bottom: 8px;
}

.smilies-toggle:hover {
    background: rgba(255,255,255,0.08);
    border-color: var(--accent);
}

.smilies-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(45px, 1fr));
    gap: 8px;
    max-height: 200px;
    overflow-y: auto;
}

.smiley-btn {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 6px;
    padding: 8px;
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.smiley-btn:hover {
    background: rgba(124,92,255,0.2);
    border-color: var(--accent);
    transform: scale(1.1);
}

.smilies-search {
    width: 100%;
    padding: 8px 12px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 6px;
    color: var(--text);
    font-size: 0.9rem;
    margin-bottom: 10px;
}

.smilies-search:focus {
    outline: none;
    border-color: var(--accent);
    background: rgba(255,255,255,0.08);
}


/* Aktive Episode in Kategorien */
.category-episode-item.playing {
    border: 2px solid rgba(124,92,255,0.6) !important;
    background: linear-gradient(135deg, rgba(124,92,255,0.15), rgba(167,139,250,0.1)) !important;
    box-shadow: 0 0 20px rgba(124,92,255,0.3) !important;
}

/* Aktiver Timestamp in Suchergebnissen - gleicher Style wie Sticky Player */
.search-match-item.playing {
    background: linear-gradient(180deg, rgba(255,64,129,0.15), rgba(255,64,129,0.08)) !important;
    border: 2px solid rgba(255,64,129,0.8) !important;
    border-left: 3px solid rgba(255,64,129,1) !important;
    border-radius: 10px !important;
    box-shadow: 0 0 20px rgba(255,64,129,0.3), inset 0 0 30px rgba(255,64,129,0.05) !important;
}

/* Kategorien-Header Mobile-Optimierung */
@media (max-width: 768px) {
  .categories-header {
    font-size: 1.1rem !important;
  }
  .categories-header .anrufer-count {
    font-size: 0.7em !important;
  }
  
  /* Suchergebnisse: Topic unter Datum auf Mobile */
  .search-result-header {
    gap: 4px !important;
  }
  .search-result-topic {
    text-align: left !important;
  }
  
  /* Episode-Item: Punkt nach Datum nur auf Desktop */
  .episode-item .date::after {
    display: none !important;
  }
}

/* Zeitmarken-Ordner: Normale und Hover-Styles */
.folder-card.folder-dropzone {
  border: 2px solid rgba(255,255,255,0.1) !important;
  background: rgba(255,255,255,0.03) !important;
  transition: all 0.2s ease !important;
}
.folder-card.folder-dropzone:hover {
  border-color: rgba(124, 92, 255, 0.5) !important;
  background: rgba(124, 92, 255, 0.1) !important;
}
.folder-card.folder-dropzone.active {
  border-color: var(--accent) !important;
  background: rgba(124,92,255,0.2) !important;
}

/* Punkt nach Datum nur auf Desktop */
@media (min-width: 769px) {
  .episode-item .date::after {
    content: ' •';
  }
}

/* Suchergebnis-Header auf Mobile */
@media (max-width: 600px) {
  .search-result-topic {
    text-align: left !important;
  }
}
/* ========== SPOILER QUOTES – Blur-Effekt ========== */
.spoiler-quote {
    position: relative;
    display: inline-block;
    cursor: pointer;
    border-radius: 4px;
    transition: filter 0.4s ease, background 0.3s ease;
}
.spoiler-quote:not(.revealed) {
    filter: blur(7px);
    -webkit-filter: blur(7px);
    background: rgba(255,255,255,0.04);
    user-select: none;
    -webkit-user-select: none;
}
.spoiler-quote:not(.revealed):hover {
    filter: blur(4px);
    -webkit-filter: blur(4px);
    background: rgba(124,92,255,0.06);
}
.spoiler-quote:not(.revealed):active {
    filter: blur(0px);
    -webkit-filter: blur(0px);
}
.spoiler-quote.revealed {
    filter: none !important;
    -webkit-filter: none !important;
    background: none;
    cursor: default;
    user-select: auto;
}
body.quotes-always-visible .spoiler-quote {
    filter: none !important;
    -webkit-filter: none !important;
    background: none !important;
    cursor: default !important;
    user-select: auto !important;
}

/* if ($_showMaintenanceOverlay): */
/* ===== WARTUNGSMODUS ===== */
#maintenance-page-wrapper {
    filter: blur(6px) brightness(0.6) saturate(0.7);
    pointer-events: none !important;
    user-select: none !important;
    -webkit-user-select: none !important;
    overflow: hidden;
    max-height: 100vh;
}
body.maintenance-active { overflow: hidden !important; }
#maintenance-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(6,8,16,0.35);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}
@keyframes maint-cardIn { from { opacity: 0; transform: translateY(24px) scale(0.96); } to { opacity: 1; transform: translateY(0) scale(1); } }
@keyframes maint-gearSpin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
@keyframes maint-pulse { 0%,100% { opacity: 0.5; } 50% { opacity: 1; } }
@keyframes maint-glow { 0%,100% { box-shadow: 0 20px 60px rgba(124,92,255,0.1), inset 0 0 0 1px rgba(124,92,255,0.12); } 50% { box-shadow: 0 20px 80px rgba(124,92,255,0.18), inset 0 0 0 1px rgba(124,92,255,0.22); } }
.maint-card {
    position: relative;
    text-align: center;
    max-width: 460px;
    width: 90%;
    padding: 44px 36px 36px;
    background: transparent;
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 24px;
    animation: maint-cardIn 0.6s cubic-bezier(0.16,1,0.3,1) both, maint-glow 4s 0.6s ease-in-out infinite;
}
.maint-gear {
    font-size: 3.8rem;
    display: inline-block;
    animation: maint-gearSpin 8s linear infinite;
    margin-bottom: 16px;
    filter: drop-shadow(0 4px 20px rgba(124,92,255,0.45));
    line-height: 1;
}
.maint-title {
    font-size: 1.6rem;
    font-weight: 800;
    background: linear-gradient(135deg, #a78bfa, #818cf8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 10px;
    letter-spacing: -0.02em;
}
.maint-text {
    font-size: 0.92rem;
    color: rgba(255,255,255,0.6);
    line-height: 1.7;
    margin-bottom: 24px;
}
.maint-status {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 20px;
    background: rgba(124,92,255,0.08);
    border: 1px solid rgba(124,92,255,0.18);
    border-radius: 50px;
    font-size: 0.82rem;
    color: rgba(255,255,255,0.5);
}
.maint-dot {
    width: 7px; height: 7px;
    background: #a78bfa;
    border-radius: 50%;
    animation: maint-pulse 2s ease-in-out infinite;
    flex-shrink: 0;
}
.maint-login-link {
    display: inline-block;
    margin-top: 20px;
    padding: 10px 26px;
    background: rgba(124,92,255,0.12);
    border: 1px solid rgba(124,92,255,0.3);
    border-radius: 12px;
    color: #a78bfa !important;
    text-decoration: none;
    font-size: 0.86rem;
    font-weight: 600;
    transition: all 0.25s ease;
}
.maint-login-link:hover {
    background: rgba(124,92,255,0.25);
    border-color: rgba(124,92,255,0.5);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(124,92,255,0.2);
    color: #c4b5fd !important;
}
.maint-footer { margin-top: 22px; font-size: 0.74rem; color: rgba(255,255,255,0.18); }
@media (max-width: 600px) {
    .maint-card { padding: 30px 22px 26px; border-radius: 20px; }
    .maint-title { font-size: 1.3rem; }
    .maint-gear { font-size: 3rem; }
}
/* endif; */

/* ===== MOBILE PERFORMANCE OPTIMIERUNG ===== */
@media (max-width: 768px) {
  /* Keine unnötigen GPU-Layer */
  * {
    will-change: auto !important;
  }

  /* Sonne: Rotations- & Glow-Animationen deaktivieren */
  .sun-rays { animation: none !important; }
  .sun-outer-glow { animation: none !important; }
  .sun-core { animation: none !important; }
  .sun-sparkle { animation: none !important; display: none !important; }
  .sun-ray, .sun-ray-short { filter: none !important; }

  /* Wetter: filter:blur entfernen (GPU-Flaschenhals auf Mobile) */
  .weather-cloud { filter: none !important; }

  /* Live-Dot: Ripple-Welle weglassen, nur simples Pulsieren */
  #live-player-container .live-dot::after { animation: none !important; }

  /* Rotierende Glow-Animation im Live-Player deaktivieren */
  #live-player-container::before { animation: none !important; }

  /* Quiz-Puls-Animation deaktivieren */
  #sticky-quiz-toggle.quiz-pulse { animation: none !important; }

  /* Ungelesene-Badge-Puls deaktivieren */
  #chat-unread-badge { animation: none !important; }

  /* Logo-Partikel verstecken */
  .logo-particle { display: none !important; }

  /* Forum-Ripple-Welle deaktivieren */
  .forum-live-dot::after { animation: none !important; }
}
/* Animationen pausieren wenn Tab nicht sichtbar */
.page-hidden *,
.page-hidden *::before,
.page-hidden *::after {
  animation-play-state: paused !important;
  transition: none !important;
}

/* ============================================================================
   MUSIK-PLAYER (Deezer-Style Tracklist mit 5-Sterne Bewertung)
   ============================================================================ */

#musik-player-container {
  background: rgba(12, 14, 24, 0.98);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease;
  opacity: 0;
}
#musik-player-container.open {
  max-height: 420px;
  opacity: 1;
}

.musik-player-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px 8px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.musik-player-icon {
  color: #9c27b0;
  display: flex;
  align-items: center;
}
.musik-player-title {
  font-size: 0.95rem;
  font-weight: 600;
  color: rgba(156, 39, 176, 1);
}
.musik-player-count {
  font-size: 0.75rem;
  color: var(--muted);
  margin-left: auto;
}

.musik-tracklist {
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-y;
  max-height: 370px;
  padding: 4px 0;
}

.musik-track {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px;
  cursor: pointer;
  transition: background 0.15s ease;
  position: relative;
}
.musik-track:hover {
  background: rgba(156, 39, 176, 0.08);
}
/* Aktiver Track - leuchtender Indikator */
.musik-track-active {
  background: linear-gradient(90deg, rgba(156, 39, 176, 0.2) 0%, rgba(124, 92, 255, 0.1) 100%) !important;
}
.musik-track-active .musik-track-num .musik-num-text {
  display: none;
}
.musik-track-active .musik-track-num .musik-equalizer {
  display: flex;
}
.musik-track-active .musik-track-play {
  display: none !important;
}
.musik-track-active .musik-track-title {
  color: #ce93d8 !important;
  font-weight: 600;
}
.musik-track-active .musik-track-genre {
  color: rgba(206, 147, 216, 0.8);
}

/* Track-Nummer & Equalizer */
.musik-track-num {
  width: 28px;
  text-align: center;
  font-size: 0.8rem;
  color: var(--muted);
  flex-shrink: 0;
  position: relative;
}
.musik-equalizer {
  display: none;
  align-items: flex-end;
  justify-content: center;
  gap: 2px;
  height: 16px;
}
.musik-equalizer span {
  display: block;
  width: 3px;
  border-radius: 1.5px;
  background: #ce93d8;
  animation: musik-eq 1.2s ease-in-out infinite;
}
.musik-equalizer span:nth-child(1) { height: 40%; animation-delay: 0s; }
.musik-equalizer span:nth-child(2) { height: 70%; animation-delay: 0.2s; }
.musik-equalizer span:nth-child(3) { height: 50%; animation-delay: 0.4s; }
.musik-equalizer span:nth-child(4) { height: 80%; animation-delay: 0.1s; }
@keyframes musik-eq {
  0%, 100% { height: 20%; }
  50% { height: 100%; }
}

/* Play-Button (versteckt – Track ist komplett klickbar, aktiver Track zeigt Equalizer) */
.musik-track-play {
  display: none;
}

.musik-track-info {
  flex: 1;
  min-width: 0;
}
.musik-track-title {
  font-size: 0.88rem;
  color: var(--text);
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.musik-track-genre {
  font-size: 0.72rem;
  color: rgba(156, 39, 176, 0.7);
  margin-top: 1px;
  font-style: italic;
}

/* Sterne-Bewertung */
.musik-track-rating {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
  min-width: 90px;
}
.musik-stars-row {
  display: flex;
  gap: 2px;
}
.musik-star {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.15);
  cursor: pointer;
  transition: color 0.12s ease, transform 0.12s ease;
  line-height: 1;
  user-select: none;
  -webkit-user-select: none;
}
.musik-star:hover,
.musik-star-hover {
  transform: scale(1.2);
}
.musik-star-filled {
  color: #fbbf24 !important;
}
.musik-star-avg:not(.musik-star-filled) {
  color: rgba(251, 191, 36, 0.35);
}
.musik-star-hover {
  color: rgba(251, 191, 36, 0.7) !important;
}
.musik-stars-info {
  font-size: 0.65rem;
  color: var(--muted);
  white-space: nowrap;
}

/* HiFi Toggle Button */
.musik-hifi-toggle {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 20px;
  border: 1px solid rgba(255,255,255,0.15);
  background: rgba(255,255,255,0.05);
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: inherit;
  margin-left: 8px;
}
.musik-hifi-toggle.active {
  border-color: rgba(76, 175, 80, 0.5);
  background: rgba(76, 175, 80, 0.12);
  color: #81c784;
}
.musik-hifi-toggle:hover {
  border-color: rgba(76, 175, 80, 0.7);
  background: rgba(76, 175, 80, 0.2);
}
.musik-hifi-indicator {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.2);
  transition: background 0.2s ease;
}
.musik-hifi-toggle.active .musik-hifi-indicator {
  background: #4caf50;
  box-shadow: 0 0 6px rgba(76, 175, 80, 0.5);
}

/* FLAC Badge neben Track-Titel */
.musik-track-hifi-badge {
  display: inline-block;
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 1px 5px;
  border-radius: 4px;
  background: rgba(76, 175, 80, 0.15);
  border: 1px solid rgba(76, 175, 80, 0.3);
  color: rgba(76, 175, 80, 0.8);
  vertical-align: middle;
  margin-left: 4px;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}
.musik-track-hifi-badge.musik-badge-m4a {
  background: rgba(158, 158, 158, 0.15);
  border-color: rgba(158, 158, 158, 0.3);
  color: rgba(158, 158, 158, 0.8);
}

.musik-empty {
  text-align: center;
  padding: 40px 20px;
  color: var(--muted);
  font-size: 0.9rem;
}

/* Mobile Anpassungen */
@media (max-width: 600px) {
  #musik-player-container.open {
    max-height: 350px;
  }
  .musik-tracklist {
    max-height: 300px;
  }
  .musik-track {
    padding: 8px 12px;
    gap: 8px;
  }
  .musik-track-title {
    font-size: 0.82rem;
  }
  .musik-star {
    font-size: 1rem;
  }
  .musik-track-rating {
    min-width: 78px;
  }
}

/* Sendungen-Übersicht: Sortierung neben Titel auf Desktop */
#sendungen-uebersicht-wrapper.visible {
  display: flex !important;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 4px 14px;
}
@media (max-width: 768px) {
  #sendungen-uebersicht-wrapper.visible {
    display: block !important;
  }
  #sendungen-uebersicht-wrapper .sort-info-inline {
    margin-top: 4px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px 8px;
  }
  #sendungen-uebersicht-wrapper .sort-info-inline #visible-count-inline {
    flex-basis: 100%;
    margin-left: 0;
  }
}

/* Kategorie-Detail: Sortierung neben Titel auf Desktop */
.cat-detail-header-row {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 2px 12px;
}
@media (max-width: 768px) {
  .cat-detail-header-row {
    display: block !important;
  }
}

/* Systemeinstellung: Animationen reduzieren */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}


