/* Modal de música - Estilos compartidos */
.music-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(3px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 1;
    transition: opacity 0.3s ease;
}

.music-modal-overlay.hidden {
    opacity: 0;
    pointer-events: none;
}

.music-modal-content {
    background: white;
    padding: 40px;
    border-radius: 20px;
    text-align: center;
    max-width: 400px;
    width: 90%;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    animation: modalSlideIn 0.4s ease;
}

@keyframes modalSlideIn {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.music-modal-content h2 {
    margin: 0 0 15px;
    font-size: 24px;
    color: #333;
}

.music-modal-content p {
    margin: 0 0 30px;
    color: #666;
    font-size: 16px;
}

.music-modal-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
}

.music-btn {
    padding: 12px 30px;
    border: none;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 140px;
}

.music-btn-yes {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.music-btn-yes:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(102, 126, 234, 0.4);
}

.music-btn-no {
    background: #f0f0f0;
    color: #333;
}

.music-btn-no:hover {
    background: #e0e0e0;
}

/* Botón de control de música flotante */
button.music-control-btn {
    position: fixed !important;
    bottom: 30px !important;
    right: 30px !important;
    width: 65px !important;
    height: 65px !important;
    border-radius: 50% !important;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
    border: none !important;
    color: white !important;
    font-size: 26px !important;
    cursor: pointer !important;
    box-shadow: 
        0 8px 25px rgba(102, 126, 234, 0.4),
        inset 0 0 0 4px rgba(255, 255, 255, 0.1),
        inset 0 0 0 8px rgba(255, 255, 255, 0.05) !important;
    z-index: 9999 !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    display: none !important;
    overflow: visible !important;
    padding: 0 !important;
    margin: 0 !important;
}

button.music-control-btn::before {
    content: '' !important;
    position: absolute !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    width: 20px !important;
    height: 20px !important;
    background: rgba(255, 255, 255, 0.2) !important;
    border-radius: 50% !important;
    z-index: 0 !important;
}

button.music-control-btn i {
    position: relative !important;
    z-index: 1 !important;
}

button.music-control-btn.visible {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

button.music-control-btn:hover {
    transform: scale(1.08) rotate(5deg) !important;
    box-shadow: 
        0 12px 35px rgba(102, 126, 234, 0.6),
        inset 0 0 0 4px rgba(255, 255, 255, 0.2),
        inset 0 0 0 8px rgba(255, 255, 255, 0.1) !important;
}

button.music-control-btn:active {
    transform: scale(0.95) !important;
}

button.music-control-btn.playing::after {
    content: '' !important;
    position: absolute !important;
    top: 50% !important;
    left: 50% !important;
    width: 100% !important;
    height: 100% !important;
    border: 3px solid rgba(255, 255, 255, 0.6) !important;
    border-radius: 50% !important;
    transform: translate(-50%, -50%) !important;
    animation: soundwave 1.5s ease-out infinite !important;
    z-index: -1 !important;
    pointer-events: none !important;
}

button.music-control-btn.playing {
    animation: spin 3s linear infinite, pulse 2s ease-in-out infinite !important;
}

@keyframes soundwave {
    0% { width: 100%; height: 100%; opacity: 1; }
    100% { width: 160%; height: 160%; opacity: 0; }
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes pulse {
    0%, 100% {
        box-shadow: 
            0 8px 25px rgba(102, 126, 234, 0.4),
            inset 0 0 0 4px rgba(255, 255, 255, 0.1),
            inset 0 0 0 8px rgba(255, 255, 255, 0.05);
    }
    50% {
        box-shadow: 
            0 12px 40px rgba(102, 126, 234, 0.7),
            inset 0 0 0 4px rgba(255, 255, 255, 0.2),
            inset 0 0 0 8px rgba(255, 255, 255, 0.1);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .music-modal-content {
        padding: 30px 20px;
    }
    
    .music-modal-buttons {
        flex-direction: column;
    }
    
    .music-btn {
        width: 100%;
    }
    
    button.music-control-btn {
        bottom: 20px !important;
        right: 20px !important;
        width: 55px !important;
        height: 55px !important;
        font-size: 22px !important;
    }
    
    button.music-control-btn::before {
        width: 16px !important;
        height: 16px !important;
    }
}
