.video-modal {
  position: fixed;
  z-index: 1000;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(18, 22, 48, .78);
}

.video-modal[hidden] {
  display: none;
}

.video-modal__dialog {
  width: min(860px, 100%);
  max-height: calc(100vh - 48px);
  overflow: auto;
  padding: clamp(18px, 3vw, 28px);
  border: 1px solid rgba(177, 140, 255, .72);
  background: linear-gradient(145deg, #20294b, #303b68);
  box-shadow: 0 0 0 1px rgba(127, 216, 240, .22), 0 20px 70px rgba(12, 16, 40, .62);
  color: #fff;
}

.video-modal__header,
.video-modal__actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.video-modal__eyebrow {
  margin: 0;
  color: #7fd8f0;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .16em;
}

.video-modal__close {
  appearance: none;
  min-height: 38px;
  padding: 8px 13px;
  border: 1px solid rgba(255, 255, 255, .72);
  background: rgba(255, 255, 255, .08);
  color: #fff;
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

.video-modal__close:hover,
.video-modal__close:focus-visible {
  border-color: #7fd8f0;
  background: rgba(127, 216, 240, .18);
}

.video-modal__title {
  margin: 14px 0 18px;
  font-size: clamp(19px, 3vw, 26px);
  line-height: 1.45;
}

.video-modal__frame {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: #121630;
}

.video-modal__frame iframe,
.video-modal__demo {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

.video-modal__demo {
  display: grid;
  place-items: center;
  align-content: center;
  gap: 16px;
  padding: 24px;
  background: radial-gradient(circle at 50% 40%, rgba(177, 140, 255, .65), transparent 28%), linear-gradient(135deg, #20294b, #192044 62%, #2f3e71);
  text-align: center;
}

.video-modal__demo-play {
  width: clamp(52px, 10vw, 76px);
  height: clamp(52px, 10vw, 76px);
  border: 2px solid #fff;
  border-radius: 50%;
  background: rgba(255, 255, 255, .12);
  box-shadow: 0 0 26px rgba(127, 216, 240, .8);
}

.video-modal__demo-play::after {
  display: block;
  width: 0;
  height: 0;
  margin: 27% 0 0 39%;
  border-block: 13px solid transparent;
  border-left: 20px solid #fff;
  content: "";
}

.video-modal__demo p {
  margin: 0;
  font-weight: 700;
}

.video-modal__actions {
  justify-content: flex-end;
  margin-top: 18px;
}

.video-modal__youtube {
  min-width: 13.75rem;
  padding: .7rem 1.2rem;
  border: 1px solid rgba(127, 216, 240, .8);
  background: rgba(32, 41, 75, .9);
  color: #fff;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
}

.song-card[data-video] .song-arrow::before,
.song-links a[data-video]::before {
  display: inline-block;
  margin-right: .45em;
  color: currentColor;
  content: "▶";
}

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

  .video-modal__dialog {
    max-height: calc(100vh - 24px);
    padding: 18px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .video-modal__dialog,
  .video-modal__close {
    transition: none;
  }
}
