#pde .player {
  position: relative;
  aspect-ratio: 9 / 16;
  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__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="ended"] .pde-player__layer,
#pde .pde-player__layer:has(.pde-player__error:not([hidden])) {
  background: rgb(11 17 13 / 86%);
}

#pde .player[data-state="playing"] .pde-player__layer {
  place-items: end start;
  padding-bottom: 17px;
}

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

#pde .player[data-state="playing"] .pde-player__box {
  width: auto;
}

#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="playing"] .pde-player__button {
  width: 44px;
  padding: 0;
  border-color: rgb(243 215 154 / 64%);
  background: rgb(11 17 13 / 82%);
  color: var(--gold2);
}

#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 {
  width: 12px;
  height: 13px;
  border: 0;
  border-right: 4px solid currentColor;
  border-left: 4px solid currentColor;
}

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

#pde .pde-player__layer:has(.pde-player__pause-image:not([hidden])) .pde-player__button {
  position: absolute;
  inset: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}

#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 .pde-player__fill {
    transition: none;
  }
}
