/* Compact Audio Player — style.css */

.cap-wrapper {
    display: flex;
    flex-direction: column;
    background-color: #ffffff;
    padding: 16px 20px 0 20px;
    box-sizing: border-box;
    width: 100%;
    position: relative;
}

.cap-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.cap-title {
    font-family: 'Courier New', Courier, monospace;
    font-size: 15px;
    color: #111111;
    letter-spacing: 0.03em;
}

.cap-time {
    font-family: 'Courier New', Courier, monospace;
    font-size: 14px;
    color: #0d1fcc;
    letter-spacing: 0.04em;
    white-space: nowrap;
}

.cap-bottom {
    display: flex;
    flex-direction: column;
    width: 100%;
}

.cap-btn {
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    margin-bottom: 12px;
    line-height: 1;
}

.cap-btn i {
    font-size: 18px;
    color: #000000;
    display: block;
}

.cap-btn svg {
    width: 18px;
    height: 18px;
    fill: #000000;
    display: block;
}

.cap-btn:focus {
    outline: none;
}

/* Progress track — default (not bleed) */
.cap-progress-track {
    width: 100%;
    height: 10px;
    background-color: transparent;
    cursor: pointer;
    position: relative;
    box-sizing: border-box;
}

/* Edge-to-edge bleed variant */
.cap-progress-track.cap-bleed {
    /* Pull left/right to match wrapper padding (20px default).
       JS sets exact value via CSS custom prop after measuring padding. */
    width: calc(100% + var(--cap-bleed, 40px));
    margin-left: calc(-1 * var(--cap-bleed-left, 20px));
}

.cap-progress-fill {
    height: 100%;
    width: 0%;
    background-color: #e878b8;
    pointer-events: none;
    transition: width 0.1s linear;
}
