/* Variantes de l'interface du studio (choisies dans l'onglet « Interface » du mode admin, voir src/ui/interface.js).
   La variante « pixel » / « classique » = le style de css/ui.css, sans aucune règle ici. Chaque variante = une classe sur <body>. */

/* échelle des boutons (réglage « Taille ») */
.btn { font-size: calc(18px * var(--ui, 1)); padding: calc(8px * var(--ui, 1)) calc(16px * var(--ui, 1)); }
/* mêmes marges verticales (8 px) et même interligne (20,5 px) que .btn : les boutons de navigation ont EXACTEMENT la hauteur de « Retour » et « Quitter », dans tous les styles */
#points button { padding: calc(8px * var(--ui, 1)) calc(12px * var(--ui, 1)); line-height: calc(20.5px * var(--ui, 1)); font-size: calc(14px * var(--ui, 1)); }
@media (max-width: 1100px) { #points { gap: 6px; } #points button { padding: calc(8px * var(--ui, 1)) calc(8px * var(--ui, 1)); font-size: calc(12px * var(--ui, 1)); letter-spacing: 0; } }          /* fenêtres moyennes : boutons plus compacts pour rester sur une seule ligne entre « Retour » et « Quitter » */

/* =====================================================  BOUTONS / BULLES / PLAQUE  ===================================================== */

/* ---- arcade : gros boutons bombés qui s'enfoncent ---- */
body.ui-arcade .btn, body.ui-arcade #points button { border-radius: 14px; text-shadow: 0 2px 0 rgba(0,0,0,.55); transition: transform .06s, box-shadow .06s;
  background: linear-gradient(180deg, color-mix(in srgb, var(--c, var(--violet-btn)) 70%, #fff) 0, var(--c, var(--violet-btn)) 45%, color-mix(in srgb, var(--c, var(--violet-btn)) 75%, #000) 100%);
  box-shadow: 0 0 0 3px #000, 0 7px 0 3px #000, 0 9px 8px 3px rgba(0,0,0,.35), inset 0 3px 0 rgba(255,255,255,.55); margin-bottom: 8px; }
body.ui-arcade #points button { --c: var(--violet-btn); border-radius: 14px; margin-bottom: 8px; }
body.ui-arcade .btn:hover, body.ui-arcade #points button:hover { filter: brightness(1.12); transform: translateY(-1px); }
body.ui-arcade .btn:active, body.ui-arcade #points button:active { transform: translateY(5px); box-shadow: 0 0 0 3px #000, 0 2px 0 3px #000, inset 0 3px 0 rgba(255,255,255,.35); }
body.ui-arcade #points button.actif { background: radial-gradient(circle at 50% 35%, #fff9a0, var(--jaune) 60%, #d9c900); }
body.ui-arcade #plaque { border-radius: 16px; background: linear-gradient(180deg, #ff8be8, var(--magenta) 50%, #c4009f); box-shadow: 0 0 0 4px #000, 0 8px 0 4px #000, inset 0 4px 0 rgba(255,255,255,.5); }

/* ---- brutal : aplats vifs, trait noir, ombre dure décalée ---- */
body.ui-brutal .btn, body.ui-brutal #points button { background: var(--c, var(--violet-btn)); color: #000; text-shadow: none; border: 3px solid #000; box-shadow: 5px 5px 0 #000; transition: transform .08s, box-shadow .08s; }
body.ui-brutal .btn.sec, body.ui-brutal #retour, body.ui-brutal #quitter { color: #fff; }
body.ui-brutal #points button { background: #fff; }
body.ui-brutal #points button.actif { background: var(--jaune); }
body.ui-brutal .btn:hover, body.ui-brutal #points button:hover { filter: none; transform: translate(-2px, -2px); box-shadow: 8px 8px 0 #000; }
body.ui-brutal .btn:active, body.ui-brutal #points button:active { transform: translate(5px, 5px); box-shadow: 0 0 0 #000; }
body.ui-brutal #plaque { color: #000; background: var(--jaune); text-shadow: none; border: 4px solid #000; box-shadow: 9px 9px 0 #000; }
body.ui-brutal #tip, body.ui-brutal #toast, body.ui-brutal .marque i { border: 3px solid #000; box-shadow: 4px 4px 0 #000; }

/* ---- osd : bleu et blanc, comme le menu de la télé ---- */
body.ui-osd .btn, body.ui-osd #points button { background: var(--bleu); color: #fff; text-shadow: none; border-radius: 0; box-shadow: 0 0 0 3px #fff; }
body.ui-osd .btn:hover, body.ui-osd #points button:hover, body.ui-osd #points button.actif { filter: none; background: #fff; color: var(--bleu); }
body.ui-osd .btn:active, body.ui-osd #points button:active { transform: none; background: #cfc8ff; }
body.ui-osd #plaque { background: var(--bleu); color: #fff; text-shadow: none; box-shadow: 0 0 0 4px #fff; letter-spacing: 6px; }
body.ui-osd #tip, body.ui-osd #toast, body.ui-osd .marque i { background: var(--bleu); color: #fff; box-shadow: 0 0 0 3px #fff; }
body.ui-osd #tip::before, body.ui-osd .marque i::before { background: #fff; }
body.ui-osd #tip::after, body.ui-osd .marque i::after { background: var(--bleu); }
body.ui-osd .marque.cass i { background: #fff; color: var(--bleu); }
body.ui-osd .marque.cass i::after { background: #fff; }

/* ---- néon : fond sombre, contours lumineux ---- */
body.ui-neon .btn, body.ui-neon #points button { --n: var(--c, var(--magenta)); background: rgba(12, 2, 34, .78); color: #fff; text-shadow: 0 0 8px var(--n); border-radius: 2px;
  box-shadow: 0 0 0 2px var(--n), 0 0 14px var(--n), inset 0 0 12px color-mix(in srgb, var(--n) 45%, transparent); }
body.ui-neon #points button { --c: var(--magenta); }
body.ui-neon .btn:hover, body.ui-neon #points button:hover { filter: none; background: color-mix(in srgb, var(--n) 38%, rgba(12, 2, 34, .85)); box-shadow: 0 0 0 2px #fff, 0 0 22px var(--n), inset 0 0 14px var(--n); }
body.ui-neon #points button.actif { --n: var(--jaune); color: var(--jaune); text-shadow: 0 0 8px var(--jaune); background: rgba(12, 2, 34, .78); }
body.ui-neon #plaque { background: rgba(12, 2, 34, .78); color: #fff; text-shadow: 0 0 10px var(--magenta), 0 0 24px var(--magenta); box-shadow: 0 0 0 3px var(--magenta), 0 0 24px var(--magenta), inset 0 0 18px rgba(255, 45, 208, .45); }
body.ui-neon #tip, body.ui-neon #toast, body.ui-neon .marque i { background: rgba(12, 2, 34, .85); color: #fff; box-shadow: 0 0 0 2px var(--magenta), 0 0 12px var(--magenta); text-shadow: 0 0 6px var(--magenta); }
body.ui-neon #tip::before, body.ui-neon .marque i::before { background: var(--magenta); }
body.ui-neon #tip::after, body.ui-neon .marque i::after { background: #0c0222; }
body.ui-neon .marque.cass i { color: var(--jaune); box-shadow: 0 0 0 2px var(--jaune), 0 0 12px var(--jaune); background: rgba(12, 2, 34, .85); }
body.ui-neon .marque.cass i::before { background: var(--jaune); } body.ui-neon .marque.cass i::after { background: #0c0222; }

:root { --titre: 'Typo Workshop', 'Tiny5 Duo', system-ui, sans-serif; }
/* =====================================================  LECTEUR DE MUSIQUE  ===================================================== */
/* structure : #lec-info (titre) · #lec-prog (temps, barre) · #lec-ctrl (pause / lecture, stop) */
#lecteur #lec-info, #lecteur #lec-ctrl, #lecteur #lec-prog { display: flex; align-items: center; gap: 10px; min-width: 0; }
#lec-cover, #lec-sub, #lec-temps, #lec-duree { display: none; }
#lec-titre::before { content: '♪ '; }
#lecteur #lec-barre { background: linear-gradient(90deg, var(--jaune) var(--p, 0%), #000 var(--p, 0%)); }

/* position : coin en bas à droite par défaut (ou au centre / à gauche) */
body.lecpos-gauche #lecteur { left: 18px; transform: none; }
body.lecpos-droite #lecteur { left: auto; right: 18px; transform: none; }
body.lecpos-droite.admin-on #lecteur { right: 368px; }

/* ====================  LECTEUR DE MUSIQUE « COMPACT » (style pixel : les mêmes boutons que le reste du site)  ====================
   Même contenu que le lecteur actuel : titre, temps / barre / durée, pause-lecture et stop. Couleurs de la cassette jouée (#lecteur[data-piste], css/trames.css).
   Pause / stop à gauche, titre et barre (temps et durée) à droite. */
body.lec-compact #lecteur { --b: 0 -3px 0 0 #000, 0 3px 0 0 #000, -3px 0 0 0 #000, 3px 0 0 0 #000; display: grid; align-items: center; box-sizing: border-box; border: 0; border-radius: 0; color: #000; text-transform: uppercase; letter-spacing: 2px; font-size: 16px; text-shadow: none; max-width: calc(100vw - 40px);
  background: var(--lc, #c37dff) var(--lt, var(--trame-lecteur-mauve)) 0 0 / 512px 100% repeat-x; image-rendering: pixelated; box-shadow: var(--b), inset 0 -5px 0 0 rgba(0,0,0,.22), inset 0 5px 0 0 rgba(255,255,255,.45); }
body.lec-compact #lec-info { grid-area: info; display: flex; min-width: 0; }
body.lec-compact #lec-prog { grid-area: prog; display: flex; align-items: center; gap: 8px; min-width: 0; }
body.lec-compact #lec-ctrl { grid-area: ctrl; display: flex; align-items: center; gap: 4px; }
body.lec-compact #lec-sub, body.lec-compact #lec-vol { display: none; }
body.lec-compact #lec-temps, body.lec-compact #lec-duree { display: block; font-size: 15px; letter-spacing: 1px; color: #000; min-width: 34px; }
body.lec-compact #lec-duree { text-align: right; }
body.lec-compact #lecteur #lec-titre { font-family: var(--police); font-size: 20px; letter-spacing: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
body.lec-compact #lec-titre::before { content: none; }
/* boutons : exactement les .btn du site, de la couleur des silhouettes de la cassette */
body.lec-compact #lecteur .btn { --c: var(--lp, #8f00ff); color: var(--li, #fff); text-shadow: none; margin: 3px; padding: 6px 16px; font-size: 18px; }
/* barre de progression pleine, de la couleur de la cassette, calée sur la musique */
body.lec-compact #lecteur #lec-barre { -webkit-appearance: none; appearance: none; flex: 1; width: auto; min-width: 60px; height: 22px; margin: 3px; box-sizing: border-box; border: 0; border-radius: 0; cursor: pointer; box-shadow: var(--b);
  background: linear-gradient(90deg, var(--lp, #8f00ff) var(--p, 0%), #fff var(--p, 0%)); }
body.lec-compact #lecteur #lec-barre::-webkit-slider-thumb { -webkit-appearance: none; width: 6px; height: 30px; background: #000; border: 0; border-radius: 0; box-shadow: none; }
body.lec-compact #lecteur #lec-barre::-moz-range-thumb { width: 6px; height: 30px; background: #000; border: 0; border-radius: 0; box-shadow: none; }

/* compact : pause / stop à gauche, titre et barre à droite */
body.lec-compact #lecteur { grid-template-columns: auto 1fr; grid-template-areas: "ctrl info" "ctrl prog"; gap: 6px 14px; width: 520px; padding: 14px; }
body.lec-compact #lec-titre { font-size: 17px; }
body.lec-compact #lecteur .btn { padding: 0; width: 46px; height: 46px; display: grid; place-items: center; }

/* mêmes positions que le lecteur actuel */
body.lec-compact.lecpos-droite.lecteur-on #lecteur { bottom: 18px; }
body.lec-compact.lecteur-on #plaque { bottom: 7%; }
