@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;700&family=DM+Mono:wght@400;500&display=swap');

/* ============================================================
   RADIO NO9 — style.css
   Redesign: Glassmorphism, saubere Kaskade, kein !important-Chaos
   ============================================================ */

/* --- 1. DESIGN TOKENS --- */
:root {
    --bg-page:       #10121a;
    --bg-header:     rgba(16, 18, 26, 0.75);
    --bg-card:       rgba(36, 40, 59, 0.55);
    --bg-card-solid: #24283b;
    --glass-blur:    blur(14px);
    --glass-border:  rgba(255, 255, 255, 0.07);

    --text:          #c0caf5;
    --text-bright:   #ffffff;
    --text-muted:    #565f89;

    --accent:        #EB358C;
    --accent-glow:   rgba(235, 53, 140, 0.25);
    --accent-subtle: rgba(235, 53, 140, 0.06);

    --radius-sm:  6px;
    --radius-md:  10px;
    --radius-lg:  14px;

    --max-width:  1200px;
    --transition: 0.3s ease;
}

/* --- 2. RESET & BASE --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
    max-width: 100%;
    overflow-x: hidden;
    height: 100%;
}

body {
    font-family: 'DM Sans', 'Segoe UI', Helvetica, Arial, sans-serif;
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text);
    background:
        radial-gradient(ellipse at 20% 0%, rgba(235, 53, 140, 0.07) 0%, transparent 50%),
        radial-gradient(circle at center, #1e2235 0%, #10121a 100%) fixed;
    display: flex;
    flex-direction: column;
    min-height: 100%;
}

/* --- 3. HEADER --- */
header {
    position: static;
    top: 0;
    z-index: 100;
    width: 100%;
    min-height: 85px;
    flex-shrink: 0;

    background-color: var(--bg-header);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border-bottom: 1px solid var(--glass-border);
    box-shadow: 0 1px 30px rgba(0, 0, 0, 0.5), 0 0 0 0.5px rgba(235, 53, 140, 0.3);

    display: block;
    justify-content: center;
    flex-direction: column;
    align-items: stretch;   
}

/* Subtiler Akzent-Strich unterm Header */
header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
    opacity: 0.6;
}

.header-content {
    max-width: var(--max-width);
    margin: 0 auto;
    height: 85px;
    width: 100%;
    padding: 0 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

/* --- 4. LOGO --- */
.logo-box { z-index: 101; cursor: pointer; display: flex; align-items: center; }

.logo-mobile  {
    display: block;
    height: 45px;
    width: 45px;
    object-fit: contain;
}

.logo-desktop {
    display: none;
    max-height: 50px;
    width: auto;
}

/* Desktop erst später aktivieren */
@media (min-width: 601px) {
    .logo-mobile  { display: none; }
    .logo-desktop { display: block; }
}

/* --- 5. PLAYER (Header-Mitte) --- */
.player-center {
    position: absolute;
    left: 50%; top: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0px;
    z-index: 101;
}

.player-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 6px;
}

.live-indicator {
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: 'DM Sans', sans-serif;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 1.0px;
    color: var(--text-bright);
    line-height: 1;
}

.pulse-dot {
    width: 8px;
    height: 8px;
    background: var(--accent);
    border-radius: 50%;
    flex-shrink: 0;
    animation: pulsing 2s infinite;
}

@keyframes pulsing {
    0%   { transform: scale(0.8); box-shadow: 0 0 0 0 rgba(235, 53, 140, 0.7); }
    50%  { transform: scale(1.2); box-shadow: 0 0 0 10px rgba(235, 53, 140, 0); }
    100% { transform: scale(0.8); box-shadow: 0 0 0 0 rgba(235, 53, 140, 0); }
}

