:root {
  --line: #262c34;
  --muted: #8b96a5;
  --accent: #3d8bfd;
  color-scheme: dark;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  height: 100%;
  background: #000;
  color: #e7ecf2;
  font: 15px/1.5 system-ui, -apple-system, "Segoe UI", sans-serif;
}

#stage {
  position: relative;
  height: 100%;
  display: grid;
  place-items: center;
}

#video {
  width: 100%;
  height: 100%;
  background: #000;
}

.badge {
  position: absolute;
  top: 12px;
  left: 14px;
  padding: 4px 10px;
  border-radius: 999px;
  background: #000c;
  border: 1px solid var(--line);
  font-size: 12px;
  letter-spacing: .02em;
  color: var(--muted);
  pointer-events: none;
  transition: opacity .4s;
}

.badge[data-state="playing"] { opacity: 0; }
.badge[data-state="loading"] { color: var(--accent); }

.cast-btn {
  position: absolute;
  top: 10px;
  right: 12px;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: #000a;
  color: #e7ecf2;
  cursor: pointer;
  opacity: .6;
  transition: opacity .2s;
}

.cast-btn:hover { opacity: 1; }
.cast-btn[hidden] { display: none; }

.badge[data-state="error"] {
  color: #ff8f8f;
  border-color: #5a2b2b;
  opacity: 1;
}
