body,
html {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    background-color: #000;
    overflow: hidden;
    font-family: 'Segoe UI', sans-serif;
    color: white;
}

#player-container,
#player,
#html5-player {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    border: none;
    /* For iframe */
    object-fit: contain;
    /* Preserve ratio for HTML5 video */
    background: #000;
    /* Background for video player */
}

#overlay-message,
#pause-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 20;
    text-align: center;
}

#overlay-message h1,
#pause-overlay h1 {
    font-size: 3rem;
    margin-bottom: 20px;
    color: var(--primary-color);
}

#overlay-message p,
#pause-overlay p,
#next-song-overlay p {
    font-size: 1.5rem;
    color: #b0b0b0;
}

#next-song-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 25;
    /* Creating a higher index for this interstitial */
    text-align: center;
}

#next-song-overlay h1 {
    color: var(--secondary-color);
    font-size: 2rem;
    margin-bottom: 10px;
}

#next-song-overlay h2 {
    font-size: 4rem;
    margin: 20px 0;
    color: white;
    max-width: 80%;
}

#next-song-overlay span {
    color: var(--primary-color);
    font-weight: bold;
}

#controls {
    position: absolute;
    bottom: 20px;
    right: 20px;
    z-index: 10;
    opacity: 0;
    transition: opacity 0.5s;
}

body:hover #controls {
    opacity: 1;
}

button {
    background-color: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.4);
    color: white;
    padding: 10px 20px;
    font-size: 16px;
    cursor: pointer;
    border-radius: 4px;
    backdrop-filter: blur(5px);
}

button:hover {
    background-color: rgba(255, 255, 255, 0.4);
}

#overlay-message {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 5;
    text-align: center;
    background: rgba(0, 0, 0, 0.4);
    padding: 40px;
    border-radius: 20px;
    backdrop-filter: blur(5px);
}

h1 {
    font-weight: 300;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.hidden {
    display: none !important;
}

#toast-notification {
    position: absolute;
    top: 30px;
    right: 30px;
    padding: 15px 25px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    font-size: 1.2rem;
    font-weight: 500;
    border-radius: 10px;
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 1000;
    transition: opacity 0.3s, transform 0.3s;
    text-transform: uppercase;
    letter-spacing: 1px;
}

#toast-notification.show {
    opacity: 1;
    transform: translateY(0);
}

#toast-notification.hide {
    opacity: 0;
    transform: translateY(-20px);
}

/* Animated Background */
#animation-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    /* Behind everything but above body bg */
    pointer-events: none;
    overflow: hidden;
}

.orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.6;
    animation: float 20s infinite ease-in-out alternate;
}

.orb-1 {
    width: 300px;
    height: 300px;
    background: #bb86fc;
    /* Primary Purple */
    top: 10%;
    left: 10%;
    animation-duration: 4s;
}

.orb-2 {
    width: 400px;
    height: 400px;
    background: #03dac6;
    /* Secondary Teal */
    bottom: 20%;
    right: 10%;
    animation-duration: 5s;
    animation-delay: -5s;
}

.orb-3 {
    width: 250px;
    height: 250px;
    background: #cf6679;
    /* Error Red (Pinkish) */
    top: 40%;
    left: 50%;
    animation-duration: 3s;
    animation-delay: -10s;
}

.orb-4 {
    width: 350px;
    height: 350px;
    background: #3700b3;
    /* Darker Purple */
    bottom: 10%;
    left: 20%;
    animation-duration: 5s;
    animation-delay: -2s;
}

@keyframes float {
    0% {
        transform: translate(0, 0) scale(1);
    }

    33% {
        transform: translate(30px, -50px) scale(1.1);
    }

    66% {
        transform: translate(-20px, 20px) scale(0.9);
    }

    100% {
        transform: translate(0, 0) scale(1);
    }
}