/* Module « Artistes & structures » : Backstage, pages publiques des structures, actus, disques, abonnements.
   Les pages publiques s'affichent dans le gabarit vitrine (variables --v-*) pour un visiteur et dans
   l'application (variables --msn-*) pour un membre connecté : chaque couleur lit l'une puis l'autre. */
:root {
    --bk-bg: var(--v-bg, var(--msn-bg));
    --bk-surface: var(--v-surface, var(--msn-surface));
    --bk-surface-2: var(--v-surface-2, var(--msn-surface-2));
    --bk-border: var(--v-border, var(--msn-border));
    --bk-text: var(--v-text, var(--msn-text));
    --bk-muted: var(--v-muted, var(--msn-muted));
    --bk-accent: var(--v-accent, var(--msn-primary));
    --bk-radius: var(--v-radius-lg, var(--msn-radius-lg, 14px));
}

/* Bouton Suivre */
.msn-follow { display: inline-flex; align-items: center; gap: .4rem; white-space: nowrap; }
.msn-follow-btn { border: 1px solid var(--bk-border); background: var(--bk-surface-2); color: var(--bk-text); border-radius: 999px; padding: .42rem .95rem; font-weight: 600; font-size: .92rem; text-decoration: none; cursor: pointer; }
.msn-follow-btn:hover { border-color: var(--bk-accent); color: var(--bk-text); }
.msn-follow.is-on { border-color: var(--bk-accent); }
.msn-follow.is-on i { color: var(--bk-accent); }
.msn-follow-n { opacity: .75; font-weight: 500; }

/* Page publique d'une structure */
.bk-page { max-width: 1100px; margin: 0 auto; }
.vt .bk-page { padding: 0 16px 48px; }
.bk-cover { position: relative; height: 220px; border-radius: 0 0 var(--bk-radius) var(--bk-radius); background: linear-gradient(135deg, color-mix(in srgb, var(--bk-accent) 45%, #111), #0b0b0e); background-size: cover; background-position: center; overflow: hidden; }
.bk-cover::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 40%, rgba(0, 0, 0, .65)); }
.msn-main .bk-cover { border-radius: var(--bk-radius); }
.bk-ident { display: flex; gap: 1rem; align-items: flex-end; margin-top: -54px; position: relative; z-index: 2; padding: 0 12px; flex-wrap: wrap; }
.bk-logo { width: 104px; height: 104px; border-radius: 20px; border: 3px solid var(--bk-bg); background: var(--bk-surface-2); object-fit: cover; display: flex; align-items: center; justify-content: center; font-size: 2.4rem; color: var(--bk-accent); flex: 0 0 auto; }
.bk-ident h1 { margin: 0; font-size: clamp(1.6rem, 4vw, 2.4rem); line-height: 1.1; color: var(--bk-text); }
.bk-ident-txt { flex: 1 1 260px; min-width: 0; padding-bottom: .2rem; }
.bk-kicker { color: var(--bk-muted); font-size: .9rem; display: flex; flex-wrap: wrap; gap: .3rem .9rem; align-items: center; }
.bk-kicker .bk-cat { color: var(--bk-accent); font-weight: 600; }
.bk-verified { color: #3fb27f; }
.bk-actions { display: flex; gap: .5rem; flex-wrap: wrap; padding-bottom: .3rem; }
.bk-grid { display: grid; grid-template-columns: 1fr; gap: 1.25rem; margin-top: 1.5rem; }
@media (min-width: 900px) { .bk-grid { grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); } }
.bk-box { background: var(--bk-surface); border: 1px solid var(--bk-border); border-radius: var(--bk-radius); padding: 1.15rem 1.2rem; margin-bottom: 1.25rem; }
.bk-box > h2 { font-size: 1.15rem; margin: 0 0 .8rem; color: var(--bk-text); display: flex; align-items: center; gap: .5rem; }
.bk-box > h2 i { color: var(--bk-accent); }
.bk-prose { color: var(--bk-text); line-height: 1.65; }
.bk-prose p:last-child { margin-bottom: 0; }
.bk-prose a { color: var(--bk-accent); }
.bk-muted { color: var(--bk-muted); }
.bk-facts { list-style: none; padding: 0; margin: 0; display: grid; gap: .55rem; }
.bk-facts li { display: flex; gap: .6rem; align-items: flex-start; font-size: .94rem; }
.bk-facts li > i { color: var(--bk-accent); width: 1.1rem; flex: 0 0 auto; margin-top: .15rem; }
.bk-facts a { color: var(--bk-text); word-break: break-word; }
.bk-map { height: 220px; border-radius: 12px; overflow: hidden; margin-top: .9rem; border: 1px solid var(--bk-border); }
.bk-socials { display: flex; gap: .45rem; flex-wrap: wrap; margin-top: .8rem; }
.bk-socials a { width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--bk-border); display: inline-flex; align-items: center; justify-content: center; color: var(--bk-text); text-decoration: none; }
.bk-socials a:hover { border-color: var(--bk-accent); color: var(--bk-accent); }

