/* ===== NEW RELEASES - BUTON PLAY/PAUSE CORECTAT ===== */
.nr-widget { 
  margin: 24px 0; 
  color: #fff; 
}

.nr-head { 
  display: flex; 
  align-items: center; 
  justify-content: space-between; 
  margin-bottom: 20px; 
}

.nr-title { 
  font: 800 24px/1.2 Montserrat, system-ui; 
  color: #fff; 
  text-decoration: none;
  letter-spacing: 0.5px;
}

.nr-strip { 
  display: flex; 
  gap: 18px; 
  overflow-x: auto; 
  padding: 8px 4px 16px 4px;
  scroll-snap-type: x mandatory; 
  -webkit-overflow-scrolling: touch; 
}

.nr-strip::-webkit-scrollbar { 
  height: 6px; 
  background: rgba(255, 255, 255, 0.05);
  border-radius: 3px;
}

.nr-strip::-webkit-scrollbar-thumb { 
  background: rgba(255, 255, 255, 0.2); 
  border-radius: 3px; 
}

.nr-strip::-webkit-scrollbar-thumb:hover { 
  background: rgba(255, 255, 255, 0.3); 
}

/* === DIMENSIUNI FIXE SI UNIFORME === */
.nr-item { 
  flex: 0 0 300px;
  scroll-snap-align: start; 
  position: relative;
  transition: transform 0.2s ease;
  width: 300px;
  height: 400px;
  display: flex;
  flex-direction: column;
}

.nr-item:hover {
  transform: translateY(-3px);
}

@media (max-width: 768px){ 
  .nr-item { 
    flex-basis: 280px; 
    width: 280px;
    height: 380px;
  }
  
  .nr-title {
    font-size: 22px;
  }
}

@media (max-width: 480px){ 
  .nr-item { 
    flex-basis: 260px; 
    width: 260px;
    height: 360px;
  }
  
  .nr-strip {
    gap: 14px;
  }
}

/* === IMAGINE PRINCIPALA === */
.nr-hero { 
  width: 100%; 
  height: 300px;
  border-radius: 16px;
  overflow: hidden; 
  position: relative; 
  background: linear-gradient(135deg, #1a1a1a 0%, #0a0a0a 100%);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
  cursor: pointer;
  transition: all 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.05);
  flex-shrink: 0;
}

.nr-hero:hover {
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.4);
  border-color: rgba(232, 93, 117, 0.3);
  transform: scale(1.02);
}

.nr-hero img { 
  width: 100%; 
  height: 100%; 
  object-fit: cover; 
  display: block; 
  transition: transform 0.5s ease;
  filter: brightness(0.95) saturate(1.1);
}

.nr-hero:hover img {
  transform: scale(1.05);
}

.nr-hero::after { 
  content: ""; 
  position: absolute; 
  inset: 0; 
  background: linear-gradient(
    to top, 
    rgba(0, 0, 0, 0.9) 0%, 
    rgba(0, 0, 0, 0.5) 30%, 
    rgba(0, 0, 0, 0.1) 60%,
    rgba(0, 0, 0, 0) 80%
  ); 
  pointer-events: none;
}

/* === TEXT PE IMAGINE === */
.nr-hero-title { 
  position: absolute; 
  left: 0; 
  right: 0; 
  bottom: 0; 
  padding: 20px 18px; 
  z-index: 2; 
  pointer-events: none;
  min-height: 100px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  background: linear-gradient(to top, rgba(0,0,0,0.7), transparent);
  border-radius: 0 0 16px 16px;
}

.nr-hero-badge {
  font: 600 10px/1.2 Montserrat, system-ui; 
  color: #e85d75;
  background: rgba(0, 0, 0, 0.7);
  padding: 4px 10px;
  border-radius: 12px;
  display: inline-block;
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  align-self: flex-start;
  border: 1px solid rgba(232, 93, 117, 0.3);
}

.nr-hero-track { 
  font: 700 20px/1.2 Montserrat, system-ui; 
  color: #fff;
  margin-bottom: 6px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  max-height: 48px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
}

.nr-hero-artist { 
  font: 500 14px/1.3 Montserrat, system-ui; 
  color: rgba(255, 255, 255, 0.85);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

/* === CARD MINI-PLAYER === */
.nr-card { 
  margin-top: 12px; 
  background: linear-gradient(135deg, rgba(32, 35, 42, 0.95), rgba(26, 28, 35, 0.98));
  backdrop-filter: blur(12px);
  border-radius: 14px; 
  padding: 16px 18px; 
  display: flex; 
  align-items: center; 
  justify-content: space-between;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.2s ease;
  min-height: 80px;
  flex-shrink: 0;
  gap: 12px;
}

.nr-item:hover .nr-card {
  background: linear-gradient(135deg, rgba(38, 42, 50, 0.98), rgba(30, 33, 40, 0.98));
  border-color: rgba(232, 93, 117, 0.25);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.nr-card-meta {
  flex: 1;
  min-width: 0;
  overflow: hidden;
}

.nr-card-title { 
  font: 600 15px/1.3 Montserrat, system-ui; 
  color: #fff;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 4px;
}

.nr-card-sub { 
  font: 500 11px/1.2 Montserrat, system-ui; 
  color: rgba(255, 255, 255, 0.7);
  letter-spacing: 0.3px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.nr-card-sub .new-badge {
  color: #e85d75;
  font-weight: 600;
  background: rgba(232, 93, 117, 0.1);
  padding: 2px 6px;
  border-radius: 4px;
  margin-right: 6px;
  border: 1px solid rgba(232, 93, 117, 0.2);
}

/* === BUTON PLAY/PAUSE COMPLET REDESIGNAT (cu pseudo-elemente) === */
.nr-pp { 
  width: 44px; 
  height: 44px; 
  border-radius: 12px; 
  border: 0; 
  outline: 0; 
  cursor: pointer;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.08));
  flex: 0 0 44px; 
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  flex-shrink: 0;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.1);
  /* Elimină triunghiul vechi */
  overflow: hidden;
}

