html, body {
  margin: 0;
  padding: 0;
  background: #000;
  color: #fff;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

.player {
  position: relative;
  width: 100%;
  aspect-ratio: 4096 / 832;
  background: #000;
  overflow: hidden;
}

.player video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.player.video-hidden video {
  visibility: hidden;
}

.overlay {
  position: absolute;
  box-sizing: border-box;
  pointer-events: none;
}

.overlay.is-hidden {
  display: none;
}

.overlay.is-full {
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  text-align: center;
  font-size: clamp(14px, 2vw, 22px);
  background: rgba(0, 0, 0, 0.85);
}

.overlay.is-full.is-dim {
  background: rgba(0, 0, 0, 0.5);
}

.overlay.is-badge {
  right: 8px;
  bottom: 8px;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 12px;
  background: rgba(0, 0, 0, 0.65);
}

/* Status page (/stream/status.html) */
body.status-page {
  padding: 16px;
}

.status-page table {
  border-collapse: collapse;
}

.status-page th,
.status-page td {
  padding: 6px 16px 6px 0;
  text-align: left;
  border-bottom: 1px solid #333;
}

.status-page th {
  font-weight: normal;
  color: #aaa;
}

.status-page .ok {
  color: #6c6;
}

.status-page .warn {
  color: #f90;
}

.status-page .updated {
  color: #888;
  font-size: 13px;
}
