.vjs-chapters-button .vjs-menu {
  left: auto !important;
  right: 400% !important;
  bottom: calc(100% - 30px) !important;
  max-height: none !important;
  overflow: visible !important;
  height: auto !important;
}
.vjs-chapters-button .vjs-menu.persistent {
  opacity: 1 !important;
  visibility: visible !important;
  display: block !important;
  transition: none !important;
}
.vjs-chapters-button .vjs-menu-content {
  min-width: 350px !important;
  padding: 10px !important;
  white-space: normal !important;
  max-height: 75vh !important;
  overflow-y: auto !important;
  overflow-x: visible !important;
}
.vjs-chapters-button .vjs-menu-item {
  text-align: left !important;
  text-transform: none !important;
  padding: 10px 15px !important;
  font-size: 14px !important;
}
.vjs-chapters-button .vjs-menu-item:hover {
  background: rgba(255, 255, 255, 0.7) !important;
  color: #fff !important;
  cursor: pointer;
}
.vjs-chapters-markers {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
.vjs-chapter-marker {
  position: absolute;
  top: 0;
  width: 12px;
  height: 100%;
  background: transparent;
  pointer-events: auto;
  cursor: pointer;
}
.vjs-chapter-marker::before {
  content: '';
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 2px;
  height: 100%;
  background: #ff8000;
}
.vjs-chapter-marker .chapter-tooltip {
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(50, 50, 50, 0.9);
  color: #fff;
  font-size: 12px;
  padding: 3px 6px;
  border-radius: 3px;
  white-space: nowrap;
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.2s ease-in-out;
  z-index: 2000;
  pointer-events: none;
}
.vjs-chapter-marker:hover .chapter-tooltip {
  visibility: visible;
  opacity: 1;
}
.chapter-tooltip.align-right {
  left: 0;
  transform: none;
  text-align: left;
}
.chapter-tooltip.align-left {
  right: 0;
  left: auto;
  transform: none;
  text-align: right;
}
.chapter-tooltip.align-centre {
  left: 50%;
  transform: translateX(-50%);
}
/* Playlist navigation */
.vjs-playlist-prev,
.vjs-playlist-next {
  cursor: pointer !important;
  font-size: 14px !important;
  line-height: 30px !important;
  text-align: center !important;
  min-width: 3em !important;
}
.vjs-playlist-prev.vjs-disabled,
.vjs-playlist-next.vjs-disabled {
  opacity: 0.3 !important;
  cursor: default !important;
}
.playlist-title-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #1a1a1a;
  color: #fff;
  padding: 6px 12px;
  font-size: 14px;
  font-family: Arial, Helvetica, sans-serif;
}
.playlist-title {
  font-weight: bold;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.playlist-counter {
  flex-shrink: 0;
  margin-left: 12px;
  opacity: 0.7;
  font-size: 13px;
}
.vjs-quality-selector .vjs-icon-placeholder {
  font-size: 12px !important;
  line-height: 30px !important;
  font-style: normal !important;
  font-weight: bold;
  min-width: 3.2em;
  display: inline-block;
  text-align: center;
}
.vjs-help-button {
  font-size: 18px !important;
  line-height: 30px !important;
  text-align: center !important;
  color: #fff !important;
  cursor: pointer !important;
}
.vjs-help-button:hover {
  background: rgba(255, 255, 255, 0.3) !important;
}
