/* Howler Audio Player Styles */
.howler-audio-wrapper {
    margin-bottom: 20px;
}

.howler-audio-wrapper figcaption {
    color: #808080;
    font-size: 14px;
    margin-top: 8px;
    padding: 0 12px;
    text-align: center;
}

.howler-audio-player {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    border-radius: 12px;
    padding: 16px 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.audio-player-controls {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* Buttons */
.audio-btn {
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    transition: all 0.2s ease;
}

.audio-btn:hover {
    background: rgba(255, 255, 255, 0.1);
}

.audio-btn:active {
    transform: scale(0.95);
}

.audio-play-btn {
    background: #C4161C;
    width: 44px;
    height: 44px;
    flex-shrink: 0;
}

.audio-play-btn:hover {
    background: #d91e24;
}

.audio-play-btn svg {
    width: 20px;
    height: 20px;
}

/* Time display */
.audio-time {
    font-family: 'Roboto Mono', monospace;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.8);
    min-width: 42px;
    text-align: center;
    flex-shrink: 0;
}

/* Progress bar */
.audio-progress-container {
    flex: 1;
    position: relative;
    height: 6px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 3px;
    cursor: pointer;
}

.audio-progress {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 100%;
    background: transparent;
    cursor: pointer;
    position: absolute;
    z-index: 2;
    margin: 0;
}

.audio-progress::-webkit-slider-runnable-track {
    height: 6px;
    background: transparent;
    border-radius: 3px;
}

.audio-progress::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 14px;
    height: 14px;
    background: #fff;
    border-radius: 50%;
    cursor: pointer;
    margin-top: -4px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
    transition: transform 0.15s ease;
}

.audio-progress::-webkit-slider-thumb:hover {
    transform: scale(1.2);
}

.audio-progress::-moz-range-track {
    height: 6px;
    background: transparent;
    border-radius: 3px;
}

.audio-progress::-moz-range-thumb {
    width: 14px;
    height: 14px;
    background: #fff;
    border-radius: 50%;
    cursor: pointer;
    border: none;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

.audio-progress-bar {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    background: linear-gradient(90deg, #C4161C, #ff4d4d);
    border-radius: 3px;
    pointer-events: none;
    z-index: 1;
    width: 0%;
}

/* Volume */
.audio-volume-container {
    display: flex;
    align-items: center;
    gap: 6px;
}

.audio-mute-btn {
    padding: 6px;
}

.audio-mute-btn svg {
    width: 18px;
    height: 18px;
}

.audio-volume {
    -webkit-appearance: none;
    appearance: none;
    width: 70px;
    height: 4px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 2px;
    cursor: pointer;
}

.audio-volume::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 12px;
    height: 12px;
    background: #fff;
    border-radius: 50%;
    cursor: pointer;
}

.audio-volume::-moz-range-thumb {
    width: 12px;
    height: 12px;
    background: #fff;
    border-radius: 50%;
    cursor: pointer;
    border: none;
}

/* Speed button */
.audio-speed-btn {
    font-size: 12px;
    font-weight: 600;
    min-width: 36px;
    padding: 6px 8px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.1);
}

.audio-speed-btn:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* Responsive */
@media screen and (max-width: 768px) {
    .howler-audio-player {
        padding: 12px 16px;
    }

    .audio-player-controls {
        flex-wrap: wrap;
        gap: 8px;
    }

    .audio-play-btn {
        width: 40px;
        height: 40px;
    }

    .audio-progress-container {
        order: 4;
        flex-basis: 100%;
        margin-top: 4px;
    }

    .audio-volume-container {
        display: none;
    }

    .audio-time {
        font-size: 11px;
        min-width: 38px;
    }

    .audio-speed-btn {
        font-size: 11px;
        min-width: 32px;
        padding: 4px 6px;
    }
}

@media screen and (max-width: 480px) {
    .howler-audio-player {
        padding: 10px 12px;
        border-radius: 8px;
    }

    .audio-play-btn {
        width: 36px;
        height: 36px;
    }

    .audio-play-btn svg {
        width: 16px;
        height: 16px;
    }
}

/* Light theme variant */
.howler-audio-player.light-theme {
    background: linear-gradient(135deg, #f5f5f5 0%, #e8e8e8 100%);
}

.howler-audio-player.light-theme .audio-btn {
    color: #333;
}

.howler-audio-player.light-theme .audio-btn:hover {
    background: rgba(0, 0, 0, 0.05);
}

.howler-audio-player.light-theme .audio-time {
    color: rgba(0, 0, 0, 0.7);
}

.howler-audio-player.light-theme .audio-progress-container {
    background: rgba(0, 0, 0, 0.1);
}

.howler-audio-player.light-theme .audio-progress::-webkit-slider-thumb {
    background: #C4161C;
}

.howler-audio-player.light-theme .audio-progress::-moz-range-thumb {
    background: #C4161C;
}

.howler-audio-player.light-theme .audio-volume {
    background: rgba(0, 0, 0, 0.15);
}

.howler-audio-player.light-theme .audio-volume::-webkit-slider-thumb {
    background: #C4161C;
}

.howler-audio-player.light-theme .audio-volume::-moz-range-thumb {
    background: #C4161C;
}

.howler-audio-player.light-theme .audio-speed-btn {
    background: rgba(0, 0, 0, 0.05);
}

.howler-audio-player.light-theme .audio-speed-btn:hover {
    background: rgba(0, 0, 0, 0.1);
}
