/* ==========================================
   3. LISTAS DE CANCIONES Y REPRODUCTOR
   ========================================== */
.track-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 10px;
}

.track-item {
  display: flex;
  align-items: center;
  gap: 6px; /* Reducido de 8px */
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-lg, 14px);
  padding: 8px 8px !important; /* Un poco más ajustado */
  height: auto !important;
  min-height: 65px !important;
}

.track-item:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(212, 175, 55, 0.4);
  box-shadow: 0 0 15px rgba(212, 175, 55, 0.15), 0 4px 15px rgba(0, 0, 0, 0.4);
}

.track-info {
  display: flex !important;
  flex-direction: column !important;
  justify-content: center !important;
  height: 100% !important;
  flex: 1 !important;
  min-width: 0;
}

.track-info h3 {
  font-size: 0.95rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.track-info p {
  font-size: 0.8rem;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.catalog-source-icon {
  margin-top: 3px;
  display: inline-flex;
  align-items: center;
  width: fit-content;
  line-height: 1;
}

.catalog-source-icon i {
  font-size: 0.88rem;
}

.catalog-source-icon.is-spotify {
  color: #1db954;
}

.catalog-source-icon.is-apple {
  color: #1db954;
}

/* REPRODUCTOR Y CARÁTULA */
.art-wrapper {
  position: relative;
  width: 50px;
  height: 50px;
  border-radius: var(--radius-sm, 8px);
  overflow: hidden;
  flex-shrink: 0;
  margin-right: 4px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4);
  background: #111;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.art-wrapper img.album-art {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.play-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.35);
  border: none;
  padding: 0;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  backdrop-filter: blur(2px);
  opacity: 0;
}

.art-wrapper:hover .play-overlay {
  opacity: 1;
}

.play-overlay i {
  color: rgba(255, 255, 255, 0.95);
  font-size: 1.2rem;
  filter: drop-shadow(0 2px 5px rgba(0, 0, 0, 0.8));
  transition: transform 0.2s ease;
}

.play-overlay:hover {
  background: rgba(0, 0, 0, 0.5);
}

.play-overlay:hover i {
  transform: scale(1.15);
  color: #fff;
}

@media (max-width: 768px) {
  .play-overlay {
    opacity: 1;
    background: rgba(0, 0, 0, 0.25);
    backdrop-filter: none;
  }
}

/* BOTÓN VOTAR GIGANTE (CORAZÓN) */
.track-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 4px;
}

