
/* =========================
   BASE
========================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

body {
    height: 100dvh;
    overflow: hidden;

    background: radial-gradient(circle at center,
        #e9f7ff 0%,
        #cfeeff 35%,
        #a9dcff 70%,
        #7fc7ff 100%);
}

/* =========================
   BACKGROUND
========================= */

.background {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

/* =========================
   PARTICLES
========================= */

.particles span {
    position: absolute;
    width: 6px;
    height: 6px;
    background: rgba(255,255,255,0.6);
    border-radius: 50%;
    animation: float 10s linear infinite;
}

.particles span:nth-child(1) { top: 10%; left: 15%; }
.particles span:nth-child(2) { top: 20%; left: 70%; }
.particles span:nth-child(3) { top: 40%; left: 25%; }
.particles span:nth-child(4) { top: 60%; left: 80%; }
.particles span:nth-child(5) { top: 75%; left: 40%; }
.particles span:nth-child(6) { top: 30%; left: 50%; }
.particles span:nth-child(7) { top: 85%; left: 20%; }
.particles span:nth-child(8) { top: 50%; left: 90%; }

@keyframes float {
    0% { transform: translateY(0); opacity: 0.4; }
    50% { opacity: 0.9; }
    100% { transform: translateY(-40px); opacity: 0; }
}

/* =========================
   PLAYER
========================= */

.player {
    position: absolute;
    top: 45%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
}

/* =========================
   LOGO AREA
========================= */

.logo-area {
    position: relative;
    width: 240px;
    height: 240px;
    margin: 0 auto 30px;

    display: flex;
    align-items: center;
    justify-content: center;
}

/* =========================
   WAVES (CLEAN + STABLE)
========================= */

.waves {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 1px;
    height: 1px;

    z-index: 1;
    pointer-events: none;

    transform: translateZ(0);
}

.wave {
    position: absolute;
    top: 0;
    left: 0;

    width: 18px;
    height: 18px;

    border-radius: 50%;

    border: 1px solid rgba(255, 255, 255, 0.28);
    background: rgba(255, 255, 255, 0.05);

    transform: translate(-50%, -50%) scale(0.3);

    animation: waveAnim 6s infinite ease-out;

    will-change: transform, opacity;
}

/* delays */
.wave1 { animation-delay: 0s; }
.wave2 { animation-delay: 0.6s; }
.wave3 { animation-delay: 1.2s; }
.wave4 { animation-delay: 1.8s; }
.wave5 { animation-delay: 2.4s; }

/* smooth big radio radius */
@keyframes waveAnim {
    0% {
        transform: translate(-50%, -50%) scale(0.4);
        opacity: 0.55;
    }

    60% {
        opacity: 0.2;
    }

    100% {
        transform: translate(-50%, -50%) scale(17);
        opacity: 0;
    }
}

/* =========================
   PULSE
========================= */

.pulse {
    position: absolute;
    border-radius: 50%;
    border: 2px solid rgba(255,255,255,0.35);
    animation: pulseAnim 3s infinite;
    z-index: 2;
}

.pulse1 {
    width: 170px;
    height: 170px;
}

.pulse2 {
    width: 240px;
    height: 240px;
    animation-delay: 1.5s;
}

@keyframes pulseAnim {
    0% { transform: scale(0.8); opacity: 0.6; }
    100% { transform: scale(1.4); opacity: 0; }
}

/* =========================
   LOGO
========================= */

.logo-circle {
    width: 150px;
    height: 150px;

    border-radius: 50%;
    background: rgba(255,255,255,0.85);
    backdrop-filter: blur(10px);

    display: flex;
    align-items: center;
    justify-content: center;

    box-shadow: 0 10px 40px rgba(0,0,0,0.15);

    z-index: 5;
    position: relative;
}

.logo-circle img {
    width: 80%;
}

/* =========================
   TRACK
========================= */

.track {
    margin-top: 20px;
    color: #0b3a5a;
}

.track-title {
    font-size: 14px;
    opacity: 0.7;
}

.track-name {
    font-size: 18px;
    font-weight: 600;
    margin-top: 6px;
}

/* =========================
   CONTROL PANEL
========================= */

.control-panel {
    position: absolute;
    bottom: 25px;
    left: 50%;
    transform: translateX(-50%);
    width: 92%;
    max-width: 900px;

    display: flex;
    justify-content: space-between;
    align-items: center;

    padding: 14px 20px;
    border-radius: 20px;

    background: rgba(255,255,255,0.6);
    backdrop-filter: blur(18px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);

    padding-bottom: calc(14px + env(safe-area-inset-bottom));
}

/* =========================
   LEFT CONTROLS
========================= */

.left-controls {
    display: flex;
    align-items: center;
    gap: 15px;
}

.play-button {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    border: none;
    background: #2a8cff;
    color: white;

    display: flex;
    align-items: center;
    justify-content: center;

    cursor: pointer;
}

/* =========================
   LIVE
========================= */

.live-box {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    color: #0b3a5a;
}

.live-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #ff3b3b;
    animation: blink 1s infinite;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.2; }
}

/* =========================
   VISUALIZER (NEW)
========================= */

.viz {
    display: flex;
    align-items: flex-end;
    gap: 3px;

    height: 18px;
    margin-left: 10px;
}

.viz span {
    width: 3px;
    height: 6px;

    background: #2a8cff;
    border-radius: 2px;

    animation: vizAnim 1.2s infinite ease-in-out;
}

.viz span:nth-child(2) { animation-delay: 0.2s; }
.viz span:nth-child(3) { animation-delay: 0.4s; }
.viz span:nth-child(4) { animation-delay: 0.6s; }

@keyframes vizAnim {
    0%, 100% {
        height: 5px;
        opacity: 0.4;
    }
    50% {
        height: 18px;
        opacity: 1;
    }
}

/* =========================
   VOLUME
========================= */

.volume-box {
    display: flex;
    align-items: center;
    gap: 10px;
}

.volume-icon {
    width: 22px;
    height: 22px;
    color: #0b3a5a;
}

#volumeSlider {
    width: 120px;
}

/* =========================
   MOBILE
========================= */

@media (max-width: 768px) {

    .logo-area {
        width: 190px;
        height: 190px;
    }

    .logo-circle {
        width: 130px;
        height: 130px;
    }

    .track-name {
        font-size: 16px;
    }

    .control-panel {
        flex-direction: column;
        gap: 12px;
        bottom: 12px;
        width: 94%;
        padding: 16px;
    }

    #volumeSlider {
        width: 100%;
    }
}