html, body {
  margin: 0;
  height: 100%;
  background: #000;
  color: #fff;
  font: 14px/1.4 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  overflow: hidden;
}

[hidden] { display: none !important; }

.player {
  position: relative;
  width: 100%;
  height: 100%;
  background: #000;
}

video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  background: #000;
}

.overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 16px;
}

.offline {
  background: #111;
}
.offline p { margin: 0; font-size: 20px; }
.offline .sub { margin-top: 8px; font-size: 14px; color: #aaa; }
.player:not(.is-offline) .offline { display: none; }
.player.is-offline .controls,
.player.is-offline .unmute { display: none; }

.tap {
  border: 0;
  background: rgba(0, 0, 0, 0.5);
  color: #fff;
  font-size: 20px;
  cursor: pointer;
}

.unmute {
  position: absolute;
  top: 12px;
  left: 12px;
  border: 0;
  border-radius: 4px;
  padding: 8px 12px;
  background: rgba(0, 0, 0, 0.7);
  color: #fff;
  font-size: 14px;
  cursor: pointer;
}

.controls {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.75));
  opacity: 0;
  transition: opacity 0.2s;
}
.player:hover .controls,
.player:focus-within .controls,
.player.show-controls .controls { opacity: 1; }

.controls button,
.controls select {
  border: 0;
  border-radius: 4px;
  padding: 4px 8px;
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  font-size: 14px;
  cursor: pointer;
}
.controls select option { color: #000; }
.controls input[type="range"] { width: 80px; }
.live-badge { color: #ff4d4d; font-weight: 600; font-size: 12px; }
.spacer { flex: 1; }

.debug {
  position: absolute;
  top: 8px;
  right: 8px;
  margin: 0;
  padding: 8px;
  background: rgba(0, 0, 0, 0.75);
  color: #9f9;
  font: 12px/1.4 ui-monospace, Consolas, monospace;
  pointer-events: none;
  white-space: pre;
}

@media (max-width: 480px) {
  .controls input[type="range"] { display: none; }
}
