.customplyr-wrapper {
  width: 100%;
  position: relative;
  overflow: hidden;
  background: #000;
}

.customplyr-wrapper[data-ratio="16:9"] { aspect-ratio: 16 / 9; }
.customplyr-wrapper[data-ratio="4:3"] { aspect-ratio: 4 / 3; }
.customplyr-wrapper[data-ratio="1:1"] { aspect-ratio: 1 / 1; }
.customplyr-wrapper[data-ratio="21:9"] { aspect-ratio: 21 / 9; }

.customplyr-stage {
  position: absolute;
  inset: 0;
}

.customplyr-wrapper .plyr {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.customplyr-wrapper .plyr__video-wrapper {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  padding-bottom: 0;
}

.customplyr-wrapper video,
.customplyr-wrapper .plyr video {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  object-position: center;
  background: #000;
}

.customplyr-wrapper .plyr__poster {
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
}

.customplyr-overlay {
  position: absolute;
  inset: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  border: 0;
  padding: 0;
  background: transparent;
  cursor: pointer;
  transition: opacity 0.2s ease;
}

.customplyr-overlay:hover {
  background: transparent;
}

.customplyr-overlay:focus-visible {
  outline: 2px solid #fff;
  outline-offset: -4px;
}

.customplyr-overlay__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 28px;
  line-height: 1;
  background: transparent;
  box-shadow: none;
  border-radius: 0;
  width: auto;
  height: auto;
}

.customplyr-overlay__icon i,
.customplyr-overlay__icon svg {
  display: block;
  color: inherit;
  fill: currentColor;
  width: 1em;
  height: 1em;
}

.customplyr-overlay__icon:empty::before {
  content: "";
  display: block;
  margin-left: 4px;
  width: 0;
  height: 0;
  border-top: 12px solid transparent;
  border-bottom: 12px solid transparent;
  border-left: 20px solid #fff;
}

.customplyr-overlay[hidden] {
  display: none;
}
