/* =============================================
   AUDIO PLAYER CONTROLS
   SMK TI BALI GLOBAL BADUNG
   ============================================= */

.music-control {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 9999;
    display: flex;
    align-items: center;
    gap: 12px;
}

.music-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--gradient-accent);
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 25px rgba(0, 212, 255, 0.4), 
                0 0 0 0 rgba(0, 212, 255, 0.4);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    outline: none;
}

.music-btn:hover {
    transform: scale(1.1) translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 212, 255, 0.5), 
                0 0 0 10px rgba(0, 212, 255, 0.1);
}

.music-btn:active {
    transform: scale(0.95);
}

.music-btn i {
    transition: transform 0.3s ease;
}

/* Playing Animation */
.music-btn.playing {
    animation: musicPulse 2s infinite;
}

@keyframes musicPulse {
    0% {
        box-shadow: 0 10px 25px rgba(0, 212, 255, 0.4), 
                    0 0 0 0 rgba(0, 212, 255, 0.4);
    }
    70% {
        box-shadow: 0 10px 25px rgba(0, 212, 255, 0.4), 
                    0 0 0 15px rgba(0, 212, 255, 0);
    }
    100% {
        box-shadow: 0 10px 25px rgba(0, 212, 255, 0.4), 
                    0 0 0 0 rgba(0, 212, 255, 0);
    }
}

/* Tooltip / Label */
.music-label {
    background: rgba(10, 22, 40, 0.8);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 500;
    white-space: nowrap;
    opacity: 0;
    transform: translateX(20px);
    transition: all 0.3s ease;
    pointer-events: none;
    box-shadow: var(--shadow-lg);
}

.music-control:hover .music-label {
    opacity: 1;
    transform: translateX(0);
}

/* Visualization bars (mini) */
.music-waves {
    position: absolute;
    top: -5px;
    right: -5px;
    display: flex;
    align-items: flex-end;
    gap: 2px;
    height: 20px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.music-btn.playing .music-waves {
    opacity: 1;
}

.wave-bar {
    width: 3px;
    background: var(--accent-400);
    border-radius: 10px;
    height: 5px;
}

.music-btn.playing .wave-bar:nth-child(1) { animation: wave 0.6s infinite alternate; }
.music-btn.playing .wave-bar:nth-child(2) { animation: wave 0.8s infinite alternate 0.1s; }
.music-btn.playing .wave-bar:nth-child(3) { animation: wave 0.5s infinite alternate 0.2s; }
.music-btn.playing .wave-bar:nth-child(4) { animation: wave 0.7s infinite alternate 0.3s; }

@keyframes wave {
    0% { height: 5px; }
    100% { height: 18px; }
}

/* Responsive */
@media (max-width: 768px) {
    .music-control {
        bottom: 20px;
        right: 20px;
    }
    
    .music-btn {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }
    
    .music-label {
        display: none; /* Hide label on mobile to save space */
    }
}
