:root {
    --primary-color: #ff3366;
    --primary-gradient: linear-gradient(135deg, #ff3366 0%, #ff0844 100%);
    --primary-glow: rgba(255, 51, 102, 0.4);
    --bg-dark: #0d0d11;
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    --text-main: #ffffff;
    --text-muted: #b3b3b3;
}

*, *::before, *::after { box-sizing: border-box; }

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px; 
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Poppins', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-main);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    overscroll-behavior-y: contain; 
}

/* --- Mobiles Sticky Menü --- */
.mobile-nav {
    display: none; 
}

.mobile-menu {
    display: none;
}

/* --- Obere Sektion --- */
.hero-section {
    flex: 1;
    min-height: 70vh;
    background-image: url('./background.png'); 
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px 20px;
}

.hero-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(180deg, rgba(13,13,17,0.3) 0%, rgba(13,13,17,0.95) 100%);
    z-index: 1;
}

.logo-container {
    position: absolute;
    top: 30px;
    left: 40px;
    z-index: 10;
}

.logo-container img {
    height: 55px;
    width: auto;
    filter: drop-shadow(0 4px 12px rgba(0,0,0,0.5));
    transition: transform 0.3s ease;
}

.logo-container img:hover { transform: scale(1.05); }

/* Haupt-Player Box */
.player-card {
    position: relative;
    z-index: 10;
    background: var(--glass-bg);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border: 1px solid var(--glass-border);
    border-radius: 32px;
    padding: 3.5rem 4rem;
    text-align: center;
    box-shadow: 0 30px 60px rgba(0,0,0,0.6), inset 0 1px 0 rgba(255,255,255,0.1);
    width: 55%; 
    max-width: 1600px;
    min-width: 750px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.player-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 40px 70px rgba(0,0,0,0.7), inset 0 1px 0 rgba(255,255,255,0.2);
}

.show-name {
    font-size: 3.5rem;
    font-weight: 900;
    margin: 0;
    text-transform: uppercase;
    background: linear-gradient(135deg, #ffffff 30%, #ff3366 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: 2px;
    line-height: 1.1;
    filter: drop-shadow(0 2px 10px rgba(0,0,0,0.2));
}

.show-description {
    font-size: 1.15rem;
    color: var(--text-muted);
    margin: -5px 0 10px 0;
    font-weight: 300;
    max-width: 85%;
    line-height: 1.4;
    display: none; 
}

.live-container {
    display: flex; align-items: center; justify-content: center; margin-bottom: 5px;
}

.live-badge {
    background-color: var(--primary-color);
    color: white;
    padding: 6px 20px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.8rem;
    letter-spacing: 2px;
    box-shadow: 0 0 15px var(--primary-glow);
    transition: background 0.3s, box-shadow 0.3s;
}

.cover-wrapper {
    display: flex; flex-direction: column; align-items: center; gap: 18px;
    margin: 10px 0; animation: floatCover 6s ease-in-out infinite;
}

@keyframes floatCover {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-8px); }
    100% { transform: translateY(0px); }
}

.current-cover-container {
    width: 260px; height: 260px; border-radius: 24px; overflow: hidden;
    box-shadow: 0 20px 40px rgba(0,0,0,0.6);
    border: 1px solid rgba(255,255,255,0.15); position: relative;
}

.current-cover-container img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }

.audio-waves { display: flex; align-items: center; justify-content: center; height: 30px; gap: 6px; }
.wave {
    width: 5px; height: 100%; background: var(--primary-gradient);
    border-radius: 5px; transform-origin: center;
    animation: wave-anim 1.2s ease-in-out infinite;
    box-shadow: 0 0 8px var(--primary-glow);
}
.audio-waves.paused .wave {
    animation: none; height: 6px; background: rgba(255,255,255,0.3);
    box-shadow: none; transition: height 0.4s ease, background 0.4s ease;
}

