/* Vitacru Audio Player v2.2.7 — player.css */

.vcap-player {
    background: var(--vcap-bg, #ffffff);
    border-radius: 12px;
    border: none;
    box-shadow: 0 2px 12px rgba(0,0,0,.08), 0 1px 3px rgba(0,0,0,.05);
    padding: 14px 20px 12px;
    margin: 0 0 2rem;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    box-sizing: border-box;
    position: relative;
}
.vcap-player *, .vcap-player *::before, .vcap-player *::after { box-sizing: border-box; }

/* Label */
.vcap-label {
    font-size: 10px;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--vcap-meta, #999);
    margin-bottom: 8px;
    display: block;
}

/* Body = row: [play btn] [inner] */
.vcap-body {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* ── Bouton play ── */
.vcap-player .vcap-play-btn {
    all: unset !important;
    width: 32px !important;
    height: 32px !important;
    min-width: 32px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    flex-shrink: 0 !important;
    align-self: center !important;
    color: var(--vcap-play, #888888) !important;
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
    outline: none !important;
    transition: color .15s !important;
}
.vcap-player .vcap-play-btn:hover,
.vcap-player .vcap-play-btn:focus,
.vcap-player .vcap-play-btn:active {
    color: var(--vcap-accent, #ff5500) !important;
    background: transparent !important;
    outline: none !important;
    box-shadow: none !important;
}
.vcap-player .vcap-play-btn .vcap-icon-play {
    display: block !important;
    width: 22px !important;
    height: 22px !important;
    fill: currentColor !important;
    pointer-events: none !important;
}
.vcap-player .vcap-play-btn .vcap-icon-pause {
    display: none !important;
    width: 22px !important;
    height: 22px !important;
    fill: currentColor !important;
    pointer-events: none !important;
}

/* Inner = column: [title/artist] [waveform] [controls] */
.vcap-body-inner {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.vcap-track-info {
    display: flex;
    flex-direction: column;
    gap: 1px;
}
.vcap-title {
    font-size: 12px;
    font-weight: 600;
    color: var(--vcap-text, #333);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.3;
}
.vcap-artist {
    font-size: 11px;
    color: var(--vcap-meta, #999);
    line-height: 1.2;
}

/* Waveform */
.vcap-wave {
    width: 100%;
    height: 50px;
    min-height: 50px;
    cursor: pointer;
    line-height: 0;
    display: block;
    overflow: hidden;
}
.vcap-wave > wave,
.vcap-wave > div { overflow: hidden !important; }

/* Barre simple (waveform OFF) */
.vcap-bar {
    position: relative;
    height: 4px;
    background: var(--vcap-rest, #ddd);
    border-radius: 99px;
    cursor: pointer;
    margin: 6px 0;
}
.vcap-bar-played {
    position: absolute;
    left: 0; top: 0; height: 100%; width: 0%;
    background: var(--vcap-done, #ff5500);
    border-radius: 99px;
    pointer-events: none;
}
.vcap-bar-dot {
    position: absolute;
    top: 50%; transform: translate(-50%,-50%);
    width: 11px; height: 11px;
    border-radius: 50%;
    background: var(--vcap-accent, #ff5500);
    pointer-events: none; display: none;
}
.vcap-bar:hover .vcap-bar-dot { display: block; }

/* Contrôles */
.vcap-controls {
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 18px;
}
.vcap-spacer { flex: 1; }

/* Mute */
.vcap-player .vcap-mute-btn {
    all: unset;
    display: flex; align-items: center;
    cursor: pointer;
    color: var(--vcap-meta, #999);
    flex-shrink: 0;
}
.vcap-player .vcap-mute-btn:hover { color: var(--vcap-accent, #ff5500); }
.vcap-mute-btn svg { width: 15px; height: 15px; fill: currentColor; display: block; }

/* Volume */
.vcap-vol-slider {
    -webkit-appearance: none; appearance: none;
    width: 70px; height: 3px;
    border-radius: 3px;
    background: var(--vcap-vol-track, #dddddd);
    outline: none; cursor: pointer; flex-shrink: 0;
}
.vcap-vol-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 11px; height: 11px; border-radius: 50%;
    background: var(--vcap-vol-thumb, #ff5500); border: none; cursor: pointer;
}
.vcap-vol-slider::-moz-range-thumb {
    width: 11px; height: 11px; border-radius: 50%;
    background: var(--vcap-vol-thumb, #ff5500); border: none; cursor: pointer;
}

/* Timecode */
.vcap-time {
    font-size: 11px;
    font-variant-numeric: tabular-nums;
    color: var(--vcap-meta, #999);
    white-space: nowrap; flex-shrink: 0;
}

/* Speed */
.vcap-player .vcap-speed-btn {
    all: unset;
    font-size: 11px; font-weight: 700; font-family: inherit;
    color: var(--vcap-meta, #999);
    border: 1px solid currentColor; border-radius: 3px;
    padding: 2px 5px; cursor: pointer; line-height: 1.4;
    flex-shrink: 0; background: transparent;
}
.vcap-player .vcap-speed-btn:hover { color: var(--vcap-accent, #ff5500); }

/* Icon buttons */
.vcap-icon-btn {
    all: unset; display: flex; align-items: center;
    cursor: pointer; color: var(--vcap-meta, #999); flex-shrink: 0;
}
.vcap-icon-btn:hover { color: var(--vcap-accent, #ff5500); }
.vcap-icon-btn svg { width: 14px; height: 14px; fill: currentColor; display: block; }

.vcap-cover { display: none !important; }

/* Toast */
.vcap-toast {
    position: absolute; top: -34px; right: 12px;
    background: #222; color: #fff; font-size: 12px;
    padding: 5px 12px; border-radius: 4px; opacity: 0;
    pointer-events: none; transition: opacity .2s;
    white-space: nowrap; z-index: 99;
}
.vcap-toast-show { opacity: 1; }

/* Mobile */
@media (max-width: 600px) {
    .vcap-wave { height: 32px; min-height: 32px; }
    .vcap-vol-slider { width: 50px; }
    .vcap-player { padding: 12px 14px 10px; }
}

/* ══════════════════════════════════════
   MODE COMPACT (waveform OFF)
   ══════════════════════════════════════ */

/* Layout compact : tout sur une seule ligne */
.vcap-player .vcap-body--compact {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: 10px !important;
    flex-wrap: nowrap !important;
}

.vcap-player .vcap-compact-controls {
    flex: 1 !important;
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: 8px !important;
    min-width: 0 !important;
    flex-wrap: nowrap !important;
}

/* Bouton play rond plein */
.vcap-player .vcap-play-btn--round {
    all: unset !important;
    width: 44px !important;
    height: 44px !important;
    min-width: 44px !important;
    border-radius: 50% !important;
    background: var(--vcap-play, #888888) !important;
    color: #fff !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    flex-shrink: 0 !important;
    transition: background .15s, transform .1s !important;
    box-sizing: border-box !important;
    border: none !important;
    padding: 0 !important;
}
.vcap-player .vcap-play-btn--round:hover {
    background: var(--vcap-accent, #ff5500) !important;
    transform: scale(1.05) !important;
}
.vcap-player .vcap-play-btn--round svg {
    width: 20px !important;
    height: 20px !important;
    min-width: 20px !important;
    fill: #fff !important;
    display: block !important;
    flex-shrink: 0 !important;
}
.vcap-player .vcap-play-btn--round .vcap-icon-pause {
    display: none !important;
}

/* Boutons ±10s — reset complet pour neutraliser le thème */
.vcap-player .vcap-skip-btn {
    all: unset !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    flex-shrink: 0 !important;
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
    opacity: 0.75;
    transition: opacity .15s !important;
}
.vcap-player .vcap-skip-btn:hover { opacity: 1 !important; }
.vcap-player .vcap-skip-btn:hover { color: var(--vcap-done, #cc3300) !important; }

/* Barre de progression */
.vcap-player .vcap-body--compact .vcap-bar {
    flex: 1 !important;
    min-width: 40px !important;
    margin: 0 !important;
    align-self: center !important;
}

/* Timecode */
.vcap-player .vcap-body--compact .vcap-time {
    white-space: nowrap !important;
    flex-shrink: 0 !important;
}

/* Speed */
.vcap-player .vcap-body--compact .vcap-speed-btn {
    flex-shrink: 0 !important;
}

/* Mute + volume */
.vcap-player .vcap-body--compact .vcap-mute-btn { flex-shrink: 0 !important; }
.vcap-player .vcap-body--compact .vcap-vol-slider { width: 55px !important; }

@media (max-width: 480px) {
    .vcap-player .vcap-body--compact .vcap-vol-slider { display: none !important; }
    .vcap-player .vcap-play-btn--round { width: 38px !important; height: 38px !important; min-width: 38px !important; }
}
