.bai-wrap {
    position: relative;
    width: 100%;
    height: 420px;
    overflow: hidden;
    cursor: col-resize;
    user-select: none;
    -webkit-user-select: none;
    border-radius: 12px;
    touch-action: pan-y;
}

.bai-img {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    object-fit: cover;
    display: block;
    pointer-events: none;
}

.bai-img-before {
    clip-path: inset(0 50% 0 0);
    -webkit-clip-path: inset(0 50% 0 0);
}

/* Handle */
.bai-handle {
    position: absolute;
    top: 0; bottom: 0;
    left: 50%;
    width: 2px;
    transform: translateX(-50%);
    pointer-events: none;
    z-index: 10;
}

.bai-handle-line {
    position: absolute;
    top: 0; bottom: 0; left: 0;
    width: 2px;
    background: #ffffff;
    box-shadow: 0 0 6px rgba(0,0,0,0.3);
}

.bai-handle-btn {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 40px; height: 40px;
    background: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 12px rgba(0,0,0,0.25);
}

.bai-arrow {
    width: 20px; height: 20px;
    stroke: #1a2a3a;
}

/* Labels */
.bai-label {
    position: absolute;
    z-index: 20;
    padding: 5px 12px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    border-radius: 100px;
    pointer-events: none;
    white-space: nowrap;
    font-family: inherit;
}

.bai-pos-top-left     { top: 14px; left: 14px; }
.bai-pos-top-right    { top: 14px; right: 14px; }
.bai-pos-bottom-left  { bottom: 14px; left: 14px; }
.bai-pos-bottom-right { bottom: 14px; right: 14px; }
.bai-pos-center-left  { top: 50%; left: 14px; transform: translateY(-50%); }
.bai-pos-center-right { top: 50%; right: 14px; transform: translateY(-50%); }

.bai-label-before { background: #fff0f0; color: #a80000; }
.bai-label-after  { background: #e6f7f7; color: #3a9e9e; }

/* Drag active state */
.bai-wrap.bai-dragging { cursor: col-resize; }
.bai-wrap.bai-dragging .bai-handle-btn { transform: translate(-50%, -50%) scale(1.1); }
