.controls {
  position: absolute;
  bottom: 20px;
  left: 20px;
  z-index: 5;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  user-select: none;
}

.row {
  display: flex;
  align-items: center;
  gap: 3px;
}

.btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  padding: 0;
  background: var(--bg-tertiary);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  cursor: pointer;
  transition: background 120ms, color 120ms;
  opacity: 0.7;
}

:global([data-theme="light"]) .btn {
  background: rgba(0, 0, 0, 0.1);
  border-color: rgba(0, 0, 0, 0.18);
  color: rgba(0, 0, 0, 0.55);
}

.btn:hover {
  background: var(--bg-hover);
  color: var(--text-primary);
  opacity: 1;
}

.btn:active {
  background: var(--accent-primary);
  color: white;
  opacity: 1;
}

.btnActive {
  background: rgba(34, 197, 94, 0.15);
  border-color: rgba(34, 197, 94, 0.4);
  color: rgba(34, 197, 94, 0.9);
  opacity: 1;
}

.btnActive:hover {
  background: rgba(34, 197, 94, 0.25);
  color: rgba(34, 197, 94, 1);
}

.centerBtn {
  composes: btn;
}

.spacer {
  width: 28px;
  height: 28px;
}
