/* ═══════════════════════════════════════════════════════════════════════
   STREAMLOG : programme du jour ([stl_today], public/views/today.php)

   La page porte .stl-f et .stl-p : elle hérite des jetons des fiches
   (--f-ink, --f-line…), des têtes de section du profil (.stl-p-sec), des
   cartes série (.stl-p-show) et des recommandations (.stl-rc). Ne reste ici
   que ce qui lui est propre :

     .stl-td
       .stl-td-head     la date, le titre, le compte du jour, le sommaire
       .stl-td-grid     grille d'affiches
         .stl-td-card   une sortie : affiche, étiquette, titre, quoi, où
       .stl-td-join     invitation à se connecter (visiteur)
       .stl-td-foot     renvoi vers le calendrier

   Sommaire : 1. En-tête · 2. Sommaire · 3. Cartes · 4. Visiteur ·
   5. Petits écrans
   ═══════════════════════════════════════════════════════════════════════ */

/* ── 1. EN-TÊTE ────────────────────────────────────────────────────────── */
.stl-td-head {
  padding: clamp(28px, 5vw, 64px) 0 0;
  border-bottom: var(--f-line);
}
.stl-td :is(.stl-td-kicker, .stl-td-jump a, .stl-td-when, .stl-td-net, .stl-td-mine) {
  font-family: var(--f-font);
  letter-spacing: .09em;
  text-transform: uppercase;
}
.stl-td-kicker {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  font-weight: 800;
}
/* Voyant « aujourd'hui » : le rouge du site, comme dans la navbar. */
.stl-td-head .stl-td-kicker::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--f-red);
}
.stl-td-title {
  margin-top: 14px !important;
  font-size: clamp(2.6rem, 1rem + 7.4vw, 7rem);
  font-weight: 900;
  line-height: .88;
  letter-spacing: -.055em;
  text-transform: uppercase;
  text-wrap: balance;
}
.stl-td-lede {
  margin-top: 20px !important;
  max-width: 62ch;
  font-size: clamp(15px, 13px + .4vw, 18px);
  line-height: 1.45;
  color: var(--f-mt);
}

/* ── 2. SOMMAIRE ───────────────────────────────────────────────────────
   Des cases soudées, comme les onglets du profil. Elle défile d'un bord à
   l'autre sur téléphone. */
.stl-td-jump {
  display: flex;
  margin-top: clamp(24px, 4vw, 40px);
  margin-bottom: -1px;
  overflow-x: auto;
  scrollbar-width: none;
}
.stl-td-jump::-webkit-scrollbar { display: none; }
.stl-td-jump a {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: var(--f-bar);
  padding: 0 16px;
  border: var(--f-line);
  background: var(--f-bg);
  font-size: 11.5px;
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
  transition: background .12s, color .12s;
}
.stl-td-jump a + a { margin-left: -1px; }
.stl-td-jump a:hover,
.stl-td-jump a:focus-visible { background: var(--f-ink); color: var(--f-paper); outline: 0; }
.stl-td-jump a span { font-variant-numeric: tabular-nums; color: var(--f-mt); }
.stl-td-jump a:hover span,
.stl-td-jump a:focus-visible span { color: inherit; }

/* Les ancres ne passent pas sous la barre de navigation collante. */
.stl-td .stl-p-sec { scroll-margin-top: 96px; }

/* ── 3. CARTES ─────────────────────────────────────────────────────────
   Un bloc encadré : l'affiche (étiquette en haut à gauche), puis le texte.
   Même geste au survol que les cartes série du profil. */
