#zhRankingToastContainer {
  z-index: 1060;
}
.zh-widget-item {
  border-bottom: 1px solid rgba(0,0,0,0.05);
  padding-bottom: 4px;
}
.zh-widget-item:last-child {
  border-bottom: none;
}
.zh-widget-item .btn {
  min-width: 36px;
  text-align: center;
}
.zh-widget-item .fw-bold {
  font-size: 0.95rem;
  line-height: 1.2;
}
.zh-widget-item .text-muted {
  font-size: 0.85rem;
  line-height: 1.1;
}

/* === Estilos alternados para el widget === */
.zh-widget-ranking ul li:nth-child(odd) {
  background-color: #ffffff;
}
.zh-widget-ranking ul li:nth-child(even) {
  background-color: #f8f9fa;
}
.zh-widget-ranking ul li {
  border-radius: 6px;
  padding: 6px 8px;
  transition: background-color 0.2s ease-in-out;
}
.zh-widget-ranking ul li:hover {
  background-color: #e9ecef;
}

/* === 🎵 ZHEARD RANKING CLEAN STYLE === */

.zh-ranking .zh-song-card,
.zh-ranking .zh-featured {
  border-radius: 0.5rem !important;
  background: #fff !important;
  transition: none !important;
  transform: none !important;
  box-shadow: none;
}

/* Evita movimiento al pasar el mouse */
.zh-song-card:hover {
  transform: none !important;
  box-shadow: none;
}

/* Imagen de miniatura */
.zh-ranking .zh-song-card img,
.zh-ranking .zh-featured img {
  object-fit: cover !important;
  width: 100% !important;
  height: 100% !important;
  display: block !important;
}

/* Fondo negro mientras carga */
.zh-ranking .zh-song-card .ratio,
.zh-thumb-wrapper {
  background-color: #000 !important;
  border-radius: 0.5rem !important;
  overflow: hidden !important;
  position: relative !important;
}

/* Sin zoom ni animación al pasar el mouse */
.zh-thumb-wrapper:hover img {
  transform: none !important;
  transition: none !important;
}

/* === 🔘 BOTÓN PLAY CENTRADO === */
.zh-play-btn {
  position: absolute !important;
  top: 50% !important;
  left: 50% !important;
  transform: translate(-50%, -50%) !important;
  width: 3.5rem !important;
  height: 3.5rem !important;
  border-radius: 50% !important;
  background-color: rgba(0, 0, 0, 0.85) !important;
  color: #fff !important;
  border: none !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  transition: all 0.25s ease !important;
  z-index: 5 !important;
  box-shadow: 0 0 8px rgba(0, 0, 0, 0.3) !important;
}

/* Ícono interno */
.zh-play-btn i {
  font-size: 1.8rem !important;
  color: #fff !important;
  transition: transform 0.25s ease, color 0.25s ease !important;
}

/* Hover: cambia a rojo simulando "activo" */
.zh-play-btn:hover {
  background-color: #e63946 !important;
  transform: translate(-50%, -50%) scale(1.05) !important;
  box-shadow: 0 0 12px rgba(230, 57, 70, 0.6) !important;
}

.zh-play-btn:hover i {
  color: #fff !important;
  transform: scale(1.1) !important;
}

/* === 🥇 Top #1 decorativo === */
.zh-featured {
  border: 2px solid #ffd43b !important;
  border-radius: 0.75rem !important;
  background: #fff !important;
}

.zh-featured .badge {
  background-color: #ffd43b !important;
  color: #000 !important;
  font-weight: 600 !important;
}

/* === #2, #3, etc. === */
.zh-ranking .zh-song-card .badge {
  position: absolute !important;
  top: 8px !important;
  left: 8px !important;
  z-index: 3 !important;
  font-size: 1.3rem !important;
  background: rgba(255, 255, 255, 0.8) !important;
  color: #000 !important;
  padding: 4px 8px !important;
  border-radius: 8px !important;
  font-weight: 600 !important;
}

/* === Títulos === */
.zh-song-card h5,
.zh-featured h3 {
  font-weight: 700 !important;
  color: #000 !important;
  margin-bottom: 0.5rem !important;
}

.zh-song-card p.text-muted {
  margin-bottom: 0.5rem !important;
}

.card.zh-song-card,.card.zh-featured {
  transition: none !important;
  box-shadow: none !important;
}

.zh-ranking img {
  margin: 0 !important;
  height: 100% !important;
  max-width: 100% !important;
  border-radius: 0.5rem !important;
  object-fit: cover !important;
}

.zh-song-card {
  border: 1px solid rgba(0, 0, 0, 0.12) !important;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06) !important;
  background-color: #fff !important;
  border-radius: 0.75rem !important;
}

/* 🔸 Opción hover ligera (sin movimiento) */
.zh-song-card:hover {
  border-color: rgba(0, 0, 0, 0.25) !important;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1) !important;
  transform: none !important;
}

#zhRankingModal .modal-title {
  width: 100%;
  text-align: center;
  line-height: 1.3;
}

#zhRankingModal .modal-title .small {
  font-size: 0.9rem;
  display: block;
  text-overflow: ellipsis;
  white-space: nowrap;
  overflow: hidden;
  max-width: 90%;
  margin: 0 auto;
}

/* 🔹 En pantallas pequeñas (móviles, menos de 576px) */
@media (max-width: 576px) {
  #zhRankingModal .modal-title {
    font-size: 1rem !important;
  }
}

.zh-widget-ranking .zh-scroll {
  max-height: 350px; 
  overflow-y: auto;
  padding-right: 6px;
  margin-bottom: 8px;
  scrollbar-width: thin;
}

/* Scroll estético */
.zh-widget-ranking .zh-scroll::-webkit-scrollbar {
  width: 6px;
}

.zh-widget-ranking .zh-scroll::-webkit-scrollbar-thumb {
  background-color: rgba(0,0,0,0.15);
  border-radius: 4px;
}

.zh-widget-ranking .zh-scroll::-webkit-scrollbar-thumb:hover {
  background-color: rgba(0,0,0,0.25);
}

.zh-widget-ranking .text-end {
  position: sticky;
  bottom: 0;
   padding-top: 6px;
  padding-bottom: 6px;
 }

.zh-widget-ranking li:hover .btn-dark {
  background-color: #000 !important;
  color: #fff !important;
  border-color: #000 !important;
  opacity: 1 !important;
}

.zh-widget-ranking .btn-dark {
  position: relative;
  z-index: 5;
  box-shadow: 0 0 4px rgba(0,0,0,0.25);
}

.zh-widget-ranking .btn-dark:hover {
  background-color: #e63946 !important;
  border-color: #e63946 !important;
  color: #fff !important;
}