.compare { --split: 50%; position: relative; aspect-ratio: 1919 / 1079; overflow: hidden; border-radius: 22px; border: 1px solid var(--border); isolation: isolate; touch-action: pan-y; user-select: none; cursor: ew-resize; }
.compare-image { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; max-width: none; pointer-events: none; }
.compare-before { clip-path: inset(0 calc(100% - var(--split)) 0 0); }
.compare-label { position: absolute; bottom: 20px; padding: 8px 14px; border-radius: 10px; background: rgba(11,11,14,.85); color: #fff; font-size: 13px; font-weight: 600; pointer-events: none; }
.compare-label-before { left: 20px; }
.compare-label-after { right: 20px; }
.compare-divider { position: absolute; left: var(--split); top: 0; bottom: 0; width: 2px; background: var(--accent); transform: translateX(-50%); pointer-events: none; }
.compare-handle { position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%); display: flex; align-items: center; justify-content: center; width: 46px; height: 46px; border-radius: 50%; background: var(--accent); color: #fff; box-shadow: 0 4px 18px #0006; }
.compare-handle .i { width: 17px; height: 20px; }
.compare-handle .i:last-child { transform: rotate(180deg); }
.compare-range { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; }
.compare:focus-within { outline: 3px solid var(--accent); outline-offset: 5px; }
@media (max-width: 600px) {
  .compare { border-radius: 14px; }
  .compare-label { bottom: 10px; padding: 5px 8px; font-size: 10px; }
  .compare-label-before { left: 10px; }
  .compare-label-after { right: 10px; }
  .compare-handle { width: 40px; height: 40px; }
}
