/* Labels marquee (from www.sonymusic.com home-labels) */

.sm-labels-marquee {
  padding: 56px 0;
  background: transparent;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.sm-labels-marquee__viewport {
  overflow: hidden;
  width: 100%;
  mask-image: linear-gradient(
    90deg,
    transparent 0%,
    #000 8%,
    #000 92%,
    transparent 100%
  );
}

.sm-labels-marquee__track {
  display: flex;
  width: max-content;
  animation: sm-labels-marquee 45s linear infinite;
}

.sm-labels-marquee:hover .sm-labels-marquee__track {
  animation-play-state: paused;
}

.sm-labels-marquee__list {
  display: flex;
  align-items: center;
  gap: clamp(32px, 5vw, 64px);
  margin: 0;
  padding: 0;
  list-style: none;
}

.sm-labels-marquee__item {
  flex: 0 0 auto;
}

.sm-labels-marquee__item a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 120px;
  height: 72px;
  opacity: 0.9;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.sm-labels-marquee__item a:hover {
  opacity: 1;
  transform: scale(1.05);
}

.sm-labels-marquee__item img {
  display: block;
  max-width: 120px;
  max-height: 72px;
  width: auto;
  height: auto;
  object-fit: contain;
  filter: brightness(0) invert(1);
}

@keyframes sm-labels-marquee {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

@media (prefers-reduced-motion: reduce) {
  .sm-labels-marquee__track {
    animation: none;
    flex-wrap: wrap;
    justify-content: center;
    width: 100%;
    max-width: var(--sm-max);
    margin: 0 auto;
    gap: 24px;
  }

  .sm-labels-marquee__viewport {
    mask-image: none;
  }

  .sm-labels-marquee__list[aria-hidden='true'] {
    display: none;
  }

  .sm-labels-marquee__list {
    flex-wrap: wrap;
    justify-content: center;
  }
}

@media (max-width: 767px) {
  .sm-labels-marquee {
    padding: 40px 0;
  }

  .sm-labels-marquee__item a {
    width: 96px;
    height: 56px;
  }

  .sm-labels-marquee__item img {
    max-width: 96px;
    max-height: 56px;
  }
}
