/* --- BASIS VARIABLEN --- */
:root {
    --bg-dark: #0a0a0c;
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.1);
    --accent-blue: #00f6ff;
    --accent-pink: #ff007a;
    --text-main: #f0f0f0;
    --text-dim: #777;
    --font-accent: 'Orbitron', sans-serif;
}

* { box-sizing: border-box; -webkit-font-smoothing: antialiased; }

body {
    background-color: var(--bg-dark);
    background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('../img/novasuno.png');
    background-size: cover;
    background-attachment: fixed;
    background-position: center;
    color: var(--text-main);
    font-family: 'Segoe UI', sans-serif;
    margin: 0;
    height: 100vh;
    overflow: hidden;
}

#bg-cover {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
    transition: opacity 1.5s ease;
    z-index: 0;
    pointer-events: none;
}

#bg-cover.visible {
    opacity: 0.6;
}

/* --- HEADER --- */
.header-player {
    height: 100px;
    display: flex;
    align-items: center;
    padding: 0 20px;
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--glass-border);
    position: relative;
    z-index: 1000;
    overflow: hidden;
}

.burger-menu {
    cursor: pointer;
    width: 25px;
    height: 18px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    margin-right: 20px;
    flex-shrink: 0;
}

.burger-menu span {
    display: block;
    height: 2px;
    width: 100%;
    background: var(--accent-blue);
    box-shadow: 0 0 8px var(--accent-blue);
}

.novasuno-logo {
    font-family: var(--font-accent);
    color: var(--accent-blue);
    font-size: 1.1rem;
    letter-spacing: 3px;
    text-shadow: 0 0 10px rgba(0, 246, 255, 0.5);
    display: block;
    line-height: 1.4;
}

/* --- CUSTOM PLAYER --- */
.custom-player {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 50%;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.player-top {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
}

#current-song-title {
    font-family: var(--font-accent);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    color: #fff;
    letter-spacing: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 80%;
}

#current-duration {
    font-size: 0.65rem;
    color: var(--text-dim);
    font-family: monospace;
    flex-shrink: 0;
}

.progress-bar {
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 3px;
    cursor: pointer;
    position: relative;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #ff007a, #00f6ff);
    border-radius: 3px;
    width: 0%;
    position: relative;
    transition: width 0.1s;
}

.progress-thumb {
    position: absolute;
    right: -6px;
    top: -5px;
    width: 16px;
    height: 16px;
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 0 10px #00f6ff;
}

.player-controls-row {
    display: flex;
    align-items: center;
    gap: 40px;
    justify-content: center;	
}

#player-current-time {
    font-size: 0.65rem;
    color: var(--accent-blue);
    font-family: monospace;
    min-width: 32px;
}

.ctrl-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    opacity: 0.6;
    transition: opacity 0.2s;
}

.ctrl-btn:hover { opacity: 1; }

