.video-player {
  display: flex;
  flex-direction: column;
  gap: 24px;
  width: 100%;
  min-width: 0;
  align-self: stretch;
}

.video-player--constrained {
  max-width: 800px;
  margin-inline: auto;
}

.video-player__frame {
  display: grid;
  position: relative;
  width: 100%;
  min-width: 0;
  overflow: hidden;
}

.video-player--full-width .video-player__frame {
  aspect-ratio: 580 / 297;
}

.video-player--constrained .video-player__frame {
  aspect-ratio: 800 / 476;
}

/* Stack poster shell, play control, and embed in one cell. */
.video-player__frame > .video-player__poster,
.video-player__frame > .video-player__play,
.video-player__frame > .video-player__embed {
  grid-area: 1 / 1;
}

.video-player__poster {
  z-index: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.video-player__poster--empty {
  background: var(--color-gray-200);
}

.video-player__poster-image {
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
}

.video-player__play {
  z-index: 1;
  justify-self: center;
  align-self: center;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  line-height: 0;
  text-decoration: none;
  color: inherit;
}

.video-player__play-icon {
  display: block;
  width: auto;
  height: auto;
  max-width: none;
}

.video-player__play--cover {
  justify-self: stretch;
  align-self: stretch;
  width: 100%;
  height: 100%;
}

.video-player__play:focus-visible {
  outline: 2px solid var(--color-dark-coral);
  outline-offset: 2px;
}

.video-player--placeholder .video-player__play:not([href]) {
  cursor: default;
}

.video-player__embed {
  z-index: 2;
  width: 100%;
  height: 100%;
  background: var(--color-charcol, #1d2d3a);
}

.video-player--playing .video-player__poster,
.video-player--playing .video-player__play {
  visibility: hidden;
  pointer-events: none;
}

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

@media (min-width: 768px) {
  .video-player__poster-image,
  .video-player__embed iframe,
  .video-player__embed video {
    object-fit: cover;
  }
}

@media (max-width: 767px) {
  .video-player--full-width .video-player__frame {
    aspect-ratio: 329 / 211;
  }
}

.video-player__copy {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.video-player__title {
  margin: 0;
  color: var(--color-text-primary);
}

.video-player__cta {
  align-self: flex-start;
}

.video-player__cta .btn__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-right: 0;
}
