/* ==========================================
   Favorites page – cards layout
   Applies ONLY on /favorite/
========================================== */

.favorites-page {
  margin-top: 30px;
}

/* GRID */
.favorites-page .radio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 24px;
}

/* CARD */
.radio-card-favorite {
  position: relative;
  padding: 22px 16px 26px;
  border-radius: 18px;
  background: linear-gradient(180deg, #141822, #0f1218);
  border: 1px solid rgba(255,255,255,.08);
  text-align: center;
  transition: transform .2s ease, box-shadow .2s ease;
}

.radio-card-favorite:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 30px rgba(0,0,0,.45);
}

/* LOGO */
.radio-card-favorite .card-logo {
  width: 88px;
  height: 88px;
  margin: 0 auto 14px;
  border-radius: 50%;
  background: #0b0e14;
  display: flex;
  align-items: center;
  justify-content: center;
}

.radio-card-favorite .card-logo img {
  max-width: 70%;
  max-height: 70%;
  object-fit: contain;
}

/* NAME */
.radio-card-favorite .station-name {
  font-size: .95rem;
  font-weight: 600;
  color: #fff;
  margin: 6px 0 16px;
  line-height: 1.35;
}

/* PLAY BUTTON (centered feel) */
.radio-card-favorite .btn-play-card {
  margin: 0 auto;
  background: #1b2130;
  border-radius: 50%;
  width: 46px;
  height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.radio-card-favorite.is-playing .btn-play-card {
  background: #ff4757;
}

/* REMOVE FAVORITE */
.radio-card-favorite .btn-like {
  position: absolute;
  bottom: 14px;
  left: 50%;
  transform: translateX(-50%);
  background: #1b2130;
  border-radius: 10px;
  width: 34px;
  height: 34px;
}

.radio-card-favorite .btn-like.is-liked {
  background: #ff4757;
}

/* EMPTY STATE */
#favoritesEmpty {
  margin: 40px auto;
  max-width: 520px;
  text-align: center;
  color: #cbd5e1;
}
.favorites-count-badge {
  margin-left: 10px;
  font-size: .85rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 999px;
  background: #ff4757;
  color: #fff;
  vertical-align: middle;
}
.favorites-toolbar {
  display: flex;
  gap: 10px;
  align-items: center;
  margin: 20px 0;
  color: #cbd5e1;
}

.favorites-toolbar select {
  background: #0f1218;
  color: #fff;
  border: 1px solid rgba(255,255,255,.15);
  border-radius: 8px;
  padding: 6px 10px;
}
.radio-card-favorite {
  position: relative;
}

.btn-remove-fav {
  position: absolute;
  top: 12px;
  right: 12px;

  width: 28px;
  height: 28px;

  display: flex;
  align-items: center;
  justify-content: center;

  background: rgba(0,0,0,0.55);
  color: #fff;

  border: none;
  border-radius: 50%;
  cursor: pointer;

  transition: background 0.2s ease, transform 0.15s ease;
}

.btn-remove-fav:hover {
  background: #e50914;
  transform: scale(1.05);
}
.fav-inline-icon {
  display: inline-flex;
  align-items: center;
  vertical-align: middle;
  margin: 0 0px;
  color: #e50914;
}
.fav-inline-icon svg {
  width: 28px;
  height: 28px;
  color: #e50914;
}
/* =========================
   Favorites toolbar (sort)
========================= */
.favorites-toolbar {
  max-width: 1200px;      /* la fel ca .container */
  margin: 20px auto 0;    /* auto = centrare */
  padding: 0 16px;

  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
}

.favorites-toolbar label {
  font-size: 0.9rem;
  color: #ccc;
}

.favorites-toolbar select {
  padding: 8px 14px;
  border-radius: 12px;
  background: #141822;
  color: #fff;
  border: 1px solid rgba(255,255,255,0.15);
  font-size: 0.9rem;
}
