/* ============================
   INFINITE MARQUEE CONTAINER
   ============================ */
.ticker-marquee {
  width: 100%;
  overflow: hidden;
  white-space: nowrap;
  position: relative;
  z-index: 10;
}

.ticker-inner {
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  animation: scrollLeft linear infinite;
  animation-duration: var(--ticker-speed, 30s);
}

.ticker-marquee:hover .ticker-inner {
  animation-play-state: paused;
}

@keyframes scrollLeft {
  from { transform: translateX(0); }
  to   { transform: translateX(-100%); }
}


/* ============================
   COIN BLOCK — spacing between *coins*
   ============================ */
.ticker-block {
  display: inline-flex;
  align-items: center;
  margin-right: 26px;   /* ⭐ was 14px → more separation between coins */
}


/* ============================
   INNER ITEM — tighter spacing for numbers
   ============================ */
.ticker-item {
  display: inline-flex;
  align-items: center;
  gap: 3px;             /* ⭐ was 6px → text sits tighter */
  padding: 4px 8px;
  border-radius: 8px;
  flex-shrink: 0;
  position: relative;
  z-index: 2;
}

/* Hover background */
.ticker-item::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.07);
  opacity: 0;
  transition: opacity 0.15s ease;
  z-index: -1;
}

.ticker-item:hover::before {
  opacity: 1;
}


/* ============================
   ICON + TEXT — tightened spacing
   ============================ */
.ticker-icon {
  width: 20px;
  height: 20px;
  margin-right: 4px; /* was 5px */
  border-radius: 50%;
}

.ticker-symbol {
  font-weight: 700;
  margin-right: 2px; /* was 6px */
}

.ticker-price {
  margin-right: 3px; /* was 6px */
}

.ticker-change-amount {
  margin-right: 2px; /* was 4px */
}

.red { color: #e63946; }
.green { color: #0cbf75; }


/* ============================
   FLASH ANIMATION ON UPDATE
   ============================ */
/* TEXT COLOR FLASH (TradingView style) */
.flash-up {
  color: #0cbf75 !important;
  transition: color 0.3s ease;
}

.flash-down {
  color: #e63946 !important;
  transition: color 0.3s ease;
}