/* ============================================================
   Trusted Creators — full-bleed horizontal marquee pills
   ============================================================ */

.trusted-creators-section {
  padding: clamp(52px, 7vh, 84px) 0 clamp(46px, 6vh, 72px);
  overflow: hidden;
}

.trusted-creators-section > .container {
  width: min(1520px, calc(100vw - 32px));
}

.trusted-creators-section .editor-showcase-title {
  margin-bottom: clamp(26px, 2.8vw, 38px);
}

.trusted-creators-marquee-bleed {
  width: 100vw;
  max-width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  overflow: hidden;
}

.trusted-creators-marquee {
  width: 100%;
  padding: 12px 0 18px;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
}

.trusted-creators-track {
  display: flex;
  align-items: center;
  width: max-content;
  gap: 0;
  padding: 0;
  animation: trusted-creators-scroll 42s linear infinite;
  will-change: transform;
}

.trusted-creators-marquee:hover .trusted-creators-track {
  animation-play-state: paused;
}

@keyframes trusted-creators-scroll {
  from {
    transform: translateX(-50%);
  }

  to {
    transform: translateX(0);
  }
}

.creator-pill {
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  min-height: 72px;
  gap: 16px;
  margin-right: 26px;
  padding: 8px 26px 8px 16px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, .1);
  background: rgba(10, 14, 22, .78);
  backdrop-filter: blur(10px) saturate(1.06);
  -webkit-backdrop-filter: blur(10px) saturate(1.06);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .05),
    0 12px 28px rgba(0, 0, 0, .18);
  flex-shrink: 0;
  transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.creator-pill:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 215, 106, .34);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .06),
    0 0 0 1px rgba(255, 215, 106, .1),
    0 16px 34px rgba(0, 0, 0, .24);
}

.creator-pill__avatar {
  box-sizing: border-box;
  display: block;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  border: 1px solid rgba(255, 255, 255, .14);
  background: rgba(255, 255, 255, .04);
  box-shadow: 0 0 0 2px rgba(255, 215, 106, .06);
}

.creator-pill__avatar img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.creator-pill__copy {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

.creator-pill__name {
  font-size: 17px;
  font-weight: 700;
  color: #f8fbff;
  line-height: 1.2;
  white-space: nowrap;
}

.creator-pill__followers {
  font-size: 14px;
  font-weight: 500;
  color: rgba(223, 231, 243, .76);
  line-height: 1.2;
  white-space: nowrap;
}

@media (max-width: 900px) {
  .trusted-creators-section > .container {
    width: min(1280px, calc(100vw - 24px));
  }

  .trusted-creators-track {
    animation-duration: 38s;
  }

  .creator-pill {
    min-height: 66px;
    margin-right: 20px;
    padding: 9px 22px 9px 14px;
    gap: 14px;
  }

  .creator-pill__avatar {
    width: 50px;
    height: 50px;
  }
}

@media (max-width: 560px) {
  .trusted-creators-marquee {
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 3%, #000 97%, transparent);
    mask-image: linear-gradient(90deg, transparent, #000 3%, #000 97%, transparent);
  }

  .trusted-creators-track {
    animation-duration: 34s;
  }

  .creator-pill {
    min-height: 60px;
    margin-right: 14px;
    padding: 8px 18px 8px 12px;
    gap: 12px;
  }

  .creator-pill__avatar {
    width: 44px;
    height: 44px;
  }

  .creator-pill__name {
    font-size: 15px;
  }

  .creator-pill__followers {
    font-size: 12.5px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .trusted-creators-track {
    animation: none;
    overflow-x: auto;
    max-width: 100%;
    padding-bottom: 6px;
    scrollbar-width: none;
  }

  .trusted-creators-track::-webkit-scrollbar {
    display: none;
  }

  .trusted-creators-marquee {
    overflow-x: auto;
    -webkit-mask-image: none;
    mask-image: none;
  }
}
