/* ---- Voice Player Bar (mutualisé) ---- */
.voice-player-bar {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1060;
    height: 56px;
    background: #222;
    color: #fff;
    box-shadow: 0 -2px 12px rgba(0, 0, 0, 0.3);
    padding: 0 20px;
    align-items: center;
}

.voice-player-bar.show {
    display: flex;
}

.voice-player-bar .vp-title {
    font-size: 13px;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 240px;
    flex-shrink: 0;
}

.voice-player-bar .vp-controls {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.voice-player-bar .vp-controls img {
    width: 28px;
    height: 28px;
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0.15s;
    filter: invert(1);
}

.voice-player-bar .vp-controls img:hover {
    opacity: 1;
}

.voice-player-bar .vp-play-pause {
    width: 36px;
    height: 36px;
    opacity: 1;
    filter: invert(1);
    flex-shrink: 0;
    cursor: pointer;
}

.voice-player-bar .vp-progress-wrap {
    flex: 1;
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0 16px;
}

.voice-player-bar .vp-time {
    font-size: 11px;
    color: #aaa;
    min-width: 36px;
    text-align: center;
    flex-shrink: 0;
}

.voice-player-bar .vp-progress {
    flex: 1;
    min-width: 0;
    height: 4px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 2px;
    cursor: pointer;
    position: relative;
}

.voice-player-bar .vp-progress-fill {
    height: 100%;
    background: #fff;
    border-radius: 2px;
    width: 0%;
    transition: width 0.1s linear;
}

.voice-player-bar .vp-close {
    cursor: pointer;
    opacity: 0.5;
    transition: opacity 0.15s;
    margin-left: 12px;
    flex-shrink: 0;
    font-size: 18px;
    color: #aaa;
}

.voice-player-bar .vp-close:hover {
    opacity: 1;
}

/* Dark mode override (applied via body class or inline) */
body.dark-mode .voice-player-bar {
    background: #1a1a1a;
}
