@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;500;600;700;800&display=swap');   /* police de l'interface (chargée par le navigateur ; hors-ligne → police du système) */
/* Distric — thème sombre, épuré, pensé pour l'iPhone (application plein écran depuis Safari).

   Principes
   · Grille de 4 pt : tous les espacements sont des multiples de 4 (8 / 12 / 16 / 20 / 24 / 32).
   · Métriques iOS : barre d'onglets 49 pt + zone sûre, champ de recherche 36 pt, gouttière 20 pt,
     zones tactiles ≥ 44 pt, styles de texte Apple (34 / 22 / 17 / 15 / 13 / 12).
   · Fond anthracite (#121212) : gris très sombre, sobre ; surfaces un cran plus claires (voir :root). Écran de lancement assorti.
   · Un seul accent, discret ; pas de dégradés criards, pas d'animation de fond.
   · Filets de 0,5 px (1 pixel physique sur écran @2x, 1,5 sur @3x) pour des séparations fines. */

:root {
  color-scheme: dark;
  --bg: #121212;
  --s1: #181818;               /* surface 1 : panneaux */
  --s2: #242424;               /* surface 2 : champs, feuilles, boutons secondaires */
  --s3: #2f2f2f;               /* surface 3 : éléments actifs */
  --line: rgba(255, 255, 255, .07);
  --line2: rgba(255, 255, 255, .14);
  --t1: #ffffff;
  --t2: #b3b3b3;
  --t3: #7a7a7a;
  --accent: #ffffff;                /* accent = blanc (là où Spotify met du vert) */
  --danger: #f08a8a;
  --hair: .5px;

  --g: 20px;                   /* gouttière */
  --gap: 12px;
  --r-s: 8px; --r-m: 12px; --r-l: 16px; --r-xl: 24px;

  --sab: env(safe-area-inset-bottom, 0px);
  --sabt: env(safe-area-inset-bottom, 0px);   /* place sous la barre d'onglets : plus d'énorme bande noire */
  --sat: env(safe-area-inset-top, 0px);
  --sal: env(safe-area-inset-left, 0px);
  --sar: env(safe-area-inset-right, 0px);
  --tab-h: 64px;
  --tab-bot: max(10px, calc(var(--sab) - 12px));   /* la barre flotte au-dessus du bord de l'écran */
  --mini-h: 56px;
  --side-w: 248px;
  --card-w: min(176px, calc((100vw - 2 * var(--g) - var(--gap)) / 2.35));   /* 144 pt sur iPhone 390 : 2 cartes + un aperçu */

  --ease: cubic-bezier(.2, .8, .2, 1);
  --font: "Outfit", -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", "Helvetica Neue", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html { background: #121212; }
html, body { margin: 0; height: 100%; height: var(--app-h, 100%); background: var(--bg); color: var(--t1); font-family: var(--font); -webkit-font-smoothing: antialiased; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; overscroll-behavior: none; }
body { position: fixed; inset: 0; height: var(--app-h, 100%); transform: translateZ(0); overflow: hidden; -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; font-size: 17px; line-height: 22px; letter-spacing: -.024em; touch-action: manipulation; }
input, textarea { -webkit-user-select: text; user-select: text; }
button { font: inherit; letter-spacing: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; touch-action: manipulation; }
a { color: inherit; text-decoration: none; }
img { display: block; -webkit-user-drag: none; }
[hidden] { display: none !important; }
:focus { outline: none; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 6px; }
::selection { background: rgba(255, 255, 255, .3); }
svg.i { width: 1em; height: 1em; flex: none; stroke-width: 1.7; }
svg.i.f { stroke-width: 1.2; }

/* ───────── Structure ───────── */
#app { position: fixed; inset: 0; height: var(--app-h, 100%); }
.shell { position: absolute; inset: 0; display: flex; }
.main { position: absolute; inset: 0; overflow-y: auto; overflow-x: hidden; -webkit-overflow-scrolling: touch; padding: 0 calc(var(--g) + var(--sar)) calc(var(--tab-bot) + var(--tab-h) + var(--mini-h) + 40px) calc(var(--g) + var(--sal)); scrollbar-width: none; }
.main::-webkit-scrollbar { display: none; }
.page { max-width: 1040px; margin: 0 auto; padding-top: calc(var(--sat) + 8px); }
@keyframes pageIn { from { opacity: 0; transform: translateY(6px); } }
.gap16 { height: 16px; }

/* ───────── Barre d'onglets (iPhone) ───────── */
.sidebar { display: none; }
.tabbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
  height: calc(var(--tab-h) + var(--sab));
  padding: 0 var(--sar) var(--sab) var(--sal);
  display: flex;
  background: #121212;
  border-top: var(--hair) solid var(--line2);
}
.tab { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; color: var(--t3); font-size: 10px; line-height: 12px; font-weight: 500; letter-spacing: .01em; transition: color .2s; }
.tab .i { font-size: 25px; }
.tab:active { opacity: .6; }
.tab.active { color: var(--accent); }
.tab.active .i { fill: currentColor; fill-opacity: .18; }

/* ───────── Titres & texte ───────── */
.head { display: flex; align-items: center; justify-content: space-between; min-height: 52px; }
h1.title { font-size: 34px; line-height: 41px; font-weight: 700; letter-spacing: .012em; margin: 0; }
h2.sec { font-size: 22px; line-height: 28px; font-weight: 700; letter-spacing: .016em; margin: 32px 0 12px; display: flex; align-items: baseline; justify-content: space-between; }
h2.sec a, h2.sec button { color: var(--accent); font-size: 15px; line-height: 20px; font-weight: 500; letter-spacing: -.016em; }
.sub { color: var(--t2); font-size: 15px; line-height: 20px; letter-spacing: -.016em; }
.sub.desc { text-align: center; margin: 12px 0 0; }
.back { display: inline-flex; align-items: center; gap: 2px; height: 44px; margin-left: -6px; padding-right: 12px; color: var(--accent); font-size: 17px; }
.back .i { font-size: 24px; }
.back:active { opacity: .6; }
.avatar-btn, .avatar { overflow: hidden; width: 32px; height: 32px; border-radius: 50%; background: var(--s3); border: var(--hair) solid var(--line2); font-weight: 600; font-size: 15px; display: grid; place-items: center; flex: none; }
.avatar.sm { width: 28px; height: 28px; font-size: 13px; }

