.dc-video-modal-ready {
  position: relative;
  overflow: hidden;
}

.dc-video-modal-inline {
  pointer-events: none;
}

.dc-video-modal-iframe {
  pointer-events: none;
}

.dc-video-play-overlay {
  position: absolute;
  inset: 0;
  z-index: 8;
  display: grid;
  place-items: center;
  width: 100%;
  min-height: 100%;
  cursor: pointer;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.03), rgba(0, 0, 0, 0.24));
  border: 0;
  transition: background 180ms ease, opacity 180ms ease;
}

.dc-video-play-overlay:hover,
.dc-video-play-overlay:focus-visible {
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.06), rgba(0, 0, 0, 0.32));
}

.dc-video-play-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 72px;
  height: 72px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  color: #fff;
  background: rgba(0, 0, 0, 0.58);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  transform: translateZ(0);
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.dc-video-play-overlay:hover .dc-video-play-button,
.dc-video-play-overlay:focus-visible .dc-video-play-button {
  transform: scale(1.04);
  border-color: rgba(64, 147, 154, 0.8);
  background: rgba(0, 0, 0, 0.7);
}

.dc-video-play-icon {
  position: relative;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  background: #40939a;
  flex: 0 0 auto;
}

.dc-video-play-icon::before {
  content: "";
  width: 0;
  height: 0;
  margin-left: 3px;
  border-top: 10px solid transparent;
  border-bottom: 10px solid transparent;
  border-left: 16px solid #fff;
}

.dc-video-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(0, 0, 0, 0.86);
  animation: dcVideoFadeIn 160ms ease both;
}

.dc-video-modal-dialog {
  position: relative;
  width: min(1040px, 94vw);
  max-height: 90vh;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 18px;
  background: #050505;
  box-shadow: 0 24px 90px rgba(0, 0, 0, 0.6);
  overflow: hidden;
}

.dc-video-modal-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
}

.dc-video-modal-frame video,
.dc-video-modal-frame iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  object-fit: contain;
  background: #000;
}

.dc-video-modal-error::after {
  content: attr(data-error);
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 24px;
  color: #fff;
  background: #050505;
  font: 600 14px/1.4 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  text-align: center;
}

.dc-video-modal-link {
  position: absolute;
  left: 50%;
  bottom: 28px;
  z-index: 2;
  transform: translateX(-50%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 18px;
  border-radius: 999px;
  color: #fff;
  background: #40939a;
  font: 700 13px/1 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  text-decoration: none;
}

.dc-video-modal-link:hover,
.dc-video-modal-link:focus-visible {
  background: #32787e;
}

.dc-video-modal-close {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 999px;
  color: #fff;
  background: rgba(0, 0, 0, 0.7);
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
  transition: background 160ms ease, border-color 160ms ease;
}

.dc-video-modal-close:hover,
.dc-video-modal-close:focus-visible {
  background: rgba(64, 147, 154, 0.9);
  border-color: rgba(255, 255, 255, 0.45);
}

body.dc-video-modal-open {
  overflow: hidden;
}

@keyframes dcVideoFadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@media (max-width: 640px) {
  .dc-video-modal-backdrop {
    padding: 12px;
  }

  .dc-video-play-button {
    width: 62px;
    height: 62px;
  }

  .dc-video-play-icon {
    width: 38px;
    height: 38px;
  }

  .dc-video-modal-dialog {
    width: 96vw;
    border-radius: 14px;
  }
}
