/* css/custom-audio-player.css */

/* ── WRAPPER: MATCH CONTENT WIDTH ─────────────────────────────── */

/* Make the player container a normal block so it fills its parent content area */
.cap-audio-player {
    display: block;
    width: 100%;
    max-width: 100%;
    margin: 1em 0;
    box-sizing: border-box;
}

/* ── CONTROLS: FLEX LAYOUT ───────────────────────────────────── */
.cap-audio-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    background: #000;
    color: #fff;
    padding: 5px;
    border-radius: 0px;
    box-sizing: border-box;
}

/* ── BUTTONS ─────────────────────────────────────────────────── */
.cap-play-pause-btn,
.cap-download-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0 8px;
    font-size: 12px;
    color: #fff;
    margin: 0 5px;
    text-transform: uppercase;
    text-decoration: none;
    box-shadow: none;
}

/* Prevent default focus/active styling */
.cap-play-pause-btn:focus,
.cap-play-pause-btn:active,
.cap-download-btn:focus,
.cap-download-btn:active {
    outline: none;
    background: none !important;
}

/* Hover effect: white text on green background */
.cap-play-pause-btn:hover,
.cap-download-btn:hover {
    background-color: #4caf50;
    color: #fff;
}

/* Bold the “BAIXAR” link */
.cap-download-btn {
    font-weight: bold;
}

/* ── TIMECODES ───────────────────────────────────────────────── */
.cap-current-time,
.cap-duration {
    min-width: 40px;
    font-size: 12px;
    color: #fff;
    margin: 0 5px;
    text-align: center;
}

/* ── PROGRESS BAR ─────────────────────────────────────────────── */
.cap-progress-container {
    flex: 1;
    height: 4px;
    background: #333;
    position: relative;
    margin: 0 5px;
    box-sizing: border-box;
}

.cap-progress-bar {
    width: 0; /* JS will update */
    height: 100%;
    background: #1e90ff;
    position: absolute;
    top: 0;
    left: 0;
}

/* ── HIDE NATIVE AUDIO UI ─────────────────────────────────────── */
.cap-audio-element {
    display: none;
}

/* ── MOBILE ADJUSTMENTS (≤600px) ─────────────────────────────── */
@media (max-width: 600px) {
    /* Wrapper stays full width of content column */
    .cap-audio-player {
        width: 100%;
        margin: 1em 0;
    }
    /* Controls wrap if needed */
    .cap-audio-controls {
        flex-wrap: wrap;
    }
    /* Add spacing if buttons wrap */
    .cap-play-pause-btn,
    .cap-download-btn {
        margin-top: 5px;
    }
}