/* ===== AUDIO CONTROLS STYLES ===== */

.audio-controls {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    border-radius: 50px;
    padding: 8px 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.audio-controls:hover {
    background: rgba(0, 0, 0, 0.9);
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.4);
}

.audio-btn {
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 50%;
    background: linear-gradient(135deg, #00b4d8 0%, #90e0ef 100%);
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 1rem;
    box-shadow: 0 2px 10px rgba(0, 180, 216, 0.3);
}

.audio-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 15px rgba(0, 180, 216, 0.4);
}

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

.audio-btn.playing {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}

.audio-btn.muted {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
}

.volume-control {
    display: flex;
    align-items: center;
    gap: 8px;
    max-width: 0;
    overflow: hidden;
    transition: max-width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.audio-controls:hover .volume-control {
    max-width: 100px;
}

.volume-slider {
    width: 80px;
    height: 4px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 2px;
    outline: none;
    -webkit-appearance: none;
    appearance: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.volume-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 16px;
    height: 16px;
    background: linear-gradient(135deg, #00b4d8 0%, #90e0ef 100%);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 6px rgba(0, 180, 216, 0.4);
}

.volume-slider::-webkit-slider-thumb:hover {
    transform: scale(1.2);
    box-shadow: 0 4px 10px rgba(0, 180, 216, 0.6);
}

.volume-slider::-moz-range-thumb {
    width: 16px;
    height: 16px;
    background: linear-gradient(135deg, #00b4d8 0%, #90e0ef 100%);
    border-radius: 50%;
    cursor: pointer;
    border: none;
    transition: all 0.3s ease;
    box-shadow: 0 2px 6px rgba(0, 180, 216, 0.4);
}

.volume-slider::-moz-range-thumb:hover {
    transform: scale(1.2);
    box-shadow: 0 4px 10px rgba(0, 180, 216, 0.6);
}

/* Volume icon states */
.volume-icon {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.875rem;
    transition: color 0.3s ease;
}

.volume-icon:hover {
    color: white;
}

/* Mobile responsive adjustments */
@media (max-width: 768px) {
    .audio-controls {
        bottom: 15px;
        right: 15px;
        padding: 6px 12px;
        gap: 8px;
    }
    
    .audio-btn {
        width: 36px;
        height: 36px;
        font-size: 0.875rem;
    }
    
    .volume-control {
        gap: 6px;
    }
    
    .volume-slider {
        width: 60px;
        height: 3px;
    }
    
    .volume-slider::-webkit-slider-thumb {
        width: 14px;
        height: 14px;
    }
    
    .volume-slider::-moz-range-thumb {
        width: 14px;
        height: 14px;
    }
    
    .audio-controls:hover .volume-control {
        max-width: 80px;
    }
}

@media (max-width: 480px) {
    .audio-controls {
        bottom: 10px;
        right: 10px;
        padding: 4px 8px;
        gap: 6px;
    }
    
    .audio-btn {
        width: 32px;
        height: 32px;
        font-size: 0.75rem;
    }
    
    .volume-slider {
        width: 50px;
    }
    
    .audio-controls:hover .volume-control {
        max-width: 70px;
    }
}

/* Accessibility improvements */
.audio-btn:focus {
    outline: 2px solid #00b4d8;
    outline-offset: 2px;
}

.volume-slider:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.5);
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .audio-controls {
        background: rgba(0, 0, 0, 0.95);
        border: 1px solid white;
    }
    
    .audio-btn {
        border: 2px solid white;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    .audio-controls,
    .audio-btn,
    .volume-control,
    .volume-slider {
        transition: none;
    }
}