.ba-wrapper {
    margin-top: 2rem;
    border-top: 1px solid rgba(250, 204, 21, 0.2);
    padding-top: 2rem;
}

.ba-heading {
    font-size: 1rem;
    font-weight: 700;
    color: #facc15;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    margin-bottom: 1rem;
}

/* Technika padding-bottom — niezawodna wysokość 16:9 */
.ba-outer {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 */
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.5);
    background: #0f172a;
}

.ba-container {
    position: absolute;
    inset: 0;
    cursor: col-resize;
    user-select: none;
    -webkit-user-select: none;
}

/* Oba zdjęcia wypełniają cały kontener */
.ba-after,
.ba-before {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    pointer-events: none;
    -webkit-user-drag: none;
}

/* "Przed" — lewa połowa widoczna przez clip-path */
.ba-before {
    clip-path: inset(0 50% 0 0);
}

/* Pionowa linia podziału */
.ba-divider {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 2px;
    background: #facc15;
    transform: translateX(-50%);
    pointer-events: none;
    z-index: 10;
}

/* Uchwyt do przeciągania */
.ba-handle {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 44px;
    height: 44px;
    border-radius: 999px;
    background: #facc15;
    border: 3px solid #fff;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 11;
    pointer-events: none;
}

.ba-handle svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: #111827;
    stroke-width: 2.5;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* Labele PRZED / PO */
.ba-label {
    position: absolute;
    top: 0.75rem;
    padding: 0.3rem 0.8rem;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    z-index: 12;
    pointer-events: none;
}

.ba-label-before {
    left: 0.75rem;
    background: rgba(15, 23, 42, 0.8);
    color: #e5e7eb;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.ba-label-after {
    right: 0.75rem;
    background: rgba(250, 204, 21, 0.9);
    color: #111827;
}
