.vde-video-is-open { overflow: hidden; }

.vde-video-modal {
  position: fixed;
  inset: 0;
  z-index: 999999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.vde-video-modal.is-open { display: flex; }

.vde-video-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(2, 11, 24, .92);
}

.vde-video-modal__dialog {
  position: relative;
  z-index: 1;
  width: min(1180px, 94vw, calc(88vh * 16 / 9));
  max-height: 94vh;
  background: #000;
  box-shadow: 0 20px 70px rgba(0, 0, 0, .48);
}

.vde-video-modal__header {
  min-height: 58px;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 9px 10px 9px 18px;
  background: #071d3e;
  color: #fff;
}

.vde-video-modal__title {
  font: 600 16px/1.2 Arial, sans-serif;
  margin-right: auto;
}

.vde-video-modal__back,
.vde-video-modal__close {
  border: 0;
  cursor: pointer;
  font-family: Arial, sans-serif;
}

.vde-video-modal__back {
  min-height: 40px;
  padding: 0 17px;
  background: #fff;
  color: #071d3e;
  font-size: 14px;
  font-weight: 700;
}
.vde-video-modal__back:hover,
.vde-video-modal__back:focus-visible {
  outline: 3px solid rgba(255,255,255,.35);
  outline-offset: 2px;
}

.vde-video-modal__close {
  width: 40px;
  height: 40px;
  padding: 0;
  background: transparent;
  color: #fff;
  font-size: 30px;
  line-height: 1;
}
.vde-video-modal__close:hover,
.vde-video-modal__close:focus-visible {
  background: rgba(255,255,255,.12);
  outline: 2px solid #fff;
  outline-offset: -2px;
}

.vde-video-modal__ratio {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
  overflow: hidden;
}
.vde-video-modal__ratio iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.vde-video-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5em;
  text-decoration: none;
}
.vde-video-button__icon { font-size: .9em; }

@media (max-width: 640px) {
  .vde-video-modal { padding: 10px; }
  .vde-video-modal__dialog { width: 100%; }
  .vde-video-modal__header {
    min-height: 52px;
    padding: 7px;
  }
  .vde-video-modal__title { display: none; }
  .vde-video-modal__back {
    flex: 1;
    min-height: 42px;
    font-size: 14px;
  }
  .vde-video-modal__close {
    width: 42px;
    height: 42px;
  }
}

.vde-video-modal__ended {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 24px;
  text-align: center;
  background: rgba(2, 11, 24, .94);
  color: #fff;
  font-family: Arial, sans-serif;
}
.vde-video-modal__ended[hidden] { display: none; }
.vde-video-modal__ended-title {
  font-size: clamp(22px, 3vw, 34px);
  line-height: 1.15;
  font-weight: 700;
}
.vde-video-modal__ended-text {
  font-size: clamp(15px, 2vw, 18px);
  line-height: 1.4;
}
.vde-video-modal__ended-button {
  min-height: 46px;
  margin-top: 4px;
  padding: 0 22px;
  border: 0;
  background: #fff;
  color: #071d3e;
  font: 700 15px/1.2 Arial, sans-serif;
  cursor: pointer;
}
.vde-video-modal__ended-button:hover,
.vde-video-modal__ended-button:focus-visible {
  outline: 3px solid rgba(255,255,255,.35);
  outline-offset: 3px;
}
