@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: sticky;
    top: 0;
    z-index: 100;
    width: 100%;
    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: flex;
    justify-content: center;
}

/* 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 {
    width: 100%;
    max-width: var(--max-width);
    height: 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-desktop { display: block; max-height: 50px; width: auto; }
.logo-mobile  { display: none; }

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

.live-indicator {
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: 'DM Mono', monospace;
    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: 55px; height: 55px;
    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; }
#play-svg { transform: translateX(1px); }

/* --- 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);
}

.nav-overlay {
    position: fixed;
    top: 0; right: -100%;
    width: 100%; height: 100%;
    background-color: rgba(16, 18, 26, 0.97);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: right 0.4s cubic-bezier(0.77, 0, 0.175, 1);
    z-index: 99;
}
.nav-overlay.active { right: 0; }
.nav-overlay a {
    color: var(--text-bright);
    text-decoration: none;
    font-size: 2rem;
    font-weight: 700;
    margin: 14px 0;
    letter-spacing: -0.02em;
    transition: color var(--transition);
}
.nav-overlay a:hover { color: var(--accent); }

/* --- 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: 4px 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: 20px;
    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);
    line-height: 0;
    position: relative;
}

.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: none;
    transition: background var(--transition), transform var(--transition), border-color var(--transition);
}

/* --- 11. SENDEPLAN --- */
.week-range {
    color: var(--accent);
    font-family: 'DM Sans', sans-serif;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 20px;
    font-size: 0.88rem;
    display: block;
}

.schedule-vertical {
    display: flex;
    flex-direction: column;
    gap: 10px;
    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;
    overflow: hidden;
}

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

/* "LIVE JETZT"-Badge für den aktiven Eintrag — Animation deaktiviert bis zur Unterseite */
.schedule-entry.is-live::before {
    content: '● LIVE';
    position: absolute;
    top: 14px; right: 16px;
    font-family: 'DM Sans', sans-serif;
    font-size: 0.65rem;
    letter-spacing: 1.0px;
    color: var(--accent);
    /* animation: pulsing 2s infinite; — later */
}

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

.entry-header {
    color: var(--text);
    font-size: 0.72rem;
    font-family: 'DM Mono', monospace;
    text-transform: uppercase;
    letter-spacing: 1.4px;
    margin-bottom: 6px;
    opacity: 0.85;
}

.entry-title {
    color: var(--text-bright);
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 4px;
    line-height: 1.3;
    letter-spacing: -0.01em;
}

.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 {
        background: rgba(255, 255, 255, 0.07);
        transform: translateX(6px);
        border-color: rgba(255, 255, 255, 0.15);
    }
    #mixcloud-facade:hover i {
        color: var(--accent);
        opacity: 1;
    }
}

/* --- 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; }
    .logo-mobile  { display: block; height: 45px; width: 45px; object-fit: contain; }
    .logo-desktop { display: none; }
    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;
    }
}
