:root {
  --bg: #0e0b16;
  --card: #1b1526;
  --card-border: rgba(255, 46, 136, 0.16);
  --accent: #ff2e88;
  --accent2: #ffb020;
  --live: #35d4a0;
  --text: #f5f1fb;
  --muted: #8d84a6;
  --danger: #ff4d6d;
  --input-bg: #150f20;
  --row-bg: #241a30;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background:
    radial-gradient(ellipse 620px 320px at 50% -8%, color-mix(in srgb, var(--accent) 22%, transparent), transparent 60%),
    radial-gradient(ellipse 520px 280px at 100% 115%, color-mix(in srgb, var(--accent2) 12%, transparent), transparent 60%),
    var(--bg);
  color: var(--text);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 24px 16px 60px;
}
.wrap { width: 100%; max-width: 480px; }
/* ---- logo + nom du bar (optionnel, via cle USB /logo) ---- */
.venue-brand { text-align: center; margin-bottom: 4px; }
.venue-logo { display: block; max-height: 64px; max-width: 70%; margin: 0 auto 6px; object-fit: contain; }
.venue-name { color: var(--muted); font-size: 0.8rem; font-weight: 600; letter-spacing: 0.02em; }
h1 {
  font-family: "Unbounded", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-weight: 700;
  font-size: 1.5rem;
  letter-spacing: 0.01em;
  text-align: center;
  margin: 0 0 4px;
  color: var(--accent);
  text-shadow: 0 0 22px color-mix(in srgb, var(--accent) 55%, transparent), 0 0 2px color-mix(in srgb, var(--accent) 70%, transparent);
}
.subtitle { text-align: center; color: var(--muted); font-size: 0.85rem; margin-bottom: 24px; }
/* select de changement rapide de radio, EN LIEU du titre <h1> en haut de
   /perso (deplace depuis la carte "Radio" plus bas, qui ne garde que l'ajout
   d'une nouvelle radio) - plutot que d'afficher le nom de la radio deux fois
   (titre + select juste en dessous, retour Hubert), le select reprend
   directement le style visuel du h1 et EST le titre ; .title-select-wrap se
   limite a la largeur du texte (comme h1) pour que la fleche ▾ (::after)
   reste collee juste a droite du nom, pas plaquee au bord de l'ecran. */
.title-select-row { text-align: center; }
.title-select-wrap { display: inline-block; position: relative; max-width: 100%; margin: 0 0 4px; }
.radio-select-top {
  appearance: none; -webkit-appearance: none; -moz-appearance: none;
  display: block; width: auto; max-width: 100%; margin: 0; padding: 0 34px 0 0;
  border: none; background: transparent; cursor: pointer;
  font-family: "Unbounded", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-weight: 700; font-size: 1.5rem; letter-spacing: 0.01em; text-align: left;
  color: var(--accent);
  text-shadow: 0 0 22px color-mix(in srgb, var(--accent) 55%, transparent), 0 0 2px color-mix(in srgb, var(--accent) 70%, transparent);
}
.radio-select-top option { color: #000; text-shadow: none; font-weight: 400; font-size: 1rem; }
/* fleche redessinee en chevron SVG (au lieu du caractere ▾, rendu trop
   petit/crenele selon la police systeme) - meme couleur/lueur que le titre,
   epaisseur de trait (stroke) pour rester lisible a cette taille plutot
   qu'une forme pleine qui s'ecraserait visuellement a cote du texte */
.title-select-wrap::after {
  content: ""; position: absolute; right: 2px; top: 50%; transform: translateY(-50%);
  width: 20px; height: 20px; pointer-events: none;
  background-color: var(--accent);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E") center / contain no-repeat;
  filter: drop-shadow(0 0 6px color-mix(in srgb, var(--accent) 65%, transparent));
}
/* liste deroulante du nouveau selecteur de radio (remplace le <select>
   natif par un bouton + panneau custom, pour pouvoir afficher un bouton
   supprimer par radio et le formulaire d'ajout directement dans la liste) */
.station-dropdown-list {
  position: absolute; top: 100%; left: 0; margin-top: 8px; z-index: 30;
  min-width: 240px; max-width: min(92vw, 360px); max-height: 60vh; overflow-y: auto;
  background: var(--card); border: 1px solid var(--card-border); border-radius: 12px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.45);
  padding: 6px;
  text-align: left;
}
.station-dropdown-item {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  padding: 10px 10px; border-radius: 8px; cursor: pointer;
  font-size: 0.92rem; color: var(--text);
}
.station-dropdown-item:hover { background: color-mix(in srgb, var(--accent) 12%, transparent); }
.station-dropdown-item span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.station-dropdown-del {
  flex: none; background: none; border: none; cursor: pointer;
  font-size: 0.95rem; line-height: 1; padding: 2px 6px; border-radius: 6px;
  color: var(--muted); opacity: 0.75;
}
.station-dropdown-del:hover { opacity: 1; color: var(--accent2); background: rgba(255, 255, 255, 0.06); }
.station-dropdown-add {
  margin-top: 4px; padding: 10px 10px; border-radius: 8px; cursor: pointer;
  font-size: 0.88rem; color: var(--accent2); font-weight: 600;
  border-top: 1px solid var(--card-border);
}
.station-dropdown-add:hover { background: color-mix(in srgb, var(--accent2) 10%, transparent); }
.station-dropdown-form {
  padding: 10px 6px 4px; display: flex; flex-direction: column; gap: 8px;
}
.station-dropdown-form input {
  width: 100%; box-sizing: border-box; background: var(--bg); color: var(--text);
  border: 1px solid var(--card-border); border-radius: 8px; padding: 8px 10px;
  font-size: 0.85rem;
}
.card {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: 16px;
  padding: 20px;
  margin-bottom: 16px;
}
/* la 1ere carte de la page (statut radio en cours) sert de "hero" visuel :
   une lueur de scène en plus de l'habillage neutre des autres cartes, pour
   casser l'uniformité "kit SaaS" plutot que de calquer le meme traitement
   partout */
