/**
 * v133-additions.css
 * Sync button · cycling ticker banner · music hub unified style
 */

/* ══════════════════════════════════════════════════════════════════
   SYNC BUTTON — far left of leaderboard bar (logged-in only)
   ══════════════════════════════════════════════════════════════════ */
.cb-ticker-sync-btn {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 32px;
  background: none;
  border: none;
  border-right: 1px solid rgba(255,255,255,.1);
  color: rgba(255,255,255,.55);
  font-size: .8rem;
  cursor: pointer;
  transition: color .15s, background .15s;
  padding: 0;
  line-height: 1;
}
.cb-ticker-sync-btn:hover {
  color: var(--cb-hamburger-pink, #ff4fa3);
  background: rgba(255,255,255,.06);
}
.cb-ticker-sync-btn.cb-syncing {
  animation: cb-sync-spin .7s linear infinite;
  color: var(--cb-hamburger-pink, #ff4fa3);
}
@keyframes cb-sync-spin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

/* ══════════════════════════════════════════════════════════════════
   CYCLING TICKER — replaces scrollable list
   ══════════════════════════════════════════════════════════════════ */
.cb-leaderboard-cycling {
  flex: 1;
  display: flex;
  align-items: center;
  padding: 0 .75rem;
  overflow: hidden;
  position: relative;
}

.cb-cycling-display {
  font-family: 'JetBrains Mono', monospace;
  font-size: .46rem;
  color: rgba(255,255,255,.82);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
  transition: opacity .35s ease;
}

.cb-cycling-display .cb-cycling-rank {
  font-size: .40rem;
  font-weight: 700;
  color: var(--cb-hamburger-pink, #ff4fa3);
  margin-right: .35rem;
}
.cb-cycling-display .cb-cycling-song {
  font-weight: 600;
}
.cb-cycling-display .cb-cycling-sep {
  opacity: .4;
  margin: 0 .3rem;
}
.cb-cycling-display .cb-cycling-artist {
  opacity: .55;
  font-size: .43rem;
}
.cb-cycling-display .cb-cycling-plat-dot {
  display: inline-block;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  margin: 0 .3rem 0 .5rem;
  vertical-align: middle;
}
.cb-cycling-display .cb-cycling-live-dot {
  display: inline-block;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  margin-right: .3rem;
  vertical-align: middle;
  animation: cb-np-pulse 1.2s ease-in-out infinite;
}

/* ══════════════════════════════════════════════════════════════════
   AUTOFILL DETECTION — triggers animationstart so JS can detect it
   ══════════════════════════════════════════════════════════════════ */
@keyframes cb-autofill-detected { from {} to {} }
input:-webkit-autofill {
  animation-name: cb-autofill-detected;
  animation-duration: 1ms;
}
