/* =============================================================================
   Kura Web — feuille de style de la version web (`app.html`, `u.html` connecté).
   =============================================================================
   Chargée **après** `kura.css` : elle réutilise ses jetons, son verre et ses
   pilules, et n'ajoute que ce que la version web a en plus — barre d'onglets
   flottante, cercles d'avatars, fiches de profil. Les formes viennent des captures
   de l'app (`assets/screens/`) : anneau violet autour des avatars, titres de section
   en capitales espacées, médailles dorées, carte ADN en verre.
   ========================================================================== */

/* L'attribut `hidden` doit toujours gagner. Une règle d'auteur qui pose un
   `display` l'emporte sinon sur celle du navigateur — c'est ce qui laissait une
   pastille d'initiale par-dessus une vraie photo sur les profils publics. */
[hidden] { display: none !important; }

.app-main { padding-block: 22px 56px; }
.app-main .wrap { max-width: 1120px; }
.view { min-height: 50vh; }
/* `kura.css` donne à tout `section` le grand rythme des pages éditoriales
   (72 à 128 px) : ici les blocs sont des étagères d'une même vue, serrées. */
.view section { padding-block: 0; }

/* ------------------------------------------------------------ la coque ---- */

/* La barre du haut garde les onglets visibles jusqu'à 721 px : la version web
   n'en a que cinq, plus « Le principe » — la page de présentation, qui n'est pas un
   onglet de l'app : elle n'est donc pas dans la barre du bas. Ils tiennent bien avant
   le seuil de 1270 px du site. */
body.is-app .nav__links { display: flex; }
body.is-app .nav__inner { justify-content: flex-start; }
body.is-app .nav__links { margin-inline: auto; }
.nav__links a[aria-current="page"] { color: var(--text); background: var(--glass-strong); }
.nav__links a.nav__principe { color: var(--text-3, var(--text-2)); font-weight: 500; }
.nav__links a.nav__principe:hover { color: var(--text); }

/* « La communauté » : le dernier bloc de l'Accueil — les décomptes en direct et les
   membres, comme dans l'ancienne page d'accueil du site. */
.view .community { margin-top: 64px; padding-top: 48px; border-top: 1px solid var(--line, rgba(255, 255, 255, 0.08)); text-align: center; }
.community .heading { margin-top: 8px; }
.community .subhead { margin: 18px auto 0; max-width: 46ch; }
.community .members { margin-top: 34px; justify-content: center; }
.community .actions { margin-top: 34px; }

/* La barre d'onglets du bas, comme celle de l'app : une pilule posée sur le contenu. */
.tabbar {
    position: fixed;
    left: 50%;
    bottom: max(14px, env(safe-area-inset-bottom));
    transform: translateX(-50%);
    z-index: 60;
    display: none;
    gap: 2px;
    width: min(480px, calc(100% - 20px));
    padding: 7px 4px;
    background: rgba(12, 9, 14, 0.72);
}
.tabbar__item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    padding: 8px 1px 7px;
    min-width: 0;
    border-radius: 24px;
    color: var(--text-2);
    font-size: 10px;
    font-weight: 600;
    letter-spacing: -0.02em;
    transition: color 0.2s var(--ease), background-color 0.2s var(--ease), transform 0.1s ease-out;
}
.tabbar__item span { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* « Bibliothèque » est le plus long des cinq libellés : à 390 px il dépassait de quelques pixels
   (mesuré) et finissait en « Bibliothè… ». Un cran de moins sous 420 px suffit, deux sous 365 px. */
@media (max-width: 420px) {
    .tabbar__item { font-size: 9.5px; letter-spacing: -0.04em; }
}
@media (max-width: 365px) {
    .tabbar__item { font-size: 8.5px; letter-spacing: -0.05em; }
}
.tabbar__item:hover { text-decoration: none; color: var(--text); }
.tabbar__item:active { transform: scale(0.95); }
.tabbar__item[aria-current="page"] { color: var(--accent); background: rgba(255, 255, 255, 0.09); }

/* Sous 1080 px la barre du haut ne tient plus — **mesuré le 3 octobre 2026** : les cinq
   onglets, « Le principe », puis les points et « Se déconnecter » d'un membre demandent
   865 px de contenu, et l'ancienne bascule à 720 px laissait la barre déborder de 150 à
   260 px entre 720 et 900 px (tablettes, fenêtres étroites) — sans que rien ne le montre
   à 390 ou à 1280 px, les deux largeurs qu'on regardait. La barre du bas prend donc le
   relais plus tôt ; « Le principe » reste au pied de page. */
@media (max-width: 1080px) {
    .tabbar { display: flex; }
    body.is-app { padding-bottom: 92px; }
    body.is-app .nav__links { display: none; }
    body.is-app .nav__inner { justify-content: space-between; }
}

/* --------------------------------------------------------------- avatars -- */

.av {
    --s: 48px;
    position: relative;
    display: inline-grid;
    place-items: center;
    flex: 0 0 auto;
    width: var(--s);
    height: var(--s);
    border-radius: 50%;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(137, 20, 136, 0.55), rgba(109, 106, 232, 0.42));
}
.av__fb {
    font-weight: 600;
    font-size: calc(var(--s) * 0.4);
    color: var(--text-2);
    line-height: 1;
}
.av img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Le chip « ⚡ points #rang » de l'accueil de l'app. */
.chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 13px;
    border-radius: var(--r-pill);
    background: var(--glass);
    border: var(--hair) solid var(--hairline-strong);
    font-size: 13px;
    white-space: nowrap;
}
.chip__bolt { display: inline-flex; color: var(--gold); }
.chip b { font-weight: 600; color: var(--gold); letter-spacing: var(--track-control); }
.chip__rank { color: var(--text-3); font-weight: 600; }
.nav__actions .chip { margin-right: 4px; }
@media (max-width: 380px) { .nav__actions .chip__rank { display: none; } }

/* --------------------------------------------------------------- en-têtes -- */

.view-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 18px;
    flex-wrap: wrap;
    margin-bottom: 22px;
}
.view-head .overline { margin-bottom: 8px; }

.block { margin-top: clamp(30px, 4vw, 44px); }
.block__head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 16px;
}
.block__title { font-size: 22px; font-weight: 600; letter-spacing: var(--track-title); line-height: 1.15; }

.pill-link {
    display: inline-flex;
    padding: 8px 16px;
    font-size: 13px;
    font-weight: 600;
    color: var(--text);
}
.pill-link:hover { text-decoration: none; background: var(--glass-strong); }

.pill-group {
    display: inline-flex;
    gap: 3px;
    padding: 4px;
    border-radius: var(--r-pill);
    background: var(--glass);
    border: var(--hair) solid var(--hairline);
}
.pill-btn {
    padding: 7px 15px;
    border: 0;
    border-radius: var(--r-pill);
    background: transparent;
    color: var(--text-2);
    font: inherit;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: color 0.2s var(--ease), background-color 0.2s var(--ease);
}
.pill-btn:hover { color: var(--text); }
.pill-btn[aria-pressed="true"] { color: var(--text); background: var(--glass-strong); }

/* ----------------------------------------------------------------- stories -- */