.wave:nth-child(1) { animation-delay: 0.0s; animation-duration: 1.1s; }
.wave:nth-child(2) { animation-delay: 0.3s; animation-duration: 1.3s; }
.wave:nth-child(3) { animation-delay: 0.6s; animation-duration: 0.9s; }
.wave:nth-child(4) { animation-delay: 0.9s; animation-duration: 1.2s; }
.wave:nth-child(5) { animation-delay: 0.2s; animation-duration: 1.4s; }
.wave:nth-child(6) { animation-delay: 0.5s; animation-duration: 1.0s; }
.wave:nth-child(7) { animation-delay: 0.8s; animation-duration: 1.3s; }

@keyframes wave-anim { 0%, 100% { height: 20%; } 50% { height: 100%; } }

.track-info { margin: 5px 0 10px 0; width: 100%; transition: opacity 0.4s ease; }
.track-info h2 { font-size: 2rem; font-weight: 700; margin: 0 0 5px 0; letter-spacing: -0.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-shadow: 0 2px 4px rgba(0,0,0,0.5); }
.track-info p { font-size: 1.2rem; font-weight: 400; color: var(--text-muted); margin: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* --- CONTROLS --- */
.controls-wrapper {
    display: flex; flex-direction: column; align-items: center; gap: 25px; width: 100%; margin-top: 5px;
}

.play-btn {
    background: #ffffff; border: none; width: 75px; height: 75px; border-radius: 50%;
    cursor: pointer; display: flex; justify-content: center; align-items: center;
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s ease;
    box-shadow: 0 10px 30px rgba(0,0,0,0.4), 0 0 25px var(--primary-glow);
}

.play-btn:hover {
    transform: scale(1.1); box-shadow: 0 15px 40px rgba(0,0,0,0.5), 0 0 35px rgba(255, 51, 102, 0.6);
}

.play-btn.playing { animation: modern-pulse 2.5s infinite; }

@keyframes modern-pulse {
    0% { box-shadow: 0 10px 30px rgba(0,0,0,0.4), 0 0 0 0 rgba(255, 51, 102, 0.5); }
    70% { box-shadow: 0 10px 30px rgba(0,0,0,0.4), 0 0 0 20px rgba(255, 51, 102, 0); }
    100% { box-shadow: 0 10px 30px rgba(0,0,0,0.4), 0 0 0 0 rgba(255, 51, 102, 0); }
}

.play-icon, .pause-icon { fill: var(--primary-color); width: 30px; height: 30px; }
.play-icon { margin-left: 5px; } 
.pause-icon { display: none; }

.volume-box { 
    display: flex; align-items: center; gap: 15px; background: rgba(0, 0, 0, 0.2);
    padding: 8px 25px; border-radius: 40px; border: 1px solid rgba(255, 255, 255, 0.05); backdrop-filter: blur(10px);
}

.volume-icon { fill: var(--text-muted); width: 18px; height: 18px; transition: fill 0.3s; }
.volume-box:hover .volume-icon { fill: white; }

.volume-slider {
    -webkit-appearance: none; appearance: none; width: 140px; height: 6px;
    background: rgba(255, 255, 255, 0.1); border-radius: 10px; outline: none; cursor: pointer; transition: height 0.2s;
}
.volume-slider::-webkit-slider-thumb {
    -webkit-appearance: none; appearance: none; width: 14px; height: 14px;
    border-radius: 50%; background: white; box-shadow: 0 2px 5px rgba(0,0,0,0.3); cursor: pointer;
    transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.volume-slider::-webkit-slider-thumb:hover { transform: scale(1.4); background: var(--primary-color); }

/* --- BOTTOM BEREICH (ZULETZT GESPIELT & SENDEPLAN NEBENEINANDER) --- */
.bottom-area-container {
    display: flex;
    gap: 40px;
    background: #0d0d11;
    padding: 60px 8%;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    z-index: 5;
    justify-content: center;
}

.history-section, .schedule-section {
    flex: 1;
    max-width: 800px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.section-heading {
    position: relative;
    display: inline-block;
    font-size: 1.25rem;
    font-weight: 800; 
    text-transform: uppercase;
    color: #ffffff;
    margin: 0 0 30px 0;
    letter-spacing: 2px;
    z-index: 1; 
}

.section-heading::before {
    content: '';
    position: absolute;
    left: -10px; 
    bottom: 2px; 
    width: 0; 
    height: 14px; 
    background: var(--primary-gradient);
    transform: skewX(-25deg) rotate(-1.5deg); 
    box-shadow: 0 0 15px var(--primary-glow);
    z-index: -1; 
    border-radius: 3px;
    opacity: 1; 
    transition: width 0.8s cubic-bezier(0.22, 1, 0.36, 1); 
}

.section-heading.animated::before {
    width: calc(100% + 20px); 
}

/* Listen-Designs */
.history-grid, .schedule-grid {
    display: flex; flex-direction: column; gap: 15px; width: 100%; transition: opacity 0.5s ease;
}

.history-item, .schedule-item {
    display: flex; align-items: center; background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.04); padding: 15px 20px; border-radius: 20px;
    gap: 18px; transition: all 0.3s ease; position: relative; overflow: hidden;
}

.history-item:hover, .schedule-item:hover {
    background: rgba(255, 255, 255, 0.07); transform: translateY(-3px); box-shadow: 0 10px 20px rgba(0,0,0,0.3);
}

.schedule-item.is-past {
    opacity: 0.4;
}

.schedule-item.is-past:hover {
    transform: none; 
    background: rgba(255, 255, 255, 0.03); 
    box-shadow: none; 
    cursor: default;
}

.history-item img {
    width: 65px; height: 65px; border-radius: 12px; object-fit: cover; box-shadow: 0 4px 10px rgba(0,0,0,0.4);
}

.hi-info, .schedule-info { display: flex; flex-direction: column; overflow: hidden; flex: 1; justify-content: center; }
.hi-title, .schedule-title { font-weight: 600; font-size: 1.05rem; margin: 0 0 4px 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: white; }
.hi-artist, .schedule-desc { font-size: 0.9rem; color: var(--text-muted); margin: 0 0 5px 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hi-time { font-size: 0.75rem; color: var(--primary-color); font-weight: 500; margin: 0; }
.schedule-desc { white-space: normal; line-height: 1.4; margin: 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }

.schedule-item.is-live {
    background: rgba(255, 51, 102, 0.12);
    border: 1px solid var(--primary-color);
    box-shadow: 0 5px 25px rgba(255, 51, 102, 0.25);
    transform: scale(1.02);
}

.schedule-item.is-live:hover {
    transform: scale(1.02) translateY(-3px);
    background: rgba(255, 51, 102, 0.18);
}

.schedule-time {
    font-size: 1.15rem; font-weight: 700; color: var(--primary-color); min-width: 140px;
}

.schedule-item.is-live .schedule-time {
    color: #ffffff;
}

.schedule-live-badge {
    background: var(--primary-color); color: white; font-size: 0.75rem; font-weight: bold;
    padding: 4px 12px; border-radius: 20px; text-transform: uppercase; letter-spacing: 1.5px;
    box-shadow: 0 0 15px rgba(255, 51, 102, 0.6); animation: pulse 2s infinite; margin-left: 10px;
}

.fade-out { opacity: 0; transform: translateY(10px); }
.fade-in { opacity: 1; transform: translateY(0); }

/* --- ERROR POPUP --- */
.error-popup {
    position: fixed; top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.85); z-index: 2000;
    display: flex; justify-content: center; align-items: center;
    opacity: 0; pointer-events: none; transition: opacity 0.3s ease;
    backdrop-filter: blur(5px);
}
.error-popup.active {
    opacity: 1; pointer-events: all;
}
.error-popup-content {
    background: var(--bg-dark); padding: 35px 25px; border-radius: 24px;
    border: 1px solid var(--primary-color); text-align: center; max-width: 400px; width: 85%;
    box-shadow: 0 15px 40px rgba(255, 51, 102, 0.2);
    transform: translateY(20px); transition: transform 0.3s ease;
}
.error-popup.active .error-popup-content {
    transform: translateY(0);
}
.error-popup-content h3 {
    margin-top: 0; color: white; font-size: 1.5rem; letter-spacing: 1px;
}
.error-popup-content p {
    color: var(--text-muted); font-size: 1.05rem; line-height: 1.5; margin-bottom: 25px;
}
.error-popup-content button {
    padding: 12px 30px; background: var(--primary-gradient);
    color: white; border: none; border-radius: 30px; cursor: pointer; font-weight: bold;
    font-size: 1rem; transition: transform 0.2s, box-shadow 0.2s;
}
.error-popup-content button:hover {
    transform: scale(1.05); box-shadow: 0 5px 15px var(--primary-glow);
}

/* --- MOBILE OPTIMIERUNG --- */
@media (max-width: 1000px) {
    .bottom-area-container {
        flex-direction: column;
        padding: 30px 15px;
        gap: 40px;
        align-items: center;
    }
    .history-section, .schedule-section { 
        align-items: center; 
        width: 100%;
        max-width: 100%;
    } 

    .history-grid, .schedule-grid { 
        flex-direction: column; 
        align-items: stretch; 
        gap: 12px; 
        overflow-x: visible; 
    }
    .history-item, .schedule-item { 
        width: 100%; 
        min-width: 100%; 
        padding: 12px 15px; 
    }
    .hi-info, .schedule-info { align-items: flex-start; text-align: left; }
}

@media (max-width: 800px) {
    body { height: auto; }
    
    .logo-container { display: none; }
    
    /* --- BURGER MENÜ FÜR HANDYS --- */
    .mobile-nav {
        display: flex;
        position: fixed;
        top: 0; left: 0; right: 0;
        height: 60px;
        background: rgba(13, 13, 17, 0.85);
        backdrop-filter: blur(15px);
        -webkit-backdrop-filter: blur(15px);
        z-index: 1100;
        align-items: center;
        justify-content: space-between;
        padding: 0 15px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    }

    .mobile-nav img {
        height: 38px;
        width: auto;
        filter: drop-shadow(0 2px 4px rgba(0,0,0,0.5));
    }

    .burger {
        cursor: pointer;
        display: flex;
        flex-direction: column;
        gap: 6px;
        z-index: 1101;
    }

    .burger div {
        width: 30px;
        height: 3px;
        background-color: white;
        border-radius: 3px;
        transition: all 0.3s ease;
    }

    .burger.toggle div:nth-child(1) { transform: rotate(-45deg) translate(-6px, 6px); }
    .burger.toggle div:nth-child(2) { opacity: 0; }
    .burger.toggle div:nth-child(3) { transform: rotate(45deg) translate(-6px, -7px); }

    .mobile-menu {
        position: fixed;
        top: 0;
        right: -100%; 
        width: 100%;
        height: 100vh;
        background: rgba(13, 13, 17, 0.98);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        z-index: 1050;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 40px;
        transition: right 0.4s ease;
    }

    .mobile-menu.active {
        right: 0; 
    }

    .mobile-menu a {
        color: white;
        text-decoration: none;
        font-size: 2rem;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 2px;
        transition: color 0.3s ease;
    }

    .mobile-menu a:hover, .mobile-menu a:active {
        color: var(--primary-color);
    }

    .hero-section { padding-top: 80px; padding-bottom: 20px; min-height: 80vh; }
    
    .player-card { padding: 2rem 1.5rem; gap: 10px; border-radius: 24px; width: 100%; min-width: 100%; }
    .show-name { font-size: 2.2rem; }
    .show-description { font-size: 1rem; max-width: 100%; }
    .current-cover-container { width: 200px; height: 200px; }
    .track-info h2 { font-size: 1.5rem; }
    .track-info p { font-size: 1rem; }
    .controls-wrapper { gap: 20px; }

    .schedule-item { flex-direction: column; align-items: flex-start; gap: 8px; padding: 15px; border-radius: 16px; }
    .schedule-time { min-width: auto; font-size: 1.05rem; }
    .schedule-live-badge { align-self: flex-start; margin-left: 0; margin-top: 5px; }
}

