/* ==========================================================================
   Hover-preview vertical volume bar
   Loaded after custom.min.css. Affects the .vpv hover-preview window that
   appears on card listings (NOT the watch page). The bar sits on the left
   edge of the preview, vertically centred, with a draggable fill and a
   mute/unmute icon at the bottom (Shorts-style).
   ========================================================================== */

.vpv-vol {
    position: absolute;
    left: 4px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    z-index: 6;
    cursor: pointer;
    user-select: none;
    -webkit-user-select: none;
    padding: 6px 4px;
    border-radius: 10px;
    background: rgba(0, 0, 0, 0.28);
    opacity: 0;
    transition: opacity .2s ease;
    touch-action: none;
}

/* Reveal the bar while the preview is visible (hovered) */
div.vpv:hover .vpv-vol,
.vpv-vol.vpv-vol-active {
    opacity: 1;
}

.vpv-vol-track {
    position: relative;
    width: 4px;
    height: 72px;
    background: rgba(255, 255, 255, 0.35);
    border-radius: 2px;
    overflow: hidden;
}

.vpv-vol-fill {
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 0%;
    background: #fff;
    border-radius: 2px;
}

.vpv-vol-icon {
    color: #fff;
    font-size: 14px;
    line-height: 1;
    opacity: 0.9;
    text-align: center;
    width: 16px;
}

/* Dark theme: keep the white-on-dark look (the preview is always dark) */
body.dark .vpv-vol {
    background: rgba(0, 0, 0, 0.34);
}
body.dark .vpv-vol-track {
    background: rgba(255, 255, 255, 0.32);
}
body.dark .vpv-vol-fill {
    background: #fff;
}
body.dark .vpv-vol-icon {
    color: #fff;
}
