/**
 * Кнопка play + всплывающее видео (аналог cms_video_popup)
 * Подключить: css/bvm-video-popup.css, js/bvm-video-popup.js
 */

.bvm-video-popup {
  display: inline-flex;
}

.bvm-video-popup__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100px;
  height: 100px;
  border: none;
  border-radius: 50%;
  background: var(--bvm-orange, #e85d04);
  color: #111;
  font-size: 38px;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 12px 32px rgba(232, 93, 4, 0.35);
  transition: transform 0.2s ease, filter 0.2s ease;
}

.bvm-video-popup__btn:hover {
  transform: scale(1.06);
  filter: brightness(1.05);
}

.bvm-video-popup__btn:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 3px;
}

.bvm-video-popup__btn-icon {
  display: block;
/*   margin-left: 3px; */
}

.bvm-video-popup-modal {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(0, 0, 0, 0.82);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.bvm-video-popup-modal.is-open {
  opacity: 1;
  visibility: visible;
}

.bvm-video-popup-modal__dialog {
  position: relative;
  width: min(960px, 100%);
  background: #111;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.45);
}

.bvm-video-popup-modal__close {
  position: absolute;
  top: -44px;
  right: 0;
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}

.bvm-video-popup-modal__video {
  display: block;
  width: 100%;
  max-height: calc(100vh - 96px);
  background: #000;
}

.bvm-video-popup-modal__iframe {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 0;
  background: #000;
}
