.afl-compare {
  position: relative;
  width: 100%;
  max-width: 1000px;
  margin: 30px auto;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 14px;
  user-select: none;
  touch-action: none;
  background: #f3f3f3;
}

.afl-compare__base,
.afl-compare__overlay,
.afl-compare__top {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.afl-compare__base,
.afl-compare__top {
  object-fit: cover;
  display: block;
}

.afl-compare__overlay {
  z-index: 2;
  clip-path: inset(0 50% 0 0);
}

.afl-compare__divider {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 2px;
  background: #fff;
  transform: translateX(-50%);
  z-index: 3;
  box-shadow: 0 0 6px rgba(0,0,0,0.25);
}

.afl-compare__handle {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 54px;
  height: 54px;
  transform: translate(-50%, -50%);
  border: 0;
  border-radius: 50%;
  background: #fff;
  cursor: ew-resize;
  z-index: 4;
  box-shadow: 0 4px 12px rgba(0,0,0,0.25);
}

.afl-compare__handle::before,
.afl-compare__handle::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 10px;
  height: 10px;
  border-top: 2px solid #222;
  border-right: 2px solid #222;
}

.afl-compare__handle::before {
  left: 14px;
  transform: translateY(-50%) rotate(-135deg);
}

.afl-compare__handle::after {
  right: 14px;
  transform: translateY(-50%) rotate(45deg);
}

.afl-compare__label {
  position: absolute;
  top: 14px;
  z-index: 5;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(0,0,0,0.55);
  color: #fff;
  font: 600 14px/1 Arial, sans-serif;
}

.afl-compare__label--left {
  left: 14px;
}

.afl-compare__label--right {
  right: 14px;
}