.main-play-btn {
    background-color: transparent;
    border: 2px solid var(--accent);
    width: 48px; height: 48px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: background-color var(--transition), box-shadow var(--transition);
    padding: 0;
}
.main-play-btn:hover {
    background-color: var(--accent-subtle);
    box-shadow: 0 0 22px var(--accent-glow);
}
.main-play-btn svg { width: 32px; height: 32px; fill: #ffffff; }

/* --- 6. HAMBURGER & NAV OVERLAY --- */
.menu-toggle {
    cursor: pointer;
    z-index: 102;
    display: flex;
    flex-direction: column;
    gap: 5px;
}
.menu-toggle span {
    width: 22px;
    height: 2px;
    background-color: var(--text-bright);
    border-radius: 2px;
    transition: transform var(--transition), opacity var(--transition);
}

/* --- 7. MAIN CONTENT --- */
main {
    padding: 40px 20px;
    max-width: var(--max-width);
    margin: 0 auto;
    width: 100%;
    flex: 1 0 auto;
}

/* --- 8. ARTICLE / CARDS --- */
article {
    background: var(--bg-card);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    padding: 30px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--glass-border);
    border-left: 2px solid var(--accent); 
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    margin-bottom: 25px;
    transition: box-shadow var(--transition);
    position: relative;
}

article::before {
    display: none;
}

article:hover {
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(235, 53, 140, 0.1);
}

article p {
    margin-bottom: 1.0rem;
}

article p:last-child {
    margin-bottom: 0;
}

h2 {
    color: var(--text-bright);
    margin-top: 0;
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

p { line-height: 1.65; font-size: 1.05rem; }

/* --- 9. MIXCLOUD PLAYER --- */

.mixcloud-container {
    margin-top: 14px;
    border-radius: var(--radius-md);
    overflow: hidden;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--glass-border);
    border-left: 4px solid var(--glass-border);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    transition: all var(--transition);
    position: relative;
    min-width: 0;
    cursor: pointer;
}

/* Inhalt (Play + Titel) */
.mixcloud-content {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 14px 22px;
}

/* Titel */
.mixcloud-container span {
    color: var(--text-bright);
    font-weight: 600;

    white-space: normal;
    word-break: break-word;
    overflow-wrap: anywhere;
}

/* iframe Bereich */
.iframe-target {
    margin-top: 10px;
}

/* iframe selbst */
.mixcloud-container iframe {
    display: block;
    border: none;
    vertical-align: middle;
    width: 100%;
    min-height: 60px;
    opacity: 1;
    will-change: transform;
}

/* --- 10. RE-LIVE FACADE --- */

#mixcloud-facade {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--glass-border);
    border-left: 4px solid var(--glass-border);
    border-radius: var(--radius-md);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);

    transition: background var(--transition), transform var(--transition), border-color var(--transition);

    height: 60px;
    display: flex;
    align-items: center;
    padding: 0 22px;
    gap: 15px;
    cursor: pointer;
}

/* --- 11. SENDEPLAN --- */

.schedule-week-block {
    margin-bottom: 35px;
}
/* --- NEU: Sendeplan Woche mit Magenta-Glow --- */
.week-range {
    display: flex;
    align-items: center;
    text-align: center;
    width: 100%;
    margin: 35px 0 20px 0;
    color: #ffffff; /* Weißer Text für harten Kontrast zum Magenta */
    font-size: 0.8rem;
    font-weight: 700; /* Etwas kräftiger */
    text-transform: uppercase;
    letter-spacing: 0.12em;
}

.week-range::before,
.week-range::after {
    content: '';
    flex: 1;
    height: 1px;
}

/* Links: Von transparent zu leuchtendem Magenta */
.week-range::before {
    margin-right: 12px;
    background: linear-gradient(to right, transparent, var(--accent));
    /* Der Glow-Effekt direkt am Textende */
    filter: drop-shadow(0 0 5px var(--accent)); 
}

/* Rechts: Von leuchtendem Magenta zu transparent */
.week-range::after {
    margin-left: 12px;
    background: linear-gradient(to left, transparent, var(--accent));
    filter: drop-shadow(0 0 5px var(--accent));
}

.schedule-vertical {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-top: 15px;
}

