/* Video Comparison Slider CSS */
.video-compare-container {
    position: relative;
    width: 100%;
    /* Aspect ratio placeholder, adjusted via JS or fixed if known */
    overflow: hidden;
    border-radius: 8px;
    background: #000;
    margin-bottom: 20px;
}

.video-compare-container video {
    width: 100%;
    height: auto;
    display: block;
}

.video-wrapper {
    width: 100%;
    height: 100%;
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 50%;
    /* Initial split position */
    height: 100%;
    overflow: hidden;
    border-right: 2px solid #fff;
    z-index: 2;
}

.video-overlay video {
    /* Important: width needs to be set to the full container width 
       to ensure the overlay video isn't squashed, but clipped */
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* Or contain, depending on requirement */
    /* We need to counteract the container width being 50% */
    /* However, simpler approach with JS is usually setting width to container's width manually */
    max-width: none;
}

/* Slider Handle */
/* Slider Handle */
.video-compare-slider {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 20px;
    transform: translateX(-50%);
    z-index: 10;
    cursor: ew-resize;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slider-handle {
    width: 20px;
    height: 20px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    /* Ensure icon scales down */
}

.slider-handle::after {
    content: '\f337';
    /* FontAwesome arrows-alt-h or similar */
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    color: #333;
}

.compare-label {
    position: absolute;
    top: 10px;
    padding: 3px 8px;
    background: rgba(0, 0, 0, 0.3);
    color: white;
    font-size: 10px;
    border-radius: 4px;
    pointer-events: none;
    z-index: 5;
    font-weight: bold;
}

.label-left {
    left: 10px;
}

.label-right {
    right: 10px;
}