.video-player {
  --video-control-accent: #e2c183;
  background: #121619;
  color: #f3f4f2;
}

.player-shell .video-player video {
  width: 100%;
  object-fit: contain;
}

.video-player-controls {
  padding: 4px 12px 8px;
  background: #181d20;
}

.video-player-control-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px 8px;
}

.video-player-control-row .playback-rate {
  margin-inline-start: auto;
}

.video-player-button {
  flex: none;
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  color: inherit;
  cursor: pointer;
}

.video-player-button[hidden],
.video-player-status[hidden] {
  display: none;
}

.video-player-button:hover:not(:disabled) {
  background: #30363a;
}

.video-player-button:focus-visible,
.video-player-seek:focus-visible {
  outline: 2px solid var(--video-control-accent);
  outline-offset: -2px;
}

.video-player-button:disabled,
.video-player-seek:disabled {
  opacity: .55;
  cursor: default;
}

.video-player-play-icon {
  width: 0;
  height: 0;
  margin-left: 3px;
  border-top: 8px solid transparent;
  border-bottom: 8px solid transparent;
  border-left: 13px solid currentColor;
}

.video-player-button.is-playing .video-player-play-icon {
  width: 12px;
  height: 16px;
  margin: 0;
  border: 0;
  border-inline: 4px solid currentColor;
  box-sizing: border-box;
}

.video-player-fullscreen-icon {
  width: 18px;
  height: 18px;
  border: 2px solid currentColor;
  border-radius: 2px;
  box-sizing: border-box;
  clip-path: polygon(0 0, 100% 0, 100% 36%, 64% 36%, 64% 64%, 100% 64%, 100% 100%, 0 100%, 0 64%, 36% 64%, 36% 36%, 0 36%);
}

.video-player-button.is-fullscreen .video-player-fullscreen-icon {
  width: 13px;
  height: 13px;
  clip-path: none;
}

.video-player-time {
  margin-top: 4px;
  font-size: 12px;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.video-player-seek {
  display: block;
  width: 100%;
  height: 32px;
  margin: 0;
  padding: 0;
  appearance: none;
  background: transparent;
  cursor: pointer;
}

.video-player-seek::-webkit-slider-runnable-track {
  height: 4px;
  border-radius: 4px;
  background: linear-gradient(to right, var(--video-control-accent) var(--video-seek-progress, 0%), #555f64 var(--video-seek-progress, 0%));
}

.video-player-seek::-moz-range-track {
  height: 4px;
  border-radius: 4px;
  background: linear-gradient(to right, var(--video-control-accent) var(--video-seek-progress, 0%), #555f64 var(--video-seek-progress, 0%));
}

.video-player-seek::-webkit-slider-thumb {
  width: 14px;
  height: 14px;
  margin-top: -5px;
  border: 0;
  border-radius: 50%;
  appearance: none;
  background: var(--video-control-accent);
}

.video-player-seek::-moz-range-thumb {
  width: 14px;
  height: 14px;
  border: 0;
  border-radius: 50%;
  background: var(--video-control-accent);
}

.video-player-status {
  margin: 2px 0 0;
  color: #f2c5aa;
  font-size: 13px;
}

.video-player.is-expanded {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  flex-direction: column;
  background: #000;
  overscroll-behavior: contain;
}

.player-shell .video-player.is-expanded video {
  flex: 1 1 0;
  min-height: 0;
  max-height: none;
  aspect-ratio: auto;
}

.video-player.is-expanded .video-player-controls {
  padding-bottom: max(8px, env(safe-area-inset-bottom));
}

.video-player:fullscreen {
  display: flex;
  flex-direction: column;
  background: #000;
}

.video-player:-webkit-full-screen {
  display: flex;
  flex-direction: column;
  background: #000;
}

.player-shell .video-player:fullscreen video {
  flex: 1 1 0;
  min-height: 0;
  max-height: none;
  aspect-ratio: auto;
}

.player-shell .video-player:-webkit-full-screen video {
  flex: 1 1 0;
  min-height: 0;
  max-height: none;
  aspect-ratio: auto;
}
