:root {
  /* Direction « Poste » (7 novembre 2026) : noir, blanc cassé, une couleur par rendez-vous, typo nette en graisse normale */
  --bg: #0e0e0e;
  --ink: #f3f0e8;
  --muted: #a3a09a;
  --line: rgb(243 240 232 / 0.14);
  --tile: #1a1a1a;
  --accent: #f23b2e;      /* vermillon : le direct, ce qui passe en ce moment */
  --bleu: transparent;    /* ancienne ombre décalée de la piste Riso, éteinte */
  --on-accent: #0e0e0e;
  --rouge: #f23b2e;       /* Ça se passe ici */
  --vert: #7cff4f;        /* On cause du coin */
  --cobalt: #2e5bff;      /* Groupe de cave */
  --jaune: #ffd84a;       /* La chronique */
  --display: "Instrument Sans", system-ui, sans-serif;
  --mono: "Instrument Sans", system-ui, sans-serif;
  --serif: "Libre Caslon Text", Georgia, serif;
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --pad: clamp(16px, 4vw, 48px);
  color-scheme: dark;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100dvh;
  background: var(--bg);
  color: var(--ink);
  font: 400 16px/1.5 "Instrument Sans", system-ui, sans-serif;
  font-variant-numeric: tabular-nums;
  font-synthesis-weight: none; /* police chargée en 400-500 : jamais de faux gras, l'interface reste fine */
  -webkit-font-smoothing: antialiased;
}

p, h1, h2, ol { margin: 0; }


.sr {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip-path: inset(50%); white-space: nowrap;
}

:focus-visible { outline: 2px solid var(--ink); outline-offset: 4px; }

/* Fond d'ambiance : la couleur de la pochette en cours, en fondu */
.wash { position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.wash-layer {
  position: absolute; inset: -10%;
  background: radial-gradient(55% 60% at 22% 32%, var(--c, transparent) 0%, transparent 72%);
  opacity: 0;
  transition: opacity 1.6s ease;
}
.wash-layer.on { opacity: 0.42; }

/* En-tête */
.top {
  max-width: 1400px; margin: 0 auto; padding: 0 var(--pad);
  height: 84px; display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
/* Le logo, c'est le nom en serif, sans pictogramme (choix de Romain, 7 novembre) */
.logo { display: block; font-family: var(--serif); font-weight: 700; font-size: 34px; line-height: 1; letter-spacing: -0.015em; color: var(--ink); text-decoration: none; white-space: nowrap; }
.top-left { display: flex; align-items: center; gap: 40px; }
.nav { display: flex; gap: 4px; }
.nav a {
  display: flex; align-items: center; min-height: 44px; padding: 0 12px; white-space: nowrap;
  color: var(--muted); text-decoration: none; font-family: var(--mono); font-size: 15px; font-weight: 700;
  transition: color 160ms ease;
}
.nav a[aria-current="page"] { color: var(--ink); box-shadow: inset 0 -2px 0 var(--accent); }
@media (hover: hover) and (pointer: fine) { .nav a:hover { color: var(--ink); } }
/* Libellé court (« Programme ») sous 1200 px, le long reste lu par les lecteurs d'écran */
.nav-s { display: none; }
@media (max-width: 1200px) {
  .top-left { gap: 24px; }
  .nav a { padding: 0 10px; }
  .nav-l { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .nav-s { display: inline; }
}
@media (max-width: 960px) { .top-right .volume { display: none; } }
/* Téléphone et petite tablette : le menu passe sur sa propre ligne, sous le logo */
@media (max-width: 800px) {
  .top { height: auto; flex-wrap: wrap; row-gap: 4px; padding-top: 10px; padding-bottom: 4px; }
  .top-left { display: contents; }
  .nav { order: 3; width: calc(100% + 12px); margin: 0 -6px; justify-content: space-between; overflow-x: auto; scrollbar-width: none; }
  .nav::-webkit-scrollbar { display: none; }
}
.top-right { display: flex; align-items: center; gap: 28px; }

.live {
  display: flex; align-items: center; gap: 10px; white-space: nowrap;
  font-family: var(--mono); font-size: 13px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted);
}
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--muted); }
.live[data-state="playing"] { color: var(--ink); }
.live[data-state="playing"] .live-dot { background: var(--accent); animation: pulse 1.8s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: 0.35; } }

