/* =====================================================================
   LE JUKEBOX DU CAMP : écouter les musiques des jeux.
   S'appuie sur la charte (hub/charte.css) et la feuille du hub (hub/hub.css).
   Tout a une taille fixe : rien ne bouge quand un titre change.
   ===================================================================== */
.jb{width:min(880px,100%);padding:20px 24px 14px;gap:16px}
.hubLien{position:absolute;top:12px;left:16px;font-weight:700;font-size:14px;color:var(--t2);text-decoration:none}
.hubLien:hover{color:var(--ink);text-decoration:underline}

.jbTete{display:grid;justify-items:center;gap:6px;text-align:center;padding-top:14px}
.jbTete h1.plaque{display:inline-block;padding:6px 22px 8px;border-radius:12px 15px 11px 14px/14px 11px 15px 12px;font-size:clamp(28px,5vw,40px);line-height:1.05}
.jbTete .kicker{margin:0}

/* ---- la platine ---- */
.platine{display:grid;grid-template-columns:220px minmax(0,1fr);gap:16px;align-items:stretch;
  background:rgba(255,248,226,.6);border:2.5px solid var(--ink);border-radius:12px 15px 11px 16px/15px 11px 16px 12px;
  box-shadow:3px 4px 0 rgba(30,18,8,.45);padding:14px}