.stories {
    list-style: none;
    margin: 0;
    padding: 6px 2px 8px;
    display: flex;
    gap: 16px;
    overflow-x: auto;
    scrollbar-width: none;
}
.stories::-webkit-scrollbar { display: none; }
.story {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    width: 78px;
    color: var(--text);
}
.story:hover { text-decoration: none; }
.story__ring {
    padding: 3px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--brand-lift), var(--indigo));
    transition: transform 0.15s ease-out;
}
.story:hover .story__ring { transform: scale(1.04); }
.story__ring .av { border: 3px solid var(--bg); box-sizing: content-box; }
.story__name {
    max-width: 78px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 12.5px;
    color: var(--text-2);
}

/* ------------------------------------------------------------- recherche --- */

.search { margin-top: clamp(26px, 3.4vw, 36px); }
.search--inline { padding: 8px; margin: 0 0 18px; border-radius: var(--r-pill); }
.search__form { position: relative; }
.search__icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    display: inline-flex;
    color: var(--text-3);
    pointer-events: none;
}
.search__input {
    width: 100%;
    padding: 14px 18px 14px 46px;
    border-radius: var(--r-pill);
    border: var(--hair) solid var(--hairline-strong);
    background: rgba(255, 255, 255, 0.06);
    color: var(--text);
    font: inherit;
    font-size: 16px;
    letter-spacing: var(--track-body);
}
.search--inline .search__input { border-color: transparent; background: transparent; }
.search__input::placeholder { color: var(--text-3); }
.search__input:focus { outline: none; border-color: rgba(203, 104, 201, 0.7); background: rgba(255, 255, 255, 0.09); }
.search--inline .search__input:focus { border-color: transparent; }
.search__status { margin: 12px 4px 0; }
.search__results { margin-top: 10px; }

/* --------------------------------------------------------- listes de gens --- */

.mlist, .rlist { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }

.mrow, .rrow {
    display: flex;
    align-items: center;
    gap: 13px;
    padding: 10px 12px;
    border-radius: 18px;
    color: var(--text);
    transition: background-color 0.15s var(--ease);
}
.mrow:hover, .rrow:hover { background: var(--glass-strong); text-decoration: none; }
.mrow > svg { color: var(--text-3); margin-left: auto; }
.mrow__body { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.mrow__body b { font-weight: 600; font-size: 15px; letter-spacing: var(--track-control); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mrow__meta { font-size: 12.5px; color: var(--text-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.rrow__rank {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1px;
    width: 34px;
    font-size: 15px;
    font-weight: 600;
    color: var(--text-3);
}
.rrow__rank.is-top { color: var(--gold); }
.rrow__points {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 14px;
    font-weight: 600;
    color: var(--gold);
    letter-spacing: var(--track-control);
}
.rrow.is-me { background: rgba(203, 104, 201, 0.12); box-shadow: inset 0 0 0 var(--hair) rgba(203, 104, 201, 0.4); }

/* ------------------------------------------------------- cartes de films --- */

.mgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(132px, 1fr)); gap: 18px 14px; }
.mgrid--feed { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }

.mcard__link { display: block; color: var(--text); }
.mcard__link:hover { text-decoration: none; }
.mcard__face {
    position: relative;
    display: grid;
    place-items: center;
    aspect-ratio: 2 / 3;
    border-radius: 16px;
    overflow: hidden;
    background: linear-gradient(160deg, hsl(var(--h) 52% 26%), hsl(calc(var(--h) + 28) 58% 12%));
    border: var(--hair) solid var(--hairline);
    transition: transform 0.15s ease-out;
}
.mcard__link:hover .mcard__face { transform: translateY(-2px); }
.mcard__face img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.mcard__ph {
    padding: 12px;
    text-align: center;
    font-weight: 600;
    font-size: 14px;
    line-height: 1.2;
    color: rgba(255, 255, 255, 0.86);
    letter-spacing: var(--track-small);
}
.mcard__score {
    position: absolute;
    left: 8px;
    bottom: 8px;
    display: inline-flex;
    align-items: center;
    gap: 3px;
    padding: 4px 9px;
    border-radius: var(--r-pill);
    background: rgba(8, 6, 10, 0.72);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    font-size: 13px;
    font-weight: 600;
    color: #fff;
}
.mcard__score svg { color: var(--gold); }
.mcard__score small { font-size: 10px; font-weight: 500; color: var(--text-2); }
.mcard__title {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-top: 8px;
    font-size: 13px;
    line-height: 1.3;
    color: var(--text-2);
}
.mcard__by { display: block; margin-top: 2px; font-size: 12px; color: var(--text-3); }

/* ---------------------------------------------------- connexion, état vide -- */

.gate { display: grid; gap: 36px; align-items: center; padding-block: clamp(20px, 5vw, 56px); }
@media (min-width: 900px) { .gate { grid-template-columns: minmax(0, 1fr) 440px; gap: 64px; } }
.gate__intro .heading { margin-bottom: 16px; }
.login-card { width: 100%; max-width: 440px; }
.login-card .notice { margin-bottom: 14px; }
.empty { padding-block: clamp(36px, 8vw, 80px); max-width: 560px; }
.empty .heading-sm { margin-bottom: 12px; }
.home__app { margin-top: clamp(34px, 4vw, 48px); }

/* ============================================================== le profil == */

.pf { display: grid; gap: 28px; padding-block: 10px 24px; }
@media (min-width: 980px) {
    .pf { grid-template-columns: 340px minmax(0, 1fr); gap: 44px; align-items: start; }
    .pf__side { position: sticky; top: 90px; }
}
.pf-loading { padding-block: 60px; }

.pf-head { padding: 28px 24px 24px; border-radius: var(--r-panel); text-align: center; }
.pf-head__ring {
    width: 118px;
    height: 118px;
    margin: 0 auto 16px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--brand-lift), var(--indigo));
}
.pf-head__ring .av { border: 4px solid var(--bg); box-sizing: content-box; }
.pf-head__name { font-size: 26px; letter-spacing: var(--track-heading); overflow-wrap: anywhere; }
.pf-head__meta { margin: 6px 0 0; font-size: 13.5px; color: var(--text-3); }
.pf-head__chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 16px; }
.pf-head__rel { display: contents; }
.pf-head__bio { margin: 18px 0 0; font-size: 15px; line-height: 1.5; color: var(--text-2); white-space: pre-wrap; overflow-wrap: anywhere; text-align: left; }

.counts { display: flex; justify-content: center; gap: 10px; margin-top: 20px; }
.count {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1px;
    min-width: 112px;
    padding: 10px 16px;
    border: var(--hair) solid var(--hairline);
    border-radius: 18px;
    background: var(--glass);
    color: var(--text);
    font: inherit;
    cursor: pointer;
    transition: background-color 0.15s var(--ease), transform 0.1s ease-out;
}
.count:hover:not(:disabled) { background: var(--glass-strong); }
.count:active:not(:disabled) { transform: scale(0.97); }
.count:disabled { cursor: default; opacity: 0.7; }
.count b { font-size: 20px; font-weight: 600; letter-spacing: var(--track-heading); }
.count span { font-size: 12px; color: var(--text-2); }

.common {
    margin-top: 14px;
    padding: 18px 20px;
    border-radius: var(--r-card);
    background: var(--glass);
    border: var(--hair) solid var(--hairline);
}
.common__title { display: flex; align-items: center; gap: 8px; margin: 0; font-size: 13px; font-weight: 600; color: var(--accent); }
.common ul { margin: 10px 0 0; padding-left: 18px; font-size: 14px; line-height: 1.5; color: var(--text-2); }

