/* =========================================
   TWISTED BLACK — Popular Tracks Section
   ========================================= */

#popular {
  background: var(--bg);
  padding-top: 12px !important;
}

.popular-list {
  list-style: none;
  display: flex;
  flex-direction: column;
}

.popular-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px;
  border-radius: 10px;
  cursor: pointer;
  transition: background var(--transition-fast), transform 100ms ease;
  -webkit-tap-highlight-color: transparent;
  min-height: 60px;
}

.popular-row:hover {
  background: rgba(255, 255, 255, 0.03);
}

.popular-row:active {
  background: rgba(255, 255, 255, 0.05);
  transform: scale(0.98);
}

.popular-row.active {
  background: rgba(185, 28, 28, 0.06);
}

.popular-rank {
  font-family: 'Space Mono', monospace;
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.3);
  min-width: 22px;
  text-align: right;
}

.popular-row.active .popular-rank {
  color: var(--ember);
}

.popular-thumb {
  width: 44px;
  height: 44px;
  border-radius: 4px;
  object-fit: cover;
  background: var(--surface);
  flex-shrink: 0;
}

.popular-info {
  flex: 1;
  min-width: 0;
}

.popular-title {
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  font-size: 0.88rem;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.popular-row.active .popular-title {
  color: var(--ember);
}

.popular-feat {
  font-family: 'Inter', sans-serif;
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.45);
  margin-top: 1px;
}

.popular-streams {
  font-family: 'Space Mono', monospace;
  font-size: 0.65rem;
  color: rgba(255, 255, 255, 0.35);
  white-space: nowrap;
}

/* EQ bars for active track */
.popular-eq {
  display: none;
  align-items: flex-end;
  gap: 2px;
  height: 16px;
  min-width: 16px;
}

.popular-row.active.playing .popular-eq {
  display: flex;
}

.popular-row.active.playing .popular-streams {
  display: none;
}

.popular-eq .eq-bar {
  width: 2.5px;
  border-radius: 1px;
  background: var(--ember);
  animation: eqBounce 1s ease-in-out infinite;
}

.popular-eq .eq-bar:nth-child(1) { height: 40%; animation-delay: 0s; }
.popular-eq .eq-bar:nth-child(2) { height: 70%; animation-delay: 0.15s; }
.popular-eq .eq-bar:nth-child(3) { height: 50%; animation-delay: 0.3s; }
.popular-eq .eq-bar:nth-child(4) { height: 80%; animation-delay: 0.1s; }

@keyframes eqBounce {
  0%, 100% { transform: scaleY(0.3); }
  50% { transform: scaleY(1); }
}

/* Play button — invisible until hover */
.popular-play-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.15);
  transition: all var(--transition-fast);
  flex-shrink: 0;
  -webkit-tap-highlight-color: transparent;
}

.popular-row:hover .popular-play-btn {
  color: rgba(255, 255, 255, 0.6);
}

.popular-row.active .popular-play-btn {
  color: var(--ember);
}

.popular-play-btn svg {
  width: 18px;
  height: 18px;
}
