/* === ENCRALYS – Watchlist / Vu profil === */
/*
   ➜ Mise en page des grilles "Watchlist" et "Vu" sur le profil utilisateur :
     header (titre + compteur), grille de posters, carte avec ombre,
     état "aucun élément".
*/

.encralys-watchlist-wrapper {
  padding: 16px 0 8px;
}

.encralys-watchlist-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 8px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.encralys-watchlist-title-main {
  font-size: 20px;
  font-weight: 700;
  margin: 0;
}
.encralys-watchlist-count {
  font-size: 13px;
  opacity: 0.7;
}

.encralys-watchlist-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 18px;
}

/* Carte d’un élément dans la watchlist */
.encralys-watchlist-card {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  border-radius: 12px;
  overflow: visible;
  background: #ffffff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
  transition: transform 0.16s ease-out, box-shadow 0.16s ease-out;
}

.encralys-watchlist-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 26px rgba(15, 23, 42, 0.16);
}

/* Image poster dans la carte */
.encralys-watchlist-card img {
  border-radius: 12px 12px 0 0;
  display: block;
}

/* Titre sous le poster (sans ellipsis agressif) */
.encralys-watchlist-title {
  font-size: 13px;
  font-weight: 600;
  line-height: 1.3;
  display: block;
  white-space: normal !important;
  overflow: visible !important;
  text-overflow: unset !important;
  max-height: none !important;
  -webkit-line-clamp: unset !important;
  -webkit-box-orient: unset !important;
  margin-bottom: 4px;
  border-radius: 0 0 12px 12px;
  margin-left: 10px;
}

/* État vide quand aucun élément dans la watchlist */
.encralys-watchlist-empty {
  padding: 24px 16px;
  border-radius: 12px;
  border: 1px dashed #d1d5db;
  background: #f9fafb;
  text-align: center;
}

.encralys-watchlist-empty-title {
  margin: 0 0 6px;
  font-size: 18px;
  font-weight: 600;
}