/* Elimină triunghiul original ::before */
.nr-pp::before {
  content: none !important;
}

/* Adaugă un nou pseudo-element pentru icon */
.nr-pp::after {
  content: "";
  position: absolute;
  width: 0;
  height: 0;
  border-left: 12px solid #fff;
  border-top: 8px solid transparent;
  border-bottom: 8px solid transparent;
  transition: all 0.3s ease;
  filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.3));
  margin-left: 2px;
}

/* Efect de lumină la hover */
.nr-pp:hover {
  background: linear-gradient(135deg, rgba(232, 93, 117, 0.25), rgba(232, 93, 117, 0.15));
  transform: scale(1.08);
  box-shadow: 0 6px 16px rgba(232, 93, 117, 0.3);
  border-color: rgba(232, 93, 117, 0.4);
}

.nr-pp:active {
  transform: scale(0.95);
  box-shadow: 0 2px 8px rgba(232, 93, 117, 0.2);
}

/* === STARE DE REDARE (PLAYING) - CU PAUSE ICON === */
.nr-item.is-playing .nr-pp { 
  background: linear-gradient(135deg, #e85d75, #d64c6a);
  box-shadow: 0 6px 16px rgba(232, 93, 117, 0.4);
  border-color: rgba(232, 93, 117, 0.6);
}

/* Schimbă iconul de play în pause */
.nr-item.is-playing .nr-pp::after {
  /* Transformă triunghiul în bare de pause */
  width: 14px;
  height: 16px;
  border: none;
  background: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-left: 0;
}

/* Creează barele de pause folosind box-shadow */
.nr-item.is-playing .nr-pp::after {
  box-shadow: 
    -5px 0 0 0 #fff,
    5px 0 0 0 #fff;
  border-radius: 2px;
}

/* Animație smooth pentru schimbarea iconului */
.nr-item .nr-pp::after {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.nr-item.is-playing .nr-hero { 
  outline: 3px solid #e85d75; 
  outline-offset: 3px;
  box-shadow: 0 8px 24px rgba(232, 93, 117, 0.35);
}

.nr-item.is-playing .nr-card {
  background: linear-gradient(135deg, rgba(232, 93, 117, 0.15), rgba(210, 70, 100, 0.1));
  border-color: rgba(232, 93, 117, 0.4);
}

/* === DARK MODE VARIANT (opțional) === */
@media (prefers-color-scheme: dark) {
  .nr-card {
    background: linear-gradient(135deg, rgba(20, 22, 28, 0.95), rgba(15, 17, 22, 0.98));
  }
  
  .nr-pp {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.06));
  }
}

/* === ANIMAȚIE PENTRU BUTON LA CLICK === */
@keyframes pulse-play {
  0% { transform: scale(1); }
  50% { transform: scale(1.1); }
  100% { transform: scale(1); }
}

.nr-pp:active::after {
  animation: pulse-play 0.2s ease;
}

/* === VARIANTĂ SIMPLIFICATĂ DACA CELE DE MAI SUS NU FUNCȚIONEAZĂ === */
/* Dacă nu poți modifica pseudo-elementele, folosește această variantă: */

.nr-pp-simple {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 0;
  outline: 0;
  cursor: pointer;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.08));
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Iconul play ca element HTML real (dacă poți modifica HTML-ul) */
.play-pause-icon {
  width: 0;
  height: 0;
  border-left: 12px solid #fff;
  border-top: 8px solid transparent;
  border-bottom: 8px solid transparent;
  transition: all 0.3s ease;
  filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.3));
}

.nr-item.is-playing .play-pause-icon {
  width: 14px;
  height: 16px;
  border: none;
  background: none;
  box-shadow: 
    -5px 0 0 0 #fff,
    5px 0 0 0 #fff;
  border-radius: 2px;
}

/* === STIL PENTRU TEXT TRUNCHIAT === */
.nr-card-title.truncated,
.nr-hero-track.truncated {
  position: relative;
}

.nr-card-title.truncated::after,
.nr-hero-track.truncated::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  width: 30px;
  height: 100%;
  background: linear-gradient(to right, transparent, rgba(26, 28, 35, 0.9) 70%);
  pointer-events: none;
}
