:root {
  color-scheme: dark;
  --bg: #080a0f;
  --panel: #10141c;
  --text: #f3f6fb;
  --muted: #a7b0bf;
  --line: #263041;
  --accent: #76c89d;
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
}

body {
  margin: 0;
  overflow: hidden;
  color: var(--text);
  background: var(--bg);
  font-family:
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
}

.app {
  display: grid;
  min-height: 100dvh;
  place-items: center;
  background: var(--bg);
}

.player {
  width: 100vw;
  height: 100dvh;
  background: var(--bg);
}

.player[hidden],
.status[hidden] {
  display: none !important;
}

iframe {
  width: 100%;
  height: 100%;
  border: 0;
  background: var(--bg);
}

.status {
  width: min(100% - 32px, 520px);
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.34);
}

.status p:first-child {
  margin: 0 0 12px;
  color: var(--accent);
  font-family:
    "SFMono-Regular",
    Consolas,
    "Liberation Mono",
    monospace;
  font-size: 0.88rem;
  font-weight: 800;
  letter-spacing: 0;
}

.status h1 {
  margin: 0 0 12px;
  font-size: clamp(2rem, 8vw, 3.5rem);
  line-height: 1;
  letter-spacing: 0;
}

.status p:last-child {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.loading-track {
  position: relative;
  height: 3px;
  margin-top: 22px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
}

.loading-track span {
  position: absolute;
  inset: 0 auto 0 0;
  width: 42%;
  border-radius: inherit;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  animation: loading-pass 1.15s ease-in-out infinite;
}

.status:not(.is-loading) .loading-track {
  display: none;
}

@keyframes loading-pass {
  0% {
    transform: translateX(-110%);
  }

  100% {
    transform: translateX(260%);
  }
}

@media (prefers-reduced-motion: reduce) {
  .loading-track span {
    animation: none;
    width: 100%;
    opacity: 0.75;
  }
}

@media (max-width: 640px) {
  .status {
    padding: 22px;
  }
}
