:root {
  color-scheme: dark;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  background: #10120f;
  color: #e8eadf;
}

* {
  box-sizing: border-box;
}

body {
  min-height: 100vh;
  margin: 0;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 80% 0%, #29301d 0, transparent 36rem),
    #10120f;
}

main {
  width: min(100% - 2rem, 70rem);
  padding: 3rem 0;
}

.eyebrow {
  margin: 0 0 0.6rem;
  color: #a6c86c;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  font-family: Georgia, serif;
  font-size: clamp(2rem, 6vw, 4.5rem);
  font-weight: 500;
  letter-spacing: -0.04em;
}

#status {
  color: #afb4a7;
}

#status[data-state="playing"] {
  color: #b9dc80;
}

#status[data-state="error"] {
  color: #ff8c78;
}

.player-shell {
  position: relative;
  overflow: hidden;
  margin-top: 2rem;
  border: 1px solid #4e5641;
  border-radius: 0.4rem;
  background: #050604;
  box-shadow: 0 2rem 7rem rgb(0 0 0 / 45%);
}

video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #050604;
}

.live-badge {
  position: absolute;
  top: 1rem;
  left: 1rem;
  padding: 0.45rem 0.6rem;
  border-radius: 0.2rem;
  background: rgb(12 15 10 / 82%);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  pointer-events: none;
}

.live-badge span {
  display: inline-block;
  width: 0.5rem;
  height: 0.5rem;
  margin-right: 0.35rem;
  border-radius: 50%;
  background: #d95f4d;
}

.metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  margin: 1px 0 0;
  background: #34392e;
}

.metrics div {
  padding: 1rem;
  background: #171a15;
}

dt {
  color: #7f8875;
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

dd {
  margin: 0.45rem 0 0;
  color: #d8dfc8;
}

.hint {
  color: #7f8875;
  font-size: 0.8rem;
}

@media (max-width: 42rem) {
  .metrics {
    grid-template-columns: 1fr;
  }
}
