/* --- CSS VARIABLES & ANIMATIONS --- */
:root {
    --color1: #1db954;
    --color2: #191414;
    --color3: #535353;
}

body,
html {
    margin: 0;
    padding: 0;
    height: 100vh;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: white;
    overflow: hidden;

    /* Smoother gradient logic with explicit stops */
    background: linear-gradient(
        135deg,
        var(--color1) 0%,
        var(--color2) 50%,
        var(--color3) 100%
    );
    background-size: 300% 300%;

    /* Slower, ambient 'breathing' animation */
    animation: gradientBG 25s ease-in-out infinite;
    transition: background 1.5s ease-in-out;
}

@keyframes gradientBG {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

/* --- TOP PROGRESS BAR & PAUSED LABEL --- */
#progress-container {
    position: absolute;
    top: 0;
    width: 100%;
    height: 30px;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
}

#progress-bar {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 0%;
    background: rgba(255, 255, 255, 0.3);
    transition: opacity 0.3s ease;
    z-index: 1;
}

#paused-label {
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 3px;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 2;
}

/* --- CORNER METADATA (LEFT: TIME, RIGHT: WEATHER) --- */
#datetime-container {
    position: absolute;
    top: 40px;
    left: 30px;
    display: flex;
    flex-direction: column;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
}

#time-display {
    font-size: 2rem;
    font-weight: 700;
}

#date-display {
    font-size: 1rem;
    font-weight: 500;
    opacity: 0.8;
}

#weather-container {
    position: absolute;
    top: 40px;
    right: 30px;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
}

#weather-top {
    font-size: 2rem;
    font-weight: 700;
    display: flex;
    gap: 10px;
    align-items: center;
}

#weather-location {
    font-size: 1rem;
    font-weight: 500;
    opacity: 0.8;
}

/* --- CENTERED MEDIA CONTENT --- */
.center-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100vh;
    text-align: center;
}

#track-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 25px;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

#cover-art {
    width: 350px;
    height: 350px;
    object-fit: cover;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    margin-bottom: 25px;
    border-radius: 4px;
}

#artist-name {
    font-size: 1.2rem;
    opacity: 0.9;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}
