/* video-controls.css — overlay controls for <video data-mlh-video>
 * Embassy Garden Ledger family. Hairline gold border on ink, IBM Plex Mono
 * 11px / 0.22em uppercase. Persistent, dimmed at idle, full on hover/focus.
 * Sam directive 2026-05-10: always-visible mute + play/pause.
 */

.mlh-vc {
  position: absolute;
  right: 16px;
  bottom: 16px;
  display: flex;
  flex-direction: row;
  gap: 10px;
  z-index: 5;
  pointer-events: none; /* let buttons handle clicks; bar itself is transparent */
}

.mlh-vc-btn {
  pointer-events: auto;
  appearance: none;
  -webkit-appearance: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 38px;
  padding: 0 14px;
  margin: 0;
  background: rgba(14, 14, 14, 0.78);
  color: #FAF8F4;
  border: 1px solid #D4AF37;
  border-radius: 0;
  font-family: 'IBM Plex Mono', ui-monospace, Menlo, monospace;
  font-size: 11px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  cursor: pointer;
  opacity: 0.55;
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  transition:
    opacity 220ms ease,
    background-color 200ms ease,
    color 200ms ease,
    border-color 200ms ease,
    transform 200ms ease;
}

.mlh-vc-btn:hover,
.mlh-vc-btn:focus-visible {
  opacity: 1;
  background: #D4AF37;
  color: #1A1A1A;
  border-color: #D4AF37;
  outline: none;
}

.mlh-vc-btn:focus-visible {
  box-shadow: 0 0 0 2px rgba(212, 175, 55, 0.35);
}

.mlh-vc-btn:active {
  transform: translateY(1px);
}

/* keep buttons readable on idle even if user hasn't hovered yet */
.mlh-vc:hover .mlh-vc-btn,
.mlh-vc:focus-within .mlh-vc-btn {
  opacity: 0.92;
}

.mlh-vc-icon {
  width: 14px;
  height: 14px;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.mlh-vc-label {
  display: inline-block;
  white-space: nowrap;
}

/* Compact on small screens — drop the labels, keep icons + tap target */
@media (max-width: 540px) {
  .mlh-vc {
    right: 12px;
    bottom: 12px;
    gap: 8px;
  }
  .mlh-vc-btn {
    height: 36px;
    width: 36px;
    padding: 0;
    justify-content: center;
  }
  .mlh-vc-label {
    /* visually hidden but available to assistive tech */
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
  }
  .mlh-vc-icon {
    width: 16px;
    height: 16px;
  }
}

/* Reduced motion — no transitions on the button surface */
@media (prefers-reduced-motion: reduce) {
  .mlh-vc-btn {
    transition: none;
  }
}
