/* Bobomusic : DA « pansement ». Bobo = pansement, l'app soigne ta musique.
   Nuit prune pour faire briller le rose et les paillettes. Ombres pleines, jamais floues. */
:root{
  --bg:#1D0A22; --panel:#32123A; --panel2:#43194D; --line:rgba(255,158,181,.24);
  --text:#FFFFFF; --muted:#FF9EB5; --accent:#FF4D6D; --accent-2:#FFD27A; --ink:#1D0A22;
  --pansement:#FFE6D5; --compresse:#F3C4A6; --paillette:#FFD27A;
  --ok:#8EF0B4; --ok-bg:rgba(142,240,180,.14); --warn:#FFD27A; --warn-bg:rgba(255,210,122,.14); --err:#FF8FA3;
  --t-pink:rgba(255,77,109,.2); --t-pink-i:#FF9EB5; --t-violet:rgba(185,140,255,.2); --t-violet-i:#D7B8FF;
  --t-orange:rgba(255,210,122,.18); --t-orange-i:#FFD27A; --t-mint:rgba(142,240,180,.16); --t-mint-i:#8EF0B4;
  --shadow:0 8px 0 rgba(0,0,0,.28);
  --shadow-lg:0 14px 0 rgba(0,0,0,.32);
  --r:22px;
  --head:'Bricolage Grotesque',system-ui,sans-serif;
}
*{box-sizing:border-box}
html,body{margin:0;color:var(--text);font:15px/1.45 Figtree,system-ui,sans-serif}
body{background:var(--bg);background-image:radial-gradient(900px 600px at 85% -10%,rgba(139,92,246,.10),transparent 60%),radial-gradient(900px 600px at 10% 0%,rgba(255,77,109,.10),transparent 60%);background-attachment:fixed;min-height:100vh}
button,input,select{font:inherit;color:inherit}
svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round;flex:none}
.sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0)}
code{font-family:ui-monospace,Menlo,monospace;font-size:12px;word-break:break-all}
[hidden]{display:none !important}
.good{color:var(--ok)} .warn{color:var(--warn)} .err{color:var(--err)} .muted{color:var(--muted)}

