:root {
  --gold: #f5b82e;
  --gold-soft: rgba(245, 184, 46, 0.6);
  --ink: #000;
  --glass: rgba(0, 0, 0, 0.55);
  --gutter: 16px;
}

*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html,
body {
  height: 100%;
  background: var(--ink);
  overflow: hidden;
}

/* Palco em tela cheia */
.stage {
  position: fixed;
  inset: 0;
  overflow: hidden;
  background: var(--ink);
}

/* Fundo: o próprio vídeo ampliado e desfocado, preenchendo as laterais */
.stage__ambient {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: blur(40px) brightness(0.45) saturate(1.3);
  transform: scale(1.15);
  pointer-events: none;
}

/* Vídeo principal: ocupa toda a altura, sem cortar o anúncio vertical */
.stage__video {
  position: absolute;
  top: 0;
  left: 50%;
  height: 100%;
  width: auto;
  aspect-ratio: 9 / 16;
  transform: translateX(-50%);
  object-fit: cover;
  box-shadow: 0 0 120px rgba(0, 0, 0, 0.85);
}

/* Celular em pé (ou tela mais estreita que 10:16): o vídeo cobre a tela inteira */
@media (max-aspect-ratio: 10 / 16) {
  .stage__ambient {
    display: none;
  }

  .stage__video {
    left: 0;
    width: 100%;
    aspect-ratio: auto;
    transform: none;
    box-shadow: none;
  }
}

/* Botão de som */
.sound {
  position: fixed;
  right: calc(var(--gutter) + env(safe-area-inset-right));
  bottom: calc(var(--gutter) + env(safe-area-inset-bottom));
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 48px;
  padding: 12px 18px 12px 14px;
  border: 1px solid var(--gold-soft);
  border-radius: 999px;
  background: var(--glass);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  color: var(--gold);
  font: 700 13px/1 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, padding 0.2s;
  animation: pulse 2.4s ease-out infinite;
}

.sound:hover {
  background: var(--gold);
  color: var(--ink);
}

.sound:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

.sound__icon {
  width: 22px;
  height: 22px;
  fill: currentColor;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.sound__icon--on {
  display: none;
}

/* Som ativado: mostra só o ícone */
.sound[aria-pressed="true"] {
  padding: 12px;
  animation: none;
}

.sound[aria-pressed="true"] .sound__label,
.sound[aria-pressed="true"] .sound__icon--off {
  display: none;
}

.sound[aria-pressed="true"] .sound__icon--on {
  display: block;
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(245, 184, 46, 0.55);
  }
  70%,
  100% {
    box-shadow: 0 0 0 14px rgba(245, 184, 46, 0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .sound {
    animation: none;
  }
}
