/* ============================================================
   PF2026 — Fiche Pokédex : section « Dans la série » (template-parts/pokedex/sec-anime.php)
   ============================================================ */

.dex-anime-debut { display: grid; grid-template-columns: auto 1fr; gap: 2px 14px; align-items: center; padding: 14px 18px; border-radius: 16px; text-decoration: none; color: #fff; background: linear-gradient(120deg, #131a3d, #2a75bb); box-shadow: 0 10px 24px rgba(19, 26, 61, .18); }
.dex-anime-debut:hover { filter: brightness(1.08); }
.dex-anime-debut__label { grid-column: 1 / -1; font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: #ffcb05; }
.dex-anime-debut__code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 13px; font-weight: 700; background: rgba(255, 255, 255, .15); padding: 3px 8px; border-radius: 7px; }
.dex-anime-debut__title { font-weight: 800; font-size: 17px; line-height: 1.3; }
.dex-anime-count { margin: 14px 0 10px; }
.dex-anime-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.dex-anime-list a { display: grid; grid-template-columns: auto 1fr; gap: 2px 10px; padding: 10px 12px; border-radius: 12px; background: var(--cream, #f7f6f2); border: 1px solid var(--border, #e3e3ef); text-decoration: none; color: inherit; }
.dex-anime-list a:hover { border-color: #2a75bb; }
.dex-anime-list__series { grid-column: 1 / -1; font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-light, #6b6b8a); }
.dex-anime-list__code { font-family: ui-monospace, monospace; font-size: 12px; font-weight: 700; color: #fff; background: #131a3d; padding: 2px 6px; border-radius: 6px; align-self: start; }
.dex-anime-list__title { font-weight: 600; font-size: 14px; line-height: 1.35; }
.dex-anime-hint { font-size: 12px; color: var(--ink-light, #6b6b8a); margin: 8px 0 0; }
.dex-anime-films { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 14px; }
.dex-anime-films__label { font-weight: 800; font-size: 14px; }
.dex-anime-films a { padding: 6px 12px; border-radius: 999px; background: #fff4c2; font-weight: 700; font-size: 13px; text-decoration: none; color: inherit; }
.dex-anime-all { display: inline-block; margin-top: 14px; font-weight: 800; color: #2a75bb; text-decoration: none; }
@media (max-width: 640px) {
  .dex-anime-list { grid-template-columns: minmax(0, 1fr); }
}

/* Captures d'épisodes (inc/anime-media.php) */
.dex-anime-debut--img { grid-template-columns: 168px auto 1fr; padding: 12px 18px 12px 12px; }
.dex-anime-debut__img { grid-row: 1 / span 2; width: 168px; height: 126px; object-fit: cover; border-radius: 10px; box-shadow: 0 0 0 3px rgba(255, 255, 255, .18); }
.dex-anime-debut--img .dex-anime-debut__label { grid-column: 2 / -1; align-self: end; }
.dex-anime-debut--img .dex-anime-debut__code { align-self: start; }
.dex-anime-debut--img .dex-anime-debut__title { align-self: start; }
.dex-anime-list a:has(.dex-anime-list__img) { grid-template-columns: 76px auto 1fr; }
.dex-anime-list__img { grid-row: 1 / span 2; width: 76px; height: 57px; object-fit: cover; border-radius: 8px; }
.dex-anime-list a:has(.dex-anime-list__img) .dex-anime-list__series { grid-column: 2 / -1; }
@media (max-width: 640px) {
  .dex-anime-debut--img { grid-template-columns: 110px minmax(0, 1fr); }
  .dex-anime-debut__img { width: 110px; height: 83px; grid-row: 1 / span 3; }
  .dex-anime-debut--img .dex-anime-debut__label, .dex-anime-debut--img .dex-anime-debut__code, .dex-anime-debut--img .dex-anime-debut__title { grid-column: 2; justify-self: start; }
}
