/* --- Music Control Button --- */
.music-control-btn {
    position: fixed;
    bottom: 30px;
    left: 20px;
    width: 20px;
    height: 20px;
    background-color: rgba(228, 22, 22, 0);
    backdrop-filter: blur(5px);
    border: 3px solid rgb(117, 117, 117);
    border-radius: 50%;
    color: #838383;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 1000;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0);
    /* Hidden initially until overlay is closed */
    opacity: 0;
    visibility: hidden;
}

.music-control-btn.show {
    opacity: 1;
    visibility: visible;
}

.music-control-btn:hover {
    background-color: rgba(252, 252, 252, 0);
    transform: scale(1.1);
}

.music-control-btn i {
    font-size: 10px;
}

/* Rotating animation for music icon when playing */
@keyframes spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }

}

.music-control-btn.playing i {
    /* Optional: rotate icon if it's a disc/note, but for play/pause icon usually static is better. 
       Let's add a pulse effect instead */
    animation: musicPulse 2s infinite;
}

@keyframes musicPulse {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 255, 255, 0);
    }

    70% {
        box-shadow: 0 0 0 10px rgba(255, 255, 255, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(255, 255, 255, 0);
    }
}