:root {
    --bg0: #12001a;
    --bg1: #2a0036;

    /* Paradise Theme */
    --p1: #d400ff;
    --p2: #ff2a6d;
    --p3: #ff9a00;
    font-family: 'Courier New', Courier, monospace;
}

/* --- Body Styles --- */
body {
    margin: 0;
    overflow: hidden;
    height: 100vh;
    color: #fff;

    background:
        radial-gradient(1200px 800px at 15% 10%, rgba(212, 0, 255, .35), transparent 55%),
        radial-gradient(900px 700px at 85% 80%, rgba(255, 42, 109, .35), transparent 55%),
        linear-gradient(135deg, var(--bg0), var(--bg1));

    background-size: 180% 180%;
    background-position: 0% 0%;
    animation: baseDrift 22s ease-in-out infinite;
    user-select: none;
}
body::before {
    content: "";
    position: fixed;
    inset: -30%;
    pointer-events: none;

    background:
        radial-gradient(closest-side at 10% 20%, rgba(212, 0, 255, .85), transparent 55%),
        radial-gradient(closest-side at 30% 80%, rgba(255, 42, 109, .75), transparent 60%),
        radial-gradient(closest-side at 70% 30%, rgba(255, 154, 0, .65), transparent 60%),
        radial-gradient(closest-side at 90% 70%, rgba(255, 51, 51, 0.55), transparent 60%),
        conic-gradient(from 180deg at 50% 50%,
            rgba(212, 0, 255, .45),
            rgba(255, 42, 109, .40),
            rgba(255, 154, 0, .35),
            rgba(255, 51, 51, 0.3),
            rgba(212, 0, 255, .45));

    background-size: 220% 220%;
    background-position: 40% 60%;

    filter: blur(35px) saturate(170%) brightness(1.25);
    opacity: .95;

    animation: auroraDrift 16s ease-in-out infinite, auroraSwirl 28s linear infinite;
    transform-origin: 50% 50%;
}
body::after {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;

    background:
        radial-gradient(900px 600px at 50% 40%, rgba(255, 255, 255, .18), transparent 60%),
        radial-gradient(1200px 900px at 50% 120%, rgba(0, 0, 0, .35), transparent 55%),
        radial-gradient(900px 700px at -10% 50%, rgba(0, 0, 0, .25), transparent 60%),
        radial-gradient(900px 700px at 110% 50%, rgba(0, 0, 0, .25), transparent 60%);

    mix-blend-mode: screen;

    background-size: 160% 160%;
    background-position: 50% 50%;
    animation: lightDrift 18s ease-in-out infinite;
}

/* --- Background Animations --- */
@keyframes baseDrift {
    0% {
        background-position: 0% 0%;
    }

    35% {
        background-position: 60% 20%;
    }

    70% {
        background-position: 20% 70%;
    }

    100% {
        background-position: 0% 0%;
    }
}
@keyframes auroraDrift {
    0% {
        background-position: 40% 60%;
    }

    25% {
        background-position: 70% 30%;
    }

    50% {
        background-position: 55% 75%;
    }

    75% {
        background-position: 30% 45%;
    }

    100% {
        background-position: 40% 60%;
    }
}
@keyframes auroraSwirl {
    0% {
        transform: rotate(0deg) scale(1.02);
    }

    50% {
        transform: rotate(180deg) scale(1.06);
    }

    100% {
        transform: rotate(360deg) scale(1.02);
    }
}
@keyframes lightDrift {
    0% {
        background-position: 50% 50%;
        opacity: 1;
    }

    40% {
        background-position: 60% 40%;
        opacity: .95;
    }

    70% {
        background-position: 45% 60%;
        opacity: 1;
    }

    100% {
        background-position: 50% 50%;
        opacity: 1;
    }
}
@media (prefers-reduced-motion: reduce) {

    body,
    body::before,
    body::after {
        animation: none !important;
    }
}

