.marquee-container {
  overflow: hidden;
  white-space: nowrap;
  width: 100%;
  box-sizing: border-box;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
}

.marquee {
  position: relative;
}

.track {
  display: flex;
  will-change: transform;
  animation: scroll 10s linear infinite;
}

.marquee:hover .track,
.marquee:focus-within .track {
  animation-play-state: paused;
}

/* accessible: reduce/stop motion if user prefers */
@media (prefers-reduced-motion: reduce) {
  .track {
    animation: none;
  }
}

@keyframes scroll {
  0% {
    transform: translateX(-100%);
  }
  100% {
    transform: translateX(0);
  }
}