/* ── WaveSurfer.js v7 Standalone Audio Player ───────────────────────────── */

#view-player {
    overflow: visible !important;
}

.ws-audio-player {
    width: 100%;
    padding: 14px 16px 12px;
    box-sizing: border-box;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

body:not(.dark) .ws-audio-player {
    background: #f5f5f5;
    border: 1px solid #e0e0e0;
}

body.dark .ws-audio-player {
    background: #1c1c1c;
    border: 1px solid #333;
}

/* waveform container */
.ws-wave {
    width: 100%;
    cursor: pointer;
    border-radius: 4px;
    overflow: hidden;
}

/* controls row */
.ws-controls {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 8px;
}

/* play/pause button */
.ws-btn {
    background: none !important;
    border: none !important;
    cursor: pointer;
    font-size: 20px;
    padding: 2px 6px;
    line-height: 1;
    flex-shrink: 0;
}

body:not(.dark) .ws-btn { color: #333; }
body.dark .ws-btn { color: #e0e0e0; }

/* time display */
.ws-time {
    font-size: 12px;
    white-space: nowrap;
    flex-shrink: 0;
}

body:not(.dark) .ws-time { color: #555; }
body.dark .ws-time { color: #aaa; }

/* auto-next toggle group */
.ws-autonext {
    display: flex;
    align-items: center;
    gap: 5px;
    margin-left: auto;
    flex-shrink: 0;
}

.ws-autonext .vjs-autoplay-switch {
    display: flex;
    align-items: center;
}

.ws-autonext .vjs-autoplay-switch .label {
    margin: 0;
}

.ws-at-lbl {
    font-size: 12px;
    white-space: nowrap;
}

body:not(.dark) .ws-at-lbl { color: #555; }
body.dark .ws-at-lbl { color: #aaa; }

/* volume slider */
.ws-vol {
    -webkit-appearance: none;
    appearance: none;
    width: 160px;
    height: 4px;
    border-radius: 2px;
    background: rgba(150,150,150,0.3);
    outline: none;
    cursor: pointer;
    flex-shrink: 0;
    vertical-align: middle;
}

.ws-vol::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    cursor: pointer;
}

body:not(.dark) .ws-vol::-webkit-slider-thumb { background: #555; }
body.dark .ws-vol::-webkit-slider-thumb { background: #e0e0e0; }

.ws-vol::-moz-range-thumb {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
}

body:not(.dark) .ws-vol::-moz-range-thumb { background: #555; }
body.dark .ws-vol::-moz-range-thumb { background: #e0e0e0; }
