:root {
  color-scheme: dark;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #000;
}

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

html,
body {
  width: 100%;
  height: 100%;
  margin: 0;
  overflow: hidden;
  background: #000;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

.stage {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 100dvh;
  overflow: hidden;
  background: #000;
  isolation: isolate;
}

.player,
.player iframe,
.fallback-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.fallback-video {
  object-fit: cover;
  background: #000;
}

.player.is-hidden,
.fallback-video[hidden] {
  display: none;
}

.player iframe {
  transform: scale(1.01);
}

.loading {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 18px;
  background: #050505;
  color: #d7d7d7;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: opacity 360ms ease, visibility 360ms ease;
}

.loading.is-hidden {
  opacity: 0;
  visibility: hidden;
}

.spinner {
  width: 34px;
  height: 34px;
  border: 2px solid #2b2b2b;
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 760ms linear infinite;
}

.sound-prompt,
.fullscreen {
  position: absolute;
  z-index: 4;
  border: 1px solid rgb(255 255 255 / 0.22);
  color: #fff;
  background: rgb(0 0 0 / 0.62);
  backdrop-filter: blur(14px);
  cursor: pointer;
  transition: opacity 180ms ease, background-color 180ms ease, transform 180ms ease;
}

.sound-prompt:hover,
.fullscreen:hover {
  background: rgb(20 20 20 / 0.82);
  transform: translateY(-1px);
}

.sound-prompt:focus-visible,
.fullscreen:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 3px;
}

.sound-prompt {
  left: 50%;
  bottom: max(26px, env(safe-area-inset-bottom));
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 44px;
  padding: 10px 17px;
  border-radius: 999px;
  font: inherit;
  font-size: 13px;
  transform: translateX(-50%);
}

.sound-prompt:hover {
  transform: translateX(-50%) translateY(-1px);
}

.sound-prompt.is-hidden {
  pointer-events: none;
  opacity: 0;
}

.sound-prompt svg,
.fullscreen svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.sound-prompt svg path:last-child,
.fullscreen svg {
  fill: none;
}

.fullscreen {
  top: max(18px, env(safe-area-inset-top));
  right: max(18px, env(safe-area-inset-right));
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  padding: 0;
  border-radius: 50%;
}

.noscript {
  position: absolute;
  inset: 50% auto auto 50%;
  z-index: 5;
  margin: 0;
  transform: translate(-50%, -50%);
  color: #fff;
}

.noscript a {
  color: inherit;
}

@keyframes spin {
  to { transform: rotate(1turn); }
}

@media (max-width: 520px) {
  .sound-prompt span {
    font-size: 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
