/* =========================================================
   Catalogue "Découvrir" et liste "À voir"
   ========================================================= */

.discover-rows { margin-top: 0; }
.section-title { display: flex; align-items: center; gap: 10px; font-size: 17px; font-weight: 600; margin: 0 0 14px; }
.section-title .ic { color: var(--accent); width: 18px; height: 18px; }
.muted-line { color: var(--text-3); margin: 0 0 10px; }

/* Puces de genres */
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.chip {
  padding: 7px 14px; border-radius: 18px; background: var(--bg-3); border: 1px solid var(--line); color: var(--text-2);
  font-size: 13px; font-weight: 500; transition: background .2s, color .2s, border-color .2s, transform .2s var(--ease-spring, ease);
}
.chip:hover { background: rgba(229,160,13,.12); border-color: rgba(229,160,13,.4); color: var(--accent); transform: translateY(-2px); }

/* Cartes du catalogue */
.dcard .owned {
  position: absolute; left: 6px; bottom: 6px; z-index: 2; display: inline-flex; align-items: center; gap: 4px;
  padding: 3px 8px 3px 5px; border-radius: 12px; background: var(--accent); color: #141414; font-size: 11px; font-weight: 700;
}
.dcard .owned .ic { width: 13px; height: 13px; }
.dcard .score {
  position: absolute; left: 6px; top: 6px; z-index: 2; display: inline-flex; align-items: center; gap: 3px;
  padding: 2px 7px; border-radius: 10px; background: rgba(0,0,0,.7); color: var(--accent); font-size: 11.5px; font-weight: 700;
  backdrop-filter: blur(4px);
}
.dcard .score .ic { width: 11px; height: 11px; }
.wl-mini {
  position: absolute; right: 6px; top: 6px; z-index: 3; width: 32px; height: 32px; border-radius: 50%; border: 0;
  display: grid; place-items: center; cursor: pointer; color: #fff; background: rgba(0,0,0,.65); backdrop-filter: blur(4px);
  opacity: 0; transform: scale(.8); transition: opacity .2s, transform .25s var(--ease-spring, ease), background .2s, color .2s;
}
.wl-mini .ic { width: 16px; height: 16px; }
.card:hover .wl-mini, .wl-mini.on, .wl-mini:focus-visible { opacity: 1; transform: none; }
.wl-mini:hover { background: rgba(0,0,0,.85); transform: scale(1.1); }
.wl-mini.on { color: var(--accent); }
.wl-mini.on .ic { animation: bounce .45s var(--ease-spring, ease); }
@media (hover: none) { .wl-mini { opacity: 1; transform: none; } }

/* Bouton "À voir" de la fiche */
.wl-btn.on { color: var(--accent); border-color: rgba(229,160,13,.45); background: rgba(229,160,13,.1); }
.wl-btn.on .ic { animation: bounce .45s var(--ease-spring, ease); }

/* Fiche titre */
.detail .tagline { font-style: italic; color: var(--text-2); margin: 0 0 12px; font-size: 15px; }
.detail .meta .rating small { color: var(--text-3); font-weight: 400; }
.detail .hero-kicker { margin-bottom: 10px; }
.where { margin-top: 26px; padding: 18px 20px; background: rgba(31,35,38,.8); border: 1px solid var(--line); border-radius: 12px; max-width: 760px; backdrop-filter: blur(6px); }
.where h2 { font-size: 16px; margin-bottom: 12px; }
.where-row { display: flex; align-items: center; gap: 14px; padding: 8px 0; border-top: 1px solid var(--line); }
.where-row:first-of-type { border-top: 0; }
.where-lbl { width: 92px; flex: none; color: var(--text-3); font-size: 12.5px; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; }
.where-logos { display: flex; flex-wrap: wrap; gap: 8px; }
.prov { display: block; width: 44px; height: 44px; border-radius: 10px; overflow: hidden; background: var(--bg-3); font-size: 9px; transition: transform .2s var(--ease-spring, ease), box-shadow .2s; }
.prov img { width: 100%; height: 100%; object-fit: cover; }
.prov:hover { transform: translateY(-3px) scale(1.06); box-shadow: 0 6px 18px rgba(0,0,0,.5); }
.where-src { margin-top: 10px; font-size: 11.5px; color: var(--text-3); }

/* Casting */
.scroller.cast-row { grid-auto-columns: 112px; }
.person { text-align: center; min-width: 0; }
.page-enter .person { animation: pop-in .5s var(--ease-out, ease) both; animation-delay: calc(var(--i, 0) * 30ms + .2s); }
.person .face { width: 96px; height: 96px; margin: 0 auto 8px; border-radius: 50%; overflow: hidden; background: var(--bg-3); display: grid; place-items: center; color: var(--text-3); box-shadow: 0 6px 18px rgba(0,0,0,.35); transition: transform .3s var(--ease-out, ease); }
.person .face img { width: 100%; height: 100%; object-fit: cover; }
.person:hover .face { transform: scale(1.06); }
.person .t { font-weight: 600; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.person .y { color: var(--text-3); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.detail .seasons .shelf-body { margin: -14px 0 0; }
.detail .seasons .shelf-body .scroller { padding-left: 0; padding-right: 0; }

/* Bande-annonce */
.modal.video { max-width: min(1100px, 94vw); }
.modal.video .body { padding: 0; }
.trailer { position: relative; aspect-ratio: 16 / 9; background: #000; }
.trailer iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

@media (max-width: 900px) {
  .where-row { flex-direction: column; align-items: flex-start; gap: 8px; }
  .scroller.cast-row { grid-auto-columns: 92px; }
  .person .face { width: 80px; height: 80px; }
}
