/**
 * ============================================================================
 * TICKER.CSS: Sub-Header Sticky Live Ticker Marquee
 * ============================================================================
 * Responsive sticky ticker tape anchored directly beneath primary header.
 * 60fps continuous dual-track scrolling.
 * Hover and keyboard focus pause controls.
 * Empty state collapse handling.
 * ============================================================================
 */

.live-ticker-sticky {
  position: sticky;
  top: var(--header-height, 86px);
  z-index: 25;
  height: 48px;
  min-height: 48px;
  background: var(--live-surface, #090d0b);
  border-bottom: 1px solid rgba(197, 248, 42, 0.15);
  overflow: hidden;
  contain: layout style;
  transition: height 300ms cubic-bezier(0.4, 0, 0.2, 1), opacity 200ms ease;
}

.live-ticker-sticky.is-empty {
  height: 0;
  min-height: 0;
  opacity: 0;
  pointer-events: none;
}

.live-ticker-track {
  display: flex;
  align-items: center;
  gap: 16px;
  width: max-content;
  will-change: transform;
  animation: live-ticker-marquee 25s linear infinite;
}

/* Marquee Hover and Focus Controls */
.live-ticker-track:hover,
.live-ticker-sticky:hover .live-ticker-track,
.live-ticker-track:focus-within {
  animation-play-state: paused;
}

@keyframes live-ticker-marquee {
  0% {
    transform: translate3d(0, 0, 0);
  }
  100% {
    transform: translate3d(-50%, 0, 0);
  }
}

.live-ticker-card {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  min-width: 44px;
  padding: 4px 12px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.04);
  cursor: pointer;
  text-decoration: none;
  color: inherit;
  flex-shrink: 0;
}

@media (prefers-reduced-motion: reduce) {
  .live-ticker-track {
    animation: none !important;
  }
}
