/* ============================================================
   PF2026 — Mini-site « Série Pokémon » (/serie-pokemon/)
   Gabarit : serie-pokemon.php + template-parts/anime/*.php · données : inc/anime-hub.php
   Identité : écran de télévision, couleurs de la marque (jaune, bleu, rouge) et
   une couleur d'accent par saison / film (variable --sc, posée sur <main>).
   ============================================================ */

.an {
  --an-ink: #131a3d;
  --an-muted: #5b6283;
  --an-bg: #f6f7fc;
  --an-line: #e2e5f2;
  --an-yellow: #ffcb05;
  --an-blue: #2a75bb;
  --an-red: #e3350d;
  --an-card: #fff;
  --an-radius: 20px;
  --an-display: 'Baloo 2', var(--font);
  --sc: #1a3a8f;
  --sc-soft: color-mix(in srgb, var(--sc) 12%, #fff);
  --sc-mid: color-mix(in srgb, var(--sc) 35%, #fff);
  --sc-deep: color-mix(in srgb, var(--sc) 80%, #000);
  background: var(--an-bg);
  color: var(--an-ink);
  overflow-x: clip;
}
.an .sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.an a { color: inherit; }
.an img { max-width: 100%; }

/* ---------- Fil d'Ariane + barre du mini-site ---------- */
.an-crumbs { background: var(--an-ink); }
.an-crumbs .breadcrumb { margin: 0; padding: 9px 0; background: none; color: rgba(255, 255, 255, .65); font-size: 13px; }
.an-crumbs .breadcrumb a { color: rgba(255, 255, 255, .88); }
.an-crumbs .breadcrumb-current { color: #fff; }

.an-bar { position: sticky; top: 66px; z-index: 60; background: rgba(255, 255, 255, .94); backdrop-filter: blur(10px); border-bottom: 1px solid var(--an-line); box-shadow: 0 6px 20px rgba(19, 26, 61, .05); }
.an-bar__inner { display: flex; align-items: center; gap: 18px; min-height: 60px; }
.an-bar__brand { display: flex; align-items: center; gap: 10px; text-decoration: none; flex-shrink: 0; }
.an-bar__brand b { display: block; font-family: var(--an-display); font-size: 19px; line-height: 1; color: var(--an-ink); }
.an-bar__brand small { display: block; font-size: 11px; color: var(--an-muted); font-weight: 600; }
.an-bar__tv { position: relative; width: 44px; height: 36px; border-radius: 9px; background: var(--an-ink); display: grid; place-items: center; box-shadow: inset 0 0 0 3px var(--an-yellow); }
.an-bar__tv::before, .an-bar__tv::after { content: ""; position: absolute; top: -7px; width: 2px; height: 9px; background: var(--an-ink); border-radius: 2px; }
.an-bar__tv::before { left: 15px; transform: rotate(-25deg); }
.an-bar__tv::after { right: 15px; transform: rotate(25deg); }
.an-bar__tv img { width: 30px; height: 30px; object-fit: contain; }
.an-bar__nav { display: flex; align-items: center; gap: 4px; flex: 1; }
.an-bar__link { display: inline-flex; align-items: center; gap: 4px; padding: 8px 13px; border-radius: 999px; font-weight: 700; font-size: 14px; color: var(--an-muted); text-decoration: none; cursor: pointer; list-style: none; white-space: nowrap; }
.an-bar__link::-webkit-details-marker { display: none; }
.an-bar__link:hover, .an-bar__link.is-active, .an-bar__seasons[open] > .an-bar__link { background: var(--an-ink); color: #fff; }
.an-bar__seasons { position: relative; }
.an-bar__panel { position: absolute; top: calc(100% + 10px); left: 0; width: min(880px, 92vw); max-height: 70vh; overflow: auto; background: #fff; border: 1px solid var(--an-line); border-radius: 18px; box-shadow: 0 24px 60px rgba(19, 26, 61, .18); padding: 18px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.an-bar__cycle-name { font-family: var(--an-display); font-size: 15px; margin: 0 0 6px; }
.an-bar__cycle-name small { display: block; font-family: var(--font); font-size: 11px; font-weight: 600; color: var(--an-muted); }
.an-bar__cycle ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.an-bar__cycle a { display: flex; align-items: center; gap: 8px; padding: 5px 7px; border-radius: 9px; font-size: 13px; font-weight: 600; text-decoration: none; line-height: 1.25; }
.an-bar__cycle a:hover, .an-bar__cycle a[aria-current] { background: color-mix(in srgb, var(--c) 14%, #fff); }
.an-bar__num { flex-shrink: 0; width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center; font-size: 11px; font-weight: 800; color: #fff; background: var(--c); }

.an-search { position: relative; width: 260px; flex-shrink: 0; }
.an-search input { width: 100%; height: 40px; padding: 0 14px 0 38px; border-radius: 999px; border: 1px solid var(--an-line); background: #f3f4fa url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%235b6283' stroke-width='2'%3E%3Ccircle cx='7' cy='7' r='5'/%3E%3Cpath d='m11 11 4 4'/%3E%3C/svg%3E") no-repeat 14px 50%; font: inherit; font-size: 14px; color: var(--an-ink); }
.an-search input:focus { outline: 2px solid var(--an-blue); outline-offset: 1px; background-color: #fff; }
.an-search__results { position: absolute; right: 0; top: calc(100% + 8px); width: min(440px, 92vw); max-height: 60vh; overflow: auto; list-style: none; margin: 0; padding: 6px; background: #fff; border: 1px solid var(--an-line); border-radius: 16px; box-shadow: 0 20px 50px rgba(19, 26, 61, .18); }
.an-search__results a { display: grid; grid-template-columns: auto 1fr; gap: 2px 10px; padding: 8px 10px; border-radius: 10px; text-decoration: none; font-size: 14px; }
.an-search__results a:hover, .an-search__results a.is-focus { background: #f1f3fb; }
.an-search__results small { grid-column: 2; color: var(--an-muted); font-size: 12px; }
.an-search__results .an-search__empty { padding: 12px; color: var(--an-muted); font-size: 14px; }

/* ---------- Éléments communs ---------- */
.an-eyebrow { display: inline-block; font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--sc-deep); background: #fff; border: 1px solid var(--sc-mid); padding: 6px 12px; border-radius: 999px; margin-bottom: 16px; text-decoration: none; }
.an-eyebrow--link:hover { background: var(--sc-soft); }
.an-code { display: inline-block; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12px; font-weight: 700; letter-spacing: .02em; padding: 2px 7px; border-radius: 6px; background: var(--an-ink); color: #fff; }
.an-code--lg { font-size: 15px; padding: 4px 10px; background: var(--sc); }
.an-btn { display: inline-flex; align-items: center; gap: 8px; padding: 12px 20px; border-radius: 999px; font-weight: 800; font-size: 15px; text-decoration: none; background: #fff; color: var(--an-ink); border: 2px solid var(--an-ink); transition: transform .15s ease, box-shadow .15s ease; }
.an-btn:hover { transform: translateY(-2px); box-shadow: 0 8px 18px rgba(19, 26, 61, .15); }
.an-btn--primary { background: var(--an-yellow); border-color: var(--an-ink); box-shadow: 0 4px 0 var(--an-ink); }
.an-btn--primary:hover { box-shadow: 0 6px 0 var(--an-ink); }
.an-btn--ghost { border-color: transparent; background: rgba(255, 255, 255, .6); }
.an-link { display: inline-block; font-weight: 800; font-size: 14px; color: var(--an-blue) !important; text-decoration: none; margin-top: 10px; }
.an-link:hover { text-decoration: underline; }
.an-link--muted { color: var(--an-muted) !important; margin-left: 12px; }
.an-note { font-size: 13px; color: var(--an-muted); margin: 12px 0 0; }
.an-muted { color: var(--an-muted); }
.an-chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.an-chips a, .an-chips span { display: inline-flex; align-items: baseline; gap: 6px; padding: 7px 13px; border-radius: 999px; background: #fff; border: 1px solid var(--an-line); font-weight: 700; font-size: 14px; text-decoration: none; }
.an-chips a:hover { border-color: var(--an-ink); }
.an-chips small { font-weight: 600; font-size: 12px; color: var(--an-muted); }
.an-chips--plain span { font-weight: 600; }
.an-tag { display: inline-block; font-size: 12px; font-weight: 700; padding: 3px 9px; border-radius: 999px; background: var(--sc-soft); color: var(--sc-deep); }

/* ---------- Héros ---------- */
.an-hero { position: relative; overflow: hidden; padding: 46px 0 56px; background:
  radial-gradient(900px 420px at 85% 10%, var(--sc-mid), transparent 60%),
  radial-gradient(600px 300px at 0% 100%, var(--sc-soft), transparent 70%),
  linear-gradient(180deg, #fff, var(--an-bg)); }
.an-hero::before { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .5; background-image: radial-gradient(color-mix(in srgb, var(--sc) 30%, transparent) 1.2px, transparent 1.3px); background-size: 22px 22px; mask-image: linear-gradient(90deg, transparent 40%, #000 90%); -webkit-mask-image: linear-gradient(90deg, transparent 40%, #000 90%); }
.an-hero__inner { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); gap: 36px; align-items: center; }
.an-hero__title { font-family: var(--an-display); font-weight: 800; font-size: clamp(40px, 6vw, 72px); line-height: .95; letter-spacing: -.02em; margin: 0 0 12px; color: var(--an-ink); }
.an-hero__title small { display: block; font-size: .36em; letter-spacing: .02em; color: var(--sc-deep); margin-bottom: 6px; }
.an-hero__title--ep { font-size: clamp(32px, 4.6vw, 54px); line-height: 1.02; }
.an-hero__subtitle { display: block; font-size: .5em !important; color: var(--sc-deep) !important; margin-top: 6px; }
.an-hero__en { margin: 0 0 14px; font-weight: 700; color: var(--an-muted); }
.an-hero__lead { font-size: 17px; line-height: 1.65; color: #353c60; max-width: 680px; margin: 0; }
.an-hero__cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.an-hero__mons { position: relative; height: 300px; }
.an-hero__mons img { position: absolute; width: 150px; height: 150px; object-fit: contain; filter: drop-shadow(0 14px 18px rgba(19, 26, 61, .22)); animation: an-float 6s ease-in-out infinite; animation-delay: calc(var(--i) * -1.2s); }
.an-hero__mons img:nth-child(1) { left: 28%; top: 18%; width: 200px; height: 200px; z-index: 2; }
.an-hero__mons img:nth-child(2) { left: 0; top: 0; }
.an-hero__mons img:nth-child(3) { right: 0; top: 4%; }
.an-hero__mons img:nth-child(4) { left: 2%; bottom: 0; width: 130px; height: 130px; }
.an-hero__mons img:nth-child(5) { right: 6%; bottom: 0; width: 120px; height: 120px; }
.an-hero__mons--ep img:nth-child(1) { left: 22%; top: 14%; width: 210px; height: 210px; }
.an-hero__mons--ep img:nth-child(2) { left: 0; top: auto; bottom: 0; }
.an-hero__mons--ep img:nth-child(3) { right: 0; top: 0; }
@keyframes an-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

.an-stats { list-style: none; margin: 22px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.an-stats li { background: #fff; border: 1px solid var(--an-line); border-radius: 16px; padding: 10px 16px; box-shadow: 0 4px 0 var(--an-line); }
.an-stats b { display: block; font-family: var(--an-display); font-size: 28px; line-height: 1; }
.an-stats span { font-size: 12px; font-weight: 700; color: var(--an-muted); text-transform: uppercase; letter-spacing: .05em; }

/* Accueil : téléviseur */
.an-hero--hub { --sc: #2a75bb; padding-bottom: 40px; }
.an-tv { justify-self: center; width: min(420px, 100%); }
.an-tv__screen { position: relative; aspect-ratio: 4 / 3; border-radius: 34px; overflow: hidden; border: 14px solid var(--an-ink); box-shadow: 0 30px 60px rgba(19, 26, 61, .28), inset 0 0 0 4px var(--an-yellow); background:
  radial-gradient(circle at 50% 120%, #ffe680 0 30%, transparent 31%),
  linear-gradient(180deg, #8fd3ff 0%, #c9ecff 55%, #b8e58f 56%, #8fcf6a 100%); }
.an-tv__screen::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: repeating-linear-gradient(0deg, rgba(255, 255, 255, .08) 0 2px, transparent 2px 4px); }
.an-tv__onair { position: absolute; left: 14px; top: 12px; z-index: 3; font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: #fff; background: var(--an-red); padding: 4px 9px; border-radius: 999px; animation: an-blink 2.4s steps(1) infinite; }
@keyframes an-blink { 50% { opacity: .55; } }
.an-tv__mon { position: absolute; object-fit: contain; filter: drop-shadow(0 10px 10px rgba(19, 26, 61, .25)); animation: an-float 5s ease-in-out infinite; }
.an-tv__mon--0 { width: 46%; left: 27%; top: 6%; animation-delay: -1s; }
.an-tv__mon--1 { width: 30%; left: 4%; bottom: 8%; }
.an-tv__mon--2 { width: 30%; left: 35%; bottom: 2%; z-index: 2; animation-delay: -2s; }
.an-tv__mon--3 { width: 30%; right: 4%; bottom: 8%; animation-delay: -3s; }
.an-tv__mon--4 { width: 22%; right: 6%; top: 10%; animation-delay: -4s; }
.an-tv__foot { display: flex; justify-content: space-between; padding: 0 70px; }
.an-tv__foot span { width: 16px; height: 26px; background: var(--an-ink); border-radius: 0 0 8px 8px; }
.an-now { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin-top: 30px; padding: 12px 18px; border-radius: 16px; background: var(--an-ink); color: #fff !important; text-decoration: none; position: relative; z-index: 1; }
.an-now__tag { font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--an-yellow); }
.an-now__date { margin-left: auto; font-size: 13px; opacity: .75; }
.an-now:hover b { text-decoration: underline; }

/* ---------- Sections ---------- */
.an-sec { padding: 46px 0; }
.an-sec--tight { padding: 30px 0; }
.an-sec__head { margin-bottom: 22px; max-width: 760px; }
.an-sec__head--row { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; max-width: none; }
.an-sec__title { font-family: var(--an-display); font-size: clamp(28px, 3.4vw, 40px); line-height: 1.05; margin: 0 0 8px; }
.an-sec__title--sm { font-size: 26px; }
.an-sec__lead { color: var(--an-muted); font-size: 16px; line-height: 1.6; margin: 0; }

/* Les deux séries */
.an-series { padding-top: 10px; }
.an-series__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.an-series__card { position: relative; overflow: hidden; border-radius: 26px; padding: 26px 26px 22px; background: #fff; border: 1px solid var(--an-line); box-shadow: 0 10px 30px rgba(19, 26, 61, .06); }
.an-series__card--ps { background: linear-gradient(135deg, #fff 55%, #fff6cc); }
.an-series__card--lh { background: linear-gradient(135deg, #fff 55%, #ece7ff); }
.an-series__mons { position: absolute; right: 12px; top: 10px; display: flex; }
.an-series__mons img { width: 84px; height: 84px; margin-left: -22px; object-fit: contain; filter: drop-shadow(0 6px 8px rgba(19, 26, 61, .2)); }
.an-series__years { font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; color: var(--an-muted); margin: 0 0 6px; }
.an-series__name { font-family: var(--an-display); font-size: 30px; margin: 0 0 8px; max-width: 60%; line-height: 1.05; }
.an-series__card p { color: #3a4166; line-height: 1.6; margin: 0; }

/* Frise des saisons */
.an-cycle { margin-top: 26px; }
.an-cycle__head { display: flex; align-items: center; gap: 14px; margin-bottom: 12px; }
.an-cycle__num { flex-shrink: 0; width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; font-family: var(--an-display); font-size: 24px; color: var(--an-ink); background: var(--an-yellow); box-shadow: 0 4px 0 var(--an-ink); }
.an-cycle__name { font-family: var(--an-display); font-size: 24px; margin: 0; line-height: 1; }
.an-cycle__meta { margin: 2px 0 0; color: var(--an-muted); font-size: 14px; font-weight: 600; }
.an-cycle__row { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }
.an-scard { position: relative; display: flex; flex-direction: column; min-height: 168px; padding: 16px; border-radius: 20px; text-decoration: none; overflow: hidden; color: var(--an-ink); background: linear-gradient(160deg, #fff 40%, color-mix(in srgb, var(--c) 22%, #fff)); border: 1px solid color-mix(in srgb, var(--c) 30%, #fff); box-shadow: 0 6px 0 color-mix(in srgb, var(--c) 35%, #fff); transition: transform .18s ease, box-shadow .18s ease; }
.an-scard:hover { transform: translateY(-4px); box-shadow: 0 10px 0 color-mix(in srgb, var(--c) 45%, #fff); }
.an-scard__mons { position: absolute; right: -6px; bottom: -6px; display: flex; align-items: flex-end; }
.an-scard__mons img { width: 64px; height: 64px; margin-left: -18px; object-fit: contain; filter: drop-shadow(0 4px 6px rgba(0, 0, 0, .15)); transition: transform .2s ease; }
.an-scard__mons img:first-child { width: 86px; height: 86px; }
.an-scard:hover .an-scard__mons img { transform: translateY(-4px) rotate(-3deg); }
.an-scard__num { align-self: flex-start; font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; color: #fff; background: var(--c); padding: 4px 9px; border-radius: 999px; }
.an-scard__title { font-family: var(--an-display); font-size: 21px; line-height: 1.05; margin: 10px 0 6px; max-width: 75%; }
.an-scard__meta { font-size: 12px; font-weight: 600; color: var(--an-muted); max-width: 70%; margin-top: auto; }

/* Derniers épisodes */
.an-fresh { background: #fff; border-top: 1px solid var(--an-line); border-bottom: 1px solid var(--an-line); }
.an-fresh__cols { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; }
.an-fresh__col h3 { font-size: 15px; text-transform: uppercase; letter-spacing: .06em; color: var(--an-muted); margin: 0 0 10px; }
.an-fresh__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.an-fresh__list a { display: grid; grid-template-columns: auto 1fr auto; gap: 10px; align-items: center; padding: 9px 12px; border-radius: 12px; background: var(--an-bg); text-decoration: none; font-weight: 600; font-size: 14px; }
.an-fresh__list a:hover { background: #eceffa; }
.an-fresh__list time { font-size: 12px; color: var(--an-muted); white-space: nowrap; }

/* Films */
.an-hscroll { display: grid; grid-auto-flow: column; grid-auto-columns: 200px; gap: 16px; overflow-x: auto; padding: 6px 2px 18px; scroll-snap-type: x mandatory; scrollbar-width: thin; }
.an-hscroll > * { scroll-snap-align: start; }
.an-fcard { position: relative; display: flex; flex-direction: column; aspect-ratio: 2 / 3; border-radius: 18px; overflow: hidden; text-decoration: none; color: #fff !important; background:
  radial-gradient(circle at 50% 35%, color-mix(in srgb, var(--c) 45%, #fff) 0 22%, transparent 60%),
  linear-gradient(170deg, color-mix(in srgb, var(--c) 85%, #fff) 0%, var(--c) 45%, color-mix(in srgb, var(--c) 60%, #000) 100%);
  box-shadow: 0 12px 26px color-mix(in srgb, var(--c) 35%, transparent); transition: transform .2s ease; }
.an-fcard:hover { transform: translateY(-5px) rotate(-.6deg); }
.an-fcard__num { position: absolute; left: 10px; top: 10px; z-index: 2; font-size: 11px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; background: rgba(0, 0, 0, .35); padding: 4px 9px; border-radius: 999px; }
.an-fcard__art { position: relative; flex: 1; }
.an-fcard__mon { position: absolute; object-fit: contain; filter: drop-shadow(0 10px 12px rgba(0, 0, 0, .35)); }
.an-fcard__mon--0 { width: 76%; left: 12%; top: 12%; z-index: 1; }
.an-fcard__mon--1 { width: 44%; right: -4%; top: 44%; opacity: .95; }
.an-fcard__body { position: relative; z-index: 2; padding: 12px 12px 14px; background: linear-gradient(transparent, rgba(0, 0, 0, .55)); }
.an-fcard__title { display: block; font-family: var(--an-display); font-size: 16px; line-height: 1.1; }
.an-fcard__sub { display: block; font-size: 12px; opacity: .85; margin-top: 2px; }
.an-fcard__year { display: block; font-size: 12px; font-weight: 800; color: var(--an-yellow); margin-top: 4px; }
.an-fcard--live { background: linear-gradient(170deg, #1f2937, #0b1020); }

/* Panneaux */
.an-split__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; align-items: start; }
.an-panel { background: #fff; border: 1px solid var(--an-line); border-radius: 24px; padding: 24px; box-shadow: 0 8px 26px rgba(19, 26, 61, .05); }
.an-panel__title { font-family: var(--an-display); font-size: 25px; margin: 0 0 8px; }
.an-panel p { color: #3a4166; line-height: 1.6; margin: 0 0 14px; }
.an-mini-list { margin: 0; padding: 0; list-style: none; display: grid; gap: 6px; }
.an-mini-list li { display: flex; justify-content: space-between; gap: 10px; padding: 9px 12px; background: var(--an-bg); border-radius: 12px; font-size: 14px; }
.an-mini-list span { color: var(--an-muted); font-size: 13px; }

/* Top Pokémon */
.an-stars__grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; }
.an-stars__grid a { position: relative; display: flex; flex-direction: column; align-items: center; padding: 14px 8px 12px; background: #fff; border: 1px solid var(--an-line); border-radius: 18px; text-decoration: none; text-align: center; transition: transform .15s ease; }
.an-stars__grid a:hover { transform: translateY(-3px); }
.an-stars__grid img { width: 84px; height: 84px; object-fit: contain; }
.an-stars__grid b { font-size: 14px; }
.an-stars__grid span { font-size: 12px; color: var(--an-muted); }
.an-stars__rank { position: absolute; left: 10px; top: 8px; font-family: var(--an-display); color: var(--an-red) !important; font-size: 15px !important; }

/* Actus */
.an-news__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.an-post { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--an-line); border-radius: 18px; overflow: hidden; text-decoration: none; }
.an-post__img { display: block; aspect-ratio: 16 / 9; background: #e9ecf7; overflow: hidden; }
.an-post__img img { width: 100%; height: 100%; object-fit: cover; }
.an-post__date { font-size: 12px; color: var(--an-muted); padding: 12px 14px 0; }
.an-post__title { font-weight: 700; padding: 4px 14px 16px; line-height: 1.35; }
.an-post:hover .an-post__title { color: var(--an-blue); }

/* FAQ */
.an-faq__inner { max-width: 860px; }
.an-faq__item { background: #fff; border: 1px solid var(--an-line); border-radius: 16px; padding: 4px 18px; margin-top: 10px; }
.an-faq__item summary { cursor: pointer; font-weight: 800; padding: 12px 0; }
.an-faq__item p { margin: 0 0 14px; line-height: 1.65; color: #3a4166; }

/* ---------- Page saison ---------- */
.an-facts { margin-top: -26px; position: relative; z-index: 2; }
.an-facts__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; margin: 0; background: #fff; border: 1px solid var(--an-line); border-radius: 22px; box-shadow: 0 14px 34px rgba(19, 26, 61, .08); overflow: hidden; }
.an-facts__grid > div { padding: 16px 20px; border-right: 1px solid var(--an-line); border-bottom: 1px solid var(--an-line); }
.an-facts__grid dt { font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .07em; color: var(--sc-deep); margin-bottom: 4px; }
.an-facts__grid dd { margin: 0; font-weight: 600; line-height: 1.45; }
.an-facts__grid dd b { font-family: var(--an-display); font-size: 26px; line-height: 1; }
.an-facts__grid dd span { color: var(--an-muted); font-size: 13px; }
.an-facts__sub { display: block; color: var(--an-muted); font-size: 13px; font-weight: 500; }
.an-facts__wide { grid-column: span 3; background: var(--sc-soft); border-right: 0 !important; border-bottom: 0 !important; }

.an-layout { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 28px; padding-top: 30px; padding-bottom: 30px; align-items: start; }
.an-layout__side { display: grid; gap: 18px; position: sticky; top: 140px; }
.an-block { background: #fff; border: 1px solid var(--an-line); border-radius: 24px; padding: 26px; margin-bottom: 22px; box-shadow: 0 8px 24px rgba(19, 26, 61, .04); }
.an-block__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 14px; }
.an-block__title { font-family: var(--an-display); font-size: 26px; line-height: 1.1; margin: 0 0 12px; }
.an-block__head .an-block__title { margin: 0; }
.an-block__sub { font-size: 15px; text-transform: uppercase; letter-spacing: .06em; color: var(--an-muted); margin: 20px 0 10px; }
.an-block__lead { color: var(--an-muted); margin: -4px 0 14px; font-size: 14px; }
.an-card { background: #fff; border: 1px solid var(--an-line); border-radius: 22px; padding: 20px; }
.an-card__title { font-family: var(--an-display); font-size: 20px; margin: 0 0 10px; }
.an-card__lead { color: var(--an-muted); font-size: 13px; margin: -6px 0 10px; }
.an-card p { font-size: 14px; line-height: 1.55; }
.an-card--film .an-fcard { max-width: 220px; margin: 0 auto; }

.an-arcs { list-style: none; margin: 0; padding: 0 0 0 22px; border-left: 3px dashed var(--sc-mid); display: grid; gap: 18px; }
.an-arcs__item { position: relative; }
.an-arcs__item::before { content: ""; position: absolute; left: -32px; top: 4px; width: 17px; height: 17px; border-radius: 50%; background: #fff; border: 4px solid var(--sc); }
.an-arcs__range { font-family: ui-monospace, monospace; font-size: 12px; font-weight: 700; color: var(--sc-deep); background: var(--sc-soft); padding: 2px 8px; border-radius: 6px; }
.an-arcs__item h3 { font-size: 19px; margin: 6px 0 4px; }
.an-arcs__item p { margin: 0; color: #3a4166; line-height: 1.6; }

.an-team { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.an-team a { display: flex; flex-direction: column; align-items: center; text-align: center; text-decoration: none; padding: 8px 4px; border-radius: 14px; background: var(--sc-soft); }
.an-team a:hover { background: var(--sc-mid); }
.an-team img { width: 64px; height: 64px; object-fit: contain; }
.an-team span { font-size: 12px; font-weight: 700; }

.an-song { display: grid; grid-template-columns: auto 1fr; gap: 0 8px; margin: 0 0 8px; font-size: 14px; }
.an-song small { grid-column: 2; color: var(--an-muted); font-size: 12px; }
.an-song__lang { grid-row: span 2; align-self: start; font-size: 10px; font-weight: 800; color: #fff; background: var(--an-ink); padding: 3px 6px; border-radius: 6px; margin-top: 2px; }
.an-song__more summary { cursor: pointer; font-weight: 700; font-size: 13px; color: var(--an-blue); margin: 4px 0 8px; }
.an-apple { display: flex; align-items: center; gap: 10px; margin-top: 10px; padding: 8px; border-radius: 14px; background: linear-gradient(135deg, #fff1f4, #f6f0ff); text-decoration: none; }
.an-apple img { width: 48px; height: 48px; border-radius: 8px; flex-shrink: 0; }
.an-apple b { display: block; font-size: 13px; line-height: 1.3; }
.an-apple small { color: #d6224f; font-weight: 700; font-size: 12px; }
.an-apple-mini { display: inline-flex; padding: 5px 11px; border-radius: 999px; background: #1d1d1f; color: #fff !important; font-size: 12px; font-weight: 700; text-decoration: none; white-space: nowrap; }

.an-eptools { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.an-eptools__q input { height: 38px; width: 240px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--an-line); font: inherit; font-size: 14px; background: var(--an-bg); }
.an-eptools__key { font-size: 14px; font-weight: 700; display: inline-flex; gap: 6px; align-items: center; cursor: pointer; }
.an-eplist { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.an-ep__link { display: grid; grid-template-columns: 74px minmax(0, 1fr) 84px; gap: 14px; align-items: start; padding: 14px; border-radius: 16px; border: 1px solid var(--an-line); text-decoration: none; transition: border-color .15s ease, background .15s ease; }
.an-ep__link:hover { border-color: var(--sc); background: var(--sc-soft); }
.an-ep__num { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; }
.an-ep__num b { font-family: ui-monospace, monospace; font-size: 13px; color: #fff; background: var(--sc); padding: 3px 7px; border-radius: 7px; }
.an-ep__num small { font-size: 12px; color: var(--an-muted); font-weight: 600; }
.an-ep__title { display: block; font-weight: 800; font-size: 16px; line-height: 1.3; }
.an-ep__vo { font-style: normal; font-size: 12px; font-weight: 600; color: var(--an-muted); }
.an-ep__syn { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; margin-top: 5px; font-size: 14px; line-height: 1.55; color: #3a4166; }
.an-ep__tags { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 8px; }
.an-ep__side { display: flex; flex-direction: column; align-items: center; gap: 2px; text-align: center; }
.an-ep__side img { width: 56px; height: 56px; object-fit: contain; }
.an-ep__side time { font-size: 11px; color: var(--an-muted); font-weight: 600; }
.an-empty { color: var(--an-muted); padding: 10px 0; }
.an-archives { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.an-archives a { display: flex; gap: 12px; align-items: baseline; padding: 9px 12px; border-radius: 12px; background: var(--an-bg); text-decoration: none; font-weight: 600; font-size: 14px; }
.an-archives a:hover { background: var(--sc-soft); }
.an-archives time { flex-shrink: 0; width: 72px; font-size: 12px; color: var(--an-muted); }

.an-pager { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; padding-bottom: 40px; }
.an-pager a { display: flex; flex-direction: column; gap: 2px; padding: 16px 20px; border-radius: 20px; text-decoration: none; background: #fff; border: 1px solid var(--an-line); border-bottom: 5px solid var(--c); }
.an-pager a:hover { background: color-mix(in srgb, var(--c) 8%, #fff); }
.an-pager small { color: var(--an-muted); font-weight: 700; font-size: 12px; text-transform: uppercase; letter-spacing: .05em; }
.an-pager b { font-family: var(--an-display); font-size: 20px; }
.an-pager__next { text-align: right; }

/* ---------- Page épisode ---------- */
.an-ephead__num { display: flex; align-items: center; gap: 10px; margin: 0 0 10px; font-weight: 700; color: var(--an-muted); }
.an-ephead__alt { list-style: none; padding: 0; margin: 0 0 14px; display: grid; gap: 4px; color: #3a4166; }
.an-ephead__alt em { color: var(--an-muted); }
.an-flag { margin-right: 6px; }
.an-dates { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.an-dates li { background: #fff; border: 1px solid var(--an-line); border-radius: 14px; padding: 8px 14px; }
.an-dates span { display: block; font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; color: var(--sc-deep); }
.an-dates b { font-size: 15px; }
.an-dates small { display: block; font-size: 12px; color: var(--an-muted); }
.an-synopsis__text { font-size: 18px; line-height: 1.75; margin: 0; color: #232a4d; }
.an-synopsis__text::first-letter { font-family: var(--an-display); font-size: 3.1em; float: left; line-height: .85; margin: 6px 8px 0 0; color: var(--sc); }
.an-synopsis__text--todo { font-size: 15px; color: var(--an-muted); font-style: italic; }
.an-synopsis__text--todo::first-letter { all: unset; }
.an-why { margin: 18px 0 0; padding: 14px 16px; border-radius: 14px; background: var(--sc-soft); line-height: 1.6; }
.an-keys { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.an-keys li { display: flex; align-items: center; gap: 10px; padding: 8px 12px; border-radius: 14px; background: var(--an-bg); font-weight: 700; }
.an-keys__ico { font-size: 18px; }
.an-keys img { width: 40px; height: 40px; margin-left: auto; object-fit: contain; }
.an-mons { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 10px; }
.an-mons a { position: relative; display: flex; flex-direction: column; align-items: center; padding: 10px 6px; border-radius: 16px; background: var(--an-bg); text-decoration: none; text-align: center; transition: transform .15s ease, background .15s ease; }
.an-mons a:hover { transform: translateY(-3px); background: var(--sc-soft); }
.an-mons img { width: 72px; height: 72px; object-fit: contain; }
.an-mons__name { font-size: 13px; font-weight: 700; line-height: 1.2; }
.an-mons__new { position: absolute; top: 6px; right: 6px; font-size: 9px; font-weight: 800; text-transform: uppercase; color: var(--an-ink); background: var(--an-yellow); padding: 2px 6px; border-radius: 999px; }
.an-mons li.is-new a { background: #fff8d6; box-shadow: inset 0 0 0 2px var(--an-yellow); }
.an-mons--lg { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
.an-mons--lg img { width: 110px; height: 110px; }
.an-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.an-epnav { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.an-epnav a { display: flex; flex-direction: column; gap: 4px; padding: 14px 18px; border-radius: 18px; background: #fff; border: 1px solid var(--an-line); text-decoration: none; }
.an-epnav a:hover { border-color: var(--sc); }
.an-epnav small { font-size: 12px; font-weight: 800; text-transform: uppercase; color: var(--an-muted); letter-spacing: .05em; }
.an-epnav b { font-size: 15px; line-height: 1.35; }
.an-epnav__next { text-align: right; }
.an-around { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.an-around a { display: flex; gap: 8px; align-items: baseline; padding: 6px 8px; border-radius: 10px; text-decoration: none; font-size: 13px; font-weight: 600; line-height: 1.35; }
.an-around a:hover { background: var(--sc-soft); }
.an-around li[aria-current] a { background: var(--sc); color: #fff; }
.an-around li[aria-current] .an-code { background: #fff; color: var(--sc-deep); }

/* ---------- Films ---------- */
.an-hero--films { --sc: #7c3aed; }
.an-fgrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.an-frow { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 18px; padding: 16px; border-radius: 22px; background: #fff; border: 1px solid var(--an-line); }
.an-frow__body p { margin: 0 0 10px; line-height: 1.6; color: #3a4166; font-size: 15px; }
.an-frow__meta { font-size: 13px !important; font-weight: 700; color: var(--an-muted) !important; }
.an-frow__links { margin-bottom: 0 !important; }
.an-dl { display: grid; grid-template-columns: auto 1fr; gap: 6px 12px; margin: 0; font-size: 14px; }
.an-dl dt { font-weight: 800; color: var(--an-muted); }
.an-dl dd { margin: 0; }
.an-wtable { display: grid; gap: 10px; }
.an-wtable__row { display: grid; grid-template-columns: 130px minmax(0, 1fr); gap: 12px; align-items: start; padding: 12px 14px; border-radius: 16px; background: var(--an-bg); }
.an-wtable__country { font-weight: 800; padding-top: 6px; }
.an-wtable--big .an-wtable__row { grid-template-columns: 150px minmax(0, 1fr) minmax(0, 1fr); }
.an-wtable__row--head { background: none; font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; color: var(--an-muted); padding-bottom: 0; }

/* ---------- Musique ---------- */
.an-hero--music { --sc: #db2777; }
.an-table-wrap { overflow-x: auto; background: #fff; border: 1px solid var(--an-line); border-radius: 20px; }
.an-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.an-table th { text-align: left; font-size: 11px; text-transform: uppercase; letter-spacing: .07em; color: var(--an-muted); padding: 12px 14px; border-bottom: 1px solid var(--an-line); }
.an-table td { padding: 10px 14px; border-bottom: 1px solid var(--an-line); vertical-align: top; }
.an-table tr:last-child td { border-bottom: 0; }
.an-table a { font-weight: 700; text-decoration: none; }
.an-table__code { font-family: ui-monospace, monospace; font-size: 12px; color: var(--an-muted); white-space: nowrap; }
.an-songlist { margin: 0; padding: 0; list-style: none; display: grid; gap: 6px; counter-reset: s; }
.an-songlist li { display: grid; gap: 1px; padding: 9px 12px 9px 44px; position: relative; background: #fff; border: 1px solid var(--an-line); border-radius: 12px; font-size: 14px; counter-increment: s; }
.an-songlist li::before { content: counter(s); position: absolute; left: 10px; top: 10px; width: 24px; height: 24px; border-radius: 50%; background: var(--sc-soft); color: var(--sc-deep); font-size: 11px; font-weight: 800; display: grid; place-items: center; }
.an-songlist span { color: #3a4166; }
.an-songlist small { font-family: ui-monospace, monospace; font-size: 11px; color: var(--an-muted); }
.an-albums { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 16px; margin-top: 16px; }
.an-album { display: flex; flex-direction: column; gap: 4px; text-decoration: none; }
.an-album img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 14px; box-shadow: 0 10px 22px rgba(19, 26, 61, .15); transition: transform .2s ease; }
.an-album:hover img { transform: translateY(-4px); }
.an-album__name { font-weight: 700; font-size: 13px; line-height: 1.3; margin-top: 6px; }
.an-album__meta { font-size: 12px; color: var(--an-muted); }
.an-cds { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.an-cd { display: grid; grid-template-columns: 70px minmax(0, 1fr); gap: 16px; align-items: start; padding: 18px; background: #fff; border: 1px solid var(--an-line); border-radius: 20px; }
.an-cd__disc { width: 70px; height: 70px; border-radius: 50%; background: radial-gradient(circle, #fff 0 11%, #c7cbe0 12% 14%, transparent 15%), conic-gradient(from 30deg, #e9ecf7, #c9f1ff, #ffe7f3, #fff4c2, #e9ecf7); box-shadow: inset 0 0 0 1px var(--an-line); }
.an-cd h3 { margin: 0 0 6px; font-size: 17px; }
.an-cd h3 small { color: var(--an-muted); font-weight: 600; }
.an-cd p { margin: 0 0 10px; font-size: 14px; line-height: 1.55; color: #3a4166; }

/* ---------- Où regarder ---------- */
.an-hero--watch { --sc: #e3350d; }
.an-tvline { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.an-tvline li { display: grid; gap: 2px; padding: 9px 12px; border-radius: 12px; background: #fff; border-left: 5px solid var(--c); font-size: 14px; }
.an-tvline a { text-decoration: none; }
.an-tvline span { color: var(--an-muted); font-size: 13px; }
.an-jp { margin: 0; padding: 0; list-style: none; display: grid; gap: 6px; }
.an-jp li { padding: 10px 12px; border-radius: 12px; background: #fff; font-size: 14px; }

/* ---------- Bas de page ---------- */
.an-outro { background: var(--an-ink); color: #fff; padding: 34px 0; margin-top: 20px; }
.an-outro__links { display: flex; flex-wrap: wrap; gap: 10px; }
.an-outro__links a { padding: 9px 15px; border-radius: 999px; background: rgba(255, 255, 255, .1); color: #fff !important; text-decoration: none; font-weight: 700; font-size: 14px; }
.an-outro__links a:hover { background: var(--an-yellow); color: var(--an-ink) !important; }
.an-outro__src { margin: 18px 0 0; font-size: 12px; line-height: 1.6; color: rgba(255, 255, 255, .6); max-width: 900px; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .an-bar__panel { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .an-layout { grid-template-columns: minmax(0, 1fr); }
  .an-layout__side { position: static; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .an-stars__grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .an-fgrid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 900px) {
  .an-bar__inner { flex-wrap: wrap; gap: 8px 12px; padding-top: 8px; padding-bottom: 8px; }
  .an-bar__nav { order: 3; width: 100%; overflow-x: auto; }
  .an-search { flex: 1; width: auto; }
  .an-bar__panel { position: fixed; left: 12px; right: 12px; top: 140px; width: auto; }
  .an-hero__inner { grid-template-columns: minmax(0, 1fr); }
  .an-hero__mons { height: 200px; order: -1; }
  .an-hero__mons img { width: 110px; height: 110px; }
  .an-hero__mons img:nth-child(1), .an-hero__mons--ep img:nth-child(1) { width: 150px; height: 150px; left: 34%; top: 6%; }
  .an-tv { order: -1; width: min(330px, 100%); }
  .an-series__grid, .an-split__grid, .an-fresh__cols, .an-cols, .an-cds { grid-template-columns: minmax(0, 1fr); }
  .an-facts__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .an-facts__wide { grid-column: span 2; }
  .an-news__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .an-wtable--big .an-wtable__row { grid-template-columns: minmax(0, 1fr); }
  .an-wtable__row--head { display: none !important; }
}
@media (max-width: 640px) {
  .an-hero { padding: 26px 0 40px; }
  .an-hero__lead { font-size: 16px; }
  .an-bar__brand small { display: none; }
  .an-bar__panel { grid-template-columns: minmax(0, 1fr); }
  .an-layout__side { grid-template-columns: minmax(0, 1fr); }
  .an-stars__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .an-news__grid { grid-template-columns: minmax(0, 1fr); }
  .an-ep__link { grid-template-columns: 58px minmax(0, 1fr); }
  .an-ep__side { display: none; }
  .an-block { padding: 18px; }
  .an-facts__grid { grid-template-columns: minmax(0, 1fr); }
  .an-facts__wide { grid-column: span 1; }
  .an-pager, .an-epnav { grid-template-columns: minmax(0, 1fr); }
  .an-frow { grid-template-columns: 110px minmax(0, 1fr); }
  .an-series__mons img { width: 60px; height: 60px; }
  .an-series__name { max-width: 100%; margin-top: 40px; }
  .an-eptools__q input { width: 100%; }
  .an-wtable__row { grid-template-columns: minmax(0, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
  .an-hero__mons img, .an-tv__mon, .an-tv__onair { animation: none; }
}
@media print {
  .an-bar, .an-outro, .an-hero__mons, .an-tv { display: none; }
}