.wrap > .card:first-child {
  position: relative;
  overflow: hidden;
  border-color: color-mix(in srgb, var(--accent) 30%, transparent);
}
.wrap > .card:first-child::before {
  content: "";
  position: absolute; inset: -40% -20% auto -20%; height: 140%;
  background: radial-gradient(ellipse at 50% 0%, color-mix(in srgb, var(--accent) 16%, transparent), transparent 70%);
  pointer-events: none;
}
.card h2 { font-size: 1rem; margin: 0 0 12px; color: var(--accent2); }
.status-pill {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255, 255, 255, 0.04); border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 999px; padding: 6px 14px;
  font-size: 0.85rem; margin-bottom: 12px; position: relative;
}
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--live); }
.dot.paused { background: var(--muted); }
.dot.youtube { background: var(--accent); }
@media (prefers-reduced-motion: no-preference) {
  /* un seul moment d'animation delibere sur toute la page : le point "en
     direct" qui respire doucement - pas de fioritures ailleurs */
  .dot:not(.paused):not(.youtube) {
    animation: live-pulse 2.2s ease-out infinite;
  }
  @keyframes live-pulse {
    0%   { box-shadow: 0 0 0 0 color-mix(in srgb, var(--live) 55%, transparent); }
    70%  { box-shadow: 0 0 0 9px color-mix(in srgb, var(--live) 0%, transparent); }
    100% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--live) 0%, transparent); }
  }
}
button {
  font-family: inherit;
  border: none;
  border-radius: 12px;
  padding: 14px 18px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  color: var(--text);
  background: var(--row-bg);
  transition: transform 0.05s ease, box-shadow 0.15s ease;
}
button:active { transform: scale(0.97); }
button.primary {
  background: var(--accent);
  color: #1a0f17;
  box-shadow: 0 0 0 rgba(255, 46, 136, 0);
}
button.primary:active { box-shadow: 0 0 26px color-mix(in srgb, var(--accent) 55%, transparent); }
button.danger { background: var(--danger); color: #1a0f17; }
button.ghost { background: transparent; border: 1px solid rgba(255, 255, 255, 0.14); }
button:disabled { opacity: 0.5; cursor: default; }
.row { display: flex; gap: 10px; }
.row > * { flex: 1; }
.volume-display {
  font-family: "Unbounded", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  text-align: center; font-size: 2.6rem; font-weight: 700; margin: 2px 0 10px;
}
input[type=text], input[type=password], input[type=url], input[type=date], input[type=number], select {
  width: 100%; padding: 14px; border-radius: 10px; border: 1px solid rgba(255, 255, 255, 0.12);
  background: var(--input-bg); color: var(--text); font-size: 1rem; margin-bottom: 10px;
}
input:focus-visible, button:focus-visible, select:focus-visible, a:focus-visible {
  outline: 2px solid var(--accent2); outline-offset: 2px;
}
datalist {}

/* ---- vue Identités : une ligne par prénom, bloqué volume/liens directement ---- */
.identity-row {
  display: flex; align-items: flex-start; justify-content: space-between;
  gap: 10px; padding: 6px 0;
}
.block-toggles { display: flex; gap: 10px; flex-shrink: 0; white-space: nowrap; }
.block-toggles label { display: flex; align-items: center; gap: 4px; cursor: pointer; }
.msg-box {
  background: rgba(255, 255, 255, 0.04); border-left: 3px solid var(--accent2);
  padding: 10px 14px; border-radius: 8px; font-size: 0.9rem; margin-bottom: 14px;
}
.hist-row { font-size: 0.78rem; color: var(--muted); padding: 4px 0; border-bottom: 1px solid rgba(255, 255, 255, 0.06); }
.hist-row b { color: var(--text); }
.switch-row { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.switch { position: relative; width: 46px; height: 26px; }
.switch input { opacity: 0; width: 0; height: 0; }
.slider-toggle {
  position: absolute; cursor: pointer; inset: 0; background: #3a3148; border-radius: 999px; transition: 0.15s;
}
.slider-toggle:before {
  content: ""; position: absolute; height: 20px; width: 20px; left: 3px; bottom: 3px;
  background: white; border-radius: 50%; transition: 0.15s;
}
input:checked + .slider-toggle { background: var(--accent); }
input:checked + .slider-toggle:before { transform: translateX(20px); }
a { color: var(--accent2); }
.small { font-size: 0.8rem; color: var(--muted); }
.chart { display: flex; align-items: flex-end; gap: 2px; height: 60px; }
.chart div { flex: 1; background: var(--accent); border-radius: 2px 2px 0 0; min-height: 2px; opacity: 0.85; }
.qr-box { text-align: center; }
.qr-box img { border-radius: 12px; background: white; padding: 12px; width: 220px; }
.error { color: var(--danger); font-size: 0.9rem; margin-bottom: 10px; }
.toast {
  position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%);
  background: var(--row-bg); border: 1px solid color-mix(in srgb, var(--accent) 30%, transparent); padding: 10px 18px;
  border-radius: 999px; font-size: 0.85rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.45); opacity: 0; transition: opacity 0.2s; pointer-events: none;
}
.toast.show { opacity: 1; }
.user-list { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 10px; }
.user-list button { padding: 8px 12px; font-size: 0.85rem; font-weight: 400; }