.schedule-entry {
    background: rgba(255, 255, 255, 0.03);
    padding: 18px 22px;
    border-radius: var(--radius-md);
    border: 1px solid var(--glass-border);
    border-left: 4px solid var(--glass-border);
    transition: background var(--transition), transform var(--transition), border-color var(--transition);
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow: visible;
    min-width: 0;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

/* Live-Eintrag */
.schedule-entry.is-live {
    border-left-color: var(--accent);
    background: var(--accent-subtle);
    box-shadow: 
        0 4px 10px rgba(0, 0, 0, 0.3),        
        inset 8px 0 20px -10px var(--accent-glow);
}

.is-live .entry-header {
    color: var(--accent);
    font-weight: 500;
}

.entry-header {
    color: var(--text);
    font-size: 0.72rem;
    font-family: 'DM Sans', sans-serif;
    text-transform: uppercase;
    letter-spacing: 1.4px;
    margin-bottom: 6px;
    opacity: 0.85;
    display: flex;
    line-height: 1;
    align-items: center;
    justify-content: space-between;
}

.entry-title {
    color: var(--text-bright);
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 4px;
    line-height: 1.3;
    letter-spacing: -0.01em;
    white-space: normal;
    word-break: break-word;
    overflow-wrap: anywhere;
    display: block;
    overflow: visible;
    min-width: 0;
}

.entry-host {
    color: var(--text);
    font-size: 0.85rem;
    opacity: 0.6;
    font-style: italic;
}

/* --- 12. HOVER-EFFEKTE (nur Desktop) --- */
@media (min-width: 601px) {
    .schedule-entry:hover,
    #mixcloud-facade:hover,
    .mixcloud-container:hover,
    .archive-item:hover {
        background: rgba(255, 255, 255, 0.07);
        transform: translateX(6px);
        border-color: rgba(255, 255, 255, 0.15);
    }
}

/* --- 13. DISCORD WIDGET --- */
.discord-widget-container {
    width: 100%;
    max-width: var(--max-width);
    margin: 20px auto;
    border: 1px solid rgba(255, 0, 85, 0.35);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4), 0 0 12px rgba(255, 0, 85, 0.08);
    background: rgba(27, 27, 41, 0.7);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
}

/* --- 14. FOOTER --- */
footer {
    width: 100%;
    text-align: center;
    padding: 24px 20px;
    color: var(--text-muted);
    font-size: 0.85rem;
    flex-shrink: 0;
    border-top: 1px solid var(--glass-border);
    margin-top: auto;
    background: transparent;
}

footer a {
    display: inline-block;
    margin: 5px 10px;
    color: var(--text-bright);
    text-decoration: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    transition: color var(--transition), border-bottom-color var(--transition);
}
footer a:hover {
    color: var(--accent);
    border-bottom-color: var(--accent);
}

/* --- 15. MOBILE --- */
@media (max-width: 600px) {
    header { height: 75px; }
    .header-content { padding: 0 15px; }
    main    { padding: 20px 15px; }
    article { padding: 20px; }
    .nav-overlay a { font-size: 1.5rem; }
    .schedule-entry { padding: 15px; }
    .entry-title { font-size: 1rem; }
    .discord-widget-container {
        border-radius: var(--radius-md);
        margin: 10px 0;
    }
}

.play-btn-circle {
    width: 32px;
    height: 32px;
    border: 2px solid #ffffff;
    border-radius: 50%;

    display: flex;
    align-items: center;
    justify-content: center;

    flex-shrink: 0;
}

.play-btn-circle i {
    color: #ffffff;
    font-size: 0.8rem;
}

.play-btn-circle svg {
    width: 18px;
    height: 18px;
    fill: #ffffff;
    display: block;
}

.live-title {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 55vw;
    font-size: 0.75rem;
    font-weight: 500;
}

.live-status-text {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    max-width: 100%;
    flex-wrap: nowrap;
}

.live-status-text .live-label {
    color: var(--accent);
    font-weight: 600;
    font-size: 0.75rem;
    letter-spacing: 0.5px;

    padding: 0;
    background: none;
    box-shadow: none;
}

.live-status-text .live-label.soon {
    color: var(--text);
    background: none;
    box-shadow: none;
}

.live-status-text .live-meta {
    color: var(--text);
    font-size: 0.75rem;
}

.live-status-text .live-separator {
    color: var(--text-muted);
    margin: 0 3px 0 2px;
}

