/* __KIKI_HOT_TAGS__ 两行对向循环气泡 */
#kiki-hot-tags.hot-tags,
#kiki-hot-tags.kiki-hot-tags--marquee {
  --hot-gap: 22px;
  display: flex !important;
  flex-direction: column !important;
  flex-wrap: nowrap !important;
  gap: 16px !important;
  box-sizing: border-box;
  overflow: hidden;
  overflow-x: clip;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  contain: paint;
}

#kiki-hot-tags .kiki-hot-row {
  box-sizing: border-box;
  overflow: hidden;
  overflow-x: clip;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  padding: 8px 0;
  contain: paint;
}

#kiki-hot-tags .kiki-hot-track {
  display: flex;
  width: max-content;
  max-width: none;
  min-width: 0;
  will-change: transform;
}

#kiki-hot-tags .kiki-hot-set {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: var(--hot-gap);
  padding-right: var(--hot-gap);
  max-width: none;
}

#kiki-hot-tags .kiki-hot-row--ltr .kiki-hot-track {
  animation: kiki-hot-ltr 175s linear infinite;
}

#kiki-hot-tags .kiki-hot-row--rtl .kiki-hot-track {
  animation: kiki-hot-rtl 200s linear infinite;
}

#kiki-hot-tags .kiki-hot-row:hover .kiki-hot-track,
#kiki-hot-tags .kiki-hot-row:focus-within .kiki-hot-track {
  animation-play-state: paused;
}

#kiki-hot-tags .hot-tag.kiki-hot-pill {
  position: relative;
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 0;
  padding: 10px 18px !important;
  font-size: 17px !important;
  line-height: 23px;
  color: #334155 !important;
  background: #fff !important;
  border: 1px solid #e8edf3;
  border-radius: 999px;
  box-shadow: 0 1px 4px rgba(15, 23, 42, 0.06);
  text-decoration: none;
  white-space: nowrap;
  overflow: visible;
  transition:
    transform 0.18s ease,
    background-color 0.18s ease,
    border-color 0.18s ease,
    box-shadow 0.18s ease,
    color 0.18s ease;
}

#kiki-hot-tags .hot-tag.kiki-hot-pill:hover,
#kiki-hot-tags .hot-tag.kiki-hot-pill:focus-visible,
#kiki-hot-tags .hot-tag.kiki-hot-pill.is-press {
  color: #1e293b !important;
  background: hsl(var(--hot-h, 200) 72% 88%) !important;
  border-color: hsl(var(--hot-h, 200) 62% 78%);
  transform: translateY(-2px) scale(1.08);
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.1);
  z-index: 2;
}

@keyframes kiki-hot-ltr {
  from {
    transform: translateX(-50%);
  }
  to {
    transform: translateX(0);
  }
}

@keyframes kiki-hot-rtl {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

@media (prefers-reduced-motion: reduce) {
  #kiki-hot-tags .kiki-hot-track {
    animation: none !important;
    transform: none !important;
  }
  #kiki-hot-tags .kiki-hot-row {
    overflow-x: auto;
  }
}