/* Les sections : titres en capitales espacées, comme « ADN CINÉMATOGRAPHIQUE »
   et « CE QUI REVIENT CHEZ TOI » dans l'app. */
.pf__main { min-width: 0; }
.pf-sec + .pf-sec { margin-top: clamp(30px, 4vw, 42px); }
.pf-sec__head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.pf-sec__title {
    margin: 0;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-3);
}
.pf-sec__sub { font-size: 13px; color: var(--text-2); }
.pf-sec__error { padding: 14px 0; }
.pf-sub { margin: 22px 0 10px; font-size: 13px; color: var(--text-2); }
.pf-more { display: flex; justify-content: center; margin-top: 22px; }

/* Affiches et pochettes. La case est posée sur un fond neutre, l'image par-dessus :
   si l'image tombe, la légende reste. */
.posters { list-style: none; margin: 0; padding: 0 0 4px; display: flex; gap: 12px; overflow-x: auto; scrollbar-width: thin; }
.posters__item { flex: 1 0 112px; max-width: 190px; }
.posters__tile { position: relative; display: block; color: var(--text); }
.posters__tile:hover { text-decoration: none; }
.posters__ph {
    display: grid;
    place-items: center;
    aspect-ratio: 2 / 3;
    border-radius: 16px;
    background: linear-gradient(160deg, rgba(137, 20, 136, 0.4), rgba(109, 106, 232, 0.22));
    border: var(--hair) solid var(--hairline);
    font-size: 30px;
    font-weight: 600;
    color: var(--text-3);
}
.posters--album .posters__ph { aspect-ratio: 1 / 1; }
.posters__tile img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    aspect-ratio: 2 / 3;
    object-fit: cover;
    border-radius: 16px;
    border: var(--hair) solid var(--hairline);
    transition: transform 0.15s ease-out;
}
.posters--album .posters__tile img { aspect-ratio: 1 / 1; }
.posters__tile:hover img { transform: translateY(-2px); }
.posters__cap {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-top: 9px;
    font-size: 12.5px;
    line-height: 1.3;
    color: var(--text-2);
}

.songs { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.songs li { display: flex; align-items: center; gap: 14px; padding: 11px 0; border-top: var(--hair) solid var(--hairline); }
.songs li:first-child { border-top: 0; }
.songs__n { width: 22px; text-align: center; font-weight: 600; color: var(--accent); }
.songs b { display: block; font-weight: 500; letter-spacing: var(--track-control); }
.songs__by { display: block; font-size: 13px; color: var(--text-3); }

.figures { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(98px, 1fr)); gap: 18px 14px; }
.figures__item { display: flex; flex-direction: column; align-items: center; gap: 9px; text-align: center; }
.figures__img {
    position: relative;
    display: grid;
    place-items: center;
    width: 92px;
    height: 92px;
    border-radius: 22px;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(137, 20, 136, 0.5), rgba(109, 106, 232, 0.36));
}
.figures__ph { font-size: 28px; font-weight: 600; color: var(--text-2); }
.figures__img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.figures__name { font-size: 13px; line-height: 1.25; color: var(--text); }

/* Statistiques */
.tiles { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; }
.tile {
    display: flex;
    flex-direction: column;
    gap: 3px;
    padding: 16px 18px;
    border-radius: 20px;
    background: var(--glass);
    border: var(--hair) solid var(--hairline);
}
.tile__label { font-size: 12px; color: var(--text-2); }
.tile__value { font-size: 28px; font-weight: 600; letter-spacing: var(--track-heading); line-height: 1.1; }
.tile__sub { font-size: 12px; color: var(--accent); }

.histo { display: flex; align-items: stretch; gap: 6px; height: 128px; }
.histo__col { flex: 1; display: grid; grid-template-rows: 1fr auto; gap: 6px; min-width: 0; }
.histo__bar {
    align-self: end;
    width: 100%;
    border-radius: 7px 7px 3px 3px;
    background: linear-gradient(180deg, var(--accent), var(--brand));
}
.histo__tick { height: 14px; font-size: 11px; line-height: 14px; text-align: center; color: var(--text-3); }

