/* Before/after photo comparison slider — red/black theme. */

.photo-compare-btn {
  margin-left: auto;
  background: #1c1c20;
  border: 1px solid #2c2c31;
  color: #fff;
  border-radius: 10px;
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
  white-space: nowrap;
}

.photo-compare-btn:active { border-color: var(--red, #e11d2e); }

.photo-timeline-head {
  display: flex;
  align-items: center;
  gap: 10px;
}

.cmp-overlay {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: #0b0b0d;
  display: flex;
  flex-direction: column;
  padding: calc(12px + env(safe-area-inset-top)) 14px calc(18px + env(safe-area-inset-bottom));
  box-sizing: border-box;
  overflow-y: auto;
}

.cmp-top {
  display: flex;
  align-items: center;
  gap: 12px;
}

.cmp-top .eyebrow-red { margin: 0; }

.cmp-close {
  background: #1c1c20;
  border: 1px solid #2c2c31;
  color: #fff;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  font-size: 16px;
  cursor: pointer;
}

.cmp-pickers {
  display: flex;
  gap: 10px;
  margin: 14px 0;
}

.cmp-pick { flex: 1; display: flex; flex-direction: column; gap: 6px; }

.cmp-pick span {
  color: var(--muted, #9a9aa3);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.8px;
}

.cmp-pick select {
  background: #141417;
  border: 1px solid #2c2c31;
  border-radius: 10px;
  color: #fff;
  font-size: 14px;
  padding: 10px;
  width: 100%;
}

.cmp-stage {
  position: relative;
  flex: 1;
  min-height: 46vh;
  background: #000;
  border: 1px solid #232327;
  border-radius: 14px;
  overflow: hidden;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
  cursor: ew-resize;
}

.cmp-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  pointer-events: none;
}

.cmp-handle {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 2px;
  background: var(--red, #e11d2e);
  transform: translateX(-50%);
  pointer-events: none;
}

.cmp-knob {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--red, #e11d2e);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.6);
  pointer-events: auto;
}

.cmp-tag {
  position: absolute;
  top: 10px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  background: rgba(0, 0, 0, 0.65);
  color: #fff;
  padding: 5px 9px;
  border-radius: 8px;
  pointer-events: none;
  max-width: 42%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cmp-tag-a { left: 10px; }
.cmp-tag-b { right: 10px; }

.cmp-hint {
  text-align: center;
  color: var(--muted, #9a9aa3);
  font-size: 13px;
  margin: 12px 0 0;
}