/* --- Music Styles --- */
#music {
    position: fixed;
    top: 20px;
    bottom: calc(67%);
    left: 20px;
    width: 15%;

    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 12px 20px;

    background: linear-gradient(145deg, rgba(20, 20, 20, .65), rgba(10, 10, 10, .45));
    border-radius: 20px;
    backdrop-filter: blur(18px) saturate(140%);

    box-shadow: 0 0 10px rgba(0, 0, 0, .3), 0 0 20px rgba(0, 0, 0, .5);    transition: all 0.3s ease;
}
#music-icon {
    width: 35%;
    height: 35%;
    display: flex;
    margin-left: auto;
    margin-right: auto;
}
#audioPlayer {
    width: 100%;
    background: transparent;
    border: none;
    outline: none;
    color: linear-gradient(145deg, var(--p1), var(--p2), var(--p3));
}
#trackInfo {
    text-align: center;
    font-size: 14px;
}
.customPlayer {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    padding: 15px 20px;
    border-radius: 15px;

    background: linear-gradient(145deg,
            rgba(20, 20, 20, 0.65),
            rgba(10, 10, 10, 0.45));

    border: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(18px) saturate(160%);
    box-shadow: 0 0 15px rgba(0, 0, 0, .3);
}
.customPlayer button {
    background: rgba(255, 255, 255, 0.08);
    border: none;
    color: white;
    font-size: 16px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    transition: 0.2s ease;
}
.customPlayer button:hover {
    background: rgba(255, 0, 0, 0.3);
    transform: scale(1.1);
}
#playPause {
    background: rgba(255, 255, 255, 0.08);
    border: none;
    color: white;
    font-size: 18px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    transition: 0.2s ease;
}
#playPause:hover {
    background: rgba(255, 0, 0, 0.3);
}
#progressContainer {
    flex: 1;
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
}
#progress {
    width: 0%;
    height: 100%;
    background: linear-gradient(to right, red, darkred);
}
#volume {
    -webkit-appearance: none;
    appearance: none;
    width: 75px;
    height: 6px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.15);
    outline: none;
    cursor: pointer;
    transition: 0.3s ease;
}
#volume::-webkit-slider-runnable-track {/* Track fill effect (Chrome trick) */
    height: 6px;
    border-radius: 10px;
    background: linear-gradient(to right,
            var(--p3) 0%,
            var(--p2) var(--volume-percent, 100%),
            rgba(255, 255, 255, 0.15) var(--volume-percent, 100%));
}
#volume::-webkit-slider-thumb {/* Thumb (Chrome) */
    -webkit-appearance: none;
    appearance: none;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: radial-gradient(circle, #ff4d4d, #990000);
    box-shadow: 0 0 8px rgba(255, 0, 0, 0.6);
    margin-top: -5px;
    transition: 0.2s ease;
}
#volume::-webkit-slider-thumb:hover {
    transform: scale(1.2);
    box-shadow: 0 0 12px rgba(255, 0, 0, 0.9);
}

/* --- Sidebar Styles --- */
#sidebar {
    position: fixed;
    top: calc(36%);
    bottom: 20px;
    left: 20px;
    width: 15%;

    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 20px;

    background: linear-gradient(145deg, rgba(20, 20, 20, .65), rgba(10, 10, 10, .45));
    border-radius: 20px;
    backdrop-filter: blur(18px) saturate(140%);

    box-shadow: 0 0 10px rgba(0, 0, 0, .3), 0 0 20px rgba(0, 0, 0, .5);
    transition: all 0.3s ease;
}

/* --- Content Styles --- */
#content {
    position: fixed;

    top: 20px;
    bottom: 20px;
    left: calc(20%);  /* sidebar width + left gap */
    right: 20px;

    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 20px;

    background: linear-gradient(145deg, rgba(20, 20, 20, .65), rgba(10, 10, 10, .45));
    border-radius: 20px;
    backdrop-filter: blur(18px) saturate(140%);

    box-shadow: 0 0 10px rgba(0, 0, 0, .3), 0 0 20px rgba(0, 0, 0, .5);
    transition: all 0.3s ease;
}