.ecran{width:220px;height:120px;align-self:center;border:2px solid var(--ink);border-radius:9px;background:#2b2118;display:block}
.infos{display:grid;gap:6px;min-width:0}
.cat{font-size:12px;letter-spacing:.12em;text-transform:uppercase;font-weight:700;color:var(--t2);height:16px;line-height:16px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.titre{font-family:var(--font-display);font-size:26px;line-height:32px;height:32px;color:var(--ink);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.desc{margin:0;font-size:14px;line-height:19px;height:38px;color:var(--ink);overflow:hidden;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical}
.barre{height:10px;border:2px solid var(--ink);border-radius:6px;background:rgba(73,53,38,.12);overflow:hidden}
.barre i{display:block;height:100%;width:0;background:var(--c-vert)}
.temps{display:flex;justify-content:space-between;font-size:12.5px;font-weight:700;color:var(--t2);font-variant-numeric:tabular-nums;height:16px;line-height:16px}
.cmd{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.rond{width:40px;height:40px;flex:none;display:grid;place-items:center;padding:0;border:2.5px solid var(--ink);border-radius:50%;
  background:var(--paper-lt);box-shadow:0 3px 0 var(--ink)}
.rond svg{width:20px;height:20px;fill:var(--ink)}
.rond.grand{width:52px;height:52px;background:var(--c-vert)}
.rond.grand svg{width:26px;height:26px;fill:var(--c-creme)}
.rond:active{transform:translateY(2px);box-shadow:0 1px 0 var(--ink)}
.bascule{height:32px;width:96px;flex:none;padding:0;border:2px solid var(--ink);border-radius:16px;background:rgba(255,250,235,.8);color:var(--ink);font-weight:700;font-size:13px}
.bascule[aria-pressed="true"]{background:var(--c-bleu);color:var(--c-creme)}
.vol{display:flex;align-items:center;gap:6px;margin-left:auto;font-size:16px}
.vol input{width:110px;accent-color:var(--c-vert)}

/* ---- les listes ---- */
.listes{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px 18px;align-items:start}
.groupe{display:grid;gap:6px;min-width:0}
.groupe h2.plaque{font-size:19px;line-height:1;padding:6px 12px 7px;border-radius:9px 11px 8px 12px/11px 8px 12px 9px;justify-self:start}
.groupe .sous{margin:0 0 2px;font-size:12.5px;color:var(--t2)}
.air{display:grid;grid-template-columns:26px minmax(0,1fr) 44px 24px;align-items:center;gap:8px;height:52px;width:100%;padding:0 10px;text-align:left;
  border:2px solid rgba(73,53,38,.55);border-radius:9px;background:rgba(255,250,235,.55);color:var(--ink)}
.air:hover{background:rgba(255,236,170,.75)}
.air .num{font-weight:700;color:var(--t2);font-variant-numeric:tabular-nums;font-size:13px}
.air .txt{display:grid;min-width:0}
.air b{font-size:15px;line-height:19px;height:19px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.air small{font-size:12px;line-height:16px;height:16px;color:var(--t2);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.air .dur{font-size:12.5px;font-weight:700;color:var(--t2);font-variant-numeric:tabular-nums;text-align:right}
.air .ic{width:24px;height:18px;display:flex;align-items:flex-end;gap:2px}
.air .ic i{display:block;width:4px;height:4px;background:var(--ink);opacity:0}
.air[aria-current="true"]{border-color:var(--ink);background:#fbe6b0;box-shadow:0 2px 0 var(--ink)}
.air[aria-current="true"] .ic i{opacity:1;animation:sautille .9s ease-in-out infinite}
.air[aria-current="true"] .ic i:nth-child(2){animation-delay:-.3s}
.air[aria-current="true"] .ic i:nth-child(3){animation-delay:-.6s}
.jb.pause .air .ic i{animation-play-state:paused}
@keyframes sautille{0%,100%{height:4px}50%{height:16px}}

.jb .pied{height:auto;line-height:1.4}

@media (max-width:720px){
  .listes{grid-template-columns:minmax(0,1fr)}
}
@media (max-width:560px){
  .jb{padding:14px 14px 12px}
  .jbTete{padding-top:24px}
  .platine{grid-template-columns:minmax(0,1fr)}
  .ecran{width:100%;height:90px}
  .titre{font-size:22px}
  .vol{margin-left:0}
}
@media (prefers-reduced-motion:reduce){
  .air[aria-current="true"] .ic i{animation:none;height:10px}
}

/* =====================================================================
   LA CARTE À LA LANTERNE (oct. 2026) : le jukebox en version nuit.
   Chargé avec ../socle/nuit-menus.css (en dernier) et <body class="nuitUI">.
   Seules les couleurs, bordures, ombres et polices bougent : les largeurs de bordure
   sont gardées (en transparent au besoin) pour que rien ne se décale.
   ===================================================================== */
html body.nuitUI{background:var(--n-fond);color:var(--n-texte)}
html body.nuitUI .jb{background:rgba(16,21,31,.94);border:2.5px solid #252E40;border-radius:20px;box-shadow:0 20px 60px rgba(0,0,0,.45);color:var(--n-texte)}
html body.nuitUI .jb button:focus-visible,html body.nuitUI .jb a:focus-visible,html body.nuitUI .jb input:focus-visible{outline:3px solid var(--n-lant);outline-offset:2px}
html body.nuitUI .hubLien{color:var(--n-gris)}
html body.nuitUI .hubLien:hover{color:var(--n-creme)}

/* le titre : grand, crème, sans ruban (la place du ruban est gardée) */
html body.nuitUI .jbTete h1.plaque{font-size:clamp(28px,5vw,40px);padding:6px 22px 8px!important;border:2.5px solid transparent!important}

/* la platine : une case de nuit ; l'écran noir garde ses pastilles */
html body.nuitUI .platine{background:var(--n-pan);border-color:transparent;border-radius:16px;box-shadow:none}
html body.nuitUI .ecran{border-color:#05070B;border-radius:10px}
html body.nuitUI .cat{color:var(--n-terre)}
html body.nuitUI .titre{color:var(--n-creme)}
html body.nuitUI .desc{color:var(--n-doux)}
html body.nuitUI .barre{border-color:var(--n-trait2);background:var(--n-case)}
html body.nuitUI .barre i{background:var(--n-lant)}
html body.nuitUI .temps{color:var(--n-gris)}
/* lecture en pastilles : précédent / suivant en contour, lecture en crème */
html body.nuitUI .jb .rond{background:transparent;border:2.5px solid var(--n-trait2);border-radius:50%;box-shadow:none}
html body.nuitUI .jb .rond svg{fill:var(--n-creme)}
html body.nuitUI .jb .rond:hover:not(:disabled){background:var(--n-case)}
html body.nuitUI .jb .rond.grand{background:var(--n-creme);border-color:var(--n-creme)}
html body.nuitUI .jb .rond.grand svg{fill:#10151F}
html body.nuitUI .jb .rond.grand:hover:not(:disabled){background:#FFFFFF;border-color:#FFFFFF}
html body.nuitUI .jb .rond:active{transform:translateY(1px);box-shadow:none}
html body.nuitUI .jb .bascule{background:transparent;border:2px solid var(--n-trait2);border-radius:16px;color:var(--n-texte);box-shadow:none}
html body.nuitUI .jb .bascule:hover:not(:disabled){background:var(--n-case)}
html body.nuitUI .jb .bascule[aria-pressed="true"]{background:var(--n-creme);border-color:var(--n-creme);color:#10151F}
html body.nuitUI .vol{color:var(--n-gris)}
html body.nuitUI .vol input{accent-color:var(--n-terre)}

/* les listes : titres crème, lignes en cases de nuit, l'air en cours allumé à la lanterne */
html body.nuitUI .jb .groupe h2.plaque{color:var(--n-creme)!important;border:2.5px solid transparent!important}
html body.nuitUI .groupe .sous{color:var(--n-gris)}
html body.nuitUI .jb .air{background:var(--n-case);border:2px solid transparent;border-radius:14px;color:var(--n-texte);box-shadow:none}
html body.nuitUI .jb .air:hover:not(:disabled){background:var(--n-case2)}
html body.nuitUI .jb .air b{color:var(--n-creme)}
html body.nuitUI .jb .air small,html body.nuitUI .jb .air .num,html body.nuitUI .jb .air .dur{color:var(--n-gris)!important}
html body.nuitUI .jb .air .ic i{background:var(--n-lant)}
html body.nuitUI .jb .air[aria-current="true"]{background:var(--n-case2);border-color:transparent;box-shadow:inset 0 0 0 2px var(--n-lant)}
html body.nuitUI .jb .air[aria-current="true"] b{color:var(--n-lant)}

html body.nuitUI .jb .pied{color:var(--n-sourd)}
