/* Channel-theming bridge is defined in base.html <style>; this file holds
   restyles for third-party widgets (MediaElement) and tiny tweaks that fit
   better as a stylesheet than inline utility classes. */

/* MediaElement player blends into DaisyUI surface */
.mejs__container,
.mejs__container .mejs__controls {
  background: transparent !important;
}
.mejs__container {
  border-radius: 0.75rem;
  overflow: hidden;
}
.mejs__time-rail .mejs__time-current {
  background: var(--main-brand-color) !important;
}
.mejs__time-rail .mejs__time-loaded {
  background: rgba(0, 0, 0, 0.15) !important;
}
.mejs__horizontal-volume-current {
  background: var(--main-brand-color) !important;
}

/* Transcript cue — currently playing */
.cue-active {
  background-color: color-mix(in oklab, var(--main-brand-color) 18%, transparent);
  border-left: 3px solid var(--main-brand-color);
}

/* Timeline markers (carried over from Bootstrap design, re-scoped) */
.timeline-track {
  background-color: oklch(var(--b2));
  height: 4px;
  border-radius: 9999px;
  position: relative;
}
.timeline-marker {
  width: 14px;
  height: 14px;
  background-color: var(--main-brand-color);
  border-radius: 9999px;
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  cursor: pointer;
  box-shadow: 0 0 0 2px oklch(var(--b1));
  transition: transform 120ms ease-out;
}
.timeline-marker:hover {
  transform: translate(-50%, -50%) scale(1.4);
}

/* Highlighted search match */
mark.search-hit,
.search-hit mark {
  background-color: color-mix(in oklab, var(--main-brand-color) 22%, transparent);
  color: inherit;
  border-radius: 0.25rem;
  padding: 0 0.15rem;
}

/* Glow highlight for scrolled-into-view moment card */
.highlight-me {
  animation: highlight-pulse 700ms 2;
  border-radius: 0.5rem;
}
@keyframes highlight-pulse {
  50% {
    background: color-mix(in oklab, var(--main-brand-color) 30%, transparent);
  }
}
