#pde .player {
  position: relative;
  aspect-ratio: 9 / 16;
  container-type: inline-size;
  isolation: isolate;
  background: #000;
}

#pde .pde-player__media {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
}

#pde .pde-player__media .vjs-tech {
  object-fit: contain;
}

#pde .pde-player__preview {
  display: block;
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

#pde .pde-player__layer {
  position: absolute;
  z-index: 2;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 16px;
  pointer-events: none;
}

#pde .player[data-state="idle"] .pde-player__layer {
  background: linear-gradient(transparent 38%, rgb(0 0 0 / 32%));
}

#pde .player[data-state="preview"] .pde-player__layer {
  background: rgb(0 0 0 / 20%);
}

#pde .player[data-state="ended"] .pde-player__layer,
#pde .pde-player__layer:has(.pde-player__error:not([hidden])) {
  background: rgb(11 17 13 / 86%);
}

#pde .pde-player__box {
  width: 100%;
  max-width: 340px;
  text-align: center;
}

#pde .pde-player__error {
  margin: 0 0 17px;
  color: var(--gold2);
  font-size: clamp(16px, 4.5vw, 20px);
  font-weight: 800;
  line-height: 1.3;
}

#pde .pde-player__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 44px;
  max-width: 100%;
  padding: 7px 16px;
  border: 1px solid var(--gold);
  border-radius: 99px;
  background: var(--gold);
  color: #1a1206;
  font: inherit;
  font-size: clamp(12px, 3.5vw, 14px);
  font-weight: 800;
  cursor: pointer;
  pointer-events: auto;
}

#pde .pde-player__button:is(:hover, :focus) {
  background: var(--gold2);
  color: #1a1206;
}

#pde .pde-player__button:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 3px;
}

#pde .pde-player__button[aria-busy="true"] {
  cursor: wait;
}

#pde .player[data-state="preview"] .pde-player__button {
  width: 45.1cqi;
  aspect-ratio: 487 / 275;
  min-height: 0;
  padding: 2.2cqi 0;
  border: 1px solid #1a0b06;
  border-radius: 0.83cqi;
  background: rgb(201 154 62 / 92%);
  color: #1a0b06;
  animation: pde-autoplay-pulse 3s ease-in-out infinite;
}

#pde .pde-player__autoplay {
  display: grid;
  justify-items: center;
  align-content: space-between;
  width: 100%;
  height: 100%;
  font: 700 max(10px, 2.78cqi)/1.2 Arial, sans-serif;
}

#pde .pde-player__autoplay img {
  display: block;
  width: 31.4%;
  height: auto;
}

#pde .player[data-state="preview"] :is(.pde-player__icon, .pde-player__progress) {
  display: none;
}

@keyframes pde-autoplay-pulse {
  50% {
    transform: scale(1.04);
  }
}

#pde .pde-player__icon {
  display: inline-block;
  width: 0;
  height: 0;
  border-top: 7px solid transparent;
  border-bottom: 7px solid transparent;
  border-left: 11px solid currentColor;
}

#pde .player[data-state="playing"] .pde-player__icon {
  position: absolute;
  left: 16px;
  bottom: 17px;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid rgb(243 215 154 / 64%);
  border-radius: 50%;
  background: rgb(11 17 13 / 82%);
  color: var(--gold2);
  pointer-events: none;
}

#pde .player[data-state="playing"] .pde-player__icon::before {
  content: "";
  width: 12px;
  height: 13px;
  background: linear-gradient(to right, currentColor 4px, transparent 4px 8px, currentColor 8px);
}

@media (hover: hover) and (pointer: fine) {
  #pde .player[data-state="playing"]:not(:hover) .pde-player__button:not(:focus-visible) .pde-player__icon {
    opacity: 0;
  }
}

#pde .pde-player__pause-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

#pde .player[data-state="playing"] .pde-player__button,
#pde .pde-player__layer:has(.pde-player__pause-image:not([hidden])) .pde-player__button {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}

#pde .player[data-state="playing"] .pde-player__button:focus-visible,
#pde .pde-player__layer:has(.pde-player__pause-image:not([hidden])) .pde-player__button:focus-visible {
  outline-offset: -3px;
}

#pde .pde-player__layer:has(.pde-player__pause-image:not([hidden])) :is(.pde-player__icon, .pde-player__label) {
  display: none;
}

#pde .pde-player__progress {
  position: absolute;
  z-index: 3;
  inset: auto 0 0;
  height: 5px;
  background: rgb(0 0 0 / 65%);
  pointer-events: none;
}

#pde .pde-player__fill {
  display: block;
  height: 100%;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 180ms linear;
}

#pde .player [hidden] {
  display: none;
}

@media (prefers-reduced-motion: reduce) {
  #pde .player[data-state="preview"] .pde-player__button {
    animation: none;
  }

  #pde .pde-player__fill {
    transition: none;
  }
}