.volume { display: flex; align-items: center; gap: 10px; min-height: 44px; color: var(--muted); font-size: 20px; cursor: pointer; }
.volume input {
  -webkit-appearance: none; appearance: none; width: 110px; height: 2px;
  background: var(--line); cursor: pointer; margin: 0;
}
.volume input::-webkit-slider-thumb { -webkit-appearance: none; width: 14px; height: 14px; background: var(--ink); border: 0; }
.volume input::-moz-range-thumb { width: 14px; height: 14px; background: var(--ink); border: 0; border-radius: 0; }

/* Sur l'antenne */
main { max-width: 1400px; margin: 0 auto; padding: 0 var(--pad); }

.onair {
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: clamp(32px, 5vw, 80px); align-items: end;
  padding: clamp(16px, 3vw, 40px) 0 clamp(48px, 6vw, 88px);
}

.cover-frame { position: relative; width: 100%; max-width: 520px; aspect-ratio: 1; }

.cover {
  position: relative; width: 100%; height: 100%; overflow: hidden; background: var(--tile);
  box-shadow: 14px 14px 0 var(--bleu);
  container-type: inline-size;
}
.cover > * {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  transition: opacity 600ms var(--ease-out), transform 900ms var(--ease-out);
}
.cover > .enter { opacity: 0; transform: scale(1.03); }

/* Pochette typographique quand le MP3 n'en a pas */
.type {
  display: flex; flex-direction: column; justify-content: space-between;
  padding: 8cqi; background: var(--tile); overflow: hidden;
}
.type-artist {
  font-family: var(--display); font-size: 13cqi; line-height: 1; color: var(--accent);
  text-shadow: 0.05em 0.05em 0 var(--bleu); text-transform: uppercase; letter-spacing: 0;
  display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden;
}
.type-genre { font-family: var(--mono); font-size: 5.5cqi; font-weight: 700; color: var(--ink); }

.now { padding-bottom: 4px; }
.now .swap { transition: opacity 260ms var(--ease-out), filter 260ms var(--ease-out); }
.now.changing .swap { opacity: 0; filter: blur(4px); }

.genre { font-family: var(--mono); font-size: 15px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent); }
.title {
  margin: 14px 0 12px;
  font-family: var(--display); font-weight: 400;
  font-size: clamp(2rem, 3.8vw, 3.6rem); line-height: 1.04; letter-spacing: -0.005em; text-wrap: balance;
  text-shadow: 0.045em 0.045em 0 var(--bleu);
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
  padding-bottom: 0.06em;
}
.artist { font-size: clamp(1.2rem, 2vw, 1.6rem); font-weight: 500; }
.album { margin-top: 4px; font-size: 15px; color: var(--muted); }

