/* ═══════════════════════════════════════════════════════════════════════
   STREAMLOG : profil membre (« brut », comme les fiches)

   Le profil porte .stl-f : il hérite des jetons (--f-ink, --f-line…), des
   boutons (.stl-f-btn), des cartes d'affiche et des notifications.

     .stl-p
       .stl-p-hero     avatar, nom, niveau ; menu « Mon compte »
         .stl-p-level  carte de niveau cliquable
         .stl-p-dash   tableau de bord en phrases, « Cette semaine »
       .stl-p-tabs     onglets collants, avec compteurs
       .stl-p-body     sections (.stl-p-sec)
         .stl-p-show   carte série : prochain épisode, « Vu »
                       (.is-feature : « Ce soir », en largeur)
         .stl-p-agenda prochaines diffusions
         .stl-rc       recommandation : affiche, raison, trois gestes

   Sommaire : 1. Socle · 2. En-tête · 3. Tableau de bord · 4. Onglets ·
   5. Sections · 6. Cartes série · 7. Agenda · 8. Badges · 9. Divers ·
   10. Petits écrans · 11. Recommandations (« Pour vous »)
   ═══════════════════════════════════════════════════════════════════════ */

/* ── 1. SOCLE ──────────────────────────────────────────────────────────── */
.stl-p { padding-bottom: 72px; }
.stl-p-wrap {
  width: 100%;
  max-width: var(--f-max);
  margin: 0 auto;
  padding: 0 var(--f-pad);
}
.stl-p :is(.stl-p-kicker, .stl-p-level-tag, .stl-p-dash-label, .stl-p-week-lbl, .stl-p-tab, .stl-p-more,
           .stl-p-show-head, .stl-p-seg-item, .stl-p-seen, .stl-p-agenda-day, .stl-p-agenda-rel, .stl-p-year span) {
  font-family: var(--f-font);
  letter-spacing: .09em;
  text-transform: uppercase;
}
.stl-p-code { font-weight: 900; font-variant-numeric: tabular-nums; letter-spacing: -.01em; }

/* Jauge : un filet noir sur fond gris, sans arrondi. */
.stl-p-bar { display: block; flex: 1; height: 4px; min-width: 40px; background: var(--f-surf); }
.stl-p-bar i { display: block; height: 100%; background: var(--f-ink); transition: width .4s ease; }

/* ── 2. EN-TÊTE ────────────────────────────────────────────────────────── */
.stl-p-hero { padding-top: clamp(28px, 4vw, 56px); border-bottom: var(--f-line); }
.stl-p-hero-in {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: end;
  gap: 16px 28px;
  padding-bottom: 28px;
}
.stl-p-avatar img {
  display: block;
  width: 112px;
  height: 112px;
  border: var(--f-line);
  border-radius: 0;
  object-fit: cover;
  filter: grayscale(1) contrast(1.05);
}
.stl-p-kicker { font-size: 12px; font-weight: 700; color: var(--f-mt); }
.stl-p-name {
  margin-top: 6px !important;
  font-size: clamp(2.2rem, 1.2rem + 3.6vw, 4.6rem);
  font-weight: 900;
  line-height: .9;
  letter-spacing: -.045em;
  text-transform: uppercase;
  overflow-wrap: anywhere;
}
/* Niveau : une petite carte cliquable. Nom, jauge pleine largeur, et ce
   qu'il reste à faire, écrit en clair. Mène à l'onglet Activité. */
