/* Стили для бегущей строки благодарностей */
#thanksTicker {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 40px;
  background: rgba(0, 0, 0, 0);
  backdrop-filter: blur(0px);
  z-index: 9999;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
  border-top: 1px solid transparent;
  transform: translateY(100%);
  transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
  /* Скрываем содержимое пока элемент не готов */
  visibility: hidden;
}

#thanksTicker.ready {
  visibility: visible;
}

#thanksTicker.visible {
  opacity: 1 !important;
  transform: translateY(0) !important;
  background: rgba(0, 0, 0, 0.7) !important;
  backdrop-filter: blur(5px) !important;
  border-top-color: var(--js-ticker-border-color) !important;
}

.ticker-content {
  white-space: nowrap;
  line-height: 40px;
  font-family: 'Noto Sans', sans-serif;
  font-size: 14px;
  color: var(--js-ticker-text-color);
  position: absolute;
  top: 0;
  /* Изначально скрываем текст за правым краем */
  transform: translateX(100vw);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.ticker-content.ready {
  opacity: 1;
}

.ticker-content.moving {
  animation: tickerMoveDesktop 45s linear infinite;
}

/* Анимации движения */
@keyframes tickerMoveDesktop {
  0% {
    transform: translateX(100vw);
  }

  100% {
    transform: translateX(-100%);
  }
}

@keyframes tickerMoveMobile {
  0% {
    transform: translateX(100vw);
  }

  100% {
    transform: translateX(-100%);
  }
}

/* Мобильные стили */
@media (max-width: 768px) {
  .ticker-content {
    font-size: 12px !important;
  }

  .ticker-content.moving {
    animation: tickerMoveMobile 35s linear infinite !important;
  }
}

/* Дополнительные стили для плавности */
@media (prefers-reduced-motion: reduce) {
  #thanksTicker {
    transition: transform 0.3s ease, opacity 0.3s ease;
  }

  .ticker-content.moving {
    animation-duration: 60s;
  }
}