/**
 * Custom Audio Player Styles
 * Beautiful, modern audio player for podcast episodes
 */

.custom-audio-player {
    background: #1a1a1a;
    border: 2px solid #404040;
    border-radius: 8px;
    padding: 15px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.custom-audio-player audio {
    display: none;
}

/* Play/Pause Button */
.audio-play-btn {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: linear-gradient(135deg, #4CAF50, #66BB6A);
    border: none;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.audio-play-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(76, 175, 80, 0.4);
}

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

/* Progress Container */
.audio-progress-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* Time Display */
.audio-time-display {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    color: #9e9e9e;
    font-family: monospace;
}

/* Progress Bar */
.audio-progress-bar {
    width: 100%;
    height: 6px;
    background: #2d2d2d;
    border-radius: 3px;
    position: relative;
}

.audio-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #4CAF50, #66BB6A);
    border-radius: 3px;
    width: 0%;
    transition: width 0.1s linear;
    position: absolute;
    pointer-events: none;
}

/* Range Input Scrubber - EXACT COPY from working player-modal.css */
.audio-scrubber {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
    margin: 0;
}

.audio-scrubber::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #4CAF50;
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.audio-scrubber::-moz-range-thumb {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #4CAF50;
    cursor: pointer;
    border: none;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

/* Volume Control */
.audio-volume-control {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.audio-volume-btn {
    background: none;
    border: none;
    color: #9e9e9e;
    font-size: 1.1rem;
    cursor: pointer;
    padding: 5px;
    transition: color 0.2s;
}

.audio-volume-btn:hover {
    color: #4CAF50;
}

.audio-volume-slider {
    width: 80px;
    height: 4px;
    background: #2d2d2d;
    border-radius: 2px;
    cursor: pointer;
    position: relative;
}

.audio-volume-fill {
    height: 100%;
    background: #9e9e9e;
    border-radius: 2px;
    width: 100%;
    transition: width 0.1s;
}

/* Volume Slider Input - Minimal styling, subtle gray */
.audio-volume-slider-input {
    accent-color: #757575;
}

/* Speed Control */
.audio-speed-btn {
    background: #2d2d2d;
    border: 1px solid #404040;
    color: #9e9e9e;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.2s;
    flex-shrink: 0;
    font-weight: 600;
}

.audio-speed-btn:hover {
    background: #404040;
    color: #4CAF50;
    border-color: #4CAF50;
}

/* Loading State */
.audio-loading {
    opacity: 0.6;
    pointer-events: none;
}

/* Responsive */
@media (max-width: 768px) {
    .custom-audio-player {
        flex-wrap: wrap;
    }
    
    .audio-volume-control {
        width: 100%;
        justify-content: center;
    }
    
    .audio-speed-btn {
        order: -1;
    }
}