.stl-p-level {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-width: 460px;
  margin-top: 16px;
  padding: 12px 14px;
  border: var(--f-line);
  background: var(--f-bg);
  color: inherit;
  text-decoration: none;
  transition: transform .15s, box-shadow .15s;
}
.stl-p-level:hover,
.stl-p-level:focus-visible { transform: translate(-2px, -2px); box-shadow: 4px 4px 0 var(--f-ink); outline: none; }
.stl-p-level-top { display: flex; align-items: center; gap: 10px; min-width: 0; }
.stl-p-level-tag {
  flex: none;
  padding: 5px 7px;
  background: var(--f-ink);
  color: var(--f-paper);
  font-size: 10.5px;
  font-weight: 800;
  line-height: 1;
}
.stl-p-level-name { flex: 1; min-width: 0; font-size: 15px; font-weight: 900; line-height: 1.1; text-transform: uppercase; letter-spacing: -.01em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.stl-p-level-xp { flex: none; font-size: 12.5px; font-weight: 700; color: var(--f-mt); font-variant-numeric: tabular-nums; }
.stl-p-level .stl-p-bar { flex: none; width: 100%; height: 6px; }
.stl-p-level-next { font-size: 13px; line-height: 1.3; color: var(--f-mt); }
.stl-p-level-next b { color: var(--f-tx); font-weight: 800; }

.stl-p-acts { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; justify-content: flex-end; }

/* Menu « Mon compte » : un <details>, sans script pour s'ouvrir. */
.stl-p-menu { position: relative; }
.stl-p-menu summary { list-style: none; cursor: pointer; }
.stl-p-menu summary::-webkit-details-marker { display: none; }
.stl-p-menu[open] summary { background: var(--f-ink); color: var(--f-paper); }
.stl-p-menu ul {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  z-index: 30;
  min-width: 250px;
  border: var(--f-line);
  background: var(--f-bg);
  box-shadow: 5px 5px 0 var(--f-ink);
}
.stl-p-menu li + li { border-top: 1px solid var(--f-surf); }
.stl-p-menu li.is-sep { border-top: var(--f-line); }
.stl-p-menu a {
  display: block;
  padding: 12px 14px;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}
.stl-p-menu a:hover,
.stl-p-menu a:focus-visible { background: var(--f-ink); color: var(--f-paper); outline: none; }

/* ── 3. TABLEAU DE BORD ────────────────────────────────────────────────── */
/* Trois repères, chacun écrit en phrase : un grand chiffre, ce qu'il
   compte, une ligne de contexte, et une flèche vers l'onglet concerné.
   Trois colonnes sur grand écran, des lignes pleine largeur sur mobile. */
.stl-p-dash {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 0 !important;
  padding: 0 !important;
  list-style: none;
  border-top: var(--f-line);
}
.stl-p-dash li { min-width: 0; margin: 0; }
.stl-p-dash li + li { border-left: var(--f-line); }
.stl-p-dash-item {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 4px 14px;
  height: 100%;
  padding: 18px 18px;
  color: inherit;
  text-decoration: none;
  transition: background .12s, color .12s;
}
.stl-p-dash li:first-child .stl-p-dash-item { padding-left: 0; }
.stl-p-dash-item:hover,
.stl-p-dash-item:focus-visible { background: var(--f-ink); color: var(--f-paper); outline: none; }
.stl-p-dash li:first-child .stl-p-dash-item:hover,
.stl-p-dash li:first-child .stl-p-dash-item:focus-visible { padding-left: 18px; }
.stl-p-dash-big {
  font-size: clamp(2rem, 1.4rem + 1.6vw, 3rem);
  font-weight: 900;
  line-height: .85;
  letter-spacing: -.045em;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.stl-p-dash-txt { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.stl-p-dash-label { font-size: 11.5px; font-weight: 800; line-height: 1.15; }
.stl-p-dash-sub { font-size: 13px; line-height: 1.3; color: var(--f-mt); }
.stl-p-dash-sub b { color: var(--f-tx); font-weight: 800; }
.stl-p-dash-item.is-alert .stl-p-dash-sub b { color: var(--f-red); }
.stl-p-dash-item:is(:hover, :focus-visible) :is(.stl-p-dash-sub, .stl-p-dash-sub b) { color: inherit; }
.stl-p-dash-go { font-size: 18px; font-weight: 700; transition: transform .15s; }
:is(.stl-p-dash-item, .stl-p-week):is(:hover, :focus-visible) .stl-p-dash-go { transform: translateX(3px); }

/* « Cette semaine » : une ligne sous le tableau de bord. */
.stl-p-week {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 0;
  border-top: var(--f-line);
  color: inherit;
  text-decoration: none;
  transition: background .12s, color .12s, padding .12s;
}
.stl-p-week:hover,
.stl-p-week:focus-visible { padding: 12px 14px; background: var(--f-ink); color: var(--f-paper); outline: none; }
.stl-p-week-lbl { flex: none; padding: 5px 7px; border: var(--f-line); font-size: 10.5px; font-weight: 800; line-height: 1; }
.stl-p-week:is(:hover, :focus-visible) .stl-p-week-lbl { border-color: var(--f-paper); }
.stl-p-week-txt { flex: 1; min-width: 0; font-size: 14px; font-weight: 600; line-height: 1.3; }
.stl-p-week-txt b { font-weight: 900; }

/* ── 4. ONGLETS ────────────────────────────────────────────────────────── */
.stl-p-tabs {
  position: sticky;
  top: var(--h-navbar, 0px);
  z-index: 20;
  background: var(--f-bg);
  border-bottom: var(--f-line);
}
.stl-p-tabs-in {
  display: flex;
  overflow-x: auto;
  scrollbar-width: none;
  scroll-snap-type: x proximity;
}
.stl-p-tabs-in::-webkit-scrollbar { display: none; }
/* Il reste des onglets hors champ : un fondu et une flèche le disent
   (member.js pose .has-more tant qu'on n'est pas au bout). */
.stl-p-tabs .stl-p-wrap { position: relative; }
.stl-p-tabs .stl-p-wrap::after {
  content: '→';
  position: absolute;
  top: 0;
  right: var(--f-pad);
  bottom: 0;
  display: grid;
  place-items: center end;
  width: 56px;
  padding-right: 10px;
  background: linear-gradient(to right, transparent, var(--f-bg) 55%);
  font-size: 15px;
  font-weight: 800;
  opacity: 0;
  pointer-events: none;
  transition: opacity .15s;
}
.stl-p-tabs.has-more .stl-p-wrap::after { opacity: 1; }
.stl-p-tab {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 52px;
  padding: 0 18px;
  border-right: var(--f-line);
  font-size: 12px;
  font-weight: 800;
  color: inherit;
  text-decoration: none;
  white-space: nowrap;
  scroll-snap-align: start;
  transition: background .12s, color .12s;
}
.stl-p-tab:first-child { border-left: var(--f-line); }
.stl-p-tab:hover { background: var(--f-surf); }
.stl-p-tab.is-active { background: var(--f-ink); color: var(--f-paper); }
.stl-p-tab-n {
  display: inline-grid;
  place-items: center;
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  border: 1px solid currentColor;
  font-size: 10.5px;
  letter-spacing: 0;
  font-variant-numeric: tabular-nums;
}
/* Épisodes à rattraper : la pastille est pleine, rouge. */
.stl-p-tab-n.is-alert { background: var(--f-red); border-color: var(--f-red); color: #fff; }

/* ── 5. SECTIONS ───────────────────────────────────────────────────────── */
.stl-p-body { padding-top: 40px; }
.stl-p-sec + .stl-p-sec,
.stl-p-start + .stl-p-sec { margin-top: 56px; }
.stl-p-sec-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px 20px;
  margin-bottom: 18px;
}
.stl-p-sec-title {
  font-size: clamp(1.5rem, 1rem + 1.5vw, 2.3rem);
  font-weight: 900;
  line-height: .95;
  letter-spacing: -.04em;
  text-transform: uppercase;
}
.stl-p-sec-title span { color: var(--f-mt); font-variant-numeric: tabular-nums; }
.stl-p-sec-lead { margin: -8px 0 18px !important; font-size: 14px; color: var(--f-mt); max-width: 64ch; }
.stl-p-more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 0;
  border: 0;
  border-bottom: 1px solid currentColor;
  background: none;
  color: inherit;
  font-size: 11.5px;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
}
.stl-p-more:hover span { transform: translateX(3px); }
.stl-p-more span { transition: transform .15s; }

.stl-p-void {
  padding: 28px 22px;
  border: 1px dashed var(--f-tx);
  font-size: 15px;
  line-height: 1.5;
  color: var(--f-mt);
}

/* Filtres des séries : cases accolées. */
.stl-p-seg { display: flex; flex-wrap: wrap; border: var(--f-line); }
.stl-p-seg-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  font-size: 11.5px;
  font-weight: 800;
  color: inherit;
  text-decoration: none;
}
.stl-p-seg-item + .stl-p-seg-item { border-left: var(--f-line); }
.stl-p-seg-item span { color: var(--f-mt); font-variant-numeric: tabular-nums; }
.stl-p-seg-item:hover { background: var(--f-surf); }
.stl-p-seg-item.is-active { background: var(--f-ink); color: var(--f-paper); }
.stl-p-seg-item.is-active span { color: inherit; opacity: .7; }

.stl-p-year {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin: 36px 0 16px !important;
  padding-top: 10px;
  border-top: var(--f-line);
  font-size: 1.6rem;
  font-weight: 900;
  letter-spacing: -.03em;
}
.stl-p-sec > .stl-p-year:first-child,
.stl-p-sec-head + .stl-p-year { margin-top: 0 !important; }
.stl-p-year span { font-size: 11px; font-weight: 700; color: var(--f-mt); }

.stl-p-uptodate {
  padding: 18px 20px;
  border: var(--f-line);
  font-size: 15px;
  line-height: 1.5;
}
.stl-p-uptodate b { font-weight: 900; text-transform: uppercase; letter-spacing: .06em; font-size: 12px; margin-right: 6px; }

/* Démarrage : trois gestes. */
.stl-p-start { padding: 32px; border: var(--f-line); box-shadow: 6px 6px 0 var(--f-ink); max-width: 820px; }
.stl-p-start-lead { margin-top: 10px !important; font-size: 16px; color: var(--f-mt); }
.stl-p-steps { display: grid; gap: 1px; margin: 22px 0 !important; background: var(--f-tx); border: var(--f-line); }
.stl-p-steps li { display: flex; align-items: center; gap: 16px; padding: 14px 16px; background: var(--f-bg); font-size: 15px; line-height: 1.45; }
.stl-p-steps b {
  flex: none;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  background: var(--f-ink);
  color: var(--f-paper);
  font-size: 15px;
  font-weight: 900;
}
.stl-p-steps strong { font-weight: 800; }
.stl-p-start-acts { display: flex; flex-wrap: wrap; gap: 8px; }

/* ── 6. CARTES SÉRIE ───────────────────────────────────────────────────
   Un seul bloc encadré : l'affiche (pastille d'état, progression en
   pied), le texte, puis le bouton soudé au bas de la carte. Toute la
   carte se soulève au survol. */
.stl-p-shows {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(186px, 1fr));
  gap: 22px 16px;
}
.stl-p-show {
  min-width: 0;
  display: flex;
  flex-direction: column;
  border: var(--f-line);
  background: var(--f-bg);
  transition: transform .15s, box-shadow .15s, opacity .2s;
}
.stl-p-show:hover { transform: translate(-3px, -3px); box-shadow: 6px 6px 0 var(--f-ink); }
.stl-p-show.is-busy { opacity: .5; pointer-events: none; }
.stl-p-show.is-fresh { animation: stl-p-fresh .5s ease-out; }
@keyframes stl-p-fresh {
  from { transform: translateY(6px); opacity: .4; }
  to   { transform: none; opacity: 1; }
}

