/* BESTAND: styles/12-audio-player.css
 * Audiokaarten en waveformbediening.
 * Overzicht: HANDLEIDING.md → Vormgeving; laadvolgorde: index.html.
 */
/* ==========================================================================
   11. GEDEELDE AUDIOSPELER EN GOLFVORM
   ==========================================================================  */

/* 11A. Audiokaart en bediening ------------------------------------------------ */

.audio-card.compact {
    padding: 20px;
}

.audio-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
}

.audio-title {
    margin-top: 8px;
    font-size: clamp(1.6rem, 3vw, 2.25rem);
    line-height: 1;
    letter-spacing: -0.05em;
    font-weight: 600;
}

.audio-card.compact .audio-title {
    font-size: 1.25rem;
}

.audio-meta {
    font-size: 0.84rem;
    color: var(--faint);
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
}

.audio-description {
    margin-top: 14px;
    color: var(--muted);
    line-height: 1.8;
}

.audio-player-shell {
    display: grid;
    gap: 14px;
    margin-top: 18px;
}

.audio-native {
    display: none;
}

.audio-control-row {
    display: flex;
    align-items: center;
    gap: 12px;
}

.audio-control-left {
    display: flex;
    align-items: center;
    gap: 0;
    flex: 0 0 auto;
}

.audio-play-button {
    width: 48px;
    height: 48px;
    flex: 0 0 auto;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: #111111;
    color: white;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition:
        transform 0.2s ease,
        opacity 0.2s ease;
}

.audio-play-button:hover {
    transform: translateY(-1px);
}

.audio-play-button svg {
    width: 18px;
    height: 18px;
}

.audio-waveform-column {
    flex: 1 1 auto;
    min-width: 0;
}

.audio-waveform-shell {
    position: relative;
    margin: 0;
    height: 48px;
    border-radius: 1.2rem;
    border: 1px solid var(--line);
    background: linear-gradient(180deg, rgba(17, 17, 17, 0.02), rgba(17, 17, 17, 0.05));
    padding: 8px 14px;
    overflow: hidden;
    cursor: pointer;
    user-select: none;
    touch-action: none;
    display: flex;
    align-items: center;
}

.audio-card.compact .audio-waveform-shell {
    height: 42px;
    padding: 7px 12px;
}

.audio-waveform-shell.is-dragging {
    cursor: ew-resize;
}

.waveform-svg {
    display: block;
    width: 100%;
    height: 30px;
}

.audio-card.compact .waveform-svg {
    height: 24px;
}

.waveform-base-bar {
    fill: rgba(17, 17, 17, 0.16);
}

.waveform-progress-bar {
    fill: rgba(17, 17, 17, 0.72);
}

.waveform-playhead {
    fill: rgba(17, 17, 17, 0.92);
}

.waveform-hover-line {
    position: absolute;
    top: 8px;
    bottom: 8px;
    width: 2px;
    background: rgba(17, 17, 17, 0.22);
    pointer-events: none;
    transform: translateX(-1px);
}

.waveform-hover-bubble {
    position: absolute;
    top: 6px;
    transform: translateX(-50%);
    padding: 6px 8px;
    border-radius: 999px;
    background: rgba(17, 17, 17, 0.9);
    color: white;
    font-size: 0.72rem;
    letter-spacing: 0.08em;
    font-variant-numeric: tabular-nums;
    pointer-events: none;
    white-space: nowrap;
}

.waveform-meta-row {
    margin-top: 8px;
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: center;
    font-size: 0.84rem;
    color: var(--faint);
    padding: 0 2px;
}

.waveform-time {
    font-variant-numeric: tabular-nums;
    letter-spacing: 0.08em;
}

.waveform-status {
    text-transform: uppercase;
    letter-spacing: 0.18em;
    font-size: 0.72rem;
}

@media (min-width: 1081px) and (max-height: 980px) {
    .audio-card.compact {
        padding: 16px 18px;
    }
}