.progress { margin-top: 36px; }
/* Curseur de lecture (le temps de peaufiner la playlist) : zone de clic haute, trait fin qui s'épaissit au survol */
.bar { position: relative; height: 22px; margin: -10px 0; display: flex; align-items: center; cursor: pointer; touch-action: none; }
.bar:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.bar-track { width: 100%; height: 2px; background: var(--line); overflow: hidden; transition: height 140ms var(--ease-out); }
.bar-fill { height: 100%; background: var(--accent); transform-origin: left; transform: scaleX(0); }
.bar-head {
  position: absolute; left: 0; top: 50%; width: 12px; height: 12px; margin: -6px 0 0 -6px; pointer-events: none;
  background: var(--accent); box-shadow: 2px 2px 0 var(--bleu);
  opacity: 0; transform: scale(0.8); transition: opacity 140ms ease, transform 140ms var(--ease-out);
}
.bar.dragging .bar-track, .bar:focus-visible .bar-track { height: 4px; }
.bar.dragging .bar-head, .bar:focus-visible .bar-head { opacity: 1; transform: scale(1); }
@media (hover: hover) and (pointer: fine) {
  .bar:hover .bar-track { height: 4px; }
  .bar:hover .bar-head { opacity: 1; transform: scale(1); }
}
@media (pointer: coarse) { .bar-head { opacity: 1; transform: scale(1); } }
.times {
  display: flex; justify-content: space-between; margin-top: 10px;
  font-family: var(--mono); font-size: 14px; color: var(--muted); font-variant-numeric: tabular-nums;
}

