/* Evotic — fil unifié (parité UnifiedFeed.kt).
   MINIMAL (natif depuis le 02/10, repère Instagram) : le fil est une liste PLATE sur la
   surface neutre (#FFFFFF / #0B0B0D), encre du thème, filet entre deux publications.
   L'ancienne version « verre blanc sur dégradé » perdait son dégradé en thème clair
   (`[data-theme] body` l'emporte sur `body.feed-brand`) : texte BLANC sur fond BLANC.
   Restent en blanc fixe : ce qui est posé SUR une image ou un bouton dégradé. */

.fu-wrap { padding: 0 0 8px; }

/* Puces de filtre — collées en haut, sur un voile violet de marque (jamais noir) */
.fu-chips {
  position: sticky; top: 0; z-index: 12;
  display: flex; gap: 6px; padding: 8px 12px;
  overflow-x: auto; scrollbar-width: none;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}
.fu-chips::-webkit-scrollbar { display: none; }
.fu-chip {
  flex: 0 0 auto; padding: 7px 14px; border-radius: 999px;
  background: var(--chip); border: 1px solid transparent;
  color: var(--ink); font-family: var(--font); font-size: 13px; font-weight: 700;
  cursor: pointer; white-space: nowrap;
}
.fu-chip.is-active { background: var(--ak-cta); border-color: transparent; color: #fff; }

/* Une carte = une ligne de verre, séparée par un filet clair */
.fu-card {
  padding: 12px 14px 8px;
  border-bottom: 1px solid var(--border);
  color: var(--text);
}
.fu-head { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.fu-ic {
  width: 34px; height: 34px; border-radius: 11px; flex: 0 0 auto;
  display: flex; align-items: center; justify-content: center; font-size: 14px; color: #fff;
}
.fu-headtxt { flex: 1; min-width: 0; }
.fu-headtxt small { display: block; font-size: 11.5px; color: var(--text-muted); }
.fu-author { display: inline-flex; align-items: center; gap: 6px; color: var(--text); text-decoration: none; }
.fu-author img, .fu-av {
  width: 22px; height: 22px; border-radius: 50%; object-fit: cover;
  background: var(--chip); color: var(--text-muted); display: inline-flex;
  align-items: center; justify-content: center; font-size: 10px;
}
.fu-author b { font-size: 14px; font-weight: 800; }
.fu-src { font-size: 14px; font-weight: 800; }

.fu-media { display: block; border-radius: 16px; overflow: hidden; margin-bottom: 8px; }
.fu-media img { width: 100%; display: block; max-height: 320px; object-fit: cover; }

/* ── MOSAÏQUE DE PHOTOS (2026-10-01) ─────────────────────────────────
   Même hauteur que la photo unique au-dessus, quel que soit le nombre :
   empiler les images pousserait le reste du fil hors de l'écran. Deux
   pixels d'écart — ça sépare sans dessiner de cadre. */
.fu-mosaic {
  display: grid;
  gap: 2px;
  margin-bottom: 8px;
  border-radius: 16px;
  overflow: hidden;
  /* `aspect-ratio` plutôt qu'une hauteur fixe : la place est réservée AVANT
     le chargement, donc le fil ne saute pas quand les images arrivent. */
  aspect-ratio: 4 / 3;
}
.fu-mosaic.is-2 { grid-template-columns: 1fr 1fr; }
/* 1,6 contre 1 : la grande reste dominante sans écraser les deux autres. */
.fu-mosaic.is-3 { grid-template-columns: 1.6fr 1fr; grid-template-rows: 1fr 1fr; }
.fu-mosaic.is-3 .fu-mosaic-cell:first-child { grid-row: span 2; }
/* Quatre et plus (W5, 30/10), façon Facebook : une grande à gauche (2/3, trois rangées) et trois
   petites empilées à droite ; le « +N » sur la dernière. Sous ~300 px d'écran, la colonne de droite
   tomberait sous 90 px : on garde alors l'ancien 2×2, lisible. */
.fu-mosaic.is-4 { grid-template-columns: 2fr 1fr; grid-template-rows: 1fr 1fr 1fr; }
.fu-mosaic.is-4 .fu-mosaic-cell:first-child { grid-row: span 3; }
@media (max-width: 301px) {
  .fu-mosaic.is-4 { grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; }
  .fu-mosaic.is-4 .fu-mosaic-cell:first-child { grid-row: auto; }
}
.fu-mosaic-cell { position: relative; overflow: hidden; min-height: 0; }
/* `cover` : dans une mosaïque, une image qui ne remplit pas sa case laisse un
   trou plus laid qu'un recadrage. */
.fu-mosaic-cell img { width: 100%; height: 100%; display: block; object-fit: cover; }
/* Le « +N » va sur la DERNIÈRE tuile visible : on reprend là où le regard
   s'arrête. */
.fu-mosaic-more {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: rgba(20, 10, 40, 0.8);
  color: #FFF;
  font-size: 22px;
  font-weight: 900;
}

.fu-title { margin: 0 0 6px; font-size: 16px; font-weight: 900; line-height: 1.25; }
.fu-title a { color: var(--text); text-decoration: none; }

.fu-body { margin: 0 0 6px; font-size: 14.5px; line-height: 1.45; color: var(--text); white-space: pre-wrap; }
.fu-body.is-clamped {
  display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden;
}
.fu-more {
  background: none; border: 0; color: var(--link); font-family: var(--font);
  font-size: 13.5px; font-weight: 800; padding: 0 0 6px; cursor: pointer;
}

.fu-meta { display: flex; flex-wrap: wrap; gap: 12px; font-size: 12.5px; color: var(--text-muted); margin-bottom: 8px; }
.fu-cta {
  display: inline-block; margin-bottom: 8px; padding: 9px 16px; border-radius: 999px;
  background: var(--ak-cta); color: #fff; font-size: 13.5px; font-weight: 800; text-decoration: none;
}
.fu-audio { width: 100%; margin-bottom: 8px; }

/* Actions — toujours en dernier dans la carte */
.fu-actions { display: flex; gap: 18px; padding-top: 2px; }
.fu-act {
  display: inline-flex; align-items: center; gap: 6px;
  background: none; border: 0; padding: 6px 0; cursor: pointer;
  color: var(--text-muted); font-family: var(--font); font-size: 13px; font-weight: 700;
}
.fu-act.is-on { color: var(--link); }
.fu-act:active { transform: scale(.94); }

.fu-comments { padding: 8px 0 4px; }
.fu-cm { font-size: 13.5px; padding: 6px 0; color: var(--text); }
.fu-cm small { display: block; font-size: 11px; color: var(--text-muted); }
.fu-cm-load { font-size: 13px; color: var(--text-muted); padding: 6px 0; }
.fu-cm-form { display: flex; gap: 8px; margin-top: 6px; }
.fu-cm-form input {
  flex: 1; padding: 10px 14px; border-radius: 999px;
  background: var(--chip); border: 1px solid transparent;
  color: var(--text); font-family: var(--font); font-size: 14px; outline: none;
}
.fu-cm-form input::placeholder { color: var(--text-muted); }
.fu-cm-form button {
  width: 42px; border-radius: 50%; border: 0; background: var(--ak-cta); color: #fff; cursor: pointer;
}

.fu-skel {
  height: 150px; margin: 10px 14px; border-radius: 16px;
  background: var(--skeleton);
}
.fu-empty { text-align: center; padding: 40px 20px; color: var(--text-muted); }
.fu-empty i { display: block; font-size: 34px; margin-bottom: 10px; color: var(--link); }
.fu-empty b { display: block; font-size: 16px; color: var(--text); }
.fu-empty div { font-size: 13.5px; margin-top: 4px; }

/* MINIMAL : le fil vit sur la surface neutre du thème (plus de dégradé de page). */
body.feed-brand { background: var(--bg); }
body.feed-brand .com-shell { background: transparent; }

/* Raccourci vers les OUTILS de la section filtrée (publier, gérer, catalogue).
   Le fil montre ; la page de section sert à faire. */
.fu-tools {
  display: flex; align-items: center; gap: 10px;
  margin: 10px 12px 2px; padding: 11px 14px;
  border-radius: 14px;
  background: var(--card); border: 1px solid var(--border-strong);
  color: var(--text); text-decoration: none; font-size: 14px; font-weight: 700;
}
.fu-tools span { flex: 1; }
.fu-tools > i:last-child { font-size: 12px; opacity: .6; }

/* ── CARTE SON — catégorie Musique (13/10) ─────────────────────────────────
   Le fil vit sur le dégradé de marque dans les DEUX thèmes : surface fixe,
   encre fixe (blanc sur voile sombre), jamais une couleur qui dépend du thème.
   Grande pochette carrée, lecture qui ouvre le lecteur officiel (/musique),
   partage mis en valeur : c'est lui qui fait connaître un son. */
.fu-son .fu-head { margin-bottom: 10px; }
.fu-son-mea {
  flex: 0 0 auto; padding: 4px 10px; border-radius: 999px;
  background: var(--chip); border: 1px solid transparent;
  color: var(--text); font-size: 11px; font-weight: 800; letter-spacing: .02em; white-space: nowrap;
}
.fu-son-cover {
  position: relative; display: block; width: 100%; max-width: 460px; margin: 0 auto 10px;
  aspect-ratio: 1 / 1; border-radius: 18px; overflow: hidden;
  background: linear-gradient(135deg, var(--g1, #3A1771), var(--g2, #FF2E93));
  box-shadow: 0 10px 28px rgba(20, 6, 40, .35);
}
.fu-son-cover img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.fu-son-initial {
  position: absolute; inset: 0; display: grid; place-items: center;
  color: rgba(255, 255, 255, .92); font-size: clamp(72px, 30vw, 150px); font-weight: 900; line-height: 1;
  text-shadow: 0 6px 24px rgba(0, 0, 0, .25);
}
/* Voile bas : la pastille durée et le bouton restent lisibles sur une pochette claire. */
.fu-son-shade {
  position: absolute; inset: auto 0 0 0; height: 45%;
  background: linear-gradient(180deg, rgba(10, 4, 22, 0), rgba(10, 4, 22, .62));
  pointer-events: none;
}
.fu-son-badge {
  position: absolute; top: 10px; left: 10px; max-width: calc(100% - 20px);
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 11px; border-radius: 999px;
  color: #fff; font-size: 12.5px; font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  background: rgba(16, 6, 32, .72); border: 1px solid rgba(255, 255, 255, .22);
}
.fu-son-badge.is-rang i { color: #FFD24A; }
.fu-son-badge.is-dec i { color: #7CF0B6; }
.fu-son-dur {
  position: absolute; left: 12px; bottom: 14px;
  padding: 3px 8px; border-radius: 8px; background: rgba(16, 6, 32, .7);
  color: #fff; font-size: 12px; font-weight: 800; font-variant-numeric: tabular-nums;
}
.fu-son-play {
  position: absolute; right: 12px; bottom: 12px;
  width: 58px; height: 58px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--ak-cta-135); color: #fff; text-decoration: none; font-size: 21px;
  box-shadow: 0 8px 22px rgba(255, 46, 147, .45);
  transition: transform .15s ease;
}
.fu-son-play i { margin-left: 3px; color: inherit; }   /* le triangle est optiquement décentré */
.fu-son-play:active { transform: scale(.93); }
.fu-son-play:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
.fu-son-info { max-width: 460px; margin: 0 auto; }
.fu-son-info .fu-title { font-size: 17px; margin-bottom: 2px; overflow-wrap: anywhere; }
.fu-son-artist { font-size: 14px; font-weight: 700; color: var(--text); display: flex; align-items: center; gap: 10px; min-width: 0; }
.fu-son-artist > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* Suivre l'artiste (13/10) : pastille contour blanc sur la carte sombre, pleine une fois abonné. */
.fu-son-suivre {
  flex: 0 0 auto; display: inline-flex; align-items: center; gap: 5px; white-space: nowrap;
  padding: 4px 11px; border-radius: 999px; cursor: pointer;
  border: 1.5px solid var(--border-strong); background: transparent; color: var(--text);
  font: inherit; font-size: 12.5px; font-weight: 800;
}
.fu-son-suivre i { color: inherit; font-size: 11.5px; }
.fu-son-suivre.is-on { background: var(--chip); border-color: transparent; }
.fu-son-suivre:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.fu-son-tags { font-size: 12.5px; color: var(--text-muted); margin-top: 2px; }
.fu-son-stats { display: flex; flex-wrap: wrap; gap: 14px; margin: 6px 0 8px; font-size: 12.5px; color: var(--text-muted); }
.fu-son-stats i { margin-right: 5px; }
.fu-son-stats .fa-star { color: #FFD24A; }
.fu-son-actions { max-width: 460px; margin: 0 auto; align-items: center; }
.fu-son-share {
  margin-left: auto; padding: 8px 16px; border-radius: 999px;
  background: var(--ak-cta); color: #fff;
  box-shadow: 0 6px 16px rgba(255, 46, 147, .35);
}
.fu-son-share i, .fu-son-share span { color: inherit; }

/* En-tête du filtre Musique : classements + « + » (espace artiste). */
.fu-son-head { display: flex; align-items: center; gap: 8px; margin: 10px 12px 2px; }
.fu-son-head .fu-tools { flex: 1; min-width: 0; margin: 0; }
.fu-son-plus {
  flex: 0 0 auto; width: 46px; height: 46px; border-radius: 14px;
  display: grid; place-items: center; background: var(--ak-cta); color: #fff; text-decoration: none; font-size: 18px;
}
.fu-son-plus i { color: inherit; }
.fu-son-empty .fu-cta { margin-top: 14px; }
.fu-son-empty .fu-cta i { color: inherit; font-size: inherit; display: inline; margin: 0 6px 0 0; }
.fu-son-more {
  display: block; margin: 14px auto 18px; padding: 11px 22px; border-radius: 999px;
  background: var(--card); border: 1px solid var(--border-strong);
  color: var(--text); font-family: var(--font); font-size: 14px; font-weight: 800; cursor: pointer;
}
.fu-son-more[disabled] { opacity: .5; }


/* ─────────── Visionneuse photo (ordinateur ≥ 1100 px, W5 30/10) ───────────
   Ouverte seulement par feed-unified.js quand l'écran fait au moins 1100 px : rien ici ne touche le
   téléphone. Fond sombre, photo ajustée, panneau blanc de 360 px. Contrastes : blanc sur #0B0712
   (19:1), #1C1530 sur blanc (16:1), #5B536B sur blanc (7,4:1). */
.fu-pv {
  --pv-side: #FFFFFF; --pv-ink: #1C1530; --pv-mute: #5B536B; --pv-line: #E6E1EF;
  position: fixed; inset: 0; z-index: 9000; display: grid; grid-template-columns: 1fr 360px;
  background: #0B0712;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .fu-pv { --pv-side: #1D1530; --pv-ink: #F3EEFF; --pv-mute: #B8AECF; --pv-line: #33294A; }
}
:root[data-theme="dark"] .fu-pv { --pv-side: #1D1530; --pv-ink: #F3EEFF; --pv-mute: #B8AECF; --pv-line: #33294A; }
html.fu-pv-lock, html.fu-pv-lock body { overflow: hidden; }
.fu-pv-stage { position: relative; display: grid; place-items: center; min-width: 0; min-height: 0; padding: 56px 72px; }
.fu-pv-img { max-width: 100%; max-height: calc(100vh - 112px); object-fit: contain; display: block; border-radius: 4px; }
.fu-pv-x, .fu-pv-nav {
  position: absolute; border: 0; border-radius: 50%; display: grid; place-items: center; cursor: pointer;
  background: rgba(255, 255, 255, .14); color: #fff; font-size: 18px;
}
.fu-pv-x i, .fu-pv-nav i { color: inherit; }
.fu-pv-x:hover, .fu-pv-nav:hover { background: rgba(255, 255, 255, .26); }
.fu-pv-x:focus-visible, .fu-pv-nav:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.fu-pv-x { top: 14px; left: 14px; width: 40px; height: 40px; }
.fu-pv-nav { top: 50%; width: 48px; height: 48px; transform: translateY(-50%); }
.fu-pv-prev { left: 16px; }
.fu-pv-next { right: 16px; }
.fu-pv-count {
  position: absolute; bottom: 16px; left: 50%; transform: translateX(-50%);
  padding: 4px 12px; border-radius: 999px; background: rgba(0, 0, 0, .55); color: #fff; font-size: 13px; font-weight: 700;
}
.fu-pv-side {
  background: var(--pv-side); color: var(--pv-ink); display: flex; flex-direction: column; min-height: 0;
  overflow-y: auto; border-left: 1px solid var(--pv-line);
}
.fu-pv-head { display: flex; flex-direction: column; gap: 2px; padding: 16px 16px 8px; }
.fu-pv-head .fu-author { display: inline-flex; align-items: center; gap: 10px; color: var(--pv-ink); text-decoration: none; }
.fu-pv-head .fu-author img, .fu-pv-head .fu-av { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; }
.fu-pv-head .fu-av { display: inline-grid; place-items: center; background: #F1EBFD; color: #6D28D9; }
.fu-pv-head small { color: var(--pv-mute); font-size: 12.5px; padding-left: 50px; margin-top: -6px; }
.fu-pv-title { margin: 4px 16px 6px; font-size: 16px; font-weight: 800; color: var(--pv-ink); }
.fu-pv-body { margin: 4px 16px 10px; font-size: 14.5px; line-height: 1.45; white-space: pre-wrap; color: var(--pv-ink); }
.fu-pv-acts { margin: 0 12px; border-top: 1px solid var(--pv-line); border-bottom: 1px solid var(--pv-line); }
.fu-pv-acts .fu-actions { color: var(--pv-mute); }
.fu-pv-acts .fu-act, .fu-pv-acts .fu-act i { color: var(--pv-mute); }
.fu-pv-cm { flex: 1 1 auto; display: flex; flex-direction: column; min-height: 0; }
.fu-pv-cm .fs-cm-inline { display: flex; flex-direction: column; flex: 1 1 auto; min-height: 0; }
.fu-pv-cm .fs-cm-list { flex: 1 1 auto; overflow-y: auto; padding: 8px 12px; }
.fu-pv-cm .fs-cm-form { position: sticky; bottom: 0; background: var(--pv-side); border-top: 1px solid var(--pv-line); }
