:root {
  color-scheme: light;
  background: #fff;
  color: #111;
  font-family: system-ui, sans-serif;
}

body {
  margin: 0;
}

main {
  box-sizing: border-box;
  display: grid;
  min-height: 100vh;
  min-height: 100dvh;
  padding: 16px;
  place-items: center;
}

.player {
  display: grid;
  width: min(100%, 600px);
  min-width: 0;
  place-items: center;
}

.player > * {
  grid-area: 1 / 1;
}

.player > [hidden] {
  display: none;
}

video {
  display: block;
  width: 100%;
  max-height: calc(100vh - 32px);
  max-height: calc(100dvh - 32px);
  object-fit: contain;
}

button {
  z-index: 1;
  padding: 0.75rem 1.125rem;
  border: 1px solid #fff;
  border-radius: 0.5rem;
  background: #111;
  color: #fff;
  font: inherit;
  cursor: pointer;
}

button:focus-visible {
  outline: 2px solid #111;
  outline-offset: 3px;
}

[role="status"],
noscript {
  margin: 0;
  text-align: center;
}