/* ---------------- structure */
.app{display:flex;min-height:100vh;gap:8px}
.side{flex:0 0 252px;margin:16px 0 16px 16px;padding:24px 16px;display:flex;flex-direction:column;gap:28px;border-radius:28px;background:rgba(255,255,255,.82);backdrop-filter:blur(18px);box-shadow:var(--shadow);position:sticky;top:16px;height:calc(100vh - 32px)}
.brand{display:flex;align-items:center;gap:12px;padding:0 6px;font:700 21px var(--head);letter-spacing:-.01em}
.logo{width:44px;height:44px;border-radius:13px;display:block;box-shadow:0 6px 16px rgba(255,77,109,.3)}
.nav{display:flex;flex-direction:column;gap:4px}
.nav-item{display:flex;align-items:center;gap:12px;padding:12px 14px;border-radius:16px;border:0;background:none;color:var(--muted);font-weight:500;cursor:pointer;text-align:left;transition:background .15s,color .15s}
.nav-item span{flex:1}
.nav-item:hover{background:var(--panel2);color:var(--text)}
.nav-item.active{background:var(--accent);color:var(--ink);font-weight:600;box-shadow:0 8px 20px rgba(255,77,109,.3)}
.badge{min-width:22px;height:22px;padding:0 6px;border-radius:11px;background:var(--ink);color:#fff;font-size:12px;display:grid;place-items:center}
.nav-item.active .badge{background:#fff;color:var(--ink)}
.side-foot{margin-top:auto;display:flex;flex-direction:column;gap:10px;padding:16px;border-radius:20px;background:var(--panel2);font-size:13px;color:var(--muted)}
.dot{display:inline-block;width:8px;height:8px;border-radius:4px;background:#22C55E;margin-right:8px}

main{flex:1;min-width:0;padding:40px 48px 80px;overflow-x:clip}
.view{display:flex;flex-direction:column;gap:28px;max-width:1180px;margin:0 auto}
h2{margin:0;font:700 22px var(--head);letter-spacing:-.01em}
.title{margin:0;font:700 38px/1.1 var(--head);letter-spacing:-.02em}
.hero h1{margin:0;font:700 42px/1.1 var(--head);letter-spacing:-.02em}
.hero p{margin:10px 0 0;font-size:16px;color:var(--muted);max-width:680px}
.section{display:flex;flex-direction:column;gap:16px}
.sec-head{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:12px}
.sub{font-size:14px;color:var(--muted)}
.small{font-size:13px;color:var(--muted)}

/* ---------------- boutons */
.btn{height:44px;padding:0 18px;border-radius:14px;border:1px solid var(--line);background:var(--panel);font-weight:600;cursor:pointer;display:inline-flex;align-items:center;justify-content:center;gap:8px;white-space:nowrap;transition:transform .12s,box-shadow .15s,border-color .15s}
.btn:hover{border-color:#E4BFCB;box-shadow:var(--shadow)}
.btn:active{transform:scale(.98)}
.btn.primary{background:var(--accent);border-color:var(--accent);color:var(--ink);box-shadow:0 8px 20px rgba(255,77,109,.28)}
.btn.primary:hover{filter:brightness(1.05)}
.btn.ghost{background:transparent;border-color:transparent;color:var(--muted)}
.btn.ghost:hover{background:var(--panel2);color:var(--text);box-shadow:none}
.btn:disabled{opacity:.55;cursor:default}

/* ---------------- recherche */
.searchbar{display:flex;flex-wrap:wrap;gap:12px}
.field{position:relative;flex:1 1 360px}
.field svg{position:absolute;left:20px;top:18px;color:var(--muted)}
.field input{width:100%;height:56px;padding:0 20px 0 52px;border-radius:18px;border:1px solid var(--line);background:var(--panel);font-size:17px;outline:none;box-shadow:var(--shadow)}
.field input:focus{border-color:var(--accent)}
.searchbar .btn{height:56px;padding:0 30px;border-radius:18px;font-size:16px}
.chips{display:flex;flex-wrap:wrap;gap:10px}
.chip{height:40px;padding:0 18px;border-radius:20px;border:1px solid var(--line);background:var(--panel);font-size:14px;font-weight:500;cursor:pointer}
.chip.active{background:var(--ink);border-color:var(--ink);color:#fff;font-weight:600}

.banner{display:flex;flex-wrap:wrap;align-items:center;gap:16px;padding:18px 20px;border-radius:var(--r);background:var(--panel);box-shadow:var(--shadow)}
.banner .ico{width:48px;height:48px;border-radius:14px;background:var(--t-pink);color:var(--t-pink-i);display:grid;place-items:center}
.banner .txt{flex:1 1 280px;min-width:0}
#clip:not(:empty){margin:0 auto 24px;max-width:1180px}

.grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(190px,1fr));gap:20px}
.card{padding:12px;border-radius:var(--r);background:var(--panel);box-shadow:var(--shadow);display:flex;flex-direction:column;gap:12px}
.cover{aspect-ratio:1/1;border-radius:16px;background:var(--panel2);object-fit:cover;width:100%;display:block}
.card .t{font-weight:600;line-height:1.3}
.rows{display:flex;flex-direction:column;gap:10px}
.row{display:flex;flex-wrap:wrap;align-items:center;gap:16px;padding:10px 14px;border-radius:20px;background:var(--panel);box-shadow:var(--shadow)}
.row img{width:52px;height:52px;border-radius:12px;object-fit:cover;background:var(--panel2)}
.row img.wide{width:92px;height:52px}
.row .main{flex:1 1 220px;min-width:0}
.row .alb{flex:0 1 220px;font-size:14px;color:var(--muted)}
.row .dur{flex:0 0 48px;text-align:right;font-size:14px;color:var(--muted)}
.trkno{flex:0 0 28px;text-align:right;font:700 16px var(--head);color:var(--muted)}
.empty{padding:40px;border-radius:var(--r);background:var(--panel);box-shadow:var(--shadow);color:var(--muted);text-align:center}
.spin{width:18px;height:18px;border-radius:50%;border:2px solid var(--line);border-top-color:var(--accent);animation:sp .8s linear infinite;display:inline-block;vertical-align:middle}
@keyframes sp{to{transform:rotate(360deg)}}

/* ---------------- file d'attente */
.job{padding:20px;border-radius:var(--r);background:var(--panel);box-shadow:var(--shadow);display:flex;flex-direction:column;gap:12px}
.job-head{display:flex;flex-wrap:wrap;align-items:center;gap:14px}
.job-head img{width:64px;height:64px;border-radius:14px;object-fit:cover;background:var(--panel2)}
.job-head .name{flex:1 1 200px;font-weight:600;font-size:17px}
.tag{padding:4px 12px;border-radius:12px;font-size:13px;font-weight:600;background:var(--panel2);color:var(--text)}
.tag.official{background:var(--ok-bg);color:var(--ok)}
.tag.custom{background:var(--warn-bg);color:var(--warn)}
.bar{height:8px;border-radius:4px;background:var(--panel2);overflow:hidden}
.bar i{display:block;height:100%;background:linear-gradient(90deg,var(--accent),#FF8A5C);border-radius:4px;transition:width .4s}
.bar.done i{background:#22C55E}
.steps{display:flex;flex-wrap:wrap;gap:8px 20px;font-size:13px;color:var(--muted)}
.steps b{color:var(--text);font-weight:500}
details summary{cursor:pointer;color:var(--muted);font-size:14px}
.tracks{display:flex;flex-direction:column;gap:6px;margin-top:10px}
.trow{display:flex;flex-wrap:wrap;gap:12px;align-items:center;padding:10px 12px;border-radius:14px;background:var(--panel2);font-size:14px}
.trow .pos{flex:0 0 36px;font:700 17px var(--head)}
.trow .trk{flex:0 0 70px;color:var(--muted)}
.trow .main{flex:1 1 200px;min-width:0}
.trow .st{flex:0 0 170px;font-size:13px;font-weight:600}
.note{font-size:12px;color:var(--warn)}

/* ---------------- bibliothèque, réglages */
.folder{display:flex;align-items:center;gap:14px;padding:14px 18px;border-radius:20px;background:var(--panel);box-shadow:var(--shadow);border:0;width:100%;text-align:left;cursor:pointer}
.folder:hover{box-shadow:var(--shadow-lg)}
.folder .main{flex:1;min-width:0}
.tile{flex:none;width:44px;height:44px;border-radius:14px;display:grid;place-items:center}
.tile.pink{background:var(--t-pink);color:var(--t-pink-i)} .tile.violet{background:var(--t-violet);color:var(--t-violet-i)}
.tile.orange{background:var(--t-orange);color:var(--t-orange-i)} .tile.mint{background:var(--t-mint);color:var(--t-mint-i)}
.settings{display:flex;flex-direction:column;gap:16px;max-width:640px}
.set{display:flex;flex-direction:column;gap:8px;padding:18px 20px;border-radius:20px;background:var(--panel);box-shadow:var(--shadow)}
.set label{font-weight:600}
.set input[type=text],.set select{height:46px;padding:0 14px;border-radius:14px;border:1px solid var(--line);background:var(--panel2)}
.set .inline{display:flex;align-items:center;gap:12px}
.set input[type=checkbox]{width:22px;height:22px;accent-color:var(--accent)}

/* ---------------- fenêtre « garder les infos YouTube » */
dialog{border:0;border-radius:28px;background:var(--panel);color:var(--text);padding:0;width:min(560px,calc(100vw - 32px));max-height:calc(100vh - 48px);box-shadow:var(--shadow-lg)}
dialog::backdrop{background:rgba(30,26,35,.4);backdrop-filter:blur(4px)}
.dlg-body{display:flex;flex-direction:column;gap:14px;padding:28px}
.dlg-body h2{font-size:24px}
.dlg-body p{margin:0}
.dlg-actions{display:flex;flex-direction:column;gap:10px;margin-top:6px}
.dlg-actions .btn{height:50px}
.dlg-tools{display:flex;gap:8px}
.dlg-list{display:flex;flex-direction:column;gap:6px;max-height:42vh;overflow:auto}
.check{display:flex;align-items:center;gap:14px;padding:10px 12px;border-radius:14px;background:var(--panel2);cursor:pointer}
.check input{width:22px;height:22px;accent-color:var(--accent);flex:none}
.check .main{display:flex;flex-direction:column;min-width:0}

/* ---------------- accueil */
.home{position:relative;gap:30px}
.home > *{position:relative;z-index:1}
.home > .glow{position:absolute;z-index:0;left:50%;top:-140px;width:1000px;max-width:140vw;height:520px;transform:translateX(-50%);background:radial-gradient(closest-side,rgba(255,77,109,.20),rgba(139,92,246,.08) 60%,transparent 80%);filter:blur(20px);pointer-events:none}
.greet{display:flex;flex-direction:column;gap:22px;padding-top:8px}
.logo.big{width:58px;height:58px;border-radius:17px}
.greet h1{margin:0;font:700 clamp(34px,5vw,60px)/1.08 var(--head);letter-spacing:-.025em;max-width:820px}
.greet h1 em{font-style:normal;background:linear-gradient(90deg,var(--accent),var(--accent-2));-webkit-background-clip:text;background-clip:text;color:transparent}
.suggest{display:flex;flex-wrap:wrap;gap:14px}
.sug{flex:1 1 230px;max-width:360px;min-height:140px;padding:18px;border-radius:var(--r);background:rgba(255,255,255,.85);border:1px solid rgba(255,255,255,.9);backdrop-filter:blur(10px);box-shadow:var(--shadow);display:flex;flex-direction:column;justify-content:space-between;align-items:flex-start;gap:16px;text-align:left;cursor:pointer;font-size:15px;font-weight:500;line-height:1.4;transition:transform .15s,box-shadow .15s}
.sug:hover{transform:translateY(-2px);box-shadow:var(--shadow-lg)}

.overview{display:grid;grid-template-columns:minmax(0,1.3fr) minmax(0,1fr);gap:16px}
.libcard{position:relative;overflow:hidden;padding:24px;border-radius:28px;color:#fff;background:linear-gradient(135deg,#FF4D6D 0%,#C2418F 55%,#7C4DDB 100%);box-shadow:0 20px 44px rgba(194,65,143,.32);display:flex;flex-direction:column;gap:14px}
.libcard::after{content:"";position:absolute;right:-40px;top:-50px;width:220px;height:220px;border-radius:50%;background:rgba(255,255,255,.12)}
.libcard .lab{font-weight:600;opacity:.92}
.libcard .big{font:700 52px/1 var(--head);letter-spacing:-.03em}
.libcard .big small{font:500 18px Inter,sans-serif;opacity:.9;margin-left:6px;letter-spacing:0}
.split{display:flex;height:10px;border-radius:5px;overflow:hidden;background:rgba(255,255,255,.25)}
.split i{display:block;height:100%}
.legend{display:flex;flex-wrap:wrap;gap:6px 16px;font-size:13px}
.legend span{display:flex;align-items:center;gap:6px}
.legend b{width:10px;height:10px;border-radius:3px;display:inline-block}
.libcard .btn{align-self:flex-start;background:#fff;border-color:#fff;color:var(--ink);position:relative;z-index:1}
.stats{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.stat{padding:16px;border-radius:22px;background:var(--panel);box-shadow:var(--shadow);display:flex;flex-direction:column;gap:10px}
.stat b{font:700 28px/1 var(--head);letter-spacing:-.02em}
.stat span{font-size:13px;color:var(--muted)}

.shelf{display:flex;gap:16px;overflow-x:auto;padding:4px 4px 16px;margin:0 -4px;scroll-snap-type:x proximity}
.sc{flex:0 0 176px;scroll-snap-align:start;padding:10px;border-radius:var(--r);background:var(--panel);box-shadow:var(--shadow);border:0;text-align:left;cursor:pointer;display:flex;flex-direction:column;gap:10px;transition:transform .15s}
.sc:hover{transform:translateY(-3px)}
.sc img{width:100%;aspect-ratio:1/1;border-radius:16px;object-fit:cover;background:var(--panel2);display:block}
.sc .n{font-weight:600;line-height:1.3;padding:0 4px;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.sc .tag{align-self:flex-start;font-size:12px;padding:3px 10px;margin:0 4px 4px}
.how{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}
.step{display:flex;gap:14px;padding:18px;border-radius:var(--r);background:var(--panel);box-shadow:var(--shadow)}
.step b{flex:0 0 36px;height:36px;border-radius:12px;background:var(--t-pink);color:var(--t-pink-i);display:grid;place-items:center;font:700 16px var(--head)}
.step:nth-child(2) b{background:var(--t-violet);color:var(--t-violet-i)}
.step:nth-child(3) b{background:var(--t-mint);color:var(--t-mint-i)}
.step strong{display:block;margin-bottom:4px}
.step span{font-size:14px;color:var(--muted)}
.mini{display:flex;flex-wrap:wrap;align-items:center;gap:14px;padding:12px 16px;border-radius:20px;background:var(--panel);box-shadow:var(--shadow);border:0;width:100%;text-align:left;cursor:pointer;color:var(--text)}
.mini img{width:52px;height:52px;border-radius:12px;object-fit:cover;background:var(--panel2)}
.mini .main{flex:1 1 200px;min-width:0}
.mini .bar{margin-top:8px}

.composer{position:sticky;bottom:24px;z-index:3;display:flex;align-items:center;gap:8px;width:100%;max-width:780px;margin:8px auto 0;padding:8px 8px 8px 24px;border-radius:32px;background:rgba(255,255,255,.92);border:1px solid #fff;backdrop-filter:blur(16px);box-shadow:var(--shadow-lg)}
.composer:focus-within{box-shadow:0 0 0 3px rgba(255,77,109,.25),var(--shadow-lg)}
.composer input{flex:1;min-width:0;height:50px;border:0;background:transparent;font-size:17px;outline:none}
.composer input::placeholder{color:var(--muted)}
.round{flex:none;width:50px;height:50px;border-radius:50%;border:0;background:var(--panel2);color:var(--text);display:grid;place-items:center;cursor:pointer}
.round:hover{background:var(--line)}
.round.send{background:var(--accent);color:var(--ink);box-shadow:0 8px 20px rgba(255,77,109,.35)}

#toast{position:fixed;left:50%;bottom:28px;transform:translateX(-50%) translateY(20px);background:var(--ink);color:#fff;padding:12px 20px;border-radius:16px;font-weight:600;opacity:0;transition:.25s;pointer-events:none;z-index:9;max-width:90vw;box-shadow:var(--shadow-lg)}
#toast.show{opacity:1;transform:translateX(-50%)}

/* ---------------- téléphone */
@media (max-width:820px){
  .app{flex-direction:column;gap:0}
  .side{position:fixed;left:12px;right:12px;bottom:calc(12px + env(safe-area-inset-bottom));top:auto;height:auto;margin:0;padding:8px;flex-direction:row;border-radius:26px;box-shadow:var(--shadow-lg);z-index:5}
  .brand,.side-foot{display:none}
  .nav{flex-direction:row;flex:1;gap:2px}
  .nav-item{flex:1;flex-direction:column;gap:3px;padding:8px 2px;font-size:11px;border-radius:18px;position:relative}
  .nav-item span{flex:none}
  .nav-item.active{box-shadow:none}
  .badge{position:absolute;top:2px;right:18%;min-width:18px;height:18px;font-size:10px}
  main{padding:24px 16px 120px}
  .title{font-size:30px}
  .hero h1{font-size:30px}
  .hero p{font-size:15px}
  .grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
  .row .alb{display:none}
  .searchbar .btn{flex:1 1 100%}
  .home{gap:22px}
  .overview{grid-template-columns:1fr}
  .libcard .big{font-size:44px}
  .how{grid-template-columns:1fr}
  .sug{flex-basis:100%;max-width:none;min-height:0;flex-direction:row-reverse;justify-content:flex-end;align-items:center}
  .composer{bottom:calc(96px + env(safe-area-inset-bottom));padding-left:18px}
  .sc{flex-basis:150px}
  #toast{bottom:calc(170px + env(safe-area-inset-bottom))}
}

/* ---------------- dossier et lecteur */
.back{align-self:flex-start;padding-left:8px}
.folder-head{display:flex;flex-wrap:wrap;align-items:flex-end;gap:24px}
.folder-head img{width:200px;height:200px;border-radius:24px;object-fit:cover;box-shadow:var(--shadow-lg)}
.fh-txt{flex:1 1 280px;display:flex;flex-direction:column;gap:8px}
.fh-txt h2{font-size:34px;line-height:1.1}
.fh-actions{display:flex;flex-wrap:wrap;gap:10px;margin-top:8px}
.playrow{border:0;width:100%;text-align:left;cursor:pointer;color:var(--text)}
.playrow:hover{box-shadow:var(--shadow-lg)}
.playrow.now{outline:2px solid var(--accent);background:#FFF7F9}
.playrow.now .trkno{color:var(--accent)}
.player{position:fixed;z-index:6;left:300px;right:16px;bottom:16px;display:flex;align-items:center;gap:16px;padding:10px 18px 10px 10px;border-radius:26px;background:rgba(255,255,255,.94);backdrop-filter:blur(18px);box-shadow:var(--shadow-lg)}
.player img{width:56px;height:56px;border-radius:14px;object-fit:cover;background:var(--panel2);flex:none}
.pl-meta{flex:0 1 240px;min-width:0;display:flex;flex-direction:column}
.pl-meta b,.pl-meta span{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.pl-meta span{font-size:13px;color:var(--muted)}
.pl-ctrl{display:flex;align-items:center;gap:8px}
.pl-ctrl .round{width:42px;height:42px}
.pl-ctrl .round.send{width:50px;height:50px}
.pl-seek{flex:1;min-width:120px;display:flex;align-items:center;gap:10px;font-size:12px;color:var(--muted);font-variant-numeric:tabular-nums}
.pl-seek input,.pl-vol input{flex:1;accent-color:var(--accent);cursor:pointer}
.pl-vol{flex:0 0 130px;display:flex;align-items:center;gap:8px;color:var(--muted)}
body.playing main{padding-bottom:140px}
body.playing .composer{bottom:110px}
@media (max-width:820px){
  .player{left:12px;right:12px;bottom:calc(96px + env(safe-area-inset-bottom));flex-wrap:wrap;gap:8px 12px;padding:8px 12px 8px 8px}
  .player img{width:48px;height:48px}
  .pl-meta{flex:1 1 0}
  .pl-ctrl .round{width:38px;height:38px}
  .pl-ctrl .round.send{width:44px;height:44px}
  .pl-seek{flex:1 1 100%;order:3}
  .pl-vol{display:none}
  body.playing main{padding-bottom:230px}
  body.playing .composer{bottom:calc(196px + env(safe-area-inset-bottom))}
  .folder-head img{width:140px;height:140px}
  .fh-txt h2{font-size:26px}
}
#library{display:flex;flex-direction:column;gap:24px}

/* ---------------- barres (progression, volume) */
.rng{-webkit-appearance:none;appearance:none;height:6px;border-radius:3px;background:linear-gradient(90deg,var(--accent) var(--p,0%),var(--line) var(--p,0%));outline:none;cursor:pointer;flex:1;min-width:0;accent-color:var(--accent)}
.rng::-webkit-slider-thumb{-webkit-appearance:none;width:16px;height:16px;border-radius:50%;background:var(--accent);border:3px solid #fff;box-shadow:0 2px 6px rgba(0,0,0,.25)}
.rng::-moz-range-thumb{width:12px;height:12px;border-radius:50%;background:var(--accent);border:3px solid #fff}
.rng:focus-visible{outline:2px solid var(--accent);outline-offset:4px}
.player .round{width:42px;height:42px}
.player #pl-expand{width:36px;height:36px;background:transparent}
.player img,.pl-meta{cursor:pointer}

/* ---------------- lecteur plein écran */
.np{position:fixed;inset:0;z-index:20;color:#fff;overflow-y:auto;background:#17121c}
.np-bg{position:fixed;inset:-60px;background-size:cover;background-position:center;filter:blur(70px) saturate(1.4);transform:scale(1.15);opacity:.85}
.np::before{content:"";position:fixed;inset:0;background:rgba(18,13,24,.55);z-index:0}
.np-inner{position:relative;z-index:1;max-width:1100px;min-height:100%;margin:0 auto;padding:22px 28px 40px;display:flex;flex-direction:column;gap:22px}
.np-top{display:flex;align-items:center;justify-content:space-between;gap:12px}
.np-from{text-align:center;min-width:0;display:flex;flex-direction:column;line-height:1.3}
.np-from span{font-size:12px;opacity:.7;letter-spacing:.04em;text-transform:uppercase}
.np-from b{font-size:14px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:60vw}
.np-gap{width:44px}
.round.glass{background:rgba(255,255,255,.16);color:#fff;backdrop-filter:blur(8px)}
.round.glass:hover{background:rgba(255,255,255,.26)}
.round.glass.on{background:#fff;color:var(--accent)}
.round.send.big{width:72px;height:72px}
.round.send.big svg{width:30px;height:30px}
.np-main{flex:1;display:flex;flex-wrap:wrap;align-items:flex-start;justify-content:center;gap:40px}
.np-art{flex:0 1 min(46vh,440px);display:flex;justify-content:center;align-self:center}
.np-art img{width:min(46vh,440px);aspect-ratio:1/1;max-width:100%;border-radius:22px;object-fit:cover;box-shadow:0 30px 70px rgba(0,0,0,.55);background:#2a2230}
.np-side{flex:1 1 360px;max-width:520px;display:flex;flex-direction:column;gap:22px;min-width:0}
.np-title h2{margin:0;font:700 26px/1.2 var(--head);letter-spacing:-.01em}
.np-title p{margin:4px 0 0;font-size:16px;opacity:.75}
.np-seek{display:flex;flex-direction:column;gap:8px}
.np-seek .rng{width:100%;flex:none;background:linear-gradient(90deg,#fff var(--p,0%),rgba(255,255,255,.28) var(--p,0%))}
.np-seek .rng::-webkit-slider-thumb{background:#fff;border-color:var(--accent)}
.np-seek div{display:flex;justify-content:space-between;font-size:12px;opacity:.75;font-variant-numeric:tabular-nums}
.np-ctrl{display:flex;align-items:center;justify-content:space-between;gap:8px}
.np-ctrl .round{width:48px;height:48px}
.np-ctrl .round.send.big{width:72px;height:72px}
.np-vol{display:flex;align-items:center;gap:12px;opacity:.9}
.np-vol .rng{background:linear-gradient(90deg,#fff var(--p,100%),rgba(255,255,255,.28) var(--p,100%))}
.np-queue{display:flex;flex-direction:column;gap:10px;min-height:0}
.np-qhead{display:flex;justify-content:space-between;align-items:baseline}
.np-qhead h3{margin:0;font:700 16px var(--head)}
.np-qhead span{font-size:12px;opacity:.7}
#np-list{display:flex;flex-direction:column;gap:4px;max-height:34vh;overflow-y:auto}
.qrow{display:flex;align-items:center;gap:12px;padding:8px 10px;border-radius:14px;border:0;background:transparent;color:#fff;text-align:left;cursor:pointer}
.qrow:hover{background:rgba(255,255,255,.1)}
.qrow.now{background:rgba(255,255,255,.18)}
.qrow .qn{flex:0 0 22px;text-align:center;font-size:12px;opacity:.7}
.qrow img{width:40px;height:40px;border-radius:8px;object-fit:cover}
.qrow .main{flex:1;min-width:0;display:flex;flex-direction:column;font-size:14px}
.qrow .main b{font-weight:600;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.qrow .main span{font-size:12px;opacity:.7;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.qrow .dur{font-size:12px;opacity:.7}
body.np-open{overflow:hidden}
body.np-open .player,body.np-open .composer{display:none}

/* ---------------- échelle de texte (bureau) */
.title{font-size:32px}
.hero h1{font-size:34px}
.greet h1{font-size:clamp(30px,3.8vw,46px)}
h2{font-size:20px}
.libcard .big{font-size:44px}
.stat b{font-size:26px}
.fh-txt h2{font-size:30px}
.sug{font-size:14px;min-height:120px}

/* ---------------- téléphone : texte plus petit, barres plus fines */
@media (max-width:820px){
  body{font-size:14px}
  main{padding:18px 14px 120px}
  .title{font-size:26px}
  .hero h1{font-size:26px}
  .hero p{font-size:14px}
  h2{font-size:18px}
  .greet{gap:14px}
  .logo.big{width:46px;height:46px;border-radius:14px}
  .greet h1{font-size:clamp(25px,7.4vw,30px);line-height:1.12}
  .sug{padding:12px 14px;gap:12px;font-size:14px;border-radius:20px;min-height:0;flex-basis:100%}
  .sug .tile{width:36px;height:36px;border-radius:12px}
  .libcard{padding:18px;border-radius:24px;gap:10px}
  .libcard .big{font-size:36px}
  .libcard .big small{font-size:14px}
  .stats{gap:10px}
  .stat{padding:12px 14px;gap:6px;border-radius:18px}
  .stat b{font-size:22px}
  .stat span{font-size:12px}
  .stat .tile{width:34px;height:34px;border-radius:11px}
  .overview{gap:12px}
  .sc{flex-basis:132px;padding:8px;border-radius:20px}
  .sc .n{font-size:13px}
  .step{padding:14px;gap:12px}
  .btn{height:40px;padding:0 14px;font-size:14px}
  .field input{height:50px;font-size:16px}
  .searchbar .btn{height:48px;font-size:15px}
  .chip{height:36px;padding:0 14px;font-size:13px}
  .row{padding:8px 10px;gap:12px;border-radius:18px}
  .row img{width:44px;height:44px;border-radius:10px}
  .row .t,.row .main > span:first-child{font-size:14px}
  .fh-txt h2{font-size:22px}
  .folder-head{gap:16px}
  .folder-head img{width:112px;height:112px;border-radius:18px}
  .composer{bottom:calc(86px + env(safe-area-inset-bottom));padding:6px 6px 6px 16px;border-radius:28px}
  .composer input{height:44px;font-size:16px}
  .round{width:44px;height:44px}
  .nav-item{font-size:10.5px}
  .player{padding:6px 8px 6px 6px;border-radius:22px}
  .player img{width:44px;height:44px;border-radius:11px}
  .pl-meta b{font-size:14px}
  .np-inner{padding:14px 18px 28px;gap:14px}
  .np-main{flex-direction:column;align-items:stretch;gap:20px}
  .np-art{flex:none;align-self:center}
  .np-art img{width:min(78vw,40vh,340px)}
  .np-side{flex:none;max-width:none;gap:16px}
  .np-title h2{font-size:22px}
  .np-title p{font-size:15px}
  .np-ctrl .round{width:44px;height:44px}
  .np-ctrl .round.send.big{width:66px;height:66px}
  .np-vol{display:none}
  #np-list{max-height:none}
}

/* lecteur plein écran : une colonne, pochette au centre */
.np-main{flex-direction:column;flex-wrap:nowrap;align-items:center;justify-content:flex-start;gap:24px}
.np-art{flex:none;align-self:center}
.np-art img{width:min(42vh,420px)}
.np-side{flex:none;width:min(100%,560px);max-width:none}
.np-title{text-align:center}

/* ---------------- artiste, paroles */
.artist-card{border:0;width:100%;text-align:left;cursor:pointer;color:var(--text)}
.artist-card:hover{box-shadow:var(--shadow-lg)}
.np-tabs{display:flex;gap:6px}
.np-tab{height:36px;padding:0 14px;border-radius:18px;border:0;background:rgba(255,255,255,.12);color:#fff;font:600 14px Inter,sans-serif;cursor:pointer}
.np-tab.on{background:#fff;color:#1E1A23}
#np-lyrics{display:flex;flex-direction:column;gap:2px;max-height:46vh;overflow-y:auto;padding:4px 0 40px;position:relative}
#np-lyrics[hidden]{display:none}
.lline{border:0;background:none;color:#fff;text-align:left;padding:7px 10px;border-radius:12px;font:600 18px/1.35 Inter,sans-serif;opacity:.5;cursor:pointer}
.lline:hover{background:rgba(255,255,255,.08)}
.lline.on{opacity:1;font-size:21px}
.lplain{margin:0;padding:8px 10px;white-space:pre-line;font-size:16px;line-height:1.6;opacity:.9}
@media (max-width:820px){
  #np-lyrics{max-height:52vh}
  .lline{font-size:16px}.lline.on{font-size:18px}
}
#results{display:flex;flex-direction:column;gap:24px}
#results:empty{display:none}
.np.np-lyr .np-art img{width:min(20vh,200px);border-radius:16px}
.np.np-lyr .np-vol{display:none}
.np.np-lyr .np-main{gap:16px}
.np.np-lyr .np-side{gap:14px}
.np.np-lyr #np-lyrics{max-height:calc(100vh - 20vh - 330px);min-height:180px}

/* ---------------- connexion, comptes */
.auth{position:fixed;inset:0;z-index:30;display:grid;place-items:center;padding:24px 16px;background:var(--bg);background-image:radial-gradient(800px 500px at 85% -10%,rgba(139,92,246,.16),transparent 60%),radial-gradient(800px 500px at 10% 0%,rgba(255,77,109,.18),transparent 60%);overflow-y:auto}
.auth-card{width:100%;max-width:380px;display:flex;flex-direction:column;gap:12px;padding:32px 24px;border-radius:28px;background:rgba(255,255,255,.92);box-shadow:var(--shadow-lg);text-align:center}
.auth-card .logo{margin:0 auto 4px}
.auth-card h1{margin:0;font:700 26px var(--head);letter-spacing:-.02em}
.auth-card p{margin:0 0 6px}
.auth-card input{height:52px;padding:0 18px;border-radius:16px;border:1px solid var(--line);background:#fff;font-size:17px;outline:none}
.auth-card input:focus{border-color:var(--accent)}
.auth-card input.pw{-webkit-text-security:disc}
.auth-card .btn{height:52px;font-size:16px}
.auth-msg{min-height:20px;color:var(--err);font-size:14px}
body.auth-open .app,body.auth-open .player{visibility:hidden}
.acc-list{display:flex;flex-direction:column;gap:6px}
.acc{display:flex;align-items:center;gap:10px;flex-wrap:wrap;padding:8px 12px;border-radius:14px;background:var(--panel2)}
.acc b{flex:0 0 auto}.acc .small{flex:1}
.acc code{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
a.btn{text-decoration:none;color:inherit}
a.round{text-decoration:none}


/* ================================================================ DA « pansement » */
body{background:var(--bg);background-image:none}
h1,h2,h3,.title,.hero h1,.greet h1{font-family:var(--head);font-weight:800;letter-spacing:-.035em}
:focus-visible{outline:3px solid #fff;outline-offset:3px}
::selection{background:var(--accent);color:var(--ink)}

/* menu */
.side{background:var(--panel);backdrop-filter:none;box-shadow:var(--shadow-lg)}
.brand{font-weight:800;letter-spacing:-.02em}
.logo{box-shadow:0 5px 0 rgba(0,0,0,.3);transform:rotate(-4deg)}
.nav-item{font-weight:600}
.nav-item:hover{background:var(--panel2);color:#fff}
.nav-item.active{background:var(--accent);color:var(--ink);box-shadow:0 6px 0 rgba(0,0,0,.3)}
.nav-item.active svg{stroke:currentColor}
.badge{background:var(--pansement);color:var(--ink)}
.side-foot{background:var(--panel2)}

/* boutons : ombres pleines, le geste « s'enfonce » */
.btn{border-color:var(--line);background:var(--panel);color:#fff;box-shadow:0 5px 0 rgba(0,0,0,.3);border-radius:999px}
.btn:hover{border-color:var(--muted);box-shadow:0 5px 0 rgba(0,0,0,.3)}
.btn:active{transform:translateY(3px);box-shadow:0 2px 0 rgba(0,0,0,.3)}
.btn.primary{background:var(--accent);border-color:var(--accent);color:var(--ink);box-shadow:0 6px 0 rgba(0,0,0,.32)}
.btn.ghost{box-shadow:none;color:var(--muted)}
.btn.ghost:hover{background:var(--panel);color:#fff}
.round{background:var(--panel2);color:#fff}
.round:hover{background:var(--panel)}
.round.send{background:var(--accent);color:var(--ink);box-shadow:0 6px 0 rgba(0,0,0,.3)}
.chip{background:transparent;border:1.5px solid var(--line);color:var(--muted);font-weight:600}
.chip.active{background:var(--pansement);border-color:var(--pansement);color:var(--ink)}
.tag{background:var(--panel2);color:#fff}

/* la recherche : un pansement (bouts troués, compresse au milieu) */
.field{transform:rotate(-1deg)}
.field input{height:60px;border:0;border-radius:30px;padding:0 24px 0 92px;color:var(--ink);font-weight:600;box-shadow:0 10px 0 rgba(0,0,0,.3);
  background:radial-gradient(circle,rgba(29,10,34,.28) 2.4px,transparent 2.8px) 0 0/12px 12px,var(--compresse);
  background:linear-gradient(90deg,transparent 46px,var(--compresse) 46px,var(--compresse) calc(100% - 46px),transparent calc(100% - 46px)),
    radial-gradient(circle,rgba(29,10,34,.28) 2.4px,transparent 2.8px) 0 0/12px 12px,var(--pansement)}
.field input::placeholder{color:rgba(29,10,34,.6)}
.field input:focus{box-shadow:0 10px 0 rgba(0,0,0,.3),0 0 0 3px #fff}
.field svg{left:60px;top:19px;color:var(--ink);width:22px;height:22px;stroke-width:2.6}
.searchbar .btn{height:60px}
.composer{background:linear-gradient(90deg,transparent 44px,var(--compresse) 44px,var(--compresse) calc(100% - 44px),transparent calc(100% - 44px)),
    radial-gradient(circle,rgba(29,10,34,.28) 2.4px,transparent 2.8px) 0 0/12px 12px,var(--pansement);
  border:0;backdrop-filter:none;padding:8px 52px 8px 60px;box-shadow:0 12px 0 rgba(0,0,0,.32);transform:rotate(-1deg)}
.composer:focus-within{box-shadow:0 12px 0 rgba(0,0,0,.32),0 0 0 3px #fff}
.composer input{color:var(--ink);font-weight:600}
.composer input::placeholder{color:rgba(29,10,34,.6)}
.composer .round{background:transparent;color:var(--ink)}
.composer .round.send{background:var(--ink);color:var(--pansement);box-shadow:none}

/* accueil */
.home > .glow{top:-220px;height:560px;background:radial-gradient(closest-side,rgba(255,77,109,.5),rgba(255,77,109,0) 72%);filter:none}
.home > .paillettes{position:absolute;z-index:0;left:-48px;right:-48px;top:-40px;width:calc(100% + 96px);height:520px;pointer-events:none}
.greet h1{font-size:clamp(40px,6vw,76px);line-height:.96;max-width:12ch}
.greet h1 em{font-style:normal;background:none;color:#fff;-webkit-text-fill-color:currentColor}
.greet h1 .l2{display:block;color:var(--accent)}
.sug{background:var(--panel);border:0;backdrop-filter:none;box-shadow:var(--shadow);color:#fff}
.sug:hover{transform:translateY(-2px) rotate(-.5deg);box-shadow:var(--shadow-lg)}
.libcard{background:var(--accent);color:var(--ink);box-shadow:var(--shadow-lg);transform:rotate(-.6deg)}
.libcard::after{background:rgba(255,230,213,.25)}
.libcard .lab{font-weight:700}
.split{background:rgba(29,10,34,.22)}
.libcard .btn{background:var(--ink);border-color:var(--ink);color:#fff}
.stat{box-shadow:var(--shadow)}
.stat b{font-family:var(--head);font-weight:800}
.step{box-shadow:var(--shadow)}
.step b{font-family:var(--head)}
.mini{background:var(--panel);color:#fff;box-shadow:var(--shadow)}

/* pochettes « collées » : penchées, un bout de pansement en haut à droite */
.sc{background:transparent;box-shadow:none;padding:12px 4px 4px;position:relative;overflow:visible}
.sc:nth-child(odd){transform:rotate(-2deg)}
.sc:nth-child(even){transform:rotate(1.6deg)}
.sc:hover{transform:rotate(0) translateY(-3px)}
.sc img{border-radius:16px;box-shadow:0 10px 0 rgba(0,0,0,.3)}
.sc::before,.card::before,.np-art::before{content:"";position:absolute;z-index:2;top:2px;right:14px;width:66px;height:22px;border-radius:11px;transform:rotate(18deg);
  background:linear-gradient(90deg,var(--pansement) 32%,var(--compresse) 32% 68%,var(--pansement) 68%);box-shadow:0 3px 0 rgba(0,0,0,.25)}
.sc .n{font-family:var(--head);font-weight:800;font-size:16px;letter-spacing:-.02em;padding:4px 2px 0}
.shelf{padding:8px 8px 20px;margin:0 -8px}
.card{position:relative;overflow:visible;box-shadow:var(--shadow)}
.card::before{top:-8px;width:58px;height:20px}
.card .t{font-family:var(--head);font-weight:800;letter-spacing:-.02em}

/* listes */
.row,.folder,.job,.set,.empty,.banner{box-shadow:var(--shadow)}
.playrow{color:#fff}
.playrow:hover{box-shadow:var(--shadow-lg)}
.playrow.now{outline:2px solid var(--accent);background:var(--panel2)}
.trow{background:var(--panel2)}
.folder-head img{transform:rotate(-2deg);box-shadow:var(--shadow-lg);border-radius:20px}
.fh-txt h2{font-weight:800}
.set input[type=text],.set select{background:var(--panel2);color:#fff;border-color:var(--line)}
.bar{background:rgba(255,255,255,.12)}
.bar i{background:var(--accent)}
.bar.done i{background:var(--ok)}
dialog{background:var(--panel);color:#fff;box-shadow:var(--shadow-lg)}
dialog::backdrop{background:rgba(18,5,20,.7)}
.check{background:var(--panel2)}
#toast{background:var(--pansement);color:var(--ink);box-shadow:0 8px 0 rgba(0,0,0,.3)}

/* lecteur du bas : une bande rose collée */
.player{background:var(--accent);color:var(--ink);backdrop-filter:none;box-shadow:0 10px 0 rgba(0,0,0,.32);transform:rotate(.4deg)}
.pl-meta b{font-family:var(--head);font-weight:800;font-size:16px}
.pl-meta span,.pl-seek,.pl-vol{color:rgba(29,10,34,.75)}
.player .round{background:rgba(29,10,34,.14);color:var(--ink)}
.player .round.send{background:var(--ink);color:#fff;box-shadow:none}
.player .rng{background:linear-gradient(90deg,var(--ink) var(--p,0%),rgba(29,10,34,.22) var(--p,0%))}
.player .rng::-webkit-slider-thumb{background:var(--pansement);border-color:var(--ink)}
.player img{box-shadow:0 4px 0 rgba(0,0,0,.25)}

/* lecteur plein écran */
.np{background:var(--bg)}
.np::before{background:rgba(29,10,34,.5)}
.np-art{position:relative}
.np-art::before{top:-12px;right:22%;width:96px;height:28px;border-radius:14px}
.np-art img{transform:rotate(-1.5deg);box-shadow:0 18px 0 rgba(0,0,0,.35)}
.np.np-lyr .np-art::before{width:56px;height:18px;top:-8px}
.np-title h2{font-weight:800;letter-spacing:-.03em}
.np-title p{color:var(--muted);opacity:1}
.np-seek .rng{background:linear-gradient(90deg,var(--accent) var(--p,0%),rgba(255,255,255,.22) var(--p,0%))}
.np-seek .rng::-webkit-slider-thumb{background:var(--pansement);border-color:var(--ink);width:18px;height:18px}
.round.glass{backdrop-filter:none}
.round.glass.on{background:var(--pansement);color:var(--ink)}
.round.send.big{box-shadow:0 8px 0 rgba(0,0,0,.32)}
.np-tab{font-family:Figtree,sans-serif;font-weight:700}
.np-tab.on{background:var(--pansement);color:var(--ink)}
.lline{font-family:var(--head);font-weight:800;letter-spacing:-.02em;opacity:.4}
.lline.on{opacity:1}

/* connexion */
.auth{background:var(--bg);background-image:radial-gradient(700px 480px at 50% -10%,rgba(255,77,109,.45),transparent 70%)}
.auth > .paillettes{position:absolute;inset:0;width:100%;height:100%;pointer-events:none}
.auth-card{position:relative;background:var(--panel);box-shadow:var(--shadow-lg)}
.auth-card .logo{transform:rotate(-6deg)}
.auth-card h1{font-weight:800}
.auth-card input{background:var(--pansement);color:var(--ink);border:0;border-radius:27px;font-weight:600}
.auth-card input::placeholder{color:rgba(29,10,34,.55)}
.auth-card input:focus{box-shadow:0 0 0 3px #fff}
.acc{background:var(--panel2)}

@media (max-width:820px){
  .side{background:rgba(29,10,34,.97);border:1px solid var(--line);box-shadow:0 -6px 24px rgba(0,0,0,.35)}
  .greet h1{font-size:clamp(34px,10.5vw,44px)}
  .home > .paillettes{left:-14px;right:-14px;width:calc(100% + 28px);height:380px}
  .field input{height:56px}
  .field svg{top:17px}
  .sc{flex-basis:140px}
  .player{transform:none}
  .libcard{transform:none}
}
@media (prefers-reduced-motion:reduce){.paillettes{display:none}}
@media (max-width:820px){
  .row{flex-wrap:nowrap}
  .row .main{flex:1 1 0}
  .row .dur{flex:0 0 auto}
}
