/* Local waveform renderer, designed to visually match the clean ArrayPress controls. */
.mag-player .waveform-player {display:block; width:100%; min-width:0; padding:0; margin:0; background:transparent; border:0; box-shadow:none; color:#243145}
.mag-player .waveform-player * {box-sizing:border-box}
.mag-player .waveform-player-inner, .mag-player .waveform-body, .mag-player .waveform-surface, .mag-player .waveform-container {width:100%; min-width:0; margin:0; padding:0; border:0; background:transparent; box-shadow:none}
.mag-player .waveform-track {display:flex; flex-flow:row nowrap; align-items:center; gap:14px; min-width:0; width:100%}
.mag-player .waveform-btn {flex:none; appearance:none; display:grid; place-items:center; width:44px; height:44px; padding:11px; margin:0; border:0; border-radius:50%; background:var(--mag-accent); color:#fff; box-shadow:none; cursor:pointer; transition:transform .15s ease, filter .15s ease}
.mag-player .waveform-btn:hover {filter:brightness(.95); transform:translateY(-1px)}
.mag-player .waveform-btn:focus-visible {outline:3px solid var(--mag-accent); outline-offset:3px}
.mag-player .waveform-btn svg {display:block; width:20px; height:20px; fill:currentColor}
.mag-player .waveform-btn [hidden] {display:none !important}
.mag-player .waveform-surface {flex:1 1 0; cursor:pointer; touch-action:pan-y; outline-offset:3px; border-radius:3px; direction:ltr}
.mag-player .waveform-surface:focus-visible {outline:2px solid var(--mag-accent)}
.mag-player .waveform-container {height:68px}
.mag-player .waveform-container canvas {display:block; width:100%; height:68px; max-width:100%}
.mag-player .waveform-info {display:flex; justify-content:flex-end; direction:ltr; padding:0; padding-inline-start:58px; min-height:19px; background:transparent; border:0}
.mag-player .waveform-time {color:#8390a3; font:500 11px/19px system-ui,-apple-system,'Segoe UI',sans-serif; font-variant-numeric:tabular-nums; direction:ltr; white-space:nowrap}
.mag-player .waveform-player.is-playing .waveform-btn {filter:brightness(.97)}
@media (max-width:420px) {.mag-player .waveform-track {gap:9px} .mag-player .waveform-btn {width:40px;height:40px} .mag-player .waveform-info {padding-inline-start:49px}}
@media (prefers-reduced-motion:reduce) {.mag-player .waveform-btn {transition:none}}
