/* =====================================================
   top-list.css — Mise en page "Top classement"
   (ex: "Top 10 des meilleurs films d'horreur de 2026")
   Regarde Movie

   Fait équipe avec top-list.html (squelette de page) et
   top-list.js (numérotation auto + "Lire la suite").
===================================================== */

/* ── Hero plus horizontal pour ce format (moins de hauteur que l'article classique) ── */
.article-hero {
  height: 320px;
}
@media (max-width: 900px) {
  .article-hero { height: 240px; }
}

/* ── Bloc "À lire aussi" à droite (sidebar), même principe que news.html ──
   Utilise les classes .sidebar-section / .sidebar-article-item déjà
   définies dans article-sidebar.css — rien à ajouter ici. */
.top-list-intro {
  font-style: italic;
  color: var(--text-dim);
  line-height: 1.8;
  margin-bottom: 8px;
}

/* ── Bandeau collage d'images en haut de l'article ── */
.top-list-collage {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 4px;
  margin: 0 0 30px;
  border-radius: 10px;
  overflow: hidden;
}
.top-list-collage img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
}
@media (max-width: 600px) {
  .top-list-collage { grid-template-columns: repeat(2, 1fr); }
  .top-list-collage img { height: 140px; }
}

/* ── Conteneur de la liste ── */
.top-list {
  display: flex;
  flex-direction: column;
}

/* ── Une entrée du classement ── */
.top-list-item {
  display: flex;
  gap: 24px;
  padding: 32px 0;
  border-top: 1px solid var(--border);
  position: relative;
}
.top-list-item:first-child { border-top: none; padding-top: 16px; }

/* ── Badge numéro (N°1, N°2...) ── */
.top-list-number {
  position: absolute;
  top: 32px;
  left: 0;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-family: var(--font-display);
  font-size: 0.95rem;
  letter-spacing: 0.5px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  box-shadow: 0 4px 12px rgba(0,0,0,0.4);
}
.top-list-item:first-child .top-list-number { top: 16px; }

/* ── Affiche ── */
.top-list-poster {
  flex-shrink: 0;
  width: 140px;
  margin-left: 8px;
}
.top-list-poster img {
  width: 100%;
  aspect-ratio: 2/3;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.4);
  display: block;
}

/* ── Bloc infos (droite de l'affiche) ── */
.top-list-info {
  flex: 1;
  min-width: 0;
}

.top-list-title {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 4px;
}

.top-list-genre {
  font-size: 0.85rem;
  color: var(--text-dim);
  margin-bottom: 8px;
}

.top-list-credit {
  font-size: 0.88rem;
  color: var(--text-dim);
  margin-bottom: 4px;
}
.top-list-credit strong { color: var(--text); font-weight: 600; }
.top-list-credit a {
  color: var(--accent);
  text-decoration: none;
  transition: opacity 0.2s;
}
.top-list-credit a:hover { opacity: 0.75; text-decoration: underline; }

.top-list-synopsis {
  font-size: 0.92rem;
  line-height: 1.65;
  color: var(--text-dim);
  margin: 12px 0;
}
.top-list-synopsis-text {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.top-list-synopsis-text.expanded {
  display: block;
  -webkit-line-clamp: unset;
}
.top-list-readmore {
  color: var(--accent);
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  background: none;
  border: none;
  font-family: inherit;
  font-size: inherit;
  cursor: pointer;
  padding: 0;
  margin-top: 4px;
  display: inline-block;
}
.top-list-readmore:hover { text-decoration: underline; }

/* ── Bandes-annonces / streaming ── */
.top-list-trailer-label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text);
  margin-top: 14px;
  margin-bottom: 8px;
}

.top-list-streaming-logos {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}
.top-list-streaming-logos img {
  height: 28px;
  width: 28px;
  border-radius: 6px;
  object-fit: cover;
}

.top-list-streaming-credit {
  font-size: 0.75rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 4px;
}
.top-list-streaming-credit a {
  color: var(--text-dim);
  font-weight: 700;
  text-decoration: none;
}
.top-list-streaming-credit a:hover { color: var(--accent); }

/* ── Responsive ── */
@media (max-width: 600px) {
  .top-list-item {
    gap: 12px;
    padding: 20px 0;
  }
  .top-list-number {
    width: 26px;
    height: 26px;
    font-size: 0.8rem;
    top: 20px;
  }
  .top-list-item:first-child .top-list-number { top: 8px; }
  .top-list-poster {
    width: 90px;
    margin-left: 4px;
    flex-shrink: 0;
  }
  .top-list-title { font-size: 1rem; margin-bottom: 2px; }
  .top-list-genre { font-size: 0.75rem; margin-bottom: 4px; }
  .top-list-credit { font-size: 0.78rem; }
  .top-list-synopsis { font-size: 0.82rem; margin: 8px 0; }
  .top-list-synopsis-text { -webkit-line-clamp: 2; }
  .top-list-trailer-label { font-size: 0.78rem; margin-top: 8px; }
}