.controls { margin-top: 28px; display: grid; grid-template-columns: auto 1fr auto; gap: 20px; align-items: center; }
.play {
  width: 76px; height: 76px; border: 0; padding: 0; cursor: pointer;
  background: var(--accent); color: var(--on-accent); font-size: 32px;
  display: grid; place-items: center;
  box-shadow: 6px 6px 0 var(--bleu);
  transition: transform 140ms var(--ease-out), box-shadow 140ms var(--ease-out), background-color 200ms ease;
}
.play { background: var(--ink); color: var(--bg); box-shadow: none; }
.play[data-state="playing"] { background: var(--accent); color: var(--on-accent); }
.play:active { transform: scale(0.96); }
@media (hover: hover) and (pointer: fine) { .play:hover { background: #ffffff; } .play[data-state="playing"]:hover { background: #ff5a4d; } }
.play[data-state="loading"] i { animation: spin 0.9s linear infinite; }
@keyframes spin { to { transform: rotate(1turn); } }

.play-label { font-family: var(--display); font-size: 20px; }
.play-hint { font-size: 14px; color: var(--muted); max-width: 34ch; }
.viz { width: 120px; height: 28px; }

.error {
  margin-top: 24px; padding: 14px 16px; border-left: 2px solid var(--accent);
  background: rgb(242 59 46 / 0.1); display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.error[hidden] { display: none; }
.error button {
  min-height: 44px; padding: 0 18px; background: transparent; color: var(--ink);
  border: 1px solid var(--ink); font: inherit; font-weight: 600; cursor: pointer;
  transition: transform 160ms var(--ease-out);
}
.error button:active { transform: scale(0.97); }

/* Peaufiner la playlist : précédent / suivant (hors direct), retirer un titre */
.tools { margin-top: 24px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.tool {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 14px;
  background: transparent; color: var(--ink); border: 1px solid var(--line); cursor: pointer;
  font: inherit; font-family: var(--mono); font-size: 14px; font-weight: 700;
  transition: border-color 160ms ease, color 160ms ease, transform 140ms var(--ease-out);
}
.tool i { font-size: 18px; }
.tool.icon { width: 44px; padding: 0; justify-content: center; }
.tool:active { transform: scale(0.97); }
.tool[hidden] { display: none; }
#btn-live { border-color: var(--accent); color: var(--accent); }
.tool.remove { margin-left: auto; color: var(--muted); }
@media (hover: hover) and (pointer: fine) {
  .tool:hover { border-color: rgb(242 242 238 / 0.45); }
  .tool.remove:hover { color: var(--accent); border-color: var(--accent); }
}

.toast {
  margin-top: 12px; padding: 10px 12px 10px 14px; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  background: rgb(242 59 46 / 0.1); border-left: 2px solid var(--accent); font-size: 14px;
}
.toast[hidden] { display: none; }
.toast button, .retraits button {
  flex: none; min-height: 36px; padding: 0 12px; background: transparent; color: var(--ink);
  border: 1px solid var(--line); font: inherit; font-family: var(--mono); font-size: 13px; font-weight: 700; cursor: pointer;
}
.toast button[hidden] { display: none; }

.retraits { margin-top: 12px; font-size: 14px; color: var(--muted); }
.retraits[hidden] { display: none; }
.retraits summary { cursor: pointer; min-height: 36px; display: flex; align-items: center; font-family: var(--mono); font-weight: 700; }
.retraits ul { list-style: none; padding: 0; margin: 8px 0 0; display: grid; gap: 6px; max-height: 240px; overflow-y: auto; }
.retraits li { display: flex; align-items: center; justify-content: space-between; gap: 12px; color: var(--ink); }
.retraits li span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* À suivre / Tout à l'heure */
.next, .past { padding: 48px 0 56px; border-top: 1px solid var(--line); }
/* Titres de section : capitales en graisse normale, suivies d'un filet jusqu'au bord */
h2 { display: flex; align-items: center; gap: 24px; margin-bottom: 28px; font-family: var(--display); font-weight: 400; font-size: clamp(1.6rem, 2.6vw, 2.3rem); line-height: 1.1; text-transform: uppercase; letter-spacing: 0.005em; }
h2::after { content: ""; flex: 1 1 40px; height: 1px; background: var(--line); }

.next-list { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 24px; }
.next-list .thumb { position: relative; aspect-ratio: 1; overflow: hidden; background: var(--tile); container-type: inline-size; }
.next-list .thumb > * { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.when { display: block; margin-top: 14px; font-family: var(--mono); font-size: 14px; font-weight: 700; color: var(--accent); font-variant-numeric: tabular-nums; }
.next-list .t {
  margin-top: 4px; font-weight: 650; line-height: 1.3;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.next-list .a { font-size: 14px; color: var(--muted); }

.past-list { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 48px; }
.past-list li { display: grid; grid-template-columns: 56px 52px minmax(0, 1fr); gap: 16px; align-items: center; }
.past-list .thumb { position: relative; width: 56px; height: 56px; overflow: hidden; background: var(--tile); container-type: inline-size; }
.past-list .thumb > * { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.type.small { padding: 10cqi; }
.type.small .type-genre { display: none; }
.type.small .type-artist { font-size: 40cqi; }
.past-list .when { margin: 0; color: var(--muted); }
.past-list .t, .past-list .a { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.past-list .t { font-weight: 600; }
.past-list .a { font-size: 14px; color: var(--muted); }

/* Rendez-vous de la grille : pochette rose quand il n'y a pas de photo, pictogramme en petit */
.type.rdv { background: var(--accent); }
.type.rdv .type-artist { color: var(--bg); }
.type.rdv .type-genre { color: var(--bg); }
.type.rdv.small { display: grid; place-items: center; padding: 0; }
.type.rdv.small i { font-size: 52cqi; color: var(--bg); }

/* Les rendez-vous : les prochains de la grille */
.rendez-vous { padding: 48px 0 56px; border-top: 1px solid var(--line); }
.rendez-vous[hidden] { display: none; }
.rdv-list { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.rdv-list li { display: grid; gap: 6px; align-content: start; padding: 18px 20px 20px; background: var(--tile); box-shadow: 8px 8px 0 var(--bleu); }
.rdv-list .when { margin: 0; }
.rdv-name { display: flex; align-items: center; gap: 8px; font-family: var(--mono); font-size: 13px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }
.rdv-name i { font-size: 18px; color: var(--accent); }
.rdv-list .t { margin-top: 6px; font-weight: 650; line-height: 1.3; }
.rdv-list .t a { color: inherit; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; text-decoration-color: rgb(242 242 238 / 0.35); }
.rdv-list li.en-cours .t a { text-decoration-color: rgb(14 14 16 / 0.45); }
.rdv-list .a { font-size: 14px; color: var(--muted); }
.rdv-list li.en-cours { background: var(--accent); color: var(--bg); }
.rdv-list li.en-cours .when, .rdv-list li.en-cours .rdv-name i, .rdv-list li.en-cours .a { color: var(--bg); }

/* ---------- Direction « Poste » : accroche du direct ---------- */
.accroche { padding: clamp(8px, 2vw, 24px) 0 clamp(28px, 4vw, 48px); container-type: inline-size; }
.horaires { list-style: none; padding: 0 0 18px; margin: 0 0 clamp(20px, 3vw, 36px); display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-bottom: 1px solid var(--line); }
.horaires li + li { border-left: 1px solid var(--line); }
.horaires a { display: grid; gap: 2px; padding: 4px 16px; min-height: 44px; color: var(--ink); text-decoration: none; text-transform: uppercase; font-size: 15px; line-height: 1.25; transition: color 160ms ease; }
.horaires li:first-child a { padding-left: 0; }
.horaires .h { font-size: 17px; }
.horaires .n { color: var(--muted); }
@media (hover: hover) and (pointer: fine) { .horaires a:hover .n { color: var(--ink); } }
.accroche-titre {
  font-family: var(--display); font-weight: 400; text-transform: uppercase; letter-spacing: -0.015em;
  /* deux lignes, à toutes les largeurs (Romain, 8 novembre) : ÇA SE PASSE ICI, ▢ / BRANCHE LE POSTE. ▢
     la plus longue fait 11 fois la taille du texte, pochette comprise : la taille suit la largeur disponible */
  font-size: clamp(1.8rem, 7.4vw, 7rem); font-size: min(8.8cqi, 7rem); line-height: 1.02;
}
.accroche-titre > span { display: block; white-space: nowrap; }
/* Les pochettes glissées entre les mots, légèrement de travers */
.accroche-titre img { display: inline-block; width: 0.95em; height: 0.95em; vertical-align: -0.12em; margin: 0 0.06em; object-fit: cover; transform: rotate(-3deg); }
.accroche-titre img + img, .accroche-titre img:last-child { transform: rotate(3deg); }

/* Les rendez-vous : chaque carte porte la pochette du rendez-vous */
.rdv-thumb { position: relative; display: block; width: 100%; aspect-ratio: 1; overflow: hidden; margin-bottom: 10px; background: var(--tile); container-type: inline-size; }
.rdv-thumb > * { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.rdv-list li { box-shadow: none; }

/* L'agenda : les trois prochains événements */
.agenda-apercu { padding: 48px 0 56px; border-top: 1px solid var(--line); }
.agenda-apercu[hidden] { display: none; }
.agenda-list { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.agenda-list a { display: flex; flex-direction: column; min-height: 100%; background: var(--ink); color: var(--bg); text-decoration: none; transition: transform 160ms var(--ease-out); }
.ag-illus { display: block; width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; }
.ag-txt { display: grid; gap: 6px; padding: 16px 18px 20px; }
.ag-date { font-size: 15px; text-transform: uppercase; }
.ag-titre { font-size: 1.45rem; line-height: 1.15; }
.ag-lieu { font-size: 15px; color: #55534f; }
.agenda-list a:active { transform: scale(0.98); }
@media (hover: hover) and (pointer: fine) { .agenda-list a:hover { transform: translateY(-3px); } }
.agenda-tout { margin-top: 20px; }
.agenda-tout a { color: var(--ink); text-underline-offset: 4px; text-decoration-thickness: 1px; }

@media (max-width: 1100px) {
  .agenda-list { grid-template-columns: 1fr; gap: 12px; }
  .agenda-list a { flex-direction: row; }
  .ag-illus { width: 128px; flex: none; }
}
@media (max-width: 720px) {
  .horaires { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 12px; }
  .horaires li:nth-child(3) { border-left: 0; }
  .horaires li:nth-child(3) a { padding-left: 0; }
}

.foot { max-width: 1400px; margin: 0 auto; padding: 32px var(--pad) 48px; font-size: 14px; color: var(--muted); }

/* Tablette */
@media (max-width: 1100px) {
  .next-list { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 180px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 8px; }
  .next-list li { scroll-snap-align: start; }
  .rdv-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Mobile */
@media (max-width: 820px) {
  .onair { grid-template-columns: 1fr; align-items: start; gap: 28px; }
  .cover-frame { max-width: none; }
  .past-list { grid-template-columns: 1fr; }
  .volume { display: none; } /* tablette et téléphone : volume réglé avec les boutons de l'appareil */
}
@media (max-width: 560px) {
  .logo { font-size: 28px; }
  .cover { box-shadow: 10px 10px 0 var(--bleu); }
  .live { display: none; }
  .nav { gap: 0; }
  .nav a { padding: 0 5px; font-size: 13px; }
  .controls { grid-template-columns: auto 1fr; }
  .viz { display: none; }
  .play { width: 64px; height: 64px; font-size: 28px; }
  .next-list { grid-auto-columns: 62%; }
  .rdv-list { grid-template-columns: 1fr; gap: 16px; }
}

/* ---------- Fiche album : une ligne d'À suivre ou de Tout à l'heure s'ouvre sur son album ---------- */
.next-list li, .past-list li { position: relative; }
.ouvrir { position: absolute; inset: 0; z-index: 1; padding: 0; border: 0; background: transparent; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.ouvrir:focus-visible { outline: 2px solid var(--ink); outline-offset: 4px; }
.next-list .thumb img, .past-list .thumb img { transition: transform 0.5s var(--ease-out); }
@media (hover: hover) and (pointer: fine) {
  li:has(> .ouvrir:hover) .thumb img { transform: scale(1.04); }
  li:has(> .ouvrir:hover) .t { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
}
li:has(> .ouvrir:active) .thumb { transform: scale(0.98); }

html:has(.fiche[open]) { overflow: hidden; }
.fiche {
  width: min(1040px, calc(100vw - 2 * var(--pad))); max-width: none; max-height: min(88dvh, 860px);
  margin: auto; padding: 0; border: 1px solid var(--line); background: var(--bg); color: var(--ink); overflow: auto; overscroll-behavior: contain;
}
.fiche::backdrop { background: rgb(8 8 8 / 0.78); }
.fiche[open] { animation: fiche-entre 0.32s var(--ease-out); }
.fiche[open]::backdrop { animation: fiche-fond 0.32s ease; }
@keyframes fiche-entre { from { opacity: 0; transform: translateY(16px); } }
@keyframes fiche-fond { from { opacity: 0; } }
/* la couleur de la pochette, en halo derrière l'album (comme le fond du direct) */
.fiche-in {
  position: relative; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(24px, 4vw, 56px); align-items: start;
  padding: clamp(20px, 3.4vw, 44px);
  background: radial-gradient(60% 70% at 18% 24%, color-mix(in srgb, var(--c, transparent) 55%, transparent) 0%, transparent 78%);
}
.fiche-cover { position: relative; aspect-ratio: 1; overflow: hidden; background: var(--tile); container-type: inline-size; }
.fiche-cover > * { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.fiche-texte { min-width: 0; padding-top: 4px; }
.fiche-sur { font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent); }
.fiche h2 { display: block; margin: 10px 0 12px; padding-right: 48px; font-size: clamp(1.9rem, 3.6vw, 3.2rem); line-height: 1.02; overflow-wrap: anywhere; }
.fiche h2::after { content: none; }
.fiche-qui { color: var(--muted); }
.fiche-sec { margin: clamp(24px, 3vw, 36px) 0 0; padding-bottom: 12px; border-bottom: 1px solid var(--line); font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.fiche-liste { list-style: none; padding: 0; }
.fiche-liste li { display: grid; grid-template-columns: 32px minmax(0, 1fr) auto; gap: 2px 16px; padding: 13px 0 14px; border-bottom: 1px solid var(--line); }
.fiche-liste .n, .fiche-liste .d { color: var(--muted); font-variant-numeric: tabular-nums; }
.fiche-liste .t { font-weight: 500; min-width: 0; }
.fiche-liste .a { display: block; font-weight: 400; font-size: 14px; color: var(--muted); }
.fiche-liste .q { grid-column: 2 / -1; font-size: 14px; color: var(--muted); }
.fiche-liste .q.maintenant { color: var(--accent); }
.fiche-liste li.ici .n, .fiche-liste li.ici .t { color: var(--accent); }
.fiche-x {
  position: absolute; top: clamp(12px, 2vw, 20px); right: clamp(12px, 2vw, 20px); z-index: 1;
  width: 44px; height: 44px; display: grid; place-items: center; padding: 0;
  border: 1px solid var(--line); background: var(--bg); color: var(--ink); font-size: 20px; cursor: pointer;
}
@media (hover: hover) and (pointer: fine) { .fiche-x:hover { border-color: var(--ink); } }
/* téléphone : la fiche prend tout l'écran, pochette en haut */
@media (max-width: 720px) {
  .fiche { width: 100vw; height: 100dvh; max-height: 100dvh; margin: 0; border: 0; }
  .fiche-in { grid-template-columns: 1fr; min-height: 100%; padding-top: 72px; }
  .fiche-cover { width: min(100%, 420px); }
  .fiche h2 { padding-right: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .live[data-state="playing"] .live-dot { animation: none; }
  .cover > *, .cover > .enter { transform: none; }
  .now .swap, .now.changing .swap { filter: none; }
  .viz { display: none; }
  .fiche[open], .fiche[open]::backdrop { animation: none; }
  .next-list .thumb img, .past-list .thumb img { transition: none; }
}

/* La barre du direct, en bas des autres pages (nav.js) : le direct continue quand on change de page */
.direct-barre {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 11;
  display: flex; align-items: center; gap: 16px;
  padding: 12px var(--pad) calc(12px + env(safe-area-inset-bottom));
  background: rgb(14 14 14 / 0.94); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border-top: 1px solid var(--line);
}
.direct-barre[hidden] { display: none; }
.db-lien { display: flex; align-items: center; gap: 14px; flex: 1; min-width: 0; color: var(--ink); text-decoration: none; }
.db-cover { position: relative; flex: none; width: 48px; height: 48px; overflow: hidden; background: var(--tile); container-type: inline-size; }
.db-cover > * { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.db-texte { display: grid; min-width: 0; line-height: 1.3; }
.db-etat { display: flex; align-items: center; gap: 8px; font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.db-dot { flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--muted); }
.direct-barre[data-state="playing"] .db-dot { background: var(--accent); animation: pulse 1.8s ease-in-out infinite; }
.db-titre { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.db-artiste { font-size: 14px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.db-bouton {
  flex: none; width: 48px; height: 48px; display: grid; place-items: center; padding: 0; border: 0;
  background: var(--ink); color: var(--bg); font-size: 22px; cursor: pointer;
  transition: transform 140ms var(--ease-out), background-color 200ms ease;
}
.direct-barre[data-state="playing"] .db-bouton { background: var(--accent); color: var(--on-accent); }
.db-bouton:active { transform: scale(0.95); }
.db-bouton:focus-visible, .db-lien:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.direct-barre[data-state="loading"] .db-bouton i { animation: spin 0.9s linear infinite; }
@media (hover: hover) and (pointer: fine) { .db-lien:hover .db-titre { text-decoration: underline; text-underline-offset: 3px; } }
body.has-barre { padding-bottom: 88px; }
/* Le titre de la page reçoit le focus à chaque changement de page (nav.js, pour les lecteurs d'écran) : sans cadre */
main h1[tabindex="-1"]:focus { outline: none; }
