:root {
  color-scheme: dark;
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #050505;
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
  margin: 0;
}

body {
  min-height: 100svh;
  overflow: hidden;
  background: #050505;
}

body::before {
  content: "";
  position: fixed;
  inset: -48px;
  z-index: -2;
  background: url("poster.jpg") center / cover no-repeat;
  filter: blur(36px) brightness(0.35) saturate(0.8);
  transform: scale(1.08);
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background: radial-gradient(circle at 50% 35%, transparent 0, rgb(0 0 0 / 0.4) 70%);
}

.page {
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: 18px;
}

.player-shell {
  position: relative;
  width: min(100%, calc((100svh - 36px) * 9 / 16));
  aspect-ratio: 9 / 16;
  overflow: hidden;
  border: 1px solid rgb(255 255 255 / 0.12);
  border-radius: 24px;
  background: #000;
  box-shadow: 0 30px 90px rgb(0 0 0 / 0.68);
  isolation: isolate;
}

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

.play-button {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  width: 100%;
  border: 0;
  color: #fff;
  cursor: pointer;
  background: linear-gradient(180deg, transparent 45%, rgb(0 0 0 / 0.52));
  -webkit-tap-highlight-color: transparent;
  transition: opacity 180ms ease, visibility 180ms ease;
}

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

.play-icon {
  display: grid;
  place-items: center;
  width: 76px;
  height: 76px;
  border: 1px solid rgb(255 255 255 / 0.42);
  border-radius: 50%;
  background: rgb(0 0 0 / 0.52);
  box-shadow: 0 12px 36px rgb(0 0 0 / 0.42);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: transform 150ms ease, background 150ms ease;
}

.play-icon::before {
  content: "";
  width: 0;
  height: 0;
  margin-left: 6px;
  border-top: 12px solid transparent;
  border-bottom: 12px solid transparent;
  border-left: 19px solid #fff;
}

.play-button:hover .play-icon {
  transform: scale(1.06);
  background: rgb(0 0 0 / 0.7);
}

.play-label {
  padding: 8px 13px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.01em;
  background: rgb(0 0 0 / 0.5);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.duration {
  position: absolute;
  right: 12px;
  bottom: 12px;
  z-index: 3;
  padding: 5px 8px;
  border-radius: 7px;
  color: #fff;
  font-size: 12px;
  font-variant-numeric: tabular-nums;
  background: rgb(0 0 0 / 0.68);
  pointer-events: none;
  transition: opacity 180ms ease;
}

.is-playing .play-button,
.is-playing .duration {
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
}

@media (max-width: 560px) {
  .page {
    padding: 0;
  }

  .player-shell {
    width: 100%;
    height: 100svh;
    aspect-ratio: auto;
    border: 0;
    border-radius: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}