/* ADN */
.dna { padding: 24px; border-radius: 28px; }
.dna__sentence { margin: 0 0 6px; font-size: clamp(18px, 2.2vw, 21px); font-weight: 300; line-height: 1.38; letter-spacing: var(--track-title); }
.dna__body { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 24px; margin: 6px 0 14px; }
.dna__radar { flex: 0 1 260px; width: 260px; max-width: 100%; overflow: visible; }
.dna__ring { fill: none; stroke: var(--hairline); stroke-width: 1; }
.dna__spoke { stroke: var(--hairline); stroke-width: 1; }
.dna__shape { fill: rgba(203, 104, 201, 0.26); stroke: var(--accent); stroke-width: 1.6; stroke-linejoin: round; }
.dna__dot { fill: var(--accent); }
.dna__label { font-size: 10.5px; fill: var(--text-2); }
.dna__top { flex: 1 1 160px; list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.dna__top li { display: flex; align-items: baseline; justify-content: space-between; gap: 14px; font-size: 15px; }
.dna__top b { color: var(--accent); font-weight: 600; letter-spacing: var(--track-control); }

/* Trophées */
.medals { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 20px 22px; }
.medal { display: flex; flex-direction: column; align-items: center; gap: 9px; width: 86px; text-align: center; }
.medal__disc {
    display: grid;
    place-items: center;
    width: 68px;
    height: 68px;
    border-radius: 50%;
    color: #fff;
    border: var(--hair) solid rgba(255, 255, 255, 0.28);
}
.medal__disc--gold { background: radial-gradient(circle at 32% 24%, #f2cf95, #b0743a 78%); box-shadow: 0 0 26px rgba(232, 168, 98, 0.32); }
.medal__disc--teal { background: radial-gradient(circle at 32% 24%, #4fbf9f, #1b6a5b 78%); box-shadow: 0 0 26px rgba(70, 190, 160, 0.28); }
.medal__disc--more { background: var(--glass-strong); font-size: 18px; font-weight: 600; color: var(--text-2); }
.medal__label { font-size: 13px; line-height: 1.25; font-weight: 500; }

/* Critiques */
.reviews { display: grid; gap: 12px; }
.review {
    display: grid;
    gap: 10px;
    padding: 18px 20px;
    border-radius: 22px;
    background: var(--glass);
    border: var(--hair) solid var(--hairline);
}
.review__head { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.review__kind { font-size: 11px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent); }
.review__title { font-size: 16px; font-weight: 600; letter-spacing: var(--track-title); color: var(--text); overflow-wrap: anywhere; }
.review__text { margin: 0; font-size: 15px; line-height: 1.55; color: var(--text-2); white-space: pre-wrap; overflow-wrap: anywhere; }
.review__reveal {
    justify-self: start;
    padding: 9px 15px;
    border: var(--hair) solid var(--hairline-strong);
    border-radius: var(--r-pill);
    background: transparent;
    color: var(--text-2);
    font: inherit;
    font-size: 13px;
    cursor: pointer;
}
.review__reveal:hover { color: var(--text); background: var(--glass); }
.review__meta { margin: 0; }

/* La fenêtre des abonnés */
dialog.sheet {
    width: min(440px, calc(100% - 28px));
    max-height: min(660px, 84vh);
    margin: auto;
    padding: 0;
    overflow: hidden;
    color: var(--text);
    border-radius: 28px;
    background: rgba(18, 13, 20, 0.94);
}
dialog.sheet[open] { display: flex; flex-direction: column; }
dialog.sheet::backdrop { background: rgba(5, 4, 6, 0.62); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.sheet__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 20px 20px 10px 24px; }
.sheet__close {
    display: inline-grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border: 0;
    border-radius: 50%;
    background: var(--glass-strong);
    color: var(--text);
    cursor: pointer;
}
.sheet__body { padding: 4px 12px 18px; overflow-y: auto; }
.sheet__body > p { padding: 0 12px; }

@media (prefers-reduced-motion: reduce) {
    .story__ring, .mcard__face, .posters__tile img, .tabbar__item, .count { transition: none; }
}
@media (prefers-reduced-transparency: reduce) {
    .tabbar, dialog.sheet { background: var(--elevated) !important; }
    dialog.sheet::backdrop { -webkit-backdrop-filter: none; backdrop-filter: none; }
}


/* ============================================ cinéma, musique, bibliothèque == */

.page { padding-block: 4px 12px; }

/* Les rayons à puces : tendances, filtres, années. Un lien et un bouton y sont frères. */
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 22px; }
.chips--wrap { margin-top: 8px; }
.chip-btn {
    display: inline-flex;
    padding: 8px 16px;
    border: var(--hair) solid var(--hairline-strong);
    border-radius: var(--r-pill);
    background: var(--glass);
    color: var(--text-2);
    font: inherit;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: color 0.2s var(--ease), background-color 0.2s var(--ease);
}
.chip-btn:hover { color: var(--text); text-decoration: none; }
.chip-btn[aria-pressed="true"], .chip-btn[aria-current="page"] {
    color: #fff;
    border-color: transparent;
    background: linear-gradient(135deg, var(--brand), var(--brand-lift));
}
.toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.toolbar .chips { margin: 0; }

/* Une rangée défilante de vignettes, et sa variante « À l'affiche ». */
.shelf { display: flex; gap: 14px; overflow-x: auto; padding-bottom: 8px; scrollbar-width: thin; scroll-snap-type: x proximity; }
.shelf > * { scroll-snap-align: start; }
.shelf > .mcard { flex: 0 0 148px; }
.shelf > .mcard--round { flex-basis: 112px; }

.bigcard {
    position: relative;
    display: block;
    flex: 0 0 min(260px, 72vw);
    aspect-ratio: 3 / 4.2;
    overflow: hidden;
    border-radius: 26px;
    border: var(--hair) solid var(--hairline);
    color: #fff;
    transition: transform 0.15s ease-out;
}
.bigcard:hover { text-decoration: none; transform: translateY(-2px); }
.bigcard__art {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    background: linear-gradient(160deg, hsl(var(--h) 52% 26%), hsl(calc(var(--h) + 28) 58% 12%));
}
.bigcard__art img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.bigcard::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 42%, rgba(5, 4, 6, 0.92)); }
.bigcard__text { position: absolute; left: 16px; right: 16px; bottom: 14px; z-index: 1; display: flex; flex-direction: column; gap: 3px; }
.bigcard__text b { font-size: 19px; line-height: 1.15; letter-spacing: var(--track-title); }
.bigcard__text span { font-size: 13px; color: var(--text-2); }

/* Les formes de vignette : l'affiche est en 2/3, la pochette et le portrait sont carrés. */
.mcard--album .mcard__face { aspect-ratio: 1 / 1; border-radius: 14px; }
.mcard--round .mcard__face { aspect-ratio: 1 / 1; border-radius: 50%; }
.mcard--round .mcard__title, .mcard--round .mcard__sub { text-align: center; }
.mcard__sub { display: block; margin-top: 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; color: var(--text-3); }
.mgrid--people { grid-template-columns: repeat(auto-fill, minmax(112px, 1fr)); }

/* « Explorer » : trois portes teintées, comme dans l'onglet Cinéma de l'app. */
.explore { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 14px; }
.explore__card {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    gap: 3px;
    min-height: 132px;
    padding: 18px;
    border: var(--hair) solid var(--hairline);
    border-radius: 24px;
    color: var(--text);
    transition: transform 0.15s ease-out;
}
.explore__card:hover { text-decoration: none; transform: translateY(-2px); }
.explore__card--blue { background: linear-gradient(160deg, rgba(64, 96, 210, 0.36), rgba(18, 22, 58, 0.55)); }
.explore__card--pink { background: linear-gradient(160deg, rgba(190, 60, 150, 0.34), rgba(52, 14, 44, 0.55)); }
.explore__card--green { background: linear-gradient(160deg, rgba(50, 160, 130, 0.32), rgba(12, 44, 38, 0.55)); }
.explore__icon { display: grid; place-items: center; width: 42px; height: 42px; margin-bottom: auto; border-radius: 13px; background: rgba(255, 255, 255, 0.14); }
.explore__card b { font-size: 18px; letter-spacing: var(--track-title); }
.explore__card span:last-child { font-size: 13px; color: var(--text-2); }

/* Les fiches : un album, un film, un artiste. */
.detail { display: grid; gap: 26px; align-items: start; padding-block: 8px 6px; }
@media (min-width: 760px) {
    .detail { grid-template-columns: 260px minmax(0, 1fr); gap: 40px; }
    .detail--artist { grid-template-columns: 210px minmax(0, 1fr); }
}
.detail__art {
    position: relative;
    display: grid;
    place-items: center;
    width: min(260px, 72%);
    margin-inline: auto;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    border-radius: 22px;
    border: var(--hair) solid var(--hairline);
    background: linear-gradient(160deg, rgba(137, 20, 136, 0.45), rgba(109, 106, 232, 0.25));
}
.detail__art--film { aspect-ratio: 2 / 3; }
.detail__art--round { border-radius: 50%; width: min(210px, 62%); }
.detail__art img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.detail__ph { padding: 18px; text-align: center; font-size: clamp(26px, 5vw, 40px); font-weight: 600; color: var(--text-3); }
.detail__info .heading { margin-bottom: 8px; }
.detail__by { margin: 0 0 6px; font-size: 18px; color: var(--text-2); }
.detail__by a { color: var(--accent); }
.detail__meta { margin: 0 0 14px; font-size: 14px; color: var(--text-3); }
.detail__tagline { font-style: italic; color: var(--text-2); }
.detail__overview { max-width: 70ch; font-size: 16px; line-height: 1.55; color: var(--text-2); }
.detail__credit { margin: 0 0 6px; font-size: 14px; color: var(--text-2); }
.detail__credit b { color: var(--text); font-weight: 600; }
.detail .actions { justify-content: flex-start; margin-top: 18px; }
.overline__link { color: inherit; }
.overline__link:hover { color: var(--accent); text-decoration: none; }

.tracks { list-style: none; margin: 0 0 12px; padding: 0; }
.tracks li { display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; gap: 10px; padding: 11px 4px; border-top: var(--hair) solid var(--hairline); }
.tracks li:first-child { border-top: 0; }
.tracks__n { text-align: right; color: var(--text-3); font-variant-numeric: tabular-nums; }
.tracks__d { color: var(--text-3); font-variant-numeric: tabular-nums; }

.bio { max-width: 68ch; margin-top: 18px; }
.bio__text { margin: 0; font-size: 15px; line-height: 1.55; color: var(--text-2); }
.bio__src { margin-top: 8px; }
.songs__link { font-weight: 500; color: var(--text); letter-spacing: var(--track-control); }

/* Ce qui est réservé aux membres, dit sans bruit. */
.lock { display: flex; align-items: flex-start; gap: 16px; padding: 20px 22px; border-radius: 22px; }
.lock__icon { display: grid; place-items: center; flex: none; width: 38px; height: 38px; border-radius: 12px; background: var(--glass-strong); color: var(--accent); }
.lock__text { margin: 0 0 12px; color: var(--text-2); }
.lock__title { margin: 0 0 4px; font-weight: 600; }

.score-pill {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    padding: 5px 11px;
    border-radius: var(--r-pill);
    background: rgba(203, 104, 201, 0.14);
    color: var(--accent);
    font-size: 14px;
    font-weight: 600;
}
.score-pill small { font-size: 11px; font-weight: 500; color: var(--text-2); }
.review__by { display: inline-flex; align-items: center; gap: 6px; margin-left: auto; font-size: 13px; color: var(--text-2); }
.histo--months { height: 104px; }

.app-foot { margin-top: 28px; padding-block: 22px 28px; border-top: var(--hair) solid var(--hairline); }
.app-foot p { max-width: 90ch; margin: 0; font-size: 12px; line-height: 1.6; color: var(--text-3); }
.app-foot a { color: var(--text-2); }
@media (max-width: 720px) { .app-foot { padding-bottom: 100px; } }

@media (prefers-reduced-motion: reduce) {
    .bigcard, .explore__card { transition: none; }
}


/* ====================================================== écrire : les gestes == */

/* Les gestes d'une fiche — vu, à voir, noter, critiquer, ranger — sur une seule rangée qui
   passe à la ligne : des boutons de verre, dont l'état se lit sans couleur seule
   (coche, remplissage) et se dit aux lecteurs d'écran (`aria-pressed`). */
.actbar { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.act {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-height: 40px;
    padding: 9px 16px;
    border: var(--hair) solid var(--hairline-strong);
    border-radius: var(--r-pill);
    background: var(--glass);
    color: var(--text-2);
    font: inherit;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: color 0.2s var(--ease), background-color 0.2s var(--ease), transform 0.1s ease-out, border-color 0.2s var(--ease);
}
.act:hover { color: var(--text); background: var(--glass-strong); }
.act:active { transform: scale(0.97); }
.act:disabled, .act[aria-busy="true"] { opacity: 0.55; cursor: progress; }
.act[aria-pressed="true"] { color: #fff; border-color: transparent; background: linear-gradient(135deg, var(--brand), var(--brand-lift)); }
.act--primary { color: var(--text); }
.act--primary svg { color: var(--gold); }
.act.is-rated { border-color: rgba(232, 199, 126, 0.55); color: var(--gold); }
.act:focus-visible, .vote:focus-visible, .listrow:focus-visible, .mcard__remove:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* L'invité : une invitation, pas des boutons morts. */
.actbar--guest { align-items: center; padding: 12px 16px; border-radius: 20px; background: var(--glass); border: var(--hair) solid var(--hairline); }
.actbar--guest p { margin: 0; flex: 1 1 220px; font-size: 14px; color: var(--text-2); }

/* La feuille de saisie : même verre que les listes d'abonnés, avec des champs. */
dialog.sheet--form { width: min(480px, calc(100% - 28px)); max-height: min(720px, 90vh); }
dialog.sheet--rate { width: min(520px, calc(100% - 28px)); }
.sheet--form .sheet__body { padding: 4px 22px 22px; }
.rate { display: grid; gap: 16px; }
.rate__panel { display: grid; gap: 14px; }
.rate__field { display: grid; gap: 7px; font-size: 13px; color: var(--text-2); }
.rate__field > span { font-weight: 600; letter-spacing: var(--track-small); }
.rate__axis { display: grid; gap: 4px; }
.rate__axis-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.rate__axis p { margin: 0; }
.rate__value { font-weight: 600; font-variant-numeric: tabular-nums; color: var(--gold); white-space: nowrap; }
.rate input[type="range"] { width: 100%; accent-color: var(--brand-lift); height: 28px; margin: 0; }
.rate__panel > .rate__value { font-size: 22px; }
.stars {
    --p: 60%;
    display: inline-block;
    justify-self: start;
    width: max-content;
    font-size: 34px;
    letter-spacing: 6px;
    line-height: 1;
    background: linear-gradient(90deg, var(--gold) var(--p), rgba(255, 255, 255, 0.16) var(--p));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}
.rate textarea.input { resize: vertical; min-height: 120px; }
.check { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--text-2); cursor: pointer; }
.check input { width: 18px; height: 18px; accent-color: var(--brand-lift); }
.sheet__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 4px; }
.sheet__error { margin: 0; min-height: 0; font-size: 14px; color: var(--danger); }
.sheet__error:empty { display: none; }
.btn--danger { color: var(--danger); }
.btn--danger:hover { color: #ff8189; }
.btn:disabled, .btn[aria-busy="true"] { opacity: 0.5; cursor: not-allowed; }
.btn[aria-busy="true"] { cursor: progress; }

/* « Ajouter à une liste » */
.listrows { display: grid; gap: 8px; }
.listrow {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    width: 100%;
    padding: 12px 16px;
    border: var(--hair) solid var(--hairline);
    border-radius: 18px;
    background: var(--glass);
    color: var(--text);
    font: inherit;
    text-align: left;
    cursor: pointer;
}
.listrow:hover { background: var(--glass-strong); }
.listrow__main { display: grid; gap: 2px; min-width: 0; }
.listrow__main b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.listrow__state { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--text-2); white-space: nowrap; }
.listrow[aria-pressed="true"] { border-color: rgba(203, 104, 201, 0.55); }
.listrow[aria-pressed="true"] .listrow__state { color: var(--accent); }

/* Les saisons d'une série : une note chacune. */
.seasons { display: grid; gap: 8px; }
.season {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 16px;
    border: var(--hair) solid var(--hairline);
    border-radius: 18px;
    background: var(--glass);
}
.season > div { flex: 1; display: grid; gap: 2px; min-width: 0; }
.season__score { font-weight: 600; color: var(--gold); font-variant-numeric: tabular-nums; }

/* Voter, modifier : sous une critique. */
.review__actions { display: flex; align-items: center; gap: 10px; margin-top: 10px; }
.votes { display: inline-flex; gap: 6px; }
.vote {
    display: inline-grid;
    place-items: center;
    width: 32px;
    height: 32px;
    border: var(--hair) solid var(--hairline-strong);
    border-radius: 50%;
    background: var(--glass);
    color: var(--text-2);
    cursor: pointer;
}
.vote:hover { color: var(--text); }
.vote[aria-pressed="true"] { color: #fff; border-color: transparent; background: linear-gradient(135deg, var(--brand), var(--brand-lift)); }
.review--mine { box-shadow: inset 0 0 0 var(--hair) rgba(203, 104, 201, 0.45); }

/* Suivre, sur un profil. */
.pf-head__follow { margin-top: 14px; display: flex; justify-content: center; }
.btn--follow[aria-pressed="true"] { color: var(--accent); }

/* Les listes. */
.toolbar--end { justify-content: flex-end; }
.actions--start { justify-content: flex-start; margin-top: 16px; }
.mcard { position: relative; }
.mcard__remove {
    position: absolute;
    top: 6px;
    right: 6px;
    display: inline-grid;
    place-items: center;
    width: 28px;
    height: 28px;
    border: 0;
    border-radius: 50%;
    background: rgba(8, 6, 10, 0.78);
    color: #fff;
    cursor: pointer;
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
}
.mcard__remove:hover { background: var(--danger); }

/* Les messages : une région discrète au-dessus de la barre du bas. */
.toasts {
    position: fixed;
    left: 50%;
    bottom: calc(max(14px, env(safe-area-inset-bottom)) + 84px);
    transform: translateX(-50%);
    z-index: 80;
    display: grid;
    gap: 8px;
    width: min(420px, calc(100% - 28px));
    pointer-events: none;
}
@media (min-width: 1081px) { .toasts { bottom: 28px; } }
.toast {
    margin: 0;
    padding: 12px 18px;
    border-radius: 18px;
    background: rgba(26, 20, 28, 0.96);
    border: var(--hair) solid var(--hairline-strong);
    box-shadow: 0 12px 34px rgba(0, 0, 0, 0.45);
    color: var(--text);
    font-size: 14px;
    font-weight: 600;
    text-align: center;
    animation: toast-in 0.18s ease-out;
}
.toast--error { border-color: rgba(242, 90, 99, 0.6); color: #ffb3b8; }
@keyframes toast-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .toast { animation: none; } }

/* Le journal d'un film, sous ses gestes. */
.diary { flex: 1 0 100%; margin-top: 4px; }
.diary summary { cursor: pointer; font-size: 13px; font-weight: 600; color: var(--text-2); letter-spacing: var(--track-small); padding: 6px 2px; }
.diary summary:hover { color: var(--text); }
.diary__list { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 6px; }
.diary__list li { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 8px 8px 16px; border-radius: 16px; background: var(--glass); border: var(--hair) solid var(--hairline); font-size: 14px; color: var(--text-2); }
.diary .vote[aria-pressed="true"] { background: var(--danger); }

/* Signaler, bloquer : des gestes discrets, jamais en vedette. */
.linkbtn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 6px;
    border: 0;
    background: none;
    color: var(--text-3);
    font: inherit;
    font-size: 13px;
    cursor: pointer;
    border-radius: 8px;
}
.linkbtn:hover { color: var(--text); text-decoration: underline; }
.linkbtn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.pf-head__more { display: flex; justify-content: center; gap: 10px; margin-top: 10px; }
.listrow[role="radio"][aria-checked="true"] { border-color: rgba(203, 104, 201, 0.7); background: var(--glass-strong); }
.btn--danger-fill { background: linear-gradient(135deg, #c43a45, var(--danger)); box-shadow: none; }
.blockedrow { display: flex; align-items: center; gap: 12px; padding: 8px 4px; }
.blockedrow b { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.review__actions .linkbtn { margin-left: auto; }

/* ========================================== Musique : à la une, parcourir == */

/* L'album du jour : une grande carte, pochette à gauche, texte à droite — l'« À la une » de l'app. */
.une {
    position: relative;
    display: grid;
    grid-template-columns: minmax(120px, 220px) minmax(0, 1fr);
    gap: 22px;
    align-items: end;
    padding: 18px;
    margin-bottom: 30px;
    overflow: hidden;
    border: var(--hair) solid var(--hairline);
    border-radius: 28px;
    color: var(--text);
    background: linear-gradient(150deg, hsl(var(--h) 46% 24% / 0.9), hsl(calc(var(--h) + 30) 52% 10% / 0.95));
    transition: transform 0.15s ease-out;
}
.une:hover { text-decoration: none; transform: translateY(-2px); }
.une__art { position: relative; display: grid; place-items: center; aspect-ratio: 1 / 1; overflow: hidden; border-radius: 18px; background: rgba(0, 0, 0, 0.3); box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45); }
.une__art img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.une__text { display: flex; flex-direction: column; gap: 6px; align-items: flex-start; padding-bottom: 4px; }
.une__text b { font-size: clamp(24px, 4.4vw, 40px); line-height: 1.08; letter-spacing: var(--track-title); }
.une__by { font-size: 15px; color: var(--text-2); }
.une__cta { margin-top: 12px; }
/* Sur téléphone la carte reste en deux colonnes, comme dans l'app : visuel à gauche, texte à droite. */
@media (max-width: 560px) {
    .une { grid-template-columns: minmax(96px, 36%) minmax(0, 1fr); gap: 14px; padding: 14px; align-items: center; border-radius: 24px; }
    .une__art--film { width: 100%; }
    .une__text b { font-size: 22px; }
    .une__blurb { font-size: 13px; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
    .une__cta { display: none; }
}

/* Parcourir : trois onglets soulignés, des pastilles, un rayon. */
.browse { margin-bottom: 34px; }
.browse__tabs { display: flex; gap: 24px; margin: 4px 0 14px; }
.browse__tab {
    padding: 4px 0 7px;
    border: 0;
    border-bottom: 2px solid transparent;
    background: none;
    color: var(--text-3);
    font: inherit;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
}
.browse__tab[aria-selected="true"] { color: var(--text); border-bottom-color: var(--accent); }
.browse__chips { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-bottom: 18px; padding-bottom: 2px; }
.browse__chips::-webkit-scrollbar { display: none; }
.browse__chips .chip-btn { flex: 0 0 auto; white-space: nowrap; }
.browse__head { margin-top: 4px; }
.browse__cat { margin: 0; font-size: 19px; font-weight: 600; letter-spacing: var(--track-title); }

/* À la une : des listes numérotées, façon revue. */
.une-head { margin: 8px 0 6px; }
.une-head .lede { margin: 6px 0 0; max-width: 56ch; }
.une-sec__n {
    display: inline-block;
    min-width: 2.1em;
    margin-right: 8px;
    color: var(--accent);
    font-variant-numeric: tabular-nums;
    font-weight: 700;
    opacity: 0.9;
}

/* Le film du jour : l'affiche est en 2/3, pas carrée. */
.une__art--film { aspect-ratio: 2 / 3; width: min(100%, 200px); justify-self: start; }
.une__blurb { max-width: 56ch; font-size: 14px; line-height: 1.45; color: var(--text-2); }
.une-slot:empty { display: none; }
.une-slot .une { margin-bottom: 22px; }

/* Accueil : deux cartes « du jour » côte à côte quand la place le permet. */
.une-duo { display: grid; gap: 14px; margin-bottom: 30px; }
.une-duo:empty { display: none; }
.une-duo .une { margin-bottom: 0; grid-template-columns: minmax(96px, 150px) minmax(0, 1fr); gap: 16px; }
.une-duo .une__text b { font-size: clamp(20px, 2.4vw, 28px); }
.une-duo .une__art--film { width: min(100%, 130px); }
@media (min-width: 900px) { .une-duo { grid-template-columns: 1fr 1fr; } }

/* Des rayons numérotés, par compteur : un bloc caché ou retiré ne compte pas, la suite se renumérote seule. */
.numbered { counter-reset: sec; }
.numbered > .block > .block__head .block__title::before,
.numbered > .block > .block__head h2::before {
    counter-increment: sec;
    content: counter(sec, decimal-leading-zero);
    display: inline-block;
    min-width: 2.1em;
    margin-right: 8px;
    color: var(--accent);
    font-variant-numeric: tabular-nums;
    font-weight: 700;
}

/* ===================================== Explorer : support, recherche, listes de Kura == */

/* Films · Séries · Musique : trois pastilles larges, comme le sélecteur de l'onglet Explorer de l'app. */
.medium { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 0 0 20px; }
.medium__tab {
    display: flex; align-items: center; justify-content: center; gap: 8px;
    padding: 12px 10px;
    border: var(--hair) solid var(--hairline-strong);
    border-radius: var(--r-pill);
    background: var(--glass);
    color: var(--text-2);
    font-size: 15px; font-weight: 600;
    transition: color 0.2s var(--ease), background-color 0.2s var(--ease), transform 0.1s ease-out;
}
.medium__tab:hover { text-decoration: none; color: var(--text); }
.medium__tab:active { transform: scale(0.97); }
.medium__tab[aria-current="page"] { color: #fff; border-color: transparent; background: linear-gradient(135deg, var(--brand), var(--brand-lift)); }
@media (max-width: 380px) { .medium__tab span { display: none; } }

/* La bulle de recherche, à droite de la barre d'onglets. */
.tabbar__search {
    flex: 0 0 52px; align-self: center; display: grid; place-items: center;
    width: 52px; height: 52px; margin: 0 2px 0 4px; border-radius: 50%;
    color: var(--text-2); background: rgba(255, 255, 255, 0.07);
}
.tabbar__search:hover { text-decoration: none; color: var(--text); }
.tabbar__search[aria-current="page"] { color: var(--accent); background: rgba(255, 255, 255, 0.14); }

/* « Par Kura » : la porte d'une liste éditoriale, sur l'Accueil. */
.kura-door {
    position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(120px, 200px); gap: 18px; align-items: center;
    padding: 26px; margin-bottom: 30px; overflow: hidden; color: var(--text);
    border: var(--hair) solid var(--hairline); border-radius: 28px;
    background: linear-gradient(150deg, rgba(120, 60, 24, 0.5), rgba(24, 10, 30, 0.9));
    transition: transform 0.15s ease-out;
}
.kura-door:hover { text-decoration: none; transform: translateY(-2px); }
.kura-door__eyebrow { color: var(--accent); font-size: 12px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; }
.kura-door h3 { margin: 6px 0 6px; font-size: clamp(30px, 6vw, 44px); line-height: 1.05; letter-spacing: var(--track-title); }
.kura-door p { margin: 0 0 14px; color: var(--text-2); max-width: 36ch; }
.kura-door__fan { position: relative; height: 170px; }
.kura-door__fan img { position: absolute; top: 0; width: 104px; aspect-ratio: 2 / 3; object-fit: cover; border-radius: 10px; box-shadow: 0 10px 28px rgba(0, 0, 0, 0.5); }
.kura-door__fan img:nth-child(1) { right: 78px; transform: rotate(-8deg); }
.kura-door__fan img:nth-child(2) { right: 38px; transform: rotate(0deg); z-index: 1; }
.kura-door__fan img:nth-child(3) { right: -4px; transform: rotate(9deg); }
@media (max-width: 560px) {
    .kura-door { grid-template-columns: minmax(0, 1fr) 118px; padding: 20px 16px 20px 20px; border-radius: 24px; }
    .kura-door h3 { font-size: 30px; }
    .kura-door p { font-size: 14px; }
    .kura-door__fan { height: 120px; }
    .kura-door__fan img { width: 64px; }
    .kura-door__fan img:nth-child(1) { right: 46px; }
    .kura-door__fan img:nth-child(2) { right: 22px; }
    .kura-door__fan img:nth-child(3) { right: -2px; }
}

/* La liste elle-même : un rang, une affiche, une phrase. */
.klist { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.klist__row { display: grid; grid-template-columns: 34px 64px minmax(0, 1fr); gap: 14px; align-items: center; padding: 12px; color: var(--text);
    border: var(--hair) solid var(--hairline); border-radius: 20px; background: var(--glass); }
.klist__row:hover { text-decoration: none; background: var(--glass-strong); }
.klist__n { color: var(--accent); font-weight: 700; font-variant-numeric: tabular-nums; text-align: center; }
.klist__poster { aspect-ratio: 2 / 3; border-radius: 10px; overflow: hidden; background: rgba(255, 255, 255, 0.06); }
.klist__poster img { width: 100%; height: 100%; object-fit: cover; display: block; }
.klist__body b { display: block; font-size: 16px; letter-spacing: var(--track-title); }
.klist__body span { display: block; margin-top: 3px; color: var(--text-2); font-size: 13.5px; line-height: 1.4; }

/* Recherche globale */
.search-page .block { margin-top: 22px; }
.une-duo { margin-top: 22px; }

/* Réglages : une seule sorte de section, la carte à titre et icône de l'app. */
.settings { display: grid; gap: 16px; max-width: 640px; }
.setting { padding: 20px; }
.setting__title { display: flex; align-items: center; gap: 10px; margin: 0 0 14px; font-size: 20px; letter-spacing: var(--track-title); }
.setting__title svg { color: var(--accent); }
.setting__body, .setting__form { display: grid; gap: 10px; }
.setting__row { display: flex; align-items: center; gap: 12px; padding: 6px 0; }
.setting__row b { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; }

/* « % match » : la pastille de l'affinité, sur l'affiche — étoile, chiffre, pourcent. */
.mcard__score--match { color: var(--text); }
.mcard__score--match svg { color: var(--accent); }
.bigcard__match {
    position: absolute; top: 12px; right: 12px; z-index: 2; display: inline-flex; align-items: center; gap: 4px;
    padding: 5px 10px; border-radius: var(--r-pill); background: rgba(8, 6, 10, 0.62); backdrop-filter: blur(10px);
    font-size: 13px; font-weight: 700; color: #fff;
}
.bigcard__match svg { color: var(--accent); }
.bigcard__match small { font-size: 11px; font-weight: 600; opacity: 0.8; }

/* « Que regarder ? » : des questions en pastilles, puis six propositions. */
.ask { margin-bottom: 18px; }
.ask .chips { margin-bottom: 0; }
.medium--two { grid-template-columns: repeat(2, 1fr); }
.medium button.medium__tab { font: inherit; font-size: 15px; font-weight: 600; cursor: pointer; }

/* La banderole « Que regarder ? » de l'Accueil, comme celle de l'app. */
.mood-banner {
    display: flex; align-items: center; justify-content: space-between; gap: 14px;
    padding: 16px 18px; margin-bottom: 26px; color: #fff;
    border: var(--hair) solid rgba(255, 255, 255, 0.18); border-radius: 26px;
    background: linear-gradient(110deg, var(--brand), #7b4fd0 70%, #5b6fe0);
    transition: transform 0.15s ease-out;
}
.mood-banner:hover { text-decoration: none; transform: translateY(-2px); }
.mood-banner__text { display: grid; gap: 6px; min-width: 0; }
.mood-banner__text b { font-size: 18px; line-height: 1.2; letter-spacing: var(--track-title); }
.mood-banner__text > span { display: flex; align-items: center; gap: 10px; font-size: 15px; flex-wrap: wrap; }
.mood-banner__tag { padding: 3px 10px; border-radius: var(--r-pill); background: var(--gold); color: #2a1a05; font-size: 11px; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; }
.mood-banner__go { flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: #fff; color: var(--brand); }

/* ===== Échelle : les rayons comme dans l'app — affiches de 148 px, pastilles qui défilent ===== */
.chips:not(.chips--wrap) { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-inline: calc(var(--gutter, 0px) * -1); padding-inline: var(--gutter, 0px); }
.chips:not(.chips--wrap)::-webkit-scrollbar { display: none; }
.chips:not(.chips--wrap) .chip-btn { flex: 0 0 auto; white-space: nowrap; }
.ask .chips { flex-wrap: wrap; }
.ask .chips { overflow: visible; }
@media (min-width: 1100px) {
    .shelf { gap: 18px; }
    .shelf > .mcard { flex-basis: 172px; }
    .shelf > .mcard--round { flex-basis: 128px; }
    .mgrid { grid-template-columns: repeat(auto-fill, minmax(172px, 1fr)); }
}

/* Ordinateur : le sélecteur de support ne s'étire pas sur 1100 px, la carte du jour reste une carte. */
@media (min-width: 900px) {
    .medium { max-width: 520px; }
    .medium--two { max-width: 340px; }
    .une { grid-template-columns: 170px minmax(0, 1fr); padding: 20px; }
    .une__art--film { width: 150px; }
    .une__text b { font-size: clamp(26px, 2.6vw, 36px); }
}

/* Fiches : sur téléphone la pochette ne prend pas toute la largeur — celle de l'app fait un peu plus d'un tiers d'écran. */
@media (max-width: 759px) {
    .detail__art { width: min(200px, 54%); }
    .detail__art--round { width: min(150px, 44%); }
}

/* La pastille de points ouvre le classement, comme dans l'app. */
a.chip--points { color: inherit; transition: background-color 0.2s var(--ease), transform 0.1s ease-out; }
a.chip--points:hover { text-decoration: none; background: var(--glass-strong); }
a.chip--points:active { transform: scale(0.96); }

/* Les listes de Kura sur l'Accueil : une grande porte, ou deux carrés (comme `KuraSquareDoor`). */
.kura-doors--pair { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 30px; }
.kura-doors--pair .kura-square { margin: 0; }
.kura-door { background: linear-gradient(150deg, color-mix(in srgb, var(--accent-door, #ff7a1a) 46%, transparent), rgba(24, 10, 30, 0.9)); }
.kura-square {
    position: relative; display: block; aspect-ratio: 1 / 1; overflow: hidden; color: var(--text);
    border: var(--hair) solid var(--hairline); border-radius: 26px;
    background: linear-gradient(150deg, color-mix(in srgb, var(--accent-door, #ff7a1a) 46%, transparent), rgba(137, 20, 136, 0.3)), var(--elevated);
    transition: transform 0.15s ease-out;
}
.kura-square:hover { text-decoration: none; transform: translateY(-2px); }
.kura-square .kura-door__fan { position: absolute; inset: 0 0 38% 0; height: auto; }
.kura-square .kura-door__fan img { width: 34%; top: 14%; }
.kura-square .kura-door__fan img:nth-child(1) { right: auto; left: 12%; transform: rotate(-8deg); }
.kura-square .kura-door__fan img:nth-child(2) { right: auto; left: 33%; z-index: 1; }
.kura-square .kura-door__fan img:nth-child(3) { right: 8%; transform: rotate(9deg); }
.kura-square::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 0%, rgba(5, 4, 6, 0.74) 50%, rgba(5, 4, 6, 0.94)); }
.kura-square__text { position: absolute; left: 14px; right: 14px; bottom: 12px; z-index: 2; display: flex; flex-direction: column; gap: 3px; }
.kura-square__text b { font-size: clamp(17px, 2.4vw, 22px); line-height: 1.1; letter-spacing: var(--track-title); }
.kura-square__text span:last-child { font-size: 13px; color: var(--text-2); }
.kura-square .kura-door__eyebrow { font-size: 10.5px; }

/* Le badge « certifié » du compte officiel. */
.verified { display: inline-grid; place-items: center; width: 15px; height: 15px; margin-left: 5px; vertical-align: -1px; border-radius: 50%; background: var(--accent); color: #1a0b1a; }
.verified svg { stroke-width: 3; }
.pf-head__name .verified { width: 20px; height: 20px; margin-left: 8px; vertical-align: 2px; }
@media (min-width: 700px) { .kura-doors--pair { max-width: 660px; } }
.kura-square__text b { overflow-wrap: anywhere; }

/* Les rayons défilent sans barre : on les fait glisser, comme dans l'app. */
.shelf, .chips, .stories, .browse__chips { scrollbar-width: none; -ms-overflow-style: none; }
.shelf::-webkit-scrollbar, .chips::-webkit-scrollbar, .stories::-webkit-scrollbar { display: none; width: 0; height: 0; }

/* Titres d'un album : la moyenne de la communauté, la moyenne de tes titres, leurs critiques. */
.tracks__avg { display: inline-flex; align-items: center; gap: 3px; margin-left: 10px; padding: 2px 8px; border-radius: var(--r-pill); background: var(--glass-strong); font-size: 12px; font-weight: 700; color: var(--text); font-variant-numeric: tabular-nums; }
.tracks__avg svg { color: var(--gold); }
.tracks__avg small { font-size: 10px; font-weight: 500; color: var(--text-2); }
.tracks__mine { margin: 0 0 18px; padding: 12px 16px; border: var(--hair) solid var(--hairline); border-radius: 18px; background: var(--glass); font-size: 14px; color: var(--text-2); }
.tracks__mine b { color: var(--text); }
.track-reviews { margin-top: 16px; }
.track-reviews__title { display: flex; align-items: center; gap: 10px; margin: 0 0 8px; font-size: 16px; letter-spacing: var(--track-title); }
.track-reviews__title span { display: grid; place-items: center; min-width: 26px; height: 26px; border-radius: 50%; background: var(--glass-strong); color: var(--accent); font-size: 12px; }
.track-reviews__title small { margin-left: auto; font-size: 12px; font-weight: 500; color: var(--text-3); }

/* Affinité par domaine : une barre Cinéma / Séries / Musique, comme `scopeBar` dans l'app. */
.scopes { display: grid; gap: 11px; margin: 4px 0 14px; }
.scope { display: grid; grid-template-columns: 18px 64px minmax(0, 1fr) 46px; align-items: center; gap: 10px; font-size: 13px; }
.scope__label { font-weight: 500; color: var(--text); }
.scope__track { height: 7px; border-radius: 4px; background: rgba(255, 255, 255, 0.14); overflow: hidden; }
.scope__fill { display: block; height: 100%; border-radius: 4px; }
.scope__value { text-align: right; font-weight: 600; font-variant-numeric: tabular-nums; }

/* Le badge cookie : le même emplacement que « certifié », en pâte. Et un peu de pâte au bord de ses critiques. */
.verified--cookie { background: #c98a4b; color: #3a200c; width: 18px; height: 18px; }
.verified--cookie svg { stroke-width: 1.8; }
.pf-head__name .verified--cookie { width: 24px; height: 24px; }
.review--cookie { position: relative; border-top-color: #c98a4b; }
.review--cookie::before {
    content: ""; position: absolute; left: 18px; right: 18px; top: -1px; height: 9px;
    background: radial-gradient(7px 9px at 12% 0, #c98a4b 98%, transparent 100%), radial-gradient(5px 7px at 38% 0, #c98a4b 98%, transparent 100%),
                radial-gradient(8px 10px at 71% 0, #c98a4b 98%, transparent 100%), radial-gradient(5px 6px at 92% 0, #c98a4b 98%, transparent 100%);
    border-radius: 0 0 6px 6px; opacity: 0.85; pointer-events: none;
}