.stl-p-show-poster {
  position: relative;
  display: block;
  aspect-ratio: 2 / 3;
  border-bottom: var(--f-line);
  background: var(--f-surf);
  overflow: hidden;
}
.stl-p-show-poster img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.stl-p-show:hover .stl-p-show-poster img { transform: scale(1.03); }
.stl-p-show-empty { display: grid; place-items: center; height: 100%; font-size: 56px; font-weight: 900; color: var(--f-mt); }
.stl-p-show.is-done .stl-p-show-poster img { filter: grayscale(.7); }

/* Pastilles d'état, en haut à gauche de l'affiche. */
.stl-p-pill {
  position: absolute;
  top: 8px;
  left: 8px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 8px;
  border: 1px solid var(--f-ink);
  background: var(--f-ink);
  color: var(--f-paper);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .08em;
  line-height: 1;
  text-transform: uppercase;
  box-shadow: 2px 2px 0 rgba(0, 0, 0, .35);
}
.stl-p-pill.is-ok,
.stl-p-pill.is-done { background: var(--f-paper); color: var(--f-ink); }
.stl-p-pill.is-new { background: var(--f-paper); color: var(--f-ink); border-style: dashed; }
.stl-p-pill.is-fresh { background: var(--f-red); border-color: var(--f-red); color: #fff; }
.stl-p-pill.is-fresh i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #fff;
  animation: stl-p-blink 1.4s ease-in-out infinite;
}
@keyframes stl-p-blink { 50% { opacity: .25; } }

.stl-p-show-prog { position: absolute; left: 0; right: 0; bottom: 0; height: 6px; background: rgba(255, 255, 255, .85); border-top: 1px solid var(--f-ink); }
.stl-p-show-prog i { display: block; height: 100%; background: var(--f-ink); transition: width .4s ease; }

.stl-p-show-body { flex: 1; display: flex; flex-direction: column; gap: 4px; padding: 11px 12px 12px; }
.stl-p-show-title { font-size: 14px; font-weight: 900; line-height: 1.15; letter-spacing: -.01em; text-transform: uppercase; }
.stl-p-show-title a { text-decoration: none; }
.stl-p-show-title a:hover { text-decoration: underline; text-underline-offset: .15em; }
.stl-p-show-head {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin-top: 6px !important;
  padding-top: 8px;
  border-top: 1px dashed color-mix(in srgb, var(--f-tx) 35%, transparent);
  font-size: 10px;
  font-weight: 700;
  color: var(--f-mt);
}
.stl-p-show-head > span:last-child { font-variant-numeric: tabular-nums; }
.stl-p-show-state { display: none; }
.stl-p-show-next { font-size: 13.5px; font-weight: 600; line-height: 1.3; }
.stl-p-show-next a { text-decoration: none; }
.stl-p-show-next a:hover { text-decoration: underline; text-underline-offset: .15em; }
.stl-p-show-meta { font-size: 12px; line-height: 1.35; color: var(--f-mt); }

/* « J'ai vu S01E06 → » : soudé au bas de la carte, sur toute sa largeur.
   Il coche l'épisode annoncé juste au-dessus. */
.stl-p-seen {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  height: 46px;
  margin: 0;
  padding: 0 12px;
  border: 0;
  border-top: var(--f-line);
  background: var(--f-bg);
  color: var(--f-tx);
  font: 800 11px/1 var(--f-font);
  letter-spacing: .08em;
  text-transform: uppercase;
  text-align: left;
  cursor: pointer;
  transition: background .12s, color .12s;
}
.stl-p-seen-box {
  display: grid;
  place-items: center;
  flex: none;
  width: 20px;
  height: 20px;
  border: var(--f-line);
  background: var(--f-bg);
  color: transparent;
  transition: color .12s, background .12s, border-color .12s;
}
.stl-p-seen-txt { flex: 1; }
.stl-p-seen-next { font-size: 15px; transition: transform .15s; }
.stl-p-seen:hover,
.stl-p-seen:focus-visible { background: var(--f-ink); color: var(--f-paper); outline: none; }
.stl-p-seen:hover .stl-p-seen-box,
.stl-p-seen:focus-visible .stl-p-seen-box { border-color: var(--f-paper); background: var(--f-paper); color: var(--f-ink); }
.stl-p-seen:hover .stl-p-seen-next { transform: translateX(3px); }

/* ── 6 bis. VICTOIRES ──────────────────────────────────────────────────
   Titres mis dans « À voir » et vus depuis. */
.stl-p-wins { padding: 24px; border: var(--f-line); box-shadow: 6px 6px 0 var(--f-ink); }
.stl-p-win { display: flex; flex-direction: column; gap: 10px; min-width: 0; transition: opacity .25s, transform .25s; }
.stl-p-win.is-out { opacity: 0; transform: translateY(8px); }
.stl-p-shelve {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 36px;
  margin-top: auto;            /* calé en pied, aligné sur la rangée */
  border: var(--f-line);
  background: var(--f-bg);
  color: var(--f-tx);
  font: 800 10.5px/1 var(--f-font);
  letter-spacing: .08em;
  text-transform: uppercase;
  cursor: pointer;
}
.stl-p-shelve:hover { background: var(--f-ink); color: var(--f-paper); }
.stl-p-shelve.is-busy,
.stl-p-shelve-all.is-busy { opacity: .5; pointer-events: none; }

.stl-p-wins-nudge {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 18px;
  border: var(--f-line);
  background: var(--f-bg);
  font-size: 14.5px;
  line-height: 1.45;
  text-decoration: none;
  transition: box-shadow .15s, transform .15s;
}
.stl-p-wins-nudge:hover { transform: translate(-2px, -2px); box-shadow: 4px 4px 0 var(--f-ink); }
.stl-p-wins-nudge > span:nth-child(2) { flex: 1; min-width: 0; }
.stl-p-wins-nudge b { font-weight: 900; }
.stl-p-wins-ico { font-size: 26px; line-height: 1; }

/* « Ce soir » : la première série à reprendre, en largeur. Affiche à
   gauche, texte et bouton « J'ai vu » à droite. */
.stl-p-show.is-feature {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  margin-bottom: 22px;
  box-shadow: 6px 6px 0 var(--f-ink);
}
.stl-p-show.is-feature:hover { transform: translate(-2px, -2px); box-shadow: 8px 8px 0 var(--f-ink); }
.stl-p-show.is-feature .stl-p-show-poster { grid-row: 1 / span 2; aspect-ratio: auto; min-height: 225px; border-bottom: 0; border-right: var(--f-line); }
.stl-p-show.is-feature .stl-p-show-body { gap: 6px; padding: 16px 18px; }
.stl-p-show.is-feature .stl-p-show-head { order: -1; margin: 0 0 4px !important; padding: 0; border: 0; color: var(--f-tx); font-size: 11px; }
.stl-p-show.is-feature .stl-p-show-head span:first-child { flex: 1; min-width: 0; }
.stl-p-show.is-feature .stl-p-pill:not(.is-fresh) { display: none; }
.stl-p-show.is-feature .stl-p-show-title { font-size: clamp(1.25rem, 1rem + 1vw, 1.8rem); line-height: 1; letter-spacing: -.02em; }
.stl-p-show.is-feature .stl-p-show-next { font-size: 15px; }
.stl-p-show.is-feature .stl-p-seen { grid-column: 2; height: 52px; padding: 0 18px; font-size: 12px; }

