/* Highlight strips (app/javascript/highlight_strip.js,
   docs/features/player-highlights.md). A canvas bar under / along the bottom of
   a native player: marks by time, a white playhead, click to seek. */

.hl-host[hidden] { display: none !important; }

.hl-strip {
  position: relative;
  height: 22px;
  cursor: pointer;
  user-select: none;
  -webkit-user-select: none;
  touch-action: manipulation;
}
.hl-strip canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.hl-strip-ph {
  position: absolute;
  top: -3px;
  bottom: -3px;
  width: 2px;
  margin-left: -1px;
  background: #fff;
  box-shadow: 0 0 6px rgba(255, 255, 255, .55);
  pointer-events: none;
}

/* Chip above a mobile strip: "🔥 cut into 3 viral clips" / "⚡ drop". */
.hl-strip-chip {
  position: absolute;
  left: 50%;
  bottom: calc(100% + 10px);
  transform: translateX(-50%);
  background: rgba(0, 0, 0, .65);
  border: 1px solid rgba(255, 255, 255, .2);
  color: #fff;
  border-radius: 14px;
  padding: 3px 10px;
  font-size: 12px;
  white-space: nowrap;
  opacity: 0;
  transition: opacity .2s;
  pointer-events: none;
}
.hl-strip-chip--on { opacity: 1; }

/* Music player: under the <audio> bar. */
.hl-host--music { margin: -2px 4px 10px; }
.hl-strip--music { height: 46px; }
.hl-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 12px;
  margin-top: 6px;
  font-size: 11px;
  color: var(--text-secondary, #8a93a6);
}
.hl-legend b {
  display: inline-block;
  width: 9px;
  height: 9px;
  border-radius: 2px;
  margin-right: 4px;
  vertical-align: -1px;
}

/* Feed, desktop: a strip right under the video container (below the native
   controls), pulling the container's bottom margin in. */
.desktop-video-container:has(+ .hl-host--desktop:not([hidden])) { margin-bottom: 6px; }
.hl-host--desktop { margin: 0 2px 14px; }
.hl-strip--heat, .hl-strip--drop-desktop { height: 18px; border-radius: 4px; overflow: hidden; }

/* Feed, mobile: there is no seek bar, so a thin bar along the bottom edge of
   the video. The mobile .video-element is position:relative; z-index:10, so
   the bar sits at 11. The hit area is taller than what is drawn. */
.hl-host--mobile {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 11;
}
.hl-strip--compact { height: 8px; }
.hl-strip--compact.hl-strip--drop { height: 18px; }
.hl-strip--compact::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 24px;
}
