/**
 * Topic/chapter label in Plyr progress tooltip (templates/features/points.php).
 * Single-line title with ellipsis — avoids tall multi-line tooltips looking "stretched".
 */

.plyr__tooltip:has(.video-topic-marker) {
  white-space: nowrap;
  max-width: min(360px, 90vw);
}

.plyr__tooltip .point.video-topic-marker {
  display: block;
  padding: 0.35rem 0.55rem;
  max-width: 100%;
  overflow: hidden;
  text-align: start;
}

.plyr__tooltip .point.video-topic-marker .text {
  display: block;
  margin: 0;
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.25;
  color: var(--Neutral-90, #212529);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
  direction: inherit;
}

/* Topic pins on the seek bar (not question markers) */
.plyr__progress__marker:not(.question-mark) {
  background: linear-gradient(180deg, #fffef5 0%, #fde047 55%, #facc15 100%);
  border: 1px solid rgba(33, 37, 41, 0.28);
  box-shadow:
    0 1px 3px rgba(0, 0, 0, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.65);
}

.plyr__progress__marker:not(.question-mark):hover {
  filter: brightness(1.03);
}
