.venta-player {
  --player-accent: #168660;
  width: 100%;
  overflow: hidden;
  border-radius: 12px;
  background: #152b25;
}

.venta-player .cinema-player,
#library-dialog .venta-player .cinema-player {
  margin: 0;
  border: 0;
  border-radius: 0;
  background: #152b25;
  max-height: none;
}

.venta-player video::cue {
  color: #fff;
  background: #111e19e8;
}

.venta-player .venta-center-play {
  position: absolute;
  z-index: 2;
  inset: 50% auto auto 50%;
  transform: translate(-50%, -50%);
  width: clamp(62px, 9vw, 86px);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border: 2px solid #e3f6ec;
  border-radius: 50%;
  background: var(--player-accent);
  color: #fff;
  box-shadow: 0 8px 32px #10291b45;
  cursor: pointer;
}

.venta-center-play[hidden],
.venta-player-controls button[hidden] {
  display: none;
}

.venta-center-play svg {
  width: 34px;
  height: 34px;
}

.venta-player-controls {
  display: flex;
  align-items: center;
  gap: 2px;
  min-height: 48px;
  padding-inline: 6px;
  color: #eff9f4;
  background: #152b25;
}

.venta-player-controls button {
  display: grid;
  place-items: center;
  flex: 0 0 44px;
  min-height: 44px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: inherit;
  cursor: pointer;
}

.venta-player-controls button:is(:hover, [aria-pressed="true"]) {
  color: #bcf2d5;
  background: #2b5244;
}

.venta-player-controls button svg {
  width: 21px;
  height: 21px;
}

.venta-player button:focus-visible,
.venta-player-seek:focus-visible {
  outline: 2px solid #bcf2d5;
  outline-offset: -2px;
}

.venta-player-time,
.venta-player-duration {
  font-size: .8125rem;
  font-variant-numeric: tabular-nums;
  padding-inline: 4px;
}

.venta-player-seek {
  flex: 1 1 auto;
  min-width: 28px;
  height: 40px;
  margin: 0 5px;
  appearance: none;
  background: transparent;
  cursor: pointer;
}

.venta-player-seek::-webkit-slider-runnable-track {
  height: 4px;
  border-radius: 4px;
  background: linear-gradient(to right, #a6e8c5 var(--seek-progress, 0%), #657e74 var(--seek-progress, 0%));
}

.venta-player-seek::-webkit-slider-thumb {
  appearance: none;
  width: 12px;
  height: 12px;
  margin-top: -4px;
  border-radius: 50%;
  background: #d6f8e6;
}

.venta-player-seek::-moz-range-track {
  height: 4px;
  border-radius: 4px;
  background: #657e74;
}

.venta-player-seek::-moz-range-progress {
  height: 4px;
  background: #a6e8c5;
}

.venta-player-seek::-moz-range-thumb {
  width: 12px;
  height: 12px;
  border: 0;
  border-radius: 50%;
  background: #d6f8e6;
}

.venta-player-status:not(:empty) {
  display: block;
  padding: 8px 12px;
  color: #fff;
}

.venta-player:fullscreen,
.venta-player-expanded {
  display: flex;
  flex-direction: column;
  width: 100vw;
  height: 100dvh;
  border-radius: 0;
}

.venta-player-expanded {
  position: fixed;
  z-index: 100;
  inset: 0;
}

.venta-player:fullscreen .cinema-player,
#library-dialog .venta-player:fullscreen .cinema-player,
.venta-player-expanded .cinema-player,
#library-dialog .venta-player-expanded .cinema-player {
  flex: 1 1 auto;
  min-height: 0;
  aspect-ratio: auto;
}

#library-dialog {
  max-height: calc(100dvh - 20px);
  padding: 48px 16px 16px !important;
}

#library-dialog .library-playback {
  padding: 0;
}

#library-related {
  display: flex;
  justify-content: center;
  margin: 12px auto 0;
  width: fit-content;
}

@media (max-width: 480px) {
  .venta-player-controls {
    gap: 0;
    padding-inline: 2px;
  }

  .venta-player-time,
  .venta-player-duration {
    padding-inline: 2px;
    font-size: .75rem;
  }

  .venta-player-seek {
    margin-inline: 3px;
  }
}

.venta-player .venta-player-seek,
.venta-player .venta-player-seek:focus {
  appearance: none;
  border: 0 !important;
  border-radius: 0;
  box-shadow: none !important;
  padding: 0 !important;
  background: transparent !important;
  touch-action: pan-y;
}

.venta-player video {
  cursor: pointer;
}

.venta-chapters {
  position: relative;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
}

.venta-chapters[hidden] {
  display: none;
}

.venta-chapters:focus-within {
  outline: 2px solid #bcf2d5;
  outline-offset: -2px;
}

.venta-chapters svg {
  width: 21px;
  height: 21px;
}

.venta-chapters select {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}

@media (max-width: 420px) {
  .venta-player-controls button,
  .venta-chapters {
    flex-basis: 37px;
  }
}
