/* ============================================================
   Digitiger Video Comparison — Minimal Splitter Widget
   ============================================================ */

.vc-container {
    position: relative;
    width: 100%;
    height: 100%;
    background: #0E0E28;
    overflow: hidden;
    border-radius: 16px;
    -webkit-user-select: none;
    user-select: none;
}

/* Both layers stack on top of each other, filling the container */
.vc-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}
.vc-layer-right { z-index: 1; }
.vc-layer-left  { z-index: 2; clip-path: inset(0 50% 0 0); -webkit-clip-path: inset(0 50% 0 0); }

/* Videos fill their layer, object-fit keeps aspect ratio */
.vc-video {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #0E0E28;
}

/* Splitter line */
.vc-splitter {
    position: absolute;
    top: 0;
    left: 50%;
    width: 4px;
    height: 100%;
    background: rgba(123, 47, 247, 0.5);
    cursor: ew-resize;
    z-index: 10;
    -webkit-transform: translateX(-50%);
    transform: translateX(-50%);
    -webkit-transition: background 0.15s;
    transition: background 0.15s;
    -webkit-tap-highlight-color: transparent;
}
.vc-splitter:hover,
.vc-splitter:active {
    background: rgba(123, 47, 247, 0.9);
}

/* Splitter grab handle */
.vc-splitter-handle {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 36px;
    height: 36px;
    -webkit-transform: translate(-50%, -50%);
    transform: translate(-50%, -50%);
    border-radius: 50%;
    background: rgba(123, 47, 247, 0.85);
    border: 2px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.4);
}
.vc-splitter-handle::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    -webkit-transform: translate(-50%, -50%);
    transform: translate(-50%, -50%);
    width: 12px;
    height: 12px;
    border-left: 2px solid rgba(255, 255, 255, 0.7);
    border-right: 2px solid rgba(255, 255, 255, 0.7);
}

/* Touch devices: larger hit area */
@media (hover: none) and (pointer: coarse) {
    .vc-splitter {
        width: 24px;
        background: transparent;
    }
    .vc-splitter::after {
        content: '';
        position: absolute;
        top: 0;
        left: 50%;
        width: 4px;
        height: 100%;
        -webkit-transform: translateX(-50%);
        transform: translateX(-50%);
        background: rgba(123, 47, 247, 0.5);
    }
    .vc-splitter:active::after {
        background: rgba(123, 47, 247, 0.9);
    }
    .vc-splitter-handle {
        width: 44px;
        height: 44px;
    }
}