/* ── 7. AGENDA ─────────────────────────────────────────────────────────── */
.stl-p-agenda { border-top: var(--f-line); }
.stl-p-agenda a {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  padding: 12px 0;
  border-bottom: var(--f-line);
  text-decoration: none;
  transition: background .12s, padding .12s;
}
.stl-p-agenda a:hover { background: var(--f-surf); padding-left: 10px; padding-right: 10px; }
.stl-p-agenda-day {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 6px 0 7px;
  border: var(--f-line);
  font-size: 10px;
  font-weight: 800;
  line-height: 1;
}
.stl-p-agenda-day b { font-size: 24px; font-weight: 900; letter-spacing: -.03em; margin-bottom: 3px; }
.stl-p-agenda-main { min-width: 0; display: grid; gap: 3px; }
.stl-p-agenda-title { font-size: 16px; font-weight: 900; letter-spacing: -.015em; text-transform: uppercase; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.stl-p-agenda-ep { font-size: 13.5px; color: var(--f-mt); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.stl-p-agenda-ep .stl-p-code { color: var(--f-tx); }
.stl-p-agenda-ep em { font-style: normal; font-weight: 800; color: var(--f-tx); }
.stl-p-agenda-rel { font-size: 11px; font-weight: 800; white-space: nowrap; }

/* ── 8. BADGES ─────────────────────────────────────────────────────────── */
/* Filets tracés par chaque case (droite, bas) : une rangée incomplète
   ne laisse pas de trou noir. */
.stl-p-badges {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  border-top: var(--f-line);
  border-left: var(--f-line);
}
.stl-p-badges li {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  grid-template-areas: "ico name" "ico desc";
  column-gap: 12px;
  row-gap: 2px;
  align-items: center;
  padding: 14px;
  border-right: var(--f-line);
  border-bottom: var(--f-line);
  background: var(--f-bg);
}
.stl-p-badge-ico {
  grid-area: ico;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: var(--f-line);
  font-size: 20px;
  line-height: 1;
}
.stl-p-badge-name { grid-area: name; font-size: 13.5px; font-weight: 800; line-height: 1.2; }
.stl-p-badge-desc { grid-area: desc; font-size: 12px; line-height: 1.35; color: var(--f-mt); }
.stl-p-badges li.is-locked .stl-p-badge-ico { border-style: dashed; color: var(--f-mt); font-size: 15px; font-weight: 900; }
.stl-p-badges li.is-locked .stl-p-badge-name { color: var(--f-mt); }
.stl-p-badges li.is-earned .stl-p-badge-ico { background: var(--f-ink); border-color: var(--f-ink); }

/* ── 8 bis. NIVEAU ET BILAN ─────────────────────────────────────────── */
.stl-p-level-card {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  border: var(--f-line);
}
.stl-p-level-main { padding: 26px 28px; }
.stl-p-level-big {
  margin: 8px 0 18px !important;
  font-size: clamp(2rem, 1.2rem + 2.6vw, 3.4rem);
  font-weight: 900;
  line-height: .9;
  letter-spacing: -.045em;
  text-transform: uppercase;
}
.stl-p-bar.is-big { height: 10px; border: var(--f-line); background: var(--f-bg); }
.stl-p-level-note { margin-top: 12px !important; font-size: 14px; color: var(--f-mt); }
.stl-p-level-note b { color: var(--f-tx); font-weight: 800; }
.stl-p-xp-rules { padding: 26px 28px; border-left: var(--f-line); background: var(--f-surf); }
.stl-p-xp-rules dl { margin-top: 12px !important; }
.stl-p-xp-rules dl > div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 0;
  border-bottom: 1px solid color-mix(in srgb, var(--f-tx) 18%, transparent);
  font-size: 14px;
}
.stl-p-xp-rules dd { font-weight: 900; font-variant-numeric: tabular-nums; }

.stl-p-recaps { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.stl-p-recap { padding: 18px 20px 20px; border: var(--f-line); }
.stl-p-recap dl { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-top: 14px !important; }
.stl-p-recap dt { font-size: 11px; font-weight: 700; color: var(--f-mt); }
.stl-p-recap dd { margin-top: 4px !important; font-size: 1.8rem; font-weight: 900; line-height: 1; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }

.stl-p-sub {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin: 22px 0 10px !important;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .09em;
  text-transform: uppercase;
}
.stl-p-sub span { color: var(--f-mt); }
.stl-p-badges li.is-locked .stl-p-badge-ico { filter: grayscale(1); opacity: .45; font-size: 18px; }
.stl-p-badge-desc b { font-weight: 800; color: var(--f-tx); }

/* Échelle des niveaux : passés en noir, l'actuel inversé, les suivants en gris. */
.stl-p-ladder { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); margin-top: 24px !important; border: var(--f-line); }
.stl-p-ladder li { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 10px 4px; text-align: center; }
.stl-p-ladder li + li { border-left: var(--f-line); }
.stl-p-ladder span { font-size: 18px; line-height: 1; filter: grayscale(1); opacity: .4; }
.stl-p-ladder b { font-size: 10.5px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; color: var(--f-mt); overflow-wrap: anywhere; }
.stl-p-ladder small { font-size: 10px; color: var(--f-mt); font-variant-numeric: tabular-nums; }
.stl-p-ladder li.is-past span { filter: none; opacity: 1; }
.stl-p-ladder li.is-past b { color: var(--f-tx); }
.stl-p-ladder li.is-current { background: var(--f-ink); color: var(--f-paper); }
.stl-p-ladder li.is-current span { filter: none; opacity: 1; }
.stl-p-ladder li.is-current :is(b, small) { color: var(--f-paper); }

/* ── 9. DIVERS ─────────────────────────────────────────────────────────── */
/* Journal d'activité : filets pleins au lieu des pastilles du thème. */

.stl-p .stl-tiles:not(.stl-tiles--rail) { gap: 28px 18px; }
.stl-p .stl-tile-flag { border-radius: 0; background: var(--f-ink); color: var(--f-paper); }
.stl-p .stl-tile-bar { border-radius: 0; }
.stl-p .stl-tile-bar i { background: var(--f-ink); }

/* ── 10. PETITS ÉCRANS ─────────────────────────────────────────────────── */
/* L'en-tête se règle sur sa propre largeur (requêtes de conteneur) :
   il reste lisible même dans une colonne étroite sur grand écran. */
.stl-p-hero { container: stlhero / inline-size; }

@container stlhero (max-width: 900px) {
  .stl-p-hero-in { grid-template-columns: auto minmax(0, 1fr); }
  .stl-p-acts { grid-column: 1 / -1; justify-content: flex-start; }
  .stl-p-dash-item { grid-template-columns: minmax(0, 1fr) auto; padding: 16px 14px; }
  .stl-p-dash-big { grid-column: 1 / -1; }
  .stl-p-dash-go { grid-row: 2; grid-column: 2; align-self: end; }
}

@container stlhero (max-width: 640px) {
  /* En-tête compact : avatar et nom côte à côte, niveau en dessous sur
     toute la largeur, boutons en bas. */
  .stl-p-hero-in { gap: 6px 16px; padding-bottom: 20px; align-items: center; }
  .stl-p-avatar img { width: 72px; height: 72px; }
  .stl-p-avatar { grid-row: 1 / span 2; align-self: center; margin-right: 2px; }
  .stl-p-id { display: contents; }
  .stl-p-kicker, .stl-p-name { grid-column: 2; }
  .stl-p-kicker { grid-row: 1; align-self: end; font-size: 11px; }
  .stl-p-name { grid-row: 2; align-self: start; margin: 0 !important; font-size: clamp(1.7rem, 1rem + 5vw, 2.4rem); }
  .stl-p-level { grid-column: 1 / -1; max-width: none; margin-top: 10px; }
  .stl-p-acts { margin-top: 6px; }
  .stl-p-acts .stl-f-btn { min-height: 44px; }
  .stl-p-acts > .stl-f-btn { flex: 1; justify-content: center; }
  .stl-p-menu summary { justify-content: center; }
  .stl-p-menu ul { right: auto; left: 0; min-width: min(280px, calc(100vw - 32px)); }

  /* Niveau : une ligne et la jauge. La phrase « Encore 379 XP » attend
     dans l'onglet Activité. */
  .stl-p-level { gap: 7px; padding: 10px 12px; }
  .stl-p-level-next { display: none; }

  /* Tableau de bord : trois cases côte à côte, le chiffre au-dessus.
     Deux fois moins haut qu'une ligne par repère : « Reprendre » remonte
     dans le premier écran. */
  .stl-p-dash { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .stl-p-dash li + li { border-left: var(--f-line); }
  .stl-p-dash-item,
  .stl-p-dash li:first-child .stl-p-dash-item {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 7px;
    padding: 12px 10px 13px;
  }
  .stl-p-dash li:first-child .stl-p-dash-item { padding-left: 0; }
  .stl-p-dash-item:is(:hover, :focus-visible),
  .stl-p-dash li:first-child .stl-p-dash-item:is(:hover, :focus-visible) { padding: 12px 10px 13px; }
  .stl-p-dash-big { font-size: 1.75rem; }
  .stl-p-dash-txt { gap: 3px; }
  .stl-p-dash-label { font-size: 10px; letter-spacing: .07em; }
  .stl-p-dash-sub { font-size: 11.5px; line-height: 1.25; }
  .stl-p-dash-go { display: none; }

  /* « Cette semaine » : une seule ligne, coupée si elle déborde. */
  .stl-p-week { gap: 10px; min-height: 44px; padding: 8px 0; }
  .stl-p-week:is(:hover, :focus-visible) { padding: 8px 10px; }
  .stl-p-week-txt { font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .stl-p-week .stl-p-dash-go { display: block; }

  /* Hors de l'accueil, l'en-tête se resserre : l'onglet demandé arrive
     tout de suite, sans faire défiler le tableau de bord à chaque fois. */
  .stl-p-hero.is-inner .stl-p-hero-in { padding-bottom: 14px; }
  .stl-p-hero.is-inner .stl-p-avatar img { width: 48px; height: 48px; }
  .stl-p-hero.is-inner .stl-p-name { font-size: 1.5rem; }
  .stl-p-hero.is-inner :is(.stl-p-level, .stl-p-dash, .stl-p-week) { display: none; }
  .stl-p-hero.is-inner .stl-p-acts { margin-top: 8px; }
}

@media (max-width: 600px) {
  .stl-p-hero { padding-top: 20px; }

  .stl-p-show.is-feature { grid-template-columns: 112px minmax(0, 1fr); box-shadow: 4px 4px 0 var(--f-ink); margin-bottom: 16px; }
  .stl-p-show.is-feature .stl-p-show-poster { min-height: 168px; }
  .stl-p-show.is-feature .stl-p-show-body { padding: 12px 12px 10px; }
  .stl-p-show.is-feature .stl-p-show-next { font-size: 14px; }
  .stl-p-show.is-feature .stl-p-show-head { flex-direction: column; gap: 2px; }
  .stl-p-show.is-feature .stl-p-show-head span:last-child { color: var(--f-mt); }
  .stl-p-show.is-feature .stl-p-seen { grid-column: 1 / -1; border-top: var(--f-line); }

  /* Onglets d'un bord à l'autre de l'écran : plus de place, et le dernier
     onglet coupé montre qu'on peut faire défiler. */
  .stl-p-tabs .stl-p-wrap { padding: 0; }
  .stl-p-tabs .stl-p-wrap::after { right: 0; }
  .stl-p-tab { height: 48px; padding: 0 14px; }
  .stl-p-tab:first-child { border-left: 0; padding-left: var(--f-pad); }
  .stl-p-tab:last-child { margin-right: 40px; }
  .stl-p-body { padding-top: 28px; }

  /* Liens « Tout voir », « ＋ Ajouter » : une cible de 44 px sous le pouce. */
  .stl-p-more { min-height: 44px; }
  .stl-p-sec-head { align-items: center; margin-bottom: 12px; }
  .stl-p-sec-lead { margin-top: -4px !important; }
  .stl-p-lead-more { display: none; }
  .stl-p-start + .stl-p-sec { margin-top: 44px; }

  /* « Reprendre » en lignes : vignette, texte, case à cocher. Quatre séries
     tiennent dans un écran, et la case tombe sous le pouce droit. */
  .stl-p-shows.is-rows { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .stl-p-shows.is-rows .stl-p-show {
    display: grid;
    grid-template-columns: 68px minmax(0, 1fr) 60px;
    transform: none;
    box-shadow: none;
  }
  .stl-p-shows.is-rows .stl-p-show + .stl-p-show { margin-top: -1px; }
  .stl-p-shows.is-rows .stl-p-show-poster { aspect-ratio: auto; min-height: 102px; border-bottom: 0; border-right: var(--f-line); }
  .stl-p-shows.is-rows .stl-p-show-poster img { position: absolute; inset: 0; }
  .stl-p-shows.is-rows .stl-p-pill { display: none; }
  .stl-p-shows.is-rows .stl-p-show-empty { font-size: 28px; }
  .stl-p-shows.is-rows .stl-p-show-body { justify-content: center; gap: 3px; padding: 10px 12px; }
  .stl-p-shows.is-rows .stl-p-show-body:last-child { grid-column: 2 / -1; }
  .stl-p-shows.is-rows .stl-p-show-title { font-size: 14.5px; }
  .stl-p-shows.is-rows .stl-p-show-head { order: -1; margin: 0 !important; padding: 0; border: 0; }
  .stl-p-shows.is-rows .stl-p-show-lbl { display: none; }
  .stl-p-shows.is-rows .stl-p-show-state { display: inline; }
  .stl-p-shows.is-rows .stl-p-show.is-watching .stl-p-show-state { color: var(--f-tx); }
  .stl-p-shows.is-rows .stl-p-show-meta { display: none; }
  .stl-p-shows.is-rows .stl-p-seen {
    grid-column: 3;
    grid-row: 1;
    width: 100%;
    height: 100%;
    padding: 0;
    border-top: 0;
    border-left: var(--f-line);
    justify-content: center;
  }
  .stl-p-shows.is-rows .stl-p-seen-txt { display: none; }
  .stl-p-shows.is-rows .stl-p-seen-box { width: 28px; height: 28px; }
  .stl-p-sec + .stl-p-sec { margin-top: 44px; }

  .stl-p-shows { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 10px; }
  .stl-p-show-body { padding: 10px; }
  .stl-p-seen { height: 48px; padding: 0 10px; gap: 8px; }
  .stl-p-seen-next { display: none; }
  .stl-p-wins { padding: 16px; box-shadow: 4px 4px 0 var(--f-ink); }
  .stl-p-level-card { grid-template-columns: 1fr; }
  .stl-p-xp-rules { border-left: 0; border-top: var(--f-line); }
  .stl-p-level-main, .stl-p-xp-rules { padding: 20px; }
  .stl-p-recaps { grid-template-columns: 1fr; }
  .stl-p-recap dl { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stl-p-ladder { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .stl-p-ladder li:nth-child(4) { border-left: 0; }
  .stl-p-ladder li:nth-child(n+4) { border-top: var(--f-line); }

  .stl-p-agenda a { grid-template-columns: 54px minmax(0, 1fr); gap: 4px 14px; }
  .stl-p-agenda-rel { grid-column: 2; }
  .stl-p-agenda-day { grid-row: span 2; }

  .stl-p-start { padding: 20px; box-shadow: 4px 4px 0 var(--f-ink); }
  .stl-p-seg { width: 100%; }
  .stl-p-seg-item { flex: 1; justify-content: center; padding: 12px 8px; }
}

@media (prefers-reduced-motion: reduce) {
  .stl-p-show, .stl-p-show.is-fresh { transition: none; animation: none; }
}

/* ═══ 11. RECOMMANDATIONS (« Pour vous ») ═══════════════════════════════
   Une carte couchée : l'affiche à gauche ; à droite où le voir, le titre,
   la raison ; en pied trois gestes, soudés à la carte comme « J'ai vu ».

     .stl-rc-grid        une colonne sur téléphone, deux ou trois au-delà
       .stl-rc
         .stl-rc-poster
         .stl-rc-body    .stl-rc-meta, .stl-rc-title, .stl-rc-why
         .stl-rc-acts    ＋ Ma liste · Déjà vu · ✕ (pas pour moi)
         .stl-rc-ask     question posée après « Déjà vu » (note, ou confirmation)

   États : .is-added (dans la liste), .is-busy, .is-out (s'en va),
   .is-in (arrive). */
.stl-rc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr));
  gap: 14px;
}
.stl-rc {
  min-width: 0;
  display: grid;
  grid-template-columns: 104px minmax(0, 1fr);
  grid-template-rows: 1fr auto;
  border: var(--f-line);
  background: var(--f-bg);
  transition: transform .15s, box-shadow .15s, opacity .2s;
}
.stl-rc[hidden] { display: none; }
@media (hover: hover) {
  .stl-rc:hover { transform: translate(-2px, -2px); box-shadow: 5px 5px 0 var(--f-ink); }
}
.stl-rc.is-busy { opacity: .55; pointer-events: none; }
.stl-rc.is-out { opacity: 0; transform: translateY(6px); }
.stl-rc.is-in { animation: stl-p-fresh .35s ease-out; }

.stl-rc-poster {
  grid-row: 1 / span 2;
  position: relative;
  display: block;
  min-height: 156px;
  border-right: var(--f-line);
  background: var(--f-surf);
  overflow: hidden;
}
.stl-rc-poster img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.stl-rc-empty { display: grid; place-items: center; height: 100%; font-size: 40px; font-weight: 900; color: var(--f-mt); }
.stl-rc-soon {
  position: absolute;
  top: 6px;
  left: 6px;
  padding: 5px 6px;
  background: var(--f-paper);
  border: 1px dashed var(--f-ink);
  color: var(--f-ink);
  font: 800 9.5px/1 var(--f-font);
  letter-spacing: .08em;
  text-transform: uppercase;
}

.stl-rc-body { min-width: 0; display: flex; flex-direction: column; gap: 5px; padding: 12px 14px 12px; }
.stl-rc-meta {
  font: 700 10.5px/1.25 var(--f-font);
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--f-mt);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.stl-rc-title {
  font-size: 17px;
  font-weight: 900;
  line-height: 1.08;
  letter-spacing: -.02em;
  text-transform: uppercase;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}
.stl-rc-title a { text-decoration: none; }
.stl-rc-title a:hover { text-decoration: underline; text-underline-offset: .15em; }
/* La raison : un filet à gauche la détache du titre, comme une citation. */
.stl-rc-why {
  margin-top: 3px !important;
  padding-left: 9px;
  border-left: 2px solid var(--f-ink);
  font-size: 13px;
  line-height: 1.35;
  color: var(--f-mt);
}
.stl-rc-why b { color: var(--f-tx); font-weight: 800; }

.stl-rc-acts,
.stl-rc-ask { grid-column: 2; display: flex; min-width: 0; border-top: var(--f-line); }
.stl-rc-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-width: 0;
  height: 44px;
  margin: 0;
  padding: 0 12px;
  border: 0;
  background: var(--f-bg);
  color: var(--f-tx);
  font: 800 10.5px/1 var(--f-font);
  letter-spacing: .08em;
  text-transform: uppercase;
  white-space: nowrap;
  cursor: pointer;
  transition: background .12s, color .12s;
}
.stl-rc-btn + .stl-rc-btn,
.stl-rc-stars + .stl-rc-btn { border-left: var(--f-line); }
/* Survol réservé aux pointeurs : sur un écran tactile il resterait collé
   au bouton qu'on vient de toucher. */
.stl-rc-btn:focus-visible { outline: 2px solid var(--f-ink); outline-offset: -5px; }
@media (hover: hover) {
  .stl-rc-btn:hover { background: var(--f-ink); color: var(--f-paper); }
  .stl-rc-ask .stl-rc-yes:hover { background: var(--f-bg); color: var(--f-tx); }
  .stl-rc-stars:hover .stl-rc-star { color: var(--f-tx); }
  .stl-rc-stars .stl-rc-star:hover ~ .stl-rc-star { color: color-mix(in srgb, var(--f-tx) 28%, transparent); }
}
.stl-rc-add { flex: 1; }
.stl-rc-hide { flex: none; width: 46px; padding: 0; }
.stl-rc-add-on { display: none; }
.stl-rc.is-added .stl-rc-add { background: var(--f-ink); color: var(--f-paper); }
.stl-rc.is-added .stl-rc-add-off { display: none; }
.stl-rc.is-added .stl-rc-add-on { display: inline; }
.stl-rc-ask .stl-rc-btn { flex: 1; }
.stl-rc-ask .stl-rc-yes { background: var(--f-ink); color: var(--f-paper); }
.stl-rc-ask .stl-rc-skip { flex: none; }

/* Étoiles : au survol (plus haut), toutes celles qui précèdent s'allument. */
.stl-rc-stars { display: inline-flex; flex: 1; min-width: 0; }
.stl-rc-star {
  flex: 1;
  min-width: 30px;
  height: 44px;
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  color: color-mix(in srgb, var(--f-tx) 28%, transparent);
  font-size: 19px;
  line-height: 1;
  cursor: pointer;
  transition: color .1s, transform .1s;
}
.stl-rc-star:active { transform: scale(1.25); }
.stl-rc-star:focus-visible { outline: 2px solid var(--f-ink); outline-offset: -4px; }
.stl-rc-star.is-on { color: var(--f-tx); }

/* Filtre Tout / Séries / Films : mêmes cases accolées que les séries. */
.stl-rc-filter .stl-p-seg-item { border: 0; background: none; font-family: var(--f-font); letter-spacing: .09em; text-transform: uppercase; cursor: pointer; }
.stl-rc-filter .stl-p-seg-item + .stl-p-seg-item { border-left: var(--f-line); }
.stl-rc-filter .stl-p-seg-item.is-active { background: var(--f-ink); color: var(--f-paper); }

/* Portrait des goûts : genres en plein, personnes en filet. */
.stl-rc-taste { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin-bottom: 20px; }
.stl-rc-chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 !important; padding: 0 !important; list-style: none; }
.stl-rc-chips li { margin: 0; }
.stl-rc-chips :is(a, span) {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 10px;
  border: var(--f-line);
  font-size: 12.5px;
  font-weight: 800;
  text-decoration: none;
}
.stl-rc-chips .is-genre :is(a, span) { background: var(--f-ink); color: var(--f-paper); }
.stl-rc-chips a:hover { background: var(--f-bg); color: var(--f-tx); box-shadow: 3px 3px 0 var(--f-ink); }

.stl-rc-refresh {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 16px;
  margin: 0 0 14px !important;
  padding: 12px 14px;
  border: var(--f-line);
  box-shadow: 4px 4px 0 var(--f-ink);
  font-size: 14.5px;
  font-weight: 700;
}
.stl-rc-refresh[hidden], .stl-rc-none[hidden] { display: none; }
.stl-rc-foot { margin-top: 18px !important; }
.stl-rc-more.is-busy { opacity: .5; pointer-events: none; }

/* Affiner : une ligne par film vu sans note. */
.stl-rc-rate { margin: 0 !important; padding: 0 !important; list-style: none; border-top: var(--f-line); max-width: 760px; }
.stl-rc-rate li {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  margin: 0;
  padding: 8px 0;
  border-bottom: var(--f-line);
  transition: opacity .25s;
}
.stl-rc-rate-pic { display: block; width: 40px; height: 60px; border: var(--f-line); background: var(--f-surf); overflow: hidden; }
.stl-rc-rate-pic img { width: 100%; height: 100%; object-fit: cover; }
.stl-rc-rate-txt { min-width: 0; display: grid; gap: 3px; }
.stl-rc-rate-txt a { font-size: 15px; font-weight: 900; letter-spacing: -.01em; text-transform: uppercase; text-decoration: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.stl-rc-rate-txt a:hover { text-decoration: underline; text-underline-offset: .15em; }
.stl-rc-rate-txt small { font-size: 12px; color: var(--f-mt); }
.stl-rc-rate .stl-rc-stars { flex: none; border: var(--f-line); }
.stl-rc-rate .stl-rc-star { flex: none; width: 40px; }
.stl-rc-rate li.is-busy { opacity: .5; pointer-events: none; }
.stl-rc-rate li.is-done .stl-rc-stars { pointer-events: none; border-color: transparent; }
.stl-rc-rate li.is-done .stl-rc-star:not(.is-on) { color: color-mix(in srgb, var(--f-tx) 16%, transparent); }

/* Explications et titres écartés : repliés, en pied d'onglet. */
.stl-rc-about { max-width: 760px; }
.stl-rc-details { border-top: var(--f-line); }
.stl-rc-details:last-child { border-bottom: var(--f-line); }
.stl-rc-details summary {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 52px;
  list-style: none;
  cursor: pointer;
  font: 800 12px/1.2 var(--f-font);
  letter-spacing: .09em;
  text-transform: uppercase;
}
.stl-rc-details summary::-webkit-details-marker { display: none; }
.stl-rc-details summary span { margin-left: auto; font-size: 16px; transition: transform .15s; }
.stl-rc-details[open] summary span { transform: rotate(45deg); }
.stl-rc-details summary b { color: var(--f-mt); font-variant-numeric: tabular-nums; }
.stl-rc-details ol { margin: 0 0 14px !important; padding: 0 !important; list-style: none; counter-reset: rc; }
.stl-rc-details ol li {
  position: relative;
  margin: 0;
  padding: 10px 0 10px 38px;
  border-top: 1px solid var(--f-surf);
  font-size: 14.5px;
  line-height: 1.5;
  color: var(--f-mt);
  counter-increment: rc;
}
.stl-rc-details ol li::before {
  content: counter(rc);
  position: absolute;
  left: 0;
  top: 10px;
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  background: var(--f-ink);
  color: var(--f-paper);
  font-size: 12px;
  font-weight: 900;
}
.stl-rc-details ol b { color: var(--f-tx); font-weight: 800; }
.stl-rc-details > p { margin: 0 0 18px !important; font-size: 14px; line-height: 1.5; color: var(--f-mt); }
.stl-rc-hiddenlist { margin: 0 0 14px !important; padding: 0 !important; list-style: none; }
.stl-rc-hiddenlist li { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 0; padding: 6px 0; border-top: 1px solid var(--f-surf); font-size: 14.5px; font-weight: 700; }
.stl-rc-hiddenlist small { margin-left: 6px; font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--f-mt); }

/* Aperçu sur l'accueil : trois suggestions sur téléphone, six au-delà. */
@media (max-width: 759px) {
  .stl-rc-grid.is-preview .stl-rc:nth-child(n+4) { display: none; }
}
@media (max-width: 600px) {
  .stl-rc-grid { gap: 10px; }
  .stl-rc { grid-template-columns: 92px minmax(0, 1fr); }
  .stl-rc-poster { min-height: 138px; }
  .stl-rc-body { padding: 10px 12px 10px; }
  .stl-rc-title { font-size: 16px; }
  .stl-rc-btn { padding: 0 10px; }
  .stl-rc-filter { width: 100%; }
  .stl-rc-taste { margin-bottom: 16px; }
  .stl-rc-rate li { grid-template-columns: 40px minmax(0, 1fr); gap: 6px 12px; }
  .stl-rc-rate .stl-rc-stars { grid-column: 1 / -1; }
  .stl-rc-rate .stl-rc-star { flex: 1; width: auto; }
  .stl-rc-refresh .stl-f-btn { width: 100%; justify-content: center; min-height: 44px; }
}
@media (prefers-reduced-motion: reduce) {
  .stl-rc, .stl-rc.is-in { transition: none; animation: none; }
}

/* ═══ AUTRES MEMBRES ACTIFS ═════════════════════════════════════════
   Pied de profil, sur fond gris : une carte par membre, son niveau, ce
   qu'il a fait ce mois-ci et ce qu'il a regardé en dernier. */
.stl-p-others { margin: 72px 0 -72px; padding: 48px 0 64px; border-top: var(--f-line); background: var(--f-surf); }
.stl-p-members {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr));
  gap: 14px;
}
.stl-p-member {
  display: flex;
  flex-direction: column;
  border: var(--f-line);
  background: var(--f-bg);
  transition: transform .15s, box-shadow .15s;
}
.stl-p-member:hover { transform: translate(-3px, -3px); box-shadow: 6px 6px 0 var(--f-ink); }
.stl-p-member-id { display: flex; align-items: center; gap: 12px; padding: 14px; text-decoration: none; }
.stl-p-member-id img { flex: none; width: 56px; height: 56px; border: var(--f-line); border-radius: 0; object-fit: cover; filter: grayscale(1); }
.stl-p-member-id > span { min-width: 0; display: grid; gap: 4px; }
.stl-p-member-id b { font-size: 17px; font-weight: 900; line-height: 1.05; letter-spacing: -.02em; text-transform: uppercase; overflow-wrap: anywhere; }
.stl-p-member-id small { font-size: 10.5px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--f-mt); }
.stl-p-member-id:hover b { text-decoration: underline; text-underline-offset: .15em; }
.stl-p-member-stat {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 9px 14px;
  border-top: var(--f-line);
  font-size: 12.5px;
  font-weight: 700;
}
.stl-p-member-stat span { color: var(--f-mt); font-weight: 600; white-space: nowrap; }
.stl-p-member-last {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: auto;
  padding: 10px 14px;
  border-top: var(--f-line);
  text-decoration: none;
}
.stl-p-member-last img { flex: none; width: 30px; height: 45px; object-fit: cover; border: var(--f-line); }
.stl-p-member-last span { min-width: 0; display: grid; gap: 2px; font-size: 13.5px; line-height: 1.25; }
.stl-p-member-last small { font-size: 10px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--f-mt); }
.stl-p-member-last b { font-weight: 800; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.stl-p-member-last em { font-style: normal; font-weight: 900; font-size: 12px; }
.stl-p-member-last:hover b { text-decoration: underline; text-underline-offset: .15em; }

.stl-p-recaps.is-single { grid-template-columns: minmax(0, 1fr); max-width: 680px; }

/* ═══ JOURNAL (.stl-jr) ════════════════════════════════════════════════
   Hors profil aussi (page badges) : jetons avec valeurs de secours.

     heure │ ÉTIQUETTE │ affiches │ phrase                     │ +XP

   L'étiquette dit le geste d'un coup d'œil : pleine pour ce qu'on a
   regardé, inversée pour une série finie, filet pour un ajout, pointillés
   pour un badge ou une récompense. */
.stl-jr {
  --j-ink: var(--f-ink, var(--ink, #0a0a0a));
  --j-paper: var(--f-paper, var(--paper, #fff));
  --j-mt: var(--f-mt, var(--mt, #6b6b6b));
  --j-surf: var(--f-surf, var(--surf, #f3f3f3));
  font-family: var(--f-font, var(--sans, 'Inter', 'Helvetica Neue', Arial, sans-serif));
  color: var(--j-ink);
}
.stl-jr-day {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 28px 0 0 !important;
  padding: 9px 12px;
  background: var(--j-ink);
  color: var(--j-paper);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .09em;
  line-height: 1.2;
  text-transform: uppercase;
}
.stl-jr-day:first-child { margin-top: 0 !important; }
.stl-jr-day b { font-weight: 800; opacity: .7; font-variant-numeric: tabular-nums; }

.stl-jr-list { margin: 0 !important; padding: 0 !important; list-style: none; border: 1px solid var(--j-ink); border-top: 0; }
.stl-jr:not(.is-by-day) .stl-jr-list { border-top: 1px solid var(--j-ink); }
.stl-jr-row {
  display: grid;
  grid-template-columns: 56px 104px 72px minmax(0, 1fr) 80px;
  align-items: center;
  min-height: 64px;
  border-top: 1px solid color-mix(in srgb, var(--j-ink) 16%, transparent);
  transition: background .12s;
}
.stl-jr-row:first-child { border-top: 0; }
.stl-jr-row:hover { background: var(--j-surf); }
.stl-jr-row > * { padding: 10px 12px; }

.stl-jr-when {
  align-self: stretch;
  display: flex;
  align-items: center;
  border-right: 1px solid var(--j-ink);
  font-size: 12px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}
.stl-jr:not(.is-by-day) .stl-jr-when { font-size: 11px; font-weight: 600; color: var(--j-mt); }
.stl-jr-tag {
  justify-self: start;
  margin-left: 12px;
  padding: 5px 7px !important;
  border: 1px solid var(--j-ink);
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: .09em;
  line-height: 1;
  text-transform: uppercase;
  white-space: nowrap;
}
.stl-jr-tag.is-solid { background: var(--j-ink); color: var(--j-paper); }
.stl-jr-tag.is-invert { background: var(--j-paper); color: var(--j-ink); box-shadow: 3px 3px 0 var(--j-ink); }
.stl-jr-tag.is-dash { border-style: dashed; }
/* Badge : étiquette pointillée, pictogramme dans une case, ligne teintée. */
.stl-jr-tag.is-badge { border-style: dashed; }
.stl-jr-row.is-badge { background: color-mix(in srgb, var(--j-surf) 70%, transparent); }
.stl-jr-badge {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--j-ink);
  background: var(--j-paper);
  font-size: 20px;
  line-height: 1;
}

/* Affiches en éventail serré : jusqu'à trois. */
.stl-jr-pics { display: flex; padding-top: 8px !important; padding-bottom: 8px !important; }
.stl-jr-pics img {
  width: 32px;
  height: 48px;
  object-fit: cover;
  border: 1px solid var(--j-ink);
  background: var(--j-surf);
}
.stl-jr-pics img + img { margin-left: -16px; }
.stl-jr-pics.is-empty::before {
  content: '';
  width: 32px;
  height: 48px;
  border: 1px dashed color-mix(in srgb, var(--j-ink) 30%, transparent);
}

.stl-jr-text { font-size: 14.5px; line-height: 1.4; min-width: 0; }
.stl-jr-text a,
.stl-jr-text b {
  font-weight: 800;
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid currentColor;
}
.stl-jr-text a:hover { background: var(--j-ink); color: var(--j-paper); border-color: var(--j-ink); }
.stl-jr-text b { border: 0; }
.stl-jr-text .stl-p-code { font-weight: 900; letter-spacing: -.01em; font-variant-numeric: tabular-nums; }
.stl-jr-dim { color: var(--j-mt); }
.stl-jr-stars { margin-left: 4px; letter-spacing: .06em; white-space: nowrap; }
.stl-jr-gone { color: var(--j-mt); font-style: italic; }

.stl-jr-xp {
  align-self: stretch;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  border-left: 1px solid var(--j-ink);
  font-size: 14px;
  font-weight: 900;
  font-variant-numeric: tabular-nums;
}
.stl-jr-xp small { margin-left: 2px; font-size: 9.5px; font-weight: 800; color: var(--j-mt); }

@media (max-width: 600px) {
  /* Deux lignes : heure, étiquette, XP ; puis affiches et phrase. */
  .stl-jr-row {
    grid-template-columns: 44px auto minmax(0, 1fr) auto;
    grid-template-areas:
      "when tag . xp"
      "pics text text text";
    align-items: start;
  }
  .stl-jr-row > * { padding: 8px 10px; }
  .stl-jr-when { grid-area: when; align-self: auto; border-right: 0; padding-bottom: 0; }
  .stl-jr-tag { grid-area: tag; margin: 7px 0 0 6px; }
  .stl-jr-xp { grid-area: xp; align-self: auto; border-left: 0; padding-bottom: 0; }
  .stl-jr-pics { grid-area: pics; }
  .stl-jr-pics img { width: 26px; height: 39px; }
  .stl-jr-pics img + img { display: none; }
  .stl-jr-pics.is-empty { display: none; }
  .stl-jr-text { grid-area: text; font-size: 14px; }
  .stl-jr-pics.is-empty + .stl-jr-text { grid-column: 1 / -1; }
}