/* ───────── Recherche ───────── */
.searchbar { display: flex; align-items: center; gap: 8px; height: 36px; border-radius: 10px; padding: 0 8px; background: rgba(118, 118, 128, .24); color: var(--t2); margin: 8px 0 0; }
.searchbar .i { font-size: 18px; flex: none; }
.searchbar input { flex: 1; min-width: 0; height: 100%; background: none; border: 0; outline: 0; color: var(--t1); font: inherit; font-size: 17px; letter-spacing: -.024em; -webkit-appearance: none; appearance: none; }   /* 17 px : iOS ne zoome pas */
.searchbar input::placeholder { color: var(--t2); }
.searchbar input::-webkit-search-cancel-button, .searchbar input::-webkit-search-decoration { -webkit-appearance: none; }
.searchbar .clear { display: none; color: var(--t2); font-size: 17px; width: 28px; height: 28px; margin-right: -4px; place-items: center; }
.searchbar.has .clear { display: grid; }
.sticky-search { position: sticky; top: 0; z-index: 5; margin: calc(-1 * (var(--sat) + 8px)) calc(-1 * var(--g)) 0; padding: calc(var(--sat) + 8px) var(--g) 12px; background: #121212; }
.sticky-search h1.title { min-height: 52px; display: flex; align-items: center; }   /* même position que « Accueil » (.head = 52 px) */
.sticky-search .searchbar { margin-top: 10px; }
@media (max-width: 899px) { .sticky-search { padding-bottom: 4px; } #sres h2.sec:first-child { margin-top: 20px; } }

/* ───────── Rangées horizontales & cartes ───────── */
.hscroll { display: flex; align-items: flex-start; gap: var(--gap); overflow-x: auto; margin: 0 calc(-1 * var(--g)); padding: 0 var(--g); scroll-padding: 0 var(--g); scroll-snap-type: x proximity; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.hscroll::-webkit-scrollbar { display: none; }
.card { flex: none; width: var(--card-w); scroll-snap-align: start; text-align: left; display: block; min-width: 0; }
.card .art { position: relative; width: 100%; aspect-ratio: 1; border-radius: var(--r-m); overflow: hidden; background: var(--s2); transition: transform .18s var(--ease); }
.card .art::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 var(--hair) rgba(255, 255, 255, .12); pointer-events: none; }
.card.round .art { border-radius: 50%; }
.card .art img { width: 100%; height: 100%; object-fit: cover; }
.card .ct { margin-top: 8px; font-size: 15px; line-height: 20px; font-weight: 500; letter-spacing: -.016em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card .cs { font-size: 13px; line-height: 18px; color: var(--t2); letter-spacing: -.006em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card.round .ct, .card.round .cs { text-align: center; }
.card:active .art { transform: scale(.97); }
.card.new .art { display: grid; place-items: center; background: transparent; color: var(--t2); font-size: 32px; border: 1px dashed var(--line2); }
.card.new .art::after { display: none; }
.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px var(--gap); }
.grid .card { width: auto; }
@media (min-width: 600px) { .grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); } .card { width: 168px; } }

.mosaic { display: grid; grid-template-columns: 1fr 1fr; width: 100%; height: 100%; background: var(--s2); }
.mosaic img { width: 100%; height: 100%; object-fit: cover; }
.mosaic.one { grid-template-columns: 1fr; }
.art .ph, .big .ph { position: absolute; inset: 0; display: grid; place-items: center; color: var(--t3); font-size: 36px; }

/* ───────── Lignes de titres ───────── */
.tracks { display: flex; flex-direction: column; }
.tr { display: flex; align-items: center; gap: 12px; min-height: 64px; margin: 0 -8px; padding: 8px 8px; border-radius: 10px; position: relative; cursor: pointer; transition: background .12s; }
.tr::after { content: ""; position: absolute; left: 68px; right: 8px; bottom: 0; height: var(--hair); background: var(--line); }
.tr:last-child::after { display: none; }
.tr:active { background: rgba(255, 255, 255, .07); }
@media (hover: hover) { .tr:hover { background: rgba(255, 255, 255, .05); } }
.tr .tn { width: 24px; text-align: center; color: var(--t2); font-variant-numeric: tabular-nums; font-size: 15px; flex: none; }
.tr:has(.tn)::after { left: 44px; }
.tr .cv { position: relative; width: 48px; height: 48px; border-radius: var(--r-s); overflow: hidden; background: var(--s2); flex: none; }
.tr .cv::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 var(--hair) rgba(255, 255, 255, .12); pointer-events: none; }
.tr .cv img { width: 100%; height: 100%; object-fit: cover; }
.tr .cv .eq { position: absolute; inset: 0; background: rgba(0, 0, 0, .55); display: none; align-items: flex-end; justify-content: center; gap: 3px; padding-bottom: 14px; }
.tr .cv .eq i { width: 3px; background: var(--accent); border-radius: 2px; height: 6px; animation: eq .9s ease-in-out infinite; }
.tr .cv .eq i:nth-child(2) { animation-delay: .25s; }
.tr .cv .eq i:nth-child(3) { animation-delay: .5s; }
@keyframes eq { 50% { height: 18px; } }
.tr.now .cv .eq { display: flex; }
.tr.now.paused .cv .eq i { animation-play-state: paused; }
.tr.now .tt { color: var(--accent); }
.tr .meta { flex: 1; min-width: 0; }
.tr .tt { font-size: 17px; line-height: 22px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tr .ta { font-size: 15px; line-height: 20px; letter-spacing: -.016em; color: var(--t2); display: flex; align-items: center; gap: 6px; min-width: 0; }
.tr .ta .tx { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.tr .dur { color: var(--t2); font-size: 15px; font-variant-numeric: tabular-nums; flex: none; }
.tr .more { width: 44px; height: 44px; display: grid; place-items: center; color: var(--t2); font-size: 22px; border-radius: 50%; flex: none; margin-right: -10px; }
.tr .more:active { background: rgba(255, 255, 255, .1); }
.badge { font-size: 10px; line-height: 14px; font-weight: 700; letter-spacing: .02em; padding: 0 4px; border-radius: 4px; background: rgba(255, 255, 255, .12); color: var(--t2); flex: none; text-transform: uppercase; }
.badge.full { color: var(--accent); background: rgba(255, 255, 255, .14); }
@media (max-width: 599px) { .tr .dur { display: none; } }

/* ───────── En-têtes (album / artiste / playlist) : tous utilisent la mise en page compacte .pl-hero ───────── */
.hero { display: flex; flex-direction: column; align-items: center; text-align: center; padding-top: 4px; }
.hero .big { position: relative; width: min(calc(100vw - 112px), 280px); aspect-ratio: 1; border-radius: var(--r-m); overflow: hidden; background: var(--s2); box-shadow: 0 16px 40px rgba(0, 0, 0, .5); margin-bottom: 20px; }
.hero .big::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 var(--hair) rgba(255, 255, 255, .12); pointer-events: none; }
.hero .big.round { border-radius: 50%; }
.hero .big img { width: 100%; height: 100%; object-fit: cover; }
.hero .txt { width: 100%; }
.hero h1 { font-size: 24px; line-height: 30px; font-weight: 700; letter-spacing: .01em; margin: 0; }
.hero .by { display: block; color: var(--accent); font-size: 17px; line-height: 22px; font-weight: 500; margin-top: 2px; }
.hero .info { color: var(--t2); font-size: 13px; line-height: 18px; letter-spacing: -.006em; margin-top: 4px; }
.actions { display: flex; gap: var(--gap); width: 100%; max-width: 420px; margin: 20px auto 0; }
.actions.flush { margin-left: 0; margin-top: 16px; }
.btn { flex: 1; height: 48px; border-radius: var(--r-m); background: var(--s2); color: var(--t1); font-weight: 600; font-size: 15px; display: flex; align-items: center; justify-content: center; gap: 8px; transition: transform .12s var(--ease), opacity .12s; }
.btn:active { transform: scale(.97); opacity: .8; }
.btn .i { font-size: 17px; }
.btn.primary { background: #fff; color: #000; }
.btn.round { flex: none; width: 48px; font-size: 22px; }
.btn:disabled { opacity: .5; }
/* Page playlist : pochette compacte à gauche, infos à droite, boutons dessous (téléphone) ou à droite (grand écran) */
.pl-hero { display: grid; grid-template-columns: auto minmax(0, 1fr); grid-template-areas: "cover info" "act act"; column-gap: 16px; row-gap: 16px; align-items: center; text-align: left; padding-top: 4px; }
.pl-hero .big { grid-area: cover; width: clamp(104px, 30vw, 132px); margin: 0; border-radius: 12px; box-shadow: 0 10px 28px rgba(0, 0, 0, .45); }
.pl-hero .txt { grid-area: info; min-width: 0; width: auto; }
.pl-hero .kind { display: block; color: var(--t3); font-size: 11px; line-height: 14px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 4px; }
.pl-hero h1 { font-size: 22px; line-height: 27px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; }
.pl-hero .info { color: var(--accent); font-size: 14px; line-height: 18px; font-weight: 500; margin-top: 4px; }
.pl-hero .by { font-size: 15px; line-height: 20px; margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pl-hero .big.round { border-radius: 50%; }
.pl-hero .stats { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; color: var(--t2); font-size: 13px; line-height: 18px; margin-top: 6px; }
.pl-hero .stats i { width: 3px; height: 3px; border-radius: 50%; background: var(--t3); }
.pl-hero .actions { grid-area: act; margin: 0; max-width: none; }
@media (min-width: 700px) {
  .hero { flex-direction: row; text-align: left; align-items: flex-end; gap: 28px; }
  .hero .big { width: 232px; margin: 0; flex: none; }
  .hero .txt { flex: 1; padding-bottom: 4px; }
  .hero h1 { font-size: 34px; line-height: 41px; }
  .actions { margin-left: 0; }
  .pl-hero { grid-template-areas: "cover info" "cover act"; grid-template-rows: 1fr auto; column-gap: 28px; row-gap: 14px; align-items: end; }
  .pl-hero .big { width: 200px; border-radius: var(--r-m); }
  .pl-hero .txt { align-self: end; }
  .pl-hero h1 { font-size: 34px; line-height: 41px; -webkit-line-clamp: 2; }
  .pl-hero .by { font-size: 17px; line-height: 22px; }
  .pl-hero .big.round { border-radius: 50%; }
  .pl-hero .actions { align-self: start; max-width: 420px; }
}
.bio { color: var(--t2); font-size: 15px; line-height: 20px; letter-spacing: -.016em; }
.bio p { margin: 0; white-space: pre-line; }
.bio p.clamp { display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.more-link { color: var(--accent); font-size: 15px; line-height: 20px; font-weight: 500; margin-top: 8px; height: 28px; }

/* ───────── États ───────── */
.empty { text-align: center; color: var(--t2); padding: 56px 24px; font-size: 15px; line-height: 20px; }
.empty .i { font-size: 40px; color: var(--t3); margin: 0 auto 12px; display: block; }
.empty b { display: block; color: var(--t1); font-size: 17px; line-height: 22px; font-weight: 600; margin-bottom: 4px; }
.skeleton { background: linear-gradient(90deg, rgba(255, 255, 255, .04), rgba(255, 255, 255, .09), rgba(255, 255, 255, .04)); background-size: 200% 100%; animation: skIn .2s .3s both, shimmer 1.4s infinite; border-radius: var(--r-s); }
@keyframes skIn { from { opacity: 0; } }
@keyframes shimmer { to { background-position: -200% 0; } }
.sk-title { width: 144px; height: 24px; margin: 32px 0 12px; }
.sk-row { height: 56px; margin: 8px 0; }
.sk-cards { display: flex; gap: var(--gap); overflow: hidden; }
.sk-card { width: var(--card-w); height: calc(var(--card-w) + 28px); flex: none; border-radius: var(--r-m); }
.err { color: var(--danger); background: rgba(240, 138, 138, .08); border: var(--hair) solid rgba(240, 138, 138, .3); padding: 12px 16px; border-radius: var(--r-m); margin: 16px 0; font-size: 15px; line-height: 20px; }

header.head + .list-nav { margin-top: 8px; }
.list-nav { border-radius: var(--r-m); overflow: hidden; background: var(--s1); border: var(--hair) solid var(--line); }
.list-nav button, .list-nav a { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 52px; padding: 0 16px; font-size: 17px; text-align: left; position: relative; }
.list-nav button + button::before, .list-nav a + a::before, .list-nav a + button::before { content: ""; position: absolute; left: 52px; right: 0; top: 0; height: var(--hair); background: var(--line); }
.list-nav .i { color: var(--t2); font-size: 22px; }
.list-nav a:active, .list-nav button:active { background: rgba(255, 255, 255, .06); }
.list-nav .chev { margin-left: auto; color: var(--t3); font-size: 16px; display: flex; }
.list-nav .chev.out { color: var(--t2); font-size: 15px; gap: 6px; align-items: center; }

/* Genres / ambiances : tuiles discrètes, teinte propre à chaque nom (saturation basse) */
.genre-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--gap); }
@media (min-width: 600px) { .genre-grid { grid-template-columns: repeat(auto-fill, minmax(168px, 1fr)); } }
.genre { position: relative; height: 92px; border-radius: var(--r-m); overflow: hidden; padding: 12px 16px; display: flex; align-items: flex-end; font-weight: 600; font-size: 17px; line-height: 22px; background: linear-gradient(160deg, hsl(var(--h) 22% 17%), hsl(var(--h) 24% 10%)); border: var(--hair) solid var(--line); transition: transform .15s var(--ease); }
.genre:active { transform: scale(.97); }
.hscroll .genre { flex: none; width: var(--card-w); height: var(--card-w); aspect-ratio: 1; scroll-snap-align: start; align-items: flex-end; }   /* catégories en haut de l'accueil */
#homeCats section > h2.sec { margin-top: 20px; }
.genre .gimg { position: absolute; inset: 0; background-size: cover; background-position: center; opacity: 0; transition: opacity .5s; }
.genre.has-img .gimg { opacity: 1; }
.genre::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(0, 0, 0, .78), rgba(0, 0, 0, .12) 75%); opacity: 0; transition: opacity .5s; pointer-events: none; }
.genre.has-img::after { opacity: 1; }
.genre span { z-index: 1; text-shadow: 0 1px 8px rgba(0, 0, 0, .55); }
.genre span { position: relative; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ───────── Mini lecteur ───────── */
.mini {
  position: absolute; left: calc(8px + var(--sal)); right: calc(8px + var(--sar)); bottom: calc(var(--tab-bot) + var(--tab-h) + 8px); z-index: 31;
  height: var(--mini-h); border-radius: 14px; display: flex; align-items: center; gap: 12px; padding: 0 4px 0 8px; margin: 0 auto; max-width: 560px; cursor: pointer;
  background: #121212; border: var(--hair) solid var(--line2); box-shadow: 0 6px 20px rgba(0, 0, 0, .6);
  transition: transform .35s var(--ease), opacity .25s;
}
.mini.off { transform: translateY(160%); opacity: 0; pointer-events: none; }
.mini:active { background: #282828; }
.mini .mcv { width: 40px; height: 40px; border-radius: 6px; overflow: hidden; background: var(--s3); flex: none; }
.mini .mcv img { width: 100%; height: 100%; object-fit: cover; }
.mini .mm { flex: 1; min-width: 0; }
.mini .mt { font-weight: 500; font-size: 15px; line-height: 20px; letter-spacing: -.016em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mini .ma { font-size: 13px; line-height: 18px; letter-spacing: -.006em; color: var(--t2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mini .mb { width: 44px; height: 44px; display: grid; place-items: center; font-size: 24px; border-radius: 50%; }
.mini .mb:active { background: rgba(255, 255, 255, .1); }
.mini .mprog { position: absolute; left: 14px; right: 14px; bottom: 0; height: 2px; border-radius: 1px; background: rgba(255, 255, 255, .1); overflow: hidden; }
.mini .mprog i { display: block; height: 100%; width: 100%; background: rgba(255, 255, 255, .8); transform: scaleX(0); transform-origin: left; }

/* ───────── Lecteur plein écran ───────── */
.np { position: fixed; inset: 0; height: var(--app-h, 100%); z-index: 60; background: #121212; transform: translateY(100%); visibility: hidden; transition: transform .45s var(--ease), visibility 0s .45s, border-radius .3s; display: flex; flex-direction: column; overflow: hidden; will-change: transform; border-radius: 36px 36px 0 0; }
.np.open { transform: none; visibility: visible; transition: transform .45s var(--ease), border-radius .3s; border-radius: 0; }
.np.drag { transition: none; }
.np-bg { position: absolute; inset: -20%; background-size: cover; background-position: center; filter: blur(64px) saturate(1.25) brightness(.42); transform: scale(1.2); transition: background-image .6s; }
.np-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0, 0, 0, .1), rgba(0, 0, 0, .7) 75%, #121212); }
.np-in { position: relative; z-index: 1; flex: 1; display: flex; flex-direction: column; max-width: 480px; width: 100%; margin: 0 auto; padding: calc(var(--sat) + 8px) 28px calc(var(--sab) + 24px); min-height: 0; }
.np-grab { align-self: center; width: 36px; height: 5px; border-radius: 3px; background: rgba(255, 255, 255, .3); margin: 0 0 16px; flex: none; cursor: pointer; position: relative; }
.np-grab::before { content: ""; position: absolute; inset: -20px -24px; }
.np-stage { overflow: hidden; flex: 1; min-height: 0; display: flex; align-items: center; justify-content: center; position: relative; }
.np-art { position: relative; width: min(100%, 420px, 46dvh); aspect-ratio: 1; border-radius: var(--r-m); overflow: hidden; background: var(--s2); box-shadow: 0 24px 60px rgba(0, 0, 0, .55); transition: transform .5s var(--ease); transform: scale(.88); }
.np.playing .np-art { transform: none; }
.np-art img { width: 100%; height: 100%; object-fit: cover; }
.np-art::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 var(--hair) rgba(255, 255, 255, .14); pointer-events: none; z-index: 3; }
/* Lecteur YouTube : la vidéo 16:9 est rognée au carré central (les pochettes « art track » y sont centrées) */
.np.alt .np-art { position: absolute; left: -9999px; top: 0; width: 240px; }   /* hors écran mais toujours rendu : la lecture YouTube continue */
.panel { display: none; position: absolute; inset: 0; overflow-y: auto; overscroll-behavior: contain; touch-action: pan-y; -webkit-overflow-scrolling: touch; scrollbar-width: none; -webkit-mask-image: linear-gradient(180deg, transparent, #000 6%, #000 92%, transparent); mask-image: linear-gradient(180deg, transparent, #000 6%, #000 92%, transparent); }
.panel::-webkit-scrollbar { display: none; }
.np.lyrics #lyricsPanel, .np.queue #queuePanel { display: block; }
.lyrics-in { padding: 20px 0 46vh; font-size: 32px; line-height: 36px; font-weight: 800; letter-spacing: -.024em; }
.lyrics-in p { margin: 0 0 22px; color: #fff; --bl: 3px; filter: blur(var(--bl)); opacity: .5; transition: filter .5s var(--ease), opacity .5s var(--ease); cursor: pointer; overflow-wrap: anywhere; }
.lyrics-in p .w { color: rgba(255, 255, 255, .55); }
/* Ligne chantée : se remplit en blanc, mot après mot (--f = avancement 0 → 1) */
.lyrics-in p.cur .w { background: linear-gradient(90deg, #fff calc(var(--f, 0) * 130% - 30%), rgba(255, 255, 255, .4) calc(var(--f, 0) * 130%)); -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent; }
.lyrics-in.plain { font-size: 24px; line-height: 31px; }
.lyrics-in.plain p { margin: 0 0 6px; filter: none; opacity: .9; cursor: default; font-weight: 700; }
.lyrics-msg { color: var(--t2); text-align: center; padding-top: 40px; font-size: 17px; font-weight: 500; }

.np-meta { display: flex; align-items: center; gap: 12px; margin-top: 24px; flex: none; }
.np-meta .nm { flex: 1; min-width: 0; }
.np-title { font-size: 22px; line-height: 28px; font-weight: 600; letter-spacing: .01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.np-artist { font-size: 17px; line-height: 22px; color: var(--t2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.round-btn { width: 40px; height: 40px; border-radius: 50%; background: rgba(255, 255, 255, .12); display: grid; place-items: center; font-size: 20px; flex: none; }
.round-btn:active { background: rgba(255, 255, 255, .2); }
.round-btn.on { color: var(--accent); }
.np-prog { margin-top: 20px; flex: none; }
.np-times { display: flex; justify-content: space-between; font-size: 12px; line-height: 16px; letter-spacing: 0; color: var(--t2); font-variant-numeric: tabular-nums; margin-top: 4px; }

input[type=range] { -webkit-appearance: none; appearance: none; width: 100%; height: 28px; background: transparent; margin: 0; --p: 0%; touch-action: none; display: block; }
input[type=range]::-webkit-slider-runnable-track { height: 4px; border-radius: 2px; background: linear-gradient(90deg, rgba(255, 255, 255, .9) var(--p), rgba(255, 255, 255, .22) var(--p)); transition: height .15s; }
input[type=range]::-moz-range-track { height: 4px; border-radius: 2px; background: rgba(255, 255, 255, .22); }
input[type=range]::-moz-range-progress { height: 4px; border-radius: 2px; background: rgba(255, 255, 255, .9); }
input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; appearance: none; width: 14px; height: 14px; margin-top: -5px; border-radius: 50%; border: 0; background: #fff; box-shadow: 0 1px 4px rgba(0, 0, 0, .5); opacity: 0; transform: scale(.5); transition: opacity .15s, transform .15s var(--ease); }
input[type=range]::-moz-range-thumb { width: 14px; height: 14px; border: 0; border-radius: 50%; background: #fff; box-shadow: 0 1px 4px rgba(0, 0, 0, .5); opacity: 0; transform: scale(.5); transition: opacity .15s, transform .15s var(--ease); }
input[type=range]:active::-webkit-slider-thumb { opacity: 1; transform: none; }
input[type=range]:active::-moz-range-thumb { opacity: 1; transform: none; }
@media (hover: hover) { input[type=range]:hover::-webkit-slider-thumb { opacity: 1; transform: none; } input[type=range]:hover::-moz-range-thumb { opacity: 1; transform: none; } }
.np-ctrl { display: flex; align-items: center; justify-content: space-between; margin: 12px 0 0; flex: none; }
.np-ctrl button { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; font-size: 32px; transition: transform .12s var(--ease), opacity .2s; }
.np-ctrl button:active { transform: scale(.9); opacity: .7; }
.np-ctrl .play { width: 72px; height: 72px; font-size: 32px; background: #fff; color: #000; }
.np-ctrl .sm { width: 44px; height: 44px; font-size: 22px; color: var(--t3); }
.np-ctrl .sm.on { color: var(--accent); }
.np-bottom { display: flex; align-items: center; justify-content: center; gap: 32px; margin-top: 16px; flex: none; }
.np-bottom button { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; font-size: 22px; color: var(--t3); }
.np-bottom button.on { color: var(--accent); background: none; }   /* actif = icône colorée, pas de carré */
.np-vol { display: flex; align-items: center; gap: 12px; color: var(--t2); font-size: 18px; margin-top: 16px; flex: none; }
.np-vol .i { flex: none; }
.np-vol input::-webkit-slider-thumb { opacity: 1; transform: none; }
.np-vol input::-moz-range-thumb { opacity: 1; transform: none; }
@media (max-width: 899px) { .np.lyrics .np-vol { display: none; } }   /* en mode paroles sur téléphone, on garde la place pour le texte */
@media (max-height: 700px) { .np-vol { margin-top: 8px; } .np-meta { margin-top: 16px; } .np-prog { margin-top: 12px; } .np-ctrl .play { width: 64px; height: 64px; } .np-ctrl button { width: 52px; height: 52px; } .np-bottom { margin-top: 8px; } }

/* File d'attente */
.q-head { font-size: 17px; line-height: 22px; font-weight: 600; padding: 16px 0 8px; display: flex; justify-content: space-between; align-items: center; }
.q-head small { font-size: 13px; color: var(--t2); font-weight: 500; }
.qrow { display: flex; align-items: center; gap: 12px; padding: 8px 0; cursor: pointer; }
.qrow img { width: 44px; height: 44px; border-radius: 6px; object-fit: cover; flex: none; background: var(--s3); }
.qrow .qm { flex: 1; min-width: 0; }
.qrow .qt { font-size: 16px; line-height: 20px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.qrow.cur .qt { color: var(--accent); }
.qrow .qa { font-size: 13px; line-height: 18px; color: var(--t2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.qrow button.rm { width: 44px; height: 44px; margin-right: -10px; display: grid; place-items: center; color: var(--t3); font-size: 18px; border-radius: 50%; }

/* ───────── Feuilles (menus ⋯, modales) ───────── */
.overlay { position: fixed; inset: 0; height: var(--app-h, 100%); z-index: 90; background: rgba(0, 0, 0, .55); display: flex; align-items: flex-end; justify-content: center; animation: fade .2s; }
@keyframes fade { from { opacity: 0; } }
.sheet { width: 100%; max-width: 480px; max-height: 86dvh; overflow-y: auto; border-radius: var(--r-xl) var(--r-xl) 0 0; padding: 8px 16px calc(var(--sab) + 16px); animation: sheetUp .36s var(--ease); background: var(--s2); border-top: var(--hair) solid var(--line2); }
@keyframes sheetUp { from { transform: translateY(100%); } }
.sheet .grab { width: 36px; height: 5px; border-radius: 3px; background: rgba(255, 255, 255, .22); margin: 0 auto 12px; }
@media (min-width: 700px) { .overlay { align-items: center; } .sheet { border-radius: var(--r-xl); max-height: 80vh; border: var(--hair) solid var(--line2); } }
.sheet-head { display: flex; align-items: center; gap: 12px; padding: 4px 0 16px; border-bottom: var(--hair) solid var(--line2); margin-bottom: 8px; }
.sheet-head img { width: 52px; height: 52px; border-radius: var(--r-s); object-fit: cover; background: var(--s3); flex: none; }
.sheet-head b { display: block; font-size: 17px; line-height: 22px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sheet-head span { color: var(--t2); font-size: 15px; line-height: 20px; display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sheet-head .sm { flex: 1; min-width: 0; }
.act { display: flex; align-items: center; gap: 16px; width: 100%; min-height: 52px; padding: 0 8px; margin: 0 -8px; width: calc(100% + 16px); font-size: 17px; text-align: left; border-radius: 10px; }
.act:active { background: rgba(255, 255, 255, .08); }
.act .i { font-size: 22px; color: var(--t2); width: 24px; }
.act.danger, .act.danger .i { color: var(--danger); }
.act small { margin-left: auto; color: var(--t2); font-size: 13px; }
.dialog h3 { margin: 4px 0 8px; font-size: 20px; line-height: 25px; font-weight: 600; letter-spacing: .01em; }
.field { width: 100%; height: 52px; border-radius: var(--r-m); background: var(--s3); border: var(--hair) solid var(--line2); color: var(--t1); font: inherit; font-size: 17px; letter-spacing: -.024em; padding: 0 16px; outline: 0; margin: 8px 0; -webkit-appearance: none; appearance: none; }
.field::placeholder { color: var(--t3); }
.field:focus { border-color: rgba(255, 255, 255, .7); }
.dialog .btns { display: flex; gap: var(--gap); margin-top: 8px; }
.pl-mini { width: 44px; height: 44px; border-radius: 6px; overflow: hidden; background: var(--s3); flex: none; }
.pl-mini .mosaic { grid-template-columns: 1fr 1fr; }
.pl-mini .mosaic.one { grid-template-columns: 1fr; }   /* cover personnalisée (une seule image) : pleine largeur, pas la moitié */

#toasts { position: fixed; top: calc(var(--sat) + 8px); left: 0; right: 0; z-index: 120; display: flex; flex-direction: column; align-items: center; gap: 8px; pointer-events: none; }
.toast { padding: 12px 16px; border-radius: 12px; font-size: 15px; line-height: 20px; font-weight: 500; letter-spacing: -.016em; max-width: calc(100vw - 40px); animation: toastIn .35s var(--ease); display: flex; align-items: center; gap: 8px; background: #26262a; border: var(--hair) solid var(--line2); box-shadow: 0 8px 24px rgba(0, 0, 0, .6); }
.toast span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.toast .i { color: var(--t2); font-size: 18px; }
.toast.out { opacity: 0; transform: translateY(-12px); transition: .3s; }
@keyframes toastIn { from { opacity: 0; transform: translateY(-16px) scale(.96); } }

/* ───────── Connexion : sobre, noir et blanc, sans logo ───────── */
.auth { position: absolute; inset: 0; overflow-y: auto; display: flex; align-items: center; justify-content: center; padding: calc(var(--sat) + 24px) 24px calc(var(--sab) + 24px); background: #121212; }
.auth-card { width: 100%; max-width: 340px; margin: auto; text-align: left; animation: authUp .5s var(--ease) both; }
@keyframes authUp { from { opacity: 0; transform: translateY(8px); } }
.auth h1 { margin: 0 0 28px; font-size: 28px; line-height: 34px; font-weight: 600; letter-spacing: -.02em; color: #fff; }
.auth p.tag { margin: 0 0 28px; color: var(--t2); font-size: 15px; line-height: 20px; min-height: 20px; }

.seg { display: flex; gap: 22px; margin: 0 0 20px; border-bottom: var(--hair) solid rgba(255, 255, 255, .16); }
.seg button { height: 36px; font-weight: 500; font-size: 15px; color: var(--t3); transition: color .2s, box-shadow .2s; margin-bottom: -.5px; }
.seg button.on { color: #fff; box-shadow: inset 0 -1.5px 0 #fff; }

.auth .field { height: 48px; margin: 0; border-radius: 10px; background: #1a1a1a; border: var(--hair) solid rgba(255, 255, 255, .18); padding: 0 14px; font-size: 16px; transition: border-color .15s; }
.auth .field::placeholder { color: rgba(255, 255, 255, .34); }
.auth .field:focus { border-color: rgba(255, 255, 255, .7); }
.fw { position: relative; margin: 10px 0; }
.fw .field { padding-right: 48px; }
.fw .eye { position: absolute; right: 2px; top: 2px; width: 44px; height: 44px; display: grid; place-items: center; color: var(--t3); font-size: 19px; border-radius: 10px; }
.fw .eye:active { color: #fff; }
.fw.bad .field { border-color: #fff; }

.reg-only { display: grid; grid-template-rows: 0fr; opacity: 0; transition: grid-template-rows .3s var(--ease), opacity .25s; }
.reg-only > div { overflow: hidden; min-height: 0; }
.reg-only.on { grid-template-rows: 1fr; opacity: 1; }
.strength { display: flex; align-items: center; gap: 6px; margin: 4px 0 0; height: 18px; }
.strength i { flex: 1; height: 3px; border-radius: 2px; background: rgba(255, 255, 255, .14); transition: background .2s; }
.strength span { flex: none; min-width: 64px; text-align: right; font-size: 12px; color: var(--t3); letter-spacing: 0; }
.strength[data-n="1"] i:nth-child(-n+1), .strength[data-n="2"] i:nth-child(-n+2), .strength[data-n="3"] i:nth-child(-n+3), .strength[data-n="4"] i:nth-child(-n+4) { background: rgba(255, 255, 255, .85); }

.auth .caps { color: var(--t2); font-size: 13px; line-height: 18px; margin: 2px 0 4px; }
.auth .msg { color: #fff; font-size: 14px; line-height: 20px; padding: 0; max-height: 0; opacity: 0; overflow: hidden; transition: max-height .25s var(--ease), opacity .2s, margin .25s; }
.auth .msg:not(:empty) { max-height: 44px; opacity: .9; margin-top: 8px; }
.auth .btn { width: 100%; flex: none; margin-top: 16px; height: 48px; border-radius: 10px; font-size: 15px; font-weight: 600; position: relative; background: #fff; color: #000; box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; }
.auth .btn::before { display: none; }
.auth .btn:active { transform: none; opacity: .8; }
.auth .btn .spin { display: none; width: 18px; height: 18px; border-radius: 50%; border: 2px solid rgba(0, 0, 0, .2); border-top-color: #000; animation: authSpin .7s linear infinite; }
.auth .btn.loading .lbl { display: none; }
.auth .btn.loading .spin { display: block; }
.auth .btn:disabled { opacity: .8; }
@keyframes authSpin { to { transform: rotate(360deg); } }
.auth .hint { color: var(--t3); font-size: 13px; line-height: 18px; margin: 14px 0 0; }
.auth .hint:empty { display: none; }
#af.shake { animation: authShake .38s; }
@keyframes authShake { 15% { transform: translateX(-6px); } 35% { transform: translateX(5px); } 55% { transform: translateX(-3px); } 75% { transform: translateX(2px); } }
@media (prefers-reduced-motion: reduce) { .auth-card, #af.shake { animation: none; } }

/* ───────── Grand écran (iPad / ordinateur) : barre latérale plate ───────── */
@media (min-width: 900px) {
  .tabbar { display: none; }
  .main { left: var(--side-w); padding: 0 40px 140px; }
  .page { padding-top: 28px; }
  .sticky-search { margin-top: -28px; padding-top: 28px; }
  .sidebar { display: flex; flex-direction: column; position: fixed; top: 0; bottom: 0; left: 0; width: var(--side-w); padding: 20px 12px 12px; z-index: 30; background: var(--s1); border-right: var(--hair) solid var(--line); }
  .side-brand { display: flex; align-items: center; gap: 12px; padding: 4px 12px 16px; font-weight: 700; font-size: 20px; line-height: 24px; letter-spacing: .01em; }
  .side-brand img { width: 28px; height: auto; }
  .side-search { display: flex; align-items: center; gap: 8px; background: rgba(118, 118, 128, .24); border-radius: 10px; padding: 0 8px; height: 36px; margin: 0 0 12px; color: var(--t2); }
  .side-search span { font-size: 15px; }
  .side-scroll { flex: 1; overflow-y: auto; margin: 0 -4px; padding: 0 4px; scrollbar-width: none; }
  .side-scroll::-webkit-scrollbar { display: none; }
  .side-title { font-size: 12px; line-height: 16px; font-weight: 600; color: var(--t3); text-transform: uppercase; letter-spacing: .06em; padding: 20px 12px 8px; display: flex; justify-content: space-between; align-items: center; }
  .side-title button { color: var(--t2); font-size: 18px; display: grid; place-items: center; width: 24px; height: 24px; border-radius: 6px; }
  .side-title button:hover { background: rgba(255, 255, 255, .08); color: #fff; }
  .nav { display: flex; align-items: center; gap: 12px; width: 100%; height: 36px; padding: 0 12px; border-radius: var(--r-s); font-size: 15px; font-weight: 500; letter-spacing: -.016em; color: var(--t1); text-align: left; transition: background .15s; }
  .nav .i { font-size: 19px; color: var(--t2); }
  .nav:hover { background: rgba(255, 255, 255, .05); }
  .nav.active { background: rgba(255, 255, 255, .09); }
  .nav.active .i { color: var(--accent); }
  .nav .nm { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; flex: 1; }
  .side-foot { margin-top: 8px; padding-top: 12px; border-top: var(--hair) solid var(--line); display: flex; align-items: center; gap: 12px; padding-left: 8px; }
  .side-foot .un { flex: 1; font-weight: 500; font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .side-foot button { color: var(--t2); font-size: 20px; width: 36px; height: 36px; border-radius: 8px; display: grid; place-items: center; }
  .side-foot button:hover { background: rgba(255, 255, 255, .08); color: #fff; }
  .side-me { display: flex; flex-direction: row; align-items: center; gap: 12px; flex: 1; min-width: 0; padding: 6px 8px; margin: 0 -8px; border-radius: var(--r-s); }
  .side-me:hover { background: rgba(255, 255, 255, .07); }
  .side-me .avatar { flex: none; width: 32px; height: 32px; }
  .side-me .un { flex: 1; min-width: 0; text-align: left; }
  .mini { left: calc(var(--side-w) + 16px) !important; right: 16px !important; bottom: 16px !important; max-width: none !important; }
  .only-mobile { display: none !important; }
}

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; } }
@supports not ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
  .tabbar { background: #121212; } .mini { background: #121212; } .sticky-search { background: #121212; } .toast { background: #242428; }
}

/* ───────── Paroles plein écran : en-tête compact (façon Apple Music) ───────── */
.np-lh { display: none; align-items: center; gap: 12px; flex: none; margin-bottom: 4px; }
.np.lyrics .np-lh { display: flex; }
.np.lyrics .np-meta { display: none; }
.np.lyrics .np-grab { margin-bottom: 12px; }
.lh-art { width: 52px; height: 52px; border-radius: 8px; overflow: hidden; flex: none; background: var(--s2); box-shadow: 0 6px 18px rgba(0, 0, 0, .5); }
.lh-art img { width: 100%; height: 100%; object-fit: cover; }
.lh-txt { flex: 1; min-width: 0; }
.lh-t { font-size: 17px; line-height: 21px; font-weight: 600; letter-spacing: -.012em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lh-a { font-size: 16px; line-height: 20px; color: var(--t2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.np.lyrics .np-lh .round-btn { background: rgba(255, 255, 255, .14); }
/* Commandes plus compactes pour laisser la place aux paroles */
.np.lyrics .np-prog { margin-top: 8px; }
.np.lyrics .np-ctrl { margin-top: 4px; }
.np.lyrics .np-ctrl button { width: 48px; height: 48px; font-size: 28px; }
.np.lyrics .np-ctrl .play { width: 60px; height: 60px; }
.np.lyrics .np-ctrl .sm { width: 40px; height: 40px; }
.np.lyrics .np-bottom { margin-top: 6px; }
#lyricsPanel { -webkit-mask-image: linear-gradient(180deg, transparent, #000 12%, #000 90%, transparent); mask-image: linear-gradient(180deg, transparent, #000 12%, #000 90%, transparent); }
/* ═════════════ Surfaces pleines (plus de Liquid Glass) ═════════════ */
:root { --mini-h: 52px; --tab-bot: var(--sab); }   /* barre d'onglets collée en bas : le mini-lecteur se pose juste au-dessus */
.btn, .round-btn, .toast, .dialog { position: relative; }
.btn:not(.flat):active { transform: scale(.97); }
.btn.danger { color: var(--danger); }
.round-btn { background: rgba(255, 255, 255, .12); }
.round-btn:active { background: rgba(255, 255, 255, .2); }

/* ── Barre d'onglets ── */
.tab.active { color: #fff; }
.tab.active .i { fill-opacity: .25; }
.tab-ind { display: none; }



/* ── Popups (import de playlist, nom à saisir, confirmation…) : même langage que l'écran de connexion ──
   noir pur, filets fins, champs sombres, bouton principal blanc, titre aligné à gauche */
.overlay { align-items: center; background: rgba(0, 0, 0, .72); }
.dialog { width: min(360px, calc(100vw - 40px)); max-height: 80dvh; overflow-y: auto; padding: 24px 20px 20px; border-radius: 14px; background: #282828; border: var(--hair) solid rgba(255, 255, 255, .18); box-shadow: 0 24px 64px rgba(0, 0, 0, .7); animation: dialogIn .2s var(--ease); scrollbar-width: none; text-align: left; }
.dialog::-webkit-scrollbar { display: none; }
@keyframes dialogIn { from { opacity: 0; transform: translateY(8px); } }
.dialog h3 { text-align: left; margin: 0 0 6px; font-size: 20px; line-height: 25px; font-weight: 600; letter-spacing: -.02em; color: #fff; }
.dialog .sub { text-align: left; margin: 0 0 16px; font-size: 15px; line-height: 21px; }
.dialog .field { height: 48px; margin: 0; border-radius: 10px; background: #121212; border: 0; box-shadow: none; padding: 0 14px; font-size: 16px; transition: background .15s; }
.dialog .field::placeholder { color: rgba(255, 255, 255, .34); }
.dialog .field:focus { border: 0; box-shadow: none; background: #1a1a1a; }
.dialog .btns { display: flex; gap: 10px; margin-top: 20px; }
.dialog .btn { height: 46px; font-size: 16px; font-weight: 600; border-radius: 10px; background: transparent; color: var(--t1); border: 0; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .22); }
.dialog .btn.primary { background: #fff; color: #000; box-shadow: none; }
.dialog .btn.danger { color: var(--danger); box-shadow: inset 0 0 0 1px rgba(240, 138, 138, .45); }
.dialog .btn:active { transform: none; opacity: .75; }
.dialog .act { margin: 0; width: 100%; padding: 0 10px; min-height: 48px; border-radius: 8px; }
.dlg-prog { height: 4px; border-radius: 2px; background: rgba(255, 255, 255, .14); overflow: hidden; margin: 16px 0 0; }
.dlg-prog i { display: block; height: 100%; background: #fff; border-radius: 2px; transition: width .3s var(--ease); }
.dlg-stat { display: flex; justify-content: space-between; gap: 12px; margin-top: 8px; font-size: 13px; line-height: 18px; color: var(--t2); font-variant-numeric: tabular-nums; }
.dlg-warn { margin: 16px 0 0; padding: 12px 14px; border-radius: 10px; border: var(--hair) solid rgba(255, 255, 255, .3); font-size: 14px; line-height: 20px; color: var(--t1); }
.dlg-warn b { font-weight: 600; }
.dlg-fine { margin: 12px 0 0; font-size: 13px; line-height: 18px; color: var(--t3); }

/* ── Ordinateur : barre latérale pleine ── */
@media (min-width: 900px) {
  .tabbar { display: none; }
  .mini { left: calc(var(--side-w) + 8px) !important; }
}
.avatar img, .avatar-btn img, .acct-av img { width: 100%; height: 100%; object-fit: cover; }

/* ── Page compte ── */
.acct { max-width: 480px; margin: 0 auto; text-align: center; }
.acct-av { position: relative; width: 128px; height: 128px; margin: 12px auto 20px; border-radius: 50%; overflow: hidden; background: var(--s3); display: grid; place-items: center; font-size: 52px; line-height: 1; font-weight: 600; box-shadow: inset 0 0 0 var(--hair) var(--line2), 0 16px 40px rgba(0, 0, 0, .5); }
.acct-av.busy::after { content: ""; position: absolute; inset: 0; background: rgba(0, 0, 0, .5); }
.acct-name { font-size: 24px; line-height: 30px; font-weight: 700; margin: 0; }
.acct-user { color: var(--t2); font-size: 15px; line-height: 20px; margin-top: 2px; }
.acct-actions { display: flex; gap: 12px; justify-content: center; margin-top: 20px; }
.acct-actions .btn { flex: none; height: 44px; padding: 0 20px; font-size: 15px; border-radius: 22px; }
.acct-form { margin-top: 36px; text-align: left; }
.acct-form label { display: block; font-size: 13px; line-height: 18px; color: var(--t2); margin: 0 4px 6px; letter-spacing: .02em; }
.acct-form .field { margin: 0 0 8px; }
.acct-form .count { text-align: right; font-size: 12px; color: var(--t3); margin: 0 4px 12px; }
.acct-form .btn { width: 100%; flex: none; height: 48px; border-radius: 24px; margin-top: 4px; }
.acct-out { margin-top: 28px; }
.acct-out .btn { width: 100%; flex: none; height: 48px; border-radius: 24px; }


/* ── Lecteur plein écran : pochette en fond, flou à mort (façon Apple Music) ── */
.np-bg { display: block; position: absolute; inset: -30%; background-size: cover; background-position: center; background-repeat: no-repeat;
  filter: blur(90px) saturate(1.7) brightness(.62); transform: scale(1.25); transition: background-image .6s; pointer-events: none; will-change: transform; }
.np-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0, 0, 0, .12), rgba(0, 0, 0, .32) 60%, rgba(0, 0, 0, .5)); }
.np-art { box-shadow: none; }   /* pas de lueur / ombre grise autour de la pochette */

/* ── Paroles / file d'attente : transitions douces ── */
.panel { display: block; opacity: 0; visibility: hidden; pointer-events: none; transform: translateY(28px) scale(.97); filter: blur(10px);
  transition: opacity .35s var(--ease), transform .5s var(--ease), filter .4s var(--ease), visibility 0s .5s; }
.np.lyrics #lyricsPanel, .np.queue #queuePanel { opacity: 1; visibility: visible; pointer-events: auto; transform: none; filter: none;
  transition: opacity .4s var(--ease) .08s, transform .55s var(--ease) .08s, filter .45s var(--ease) .08s, visibility 0s; }
.np-art { transition: transform .5s var(--ease), opacity .3s var(--ease); }
.np.alt .np-art { position: relative; left: auto; top: auto; width: min(100%, 420px, 46dvh); opacity: 0; transform: scale(.78); pointer-events: none; }
@keyframes npFadeUp { from { opacity: 0; transform: translateY(10px); } }
.np.lyrics .np-lh { animation: npFadeUp .45s var(--ease) .05s both; }
.np:not(.lyrics) .np-meta { animation: npFadeUp .4s var(--ease) both; }
.qenter .qrow { animation: npFadeUp .45s var(--ease) both; }
.qenter .qrow:nth-child(n+2) { animation-delay: .04s; }
.qenter .qrow:nth-child(n+4) { animation-delay: .08s; }
.qenter .qrow:nth-child(n+7) { animation-delay: .12s; }
.np-bottom button { transition: background .25s, color .25s, transform .3s cubic-bezier(.3, 1.5, .5, 1); }
.np-bottom button:active { transform: scale(.88); }

.acct-dbg { display: block; text-align: center; margin: 20px 0 8px; color: var(--t3); font-size: 13px; line-height: 18px; }

/* ── Ordinateur + paroles : pochette / titre / commandes à gauche, paroles à droite ── */
@media (min-width: 900px) {
  .np.lyrics .np-in { max-width: 1120px; padding-left: 48px; padding-right: 48px;
    display: grid; grid-template-columns: minmax(320px, 420px) minmax(0, 1fr); column-gap: 72px;
    grid-template-rows: auto minmax(0, 1fr) auto auto auto auto auto minmax(0, 1fr); align-content: stretch; }
  .np.lyrics .np-grab { grid-column: 1 / -1; grid-row: 1; justify-self: center; }
  .np.lyrics .np-lh { display: none; }
  .np.lyrics .np-stage { display: contents; }
  .np.lyrics .np-art, .np.alt.lyrics .np-art { grid-column: 1; grid-row: 3; position: relative; left: auto; top: auto; width: 100%; opacity: 1; transform: none; pointer-events: auto; }
  .np.lyrics .np-meta { display: flex; grid-column: 1; grid-row: 4; margin-top: 24px; }
  .np.lyrics .np-prog { grid-column: 1; grid-row: 5; margin-top: 20px; }
  .np.lyrics .np-ctrl { grid-column: 1; grid-row: 6; margin-top: 12px; }
  .np.lyrics .np-ctrl button { width: 56px; height: 56px; font-size: 32px; }
  .np.lyrics .np-ctrl .play { width: 72px; height: 72px; }
  .np.lyrics .np-ctrl .sm { width: 44px; height: 44px; font-size: 22px; }
  .np.lyrics .np-vol { grid-column: 1; grid-row: 7; }
  .np.lyrics .np-bottom { grid-column: 1; grid-row: 8; align-self: start; margin-top: 16px; }
  .np.lyrics #lyricsPanel { grid-column: 2; grid-row: 2 / 9; position: relative; inset: auto; min-height: 0; }
  .np.lyrics .lyrics-in { font-size: 40px; line-height: 46px; padding: 12vh 0 40vh; }
  .np.lyrics .lyrics-in.plain { font-size: 26px; line-height: 34px; }
}

/* ───────── Changement de titre : zones qui font glisser l'ancien contenu (voir slideSwap dans app.js) ───────── */
.mini .mcv, .mini .mm, .lh-art, .lh-txt, .np-meta .nm { position: relative; overflow: hidden; }
.slide-ghost { will-change: translate, opacity; }
/* ───────── Playlist téléchargée sur le serveur ───────── */
.btn.round.on { color: var(--accent); }   /* téléchargée = icône colorée */
.dl-note { display: flex; align-items: center; gap: 6px; margin-top: 8px; font-size: 13px; line-height: 18px; color: var(--t2); font-variant-numeric: tabular-nums; }
.dl-note .i { font-size: 15px; flex: none; }
.dl-note:empty { display: none; }
.tr .ta .dl-ico { display: inline-flex; flex: none; font-size: 14px; color: var(--t2); }


/* ═══════════════════════════════════════════════════════════════════════
   Refonte « façon Spotify » — fond noir, surfaces grises, accent BLANC (à la place du vert)
   ═══════════════════════════════════════════════════════════════════════ */
h1.title { font-size: 28px; line-height: 34px; font-weight: 800; letter-spacing: -.02em; }
h2.sec { font-size: 22px; line-height: 28px; font-weight: 800; letter-spacing: -.02em; margin: 28px 0 12px; align-items: center; }
h2.sec a, h2.sec button { color: var(--t2); font-size: 13px; line-height: 18px; font-weight: 700; letter-spacing: 0; }
h2.sec a:active { color: #fff; }
.back { font-weight: 600; }

/* Recherche : barre blanche pleine, texte noir */
.searchbar { height: 44px; border-radius: 8px; padding: 0 12px; gap: 10px; background: #fff; color: #000; }
.searchbar .i { font-size: 22px; color: #000; }
.searchbar input { color: #000; font-weight: 500; font-size: 16px; }
.searchbar input::placeholder { color: rgba(0, 0, 0, .6); }
.searchbar .clear { color: #000; }

/* Barre d'onglets : dégradé vers le noir, sans trait, icône active blanche */
.tabbar { background: linear-gradient(180deg, rgba(18, 18, 18, 0) 0, rgba(18, 18, 18, .94) 34%, #121212 72%); border-top: 0; }
.tab { color: var(--t2); font-weight: 600; font-size: 10px; letter-spacing: 0; padding-top: 6px; }
.tab.active { color: #fff; }
.tab.active .i { stroke-width: 2.2; fill-opacity: .25; }

/* Cartes */
.card .art { border-radius: 6px; box-shadow: 0 6px 18px rgba(0, 0, 0, .35); }
.card .art::after { display: none; }
.card.round .art { border-radius: 50%; }
.card .ct { margin-top: 10px; font-size: 14px; line-height: 19px; font-weight: 700; letter-spacing: -.01em; }
.card .cs { margin-top: 1px; font-size: 13px; line-height: 17px; color: var(--t2); white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; letter-spacing: 0; }
.card.new .art { background: var(--s2); border: 0; color: #fff; box-shadow: none; }
.hscroll { gap: 14px; }

/* Accueil : tuiles rapides (playlists) */
.qtiles { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 16px 0 4px; }
.qtile { display: flex; align-items: center; gap: 10px; height: 56px; border-radius: 6px; background: #2a2a2a; overflow: hidden; min-width: 0; transition: background .15s, transform .12s var(--ease); }
.qtile:active { background: #3a3a3a; transform: scale(.98); }
@media (hover: hover) { .qtile:hover { background: #3a3a3a; } }
.qimg { position: relative; display: block; width: 56px; height: 56px; flex: none; overflow: hidden; background: var(--s3); }
.qimg > * { width: 100%; height: 100%; }
.qimg img { object-fit: cover; }
.qn { flex: 1; min-width: 0; padding-right: 8px; font-size: 13px; line-height: 17px; font-weight: 700; letter-spacing: -.005em; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
@media (min-width: 900px) { .qtiles { grid-template-columns: repeat(3, 1fr); } .qtile { height: 64px; } .qimg { width: 64px; height: 64px; } .qn { font-size: 15px; line-height: 20px; } }

/* Lignes de titres : sans filets, titre blanc / artiste gris, titre en cours en gras blanc */
.tr { min-height: 60px; border-radius: 6px; padding: 6px 8px; }
.tr::after { display: none; }
.tr:active { background: rgba(255, 255, 255, .1); }
@media (hover: hover) { .tr:hover { background: rgba(255, 255, 255, .08); } }
.tr .cv { border-radius: 4px; width: 48px; height: 48px; }
.tr .cv::after { display: none; }
.tr .tt { font-size: 16px; font-weight: 500; letter-spacing: -.012em; }
.tr .ta { font-size: 14px; letter-spacing: 0; }
.tr.now .tt { color: #fff; font-weight: 800; }
.tr .cv .eq i { background: #fff; }
.tr .more { color: var(--t2); }
.badge { border-radius: 2px; background: rgba(255, 255, 255, .22); color: #000; }
.badge.full { color: #fff; background: rgba(255, 255, 255, .16); }

/* Boutons : pilules ; lecture = gros rond blanc */
.btn { border-radius: 999px; }
.btn.primary { background: #fff; color: #000; }
.actions.sp { display: flex; align-items: center; gap: 4px; width: 100%; max-width: none; margin: 0; }
.actions.sp.flush { margin: 16px 0 8px; }
.sp-l { flex: 1; display: flex; align-items: center; gap: 0; min-width: 0; }
.sp .btn.round { width: 44px; height: 44px; flex: none; background: none; color: var(--t2); font-size: 26px; border-radius: 50%; }
.sp .btn.round:active { color: #fff; background: none; opacity: 1; }
.sp-shuf, .sp .btn.round { display: grid; place-items: center; padding: 0; line-height: 0; }
.sp-shuf .i, .sp .btn.round .i { display: block; }   /* évite le décalage vertical dû à la ligne de texte (baseline) */
.sp .btn.round .i { font-size: 26px; }   /* même taille que l’icône aléatoire (sinon .btn .i la ramène à 17px) */
.sp-shuf { width: 44px; height: 44px; display: grid; place-items: center; font-size: 24px; color: var(--t2); border-radius: 50%; flex: none; }
.sp-shuf:active { color: #fff; }
.sp-play { width: 56px; height: 56px; border-radius: 50%; background: #fff; color: #000; display: grid; place-items: center; font-size: 26px; flex: none; box-shadow: 0 8px 20px rgba(0, 0, 0, .35); transition: transform .12s var(--ease); }
.sp-play:active { transform: scale(.93); }
.sp-play .i { margin-left: 2px; }

/* En-tête de playlist / album / artiste : dégradé gris en haut, grande pochette centrée sur téléphone */
.main:has(.pl-hero):not(:has(.hero-bg)) { background: linear-gradient(180deg, #3b3b3b 0, rgba(18, 18, 18, 0) 380px) no-repeat local, var(--bg); }
.main:has(.hero-bg) { isolation: isolate; }
.pl-hero h1 { font-weight: 800; letter-spacing: -.02em; }
.pl-hero .info { color: #fff; font-weight: 700; }
.pl-hero .stats { color: var(--t2); }
.pl-hero .big { border-radius: 6px; box-shadow: 0 8px 40px rgba(0, 0, 0, .5); }
.pl-hero .big.round { border-radius: 50%; }
@media (max-width: 699px) {   /* téléphone : pochette à gauche, titre + boutons lecture / aléatoire juste à côté */
  .pl-hero { grid-template-columns: auto minmax(0, 1fr); grid-template-areas: "cover info" "cover act"; grid-template-rows: 1fr auto; column-gap: 16px; row-gap: 6px; align-items: end; padding-top: 4px; }
  .pl-hero .big { width: clamp(112px, 32vw, 140px); align-self: start; margin: 0; }
  .pl-hero .txt { align-self: start; }
  .pl-hero .kind { display: none; }
  .pl-hero h1 { font-size: 22px; line-height: 27px; -webkit-line-clamp: 3; }
  .pl-hero .actions.sp { align-self: end; }
}
@media (min-width: 700px) { .pl-hero h1 { font-size: 48px; line-height: 54px; } .pl-hero .kind { color: #fff; font-size: 12px; font-weight: 700; letter-spacing: 0; text-transform: none; } .pl-hero .big { width: 220px; } }

/* Catégories / genres : tuiles colorées, titre en haut à gauche */
.genre { height: 100px; border-radius: 8px; border: 0; align-items: flex-start; padding: 14px; font-size: 18px; line-height: 22px; font-weight: 800; letter-spacing: -.02em; background: linear-gradient(135deg, hsl(var(--h) 50% 36%), hsl(var(--h) 55% 24%)); }
.genre span { white-space: normal; text-shadow: none; }


/* Lecteur plein écran */
.np-title { font-weight: 800; letter-spacing: -.02em; }
.np-art { border-radius: 8px; }
.np-ctrl .play { background: #fff; color: #000; }

/* Fenêtres & menus */
.dialog { border-radius: 12px; border: 0; }
.dialog .field { border-radius: 6px; background: #3a3a3a; }
.dialog .field:focus { background: #444; }
.dialog .btn { border-radius: 999px; font-weight: 700; }
.dialog .btn.primary { background: #fff; color: #000; }

/* Grand écran : deux panneaux arrondis sur fond noir, comme l'appli de bureau */
@media (min-width: 900px) {
  html, body { background: #000; }
  .sidebar { top: 8px; bottom: 8px; left: 8px; width: calc(var(--side-w) - 8px); border-radius: 8px; background: #121212; border: 0; }
  .main { left: calc(var(--side-w) + 8px); right: 8px; top: 8px; bottom: 8px; border-radius: 8px; background-color: var(--bg); padding: 0 32px 140px; }
  .sticky-search { background: #121212; }
  .mini { left: calc(var(--side-w) + 24px) !important; right: 24px !important; bottom: 24px !important; }
  .nav { height: 40px; font-weight: 700; color: var(--t2); }
  .nav .i { color: var(--t2); }
  .nav:hover { background: none; color: #fff; }
  .nav:hover .i { color: #fff; }
  .nav.active { background: none; color: #fff; }
  .nav.active .i { color: #fff; }
  .side-search { background: #242424; border-radius: 999px; }
  .searchbar { max-width: 480px; }
}

/* Compte : nom + crayon */
.acct-name-row { display: flex; align-items: center; justify-content: center; gap: 4px; }
.acct-name-row .acct-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 800; letter-spacing: -.02em; }
.acct-edit { width: 36px; height: 36px; flex: none; display: grid; place-items: center; border-radius: 50%; color: var(--t2); font-size: 20px; }
.acct-edit:active { color: #fff; background: rgba(255, 255, 255, .1); }
@media (hover: hover) { .acct-edit:hover { color: #fff; background: rgba(255, 255, 255, .08); } }

/* Barre latérale : playlists avec leur pochette */
.pl-mini { position: relative; }
@media (min-width: 900px) {
  .nav.plnav { height: 56px; gap: 12px; padding: 0 8px; }
  .nav.plnav .pl-mini { width: 40px; height: 40px; border-radius: 4px; }
  .nav.plnav .nm { display: flex; flex-direction: column; justify-content: center; min-width: 0; }
  .nav.plnav .nm b { font-size: 15px; line-height: 20px; font-weight: 600; letter-spacing: -.01em; color: var(--t1); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .nav.plnav .nm small { font-size: 13px; line-height: 17px; font-weight: 500; color: var(--t2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .nav.plnav:hover { background: rgba(255, 255, 255, .07); }
  .nav.plnav.active { background: rgba(255, 255, 255, .1); }
}

/* Téléphone : bouton lecture plus petit, moins d'espace sous le titre */
@media (max-width: 699px) {
  .pl-hero .sp-play { width: 48px; height: 48px; font-size: 22px; }
  .pl-hero .sp-shuf, .pl-hero .sp .btn.round { width: 40px; height: 40px; }
  .pl-hero { row-gap: 0; }
  .pl-hero .actions.sp { margin-top: -4px; }
}

/* Téléphone : bouton lecture plus petit, centré sur la même ligne que aléatoire et « … » */
@media (max-width: 699px) {
  .pl-hero .actions.sp { align-items: center; min-height: 42px; margin-top: 0; gap: 0; }
  .pl-hero .sp-l { align-items: center; height: 42px; }
  .pl-hero .sp-play { width: 42px; height: 42px; font-size: 20px; box-shadow: none; margin: 0; align-self: center; }
  .pl-hero .sp-play .i { margin-left: 1px; }
  .pl-hero .sp-shuf, .pl-hero .sp .btn.round { width: 42px; height: 42px; display: grid; place-items: center; line-height: 0; padding: 0; margin: 0; }
}

/* Fond d'en-tête : la pochette, très floue, comme sur le lecteur */
.hero-bg { position: absolute; left: 0; right: 0; top: 0; height: 440px; z-index: -1; overflow: hidden; pointer-events: none; }
.hero-bg i { position: absolute; inset: -25%; background-size: cover; background-position: center; filter: blur(56px) saturate(1.35) brightness(.55); transform: scale(1.15); }
.hero-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(18, 18, 18, 0) 0, rgba(18, 18, 18, .55) 62%, var(--bg) 100%); }
/* ═════════════ Mini lecteur (style Spotify) ═════════════
   carte arrondie 8 px, fond = pochette floutée et assombrie (comme le lecteur plein écran),
   pochette 40 px, titre en gras, artiste en gris, lecture + suivant en glyphes blancs, fine barre de progression. */
.mini { height: 56px; padding: 0 4px 0 8px; gap: 12px; border-radius: 8px; background: #2c2c2c; border: 0; overflow: hidden; box-shadow: 0 8px 24px rgba(0, 0, 0, .5); }
.mini:active { filter: brightness(1.12); background: #2c2c2c; }
.mini .mbg { position: absolute; inset: 0; z-index: 0; overflow: hidden; border-radius: inherit; pointer-events: none; }
.mini .mbg::before { content: ""; position: absolute; inset: -24px; background: var(--mbg, none) center / cover no-repeat; filter: blur(22px) saturate(1.4) brightness(.62); transform: scale(1.2); }
.mini .mbg::after { content: ""; position: absolute; inset: 0; background: rgba(0, 0, 0, .12); }
.mini .mcv, .mini .mm, .mini .mb { position: relative; z-index: 1; }
.mini .mcv { width: 40px; height: 40px; border-radius: 4px; box-shadow: 0 2px 8px rgba(0, 0, 0, .35); }
.mini .mt { font-weight: 700; font-size: 14px; line-height: 18px; letter-spacing: -.01em; color: #fff; }
.mini .ma { font-size: 12px; line-height: 16px; letter-spacing: 0; color: rgba(255, 255, 255, .72); }
.mini .mb { width: 44px; height: 44px; flex: none; display: grid; place-items: center; padding: 0; line-height: 0; border-radius: 50%; background: none; color: #fff; font-size: 24px; }
.mini #miniPlay { width: 44px; height: 44px; margin: 0; background: none; color: #fff; font-size: 30px; }
.mini .mb:active, .mini #miniPlay:active { background: none; opacity: .6; }
.mini .mprog { display: block; z-index: 2; left: 8px; right: 8px; bottom: 3px; height: 2px; background: rgba(255, 255, 255, .25); }
.mini .mprog i { background: #fff; }

/* ═════════════ Menus « ⋯ » (style Spotify) ═════════════
   surface #282828 pleine, coins 8 px, lignes de 40 px, icône à gauche, texte 14 px, séparateurs fins. */
#popcatch { position: fixed; inset: 0; z-index: 94; }
.popmenu { position: fixed; z-index: 95; width: 272px; max-width: calc(100vw - 24px); max-height: min(72dvh, 540px); overflow-y: auto; padding: 4px; border-radius: 8px; background: #282828; border: 0; box-shadow: 0 16px 24px rgba(0, 0, 0, .3), 0 6px 8px rgba(0, 0, 0, .2); scrollbar-width: none; }
.popmenu::-webkit-scrollbar { display: none; }
/* Dépliement lent : le menu s'ouvre depuis le bouton « … » (coin d'ancrage --ox/--oy posé par popover()),
   se déroule de haut en bas, puis ses lignes apparaissent une à une. */
.popmenu { transform-origin: var(--ox, 100%) var(--oy, 0); animation: popUnfold .6s cubic-bezier(.16, 1, .3, 1) both; will-change: transform, opacity, clip-path; }
@keyframes popUnfold {
  from { opacity: 0; transform: scale(.82, .5); clip-path: inset(0 0 100% 0 round 8px); }
  35% { opacity: 1; }
  to { opacity: 1; transform: none; clip-path: inset(-40px -40px -40px -40px round 8px); }
}
.popmenu > * { animation: popItem .5s cubic-bezier(.22, 1, .36, 1) both; animation-delay: calc(var(--i, 0) * 45ms + 120ms); }
@keyframes popItem { from { opacity: 0; transform: translateY(-8px); } }
.popmenu.out { opacity: 0; transform: scale(.9, .7); transition: opacity .22s ease, transform .22s ease; }
.popmenu.out > * { animation: none; }
.popmenu .sheet-head { display: flex; align-items: center; gap: 12px; padding: 8px 12px; margin: 0; border: 0; }
.popmenu .sheet-head img { width: 40px; height: 40px; border-radius: 4px; }
.popmenu .sheet-head b { font-size: 14px; line-height: 18px; font-weight: 700; color: #fff; }
.popmenu .sheet-head span { font-size: 12px; line-height: 16px; color: var(--t2); }
.popmenu .act { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 40px; margin: 0; padding: 0 12px; border-radius: 4px; font-size: 14px; font-weight: 400; letter-spacing: 0; color: #fff; text-align: left; }
.popmenu .act > .i { font-size: 20px; width: 20px; color: var(--t2); flex: none; }
.popmenu .act > span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.popmenu .act small { margin-left: auto; font-size: 12px; color: var(--t3); }
.popmenu .act:active { background: rgba(255, 255, 255, .1); }
.popmenu .act:active > .i { color: #fff; }
@media (hover: hover) { .popmenu .act:hover { background: rgba(255, 255, 255, .1); } .popmenu .act:hover > .i { color: #fff; } }
.popmenu .act.danger, .popmenu .act.danger > .i { color: var(--danger); }
.popmenu .pl-mini { width: 32px; height: 32px; border-radius: 4px; }
.popmenu .pop-title { padding: 10px 12px 6px; font-size: 12px; line-height: 16px; font-weight: 700; color: var(--t2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.popmenu .sep { height: 1px; background: rgba(255, 255, 255, .1); margin: 4px 0; }
.popmenu > .sep:first-child, .popmenu > .sep:last-child { display: none; }

/* ═════════════ Glisser-déposer, balayage, description, partage, statistiques ═════════════ */
.grip { width: 32px; height: 44px; display: grid; place-items: center; flex: none; color: var(--t3); font-size: 20px; touch-action: none; cursor: grab; border-radius: 8px; }
.grip:active { color: #fff; cursor: grabbing; }
.tr .grip { margin-right: -4px; }
.qrow .grip { margin-right: -6px; }
.sorting > * { transition: transform .2s var(--ease); }
.sorting > .dragging { transition: none; position: relative; z-index: 6; background: #2e2e2e; border-radius: 8px; box-shadow: 0 10px 28px rgba(0, 0, 0, .55); }
.qrow.dragging { padding-left: 8px; padding-right: 8px; margin: 0 -8px; background: transparent !important; box-shadow: none !important; filter: none !important; }   /* « À suivre » du lecteur : aucun fond, aucune ombre grise */
.qrow.dragging img { box-shadow: none; }
.sorting { -webkit-user-select: none; user-select: none; }

.sw-ind { position: absolute; right: 100%; top: 0; bottom: 0; width: 110px; display: flex; align-items: center; justify-content: flex-end; padding-right: 12px; pointer-events: none; color: var(--t2); font-size: 20px; }
.sw-ind .i { box-sizing: content-box; padding: 10px; border-radius: 50%; background: rgba(255, 255, 255, .12); transition: background .15s, color .15s, transform .15s var(--ease); }
.sw-ind.on { color: #000; }
.sw-ind.on .i { background: #fff; transform: scale(1.1); }

.pl-desc { margin-top: 8px; color: var(--t2); font-size: 13px; line-height: 18px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

.st-tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 4px 0 8px; }
.st-tiles > div { background: var(--s2); border-radius: 8px; padding: 14px 12px; min-width: 0; }
.st-tiles b { display: block; font-size: 22px; line-height: 26px; font-weight: 800; letter-spacing: -.02em; white-space: nowrap; }
.st-tiles span { display: block; margin-top: 2px; font-size: 12px; line-height: 16px; color: var(--t2); }
.st-recap { background: var(--s2); border-radius: 8px; padding: 18px 16px; margin: 4px 0 8px; }
.st-recap span { display: block; font-size: 12px; line-height: 16px; font-weight: 700; color: var(--t2); }
.st-recap b { display: block; margin-top: 6px; font-size: 28px; line-height: 32px; font-weight: 800; letter-spacing: -.025em; overflow-wrap: anywhere; }
.st-recap small { display: block; margin-top: 4px; font-size: 13px; line-height: 18px; color: var(--t2); }
.st-chart { display: flex; align-items: stretch; gap: 6px; height: 132px; }
.st-col { flex: 1; min-width: 0; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; }
.st-col i { display: block; width: 100%; max-width: 24px; height: calc((100% - 22px) * var(--h, .03)); background: #fff; opacity: .88; border-radius: 3px 3px 0 0; }
.st-col span { height: 22px; line-height: 22px; font-size: 11px; color: var(--t3); }
/* ═════════════ Podium des artistes + récompenses ═════════════ */
.podium { --gold: #f5c451; --silver: #d3d7dd; --bronze: #d38f5a; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; align-items: end; margin-top: 4px; }
.podium.n1 { grid-template-columns: minmax(0, 1fr); max-width: 200px; margin-inline: auto; }
.podium.n2 { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 300px; margin-inline: auto; }
.pd-col { display: flex; flex-direction: column; align-items: center; min-width: 0; text-align: center; color: inherit; text-decoration: none; animation: pdUp .6s var(--ease, ease) both; animation-delay: var(--d, 0s); }
.pd-av { position: relative; width: 100%; max-width: 104px; margin-top: 6px; }
.r1 .pd-av { max-width: 124px; margin-top: 22px; }
.pd-img { aspect-ratio: 1; border-radius: 50%; overflow: hidden; background: var(--s2); box-shadow: 0 0 0 2.5px var(--c), 0 10px 26px rgba(0, 0, 0, .5); }
.r1 { --c: var(--gold); } .r2 { --c: var(--silver); } .r3 { --c: var(--bronze); }
.r1 .pd-img { box-shadow: 0 0 0 3px var(--c), 0 0 28px rgba(245, 196, 81, .35), 0 10px 26px rgba(0, 0, 0, .5); }
.pd-img img, .pd-img .ph { width: 100%; height: 100%; object-fit: cover; display: grid; place-items: center; }
.pd-medal { position: absolute; right: -2px; bottom: -2px; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--c); color: #1a1a1a; font-weight: 800; font-size: 14px; border: 2.5px solid var(--bg); }
.crown { position: absolute; left: 50%; top: -22px; width: 30px; height: 30px; transform: translateX(-50%) rotate(-6deg); color: var(--gold); filter: drop-shadow(0 2px 6px rgba(245, 196, 81, .5)); }
.pd-name { display: block; width: 100%; margin-top: 10px; font-size: 14px; line-height: 18px; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pd-n { margin-top: 1px; font-size: 12px; line-height: 16px; color: var(--t2); }
.pd-rw { margin-top: 7px; padding: 3px 9px; border-radius: 99px; font-size: 11px; line-height: 14px; font-weight: 700; color: #1a1a1a; background: var(--s3); white-space: nowrap; }
.pd-rw.none { background: none; }
.pd-rw.l0 { background: #8a8f98; }
.pd-rw.l1 { background: var(--bronze); }
.pd-rw.l2 { background: var(--silver); }
.pd-rw.l3 { background: var(--gold); }
.pd-rw.l4 { background: linear-gradient(90deg, #f5c451, #ffe9a8 50%, #f5c451); box-shadow: 0 0 14px rgba(245, 196, 81, .45); }
.pd-step { width: 100%; margin-top: 10px; border-radius: 10px 10px 0 0; display: grid; place-items: start center; padding-top: 10px; font-weight: 800; font-size: 15px; color: rgba(255, 255, 255, .92); background: linear-gradient(180deg, color-mix(in srgb, var(--c) 34%, var(--s2)), var(--s1)); border-top: 2px solid var(--c); transform-origin: bottom; animation: pdGrow .7s var(--ease, ease) both; animation-delay: var(--d, 0s); }
.r1 .pd-step { height: 84px; } .r2 .pd-step { height: 60px; } .r3 .pd-step { height: 44px; }
.pd-next { display: block; margin-top: 12px; text-align: center; font-size: 12px; line-height: 16px; color: var(--t2); }
@keyframes pdUp { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes pdGrow { from { transform: scaleY(0); } to { transform: scaleY(1); } }
@media (prefers-reduced-motion: reduce) { .pd-col, .pd-step { animation: none; } }

/* ═════════════ Choix de la langue (page Compte) ═════════════ */
.acct-lang { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 22px auto 0; width: 100%; max-width: 320px; }
.acct-lang > span { font-size: 15px; font-weight: 600; color: var(--t2); }
.lang-seg { display: flex; padding: 3px; gap: 2px; border-radius: 99px; background: var(--s2); }
.lang-seg button { height: 32px; padding: 0 16px; border-radius: 99px; font-size: 14px; font-weight: 600; color: var(--t2); transition: background .2s, color .2s; }
.lang-seg button.on { background: #fff; color: #000; }

/* ═════════════ Tri et filtre des listes de titres ═════════════ */
.lf { display: flex; align-items: center; gap: 8px; margin: 0 0 8px; }
.lf-s { flex: 1; min-width: 0; display: flex; align-items: center; gap: 8px; height: 40px; padding: 0 12px; border-radius: 8px; background: var(--s2); color: var(--t2); }
.lf-s svg { width: 18px; height: 18px; flex: none; }
.lf-s input { flex: 1; min-width: 0; height: 100%; background: none; border: 0; outline: 0; color: var(--t1); font: inherit; font-size: 15px; letter-spacing: 0; -webkit-appearance: none; appearance: none; }
.lf-s input::placeholder { color: var(--t3); }
.lf-s input::-webkit-search-cancel-button { -webkit-appearance: none; }
.lf-sort { flex: none; max-width: 52%; height: 40px; padding: 0 12px; display: flex; align-items: center; gap: 8px; border-radius: 8px; background: var(--s2); font-size: 14px; font-weight: 500; }
.lf-sort svg { width: 18px; height: 18px; flex: none; }
.lf-sort span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lf-sort:active { background: var(--s3); }
.lf-empty { padding: 40px 0; text-align: center; color: var(--t2); font-size: 15px; }
.popmenu .act.lf-opt { justify-content: space-between; }
.popmenu .act.lf-opt.on { font-weight: 700; }
.popmenu .act.lf-opt svg { width: 16px; height: 16px; flex: none; }

/* ── Suggestions en fin de playlist ── */
#sugBox { margin-top: 8px; }
#sugBox h2.sec { margin-top: 28px; }
.sug-reload { width: 44px; height: 44px; margin: -10px -10px -10px 0; display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; color: var(--t2) !important; transition: color .12s, background .12s; }
.sug-reload .i { width: 20px; height: 20px; }
.sug-reload:active { color: #fff !important; background: rgba(255, 255, 255, .08); }
.sug-reload.spin .i { animation: sugspin .8s linear infinite; }
@keyframes sugspin { to { transform: rotate(360deg); } }
.sug-add { flex: none; height: 32px; padding: 0 12px 0 8px; border-radius: 16px; background: var(--s2); color: var(--t1); display: inline-flex; align-items: center; gap: 4px; font-size: 13px; font-weight: 600; letter-spacing: 0; transition: transform .12s var(--ease), opacity .12s; }
.sug-add .i { width: 16px; height: 16px; }
.sug-add:active { transform: scale(.95); opacity: .75; }
.sug-empty { padding: 20px 0; color: var(--t2); font-size: 15px; text-align: center; }
.sp .btn.round.on, .pl-hero .sp .btn.round.on { color: var(--accent); }   /* album / artiste sauvegardé */

/* Notifications (écran Compte) */
.acct-notif { width: 100%; max-width: 320px; margin: 22px auto 0; }
.acct-notif .nt-h { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.acct-notif .nt-h > span { font-size: 15px; font-weight: 600; color: var(--t2); }
.acct-notif .nt-p { margin: 6px 0 0; font-size: 13px; line-height: 18px; color: var(--t2); text-align: left; }
.nt-sw { position: relative; flex: none; width: 51px; height: 31px; border-radius: 16px; background: rgba(255, 255, 255, .16); transition: background .2s; }
.nt-sw i { position: absolute; top: 2px; left: 2px; width: 27px; height: 27px; border-radius: 50%; background: #fff; box-shadow: 0 2px 4px rgba(0, 0, 0, .3); transition: transform .2s; }
.nt-sw.on { background: var(--accent); }
.nt-sw.on i { transform: translateX(20px); }