.stl-td-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(168px, 1fr));
  gap: 22px 16px;
}
.stl-td-card {
  min-width: 0;
  display: flex;
  flex-direction: column;
  border: var(--f-line);
  background: var(--f-bg);
  transition: transform .15s, box-shadow .15s;
}
@media (hover: hover) {
  .stl-td-card:hover { transform: translate(-3px, -3px); box-shadow: 6px 6px 0 var(--f-ink); }
  .stl-td-card:hover .stl-td-poster img { transform: scale(1.03); }
}
.stl-td-poster {
  position: relative;
  display: block;
  aspect-ratio: 2 / 3;
  border-bottom: var(--f-line);
  background: var(--f-surf);
  overflow: hidden;
}
.stl-td-poster, .stl-td-poster:hover { text-decoration: none; }
.stl-td-poster img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.stl-td-empty { display: grid; place-items: center; height: 100%; font-size: 56px; font-weight: 900; color: var(--f-mt); }

.stl-td-body { flex: 1; display: flex; flex-direction: column; gap: 5px; padding: 11px 12px 12px; }
.stl-td-when { font-size: 10px; font-weight: 800; color: var(--f-mt); }
.stl-td-name { font-size: 14px; font-weight: 900; line-height: 1.15; letter-spacing: -.01em; text-transform: uppercase; overflow-wrap: anywhere; }
.stl-td-name a { text-decoration: none; }
.stl-td-name a:hover { text-decoration: underline; text-underline-offset: .15em; }
.stl-td-line { font-size: 13px; font-weight: 600; line-height: 1.3; }
.stl-td-net {
  margin-top: auto !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-td-line + .stl-td-net,
.stl-td-name + .stl-td-net { margin-top: auto !important; }

/* Ce que le membre suit : la carte est marquée, en noir plein. */
.stl-td-mine {
  margin: 4px -12px -12px !important;
  padding: 7px 12px;
  background: var(--f-ink);
  color: var(--f-paper);
  font-size: 10px;
  font-weight: 800;
}
.stl-td-card.is-followed { box-shadow: 4px 4px 0 var(--f-ink); }

/* Jour sans sortie, ou aucune série en cours. */
.stl-td-void { max-width: 760px; }
.stl-td-void .stl-p-more { margin-left: 8px; }

/* ── 4. VISITEUR ───────────────────────────────────────────────────────── */
.stl-td-join {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px 40px;
  padding: clamp(22px, 4vw, 40px);
  border: var(--f-line);
  box-shadow: 6px 6px 0 var(--f-ink);
}
.stl-td-join-txt { flex: 1 1 420px; min-width: 0; }
.stl-td-join-txt .stl-td-kicker { color: var(--f-mt); }
.stl-td-join-txt .stl-p-sec-title { margin-top: 10px !important; }
.stl-td-join-txt p:last-child { margin-top: 14px !important; max-width: 60ch; font-size: 15px; line-height: 1.5; color: var(--f-mt); }
.stl-td-join-acts { display: flex; flex-wrap: wrap; gap: 8px; }

.stl-td-foot {
  margin-top: 56px !important;
  padding-top: 18px;
  border-top: var(--f-line);
  font-size: 14px;
  color: var(--f-mt);
}
.stl-td-foot a { color: var(--f-tx); font-weight: 700; text-underline-offset: .15em; }

/* ── 5. PETITS ÉCRANS ──────────────────────────────────────────────────── */
@media (max-width: 600px) {
  .stl-td-jump { margin-inline: calc(var(--f-pad) * -1); padding-inline: var(--f-pad); }
  .stl-td-jump a { min-height: 44px; padding: 0 13px; }
  .stl-td-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 10px; }
  .stl-td-body { padding: 10px; }
  .stl-td-mine { margin: 4px -10px -10px !important; padding: 7px 10px; }
  .stl-td-name { font-size: 13px; }
  .stl-td-join { box-shadow: 4px 4px 0 var(--f-ink); }
  .stl-td-join-acts, .stl-td-join-acts .stl-f-btn { width: 100%; }
  .stl-td-foot { margin-top: 44px !important; }
}

@media (prefers-reduced-motion: reduce) {
  .stl-td-card, .stl-td-poster img { transition: none; }
}
