/* Styles communs aux pages du karaoké. Pensé téléphone d'abord, thème sombre
   (soirée, écran de télé). Aucune dépendance externe. */
:root {
  --fond: #12101c;
  --carte: #1e1a2e;
  --bord: #342d4d;
  --texte: #f2eefc;
  --doux: #a69cc4;
  --accent: #ff4f9a;
  --accent2: #7c5cff;
  --ok: #3ccf91;
  --rayon: 12px;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--fond); color: var(--texte);
  font: 16px/1.4 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
a { color: var(--accent); }
button, input { font: inherit; }
button { cursor: pointer; border: 0; border-radius: 999px; padding: .55em 1em;
  background: var(--accent); color: #fff; font-weight: 600; }
button.secondaire { background: var(--carte); color: var(--texte); border: 1px solid var(--bord); }
button.icone { padding: .4em .65em; background: transparent; color: var(--doux); border: 1px solid var(--bord); }
button:disabled { opacity: .45; cursor: default; }
input[type=text], input[type=search] { width: 100%; padding: .7em .9em; border-radius: var(--rayon);
  border: 1px solid var(--bord); background: var(--carte); color: var(--texte); }
.page { max-width: 640px; margin: 0 auto; padding: 16px; }
h1 { font-size: 1.5rem; margin: .2em 0 .6em; }
h2 { font-size: 1.1rem; margin: 1.2em 0 .5em; color: var(--doux); font-weight: 600; }
.carte { background: var(--carte); border: 1px solid var(--bord); border-radius: var(--rayon); padding: 14px; }
.doux { color: var(--doux); }
.petit { font-size: .85rem; }
.erreur { color: #ff8a8a; }
.cache { display: none !important; }
.ligne { display: flex; gap: 8px; align-items: center; }

/* Liste de chansons (recherche, file, ma liste, favoris) */
.chansons { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.chanson { display: grid; grid-template-columns: 96px 1fr; gap: 10px; align-items: center;
  background: var(--carte); border: 1px solid var(--bord); border-radius: var(--rayon); padding: 8px; }
.chanson img { width: 96px; aspect-ratio: 16/9; object-fit: cover; border-radius: 8px; background: #000; }
.chanson .titre { font-weight: 600; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.chanson .meta { color: var(--doux); font-size: .85rem; }
.chanson .actions { grid-column: 1 / -1; display: flex; gap: 6px; justify-content: flex-end; flex-wrap: wrap; }
.chanson.moi { border-color: var(--accent2); }
.pastille { display: inline-block; min-width: 1.6em; padding: 0 .4em; border-radius: 999px; text-align: center;
  background: var(--accent2); color: #fff; font-size: .8rem; font-weight: 700; }

/* Onglets du téléphone, collés en bas de l'écran */
.onglets { position: fixed; left: 0; right: 0; bottom: 0; display: flex; background: var(--carte);
  border-top: 1px solid var(--bord); padding-bottom: env(safe-area-inset-bottom); }
.onglets button { flex: 1; border-radius: 0; background: transparent; color: var(--doux); padding: .8em .2em; font-size: .85rem; }
.onglets button[aria-selected=true] { color: var(--accent); }
.avec-onglets { padding-bottom: 90px; }

.toast { position: fixed; left: 50%; bottom: 80px; transform: translateX(-50%); background: #000c;
  color: #fff; padding: .6em 1em; border-radius: 999px; font-size: .9rem; z-index: 10; }
