/* ── Intelligent zoom overlay ─────────────────────────────────────────────── */

/* When active: cursor changes to grab, video overflows are clipped by the tile */
.zoom--active .screen-tile__video {
  cursor: grab;
  will-change: transform;
}

.zoom--grabbing .screen-tile__video {
  cursor: grabbing !important;
}

/* Zoom toolbar — hidden until the tile is zoomed in */
.zoom-toolbar {
  position: absolute;
  top: 8px;
  right: 8px;
  display: none;
  align-items: center;
  gap: 3px;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  padding: 4px;
  z-index: 10;
  pointer-events: auto;
}

.zoom--active .zoom-toolbar {
  display: flex;
}

/* Scale badge (e.g. "2×") */
.zoom-toolbar__scale {
  font-size: 11px;
  font-weight: 600;
  font-family: var(--font-mono, "IBM Plex Mono", monospace);
  color: rgba(255, 255, 255, 0.6);
  min-width: 24px;
  text-align: center;
  padding: 0 4px;
}

/* Divider between scale and buttons */
.zoom-toolbar__divider {
  width: 1px;
  height: 16px;
  background: rgba(255, 255, 255, 0.12);
  flex-shrink: 0;
}

/* Individual toolbar buttons */
.zoom-toolbar__btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 6px;
  border: none;
  background: transparent;
  color: rgba(255, 255, 255, 0.55);
  font-size: 11px;
  font-weight: 700;
  font-family: var(--font-mono, "IBM Plex Mono", monospace);
  cursor: pointer;
  transition: background 0.1s, color 0.1s;
  letter-spacing: 0;
  line-height: 1;
}

.zoom-toolbar__btn:hover {
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.9);
}

.zoom-toolbar__btn--active {
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
}

/* Reset button — slightly distinct */
.zoom-toolbar__btn--reset {
  color: rgba(255, 255, 255, 0.4);
}

.zoom-toolbar__btn--reset:hover {
  color: rgba(255, 161, 120, 0.9);
  background: rgba(255, 100, 60, 0.15);
}

/* Hint that appears below the tile when not zoomed yet, on hover */
.zoom-hint {
  position: absolute;
  bottom: 44px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 11px;
  color: rgba(255, 255, 255, 0.35);
  font-family: var(--font-family, "IBM Plex Sans", sans-serif);
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.2s;
}

.screen-tile:hover .zoom-hint {
  opacity: 1;
}

.zoom--active .zoom-hint {
  display: none;
}