/* ---- volume : bandeau à segments façon table de mixage, qui EST le
   slider (pas juste un affichage au-dessus d'un curseur séparé) - 100%
   custom en JS (voir amis.html/perso.html), PAS un <input type=range> : un
   slider natif saute au clic/tap n'importe où sur la piste, comportement
   navigateur non fiablement désactivable (testé : OK en pointerdown
   preventDefault sur desktop, KO sur Android Chrome). Les autres sliders de
   /perso (plafonds, limite horaire) restent de simples <input type=range>
   natifs, voir plus bas - seul celui-ci, manipulé par n'importe quel invité
   au tactile, justifie cette reconstruction. ---- */
.vol-slider {
  position: relative; width: 100%; margin: 10px 0 4px;
  touch-action: none; cursor: pointer; user-select: none;
}
.vol-slider-meter { display: flex; gap: 4px; pointer-events: none; }
.vol-slider-meter .seg {
  flex: 1; height: 26px; border-radius: 4px;
  background: var(--row-bg); transition: background 0.12s ease;
}
.vol-slider-meter .seg.on-low { background: var(--live); }
.vol-slider-meter .seg.on-mid { background: var(--accent2); }
/* --danger plutôt que --accent : --accent sert aussi de couleur d'identité
   du thème (lien, bouton, curseur...) et n'est pas forcément rougeâtre -
   ex. thème dub_sound_system où --accent est vert citron (#9ee62f), ce qui
   faisait apparaître les derniers segments (volume fort) en vert au lieu
   d'une couleur d'alerte. --danger est rouge/orange de façon cohérente sur
   tous les thèmes (sert déjà aux boutons destructifs). */
