/* =========================================================================
   HellFest 2027 Notation — thème commun
   ========================================================================= */
:root {
  --bg: #0c0b0d;
  --bg-2: #141316;
  --panel: rgba(25, 24, 28, .8);
  --card: #201f24;
  --card-2: #2a282f;
  --line: #34313a;
  --text: #ece8e3;
  --muted: #9a948d;
  --accent: #e8412c;          /* rouge braise */
  --accent-2: #ff8a1f;        /* orange feu */
  --gold: #e8b64c;
  --xz-bg: #08070b;           /* Extreme Zone : plus sombre */
  --xz-panel: rgba(15, 13, 20, .88);
  --xz-card: #16131d;
  --xz-card-2: #1d1925;
  --radius: 14px;
  --font-title: "Pirata One", "UnifrakturCook", Georgia, serif;
  --font-head: "Oswald", "Arial Narrow", Arial, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --header-h: 0px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html { background: var(--bg); }
html::before {                /* image de fond de la page (voir BG_IMAGE dans inc/bootstrap.php) */
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background: center / cover no-repeat;   /* l'image est définie dans la page (BG_IMAGE) */
}
body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.5;
  color: var(--text);
  background:
    radial-gradient(1200px 500px at 50% -200px, rgba(232, 65, 44, .22), transparent 70%),
    radial-gradient(800px 400px at 100% 0, rgba(255, 138, 31, .07), transparent 70%),
    rgb(12 11 13 / var(--page-dim, 1));
}
body::before {               /* grain léger */
  content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 0; opacity: .05;
  background-image: url("noise.png");   /* grain : petite tuile PNG (bien plus léger qu'un filtre SVG) */
}
body > * { position: relative; z-index: 1; }
a { color: var(--accent-2); }
button, input, select { font: inherit; color: inherit; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.muted { color: var(--muted); }
:focus-visible { outline: 2px solid var(--accent-2); outline-offset: 2px; }

/* ---------- En-tête ---------- */
.site-header {
  display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  padding: 22px clamp(14px, 4vw, 40px) 14px;
}
.brand-title {
  margin: 0; font-family: var(--font-title); font-weight: 400; letter-spacing: .5px;
  font-size: clamp(34px, 6vw, 56px); line-height: 1;
  background: linear-gradient(180deg, #fff4e6 0%, #ffb36b 40%, var(--accent) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  text-shadow: 0 0 30px rgba(232, 65, 44, .25);
}
.brand-title span { font-size: .62em; margin-left: .15em; }
.brand-sub {
  margin: 6px 0 0; font-family: var(--font-head); text-transform: uppercase;
  letter-spacing: .45em; font-size: clamp(11px, 1.6vw, 14px); color: var(--gold);
}
.who { display: flex; align-items: center; gap: 10px; }
.who-name { font-weight: 600; }
.who-switch { margin: 0; }

.avatar {
  --h: 0;
  display: inline-grid; place-items: center; flex: none;
  width: 36px; height: 36px; border-radius: 50%;
  font-family: var(--font-head); font-weight: 700; font-size: 17px; color: #fff;
  background: linear-gradient(145deg, hsl(var(--h) 65% 48%), hsl(var(--h) 70% 30%));
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .12);
}

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  min-height: 40px; padding: 8px 16px; border-radius: 10px; border: 1px solid var(--line);
  background: var(--card); cursor: pointer; font-weight: 600; text-decoration: none;
  transition: background .15s, border-color .15s, transform .1s;
}
.btn:hover { border-color: #55505c; background: var(--card-2); }
.btn:active { transform: translateY(1px); }
.btn-primary { background: linear-gradient(180deg, #f2532f, #c7301d); border-color: #f0623f; color: #fff; }
.btn-primary:hover { background: linear-gradient(180deg, #ff6a3d, #d63a24); border-color: #ff7a4f; }
.btn-ghost { background: transparent; }
.btn-small { min-height: 32px; padding: 4px 12px; font-size: 13px; }

/* ---------- Accueil ---------- */
.home {
  max-width: 920px; margin: 0 auto; padding: 8px clamp(14px, 4vw, 40px) 40px;
  display: grid; gap: 18px;
}
.panel {
  background: linear-gradient(180deg, rgba(255, 255, 255, .03), transparent), var(--panel);
  border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(16px, 3vw, 26px);
}
.panel h2 {
  margin: 0 0 10px; font-family: var(--font-head); text-transform: uppercase; letter-spacing: .08em;
  font-size: 20px; color: #fff;
}
.intro p { margin: 0 0 10px; }
.cookie-info { margin-top: 6px; border-left: 3px solid var(--accent); padding: 4px 0 4px 14px; }
.cookie-info summary { cursor: pointer; font-weight: 600; color: var(--gold); }
.cookie-info p { color: #cfc9c2; margin: 8px 0 0; }

.alert {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  background: rgba(232, 65, 44, .12); border: 1px solid rgba(232, 65, 44, .5);
  padding: 10px 14px; border-radius: 10px; margin-bottom: 14px;
}
.inline { display: inline; margin: 0; }

.profile-list {
  list-style: none; margin: 0 0 18px; padding: 0;
  display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
}
.profile-list form { margin: 0; }
.profile {
  width: 100%; display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto;
  column-gap: 12px; align-items: center; text-align: left; cursor: pointer;
  padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line); background: var(--card);
  transition: border-color .15s, transform .15s, box-shadow .15s;
}
.profile .avatar { grid-row: span 2; width: 42px; height: 42px; font-size: 19px; }
.profile-name { font-weight: 700; font-size: 16px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.profile-count { font-size: 12px; color: var(--muted); }
.profile:hover { border-color: var(--accent); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(232, 65, 44, .18); }

.create { display: flex; }
.create-form { display: none; gap: 10px; flex-wrap: wrap; width: 100%; }
.create.is-open .create-toggle { display: none; }
.create.is-open .create-form { display: flex; }
.create-form input[type=text] {
  flex: 1 1 220px; min-height: 44px; padding: 8px 14px; border-radius: 10px;
  border: 1px solid var(--line); background: var(--bg-2); font-size: 16px;
}
.create-form input[type=text]:focus { border-color: var(--accent); outline: none; }

.site-footer { text-align: center; color: #6a645e; font-size: 12px; padding: 30px 16px 40px; }

/* ---------- Onglets des journées ---------- */
.days {
  position: sticky; top: 0; z-index: 20;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px;
  padding: 10px clamp(10px, 4vw, 40px);
  background: rgba(12, 11, 13, .94);
  border-bottom: 1px solid var(--line);
}
.day-tab {
  position: relative; display: flex; flex-direction: column; align-items: center; gap: 2px;
  padding: 8px 6px 10px; border-radius: 10px; border: 1px solid transparent; background: transparent;
  cursor: pointer; color: var(--muted); transition: color .15s, background .15s, border-color .15s;
}
.day-tab .d-long { font-family: var(--font-head); font-weight: 600; text-transform: uppercase; letter-spacing: .06em; font-size: 16px; }
.day-tab .d-short { display: none; font-family: var(--font-head); font-weight: 600; letter-spacing: .06em; font-size: 15px; }
.day-tab .d-prog { font-size: 12px; }
.day-tab .d-bar { position: absolute; left: 12%; right: 12%; bottom: 4px; height: 3px; border-radius: 2px; background: var(--line); overflow: hidden; }
.day-tab .d-bar i { display: block; height: 100%; width: 0; background: var(--accent); transition: width .3s; }
.day-tab:hover { color: var(--text); background: rgba(255, 255, 255, .03); }
.day-tab.on { color: #fff; background: linear-gradient(180deg, rgba(232, 65, 44, .22), rgba(232, 65, 44, .06)); border-color: rgba(232, 65, 44, .55); }
.day-tab.on .d-bar i { background: var(--gold); }
.day-tab .d-hits { font-size: 12px; color: var(--gold); }

/* ---------- Filtres : bandeau pleine largeur ---------- */
.filters {
  margin-top: 0;
  background: linear-gradient(180deg, rgba(26, 24, 29, .9), rgba(20, 18, 22, .9));
  border-bottom: 1px solid var(--line);
  box-shadow: 0 8px 20px rgba(0, 0, 0, .25);
}
.filters-toggle {
  display: none; width: 100%; align-items: center; justify-content: space-between;
  padding: 12px clamp(10px, 4vw, 40px); border: 0; background: transparent; cursor: pointer;
  font-family: var(--font-head); font-weight: 600; font-size: 16px; letter-spacing: .12em; text-transform: uppercase; color: #fff;
}
.filters-toggle .chev { transition: transform .2s; }
.filters.open .filters-toggle .chev { transform: rotate(180deg); }
.filters-body {
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px;
  padding: 12px clamp(10px, 4vw, 40px);
}
.f-search { flex: 1 1 220px; }
.f-search input {
  width: 100%; min-height: 40px; padding: 6px 12px; border-radius: 10px;
  border: 1px solid var(--line); background: var(--bg-2);
}
.f-search input:focus { border-color: var(--accent); outline: none; }
.seg { display: inline-flex; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.seg button { border: 0; background: transparent; padding: 8px 12px; cursor: pointer; color: var(--muted); font-weight: 600; font-size: 14px; }
.seg button + button { border-left: 1px solid var(--line); }
.seg button.on { background: var(--accent); color: #fff; }
.f-check { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; font-size: 14px; }
.f-check input { width: 18px; height: 18px; accent-color: var(--accent); }
.f-xz { padding: 6px 10px; border-radius: 10px; border: 1px solid #3a3150; background: #120f19; color: #cdbfe6; }
.f-xz input { accent-color: #9a63cc; }
.f-xz:has(input:checked) { border-color: #9a63cc; background: #2a1f3d; color: #fff; }
.f-sort { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; color: var(--muted); }
.f-sort select, .f-genre select {
  min-height: 38px; padding: 4px 10px; border-radius: 10px; border: 1px solid var(--line);
  background: var(--bg-2); color: var(--text); max-width: 100%;
}
.f-genre select.on { border-color: var(--accent); }
.filters-count { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; background: var(--accent); color: #fff; font-size: 12px; letter-spacing: 0; font-family: var(--font-body); }
.filters-count:empty { display: none; }

/* ---------- Plateau : scènes ---------- */
.board { padding: 14px clamp(10px, 4vw, 40px) 0; display: grid; gap: 12px; }
.empty { text-align: center; color: var(--muted); padding: 40px 10px; }

.zone-sep {
  display: flex; align-items: center; gap: 14px; margin: 18px 0 4px;
  font-family: var(--font-title); font-size: clamp(26px, 4vw, 34px); color: #cdbfe6; letter-spacing: 1px;
}
.zone-sep::before, .zone-sep::after { content: ""; flex: 1; height: 1px; background: linear-gradient(90deg, transparent, #4a3d63, transparent); }
.zone-sep small { font-family: var(--font-body); font-size: 12px; color: #8a7fa3; letter-spacing: .04em; }

.stage {
  --c: var(--accent);
  border: 1px solid var(--line); border-left: 4px solid var(--c); border-radius: var(--radius);
  background: rgb(25 24 28 / var(--scene-alpha, .8)); overflow: hidden;   /* opacite_scenes */
}
.stage > summary {
  list-style: none; cursor: pointer; user-select: none;
  display: flex; align-items: center; gap: 12px; padding: 12px 16px;
  background: linear-gradient(90deg, color-mix(in srgb, var(--c) 22%, transparent), transparent 60%);
}
.stage > summary::-webkit-details-marker { display: none; }
.stage-name { font-family: var(--font-head); font-weight: 700; text-transform: uppercase; letter-spacing: .1em; font-size: 18px; color: #fff; }
.stage-prog { margin-left: auto; font-size: 13px; color: var(--muted); }
.stage-prog b { color: var(--text); }
.chev { width: 22px; height: 22px; flex: none; transition: transform .2s; color: var(--muted); }
.stage[open] .chev { transform: rotate(90deg); }
.stage.xz { background: rgb(15 13 20 / var(--scene-xz-alpha, .88)); border-color: #26212f; }   /* opacite_scenes_extreme */
.stage.xz > summary { background: linear-gradient(90deg, color-mix(in srgb, var(--c) 16%, transparent), transparent 60%); }


/* ---------- Grille de cartes ---------- */
.grid {
  display: grid; gap: 14px; padding: 6px 14px 16px;
  grid-template-columns: repeat(auto-fill, minmax(min(200px, 100%), 1fr));
}

/* ---------- Carte (portrait 3:4) ---------- */
.card { perspective: 1100px; aspect-ratio: 3 / 4; min-height: 262px; outline: none; }
.card-inner {
  position: relative; width: 100%; height: 100%;
  transition: transform .55s cubic-bezier(.3, .7, .2, 1);
}
/* La 3D n'est activée que pendant/après un retournement : au repos, les ~90 cartes
   d'une journée restent de simples blocs 2D (beaucoup moins de calques à gérer sur mobile). */
.card.turning .card-inner, .card.flipped .card-inner, .card.spin .card-inner { transform-style: preserve-3d; }
.card.turning .face, .card.flipped .face, .card.spin .face { -webkit-backface-visibility: hidden; backface-visibility: hidden; }
.card:not(.turning):not(.flipped) .back { display: none; }
.card.flipped .card-inner { transform: rotateY(180deg); }
/* Garantit qu'une seule face est visible (certains navigateurs laissent transparaître
   le recto en miroir à cause des filtres / flous) : bascule à mi-rotation. */
.face { transition: visibility 0s linear .27s; }
.back { visibility: hidden; }
.card.flipped .back { visibility: visible; }
.card.flipped .front { visibility: hidden; }
.card.spin .card-inner { animation: spin .6s cubic-bezier(.3, .7, .2, 1); }
@keyframes spin { from { transform: rotateY(0); } to { transform: rotateY(360deg); } }

.face {
  position: absolute; inset: 0; border-radius: 12px; overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .09); border-top: 3px solid var(--c);
  background: var(--card); box-shadow: 0 8px 22px rgba(0, 0, 0, .45);
  cursor: pointer;
}
.card:focus-visible .face { box-shadow: 0 0 0 2px var(--accent-2); }
.card.head .face { border-top-width: 4px; box-shadow: 0 8px 22px rgba(0, 0, 0, .45), inset 0 0 0 1px rgba(232, 182, 76, .4); }

/* Visuel (B : abstrait généré, C : image déposée) */
.art { position: absolute; inset: 0; background: var(--art); background-size: cover; background-position: center; transition: filter .35s .1s; }
.art::before { content: ""; position: absolute; inset: 0; background: var(--pattern, none); opacity: .35; }
.art::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, .35) 0%, rgba(0, 0, 0, 0) 28%, rgba(0, 0, 0, 0) 45%, rgba(8, 7, 10, .82) 70%, rgba(8, 7, 10, .95) 100%),
    url("noise.png");
}
.card.has-img .art::before { display: none; }
.xz .art { filter: brightness(.72) saturate(.85); }

.content { position: relative; height: 100%; display: flex; flex-direction: column; padding: 10px 10px 8px; }

.card-top { display: flex; align-items: flex-start; gap: 6px; min-height: 40px; }
.tags { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; min-width: 0; }
.badge-head { white-space: nowrap; font-size: 10px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--gold); text-shadow: 0 1px 2px #000; }
.genre {
  max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  font-size: 10.5px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase;
  padding: 2px 7px; border-radius: 6px; color: #fff;
  background: rgba(0, 0, 0, .62); border: 1px solid hsl(var(--gh) 70% 60% / .55);
}
.avg {
  --hue: 0;
  margin-left: auto; flex: none; display: flex; flex-direction: column; align-items: center; justify-content: center;
  min-width: 46px; padding: 3px 6px; border-radius: 9px; line-height: 1.1;
  background: rgba(0, 0, 0, .68); border: 1px solid hsl(var(--hue) 70% 50% / .8);
}
.avg b { font-family: var(--font-head); font-size: 18px; color: hsl(var(--hue) 85% 66%); }
.avg small { font-size: 10px; color: #bdb6ae; white-space: nowrap; }
.avg.none { border-color: rgba(255, 255, 255, .15); }
.avg.none b { color: var(--muted); }

/* Nom du groupe : police selon le genre (option A) */
.band {
  flex: 1; display: flex; align-items: center; justify-content: center; text-align: center;
  padding: 4px 2px; color: #fff; overflow-wrap: break-word; min-height: 0;
  font-family: var(--gf, var(--font-head)); text-transform: var(--gt, uppercase);
  font-size: calc(var(--bs, 24px) * var(--gs, 1)); line-height: var(--gl, 1.05); letter-spacing: var(--gls, .01em);
  text-shadow: 0 2px 10px rgba(0, 0, 0, .85), 0 0 2px rgba(0, 0, 0, .9);
}
/* Logo du groupe (fichier « Nom Du Groupe-logo.svg/png/... ») : remplace le nom, que la carte soit notée ou non */
.band .logo {
  display: block; max-width: 92%; max-height: 92px; width: auto; height: auto; object-fit: contain; margin: 0 auto;
  filter: var(--logo-filter, none) drop-shadow(0 2px 8px rgba(0, 0, 0, .9));
}
/* Logo PNG sans transparence : couleurs d'origine, encadré arrondi (le filtre « blanc » le transformerait en rectangle blanc) */
.card.logo-opaque .band .logo { filter: drop-shadow(0 2px 8px rgba(0, 0, 0, .9)); border-radius: 8px; max-width: 86%; }
.card.has-logo .band-name { display: none; }
.band.long { --bs: 19px; }
.band.xlong { --bs: 15.5px; }
.head .band { --bs: 27px; }
.head .band.long { --bs: 21px; }
.head .band.xlong { --bs: 17px; }

.links { display: flex; justify-content: center; gap: 6px; margin: 4px 0 0; }
.links a {
  display: inline-flex; align-items: center; gap: 5px; padding: 3px 8px; border-radius: 8px;
  font-size: 11.5px; font-weight: 600; text-decoration: none; color: var(--text);
  background: rgba(0, 0, 0, .5); border: 1px solid rgba(255, 255, 255, .14);
}
.links a:hover { background: rgba(255, 255, 255, .14); }
.links svg { width: 13px; height: 13px; flex: none; }
.links .yt svg { color: #ff4e45; }
.links .dz svg { color: #b05cff; }
.links .nolink { font-size: 12px; color: var(--muted); font-style: italic; }

/* Tiers bas : zone de notation */
.rate { position: relative; flex: 0 0 auto; min-height: 72px; display: grid; place-items: center; }
.pills {
  position: absolute; inset: 0; display: grid; grid-template-columns: repeat(6, 1fr); align-content: center; gap: 4px;
  opacity: 0; transform: translateY(12px); pointer-events: none; transition: opacity .18s, transform .18s;
}
.pill {
  min-height: 30px; padding: 0; border-radius: 8px; cursor: pointer;
  border: 1px solid rgba(255, 255, 255, .18); background: rgba(10, 9, 12, .75);
  font-family: var(--font-head); font-weight: 600; font-size: 14px; color: #e4ded7;
  transition: background .12s, transform .08s, border-color .12s;
}
.pill:hover { border-color: var(--accent-2); background: rgba(232, 65, 44, .35); color: #fff; }
.pill:active { transform: scale(.92); }
.pill.on { background: var(--accent); border-color: #ff7a5c; color: #fff; }
.pill.clear { color: var(--muted); }

.rate-hint { font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: rgba(255, 255, 255, .45); transition: opacity .15s; }
.btn-rate {
  display: none; min-height: 36px; padding: 6px 18px; border-radius: 999px; cursor: pointer;
  border: 1px solid rgba(255, 255, 255, .3); background: rgba(232, 65, 44, .85); color: #fff;
  font-family: var(--font-head); font-weight: 600; letter-spacing: .1em; text-transform: uppercase; font-size: 13px;
}
.score {
  display: none; border: 0; background: none; cursor: pointer; padding: 0 8px; color: #fff;
  font-family: var(--font-head); line-height: 1;
}
.score b { font-size: 46px; font-weight: 700; color: #ff5a3c; text-shadow: 0 0 18px rgba(232, 65, 44, .55); }
.score small { font-size: 16px; color: #cfc8c0; margin-left: 2px; }
.score:hover b { color: #ff7a5c; }

/* Survol (souris) : les pastilles apparaissent si le groupe n'est pas encore noté */
@media (hover: hover) {
  .card:not(.rated):hover .pills, .card:not(.rated):focus-within .pills { opacity: 1; transform: none; pointer-events: auto; }
  .card:not(.rated):hover .rate-hint, .card:not(.rated):focus-within .rate-hint { opacity: 0; }
}
/* Écrans tactiles : bouton « Noter » */
@media (hover: none) {
  .rate-hint { display: none; }
  .card:not(.rated):not(.rating) .btn-rate { display: inline-block; }
}
/* Mode édition (bouton « Noter » ou clic sur la note) */
.card.rating .pills { opacity: 1; transform: none; pointer-events: auto; }
.card.rating .rate-hint, .card.rating .btn-rate { visibility: hidden; }
.card.rated .rate-hint { display: none; }
.card.rated:not(.rating) .score { display: block; }

/* Carte notée : même visuel en nuances de gris, la note reste en couleur */
.card.rated .art { filter: grayscale(1) brightness(.8); }
.card.rated .card-top, .card.rated .band, .card.rated .links { filter: grayscale(1); opacity: .8; transition: filter .3s .1s, opacity .3s .1s; }
.card.rated .face.front { border-top-color: #8a8a8a; }

/* Verso : votes de chacun */
.back { transform: rotateY(180deg); padding: 12px; display: flex; flex-direction: column; background: linear-gradient(165deg, color-mix(in srgb, var(--c) 14%, var(--card-2)) 0%, var(--card) 60%); }
.xz .back { background: linear-gradient(165deg, color-mix(in srgb, var(--c) 10%, var(--xz-card-2)) 0%, var(--xz-card) 60%); }
.back h3 { margin: 0 0 2px; font-family: var(--font-head); text-transform: uppercase; font-size: 15px; letter-spacing: .04em; color: #fff; }
.back .meta { font-size: 11px; color: var(--gold); margin-bottom: 2px; }
.back .summary { font-size: 12px; color: var(--muted); margin-bottom: 6px; }
.back-tabs { display: flex; gap: 4px; margin: 6px 0 8px; }
.back-tabs button {
  flex: 1; min-height: 28px; border-radius: 8px; cursor: pointer; font-size: 12px; font-weight: 600;
  border: 1px solid var(--line); background: rgba(0, 0, 0, .25); color: var(--muted);
}
.back-tabs button.on { background: var(--accent); border-color: #ff7a5c; color: #fff; }
.panel-votes, .panel-info { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.card:not(.show-info) .panel-info, .card.show-info .panel-votes { display: none; }
.card.show-info .back .meta, .card.show-info .back .hint { display: none; }
.info-text { flex: 1; min-height: 0; overflow-y: auto; font-size: 12.5px; line-height: 1.45; color: #ddd6ce; padding-right: 2px; }
.info-text p { margin: 0 0 6px; }
.info-src { font-size: 10.5px; color: var(--muted); margin-top: 6px; }
.info-src a, .info-links a { color: var(--accent-2); }
.info-links { display: flex; flex-wrap: wrap; gap: 4px 10px; font-size: 11.5px; margin-top: 4px; }
.votes { list-style: none; margin: 0; padding: 0 2px 0 0; overflow-y: auto; flex: 1; font-size: 13px; }
.votes li { display: flex; align-items: center; gap: 8px; padding: 4px 0; border-bottom: 1px dashed rgba(255, 255, 255, .08); }
.votes .avatar { width: 22px; height: 22px; font-size: 11px; }
.votes .v-name { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.votes .v-score { font-family: var(--font-head); font-weight: 700; font-size: 15px; }
.votes li.me { color: var(--gold); }
.back .hint { font-size: 11px; color: #6f6a64; text-align: center; margin-top: 6px; }

/* ---------- Typographies par genre (polices libres SIL OFL) ---------- */
.g-heavy    { --gf: "Metal Mania", var(--font-head);        --gs: 1.05; --gt: none;  --gh: 38; }
.g-thrash   { --gf: "New Rocker", var(--font-head);         --gs: 1.02; --gt: none;  --gh: 18; }
.g-death    { --gf: "Creepster", var(--font-head);          --gs: 1.12;  --gt: none;  --gh: 0; }
.g-black    { --gf: "UnifrakturMaguntia", var(--font-head); --gs: 1.3; --gt: none;  --gh: 220; }
.g-doom     { --gf: "Pirata One", var(--font-head);         --gs: 1.15; --gt: none;  --gh: 285; }
.g-stoner   { --gf: "Shrikhand", var(--font-head);          --gs: .9;   --gt: none;  --gh: 42; --gl: 1.1; }
.g-post     { --gf: "Cormorant SC", var(--font-head);       --gs: 1.08; --gt: none;  --gh: 195; --gls: .04em; }
.g-prog     { --gf: "Orbitron", var(--font-head);           --gs: .78;  --gh: 170; --gls: .04em; }
.g-core     { --gf: "Bebas Neue", var(--font-head);         --gs: 1.28; --gh: 330; --gls: .03em; }
.g-alt      { --gf: "Permanent Marker", var(--font-head);   --gs: .95;  --gt: none;  --gh: 90; }
.g-folk     { --gf: "Cinzel Decorative", var(--font-head);  --gs: .84;  --gt: none;  --gh: 125; }
.g-goth     { --gf: "Grenze Gotisch", var(--font-head);     --gs: 1.2;  --gt: none;  --gh: 300; }
.g-punk     { --gf: "Rubik Dirt", var(--font-head);         --gs: .95;  --gh: 335; }
.g-hardcore { --gf: "Black Ops One", var(--font-head);      --gs: .9;   --gh: 55; }
.g-rock     { --gf: "Bungee", var(--font-head);             --gs: .8;   --gh: 205; }
.g-electro  { --gf: "Audiowide", var(--font-head);          --gs: .84;  --gh: 265; }
.g-none     { --gh: 0; }

/* Motifs par genre (option B) */
.g-hardcore .art, .g-core .art { --pattern: repeating-linear-gradient(135deg, rgba(255,255,255,.14) 0 2px, transparent 2px 14px); }
.g-punk .art { --pattern: radial-gradient(rgba(255,255,255,.22) 1.2px, transparent 1.4px) 0 0 / 9px 9px; }
.g-electro .art, .g-prog .art { --pattern: linear-gradient(rgba(255,255,255,.12) 1px, transparent 1px) 0 0 / 100% 14px, linear-gradient(90deg, rgba(255,255,255,.12) 1px, transparent 1px) 0 0 / 14px 100%; }
.g-stoner .art { --pattern: repeating-radial-gradient(circle at 50% 120%, rgba(255,255,255,.16) 0 3px, transparent 3px 16px); }
.g-post .art, .g-doom .art { --pattern: repeating-linear-gradient(0deg, rgba(255,255,255,.08) 0 1px, transparent 1px 9px); }
.g-heavy .art, .g-thrash .art { --pattern: repeating-linear-gradient(60deg, rgba(255,255,255,.1) 0 1px, transparent 1px 11px), repeating-linear-gradient(-60deg, rgba(255,255,255,.1) 0 1px, transparent 1px 11px); }
.g-black .art, .g-death .art, .g-goth .art { --pattern: radial-gradient(ellipse at 50% 35%, rgba(255,255,255,.12), transparent 60%); }
.g-folk .art { --pattern: repeating-conic-gradient(from 0deg at 50% 40%, rgba(255,255,255,.08) 0 6deg, transparent 6deg 18deg); }
.g-rock .art, .g-alt .art { --pattern: repeating-linear-gradient(90deg, rgba(255,255,255,.07) 0 3px, transparent 3px 22px); }

/* Toast */
.toast {
  position: fixed; left: 50%; bottom: 20px; transform: translateX(-50%); z-index: 50;
  background: #2a1714; border: 1px solid var(--accent); color: #fff; padding: 10px 16px; border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .5); font-size: 14px;
}


/* ---------- Responsive ---------- */
@media (max-width: 760px) {
  .day-tab .d-long { display: none; }
  .day-tab .d-short { display: block; }
  .filters-toggle { display: flex; }
  .filters-body { display: none; padding-top: 0; }
  .filters.open .filters-body { display: flex; }
  .f-search { flex-basis: 100%; }
  .f-genre { flex: 1 1 160px; }
  .f-genre select { width: 100%; }
  .who-name { display: none; }
  .site-header { padding-top: 16px; }
}
@media (max-width: 560px) {
  body { font-size: 14px; }
  .face { box-shadow: 0 3px 8px rgba(0, 0, 0, .4); }
  .band { text-shadow: 0 1px 4px rgba(0, 0, 0, .9); }
  .grid { gap: 8px; padding: 4px 8px 12px; grid-template-columns: repeat(auto-fill, minmax(min(150px, 100%), 1fr)); }
  .board, .days { padding-left: 8px; padding-right: 8px; }
  .stage > summary { padding: 10px 12px; }
  .stage-name { font-size: 16px; }
  .card { min-height: 236px; }
  .content { padding: 8px 7px 6px; }
  .card-top { min-height: 36px; }
  .badge-head { font-size: 9px; }
  .genre { font-size: 9px; padding: 1px 5px; }
  .avg { min-width: 40px; padding: 2px 5px; }
  .avg b { font-size: 16px; }
  .band { --bs: 19px; }
  .band .logo { max-height: 70px; }
  .band.long { --bs: 15px; }
  .band.xlong { --bs: 12.5px; }
  .head .band { --bs: 21px; }
  .head .band.long { --bs: 16px; }
  .head .band.xlong { --bs: 13.5px; }
  .links { gap: 4px; }
  .links a { flex: 1 1 0; justify-content: center; gap: 3px; padding: 3px 3px; font-size: 10.5px; }
  .links svg { width: 12px; height: 12px; }
  .rate { min-height: 66px; }
  .pills { gap: 3px; }
  .pill { min-height: 29px; font-size: 13px; }
  .score b { font-size: 38px; }
  .who .btn { padding: 6px 10px; min-height: 36px; font-size: 13px; }
}

@media (prefers-reduced-motion: reduce) {
  .card-inner { transition: none; }
  .card.spin .card-inner { animation: none; }
}
