.ba-slider {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-radius: 10px;
  background: #1a2229;
  user-select: none;
  touch-action: none;
  cursor: ew-resize;
}
.ba-slider img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}
.ba-img-after {
  z-index: 1;
}
.ba-img-before {
  z-index: 2;
}
.ba-label {
  position: absolute;
  top: 12px;
  z-index: 4;
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  pointer-events: none;
}
.ba-label.before {
  left: 12px;
}
.ba-label.after {
  right: 12px;
}
.ba-handle {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  z-index: 5;
  width: 44px;
  margin-left: -22px;
  padding: 0;
  border: none;
  background: transparent;
  cursor: ew-resize;
}
.ba-handle::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 3px;
  margin-left: -1.5px;
  background: #fff;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.35);
}
.ba-handle::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 36px;
  height: 36px;
  margin: -18px 0 0 -18px;
  border-radius: 50%;
  border: 2px solid #fff;
  background: rgba(9, 131, 194, 0.95);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.35);
}
.ba-slider.is-dragging .ba-handle::after {
  transform: scale(1.06);
}
@media (max-width: 640px) {
  .ba-handle {
    width: 52px;
    margin-left: -26px;
  }
}