/* Dates */
.bk-dates { list-style: none; padding: 0; margin: 0; display: grid; gap: .6rem; }
.bk-date { display: flex; gap: .85rem; align-items: center; padding: .7rem; border-radius: 12px; background: var(--bk-surface-2); border: 1px solid var(--bk-border); text-decoration: none; color: var(--bk-text); }
.bk-date:hover { border-color: var(--bk-accent); color: var(--bk-text); }
.bk-day { width: 54px; flex: 0 0 auto; text-align: center; line-height: 1.05; border-radius: 10px; background: var(--bk-bg); padding: .35rem 0; }
.bk-day small { display: block; font-size: .68rem; text-transform: uppercase; letter-spacing: .06em; color: var(--bk-muted); }
.bk-day b { display: block; font-size: 1.35rem; color: var(--bk-accent); }
.bk-date-t { min-width: 0; flex: 1; }
.bk-date-t strong { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bk-date-t .bk-muted { font-size: .85rem; }
.bk-tag { display: inline-block; font-size: .72rem; padding: .1rem .5rem; border-radius: 999px; border: 1px solid var(--bk-border); color: var(--bk-muted); }
.bk-tag.free { color: #3fb27f; border-color: color-mix(in srgb, #3fb27f 40%, transparent); }

/* Actus (cartes) */
.bk-posts { display: grid; gap: .8rem; grid-template-columns: 1fr; }
@media (min-width: 640px) { .bk-posts.cols { grid-template-columns: 1fr 1fr; } }
.bk-post { display: flex; gap: .8rem; text-decoration: none; color: var(--bk-text); padding: .6rem; border-radius: 12px; border: 1px solid var(--bk-border); background: var(--bk-surface-2); }
.bk-post:hover { border-color: var(--bk-accent); color: var(--bk-text); }
.bk-post img, .bk-post .ph { width: 84px; height: 84px; border-radius: 10px; object-fit: cover; flex: 0 0 auto; background: var(--bk-bg); display: flex; align-items: center; justify-content: center; color: var(--bk-muted); }
.bk-post strong { display: block; line-height: 1.25; }
.bk-post p { margin: .25rem 0 0; font-size: .86rem; color: var(--bk-muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* Artistes (vignettes) */
.bk-artists { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: .7rem; }
.bk-artist { text-align: center; text-decoration: none; color: var(--bk-text); font-size: .84rem; line-height: 1.2; }
.bk-artist img, .bk-artist .ph { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; display: flex; align-items: center; justify-content: center; margin: 0 auto .35rem; background: var(--bk-surface-2); border: 1px solid var(--bk-border); color: var(--bk-accent); font-weight: 700; }

/* Article (actu) */
.bk-article { max-width: 760px; margin: 0 auto; }
.vt .bk-article { padding: 28px 16px 56px; }
.bk-article h1 { font-size: clamp(1.7rem, 4.5vw, 2.6rem); line-height: 1.12; color: var(--bk-text); margin: .6rem 0 1rem; }
.bk-article .bk-hero-img { width: 100%; border-radius: var(--bk-radius); margin-bottom: 1.25rem; max-height: 480px; object-fit: cover; }
.bk-byline { display: flex; align-items: center; gap: .7rem; flex-wrap: wrap; color: var(--bk-muted); font-size: .92rem; }
.bk-byline img, .bk-byline .ph { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; background: var(--bk-surface-2); display: inline-flex; align-items: center; justify-content: center; color: var(--bk-accent); font-weight: 700; }
.bk-byline a { color: var(--bk-text); font-weight: 600; text-decoration: none; }
.bk-article .bk-prose { font-size: 1.05rem; }
.bk-article .bk-prose h3 { font-size: 1.25rem; margin-top: 1.5rem; }

/* Disque */
.bk-release { display: grid; grid-template-columns: 1fr; gap: 1.5rem; }
@media (min-width: 820px) { .bk-release { grid-template-columns: 320px minmax(0, 1fr); } }
.bk-cover-art { width: 100%; aspect-ratio: 1; border-radius: var(--bk-radius); object-fit: cover; background: linear-gradient(135deg, color-mix(in srgb, var(--bk-accent) 55%, #111), #0b0b0e); display: flex; align-items: center; justify-content: center; font-size: 4rem; color: rgba(255, 255, 255, .55); }
.bk-tracks { list-style: none; padding: 0; margin: 0; counter-reset: t; }
.bk-tracks li { display: flex; gap: .7rem; padding: .5rem .2rem; border-bottom: 1px solid var(--bk-border); }
.bk-tracks li::before { counter-increment: t; content: counter(t); color: var(--bk-muted); width: 1.6rem; text-align: right; flex: 0 0 auto; }
.bk-tracks li span { flex: 1; min-width: 0; }
.bk-listen { display: flex; flex-wrap: wrap; gap: .45rem; }
.bk-listen a { display: inline-flex; align-items: center; gap: .4rem; border: 1px solid var(--bk-border); border-radius: 999px; padding: .35rem .85rem; color: var(--bk-text); text-decoration: none; font-size: .9rem; }
.bk-listen a:hover { border-color: var(--bk-accent); }
.bk-embed { width: 100%; border: 0; border-radius: 12px; }
.bk-embed.video { aspect-ratio: 16 / 9; height: auto; }
.bk-discs { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: .9rem; }
.bk-disc { text-decoration: none; color: var(--bk-text); font-size: .88rem; }
.bk-disc .bk-cover-art { font-size: 2rem; margin-bottom: .4rem; }
.bk-disc small { color: var(--bk-muted); display: block; }

/* Backstage (appli) */
.bk-org-head { display: flex; align-items: center; gap: .8rem; }
.bk-org-head .bk-logo { width: 56px; height: 56px; border-radius: 14px; border-width: 1px; border-color: var(--msn-border); font-size: 1.4rem; }
.bk-check { list-style: none; padding: 0; margin: 0; display: grid; gap: .4rem; }
.bk-check li a { display: flex; gap: .55rem; align-items: center; text-decoration: none; color: var(--msn-text); }
.bk-check li.done a { color: var(--msn-muted); text-decoration: line-through; }
.bk-check li i { font-size: 1.05rem; }
.bk-check li.done i { color: #3fb27f; }
.bk-lineup { list-style: none; padding: 0; margin: 0; display: grid; gap: .4rem; }
.bk-lineup li { display: flex; align-items: center; gap: .6rem; padding: .45rem .6rem; border: 1px solid var(--msn-border); border-radius: var(--msn-radius); background: var(--msn-sunken); }
.bk-lineup .bk-grip { cursor: grab; color: var(--msn-muted); }
.bk-suggest { position: relative; }
.bk-suggest-list { position: absolute; left: 0; right: 0; top: 100%; z-index: 30; background: var(--msn-surface); border: 1px solid var(--msn-border-2); border-radius: var(--msn-radius); margin-top: 4px; max-height: 280px; overflow: auto; box-shadow: 0 16px 40px rgba(0, 0, 0, .45); }
.bk-suggest-list button { display: block; width: 100%; text-align: left; background: none; border: 0; border-bottom: 1px solid var(--msn-border); color: var(--msn-text); padding: .5rem .7rem; font-size: .92rem; }
.bk-suggest-list button:hover, .bk-suggest-list button:focus { background: var(--msn-surface-2); }
.bk-suggest-list small { color: var(--msn-muted); }
.bk-tracks-edit { list-style: none; padding: 0; margin: 0; display: grid; gap: .45rem; }
.bk-tracks-edit li { display: grid; grid-template-columns: auto minmax(0, 1fr) 76px auto; gap: .4rem; align-items: center; }
.bk-tracks-edit li .bk-song { grid-column: 2 / 4; }
@media (max-width: 575px) { .bk-tracks-edit li { grid-template-columns: auto minmax(0, 1fr) 64px auto; } }
.bk-who { display: grid; gap: .7rem; }
.bk-banner { display: flex; gap: 1rem; align-items: center; flex-wrap: wrap; border: 1px dashed var(--msn-border-2); border-radius: var(--msn-radius-lg); padding: .9rem 1.1rem; background: color-mix(in srgb, var(--msn-primary) 7%, var(--msn-surface)); }
.bk-banner > i { font-size: 1.6rem; color: var(--msn-primary); }
.bk-banner > div { flex: 1 1 240px; }
.bk-follow-list { display: grid; gap: .6rem; }
.bk-follow-item { display: flex; align-items: center; gap: .75rem; }
.bk-follow-item img, .bk-follow-item .ph { width: 46px; height: 46px; border-radius: 12px; object-fit: cover; background: var(--msn-surface-2); display: inline-flex; align-items: center; justify-content: center; color: var(--msn-primary); font-weight: 700; flex: 0 0 auto; }