/* --- 16. CTA --- */
.cta-footer {
    margin-top: 25px;
    padding-top: 15px;
    border-top: 1px solid var(--glass-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

.cta-text {
    font-size: 0.85rem;
    color: var(--text);
    opacity: 0.8;
}

.cta-text a {
    color: var(--accent);
    text-decoration: none;
    font-weight: 500;
}

.cta-text a:hover {
    text-decoration: underline;
}

.cta-apps {
    display: flex;
    gap: 8px;
    align-items: center;
}

.cta-app-link {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-sm);
    color: var(--text-bright);
    text-decoration: none;
    font-size: 0.75rem;
    transition: var(--transition);
}

.cta-app-link:hover {
    background: var(--accent-subtle);
    border-color: var(--accent);
    transform: translateY(-2px);
}

.cta-app-link i {
    font-size: 1rem;
    color: var(--accent);
}

@media (max-width: 600px) {
    .cta-footer { flex-direction: column; text-align: center; }
}

/* Responsive Anpassung */
@media (max-width: 768px) {
    .artist-name { font-size: 1rem; }
    .track-title { font-size: 0.85rem; }
}

/* --- Songhistory: Finales & Edles Layout --- */
.history-item {
    display: flex;
    align-items: center; 
    gap: 15px;
    padding: 15px 20px;
    width: 100%;
    box-sizing: border-box;
}

.history-yt-wrapper {
    flex-shrink: 0;
    width: 32px;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: var(--transition);
}

.history-yt-wrapper i {
    color: var(--text-bright);
    font-size: 1.3rem;
    opacity: 1; /* Opacity auf 1 gesetzt für volle Sichtbarkeit wie im Archiv */
}

.history-body {
    display: flex;
    flex-direction: column;
    min-width: 0;    /* Das ist entscheidend für Flexbox & Ellipsis */
    flex: 1;
    overflow: hidden;
}

.history-meta {
    display: flex;
    gap: 6px;
    align-items: center;
    margin-bottom: 2px;
}

.history-time-stamp {
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--accent);
}

.history-status-label {
    font-size: 0.65rem;
    opacity: 0.4;
    text-transform: uppercase;
}

/* Der "Edel-Faktor": Garantiert kein Umbruch mehr */
.history-artist-name, 
.history-song-title {
    display: block;
    width: 100%;
    white-space: nowrap !important; /* !important zwingt auch Mobile-Browser zur Gehorsamkeit */
    overflow: hidden !important;
    text-overflow: ellipsis !important;
}
.history-artist-name {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-bright);
}
.history-song-title {
    font-size: 0.85rem;
    opacity: 0.5;
}

.history-chevron {
    flex-shrink: 0;
    opacity: 0.15;
    font-size: 0.8rem;
    margin-left: 5px;
}

/* --- MOBILE OPTIMIERUNG (Handy) --- */
@media (max-width: 600px) {
    .history-item {
        padding: 12px 18px; 
    }

    /* Icon weg für maximale Breite des Textes */
    .history-yt-wrapper {
        display: none;
    }

    .history-artist-name {
        font-size: 1.05rem;
    }
}

/* ============================================================
   RADIO NO9 — NAVIGATION (Desktop optimiert & Kräftige Fade-Line)
   ============================================================ */

.nav-overlay {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background-color: rgba(16, 18, 26, 0.98); 
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease;
    display: flex;
    justify-content: center; 
    align-items: center;     
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

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

.nav-container {
    width: 100%;
    max-width: 500px;        
    padding: 40px;
    text-align: left;        
    cursor: default;
    overflow-y: auto;
    max-height: 90vh;
}

.nav-section {
    margin-bottom: 25px;     
}

.nav-title {
    color: var(--accent);
    font-size: 0.9rem;       
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 12px;
    padding-bottom: 8px;
    font-weight: 700;
    display: block;
    position: relative;      
}

/* DER FADE-OUT STRICH (Jetzt mit voller Helligkeit am Start) */
.nav-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 1px;
    /* Startet bei 100% Magenta (var(--accent)) und faded dann aus */
    background: linear-gradient(90deg, var(--accent) 0%, rgba(235, 53, 140, 0.2) 70%, transparent 100%);
}

.nav-subtitle {
    color: var(--text-muted);
    font-weight: 400;
    text-transform: none;
    font-size: 0.8rem;
    margin-left: 10px;
    letter-spacing: 0;
}

.nav-links {
    padding-left: 15px;      
}

