.bt-team-logos {
  width: 100vw;
  max-width: 100vw;
  margin: 18px 0 18px 50%;
  transform: translateX(-50%);
  font-family: "Titillium Web", "Segoe UI", sans-serif;
}

.bt-team-logos__stage {
  position: relative;
  width: 100%;
  height: clamp(132px, 14vw, 190px);
  min-height: 0;
  overflow: hidden;
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  gap: 0;
  padding: 18px 0;
  background:
    linear-gradient(90deg, rgba(251, 183, 2, .14), rgba(251, 183, 2, 0) 32%),
    linear-gradient(135deg, rgba(38, 65, 154, .78) 0%, rgba(112, 43, 168, .7) 46%, rgba(200, 16, 46, .72) 100%);
  border: 0;
  border-radius: 0;
  color: #1f2937;
  box-shadow: none;
  animation: bt-team-logo-bg 12s ease-in-out infinite;
}

.bt-team-logos__stage::before,
.bt-team-logos__stage::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 14%;
  z-index: 2;
  pointer-events: none;
}

.bt-team-logos__stage::before {
  left: 0;
  background: linear-gradient(90deg, rgba(38, 65, 154, .78), rgba(38, 65, 154, 0));
}

.bt-team-logos__stage::after {
  right: 0;
  background: linear-gradient(270deg, rgba(200, 16, 46, .72), rgba(200, 16, 46, 0));
}

.bt-team-logos__stage > .bt-team-logos__row::before {
  content: "";
  position: absolute;
  inset: -40px 0;
  z-index: 0;
  pointer-events: none;
  background: linear-gradient(105deg, transparent 0%, rgba(255, 255, 255, .16) 45%, transparent 62%);
  transform: translateX(-120%);
  animation: bt-team-logo-sheen 24s ease-in-out infinite;
}

.bt-team-logos__header {
  position: absolute;
  top: 10px;
  left: clamp(14px, 3vw, 34px);
  right: clamp(14px, 3vw, 34px);
  z-index: 3;
  display: flex;
  justify-content: center;
  text-align: center;
  pointer-events: none;
}

.bt-team-logos__header span {
  max-width: min(760px, 86%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  padding: 5px 14px 6px;
  border: 1px solid rgba(251, 183, 2, .42);
  border-radius: 999px;
  background: rgba(18, 18, 18, .46);
  backdrop-filter: blur(8px);
  font-size: clamp(12px, 1.35vw, 16px);
  font-weight: 800;
  text-transform: uppercase;
  line-height: 1.1;
  letter-spacing: 1.5px;
  color: #fff;
  box-shadow: 0 8px 22px rgba(0, 0, 0, .16);
  text-shadow: 0 1px 8px rgba(0, 0, 0, .35);
}

.bt-team-logos__header span::before,
.bt-team-logos__header span::after {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: #fbb702;
  box-shadow: 0 0 12px rgba(251, 183, 2, .65);
}

.bt-team-logos__header span::before {
  margin-right: 9px;
}

.bt-team-logos__header span::after {
  margin-left: 9px;
}

.bt-team-logos__row {
  position: relative;
  z-index: 1;
  display: flex;
  width: 100%;
  overflow: hidden;
  transform: none;
  padding-top: 22px;
}

.bt-team-logos__row--reverse {
  display: none;
}

.bt-team-logos__track {
  display: flex;
  width: max-content;
  gap: clamp(10px, 1.5vw, 18px);
  padding: 0 clamp(12px, 2vw, 24px);
  flex-shrink: 0;
  animation:
    bt-team-logo-marquee var(--bt-logo-speed, 28s) linear infinite,
    bt-team-logo-drift 7s ease-in-out infinite;
}

.bt-team-logos__row--reverse .bt-team-logos__track {
  animation-direction: reverse;
}

.bt-team-logos__item {
  flex: 0 0 clamp(108px, 11vw, 154px);
  height: clamp(74px, 8vw, 106px);
  display: grid;
  grid-template-rows: 1fr auto;
  align-items: center;
  justify-items: center;
  gap: 5px;
  padding: clamp(7px, 1vw, 12px);
  border: 1px solid rgba(251, 183, 2, .22);
  border-radius: 8px;
  background: rgba(255, 255, 255, .92);
  color: #111827;
  box-shadow: 0 8px 18px rgba(0, 0, 0, .18);
  transform-origin: center;
  animation: bt-team-logo-float 5.6s ease-in-out infinite;
  transition: box-shadow .25s ease, filter .25s ease;
  will-change: transform, filter;
}

.bt-team-logos__item:hover {
  filter: saturate(1.08);
  box-shadow: 0 14px 28px rgba(0, 0, 0, .24), 0 0 0 2px rgba(251, 183, 2, .24);
}

.bt-team-logos__item:nth-child(2n) {
  animation-delay: -.9s;
}

.bt-team-logos__item:nth-child(3n) {
  animation-delay: -1.8s;
}

.bt-team-logos__item:nth-child(5n) {
  animation-delay: -2.7s;
}

.bt-team-logos__mark {
  width: 100%;
  height: 100%;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.bt-team-logos__mark img {
  max-width: 100%;
  max-height: clamp(40px, 5.2vw, 66px);
  object-fit: contain;
  display: block;
}

.bt-team-logos__mark span {
  display: inline-flex;
  width: clamp(42px, 5.2vw, 64px);
  height: clamp(42px, 5.2vw, 64px);
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: #121212;
  color: #fbb702;
  font-weight: 900;
  font-size: clamp(17px, 2.1vw, 25px);
}

.bt-team-logos__item strong {
  width: 100%;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  text-align: center;
  font-size: clamp(10px, 1.15vw, 13px);
  line-height: 1.2;
}

.bt-team-logos-empty {
  padding: 14px 16px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  color: #64748b;
  background: #fff;
}

@keyframes bt-team-logo-marquee {
  from {
    transform: translate3d(0, 0, 0);
  }
  to {
    transform: translate3d(-50%, 0, 0);
  }
}

@keyframes bt-team-logo-drift {
  0%, 100% {
    filter: saturate(1) hue-rotate(0deg);
  }
  50% {
    filter: saturate(1.08) hue-rotate(-3deg);
  }
}

@keyframes bt-team-logo-float {
  0%, 100% {
    transform: translateY(0) rotateZ(-.4deg) scale(1);
  }
  50% {
    transform: translateY(-6px) rotateZ(.7deg) scale(1.035);
  }
}

@keyframes bt-team-logo-sheen {
  0%, 18% {
    transform: translateX(-120%);
    opacity: 0;
  }
  36%, 58% {
    opacity: 1;
  }
  76%, 100% {
    transform: translateX(120%);
    opacity: 0;
  }
}

@keyframes bt-team-logo-bg {
  0%, 100% {
    filter: saturate(1) brightness(1);
  }
  50% {
    filter: saturate(1.15) brightness(1.06);
  }
}

@media (max-width: 640px) {
  .bt-team-logos__stage {
    height: 124px;
    padding: 14px 0;
  }

  .bt-team-logos__item {
    flex-basis: 104px;
    height: 72px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .bt-team-logos__stage,
  .bt-team-logos__track,
  .bt-team-logos__item,
  .bt-team-logos__stage > .bt-team-logos__row::before {
    animation: none;
    transform: translate3d(0, 0, 0);
  }
}