.play-btn {
    background: linear-gradient(135deg, #ff007a, #00f6ff);
    border: none;
    cursor: pointer;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 20px rgba(0, 246, 255, 0.5);
    flex-shrink: 0;
    transition: box-shadow 0.2s;
}

.play-btn:hover { box-shadow: 0 0 30px rgba(0, 246, 255, 0.8); }

.equalizer {
    display: flex;
    gap: 3px;
    align-items: flex-end;
    height: 20px;
    /*margin-left: auto; */
}

.eq-bar {
    width: 3px;
    border-radius: 2px;
    opacity: 0.4;
    transition: opacity 0.3s;
}

.eq-bar.active { opacity: 1; }

@keyframes eq1 { 0%,100%{height:6px} 50%{height:18px} }
@keyframes eq2 { 0%,100%{height:14px} 50%{height:5px} }
@keyframes eq3 { 0%,100%{height:20px} 50%{height:8px} }
@keyframes eq4 { 0%,100%{height:10px} 50%{height:20px} }
@keyframes eq5 { 0%,100%{height:5px} 50%{height:15px} }
@keyframes eq6 { 0%,100%{height:16px} 50%{height:6px} }
@keyframes eq7 { 0%,100%{height:8px} 50%{height:18px} }

.eq-bar.active:nth-child(1) { animation: eq1 0.6s ease-in-out infinite; }
.eq-bar.active:nth-child(2) { animation: eq2 0.8s ease-in-out infinite; }
.eq-bar.active:nth-child(3) { animation: eq3 0.5s ease-in-out infinite; }
.eq-bar.active:nth-child(4) { animation: eq4 0.7s ease-in-out infinite; }
.eq-bar.active:nth-child(5) { animation: eq5 0.9s ease-in-out infinite; }
.eq-bar.active:nth-child(6) { animation: eq6 0.6s ease-in-out infinite; }
.eq-bar.active:nth-child(7) { animation: eq7 0.75s ease-in-out infinite; }

/* --- BURGER NAV OVERLAY --- */
.nav-overlay {
    position: fixed;
    top: 0;
    left: -100%;
    width: 100%;
    max-width: 300px;
    height: 100%;
    background: rgba(10, 10, 12, 0.98);
    backdrop-filter: blur(30px);
    border-right: 1px solid var(--glass-border);
    z-index: 2000;
    padding: 40px 20px;
    transition: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-overlay.open { left: 0; }
.nav-overlay h2 { font-family: var(--font-accent); font-size: 0.7rem; color: var(--accent-blue); letter-spacing: 3px; margin-bottom: 20px; }
.nav-overlay a { display: block; padding: 15px 10px; color: var(--text-main); text-decoration: none; font-size: 1rem; border-bottom: 1px solid rgba(255,255,255,0.05); }

/* --- MAIN LAYOUT --- */
.dashboard { display: flex; flex-direction: column; height: 100vh; }

.dashboard-body { display: flex; height: calc(100vh - 100px); min-height: 0; }

.sidebar {
    width: 280px;
    background: rgba(0, 0, 0, 0.25);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-right: 1px solid var(--glass-border);
    padding: 30px 0;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    flex-shrink: 0;
}

.playlist-link {
    padding: 12px 30px;
    display: block;
    color: var(--text-dim);
    text-decoration: none;
    font-size: 0.85rem;
    letter-spacing: 1px;
}

.playlist-link.active {
    color: var(--accent-blue);
    background: rgba(0, 246, 255, 0.05);
    border-left: 2px solid var(--accent-blue);
}

.main-content { flex-grow: 1; min-height: 0; min-width: 0; padding: 30px; overflow-y: auto; -webkit-overflow-scrolling: touch; }

/* --- SONG LISTE --- */
.song-list {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 0 10px;
}

.song-row {
    display: flex;
    padding: 15px 0;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    cursor: pointer;
    position: relative;
}

.song-row.playing { color: var(--accent-blue); }
.song-title { flex-grow: 1; font-weight: 500; font-size: 1rem; padding-right: 10px; }
.song-duration { font-size: 0.8rem; color: var(--text-main); }

.row-progress-bg {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.05);
    display: none;
    cursor: pointer;
}

.song-row.playing .row-progress-bg { display: block; }
.row-progress-fill { height: 100%; background: var(--accent-blue); width: 0%; pointer-events: none; }

/* --- MOBILE --- */
@media (max-width: 1024px) {
    body {
        background-size: 200% auto;
        background-repeat: no-repeat;
        background-position: center center;
        background-attachment: scroll;
    }

    .sidebar { display: none; }

    .header-player {
        height: 160px;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 6px;
        padding: 12px 16px;
    }

    .burger-menu {
        position: absolute;
        top: 18px;
        left: 20px;
        margin-right: 0;
    }

    .novasuno-logo {
        font-size: 1.2rem;
        letter-spacing: 4px;
        text-align: center;
    }

    .custom-player {
        position: static;
        transform: none;
        width: 100%;
    }

    .player-controls-row {
        justify-content: center;
    }

    .equalizer {
        margin-left: 0;
    }

    #current-song-title { font-size: 0.65rem; }

    .dashboard-body { height: calc(100vh - 160px); }

    .main-content { padding: 20px; }

    .main-content h1 { font-size: 1.5rem !important; margin-bottom: 30px !important; }

    .song-title { font-size: 0.9rem; }
}