.seagull-yt-lock {
  overflow: hidden;
}

.seagull-yt-modal {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(16px, 4vw, 48px);
  background: rgba(4, 12, 20, 0.88);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

.seagull-yt-modal.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.seagull-yt-modal__frame {
  position: relative;
  width: min(1120px, 100%);
  max-height: calc(100dvh - 96px);
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #000;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 10px;
  box-shadow: 0 32px 84px rgba(0, 0, 0, 0.44);
}

.seagull-yt-modal__frame iframe {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  background: #000;
}

.seagull-yt-modal__close {
  position: absolute;
  top: clamp(12px, 3vw, 32px);
  right: clamp(12px, 3vw, 32px);
  z-index: 1;
  min-height: 40px;
  padding: 10px 15px;
  color: #fff;
  font: 700 13px/1 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  cursor: pointer;
  background: rgba(13, 34, 54, 0.86);
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: 999px;
}

.seagull-yt-modal__close:hover,
.seagull-yt-modal__close:focus-visible {
  background: #1684c6;
  outline: none;
}

@media (max-width: 640px) {
  .seagull-yt-modal {
    padding: 14px;
  }

  .seagull-yt-modal__frame {
    border-radius: 8px;
  }
}