.vol-slider-meter .seg.on-high { background: var(--danger); }
.vol-slider-meter .seg.seg-peak { box-shadow: 0 0 10px rgba(255, 255, 255, 0.4); }
/* zones hors plafond (min/max configurés dans /perso) : grisées par-dessus
   le bandeau, et infranchissables par le curseur (borné en JS) */
.vol-slider-limit {
  /* gris neutre opaque (pas une couleur du theme, pas de transparence) :
   couvre entierement les segments hors plafond, peu importe leur couleur
   en-dessous (vert/ambre/accent/eteint) - donc identique des deux cotes.
   Plus fonce/visible que --row-bg (qui se confondait avec les segments
   "eteints" et ne se voyait quasiment pas). */
  position: absolute; top: 0; bottom: 0; background: #3a3a42;
  pointer-events: none;
}
.vol-slider-limit-low { left: 0; }
.vol-slider-limit-high { right: 0; }
.vol-slider-thumb {
  position: absolute; top: 50%; left: 0;
  width: 28px; height: 28px; margin-top: -14px; margin-left: -14px;
  border-radius: 50%; background: var(--accent); border: 3px solid var(--bg);
  box-shadow: 0 0 16px color-mix(in srgb, var(--accent) 55%, transparent);
  cursor: pointer; z-index: 2;
}

/* ---- piste "plain-slider" : meme rendu que l'ancien <input type=range>
   (plafonds min/max de /perso) mais pilotee 100% en JS (voir perso.html,
   wirePlainSlider) - drag-only comme #volSlider, pour la meme raison
   (preventDefault sur pointerdown ne bloque pas fiablement le saut au
   clic d'un <input type=range> natif sur tous les navigateurs). ---- */
.plain-slider {
  position: relative; width: 100%; height: 8px; border-radius: 999px;
  background: var(--row-bg); margin: 10px 0 4px;
  touch-action: none; cursor: pointer; user-select: none;
}

/* ---- autre slider (natif, /perso uniquement : limite horaire - jamais
   manipulé par les invités, et pas de "saut au clic" gênant pour un seul
   réglage ponctuel) ---- */
input[type=range] {
  -webkit-appearance: none; appearance: none;
  width: 100%; height: 8px; border-radius: 999px;
  background: var(--row-bg); outline: none; margin: 10px 0 4px;
}
input[type=range]::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none;
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--accent);
  cursor: pointer; border: 3px solid var(--bg);
  box-shadow: 0 0 16px color-mix(in srgb, var(--accent) 55%, transparent);
}
input[type=range]::-moz-range-thumb {
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--accent);
  cursor: pointer; border: 3px solid var(--bg);
  box-shadow: 0 0 16px color-mix(in srgb, var(--accent) 55%, transparent);
}
input[type=range]::-moz-range-track { background: var(--row-bg); height: 8px; border-radius: 999px; }

/* ---- slider pleine largeur : deborde volontairement du padding de la
   card pour profiter du maximum de largeur dispo sur l'ecran du tel ---- */
.slider-row { margin: 0 -20px; padding: 0 10px; }