.nav-section a {
    display: block;
    color: #ffffff;
    text-decoration: none;
    font-size: 1.4rem;       
    font-weight: 500;
    padding: 10px 0;         
    white-space: nowrap;     
    transition: color 0.2s ease, text-shadow 0.2s ease;
}

.nav-section a small {
    font-size: 0.9rem;
    color: var(--text-muted);
    font-weight: 400;
    margin-left: 10px;
    display: inline;         
}

/* --- HOVER EFFEKT --- */
@media (min-width: 1025px) {
    .nav-section a:hover {
        color: var(--accent);
        text-shadow: 0 0 6px rgba(235, 53, 140, 0.5); 
    }
}

/* --- MOBILE SCHLIESSEN-X --- */
.mobile-close-btn {
    display: none; 
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 40px;
    color: var(--accent); /* Dein Magenta */
    line-height: 1;
    z-index: 1001;
    cursor: pointer;
    padding: 15px;
    opacity: 0.8;
}

/* --- MOBILE & TABLET ANPASSUNGEN (Ab 1024px abwärts) --- */
@media (max-width: 1024px) {
    
    /* Das Schließen-X (Weiß, wie gewünscht) */
    .mobile-close-btn {
        display: block; 
        position: absolute;
        top: 20px;
        right: 20px;
        font-size: 40px;
        color: var(--accent);
        line-height: 1;
        z-index: 1001;
        cursor: pointer;
        padding: 15px;
        opacity: 0.8;
        transition: opacity 0.2s ease;
    }

    .mobile-close-btn:active {
        opacity: 1;
    }

    .nav-container {
        /* Extra Platz unten für die Daumen-Bedienung & Home-Button */
        padding: 60px 25px 120px 25px !important; 
        max-width: 420px;
    }

    .nav-section {
        /* Kompakter für weniger Scroll-Aufwand */
        margin-bottom: 22px; 
    }

    .nav-section a {
        /* Größere Klickfläche für Finger */
        padding: 12px 0;
        font-size: 1.2rem; /* Etwas kleiner als Desktop, aber griffig */
        transition: background 0.2s ease;
    }

    /* Das gewünschte Aufhellen beim Antippen */
    .nav-section a:active {
        color: var(--accent);
        background-color: rgba(235, 53, 140, 0.1);
        border-radius: var(--radius-sm);
    }

    .nav-title {
        font-size: 0.8rem;
        margin-bottom: 12px;
    }
}

/* --- REINER DESKTOP-MODUS (Ab 1025px aufwärts) --- */
@media (min-width: 1025px) {
    .mobile-close-btn {
        display: none;
    }
    
    /* Hier bleibt dein perfektes Desktop-Design unberührt */
}
/* ============================================================
   SECTION-HEADER (Original Zustand)
   ============================================================ */

.section-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
    padding-bottom: 12px;
    
    /* Dein originaler auslaufender Strich */
    background-image: linear-gradient(to right, 
        var(--glass-border) 0%, 
        var(--glass-border) 30%, 
        transparent 90%
    );
    background-size: 100% 1px;
    background-repeat: no-repeat;
    background-position: bottom;
}

.icon-box {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    flex-shrink: 0;
}

/* Das Icon: Dein originaler "Neon"-Look in Hellgrau/Weiß */
.icon-box svg {
    color: #f0f2f9 !important; 
    width: 32px !important; 
    height: 32px !important;
    stroke-width: 2.8px !important; 
    display: block;
    filter: drop-shadow(0 0 3px rgba(240, 242, 249, 0.3));
}

/* Die LED: Original Position */
.icon-box::after {
    content: '';
    position: absolute;
    bottom: -3px; 
    right: -1px; 
    width: 9px;
    height: 9px;
    background-color: var(--accent);
    border-radius: 50%;
    box-shadow: 0 0 12px var(--accent-glow), 0 0 3px var(--accent);
    border: 1.5px solid #1a1c2a; 
    z-index: 5;
}

/* H2 Styling */
.section-header h2 {
    margin: 0 !important;
    color: var(--text-bright) !important;
    font-size: 1.3rem !important;
    line-height: 1 !important;
    letter-spacing: 1px;
    text-transform: uppercase;
}