:root {
    --text-color: #ffffff;
    --text-shadow: 0px 2px 8px rgba(0, 0, 0, 0.7);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-color);
    height: 100vh;
    width: 100vw;
    overflow: hidden;
    display: grid;
    grid-template-rows: auto 1fr auto;
}

/* --- Achtergrond & overlay --- */
#background-container,
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
}

#background-container {
    background-size: cover;
    background-position: center;
    transition: opacity 0.5s ease-in-out;
    opacity: 1;
}

#background-container.fading {
    opacity: 0;
}

.overlay {
    background: radial-gradient(circle, rgba(0, 0, 0, 0.4) 0%, rgba(0, 0, 0, 0.8) 100%);
    z-index: -1;
}

/* --- Header --- */
.page-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 2rem;
    width: 100%;
}

.song-info-header {
    text-align: left;
}

.song-info-header.updating {
    animation: fadeUp 0.5s ease-out;
}

#song-title {
    font-family: 'Oswald', sans-serif;
    font-size: clamp(2.2rem, 5vw, 2.8rem);
    text-transform: uppercase;
    text-shadow: var(--text-shadow);
}

#song-artist {
    font-size: clamp(1.8rem, 4vw, 2.4rem);
    opacity: 0.8;
}

.logo-container img {
    height: clamp(250px, 30vw, 190px);
    width: auto;
    opacity: 0.6; /* maak het logo 80% zichtbaar */
    transition: opacity 0.3s ease;
}
.logo-container img:hover {
    opacity: 1;
}


        
/* --- Main Content --- */
.content-container {
    display: flex;
    flex-direction: column;
    justify-content: bottomr;
    align-items: center;
    text-align: justify;
    padding: 1rem;
}

.player-controls {
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

.player-controls.visible {
    opacity: 1;
}

.player-controls button {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    border-radius: 50%;
    width: 80px;
    height: 80px;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
}

.player-controls button:hover {
    background-color: rgba(255, 255, 255, 0.4);
    transform: scale(1.05);
}

.player-controls svg {
    fill: currentColor;
    width: 50px;
    height: 50px;
}

.song-details-container {
    margin-top: 2rem;
    background: rgba(0, 0, 0, 0.3);
    padding: 1.5rem;
    border-radius: 10px;
    max-width: 800px;
    width: 100%;
    backdrop-filter: blur(5px);
    transition: all 0.3s ease;
}

.song-details-container:empty {
    padding: 0;
    margin: 0;
    opacity: 0;
    visibility: hidden;
}

/* --- Footer (niet zichtbaar) --- */
.page-footer {
    display: none;
}

/* --- Next Songs Container (desktop) --- */
/* --- Next Songs Container (desktop) --- */
#next-songs-container {
    position: fixed;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    
    opacity: 0.8; /* maakt de hele container 30% zichtbaar */
    
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    justify-content: center;
    align-items: flex-start;
    
    padding: 1rem;
    background: transparent;
    z-index: 10;
    animation: slideFadeIn 0.8s ease-out;
}

.next-song-item {
    background: rgba(0, 0, 0, 0.4);
    padding: 1rem;
    border-radius: 8px;
    text-align: left;
    width: 200px;
    transform: scale(0.95);
    transition: transform 0.3s ease;
}

.next-song-item:hover {
    transform: scale(1);
}

.next-song-item .time {
    font-size: 0.9rem;
    font-weight: bold;
    opacity: 0.7;
}

.next-song-item .title {
    font-weight: bold;
    margin-top: 0.5rem;
}

.next-song-item .artist {
    font-size: 0.9rem;
    opacity: 0.8;
}

/* --- Animaties --- */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideFadeIn {
    from {
        opacity: 0;
        transform: translate(-30px, -50%);
    }
    to {
        opacity: 1;
        transform: translate(0, -50%);
    }
}

/* --- Mobile Optimization --- */
@media (max-width: 768px) {
    body {
        overflow-y: auto;
    }

    .page-header {
        flex-direction: column;
        align-items: center;
        gap: 1.5rem;
        padding: 1.5rem 1rem;
        text-align: center;
    }

    .song-info-header {
        order: 2;
        text-align: center;
    }

    #song-title {
        font-size: 2rem;
    }

    #song-artist {
        font-size: 1.2rem;
    }

    .logo-container {
        order: 1;
    }

    .logo-container img {
        height: 185px; /* ook 1.5x groter op mobiel */
    }

    .content-container {
        padding: 1rem;
        justify-content: flex-start;
        margin-top: 2rem;
    }

    .player-controls {
        transform: scale(0.9);
    }

    .song-details-container {
        margin-top: 1rem;
        padding: 1rem;
    }

    /* --- Next Songs onderaan op mobiel --- */
    #next-songs-container {
        top: auto;
        bottom: 1rem;
        left: 0;
        transform: none;
        flex-direction: row;
        gap: 1rem;
        justify-content: flex-start;
        align-items: center;
        overflow-x: auto;
        padding: 0.5rem 1rem;
        width: 100%;
        animation: slideUpFadeIn 0.6s ease-out;
    }

    @keyframes slideUpFadeIn {
        from {
            opacity: 0;
            transform: translateY(30px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    .next-song-item {
        width: 160px;
        padding: 0.8rem;
        flex-shrink: 0;
        text-align: center;
    }
}
