* {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  height: 100%;
}

body {
  margin: 0;
  overflow: hidden;
  background: #000;
}

main {
  width: 100%;
  height: 100%;
}

.video-page,
.video-frame,
.video-player,
video-skin {
  display: block;
  width: 100%;
  height: 100%;
}

video-player,
video-skin {
  --videojs-primary-color: #d4a574;
}

.back-button {
  position: fixed;
  z-index: 10;
  top: max(1rem, env(safe-area-inset-top));
  left: max(1rem, env(safe-area-inset-left));
  display: grid;
  width: 2.75rem;
  height: 2.75rem;
  place-items: center;
  color: #2c3e50;
  background: rgba(212, 165, 116, 0.94);
  border: 1px solid rgba(255, 244, 218, 0.72);
  border-radius: 50%;
  backdrop-filter: blur(8px);
  transition: background 160ms ease, transform 160ms ease;
}

.back-button:hover {
  background: #e4bb88;
  transform: translateX(-2px);
}

.back-button:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 3px;
}

.back-button svg {
  width: 1.6rem;
  height: 1.6rem;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

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