.btn-votar-big {
  position: relative !important;
  background: transparent !important;
  border: none !important;
  padding: 0 !important;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 4px;
  min-width: 40px;
  height: 40px;
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.btn-votar-big:hover,
.btn-votar-big:active {
  transform: scale(1.15);
}

.btn-votar-big i.fa-heart {
  font-size: 1.6rem !important;
  color: rgba(255, 255, 255, 0.1) !important;
  transition:
    color 0.3s ease,
    filter 0.3s ease;
  margin: 0 !important;
}

@keyframes votePulseAnim {
  0% { transform: scale(1); filter: drop-shadow(0 0 0 rgba(239, 68, 68, 0)); }
  40% { transform: scale(1.3); filter: drop-shadow(0 0 15px rgba(239, 68, 68, 0.9)); }
  100% { transform: scale(1); filter: drop-shadow(0 2px 8px rgba(239, 68, 68, 0.5)); }
}

.btn-votar-big.voted i.fa-heart,
.btn-votar-big.active i.fa-heart {
  color: #ef4444 !important;
  filter: drop-shadow(0 2px 8px rgba(239, 68, 68, 0.5)) !important;
}

.btn-votar-big.anim-pulse i.fa-heart {
  animation: votePulseAnim 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.vote-number-span {
  position: static !important;
  transform: none !important;
  font-weight: 700 !important;
  font-size: 1.1rem !important;
  color: white !important;
  pointer-events: none !important;
  z-index: 2;
  text-shadow: none !important;
}

.vote-counter-pill {
  background: linear-gradient(
    135deg,
    rgba(212, 175, 55, 0.15) 0%,
    rgba(212, 175, 55, 0.05) 100%
  );
  color: var(--accent-gold);
  font-size: 0.8rem;
  font-weight: 700;
  padding: var(--space-1) 10px;
  border-radius: var(--radius-md, 12px);
  border: 1px solid rgba(212, 175, 55, 0.3);
  display: flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 2px 8px rgba(212, 175, 55, 0.1);
}

.btn-vote {
  background: var(--accent-gold);
  color: var(--bg-dark);
}

.btn-votar {
  background: transparent;
  border: none;
  color: var(--accent-gold);
  cursor: pointer;
  font-size: 1.2rem;
  padding: 6px;
  display: flex;
  align-items: center;
  transition: 0.3s;
}

.btn-votar:hover {
  transform: scale(1.1) rotate(-5deg);
  filter: drop-shadow(0 0 5px var(--accent-gold-glow));
}

/* SECCIONES ESPECÍFICAS DE RANKING/VOTOS */
.featured-top-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 30px;
}

/* TARJETA CONTENEDORA UNIFICADA - misma para mini-ranking y ranking total */
.featured-card {
  width: 100%;
  background: linear-gradient(
    135deg,
    rgba(255, 215, 0, 0.05) 0%,
    rgba(255, 255, 255, 0.02) 100%
  ) !important;
  border: 1px solid rgba(212, 175, 55, 0.2) !important;
  box-shadow:
    0 8px 32px 0 rgba(0, 0, 0, 0.37),
    inset 0 0 20px rgba(212, 175, 55, 0.02) !important;
  padding: var(--space-5) 10px 10px 10px !important;
  margin-bottom: var(--space-5);
  border-radius: var(--radius-xl, 20px) !important;
  backdrop-filter: blur(16px);
}

.compact-track-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.compact-track-list .track-item {
  padding: 8px 12px !important;
  border-bottom: none;
  margin-bottom: 0;
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-md, 12px);
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.compact-track-list .album-art {
  width: 42px;
  height: 42px;
  border-radius: var(--radius-sm, 8px);
}

.compact-track-list h3 {
  font-size: 0.9rem;
}

.compact-track-list p {
  font-size: 0.75rem;
}

/* ITEMS UNIFICADOS */
.rank-position {
  font-size: 0.85rem;
  font-weight: 700;
  min-width: 32px; /* Reducido de 42px, justo para 3 cifras */
  max-width: 32px;
  text-align: center;
  font-family: "Poppins", sans-serif;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.rank-position i {
  font-size: 1.2rem;
}

.vote-count-inline {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--accent-gold);
  margin-top: 2px;
}

.vote-count-inline i {
  font-size: 0.7rem;
}

.vote-count {
  font-weight: 700;
  color: var(--accent-gold);
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.9rem;
}

.actions-wrapper {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  margin-left: auto;
}

/* FIX ALINEACIÓN MIS VOTOS */
#my-votes-list {
  align-items: stretch !important;
  width: 100% !important;
  margin: 0 !important;
}

#my-votes-list .track-item {
  width: 100% !important;
  justify-content: space-between;
}

#my-votes-list .art-wrapper {
  width: 45px;
  height: 45px;
}

#my-votes-list .play-overlay i {
  font-size: 1rem;
}

/* YOUTUBE LINK (CSP FIX) */
.yt-link {
  color: white;
}
.marquee-anim .yt-link {
  color: inherit;
}
.yt-link:hover {
  color: var(--accent-gold) !important;
}

/* ANIMACIÓN VINILO (LOADING) */
.vinyl-loader {
  width: 50px;
  height: 50px;
  background: radial-gradient(circle at center, #111 0%, #333 30%, #111 40%, #222 60%, #111 80%, #000 100%);
  border-radius: 50%;
  border: 2px solid #333;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5), inset 0 0 5px rgba(255, 255, 255, 0.05);
  animation: spinRecord 3s linear infinite;
}

.vinyl-loader .vinyl-label {
  width: 35%;
  height: 35%;
  background: linear-gradient(135deg, var(--accent-gold) 0%, #b8860b 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #111;
}

.vinyl-loader .vinyl-hole {
  width: 25%;
  height: 25%;
  background: #000;
  border-radius: 50%;
}

.vinyl-loader .vinyl-grooves {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  border-radius: 50%;
  background: conic-gradient(from 0deg, transparent 0deg, rgba(255, 255, 255, 0.05) 45deg, transparent 90deg, transparent 180deg, rgba(255, 255, 255, 0.05) 225deg, transparent 270deg);
}

@keyframes spinRecord {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

