:root {
  color-scheme: dark;
  --bg: #0b0d12;
  --fg: #e8edf5;
  --muted: #8b95a7;
  --accent: #5b8cff;
  --player-max-height: min(90dvh, 1080px);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  height: 100%;
  background: var(--bg);
  color: var(--fg);
  font-family: "Segoe UI", system-ui, sans-serif;
}

.shell {
  min-height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 0.75rem;
}

.player-host {
  width: min(100%, calc(var(--player-max-height) * 16 / 9));
  max-width: 100%;
  background: #000;
}

.player-host video-player,
.player-host live-video-player,
.player-host audio-player,
.player-host video-skin,
.player-host video-minimal-skin,
.player-host live-video-skin,
.player-host live-video-minimal-skin,
.player-host audio-skin {
  display: block;
  width: 100%;
}

.player-host video-skin,
.player-host video-minimal-skin,
.player-host live-video-skin,
.player-host live-video-minimal-skin {
  aspect-ratio: 16 / 9;
  max-height: var(--player-max-height);
  min-height: 0;
}

.player-host hlsjs-video,
.player-host video,
.player-host video-minimal-skin video,
.player-host live-video-skin video,
.player-host live-video-minimal-skin video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #000;
}

.player-host.is-audio-only {
  width: min(100%, 48rem);
}

.player-host.is-audio-only video-skin,
.player-host.is-audio-only video-minimal-skin,
.player-host.is-audio-only live-video-skin,
.player-host.is-audio-only live-video-minimal-skin {
  aspect-ratio: auto;
  min-height: 72px;
  height: 72px;
  max-height: 72px;
}

.player-host media-captions-button,
.player-host media-captions-radio-group,
.player-host media-pip-button,
.player-host media-airplay-button,
.player-host media-cast-button,
.player-host media-playback-rate-button,
.player-host media-menu,
.player-host .media-button--captions,
.player-host .media-menu,
.player-host [part="captions"],
.player-host [part="settings"] {
  display: none !important;
}

.status {
  margin: 1.5rem;
  text-align: center;
  color: var(--muted);
}