/* ── NexoTuner Now Playing Overlay v2.0 ── */

/* La tarjeta necesita position:relative para el overlay */
a.card {
  position: relative;
  overflow: hidden;
}

/* Overlay que aparece al hover */
.nxt-np-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.92) 0%, rgba(0,0,0,0.55) 60%, transparent 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  padding: 10px 8px 12px;
  gap: 5px;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.28s ease, transform 0.28s ease;
  z-index: 10;
  pointer-events: none;
  border-radius: inherit;
}

.nxt-np-overlay.nxt-np-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Carátula del álbum */
.nxt-np-cover-wrap {
  width: 72px;
  height: 72px;
  border-radius: 6px;
  overflow: hidden;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(0,0,0,0.5);
}

.nxt-np-cover {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Badge animado – barras musicales */
.nxt-np-badge {
  display: flex;
  align-items: flex-end;
  gap: 2px;
  height: 14px;
}

.nxt-np-badge span {
  display: block;
  width: 3px;
  background: #1db954;
  border-radius: 2px;
  animation: nxtBar 0.9s ease-in-out infinite alternate;
}

.nxt-np-badge span:nth-child(1) { height: 6px;  animation-delay: 0s; }
.nxt-np-badge span:nth-child(2) { height: 12px; animation-delay: 0.2s; }
.nxt-np-badge span:nth-child(3) { height: 8px;  animation-delay: 0.4s; }

@keyframes nxtBar {
  from { transform: scaleY(0.4); }
  to   { transform: scaleY(1.0); }
}

/* Texto: título y artista */
.nxt-np-text {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  width: 100%;
  text-align: center;
}

.nxt-np-title {
  color: #fff;
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.2;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-shadow: 0 1px 3px rgba(0,0,0,0.8);
}

.nxt-np-artist {
  color: rgba(255,255,255,0.7);
  font-size: 0.8rem;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Sutil elevación en hover */
a.card.nxt-np-active {
  transform: translateY(-1px);
  transition: transform 0.2s ease;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.265);
}