/* ---- file d'attente / morceau en cours / historique ---- */
.queue-list { list-style: none; margin: 0; padding: 0; }
.queue-list li {
  display: flex; align-items: center; gap: 10px;
  background: var(--row-bg); border-radius: 10px; padding: 8px 10px;
  margin-bottom: 8px; font-size: 0.85rem;
}
.queue-list li .q-pos { color: var(--muted); margin-right: 6px; font-weight: 700; }
.queue-list li .q-by { color: var(--accent2); font-weight: 600; font-size: 0.78rem; }
.queue-full { color: var(--danger); font-size: 0.8rem; margin-top: 6px; }
.track-thumb {
  width: 56px; height: 42px; border-radius: 6px; object-fit: cover;
  flex-shrink: 0; background: var(--input-bg);
}
.track-thumb-empty {
  display: flex; align-items: center; justify-content: center; font-size: 1.1rem;
  background: color-mix(in srgb, var(--accent) 10%, transparent);
}
.track-info { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.track-title { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 0.95rem; }
/* un titre cliquable doit sauter aux yeux : souligné, en couleur accent,
   plus gros que le texte normal - sinon on dirait du texte simple */
.track-title a {
  color: var(--accent2); text-decoration: underline;
  text-underline-offset: 2px; font-weight: 700;
}
.track-title a:hover, .track-title a:active { color: var(--accent); }
/* resultats de recherche YouTube : titre complet, pas tronque */
.track-title-full { overflow: visible; text-overflow: clip; white-space: normal; }

/* ---- notes de mise à jour (/amis + /perso) : regroupees par jour (une
   seule date affichee par jour, pas repetee a chaque ligne - voir
   loop.changed() dans les templates), texte jamais tronque (pas de
   text-overflow/ellipsis ici, contrairement a .track-title) ---- */
.changelog-date {
  color: var(--accent2); font-weight: 700; font-size: 0.78rem;
  margin: 14px 0 4px; letter-spacing: 0.01em;
}
.changelog-date:first-child { margin-top: 0; }
.changelog-list { list-style: none; margin: 0 0 4px; padding: 0; }
.changelog-list li {
  font-size: 0.85rem; color: var(--text); line-height: 1.4;
  padding: 4px 0; border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.changelog-list li:last-child { border-bottom: none; }

/* ---- historique admin : meme habillage miniature que la file d'attente,
   mais pour une simple ligne d'historique (pas de list-style ul/li) ---- */
.hist-row-music {
  display: flex; align-items: center; gap: 10px;
  padding: 6px 0; border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

/* ---- thèmes alternatifs (choisis dans /perso) : ne touchent que les
   couleurs - structure, cartes, polices et interactions restent identiques,
   voir toutes les règles ci-dessus qui passent par color-mix(var(--accent))
   plutôt que des rgba() figés, pour que chaque thème se propage partout ---- */
:root[data-theme="dub_sound_system"] {
  --bg: #0b120d;
  --card: #131f16;
  --card-border: rgba(168, 230, 88, 0.18);
  --accent: #9ee62f;
  --accent2: #e0a63a;
  --live: #59e08c;
  --text: #eef5ea;
  --muted: #7e9a82;
  --danger: #ff6b4d;
  --input-bg: #0f1a12;
  --row-bg: #18261b;
}
:root[data-theme="disco_vinyle"] {
  --bg: #180b12;
  --card: #241219;
  --card-border: rgba(255, 189, 89, 0.18);
  --accent: #ffbd59;
  --accent2: #c23b5e;
  --live: #33c2a8;
  --text: #f8ece0;
  --muted: #a9897e;
  --danger: #ff5a5a;
  --input-bg: #1b0e14;
  --row-bg: #2c161f;
}
:root[data-theme="techno_club"] {
  --bg: #07090d;
  --card: #10151c;
  --card-border: rgba(50, 220, 255, 0.18);
  --accent: #32dcff;
  --accent2: #8f7bff;
  --live: #32dcff;
  --text: #e9f7fb;
  --muted: #5f7684;
  --danger: #ff3d6e;
  --input-bg: #0a0e13;
  --row-bg: #141b23;
}
:root[data-theme="reggae_roots"] {
  --bg: #0c0f08;
  --card: #161c10;
  --card-border: rgba(247, 196, 48, 0.18);
  --accent: #f7c430;
  --accent2: #e4572e;
  --live: #4caf50;
  --text: #f6f3e7;
  --muted: #8a9478;
  --danger: #e4572e;
  --input-bg: #0f130a;
  --row-bg: #1c2314;
}

/* ============================================================
   STYLES D'INTERFACE ([data-ui-style="..."]) : axe indépendant des
   thèmes de couleur ci-dessus. Mêmes ids HTML/JS, même logique -
   seule la disposition/densité change. "console" (défaut) = pas de
   règle supplémentaire, c'est l'habillage cartes déjà défini plus
   haut. "compact" ci-dessous est le 1er style alternatif, pensé
   comme une playlist dense (façon appli de musique) plutôt que des
   cartes façon table de mixage.
   ============================================================ */
[data-ui-style="compact"] body { padding: 18px 16px 50px; }
[data-ui-style="compact"] .wrap { max-width: 440px; }
[data-ui-style="compact"] h1 { font-size: 1.2rem; text-align: left; text-shadow: none; margin-bottom: 2px; }
[data-ui-style="compact"] .title-select-row { text-align: left; }
[data-ui-style="compact"] .radio-select-top { font-size: 1.2rem; text-shadow: none; padding: 0 26px 0 0; }
[data-ui-style="compact"] .title-select-wrap::after { width: 16px; height: 16px; filter: none; }
[data-ui-style="compact"] .subtitle { text-align: left; margin-bottom: 16px; font-size: 0.78rem; }

/* cartes -> simples sections separees par un filet, sans fond ni
   bordure arrondie : plus dense, moins "kit SaaS" */
[data-ui-style="compact"] .card {
  background: none; border: none; border-radius: 0;
  padding: 14px 0; margin-bottom: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
[data-ui-style="compact"] .card:last-child { border-bottom: none; }
[data-ui-style="compact"] .wrap > .card:first-child { overflow: visible; border-color: transparent; }
[data-ui-style="compact"] .wrap > .card:first-child::before { display: none; }
[data-ui-style="compact"] .card h2 { font-size: 0.78rem; color: var(--muted); font-weight: 600; margin: 0 0 8px; }

[data-ui-style="compact"] .status-pill { background: none; border: none; padding: 0; margin-bottom: 10px; }
[data-ui-style="compact"] .msg-box { background: none; border-left: 2px solid var(--accent2); border-radius: 0; padding: 6px 0 6px 10px; }

/* le bandeau a segments reste fonctionnel ici (c'est le slider lui-meme,
   plus un simple affichage) mais en version plus fine/dense, dans l'esprit
   compact d'une appli de musique classique */
[data-ui-style="compact"] .volume-display { font-size: 1.3rem; text-align: left; margin: 0 0 2px; }
[data-ui-style="compact"] .slider-row { margin: 0; padding: 0; }
[data-ui-style="compact"] input[type=range] { margin: 4px 0; height: 4px; }
[data-ui-style="compact"] .plain-slider { margin: 4px 0; height: 4px; }
[data-ui-style="compact"] input[type=range]::-webkit-slider-thumb { width: 16px; height: 16px; border-width: 2px; }
[data-ui-style="compact"] input[type=range]::-moz-range-thumb { width: 16px; height: 16px; border-width: 2px; }
[data-ui-style="compact"] .vol-slider { margin: 4px 0; }
[data-ui-style="compact"] .vol-slider-meter .seg { height: 14px; }
[data-ui-style="compact"] .vol-slider-thumb { width: 16px; height: 16px; margin-top: -8px; margin-left: -8px; border-width: 2px; }

[data-ui-style="compact"] button { border-radius: 6px; padding: 9px 12px; font-size: 0.85rem; font-weight: 500; }
[data-ui-style="compact"] button.primary { box-shadow: none; }
[data-ui-style="compact"] button.primary:active { box-shadow: none; }

[data-ui-style="compact"] .queue-list li {
  background: none; border-radius: 0; padding: 7px 0; margin-bottom: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
[data-ui-style="compact"] .queue-list li:last-child { border-bottom: none; }
[data-ui-style="compact"] .track-thumb { width: 36px; height: 36px; border-radius: 4px; }
[data-ui-style="compact"] .track-thumb-empty { font-size: 0.9rem; }
[data-ui-style="compact"] .track-title { font-size: 0.88rem; }
[data-ui-style="compact"] .track-title a { font-weight: 600; }
[data-ui-style="compact"] .queue-list li .q-by { font-size: 0.72rem; }

[data-ui-style="compact"] input[type=text],
[data-ui-style="compact"] input[type=password],
[data-ui-style="compact"] input[type=url],
[data-ui-style="compact"] input[type=date],
[data-ui-style="compact"] input[type=number],
[data-ui-style="compact"] select {
  border-radius: 6px; padding: 10px 12px;
}

[data-ui-style="compact"] .qr-box { border: none; padding: 14px 0 0; }
[data-ui-style="compact"] .hist-row-music { padding: 5px 0; }

/* ============================================================
   STYLE "retro" (Jukebox rétro) : chrome, panneau lumineux, pastilles
   rondes façon ampoules de marquise. Le disque (miniature) tourne
   lentement pendant la lecture - seul moment d'animation du style,
   en echo au jukebox a vinyle. ---- */
[data-ui-style="retro"] h1,
[data-ui-style="retro"] .radio-select-top {
  font-size: 1.7rem; letter-spacing: 0.04em;
  text-shadow:
    0 0 2px color-mix(in srgb, var(--accent) 85%, transparent),
    0 0 18px color-mix(in srgb, var(--accent) 60%, transparent),
    0 0 40px color-mix(in srgb, var(--accent) 30%, transparent);
}
[data-ui-style="retro"] .card {
  border-radius: 22px; border-width: 2px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), inset 0 -8px 20px rgba(0, 0, 0, 0.25);
}
/* rangée de petites "ampoules" en haut de la carte hero, façon marquise
   de jukebox - seule carte à en avoir, pour ne pas surcharger la page */
[data-ui-style="retro"] .wrap > .card:first-child { padding-top: 26px; }
[data-ui-style="retro"] .wrap > .card:first-child::before {
  content: ""; position: absolute; top: 10px; left: 20px; right: 20px; height: 6px;
  background-image: radial-gradient(circle, color-mix(in srgb, var(--accent2) 80%, transparent) 2px, transparent 2.5px);
  background-size: 16px 6px; background-repeat: repeat-x;
  inset: auto; opacity: 0.8;
}
[data-ui-style="retro"] button {
  border-radius: 999px;
  background: linear-gradient(180deg, color-mix(in srgb, var(--text) 14%, var(--row-bg)), var(--row-bg));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25), 0 2px 6px rgba(0, 0, 0, 0.3);
}
[data-ui-style="retro"] button.primary {
  background: linear-gradient(180deg, color-mix(in srgb, white 30%, var(--accent)), var(--accent));
}
[data-ui-style="retro"] .vol-slider-meter .seg { border-radius: 999px; height: 20px; }
[data-ui-style="retro"] .track-thumb {
  width: 48px; height: 48px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, 0.25);
}
[data-ui-style="retro"] .track-thumb-empty { border-radius: 50%; }
@media (prefers-reduced-motion: no-preference) {
  [data-ui-style="retro"] .wrap > .card:first-child .track-thumb { animation: retro-spin 6s linear infinite; }
  @keyframes retro-spin { to { transform: rotate(360deg); } }
}
[data-ui-style="retro"] input[type=range]::-webkit-slider-thumb,
[data-ui-style="retro"] input[type=range]::-moz-range-thumb {
  border-radius: 50%; border-width: 4px;
}
[data-ui-style="retro"] .vol-slider-thumb { border-width: 4px; }

/* ============================================================
   STYLE "soiree" (Mode soirée, gros boutons) : conçu pour un bar
   sombre, tactile rapide sans viser finement - tout est agrandi,
   les finitions discrètes disparaissent au profit du contraste et
   de la taille des zones cliquables. ---- */
[data-ui-style="soiree"] { font-size: 1.08rem; }
[data-ui-style="soiree"] h1,
[data-ui-style="soiree"] .radio-select-top { font-size: 1.9rem; }
[data-ui-style="soiree"] .radio-select-top { padding: 0 26px 0 0; }
[data-ui-style="soiree"] .subtitle { font-size: 1rem; }
[data-ui-style="soiree"] .card { padding: 26px; border-width: 2px; }
[data-ui-style="soiree"] .card h2 { font-size: 1.15rem; }
[data-ui-style="soiree"] .volume-display { font-size: 3.4rem; }
[data-ui-style="soiree"] .vol-slider-meter .seg { height: 36px; }
[data-ui-style="soiree"] button {
  padding: 22px 20px; font-size: 1.2rem; border-radius: 16px; min-height: 64px;
}
[data-ui-style="soiree"] .row { gap: 14px; }
[data-ui-style="soiree"] input[type=range] { height: 14px; margin: 16px 0; }
[data-ui-style="soiree"] .plain-slider { height: 14px; margin: 16px 0; }
[data-ui-style="soiree"] input[type=range]::-webkit-slider-thumb,
[data-ui-style="soiree"] input[type=range]::-moz-range-thumb { width: 40px; height: 40px; border-width: 4px; }
[data-ui-style="soiree"] .vol-slider { margin: 16px 0; }
[data-ui-style="soiree"] .vol-slider-thumb { width: 40px; height: 40px; margin-top: -20px; margin-left: -20px; border-width: 4px; }
[data-ui-style="soiree"] .queue-list li { padding: 14px; gap: 14px; font-size: 1rem; }
[data-ui-style="soiree"] .track-thumb { width: 72px; height: 54px; }
[data-ui-style="soiree"] .track-title { font-size: 1.05rem; white-space: normal; }
[data-ui-style="soiree"] .switch { width: 58px; height: 32px; }
[data-ui-style="soiree"] .slider-toggle:before { height: 26px; width: 26px; }
[data-ui-style="soiree"] input:checked + .slider-toggle:before { transform: translateX(26px); }
[data-ui-style="soiree"] input[type=text],
[data-ui-style="soiree"] input[type=password],
[data-ui-style="soiree"] input[type=url],
[data-ui-style="soiree"] input[type=date],
[data-ui-style="soiree"] input[type=number],
[data-ui-style="soiree"] select {
  padding: 18px; font-size: 1.1rem;
}

/* ============================================================
   STYLE "festival" (Affiche festival) : typographie d'affiche,
   mise en page asymétrique alignée à gauche, carte hero traitée
   comme un ticket (bords perforés + encoche), bandeau diagonal en
   accent - seul le hero porte ces décors pour garder le reste
   lisible et calme. ---- */
[data-ui-style="festival"] .wrap { text-align: left; }
[data-ui-style="festival"] h1 {
  text-align: left; font-size: 2.1rem; line-height: 1.05; letter-spacing: 0;
  text-shadow: 3px 3px 0 color-mix(in srgb, var(--accent2) 80%, transparent);
}
[data-ui-style="festival"] .title-select-row { text-align: left; }
[data-ui-style="festival"] .radio-select-top {
  font-size: 2.1rem; line-height: 1.05; letter-spacing: 0;
  text-shadow: 3px 3px 0 color-mix(in srgb, var(--accent2) 80%, transparent);
}
[data-ui-style="festival"] .subtitle { text-align: left; }
[data-ui-style="festival"] .venue-brand { text-align: left; }
[data-ui-style="festival"] .venue-logo { margin: 0 0 6px; }
[data-ui-style="festival"] .card h2 {
  font-size: 0.95rem; letter-spacing: 0.02em;
}
[data-ui-style="festival"] .wrap > .card:first-child {
  border-radius: 6px;
  background-image: repeating-linear-gradient(
    135deg,
    color-mix(in srgb, var(--accent) 10%, transparent) 0px,
    color-mix(in srgb, var(--accent) 10%, transparent) 14px,
    transparent 14px,
    transparent 28px
  ), var(--card);
}
[data-ui-style="festival"] .wrap > .card:first-child::before { display: none; }
[data-ui-style="festival"] .wrap > .card:first-child { overflow: visible; }
/* encoches façon ticket, sur les 2 côtés de la carte hero */
[data-ui-style="festival"] .wrap > .card:first-child::after {
  content: ""; position: absolute; top: 50%; left: -10px; right: -10px;
  height: 20px; transform: translateY(-50%); pointer-events: none;
  background-image:
    radial-gradient(circle, var(--bg) 9px, transparent 10px),
    radial-gradient(circle, var(--bg) 9px, transparent 10px);
  background-position: left center, right center;
  background-size: 20px 20px; background-repeat: no-repeat;
}
[data-ui-style="festival"] .card { border-radius: 6px; }
[data-ui-style="festival"] button { border-radius: 4px; }
[data-ui-style="festival"] .status-pill { border-radius: 4px; }
[data-ui-style="festival"] .track-title a { text-decoration-style: wavy; }
