.nbs-ba-shell,
.nbs-ba-shell * {
    box-sizing: border-box;
}

.nbs-ba-shell {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    padding: 0;
}

.nbs-ba {
    --nbs-accent: #e5232d;
    --nbs-surface: #070707;
    --nbs-text: #ffffff;
    --nbs-position: 50%;
    --nbs-aspect: 16/9;

    position: relative;
    display: block;
    width: 100%;
    max-width: 100%;
    aspect-ratio: var(--nbs-aspect);
    overflow: hidden;
    isolation: isolate;
    border-radius: 18px;
    background: var(--nbs-surface);
    border: 1px solid rgba(255, 255, 255, 0.10);
    box-shadow: 0 18px 55px rgba(0, 0, 0, 0.36), 0 0 0 1px rgba(229, 35, 45, 0.05) inset;
    -webkit-tap-highlight-color: transparent;
    user-select: none;
    -webkit-user-select: none;
    touch-action: pan-y;
}

/* Fallback for old browsers without aspect-ratio. */
@supports not (aspect-ratio: 1 / 1) {
    .nbs-ba {
        height: 0;
        padding-top: 56.25%;
    }
}

.nbs-ba::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 5;
    pointer-events: none;
    border-radius: inherit;
    box-shadow: inset 0 0 45px rgba(0, 0, 0, 0.20);
}

.nbs-ba__image {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
}

.nbs-ba__image img {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
    object-fit: cover;
    object-position: center;
    pointer-events: none;
    user-select: none;
    -webkit-user-drag: none;
}

.nbs-ba__image--after {
    z-index: 1;
}

.nbs-ba__image--before {
    z-index: 2;
    clip-path: inset(0 calc(100% - var(--nbs-position)) 0 0);
    -webkit-clip-path: inset(0 calc(100% - var(--nbs-position)) 0 0);
    will-change: clip-path;
}

.nbs-ba__divider {
    position: absolute;
    z-index: 7;
    top: 0;
    bottom: 0;
    left: var(--nbs-position);
    width: 3px;
    transform: translateX(-1.5px);
    background: var(--nbs-accent);
    box-shadow: 0 0 14px rgba(229, 35, 45, 0.68);
    pointer-events: none;
    will-change: left;
}

.nbs-ba__handle {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 58px;
    height: 58px;
    transform: translate(-50%, -50%);
    display: grid;
    place-items: center;
    border-radius: 999px;
    background: #080808;
    color: #ffffff;
    border: 2px solid var(--nbs-accent);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.50), 0 0 24px rgba(229, 35, 45, 0.34);
}

.nbs-ba__handle svg {
    display: block;
    width: 34px;
    height: 20px;
}

.nbs-ba__label {
    position: absolute;
    z-index: 8;
    top: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 60px;
    padding: 9px 12px;
    border-radius: 999px;
    background: rgba(5, 5, 5, 0.84);
    border: 1px solid rgba(229, 35, 45, 0.76);
    color: var(--nbs-text) !important;
    font-family: inherit;
    font-size: 12px;
    line-height: 1;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    white-space: nowrap;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.28);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    pointer-events: none;
}

.nbs-ba__label--before {
    left: 18px;
}

.nbs-ba__label--after {
    right: 18px;
}

/* The native range control covers the whole slider. It stays invisible, but it makes
   mouse/touch dragging and keyboard controls reliable in all modern browsers. */
.nbs-ba__range {
    position: absolute !important;
    z-index: 20 !important;
    inset: 0 !important;
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    min-width: 0 !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    opacity: 0.001 !important;
    cursor: ew-resize;
    appearance: none;
    -webkit-appearance: none;
    background: transparent !important;
    touch-action: pan-y;
}

.nbs-ba__range::-webkit-slider-runnable-track {
    width: 100%;
    height: 100%;
    background: transparent;
    border: 0;
}

.nbs-ba__range::-webkit-slider-thumb {
    width: 44px;
    height: 100%;
    appearance: none;
    -webkit-appearance: none;
    background: transparent;
    border: 0;
    cursor: ew-resize;
}

.nbs-ba__range::-moz-range-track {
    width: 100%;
    height: 100%;
    background: transparent;
    border: 0;
}

.nbs-ba__range::-moz-range-thumb {
    width: 44px;
    height: 100%;
    background: transparent;
    border: 0;
    cursor: ew-resize;
}

.nbs-ba:focus-within .nbs-ba__handle {
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.50), 0 0 0 4px rgba(229, 35, 45, 0.20), 0 0 24px rgba(229, 35, 45, 0.38);
}

.nbs-ba-missing {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid #e5232d;
    border-radius: 10px;
    background: #101010;
    color: #ffffff;
    font: 600 14px/1.45 inherit;
}

@media (max-width: 767px) {
    .nbs-ba {
        border-radius: 14px;
    }

    .nbs-ba__handle {
        width: 50px;
        height: 50px;
    }

    .nbs-ba__handle svg {
        width: 30px;
    }

    .nbs-ba__label {
        top: 12px;
        min-width: 52px;
        max-width: calc(50% - 28px);
        overflow: hidden;
        text-overflow: ellipsis;
        padding: 8px 10px;
        font-size: 10px;
    }

    .nbs-ba__label--before {
        left: 12px;
    }

    .nbs-ba__label--after {
        right: 12px;
    }
}

@media (max-width: 420px) {
    .nbs-ba__handle {
        width: 46px;
        height: 46px;
    }

    .nbs-ba__label {
        top: 10px;
        padding: 7px 9px;
        font-size: 9px;
    }

    .nbs-ba__label--before {
        left: 10px;
    }

    .nbs-ba__label--after {
        right: 10px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .nbs-ba,
    .nbs-ba * {
        animation: none !important;
        transition: none !important;
        scroll-behavior: auto !important;
    }
}
