/* Fullscreen video presentation opened by the existing hero button. */
#video-modal {
  padding: 0;
  z-index: 2000;
  background: #000;
}
#video-modal .modal-backdrop {
  background: #000;
  backdrop-filter: none;
}
#video-modal .video-dialog {
  width: 100%;
  max-width: none;
  height: 100vh;
  height: 100dvh;
  max-height: none;
  margin: 0;
  padding: 0;
  overflow: hidden;
  border-radius: 0;
  box-shadow: none;
  background: #000;
  display: grid;
  place-items: center;
}
#video-modal #video-title {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
#video-modal .video-slot {
  width: 100%;
  height: 100%;
  min-height: 0;
  border-radius: 0;
  overflow: hidden;
  background: #000;
  display: grid;
  place-items: center;
}
#video-modal .video-slot video {
  display: block;
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  aspect-ratio: auto;
  object-fit: contain;
  border: 0;
  border-radius: 0;
  background: #000;
}
#video-modal .modal-close {
  position: absolute;
  z-index: 5;
  top: max(16px, env(safe-area-inset-top));
  right: max(16px, env(safe-area-inset-right));
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.45);
  background: rgba(12,12,12,.7);
  color: #fff;
  cursor: pointer;
  transition: background .2s ease, transform .2s ease;
}
#video-modal .modal-close:hover {
  background: rgba(55,55,55,.95);
  transform: scale(1.05);
}
#video-modal .modal-close:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 3px;
}
@media (max-width: 679px) {
  #video-modal .modal-close { width: 44px; height: 44px; }
}

/* Desktop/laptop: keep the 9:16 promo as a centered portrait player. */
@media (min-width: 680px) {
  #video-modal {
    padding: 24px;
    background: transparent;
  }
  #video-modal .modal-backdrop {
    background: rgba(3, 8, 16, .84);
    backdrop-filter: blur(8px);
  }
  #video-modal .video-dialog {
    width: min(420px, calc((100dvh - 72px) * .5625), calc(100vw - 48px));
    max-width: 420px;
    height: auto;
    max-height: calc(100dvh - 48px);
    aspect-ratio: 9 / 16;
    border-radius: 20px;
    box-shadow: 0 28px 90px rgba(0, 0, 0, .55);
  }
  #video-modal .video-slot {
    border-radius: inherit;
  }
  #video-modal .modal-close {
    top: 12px;
    right: 12px;
    width: 42px;
    height: 42px;
  }
}
