.video-player {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  padding: 24px 16px;
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  transition: opacity .35s cubic-bezier(.2, .75, .25, 1), visibility .35s;
}
.video-player.is-open {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
}
body.video-player-open { overflow: hidden; }
html.video-player-open .pin-spacer {
  visibility: hidden;
}
.video-player__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(17, 16, 15, .78);
  backdrop-filter: blur(8px);
}
.video-player__dialog {
  position: relative;
  z-index: 1;
  width: min(960px, 100%);
  max-height: min(92vh, 920px);
  display: flex;
  flex-direction: column;
  color: var(--white, #fffaf2);
  background: var(--ink, #11100f);
  border: 1px solid rgba(255, 250, 242, .12);
  box-shadow: 0 28px 80px rgba(0, 0, 0, .45);
  overflow: hidden;
  transform: translateY(16px) scale(.98);
  transition: transform .4s cubic-bezier(.2, .75, .25, 1);
}
.video-player.is-open .video-player__dialog { transform: none; }
.video-player__close {
  position: absolute;
  z-index: 4;
  top: 14px;
  right: 14px;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid rgba(255, 250, 242, .28);
  border-radius: 50%;
  background: rgba(17, 16, 15, .72);
  cursor: pointer;
  transition: color .25s, background .25s, border-color .25s;
}
.video-player__close span {
  position: relative;
  display: block;
  width: 16px;
  height: 16px;
  margin: auto;
}
.video-player__close span::before,
.video-player__close span::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  width: 100%;
  height: 1px;
  background: #fff;
}
.video-player__close span::before { transform: rotate(45deg); }
.video-player__close span::after { transform: rotate(-45deg); }
.video-player__close:hover {
  color: var(--ink, #11100f);
  background: var(--red, #f3bf3d);
  border-color: var(--red, #f3bf3d);
}
.video-player__frame-wrap {
  position: relative;
  flex: 1 1 auto;
  min-height: 0;
  overflow: hidden;
  background: #0c0b0a;
}
.video-player__frame-wrap::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  box-shadow: inset 0 0 0 1px rgba(255, 250, 242, .08);
  z-index: 1;
}
.video-player__frame-wrap.is-loading::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 2;
  width: 36px;
  height: 36px;
  margin: -18px 0 0 -18px;
  border: 2px solid rgba(255, 250, 242, .18);
  border-top-color: var(--sun, #d68d02);
  border-radius: 50%;
  animation: video-player-spin .7s linear infinite;
  pointer-events: none;
}
@keyframes video-player-spin {
  to { transform: rotate(360deg); }
}
.video-player__frame {
  position: relative;
  width: min(100%, calc((92vh - 13.5rem) * 16 / 9));
  max-width: 100%;
  max-height: calc(92vh - 13.5rem);
  margin: 0 auto;
  aspect-ratio: 16 / 9;
  background: #0c0b0a;
}
.video-player__frame-wrap.is-short {
  display: flex;
  justify-content: center;
  align-items: center;
}
.video-player__frame-wrap.is-short .video-player__frame {
  flex: 0 0 auto;
  width: min(100%, 360px);
  max-width: 360px;
  margin: 0;
  aspect-ratio: 9 / 16;
  max-height: min(52vh, 640px);
}
.video-player.is-short .video-player__dialog {
  width: min(400px, 100%);
}
.video-player.is-short .video-player__frame > div,
.video-player.is-short .video-player__frame > div iframe {
  width: 100% !important;
  height: 100% !important;
  max-width: 100%;
  left: 0 !important;
  right: 0 !important;
}
.video-player__frame iframe,
.video-player__frame > div,
.video-player__frame > div iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
.video-player.is-short .video-player__copy {
  padding: 14px 16px 16px;
  row-gap: 6px;
  column-gap: 12px;
}
.video-player.is-short .video-player__title {
  font-size: clamp(12px, 1.2vw, 16px);
  line-height: 1.28;
  letter-spacing: -.02em;
}
.video-player.is-short .video-player__eyebrow {
  margin-bottom: 0;
  font-size: 10px;
  letter-spacing: .14em;
}
.video-player.is-short .video-player__sub {
  font-size: 11px;
}
.video-player.is-short .video-player__actions .button {
  min-height: 36px;
  padding-inline: 14px;
  font-size: 11px;
}
.video-player__copy {
  flex: 0 0 auto;
  position: relative;
  z-index: 2;
  padding: 22px 24px 26px;
  border-top: 1px solid rgba(255, 250, 242, .1);
  background:
    linear-gradient(135deg, rgba(255, 200, 10, .08) 0%, transparent 42%),
    var(--ink, #11100f);
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 8px;
}
.video-player__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-self: flex-start;
  justify-content: flex-start;
  margin: 0 0 4px;
}
.video-player__eyebrow {
  margin-bottom: 0;
  color: var(--sun, #d68d02);
}
.video-player__eyebrow::before { background: var(--sun, #d68d02); }
.video-player__title {
  width: 100%;
  max-width: none;
  margin: 0;
  font-family: var(--display, "Playfair Display", Georgia, serif);
  font-size: clamp(16px, 2vw, 22px);
  font-weight: 600;
  letter-spacing: -.04em;
  line-height: 1.12;
  text-wrap: pretty;
}
.video-player__sub {
  width: 100%;
  margin: 0;
  color: rgba(255, 250, 242, .62);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.video-player__actions .button-dark {
  border-color: rgba(255, 250, 242, .35);
}
.video-player__actions .button-dark:hover {
  color: var(--ink, #11100f);
  background: var(--red, #f3bf3d);
  border-color: var(--red, #f3bf3d);
}
@media (max-width: 760px) {
  .video-player { padding: 12px; }
  .video-player__dialog { max-height: 94vh; }
  .video-player__frame {
    max-height: calc(94vh - 12rem);
    width: min(100%, calc((94vh - 12rem) * 16 / 9));
  }
  .video-player__copy {
    padding: 18px 16px 20px;
  }
  .video-player__actions {
    margin-bottom: 2px;
  }
  .video-player__close { top: 10px; right: 10px; }
}
