.music-controls {
    position: fixed;
    top: 80px;
    right: 20px;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 15px;
    z-index: 1001;
    min-width: 200px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    transform: translateX(100%);
    opacity: 0;
}
.music-controls.show {
    transform: translateX(0);
    opacity: 1;
}
.music-controls h4 {
    color: white;
    margin: 0 0 15px 0;
    font-size: 16px;
    text-align: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    padding-bottom: 10px;
}
.volume-control {
    margin-bottom: 12px;
}
.volume-control label {
    color: rgba(255, 255, 255, 0.9);
    font-size: 12px;
    display: block;
    margin-bottom: 5px;
}
.volume-slider {
    width: 100%;
    height: 6px;
    border-radius: 3px;
    background: rgba(255, 255, 255, 0.2);
    outline: none;
    -webkit-appearance: none;
    appearance: none;
    cursor: pointer;
}
.volume-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: linear-gradient(135deg, #00e1ff, #0099cc);
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0, 225, 255, 0.3);
    transition: all 0.2s ease;
}
.volume-slider::-webkit-slider-thumb:hover {
    transform: scale(1.2);
    box-shadow: 0 4px 12px rgba(0, 225, 255, 0.5);
}
.volume-slider::-moz-range-thumb {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: linear-gradient(135deg, #00e1ff, #0099cc);
    cursor: pointer;
    border: none;
    box-shadow: 0 2px 6px rgba(0, 225, 255, 0.3);
}
.music-toggles {
    display: flex;
    gap: 8px;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}
.toggle-btn {
    flex: 1;
    padding: 8px 12px;
    border: none;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    font-size: 11px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.2);
}
.toggle-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-1px);
}
.toggle-btn.active {
    background: linear-gradient(135deg, #00e1ff, #0099cc);
    box-shadow: 0 4px 12px rgba(0, 225, 255, 0.3);
}
.toggle-btn.inactive {
    background: rgba(255, 82, 82, 0.3);
    border-color: rgba(255, 82, 82, 0.5);
}
.music-control-btn {
    position: fixed;
    top: 80px;
    right: 20px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(0, 225, 255, 0.2), rgba(0, 153, 204, 0.2));
    backdrop-filter: blur(10px);
    border: 2px solid rgba(0, 225, 255, 0.3);
    color: white;
    font-size: 20px;
    cursor: pointer;
    z-index: 1002;
    box-shadow: 0 4px 15px rgba(0, 225, 255, 0.2);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}
.music-control-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(0, 225, 255, 0.4);
    background: linear-gradient(135deg, rgba(0, 225, 255, 0.3), rgba(0, 153, 204, 0.3));
}
.music-control-btn.muted {
    background: linear-gradient(135deg, rgba(255, 82, 82, 0.2), rgba(204, 0, 0, 0.2));
    border-color: rgba(255, 82, 82, 0.3);
    box-shadow: 0 4px 15px rgba(255, 82, 82, 0.2);
}
.music-control-btn.muted:hover {
    box-shadow: 0 6px 20px rgba(255, 82, 82, 0.4);
}
@media (max-width: 768px) {
    .music-controls {
        top: 70px;
        right: 15px;
        left: 15px;
        min-width: auto;
        padding: 12px;
    }
    .music-control-btn {
        top: 70px;
        right: 15px;
        width: 40px;
        height: 40px;
        font-size: 16px;
    }
    .music-controls h4 {
        font-size: 14px;
        margin-bottom: 12px;
    }
    .volume-control {
        margin-bottom: 10px;
    }
    .volume-control label {
        font-size: 11px;
    }
    .toggle-btn {
        padding: 6px 8px;
        font-size: 10px;
    }
}
@keyframes musicPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}
.music-control-btn.playing {
    animation: musicPulse 2s ease-in-out infinite;
}
.volume-value {
    color: rgba(255, 255, 255, 0.7);
    font-size: 10px;
    text-align: right;
    margin-top: 2px;
}
.music-status {
    position: absolute;
    bottom: -25px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 4px 8px;
    border-radius: 10px;
    font-size: 10px;
    white-space: nowrap;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}
.music-control-btn:hover .music-status {
    opacity: 1;
}
.sound-wave {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 20px;
    height: 20px;
    opacity: 0.6;
}
.sound-wave::before,
.sound-wave::after {
    content: '';
    position: absolute;
    border: 2px solid currentColor;
    border-radius: 50%;
    animation: soundWave 1.5s ease-out infinite;
}
.sound-wave::before {
    width: 100%;
    height: 100%;
}
.sound-wave::after {
    width: 150%;
    height: 150%;
    top: -25%;
    left: -25%;
    animation-delay: 0.5s;
}
@keyframes soundWave {
    0% {
        transform: scale(0.5);
        opacity: 1;
    }
    100% {
        transform: scale(2);
        opacity: 0;
    }
}