body.home-video-popup-open {
  overflow: hidden;
}

.home-video-popup {
  width: min(420px, calc(100vw - 32px), calc(56.25dvh - 18px));
  max-width: none;
  max-height: calc(100dvh - 32px);
  margin: auto;
  padding: 0;
  overflow: visible;
  border: 0;
  background: transparent;
}

.home-video-popup::backdrop {
  background: rgba(10, 14, 15, 0.78);
  backdrop-filter: blur(5px);
}

.home-video-popup__frame {
  position: relative;
  width: 100%;
  max-height: calc(100dvh - 32px);
  aspect-ratio: 9 / 16;
  overflow: hidden;
  border-radius: 8px;
  background: #101415;
  box-shadow: 0 24px 72px rgba(0, 0, 0, 0.32);
}

.home-video-popup__video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #101415;
}

.home-video-popup__close {
  position: absolute;
  z-index: 2;
  top: 10px;
  right: 10px;
  display: grid;
  width: 40px;
  height: 40px;
  padding: 0;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 50%;
  background: rgba(12, 16, 17, 0.76);
  color: #fff;
  font: 400 30px/1 Arial, sans-serif;
  cursor: pointer;
  transition: background-color 160ms ease, transform 160ms ease;
}

.home-video-popup__close:hover,
.home-video-popup__close:focus-visible {
  background: rgba(12, 16, 17, 0.94);
}

.home-video-popup__close:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
}

.home-video-popup__close:active {
  transform: scale(0.96);
}

@media (max-width: 520px) {
  .home-video-popup {
    width: min(420px, calc(100vw - 16px), calc(56.25dvh - 9px));
    max-height: calc(100dvh - 16px);
  }

  .home-video-popup__frame {
    max-height: calc(100dvh - 16px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .home-video-popup__close {
    transition: none;
  }
}
