/* Sona web — verre liquide : barre latérale translucide, lecteur en haut,
   grandes pochettes, lecteur plein écran avec paroles. Voir le bloc « Sona »
   à la fin du fichier pour les couleurs, la police et la matière. */

:root {
  --bg: #f5f5f7;
  --bg-elevated: #ffffff;
  --sidebar: rgba(246, 246, 248, 0.72);
  --glass: rgba(255, 255, 255, 0.72);
  --hairline: rgba(0, 0, 0, 0.08);
  --fill: rgba(0, 0, 0, 0.05);
  --fill-strong: rgba(0, 0, 0, 0.09);
  --text: #1d1d1f;
  --text-2: rgba(29, 29, 31, 0.62);
  --text-3: rgba(29, 29, 31, 0.4);
  --accent: #fa2d6c;
  --accent-2: #8b5cf6;
  --accent-soft: rgba(250, 45, 108, 0.12);
  --shadow-art: 0 6px 18px rgba(0, 0, 0, 0.12), 0 1px 3px rgba(0, 0, 0, 0.08);
  --shadow-pop: 0 18px 50px rgba(0, 0, 0, 0.18);
  --radius-art: 10px;
  --sidebar-w: 260px;
  --topbar-h: 68px;
  --ease: cubic-bezier(0.25, 0.1, 0.25, 1);
  --spring: cubic-bezier(0.34, 1.4, 0.64, 1);
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #000000;
    --bg-elevated: #1c1c1e;
    --sidebar: rgba(28, 28, 30, 0.62);
    --glass: rgba(30, 30, 32, 0.72);
    --hairline: rgba(255, 255, 255, 0.09);
    --fill: rgba(255, 255, 255, 0.07);
    --fill-strong: rgba(255, 255, 255, 0.12);
    --text: #f5f5f7;
    --text-2: rgba(245, 245, 247, 0.62);
    --text-3: rgba(245, 245, 247, 0.38);
    --accent-soft: rgba(250, 45, 108, 0.18);
    --shadow-art: 0 8px 24px rgba(0, 0, 0, 0.45), 0 1px 3px rgba(0, 0, 0, 0.3);
    --shadow-pop: 0 24px 60px rgba(0, 0, 0, 0.6);
    color-scheme: dark;
  }
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; height: 100%; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", Inter, "Helvetica Neue", system-ui, sans-serif;
  font-size: 15px;
  line-height: 1.4;
  -webkit-font-smoothing: antialiased;
  overflow: hidden;
}
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
input { font: inherit; color: inherit; }
a { color: inherit; text-decoration: none; }
img { display: block; }
.icon { width: 1em; height: 1em; fill: currentColor; flex: none; }
::selection { background: var(--accent-soft); }

/* Barres de défilement : une fine pilule qui flotte, loin des coins arrondis du
   panneau, plus marquée au survol. Les navigateurs qui savent dessiner
   ::-webkit-scrollbar (Chrome, Edge, Safari, Sona pour Windows) l'utilisent :
   scrollbar-width / scrollbar-color doivent alors rester à « auto », sinon
   Chromium les ignore et remet la barre grise du système. Firefox : version fine. */
.scroll { overflow-y: auto; --sb: color-mix(in srgb, var(--text) 16%, transparent); --sb-on: color-mix(in srgb, var(--text) 34%, transparent); }
@supports not selector(::-webkit-scrollbar) {
  .scroll { scrollbar-width: thin; scrollbar-color: var(--sb) transparent; }
}
.scroll::-webkit-scrollbar { width: 14px; height: 14px; background: transparent; }
.scroll::-webkit-scrollbar-track { background: transparent; margin: 22px 0; }
.scroll::-webkit-scrollbar-thumb { min-height: 56px; border-radius: 99px; border: solid transparent; border-width: 4px 7px 4px 1px; background: color-mix(in srgb, var(--text) 9%, transparent) padding-box; }
.scroll:hover::-webkit-scrollbar-thumb { background-color: var(--sb); }
.scroll::-webkit-scrollbar-thumb:hover { background-color: var(--sb-on); border-width: 3px 6px 3px 0; }
.scroll::-webkit-scrollbar-thumb:active { background-color: color-mix(in srgb, var(--text) 48%, transparent); border-width: 3px 6px 3px 0; }
.scroll::-webkit-scrollbar-button, .scroll::-webkit-scrollbar-corner { display: none; width: 0; height: 0; background: transparent; }
/* Menu : il défile toujours (molette, glisser), mais sans aucune barre. */
.side-list { scrollbar-width: none; }
.side-list::-webkit-scrollbar { display: none; width: 0; height: 0; }

/* ── Mise en page ─────────────────────────────────────────────────────── */

.app {
  display: grid;
  grid-template-columns: var(--sidebar-w) 1fr;
  grid-template-rows: var(--topbar-h) 1fr;
  height: 100vh;
  height: 100dvh;
}

.sidebar {
  grid-row: 1 / -1;
  background: var(--sidebar);
  backdrop-filter: saturate(180%) blur(30px);
  -webkit-backdrop-filter: saturate(180%) blur(30px);
  border-right: 1px solid var(--hairline);
  display: flex;
  flex-direction: column;
  padding: 18px 12px 12px;
  gap: 4px;
  min-height: 0;
}
.brand { display: flex; align-items: center; gap: 10px; padding: 4px 10px 14px; font-size: 22px; font-weight: 700; letter-spacing: -0.02em; }
.brand-mark { width: 30px; height: 30px; }
.brand-mark svg { width: 18px; height: 18px; }
.side-search { position: relative; margin: 0 4px 12px; }
.side-search input {
  width: 100%; height: 34px; border: 0; border-radius: 9px; padding: 0 12px 0 32px;
  background: var(--fill); outline: none; font-size: 14px;
  transition: background 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.side-search input:focus { background: var(--bg-elevated); box-shadow: 0 0 0 3px var(--accent-soft); }
.side-search .icon { position: absolute; left: 10px; top: 9px; font-size: 16px; color: var(--text-3); }
.side-section { font-size: 11px; font-weight: 600; color: var(--text-3); text-transform: uppercase; letter-spacing: 0.06em; padding: 16px 12px 6px; }
.side-link {
  display: flex; align-items: center; gap: 11px; width: 100%; padding: 7px 12px; border-radius: 8px;
  font-size: 14.5px; font-weight: 500; color: var(--text); text-align: left;
  transition: background 0.15s var(--ease);
}
.side-link .icon { font-size: 19px; color: var(--accent); }
.side-link:hover { background: var(--fill); }
.side-link.active { background: var(--fill-strong); font-weight: 600; }
.side-link .thumb { width: 22px; height: 22px; border-radius: 5px; object-fit: cover; background: var(--fill); }
.side-list { flex: 1; min-height: 0; }
.side-user { display: flex; align-items: center; gap: 10px; padding: 10px 10px 4px; border-top: 1px solid var(--hairline); margin-top: 8px; border-radius: 8px; }
.side-user:hover .gear { color: var(--text); }
.side-user .avatar { width: 30px; height: 30px; font-size: 13px; }
.side-user .name { font-size: 13.5px; font-weight: 600; flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.side-user .gear { color: var(--text-3); font-size: 18px; display: grid; }
.avatar { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; background: var(--fill-strong); flex: none; }
.avatar-fallback { display: grid; place-items: center; font-weight: 700; color: var(--text); }
.brand-icon { width: 30px; height: 30px; border-radius: 8px; box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25); }

/* ── Lecteur du haut ──────────────────────────────────────────────────── */

.topbar {
  grid-column: 2;
  display: grid;
  grid-template-columns: minmax(170px, 1fr) minmax(340px, 560px) minmax(170px, 1fr);
  align-items: center;
  gap: 18px;
  padding: 0 22px;
  background: var(--glass);
  backdrop-filter: saturate(180%) blur(30px);
  -webkit-backdrop-filter: saturate(180%) blur(30px);
  border-bottom: 1px solid var(--hairline);
  z-index: 5;
}
.transport { display: flex; align-items: center; gap: 6px; }
.tbtn {
  width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; font-size: 20px; color: var(--text);
  transition: background 0.15s var(--ease), transform 0.15s var(--ease), color 0.15s;
}
.tbtn:hover { background: var(--fill); }
.tbtn:active { transform: scale(0.9); }
.tbtn.big { width: 42px; height: 42px; font-size: 26px; }
.tbtn.on { color: var(--accent); }
.tbtn.small { font-size: 17px; color: var(--text-2); }
.tbtn.small:hover { color: var(--text); }

.lcd {
  display: grid; grid-template-columns: 48px 1fr; gap: 12px; align-items: center;
  height: 52px; padding: 0 12px 0 2px; border-radius: 8px;
  background: var(--fill); border: 1px solid var(--hairline); overflow: hidden; position: relative;
}
.lcd.idle { grid-template-columns: 1fr; place-items: center; color: var(--text-3); }
.lcd .art { width: 48px; height: 48px; border-radius: 6px; object-fit: cover; background: var(--fill-strong); cursor: pointer; transition: transform 0.2s var(--ease); }
.lcd .art:hover { transform: scale(1.04); }
.lcd .meta { min-width: 0; text-align: center; cursor: pointer; }
.lcd .t { font-size: 13.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lcd .a { font-size: 12.5px; color: var(--text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lcd .progress { position: absolute; left: 50px; right: 0; bottom: 0; height: 3px; background: transparent; cursor: pointer; }
.lcd .progress .fill { height: 100%; background: var(--text-2); width: 0; transition: width 0.25s linear; }
.lcd .progress::before { content: ""; position: absolute; inset: -6px 0 0; }

.right-tools { display: flex; align-items: center; justify-content: flex-end; gap: 4px; }
.volume { display: flex; align-items: center; gap: 6px; width: 170px; color: var(--text-2); font-size: 16px; }
.volume .slider { flex: 1; min-width: 0; }
.vol-icon { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; color: inherit; flex: none; }
.vol-icon:hover { background: var(--fill); color: var(--text); }
.more-tools { display: none !important; }
.vol-pct { font-size: 11.5px; font-variant-numeric: tabular-nums; min-width: 34px; text-align: right; color: var(--text-3); }
/* Feuille « Volume » */
.vs-main { display: grid; grid-template-columns: 40px 1fr 40px auto; align-items: center; gap: 12px; margin: 8px 0 4px; }
.vs-main .slider { height: 8px; }
.vs-step { width: 40px; height: 40px; border-radius: 50%; background: var(--fill); font-size: 22px; font-weight: 600; color: var(--text); }
.vs-step:hover { background: var(--fill-strong); }
.vs-main output { font-size: 20px; font-weight: 700; min-width: 64px; text-align: right; font-variant-numeric: tabular-nums; }
.vs-hint { font-size: 12.5px; margin: 6px 0 12px; }
.vs-hint svg { width: 12px; height: 12px; vertical-align: -1px; }
.vs-presets { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.vs-preset { display: flex; gap: 4px; }
.vs-apply { flex: 1; display: flex; justify-content: space-between; align-items: center; padding: 12px 14px; border-radius: 14px; background: var(--fill); color: var(--text); text-align: left; transition: background .2s; }
.vs-apply small { color: var(--text-2); font-variant-numeric: tabular-nums; }
.vs-apply:hover { background: var(--fill-strong); }
.vs-apply.on { background: var(--accent-soft, rgba(250,45,108,.2)); box-shadow: inset 0 0 0 1px var(--accent); }
.vs-save { width: 38px; border-radius: 12px; background: var(--fill); color: var(--text-2); display: grid; place-items: center; }
.vs-save:hover { background: var(--fill-strong); color: var(--text); }
.vs-save svg { width: 15px; height: 15px; }
@media (max-width: 1400px) { .topbar .volume { width: 140px; } .topbar .vol-pct { display: none; } }

input[type="range"].slider {
  -webkit-appearance: none; appearance: none; width: 100%; height: 4px; border-radius: 4px;
  background: linear-gradient(to right, var(--text-2) var(--p, 0%), var(--fill-strong) var(--p, 0%));
  outline: none; cursor: pointer;
}
input[type="range"].slider::-webkit-slider-thumb { -webkit-appearance: none; width: 12px; height: 12px; border-radius: 50%; background: #fff; box-shadow: 0 1px 4px rgba(0,0,0,.35); opacity: 0; transition: opacity .15s; }
input[type="range"].slider:hover::-webkit-slider-thumb { opacity: 1; }
input[type="range"].slider::-moz-range-thumb { width: 12px; height: 12px; border: 0; border-radius: 50%; background: #fff; }

/* ── Contenu ──────────────────────────────────────────────────────────── */

.content { grid-column: 2; min-height: 0; position: relative; }
.page { padding: 34px 44px 70px; animation: pageIn 0.45s var(--ease) both; }
.page.no-enter { animation: none; }
@keyframes pageIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

.page-title { font-size: 34px; font-weight: 700; letter-spacing: -0.025em; margin: 0 0 4px; }
.page-sub { color: var(--text-2); margin: 0 0 26px; font-size: 15px; }
.section { margin-top: 38px; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 14px; border-top: 1px solid var(--hairline); padding-top: 18px; }
.section-head h2 { font-size: 21px; font-weight: 700; letter-spacing: -0.015em; margin: 0; }
.section-head .more { color: var(--accent); font-size: 14px; font-weight: 500; }
.shelf-nav { display: flex; gap: 6px; }
.shelf-nav button { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--fill); color: var(--text-2); font-size: 14px; }
.shelf-nav button:hover { background: var(--fill-strong); color: var(--text); }

.shelf {
  display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 4 * 22px) / 5);
  gap: 22px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth;
  scrollbar-width: none; padding: 4px 2px 10px; margin: -4px -2px 0;
}
.shelf::-webkit-scrollbar { display: none; }
.shelf.large { grid-auto-columns: calc((100% - 2 * 22px) / 3); }
.shelf.round { grid-auto-columns: calc((100% - 6 * 22px) / 7); }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 30px 22px; }

.card { scroll-snap-align: start; text-align: left; min-width: 0; display: block; width: 100%; }
.card .art-wrap { position: relative; border-radius: var(--radius-art); overflow: hidden; box-shadow: var(--shadow-art); aspect-ratio: 1; background: var(--fill-strong); transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease); }
.card:hover .art-wrap { transform: translateY(-3px); box-shadow: var(--shadow-pop); }
.card .art-wrap img { width: 100%; height: 100%; object-fit: cover; }
.card .art-wrap::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,.35), transparent 50%); opacity: 0; transition: opacity 0.25s var(--ease); }
.card:hover .art-wrap::after { opacity: 1; }
.card .play-fab {
  position: absolute; left: 10px; bottom: 10px; width: 38px; height: 38px; border-radius: 50%;
  background: rgba(255,255,255,.92); color: #000; display: grid; place-items: center; font-size: 17px; z-index: 1;
  opacity: 0; transform: scale(0.85); transition: opacity 0.2s var(--ease), transform 0.25s var(--spring);
  box-shadow: 0 4px 14px rgba(0,0,0,.3);
}
.card:hover .play-fab { opacity: 1; transform: none; }
.card .play-fab:hover { transform: scale(1.08); }
.card .t { font-size: 14px; font-weight: 500; margin-top: 9px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card .s { font-size: 13.5px; color: var(--text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card.round .art-wrap { border-radius: 50%; }
.card.round .t, .card.round .s { text-align: center; }
.mosaic { display: grid; grid-template-columns: 1fr 1fr; width: 100%; height: 100%; }
.mosaic img { width: 100%; height: 100%; object-fit: cover; }

/* Grande carte (mix, playlist intelligente) */
.feature { position: relative; border-radius: 14px; overflow: hidden; aspect-ratio: 1.35; box-shadow: var(--shadow-art); text-align: left; color: #fff; display: block; width: 100%; scroll-snap-align: start; transition: transform 0.3s var(--ease), box-shadow 0.3s; }
.feature:hover { transform: translateY(-3px); box-shadow: var(--shadow-pop); }
.feature .bg { position: absolute; inset: 0; }
.feature .bg img { width: 100%; height: 100%; object-fit: cover; }
.feature .shade { position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,.78), rgba(0,0,0,.1) 60%); }
.feature .label { position: absolute; left: 18px; right: 18px; bottom: 16px; }
.feature .eyebrow { font-size: 11.5px; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; opacity: .75; }
.feature .title { font-size: 22px; font-weight: 700; letter-spacing: -.015em; margin-top: 2px; }
.feature .sub { font-size: 13.5px; opacity: .8; margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.feature .play-fab { position: absolute; right: 16px; bottom: 16px; width: 44px; height: 44px; border-radius: 50%; background: #fff; color: #000; display: grid; place-items: center; font-size: 19px; opacity: 0; transform: scale(.85); transition: opacity .2s, transform .25s var(--spring); }
.feature:hover .play-fab { opacity: 1; transform: none; }

/* Grille de titres (écouté récemment) */
.track-grid { display: grid; grid-auto-flow: column; grid-template-rows: repeat(4, auto); grid-auto-columns: calc((100% - 2 * 22px) / 3); gap: 0 22px; overflow-x: auto; scrollbar-width: none; scroll-snap-type: x mandatory; }
.track-grid::-webkit-scrollbar { display: none; }
.mini { display: grid; grid-template-columns: 46px 1fr auto; gap: 12px; align-items: center; padding: 7px 8px 7px 0; border-bottom: 1px solid var(--hairline); text-align: left; scroll-snap-align: start; min-width: 0; }
.mini img { width: 46px; height: 46px; border-radius: 6px; object-fit: cover; background: var(--fill-strong); box-shadow: 0 1px 3px rgba(0,0,0,.15); }
.mini .t { font-size: 14px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mini .s { font-size: 13px; color: var(--text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mini:hover .t { color: var(--accent); }
.mini.current .t { color: var(--accent); }

/* Liste de titres */
.tracks { margin-top: 8px; }
.tr {
  display: grid; grid-template-columns: 36px 44px minmax(0, 3fr) minmax(0, 2fr) 60px 100px;
  gap: 14px; align-items: center; padding: 6px 10px; border-radius: 8px; text-align: left; width: 100%;
  transition: background 0.12s var(--ease);
}
.tr:nth-child(odd) { background: var(--fill); }
.tr:hover { background: var(--fill-strong); }
.tr .n { color: var(--text-3); font-size: 14px; text-align: center; font-variant-numeric: tabular-nums; }
.tr .n .icon { display: none; color: var(--text); font-size: 15px; margin: 0 auto; }
.tr:hover .n > span:not(.bars), .tr:hover .n .bars { display: none; }
.tr:hover .n .icon { display: block; }
.tr img { width: 44px; height: 44px; border-radius: 5px; object-fit: cover; background: var(--fill-strong); }
.tr .ti { font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tr .ar { font-size: 13.5px; color: var(--text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tr .al { font-size: 13.5px; color: var(--text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tr .d { font-size: 13.5px; color: var(--text-3); text-align: right; font-variant-numeric: tabular-nums; }
.tr .acts { display: flex; gap: 2px; justify-content: flex-end; opacity: 0; transition: opacity .15s; }
.tr:hover .acts { opacity: 1; }
.tr .acts button { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; color: var(--text-2); font-size: 16px; }
.tr .acts button:hover { background: var(--fill-strong); color: var(--accent); }
.tr .acts button.liked { color: var(--accent); }
.tr.current .ti, .tr.current .n { color: var(--accent); }
.tr.current .n > span:not(.bars) { display: none; }
.tr .n .bars { margin: 0 auto; display: flex; justify-content: center; }
.tr.current:hover .n .bars { display: none; }
.link { cursor: pointer; }
.link:hover { text-decoration: underline; }

/* Barres animées du titre en cours (comme Apple Music) : quatre barres de
   rythmes différents ; en pause, elles se figent à mi-hauteur. */
.bars { display: inline-flex; gap: 2px; align-items: flex-end; height: 16px; }
.bars i { width: 3px; height: 4px; background: var(--accent); border-radius: 2px; transform-origin: bottom; animation: eq 1s ease-in-out infinite; }
.bars i:nth-child(1) { animation-duration: .85s; }
.bars i:nth-child(2) { animation-duration: 1.15s; animation-delay: -.4s; }
.bars i:nth-child(3) { animation-duration: .7s; animation-delay: -.2s; }
.bars i:nth-child(4) { animation-duration: 1.0s; animation-delay: -.65s; }
.bars.paused i { animation-play-state: paused; height: 6px; }
@keyframes eq { 0%, 100% { height: 4px; } 25% { height: 14px; } 50% { height: 7px; } 75% { height: 16px; } }
@media (prefers-reduced-motion: reduce) { .bars i { animation: none; height: 8px; } }

/* En-tête d'album / playlist */
.hero { position: relative; display: grid; grid-template-columns: 270px 1fr; gap: 34px; align-items: end; padding: 10px 0 26px; }
.hero-art { width: 270px; height: 270px; border-radius: 12px; object-fit: cover; box-shadow: var(--shadow-pop); background: var(--fill-strong); }
.hero-art.round { border-radius: 50%; }
.hero .kind { font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .07em; color: var(--text-2); }
.hero h1 { font-size: 40px; font-weight: 700; letter-spacing: -0.03em; margin: 6px 0 4px; line-height: 1.08; }
.hero .by { font-size: 21px; color: var(--accent); font-weight: 500; }
.hero .info { color: var(--text-2); font-size: 13.5px; margin-top: 8px; }
.hero .actions { display: flex; gap: 12px; margin-top: 22px; }
.hero-glow { position: absolute; inset: -34px -44px auto; height: 380px; z-index: -1; overflow: hidden; pointer-events: none; }
.hero-glow img { width: 100%; height: 100%; object-fit: cover; filter: blur(80px) saturate(1.6); opacity: .45; transform: scale(1.3); }
.hero-glow::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to bottom, transparent 30%, var(--bg)); }

.btn {
  display: inline-flex; align-items: center; gap: 8px; height: 36px; white-space: nowrap; padding: 0 20px; border-radius: 8px;
  background: var(--accent); color: var(--on-accent, #fff); font-weight: 600; font-size: 14.5px;
  transition: filter .15s, transform .15s var(--ease);
}
.btn:hover { filter: brightness(1.08); }
.btn:active { transform: scale(.97); }
.btn.ghost { background: var(--fill-strong); color: var(--accent); }
.btn .icon { font-size: 15px; }

/* Recherche */
.search-hero { position: relative; display: block; max-width: 680px; }
.search-hero input {
  display: block; width: 100%; height: 50px; border-radius: 12px; border: 0; padding: 0 18px 0 48px; font-size: 18px;
  background: var(--fill); outline: none; transition: box-shadow .2s, background .2s;
}
.search-hero input:focus { background: var(--bg-elevated); box-shadow: 0 0 0 4px var(--accent-soft); }
.search-hero .icon { position: absolute; left: 17px; top: 50%; transform: translateY(-50%); font-size: 19px; color: var(--text-3); pointer-events: none; }
.top-result { display: grid; grid-template-columns: 1fr 2fr; gap: 26px; }
.top-card { background: var(--fill); border-radius: 14px; padding: 22px; text-align: left; transition: background .2s; display: flex; flex-direction: column; justify-content: flex-end; min-height: 250px; }
.top-card:hover { background: var(--fill-strong); }
.top-card img { width: 110px; height: 110px; object-fit: cover; box-shadow: var(--shadow-art); border-radius: 8px; margin-bottom: 18px; }
.top-card img.round { border-radius: 50%; }
.top-card .t { font-size: 24px; font-weight: 700; letter-spacing: -.02em; }
.top-card .s { color: var(--text-2); margin-top: 2px; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 16px; }
.chip { padding: 7px 14px; border-radius: 999px; background: var(--fill); font-size: 13.5px; font-weight: 500; }
.chip:hover { background: var(--fill-strong); }

/* États */
.empty { text-align: center; padding: 90px 20px; color: var(--text-2); }
.empty .big { font-size: 46px; margin-bottom: 10px; }
.empty h3 { color: var(--text); font-size: 20px; margin: 0 0 6px; }
.skeleton { background: linear-gradient(90deg, var(--fill) 25%, var(--fill-strong) 50%, var(--fill) 75%); background-size: 200% 100%; animation: shimmer 1.3s infinite; border-radius: var(--radius-art); }
@keyframes shimmer { to { background-position: -200% 0; } }
.sk-card { aspect-ratio: 1; }
.sk-line { height: 12px; margin-top: 10px; border-radius: 6px; width: 70%; }

/* Toast */
.toast {
  position: fixed; left: 50%; bottom: 32px; transform: translate(-50%, 20px); opacity: 0;
  background: var(--glass); backdrop-filter: blur(30px) saturate(180%); -webkit-backdrop-filter: blur(30px) saturate(180%);
  border: 1px solid var(--hairline); padding: 11px 18px; border-radius: 12px; font-weight: 500; font-size: 14px;
  box-shadow: var(--shadow-pop); transition: opacity .25s var(--ease), transform .35s var(--spring); z-index: 50; pointer-events: none;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ── Lecteur plein écran ──────────────────────────────────────────────── */

.np {
  position: fixed; inset: 0; z-index: 30; color: #fff; display: grid; grid-template-rows: auto 1fr;
  opacity: 0; pointer-events: none; transform: translateY(24px) scale(.985);
  transition: opacity .4s var(--ease), transform .5s var(--ease);
  background: #111;
  overflow: hidden;
}
.np.open { opacity: 1; pointer-events: auto; transform: none; }
.np-bg { position: absolute; inset: -20%; z-index: 0; }
.np-bg img { width: 100%; height: 100%; object-fit: cover; filter: blur(90px) saturate(1.8) brightness(.75); transform: scale(1.1); animation: drift 30s ease-in-out infinite alternate; }
@keyframes drift { from { transform: scale(1.1) rotate(0deg); } to { transform: scale(1.35) rotate(8deg); } }
.np-bg::after { content: ""; position: absolute; inset: 0; background: rgba(0,0,0,.28); }
/* Fond vivant (WebGL) : par-dessus la pochette floue, qui reste en secours. */
.np-gl { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; transition: opacity 1.2s var(--ease); }
.np-gl.on { opacity: 1; }
.np-bg:has(.np-gl.on) img { animation: none; }
.np-top { position: relative; z-index: 1; display: flex; justify-content: space-between; align-items: center; padding: 18px 26px; }
.np-top .tbtn { color: #fff; }
.np-top .tbtn:hover { background: rgba(255,255,255,.14); }
.np-tabs { display: flex; gap: 4px; background: rgba(255,255,255,.12); padding: 3px; border-radius: 10px; }
.np-tabs button { padding: 6px 16px; border-radius: 8px; font-size: 13.5px; font-weight: 600; color: rgba(255,255,255,.7); }
.np-tabs button.on { background: rgba(255,255,255,.22); color: #fff; }
.np-body { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(300px, 460px) minmax(0, 1fr); gap: 7vw; padding: 0 7vw 5vh; min-height: 0; align-items: center; }
.np-left { display: flex; flex-direction: column; gap: 22px; }
.np-art { width: 100%; aspect-ratio: 1; border-radius: 14px; object-fit: cover; box-shadow: 0 30px 80px rgba(0,0,0,.5); transition: transform .5s var(--spring); }
/* Lecteur plein écran sur ordinateur : la pochette rapetisse avec la hauteur
   de la fenêtre, pour que commandes et volume restent toujours visibles. */
.np:not(.mobile) .np-art { width: min(100%, max(140px, calc(100vh - 520px))); align-self: center; }
.np:not(.mobile) .np-volume { color: rgba(255,255,255,.7); }
.np:not(.mobile) .np-volume .slider { flex: 1; background: linear-gradient(to right, rgba(255,255,255,.85) var(--p, 0%), rgba(255,255,255,.22) var(--p, 0%)); }
.np:not(.mobile) .np-volume .vol-icon { color: rgba(255,255,255,.75); width: 34px; height: 34px; font-size: 18px; }
.np:not(.mobile) .np-volume .vol-pct { color: rgba(255,255,255,.6); }
@media (max-height: 760px) {
  .np:not(.mobile) .np-left { gap: 12px; }
  .np:not(.mobile) .np-transport .tbtn.big { width: 60px; height: 60px; }
  .np:not(.mobile) .np-body { padding-bottom: 2vh; }
}
.np.paused .np-art { transform: scale(.88); }
.np-meta { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.np-meta .t { font-size: 22px; font-weight: 700; letter-spacing: -.015em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.np-meta .a { font-size: 18px; color: rgba(255,255,255,.65); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.np-meta .tbtn { color: #fff; }
.np-meta .tbtn.on { color: #fff; }
.np-progress input[type="range"].slider { background: linear-gradient(to right, rgba(255,255,255,.85) var(--p, 0%), rgba(255,255,255,.22) var(--p, 0%)); height: 6px; }
.np-times { display: flex; justify-content: space-between; font-size: 12px; color: rgba(255,255,255,.55); margin-top: 8px; font-variant-numeric: tabular-nums; }
.np-transport { display: flex; justify-content: center; align-items: center; gap: 30px; }
.np-transport .tbtn { color: #fff; width: 56px; height: 56px; font-size: 32px; }
.np-transport .tbtn.big { width: 72px; height: 72px; font-size: 46px; }
.np-transport .tbtn:hover { background: rgba(255,255,255,.12); }
.np-transport .tbtn.small { font-size: 20px; color: rgba(255,255,255,.6); width: 40px; height: 40px; }
.np-transport .tbtn.small.on { color: #fff; }
/* Karaoké : bouton « Chante » et curseur « Voix ». */
.np-sing { display: flex; align-items: center; gap: 14px; }
.np-sing .tbtn { color: rgba(255,255,255,.7); width: 44px; height: 44px; font-size: 22px; flex: none; }
.np-sing .tbtn.on { color: #000; background: #fff; }
.np-sing .tbtn:not(.on):hover { background: rgba(255,255,255,.12); }
.np-sing-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.np-sing-head { display: flex; justify-content: space-between; font-size: 13px; font-weight: 600; color: rgba(255,255,255,.75); }
.np-sing-head span:last-child { font-variant-numeric: tabular-nums; }
.np-sing input[type="range"].slider { background: linear-gradient(to right, rgba(255,255,255,.85) var(--p, 0%), rgba(255,255,255,.22) var(--p, 0%)); height: 6px; }
.np-sing-presets { display: flex; gap: 6px; flex-wrap: wrap; }
.np-sing-presets button { font: inherit; font-size: 12px; font-weight: 600; color: #fff; background: rgba(255,255,255,.12); border: 0; border-radius: 999px; padding: 5px 12px; cursor: pointer; }
.np-sing-presets button:hover { background: rgba(255,255,255,.2); }
.np-sing-presets button.on { background: #fff; color: #000; }
.np-sing-presets button.clear { margin-left: auto; color: rgba(255,255,255,.7); }
.np-sing-status { min-height: 16px; font-size: 12px; color: rgba(255,255,255,.55); }

.np-right { height: 100%; min-height: 0; position: relative; }
.lyrics {
  /* Marges latérales : la lueur des mots tenus et le bord des lignes longues ne sont plus coupés.
     `position: relative` : `offsetTop` des lignes se lit dans le défilement. */
  position: relative; height: 100%; overflow-y: auto; overflow-x: hidden; scrollbar-width: none; padding: 38vh clamp(20px, 3vw, 40px) 45vh;
  overscroll-behavior: contain; touch-action: pan-y;
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 18%, #000 75%, transparent);
  mask-image: linear-gradient(to bottom, transparent, #000 18%, #000 75%, transparent);
}
.lyrics::-webkit-scrollbar { display: none; }
.lyrics p {
  font-size: clamp(26px, 2.6vw, 40px); font-weight: 800; letter-spacing: -.02em; line-height: 1.2;
  margin: 0 0 .7em; color: rgba(255,255,255,.32); cursor: pointer; transform-origin: left center;
  /* Les lignes inactives sont un peu plus petites ; la ligne chantée reprend sa taille
     naturelle (jamais plus large que la colonne : rien ne déborde, rien n'est coupé). */
  transform: scale(.94); max-width: 100%; overflow-wrap: anywhere; hyphens: auto; -webkit-hyphens: auto;
  transition: color .5s var(--ease), filter .6s var(--ease), transform .7s cubic-bezier(.2, .8, .2, 1), opacity .5s;
  filter: blur(1.4px); will-change: transform;
  animation: lyr-in .7s cubic-bezier(.2, .8, .2, 1) backwards; animation-delay: calc(var(--i, 0) * 45ms);
}
@keyframes lyr-in { from { opacity: 0; transform: translateY(18px) scale(.94); filter: blur(6px); } }
.lyrics p:hover { color: rgba(255,255,255,.6); filter: none; }
.lyrics p.on { color: #fff; filter: none; transform: scale(1); }
.lyrics p.near { filter: blur(.6px); }
html[data-lyrblur="off"] .lyrics p, html[data-lyrblur="off"] .lyrics p.near { filter: none; }
@media (prefers-reduced-motion: reduce) { .lyrics p { animation: none; transition: color .3s, opacity .3s; } }
.lyrics.plain p { filter: none; color: rgba(255,255,255,.85); cursor: default; font-size: 26px; }
.lyrics .none { color: rgba(255,255,255,.5); font-size: 22px; font-weight: 600; filter: none; }
/* Ligne en cours remplie mot par mot, de gauche à droite, avec un bord fondu
   (--p : avancement du mot, de 0 à 1, posé à chaque image). */
/* Chaque mot est une boîte à part (white-space: pre garde l'espace de fin) pour
   pouvoir monter (--g), grossir et s'illuminer (--e) quand il est tenu. */
.lyrics p .w { display: inline-block; white-space: pre-wrap; overflow-wrap: anywhere; max-width: 100%; transform-origin: 50% 85%; }
.lyrics p.on .w {
  color: transparent; -webkit-background-clip: text; background-clip: text;
  background-image: linear-gradient(90deg, #fff calc(var(--p, 0) * 116% - 8%), rgba(255,255,255,.38) calc(var(--p, 0) * 116% + 8%));
}
/* Chœurs (« (ouais) ») : en petit sous la ligne, allumés quand ils sont chantés. */
.lyrics p .bk { display: block; margin-top: .25em; font-size: .55em; font-weight: 700; letter-spacing: -.01em; line-height: 1.25; }
.lyrics p.on .bk .w {
  background-image: linear-gradient(90deg, rgba(255,255,255,.85) calc(var(--p, 0) * 116% - 8%), rgba(255,255,255,.3) calc(var(--p, 0) * 116% + 8%));
}
/* Pause instrumentale : trois points qui respirent et s'allument au fil de la pause. */
/* Note tenue : le remplissage passe aux lettres. La marge suit le grossissement (--e) :
   le mot pousse ses voisins au lieu de passer dessus, sans bouger au repos. */
.lyrics p.on .w.held {
  background-image: none; margin-inline: calc(var(--e, 0) * var(--m, 0) * 1em);
  transform: scale(calc(1 + var(--e, 0) * .08));
  filter: drop-shadow(0 0 calc(var(--e, 0) * .5em) rgba(255, 255, 255, calc(var(--e, 0) * .85)));
}
/* L'utilisateur fait défiler les paroles : plus de flou, tout se lit, et la vue
   ne se recentre pas toute seule tant qu'il touche (voir `renderLyrics`). */
.lyrics.free p, .lyrics.free p.near { filter: none; }
.lyrics.free p:not(.on):not(.gap) { color: rgba(255,255,255,.6); }
.lyrics p .w.held .ch { display: inline-block; }
.lyrics p.on .w.held .ch {
  color: transparent; -webkit-background-clip: text; background-clip: text;
  background-image: linear-gradient(90deg, #fff calc(var(--p, 0) * 116% - 8%), rgba(255,255,255,.38) calc(var(--p, 0) * 116% + 8%));
}
.lyrics p.gap { display: flex; gap: .3em; align-items: center; height: 1em; filter: none; cursor: default; }
.lyrics p.gap i { width: .3em; height: .3em; border-radius: 50%; background: currentColor; }
.lyrics p.gap:not(.on) { font-size: 18px; opacity: .45; }
.lyrics p.gap.on i { background: #fff; opacity: calc(.28 + .72 * clamp(0, var(--p, 0) * 3 - var(--k), 1)); }
.lyrics p.gap.on { animation: lyr-breath 2.6s ease-in-out infinite; }
@keyframes lyr-breath { 50% { transform: scale(1.12); } }
@media (prefers-reduced-motion: reduce) { .lyrics p.gap.on { animation: none; } }
.lyr-foot { margin-top: 2.4em; font-size: 13px; font-weight: 500; color: rgba(255,255,255,.4); display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.lyrics .lyr-later { font-size: 14px; font-weight: 500; color: rgba(255,255,255,.4); filter: none; cursor: default; margin-top: -.3em; }
/* Crédits d'un titre : sous les paroles / la file, et dans la feuille « Crédits du titre ». */
.credits { height: 100%; overflow-y: auto; scrollbar-width: none; padding: 8vh 4px 12vh; }
.credits::-webkit-scrollbar { display: none; }
.credits.light { height: auto; padding: 0 0 12px; }
.credits .none { opacity: .6; font-weight: 600; }
.credits .cr-title { margin: 0 0 14px; font-size: 22px; font-weight: 800; letter-spacing: -.02em; }
.credits .cr { display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 12px; padding: 10px 0; border-top: .5px solid rgba(127,127,127,.3); font-size: 14.5px; line-height: 1.35; }
.credits .cl { opacity: .6; }
.credits .cv { font-weight: 600; }
.credits .link { font: inherit; color: inherit; text-decoration: underline; text-decoration-color: rgba(127,127,127,.5); text-underline-offset: 3px; cursor: pointer; padding: 0; }
.credits .link:hover { color: var(--accent); }
.credits .cr-none { margin: 14px 0 0; font-size: 13px; opacity: .55; }
.feat { color: var(--text-2); }
/* Pastille des exclus et inédits (ajoutés à la main) */
.tag-exclu { display: inline-block; vertical-align: 1px; margin-left: 8px; padding: 1px 8px; border-radius: 999px; font-size: 11px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; background: var(--accent-soft); color: var(--accent); white-space: nowrap; }
.np .tag-exclu { background: rgba(255,255,255,.18); color: inherit; }
.excl-form { display: flex; flex-direction: column; gap: 4px; }
.excl-label { display: flex; flex-direction: column; font-size: 13px; color: var(--text-2); flex: 1; min-width: 0; }
.excl-label .field { margin: 6px 0 8px; color: var(--text); }
.excl-row { display: flex; gap: 12px; }
.excl-results { display: flex; flex-direction: column; gap: 2px; margin: -6px 0 6px; }
.excl-result { display: flex; align-items: center; gap: 10px; padding: 6px 8px; border-radius: 10px; text-align: left; background: var(--fill); color: var(--text); }
.excl-result img { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; }
.np .feat { color: inherit; opacity: .75; }
.tr.current .feat { color: inherit; opacity: .8; }
/* Album en plusieurs disques : « Disque 1 », « Disque 2 »… */
.shortcuts { display: grid; gap: 2px; padding: 4px 0 12px; }
.shortcuts .sc { display: grid; grid-template-columns: 130px 1fr; gap: 12px; align-items: center; padding: 9px 4px; border-bottom: .5px solid var(--hairline); font-size: 14.5px; }
.shortcuts kbd { justify-self: start; font: inherit; font-weight: 600; font-size: 13px; padding: 3px 9px; border-radius: 7px; background: var(--fill-strong); }
.disc-head { display: flex; align-items: center; gap: 8px; margin: 18px 0 4px; padding: 0 12px 8px; border-bottom: .5px solid var(--hairline); font-size: 13px; font-weight: 700; letter-spacing: .02em; color: var(--text-2); }
.disc-head:first-child { margin-top: 4px; }
.disc-head .icon { font-size: 16px; }
.lyr-tools { position: absolute; top: 8px; right: 10px; z-index: 2; display: flex; align-items: center; gap: 6px; font-size: 12px; color: rgba(255,255,255,.6); opacity: .55; transition: opacity .2s; }
.lyr-tools:hover { opacity: 1; }
.lyr-tools button { width: 24px; height: 24px; border-radius: 50%; background: rgba(255,255,255,.14); color: #fff; font-size: 15px; line-height: 1; }
.lyr-tools button:hover { background: rgba(255,255,255,.26); }
.lyr-val { min-width: 46px; text-align: center; font-variant-numeric: tabular-nums; }
.queue { height: 100%; overflow-y: auto; padding: 6vh 0; }
.queue h3 { font-size: 15px; font-weight: 700; margin: 0 0 12px; color: rgba(255,255,255,.85); }
.qrow { display: grid; grid-template-columns: 44px 1fr auto; gap: 12px; align-items: center; padding: 8px 10px; border-radius: 8px; width: 100%; text-align: left; }
.qrow:hover { background: rgba(255,255,255,.1); }
.qrow img { width: 44px; height: 44px; border-radius: 5px; object-fit: cover; }
.qrow .t { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.qrow .s { font-size: 13px; color: rgba(255,255,255,.6); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.qrow .d { font-size: 13px; color: rgba(255,255,255,.5); }
.qrow.current .t { color: #fff; }
.qrow.past { opacity: .45; }

/* ── Connexion ────────────────────────────────────────────────────────── */

.login { position: relative; height: 100vh; height: 100dvh; display: grid; place-items: center; overflow: hidden; text-align: center; padding: 24px; }
.login-bg { position: absolute; inset: -30%; background:
  radial-gradient(40% 40% at 30% 30%, rgba(160,107,255,.55), transparent 70%),
  radial-gradient(40% 40% at 70% 60%, rgba(255,79,139,.5), transparent 70%),
  radial-gradient(35% 35% at 45% 80%, rgba(80,140,255,.4), transparent 70%);
  filter: blur(40px); animation: drift 22s ease-in-out infinite alternate; }
.login-card { position: relative; max-width: 420px; }
.login-icon { width: 96px; height: 96px; border-radius: 22px; margin: 0 auto 26px; box-shadow: 0 18px 50px rgba(0,0,0,.45); }
.login h1 { font-size: 48px; font-weight: 800; letter-spacing: -0.04em; margin: 0 0 10px; }
.login p { color: var(--text-2); font-size: 18px; margin: 0 0 32px; }
.login .btn { height: 48px; padding: 0 30px; border-radius: 999px; font-size: 16px; background: var(--text); color: var(--bg); }
.login .error { color: #ff453a; margin-top: 18px; font-weight: 500; }
.login .fine { font-size: 13px; color: var(--text-3); margin-top: 26px; }
.login .wait { color: var(--text-2); font-size: 15px; }
.link-btn { color: var(--accent); font-weight: 600; margin-top: 10px; text-decoration: underline; }

/* ── Relais ─────────────────────────────────────────────────────── */

.lcd.remote { border-color: color-mix(in srgb, var(--accent) 45%, transparent); }
.on-device { display: inline-flex; align-items: center; gap: 5px; color: var(--accent); font-weight: 600; }
.on-device .icon { font-size: 13px; }

.resume {
  display: grid; grid-template-columns: 64px 1fr auto; gap: 16px; align-items: center; width: 100%; max-width: 720px;
  margin: 0 0 8px; padding: 12px 16px 12px 12px; border-radius: 16px; text-align: left;
  background: linear-gradient(120deg, var(--accent-soft), color-mix(in srgb, var(--accent-2) 16%, transparent));
  border: 1px solid var(--hairline); transition: transform .25s var(--ease), box-shadow .25s;
}
.resume:hover { transform: translateY(-2px); box-shadow: var(--shadow-art); }
.resume img { width: 64px; height: 64px; border-radius: 10px; object-fit: cover; box-shadow: var(--shadow-art); }
.resume-text { display: flex; flex-direction: column; min-width: 0; }
.resume .eyebrow { font-size: 11.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .07em; color: var(--accent); }
.resume .t { font-size: 17px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.resume .s { font-size: 13.5px; color: var(--text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.resume-cta { display: inline-flex; align-items: center; gap: 7px; height: 36px; padding: 0 16px; border-radius: 999px; background: var(--accent); color: var(--on-accent, #fff); font-weight: 600; font-size: 14px; white-space: nowrap; }

.devices-pop {
  position: fixed; top: 76px; right: 20px; width: 340px; max-width: calc(100vw - 24px); z-index: 60;
  background: var(--glass); backdrop-filter: blur(40px) saturate(180%); -webkit-backdrop-filter: blur(40px) saturate(180%);
  border: 1px solid var(--hairline); border-radius: 16px; box-shadow: var(--shadow-pop); padding: 10px; color: var(--text);
  animation: popIn .25s var(--spring) both;
}
@keyframes popIn { from { opacity: 0; transform: translateY(-6px) scale(.97); } to { opacity: 1; transform: none; } }
.dp-head { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .07em; color: var(--text-3); padding: 6px 8px 10px; }
.dp-remote { display: grid; grid-template-columns: 48px 1fr; gap: 10px 12px; align-items: center; padding: 10px; margin-bottom: 8px; border-radius: 12px; background: var(--fill); }
.dp-remote img { width: 48px; height: 48px; border-radius: 7px; object-fit: cover; }
.dp-remote .t { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dp-remote .s { font-size: 13px; color: var(--text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dp-ctl { grid-column: 1 / -1; display: flex; justify-content: center; gap: 18px; }
.dp-ctl button { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; font-size: 20px; }
.dp-ctl button:hover { background: var(--fill-strong); }
.dp-remote input { grid-column: 1 / -1; }
.dp-device { display: grid; grid-template-columns: 40px 1fr auto; gap: 12px; align-items: center; width: 100%; padding: 9px 8px; border-radius: 10px; text-align: left; }
.dp-device:hover { background: var(--fill); }
.dp-icon { width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; background: var(--fill-strong); font-size: 20px; color: var(--text-2); }
.dp-device.playing .dp-icon { background: var(--accent); color: var(--on-accent, #fff); }
.dp-device .n { display: block; font-weight: 600; font-size: 14.5px; }
.dp-device .st { display: flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dp-device.playing .st { color: var(--accent); }
.dp-device .go { font-size: 12.5px; font-weight: 600; color: var(--accent); white-space: nowrap; }
.dp-hint { font-size: 13px; color: var(--text-3); padding: 6px 8px 4px; margin: 0; }
.np .devices-pop { color: var(--text); }


/* ── Santé de la lecture ──────────────────────────────────────────────── */

.health-hero { display: flex; gap: 18px; align-items: flex-start; padding: 22px; border-radius: 18px; background: var(--fill); border: 1px solid var(--hairline); max-width: 900px; }
.health-hero .dot { width: 16px; height: 16px; border-radius: 50%; margin-top: 7px; flex: none; background: #30d158; box-shadow: 0 0 0 6px rgba(48, 209, 88, .18); }
.health-hero.warn .dot { background: #ff9f0a; box-shadow: 0 0 0 6px rgba(255, 159, 10, .2); }
.health-hero.bad .dot { background: #ff453a; box-shadow: 0 0 0 6px rgba(255, 69, 58, .2); animation: beat 1.4s ease-in-out infinite; }
@keyframes beat { 50% { box-shadow: 0 0 0 11px rgba(255, 69, 58, .05); } }
.health-hero .t { font-size: 22px; font-weight: 700; letter-spacing: -.015em; }
.health-hero .s { color: var(--text-2); margin-top: 4px; }
.health-hero .meta { color: var(--text-3); font-size: 13px; margin-top: 10px; }
.health-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 18px; margin-top: 18px; max-width: 900px; }
.health-card { padding: 20px; border-radius: 16px; background: var(--fill); border: 1px solid var(--hairline); }
.health-card .k { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .07em; color: var(--text-3); }
.health-card .v { font-size: 22px; font-weight: 700; margin: 6px 0 8px; }
.health-card p { color: var(--text-2); font-size: 14px; margin: 0 0 14px; }
.health-card details { font-size: 14px; color: var(--text-2); margin-bottom: 16px; }
.health-card summary { cursor: pointer; color: var(--accent); font-weight: 600; }
.health-card ol { padding-left: 20px; margin: 10px 0 0; }
.health-card li { margin-bottom: 6px; }
.pill-state { display: inline-block; font-size: 14px; font-weight: 600; padding: 4px 12px; border-radius: 999px; background: rgba(48, 209, 88, .16); color: #30d158; }
.pill-state.warn { background: rgba(255, 159, 10, .16); color: #ff9f0a; }
.pill-state.bad { background: rgba(255, 69, 58, .16); color: #ff453a; }
.health-result { margin-top: 18px; font-weight: 500; color: var(--text-2); min-height: 1.4em; }
.health-result.bad { color: #ff453a; }

/* ── Composants partagés (ordinateur et téléphone) ─────────────────────── */

/* Appareils : PC enregistrés et télécommande de celui qu'on pilote */
.dev-list { display: flex; flex-direction: column; gap: 2px; padding: 6px; border-radius: 14px; background: var(--bg-elevated); }
.dev-row { display: grid; grid-template-columns: 42px 1fr auto auto; gap: 12px; align-items: center; padding: 9px 8px; border-radius: 10px; cursor: pointer; transition: background .15s; }
.dev-row:hover { background: var(--fill); }
.dev-row:active { transform: scale(.99); }
.dev-row.off { cursor: default; }
.dev-row.off .dev-icon, .dev-row.off .dev-text b { opacity: .5; }
.dev-icon { width: 42px; height: 42px; border-radius: 11px; display: grid; place-items: center; font-size: 20px; background: var(--fill-strong); color: var(--text-2); }
.dev-row.chosen .dev-icon { background: var(--accent); color: var(--on-accent, #fff); }
.dev-text { min-width: 0; }
.dev-text b { display: block; font-size: 15px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dev-text small { display: flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dev-go, .dev-tag { font-size: 13px; font-weight: 600; color: var(--accent); display: inline-flex; align-items: center; gap: 4px; }
.dev-more { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; color: var(--text-3); font-size: 16px; }
.dev-more:hover { background: var(--fill); color: #ff453a; }
.dev-row .btn.small { grid-column: 3 / -1; }
.dev-empty { padding: 18px; border-radius: 14px; background: var(--bg-elevated); color: var(--text-2); font-size: 14px; }
.dev-hint { display: flex; gap: 12px; align-items: flex-start; margin: 18px 4px 0; color: var(--text-2); font-size: 13.5px; line-height: 1.45; }
.dev-hint .icon { font-size: 22px; flex: none; color: var(--accent); }
.dev-remote { position: relative; overflow: hidden; padding: 16px; border-radius: 22px; margin-bottom: 8px;
  background: linear-gradient(160deg, var(--accent-soft), var(--fill)); border: .5px solid var(--hairline); }
.dev-remote-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 14px; }
.dev-badge { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: 999px; font-size: 13px; font-weight: 600; background: var(--fill-strong); }
.dev-stop { font-size: 13px; color: var(--text-2); padding: 4px 6px; border-radius: 8px; }
.dev-stop:hover { color: var(--text); }
.dev-now { display: grid; grid-template-columns: 1fr; justify-items: center; gap: 12px; }
.dev-art { width: min(260px, 62vw); aspect-ratio: 1; border-radius: 14px; object-fit: cover; box-shadow: var(--shadow-art); transition: transform .45s var(--spring); }
.dev-art.paused { transform: scale(.88); }
.dev-meta { width: 100%; text-align: center; min-width: 0; }
.dev-meta b { display: block; font-size: 19px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dev-meta span { display: block; color: var(--text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dev-progress { width: 100%; height: 6px; border-radius: 3px; background: var(--fill-strong); cursor: pointer; overflow: hidden; }
.dev-progress .fill { height: 100%; width: 0; background: var(--text); border-radius: 3px; transition: width .45s linear; }
.dev-times { width: 100%; display: flex; justify-content: space-between; font-size: 12px; color: var(--text-3); font-variant-numeric: tabular-nums; margin-top: -6px; }
.dev-idle { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 20px 10px; text-align: center; }
.dev-idle .icon { font-size: 34px; color: var(--text-3); margin-bottom: 6px; }
.dev-idle small { color: var(--text-2); }
.dev-ctl { display: flex; justify-content: center; align-items: center; gap: 26px; margin: 10px 0 6px; }
.dev-ctl button { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; font-size: 28px; }
.dev-ctl button.big { width: 66px; height: 66px; font-size: 40px; }
.dev-ctl button:active { transform: scale(.88); }
.dev-ctl button[disabled] { opacity: .35; pointer-events: none; }
.dev-opts { display: flex; justify-content: center; gap: 18px; margin: 0 0 6px; }
.dev-opts button { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; font-size: 19px; color: var(--text-2); }
.dev-opts button.on { color: var(--accent); background: var(--accent-soft); }
.dev-opts button:active { transform: scale(.88); }
.dev-next { margin-top: 14px; padding-top: 12px; border-top: .5px solid var(--hairline); }
.dev-next h4 { margin: 0 0 6px 4px; font-size: 13px; font-weight: 600; color: var(--text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dev-next-row { display: grid; grid-template-columns: 40px 1fr; gap: 10px; align-items: center; width: 100%; padding: 6px 4px; border-radius: 9px; text-align: left; }
.dev-next-row:hover { background: var(--fill); }
.dev-next-row img { width: 40px; height: 40px; border-radius: 6px; object-fit: cover; background: var(--fill-strong); }
.dev-next-row span { min-width: 0; }
.dev-next-row b, .dev-next-row small { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dev-next-row b { font-size: 14px; font-weight: 600; }
.dev-next-row small { font-size: 12.5px; color: var(--text-2); }
.dev-vol { display: flex; align-items: center; gap: 10px; color: var(--text-3); margin: 4px 6px 12px; }
.dev-vol input { flex: 1; }

/* État de Sona */
.st-row { display: grid; grid-template-columns: 12px 1fr; gap: 14px; align-items: center; }
.st-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--text-3); }
.st-dot.ok { background: #30d158; box-shadow: 0 0 0 3px rgba(48, 209, 88, .18); }
.st-dot.warn { background: #ff9f0a; box-shadow: 0 0 0 3px rgba(255, 159, 10, .18); }
.st-dot.bad { background: #ff453a; box-shadow: 0 0 0 3px rgba(255, 69, 58, .2); }

/* Son : égaliseur */
.eq-presets { display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 0 18px; }
.sound-sheet .eq-presets .chip.on { background: var(--accent); color: var(--on-accent, #fff); }
.eq-bands { display: flex; justify-content: space-between; gap: 6px; height: 190px; margin: 0 4px 18px; }
.eq-band { flex: 1; display: grid; grid-template-rows: 18px 1fr 18px; justify-items: center; align-items: center; font-size: 12px; color: var(--text-2); }
.eq-band input { writing-mode: vertical-lr; direction: rtl; width: 28px; height: 140px; accent-color: var(--accent); }
.eq-band b { color: var(--text); font-weight: 600; }
.eq-val { font-variant-numeric: tabular-nums; }
.field.small { width: auto; height: 34px; margin: 0; font-size: 14px; padding: 0 10px; }

/* Visualiseur plein écran */
.viz { position: fixed; inset: 0; z-index: 80; background: #000; overflow: hidden; animation: viz-in .3s var(--ease); }
.viz-bg { position: absolute; inset: -60px; }
.viz-bg img { width: 100%; height: 100%; object-fit: cover; filter: blur(60px) saturate(1.5) brightness(.45); transform: scale(1.1); }
.viz canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.viz-meta { position: absolute; left: 50%; top: 14%; transform: translateX(-50%); display: flex; align-items: center; gap: 18px; color: #fff; max-width: 80vw; }
.viz-art { width: 110px; height: 110px; border-radius: 14px; object-fit: cover; box-shadow: 0 18px 50px rgba(0,0,0,.5); }
.viz-meta div { min-width: 0; }
.viz-meta b { display: block; font-size: 30px; font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-shadow: 0 2px 12px rgba(0,0,0,.5); }
.viz-meta span { display: block; font-size: 19px; opacity: .8; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.viz-tools { position: absolute; top: 18px; right: 18px; display: flex; gap: 10px; opacity: .25; transition: opacity .2s; }
.viz:hover .viz-tools { opacity: 1; }
.viz-tools button { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-size: 20px; background: rgba(255,255,255,.14); }
@keyframes viz-in { from { opacity: 0; } to { opacity: 1; } }

.tabbar, .mhead, .mp, .ptr { display: none; }
.muted { color: var(--text-2); }
.center { text-align: center; justify-content: center; }
.eyebrow { font-size: 11.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--text-2); display: flex; align-items: center; gap: 6px; }
.error-text { color: #ff453a; font-weight: 500; }
/* Import de playlist : avancement, bandeau du rapport, feuille de rapport. */
.import-progress { max-width: 620px; margin: 4px 0 18px; display: grid; gap: 8px; color: var(--text-2); font-size: 14px; }
.import-progress .bar { height: 6px; border-radius: 999px; background: var(--fill); overflow: hidden; }
.import-progress .bar i { display: block; height: 100%; border-radius: inherit; background: var(--text); transition: width .6s var(--ease); }
.import-banner { display: flex; align-items: center; gap: 14px; width: 100%; max-width: 620px; margin: 0 0 18px; padding: 14px 16px; border-radius: 16px; background: var(--fill); text-align: left; }
.import-banner:hover { background: var(--fill-strong); }
.import-banner > svg { width: 22px; height: 22px; flex: none; }
.import-banner > svg:last-child { width: 16px; height: 16px; opacity: .45; margin-left: auto; }
.import-banner span { display: grid; gap: 2px; }
.import-banner small { opacity: .6; font-size: 12.5px; }
.imp-tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 10px 0 14px; }
.imp-tile { display: grid; gap: 2px; padding: 12px 8px; border-radius: 14px; background: var(--fill); text-align: center; }
.imp-tile b { font-size: 22px; font-variant-numeric: tabular-nums; }
.imp-tile span { font-size: 12.5px; opacity: .7; }
.imp-tile.on { background: var(--text); color: var(--bg); }
.imp-tile.on span { opacity: .75; }
.imp-row { display: grid; grid-template-columns: 44px 1fr auto; gap: 12px; align-items: center; padding: 10px 0; border-top: 1px solid var(--hairline); }
.imp-row img, .imp-pick img { width: 44px; height: 44px; border-radius: 6px; object-fit: cover; background: var(--fill); }
.imp-text { display: grid; gap: 2px; min-width: 0; }
.imp-text b, .imp-text span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.imp-text span { font-size: 13px; opacity: .6; }
.imp-text .imp-to { opacity: .85; }
.imp-text small { font-size: 12px; opacity: .45; }
.imp-actions { display: flex; gap: 6px; align-items: center; }
.imp-empty { padding: 24px 0; text-align: center; }
.imp-search, .imp-link { display: flex; gap: 8px; margin: 10px 0; }
.imp-search .field, .imp-link .field { flex: 1; min-width: 0; }
.imp-results { display: grid; gap: 2px; max-height: 46vh; overflow-y: auto; }
.imp-pick { display: grid; grid-template-columns: 44px 1fr auto; gap: 12px; align-items: center; padding: 8px; border-radius: 10px; text-align: left; }
.imp-pick:hover { background: var(--fill); }
.imp-pick span { display: grid; gap: 2px; min-width: 0; }
.imp-pick small { opacity: .6; font-size: 12.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.imp-pick em { font-style: normal; opacity: .5; font-variant-numeric: tabular-nums; font-size: 13px; }
.small-note { font-size: 12.5px; }
/* Partage : aperçu, validité, lien créé, liste des liens. */
.share-card { display: flex; gap: 14px; align-items: center; padding: 14px; border-radius: 16px; background: var(--fill); margin: 8px 0 4px; }
.share-card img { width: 64px; height: 64px; border-radius: 10px; object-fit: cover; background: var(--fill); flex: none; }
.share-card div { display: grid; gap: 2px; min-width: 0; }
.share-card small { font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--text-3); }
.share-card b { font-size: 17px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.share-card span { color: var(--text-2); font-size: 14px; }
.share-validity { margin-bottom: 14px; }
.share-result { display: grid; gap: 12px; margin-bottom: 10px; }
.share-url { padding: 12px 14px; border-radius: 12px; background: var(--fill); font: 500 13px/1.4 ui-monospace, "SF Mono", Consolas, monospace; color: var(--text-2); word-break: break-all; user-select: all; }
.share-row { display: grid; grid-template-columns: 44px 1fr auto auto; gap: 10px; align-items: center; padding: 10px 0; border-top: 1px solid var(--hairline); }
.share-row img { width: 44px; height: 44px; border-radius: 6px; object-fit: cover; background: var(--fill); }
.share-row div { display: grid; gap: 2px; min-width: 0; }
.share-row b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.share-row span { font-size: 13px; color: var(--text-2); }
.hidden { display: none !important; }
.btn.small { height: 30px; padding: 0 14px; font-size: 13px; }
.btn.big { height: 52px; padding: 0 30px; font-size: 17px; border-radius: 999px; }
.btn.wide { width: 100%; justify-content: center; margin-top: 26px; }
.btn.danger { color: #ff453a; }
.btn:not(.ghost).danger { background: #ff453a; color: #fff; }
.btn.icon-only { width: 36px; padding: 0; justify-content: center; }
.btn.icon-only.on { color: var(--accent); }
.btn[disabled] { opacity: .45; pointer-events: none; }
.pill-row { display: flex; gap: 10px; flex-wrap: wrap; margin: 6px 0 14px; }
.pill-row.center { justify-content: center; }
.pill-row.tight { margin: 0; gap: 6px; flex-wrap: nowrap; }
.pill-row .btn { justify-content: center; }
.hero .actions { flex-wrap: wrap; }
.hero-art.mosaic { display: grid; grid-template-columns: 1fr 1fr; overflow: hidden; }
.hero-art.mosaic img { width: 100%; height: 100%; object-fit: cover; }
.section-head .more { color: var(--accent); font-size: 14px; font-weight: 600; align-self: center; margin-right: 8px; }
.loading-row { display: flex; align-items: center; justify-content: center; gap: 12px; padding: 50px 0; }
.spinner { width: 26px; height: 26px; border-radius: 50%; border: 3px solid var(--fill-strong); border-top-color: var(--text); animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.field { width: 100%; height: 46px; border-radius: 12px; border: 0; background: var(--fill-strong); padding: 0 14px; font-size: 16px; outline: none; margin: 8px 0 14px; }
.field:focus { box-shadow: 0 0 0 3px var(--accent-soft); }

/* Contrôle segmenté (Bibliothèque, Stats…) */
.segmented { display: flex; gap: 2px; padding: 3px; border-radius: 10px; background: var(--fill); margin: 4px 0 18px; max-width: 560px; }
.segmented > * { flex: 1; text-align: center; padding: 7px 8px; border-radius: 8px; font-size: 13.5px; font-weight: 600; color: var(--text-2); white-space: nowrap; transition: background .2s, color .2s; }
.segmented > .on { background: var(--fill-strong); color: var(--text); box-shadow: 0 1px 3px rgba(0,0,0,.15); }
.segmented.small { margin: 0 0 10px; }
.segmented.small > * { font-size: 12.5px; padding: 6px; }

/* Tuiles colorées (Jouer, Récaps, Blind test) */
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 12px; }
.tile, .concert-teaser { display: grid; grid-template-columns: 46px 1fr auto; align-items: center; gap: 14px; padding: 14px; border-radius: 18px; color: #fff; text-align: left;
  background: linear-gradient(120deg, #3a3a3c, #1c1c1e); transition: transform .2s var(--ease); cursor: pointer; }
.tile:active, .concert-teaser:active { transform: scale(.98); }
.tile-icon { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; font-size: 22px; background: rgba(255,255,255,.18); }
.tile-text { display: flex; flex-direction: column; min-width: 0; }
.tile .t, .concert-teaser .t { font-weight: 700; font-size: 16px; display: block; }
.tile .s, .concert-teaser .s { font-size: 12.5px; opacity: .8; display: block; }
.tile > .icon, .concert-teaser > .icon { opacity: .8; }
.tile.violet { background: linear-gradient(120deg, #7b3ff2, #3b1a8c); }
.tile.blue { background: linear-gradient(120deg, #1f6fe5, #12357a); }
.tile.green { background: linear-gradient(120deg, #1a8c4d, #0d4033); }
.tile.orange { background: linear-gradient(120deg, #f2711c, #a3261c); }
.tile.pink { background: linear-gradient(120deg, #e8417b, #7a1c4b); }
.concert-teaser { margin-top: 38px; background: linear-gradient(120deg, #c2410c, #4c1d95); max-width: 720px; }

/* Accueil */
.home-hero { position: relative; display: block; width: 100%; max-width: 720px; height: 300px; border-radius: 20px; overflow: hidden; text-align: left; color: #fff; margin-top: 18px; box-shadow: var(--shadow-art); }
.home-hero img { width: 100%; height: 100%; object-fit: cover; }
.home-hero .shade { position: absolute; inset: 0; background: linear-gradient(to bottom, transparent 35%, rgba(0,0,0,.85)); }
.home-hero .label { position: absolute; left: 20px; right: 90px; bottom: 20px; display: flex; flex-direction: column; }
.home-hero .eyebrow { color: rgba(255,255,255,.7); }
.home-hero .t { font-size: 30px; font-weight: 800; letter-spacing: -.02em; line-height: 1.1; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.home-hero .s { font-size: 16px; color: rgba(255,255,255,.7); }
.home-hero .fab { position: absolute; right: 20px; bottom: 20px; width: 54px; height: 54px; border-radius: 50%; background: #fff; color: #000; display: grid; place-items: center; font-size: 22px; }
.memory { display: grid; grid-template-columns: auto 1fr; gap: 16px; align-items: center; width: 100%; max-width: 720px; margin-top: 30px; padding: 14px; border-radius: 18px; text-align: left; background: linear-gradient(120deg, #5b3f1d, #2b1d10); color: #fff; }
.memory .covers { display: flex; }
.memory .covers img { width: 54px; height: 54px; border-radius: 8px; object-fit: cover; box-shadow: 0 4px 12px rgba(0,0,0,.4); }
.memory .covers img + img { margin-left: -26px; }
.memory-text { display: flex; flex-direction: column; min-width: 0; }
.memory .eyebrow { color: rgba(255,255,255,.75); }
.memory .t { font-weight: 700; font-size: 16px; }
.memory .s { font-size: 13px; opacity: .75; }
.daily { position: relative; display: grid; grid-template-columns: 76px 1fr auto; gap: 14px; align-items: center; width: 100%; max-width: 720px; margin-top: 14px; padding: 12px; border-radius: 18px; text-align: left; color: #fff; background: linear-gradient(120deg, #2d1b5c, #10213f); }
.daily img { width: 76px; height: 76px; border-radius: 10px; object-fit: cover; box-shadow: 0 6px 16px rgba(0,0,0,.45); background: rgba(255,255,255,.08); }
.daily-text { display: flex; flex-direction: column; min-width: 0; }
.daily .eyebrow { color: rgba(255,255,255,.75); }
.daily .t { font-weight: 700; font-size: 17px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.daily .s { font-size: 14px; opacity: .8; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.daily .why { font-size: 12px; opacity: .6; margin-top: 2px; }
.daily .fab { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: #fff; color: #000; }
.daily .fab svg { width: 18px; height: 18px; }
.live-pill { display: flex; align-items: center; gap: 8px; width: 100%; max-width: 720px; margin: 10px 0 0; padding: 12px 14px; border-radius: 14px; background: linear-gradient(120deg, rgba(31,111,229,.35), rgba(31,111,229,.12)); border: 1px solid rgba(31,111,229,.4); font-size: 14px; text-align: left; color: var(--text); }
.live-pill.violet { background: linear-gradient(120deg, rgba(123,63,242,.35), rgba(123,63,242,.12)); border-color: rgba(123,63,242,.45); }
.live-pill .icon { font-size: 18px; flex: none; }
.install-card { display: grid; grid-template-columns: 48px 1fr auto auto; gap: 12px; align-items: center; padding: 12px; border-radius: 16px; background: var(--fill); border: 1px solid var(--hairline); margin: 4px 0 14px; }
.install-card img { width: 48px; height: 48px; border-radius: 12px; }
.install-card .t { font-weight: 700; }
.install-card .s { font-size: 13px; color: var(--text-2); }
.install-card .x { width: 30px; height: 30px; display: grid; place-items: center; color: var(--text-3); font-size: 16px; }
.radio-card .play-fab { opacity: 1 !important; transform: none !important; left: auto; right: 10px; }
.round-grid .card .art-wrap { border-radius: 50%; }
.round-grid .card .t, .round-grid .card .s { text-align: center; }

/* Menus et feuilles */
.sheet-wrap { position: fixed; inset: 0; z-index: 90; }
.sheet-backdrop { position: absolute; inset: 0; background: rgba(0,0,0,.5); opacity: 0; transition: opacity .3s var(--ease); }
.sheet-wrap.open .sheet-backdrop { opacity: 1; }
.sheet { position: absolute; left: 50%; top: 50%; width: min(460px, 92vw); max-height: 86vh; display: flex; flex-direction: column;
  background: var(--bg-elevated); color: var(--text); border-radius: 18px; box-shadow: var(--shadow-pop); padding: 6px 18px 18px;
  transform: translate(-50%, -46%) scale(.96); opacity: 0; transition: transform .3s var(--spring), opacity .2s; }
.sheet-wrap.open .sheet { transform: translate(-50%, -50%); opacity: 1; }
.sheet-grab { display: none; }
.sheet-body { overflow-y: auto; min-height: 0; padding-top: 10px; }
.sheet-title { font-size: 20px; font-weight: 700; margin: 6px 0 10px; letter-spacing: -.01em; }
.sheet .muted { margin: 0 0 12px; font-size: 14px; }
.sheet .pill-row { justify-content: flex-end; margin-bottom: 0; }
.menu { display: flex; flex-direction: column; }
.menu-item { display: grid; grid-template-columns: 32px 1fr auto; gap: 12px; align-items: center; width: 100%; padding: 11px 4px; text-align: left; font-size: 16px; border-bottom: 1px solid var(--hairline); }
.menu-item:last-child { border-bottom: 0; }
.menu-item:hover { background: var(--fill); }
.menu-item.danger { color: #ff453a; }
.menu-item.danger .mi-icon { color: #ff453a; }
.mi-icon { font-size: 21px; color: var(--text-2); display: grid; place-items: center; }
.mi-text { display: flex; flex-direction: column; min-width: 0; }
.mi-label { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mi-sub { font-size: 12.5px; color: var(--text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mi-check { color: var(--accent); font-size: 18px; }
.mi-thumb { width: 32px; height: 32px; border-radius: 6px; object-fit: cover; background: var(--fill-strong); }
.mi-thumb.round { border-radius: 50%; }
.mi-x { color: var(--text-3); font-size: 18px; padding: 4px; }
.menu-head { display: grid; grid-template-columns: 52px 1fr; gap: 12px; align-items: center; padding: 6px 0 12px; border-bottom: 1px solid var(--hairline); margin-bottom: 2px; }
.menu-head img { width: 52px; height: 52px; border-radius: 8px; object-fit: cover; }
.menu-head .t { font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.menu-head .s { font-size: 13px; color: var(--text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.steps { padding-left: 22px; line-height: 1.7; }
.steps .icon { vertical-align: -2px; }
.emoji-row { display: flex; gap: 8px; flex-wrap: wrap; margin: 6px 0 12px; }
.emoji-row button { width: 46px; height: 46px; border-radius: 50%; background: var(--fill); font-size: 24px; transition: transform .15s var(--spring), background .15s; }
.emoji-row button:active { transform: scale(.85); }
.emoji-row button.on { background: var(--accent-soft); box-shadow: 0 0 0 2px var(--accent); }

/* Réactions qui s'envolent (moments, écoute ensemble) */
.float-reaction { position: fixed; bottom: 22vh; z-index: 95; display: flex; flex-direction: column; align-items: center; pointer-events: none; animation: floatUp 3.2s var(--ease) forwards; }
.float-reaction .e { font-size: 44px; filter: drop-shadow(0 4px 10px rgba(0,0,0,.4)); }
.float-reaction .l { font-size: 12.5px; font-weight: 600; background: rgba(0,0,0,.6); color: #fff; padding: 3px 10px; border-radius: 999px; max-width: 60vw; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@keyframes floatUp { 0% { opacity: 0; transform: translateY(20px) scale(.6); } 15% { opacity: 1; transform: translateY(0) scale(1.1); } 80% { opacity: 1; } 100% { opacity: 0; transform: translateY(-160px) scale(.9); } }
.np-seek-wrap { position: relative; }
.moments { position: absolute; left: 0; right: 0; top: -22px; height: 18px; pointer-events: none; }
.moment { position: absolute; transform: translateX(-50%); font-size: 14px; }

/* Lecteur : file d'attente */
.qrow { cursor: pointer; }
.q-x { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; color: rgba(255,255,255,.5); font-size: 14px; }
.q-x:hover { background: rgba(255,255,255,.12); color: #fff; }
.q-end { color: rgba(255,255,255,.5); font-size: 13.5px; text-align: center; margin: 18px 0; }
.q-clear { display: block; margin: 10px auto; color: rgba(255,255,255,.7); font-size: 13.5px; font-weight: 600; padding: 6px 14px; border-radius: 999px; background: rgba(255,255,255,.1); }
.np-top-right { display: flex; gap: 6px; }

/* Amis */
.friend-list { display: flex; flex-direction: column; max-width: 760px; }
.friend { display: grid; grid-template-columns: 52px 1fr auto; gap: 14px; align-items: center; padding: 12px 4px; border-bottom: 1px solid var(--hairline); }
.friend-avatar { position: relative; }
.friend-avatar .avatar { width: 52px; height: 52px; font-size: 20px; }
.live-dot { position: absolute; right: 1px; bottom: 1px; width: 14px; height: 14px; border-radius: 50%; background: #30d158; border: 3px solid var(--bg); }
.friend-text { display: flex; flex-direction: column; min-width: 0; }
.friend .n { font-weight: 700; font-size: 16px; }
.friend .s { font-size: 14px; color: var(--text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: flex; align-items: center; gap: 6px; }
.friend .w { font-size: 12.5px; color: var(--text-3); }
.compat { font-size: 12px; font-weight: 700; padding: 1px 7px; border-radius: 999px; background: var(--fill-strong); color: var(--text-2); }
.friend-cover { position: relative; width: 52px; height: 52px; border-radius: 8px; overflow: hidden; display: grid; place-items: center; }
.friend-cover img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.friend-cover .icon { position: relative; color: #fff; font-size: 18px; filter: drop-shadow(0 1px 4px rgba(0,0,0,.6)); }
.profile-head, .blend-head { position: relative; text-align: center; padding: 10px 0 8px; display: flex; flex-direction: column; align-items: center; gap: 4px; }
.profile-head .hero-glow { inset: -40px -44px auto; height: 300px; }
.profile-avatar { width: 120px; height: 120px; border-radius: 50%; object-fit: cover; font-size: 46px; box-shadow: var(--shadow-pop); background: var(--fill-strong); }
.profile-avatar.small { width: 56px; height: 56px; font-size: 22px; box-shadow: none; }
.profile-head h1 { font-size: 30px; margin: 12px 0 0; letter-spacing: -.02em; }
.compat-big { margin-top: 8px; color: var(--text-2); }
.compat-big b { color: var(--text); font-size: 18px; }
.blend-avatars { display: flex; }
.blend-avatars .profile-avatar { width: 90px; height: 90px; border: 3px solid var(--bg); }
.blend-avatars .profile-avatar + .profile-avatar { margin-left: -22px; }
.blend-head .kind { margin-top: 10px; font-size: 12px; font-weight: 700; letter-spacing: .1em; color: var(--text-2); text-transform: uppercase; }
.now-card { display: grid; grid-template-columns: 64px 1fr auto; gap: 14px; align-items: center; width: 100%; max-width: 720px; padding: 12px; margin: 18px 0 0; border-radius: 16px; background: var(--fill); text-align: left; }
.now-card img { width: 64px; height: 64px; border-radius: 10px; object-fit: cover; }
.now-card > span { display: flex; flex-direction: column; min-width: 0; }
.now-card .t { font-weight: 700; font-size: 17px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.now-card .s { color: var(--text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chips.center { justify-content: center; }
span.chip { cursor: default; }

/* Stats */
.period-nav { display: flex; align-items: center; justify-content: space-between; max-width: 560px; margin: -6px 0 18px; font-weight: 600; }
.period-nav button, .period-nav i { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--fill); font-size: 16px; }
.period-nav i { background: none; }
.stat-hero { padding: 22px; border-radius: 20px; background: linear-gradient(135deg, #2b2b30, #121214); color: #fff; max-width: 720px; }
.stat-hero .eyebrow { color: rgba(255,255,255,.6); }
.big-num { font-size: 52px; font-weight: 800; letter-spacing: -.04em; line-height: 1.05; margin: 6px 0; }
.stat-hero .s { color: rgba(255,255,255,.7); font-size: 14.5px; }
.up { color: #30d158; font-weight: 700; } .down { color: #ff9f0a; font-weight: 700; }
.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-top: 10px; max-width: 720px; }
.stat { padding: 14px 10px; border-radius: 16px; background: var(--fill); text-align: center; display: flex; flex-direction: column; }
.stat b { font-size: 24px; font-weight: 800; letter-spacing: -.02em; }
.stat span { font-size: 12px; color: var(--text-2); }
.bars-chart { display: flex; align-items: flex-end; gap: 3px; height: 150px; padding-bottom: 18px; max-width: 900px; }
.bc-col { flex: 1; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; position: relative; min-width: 0; }
.bc-bar { background: var(--text-3); border-radius: 4px 4px 2px 2px; min-height: 2px; transition: height .6s var(--ease); }
.bc-col.hi .bc-bar, .bc-col:hover .bc-bar { background: var(--text); }
.bc-l { position: absolute; bottom: -18px; left: 50%; transform: translateX(-50%); font-size: 10.5px; color: var(--text-3); white-space: nowrap; }
.habits { display: grid; grid-template-columns: 2fr 1fr; gap: 22px; max-width: 900px; }
.rank { display: flex; flex-direction: column; max-width: 760px; }
.rank-row { display: grid; grid-template-columns: 26px 48px 1fr auto; gap: 12px; align-items: center; padding: 8px 4px; border-bottom: 1px solid var(--hairline); width: 100%; text-align: left; }
.rank-row .rk { font-weight: 800; color: var(--text-3); text-align: center; font-variant-numeric: tabular-nums; }
.rank-row img { width: 48px; height: 48px; border-radius: 6px; object-fit: cover; background: var(--fill-strong); }
.rank-row img.round { border-radius: 50%; }
.rt { display: flex; flex-direction: column; min-width: 0; }
.rt .t { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rt .s { font-size: 13px; color: var(--text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rv { text-align: right; font-size: 13px; font-weight: 600; display: flex; flex-direction: column; }
.rv small { color: var(--text-3); font-weight: 500; }
.challenges { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 10px; }
.challenge { padding: 14px; border-radius: 16px; background: var(--fill); }
.challenge.done { background: rgba(48, 209, 88, .14); }
.challenge .ct { font-weight: 600; font-size: 14.5px; display: flex; gap: 6px; align-items: center; }
.challenge.done .icon { color: #30d158; }
.challenge .cv { font-size: 12.5px; color: var(--text-2); margin-top: 6px; }
.meter { height: 6px; border-radius: 6px; background: var(--fill-strong); overflow: hidden; margin-top: 10px; }
.meter i { display: block; height: 100%; background: var(--text); border-radius: 6px; transition: width .2s linear; }
.challenge.done .meter i { background: #30d158; }
.meter.big { height: 8px; margin: 10px 0 18px; }
.badges { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; margin-top: 14px; }
.badge { padding: 12px; border-radius: 16px; background: var(--fill); display: flex; flex-direction: column; gap: 2px; opacity: .55; }
.badge.earned { opacity: 1; background: linear-gradient(135deg, rgba(255, 214, 10, .2), rgba(255, 159, 10, .08)); }
.badge span { font-size: 26px; }
.badge b { font-size: 14px; }
.badge small { font-size: 12px; color: var(--text-2); }
.live-card { padding: 16px; border-radius: 18px; background: var(--fill); max-width: 720px; display: flex; flex-direction: column; gap: 10px; }
.lc-now { display: flex; gap: 12px; align-items: center; }
.lc-now img { width: 48px; height: 48px; border-radius: 8px; object-fit: cover; }
.lc-now span { display: flex; flex-direction: column; }
.lc-row { display: flex; justify-content: space-between; gap: 12px; font-size: 14px; color: var(--text-2); }
.lc-row b { color: var(--text); text-align: right; }
.lc-row.bad b { color: #ff453a; }
.live-card .btn { align-self: flex-start; }

/* Récap en story */
.recap { position: fixed; inset: 0; z-index: 100; color: #fff; background: #000; overflow: hidden; animation: fadeIn .3s var(--ease); }
.recap.out { opacity: 0; transition: opacity .3s; }
@keyframes fadeIn { from { opacity: 0; } }
.recap-bg { position: absolute; inset: -20%; }
.recap-bg img { width: 100%; height: 100%; object-fit: cover; filter: blur(70px) saturate(1.8) brightness(.55); animation: drift 30s ease-in-out infinite alternate; }
.recap-bars { position: absolute; top: calc(env(safe-area-inset-top) + 12px); left: 14px; right: 14px; display: flex; gap: 4px; z-index: 3; }
.recap-bars i { flex: 1; height: 3px; border-radius: 3px; background: rgba(255,255,255,.3); overflow: hidden; }
.recap-bars i b { display: block; height: 100%; width: 0; background: #fff; }
.recap-bars i.done b { width: 100%; }
.recap-bars i.now b { animation: fill 6.5s linear forwards; }
@keyframes fill { to { width: 100%; } }
.recap-close { position: absolute; top: calc(env(safe-area-inset-top) + 26px); right: 14px; z-index: 4; width: 38px; height: 38px; border-radius: 50%; background: rgba(0,0,0,.3); color: #fff; display: grid; place-items: center; font-size: 18px; }
.recap-slide { position: absolute; inset: 0; z-index: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 70px 28px 40px; gap: 10px; }
.recap-slide.in > * { animation: slideUp .6s var(--spring) both; }
.recap-slide.in > *:nth-child(2) { animation-delay: .08s; } .recap-slide.in > *:nth-child(3) { animation-delay: .16s; } .recap-slide.in > *:nth-child(4) { animation-delay: .24s; }
@keyframes slideUp { from { opacity: 0; transform: translateY(26px); } }
.recap-slide h2 { font-size: 34px; font-weight: 800; letter-spacing: -.03em; margin: 0; }
.recap-slide p { font-size: 18px; color: rgba(255,255,255,.85); margin: 0; max-width: 480px; }
.recap-slide .eyebrow { color: rgba(255,255,255,.7); font-size: 13px; }
.huge { font-size: clamp(48px, 14vw, 88px); font-weight: 900; letter-spacing: -.04em; line-height: 1; }
.rc-art { width: 210px; height: 210px; object-fit: cover; border-radius: 16px; box-shadow: 0 30px 70px rgba(0,0,0,.5); margin: 10px 0; }
.rc-art.round { border-radius: 50%; }
.rc-list { list-style: none; counter-reset: rc; padding: 0; margin: 8px 0; width: min(420px, 100%); display: flex; flex-direction: column; gap: 10px; text-align: left; }
.rc-list li { counter-increment: rc; display: grid; grid-template-columns: 26px 52px 1fr; gap: 12px; align-items: center; font-size: 17px; font-weight: 700; }
.rc-list li::before { content: counter(rc); font-size: 20px; font-weight: 900; opacity: .7; }
.rc-list img { width: 52px; height: 52px; border-radius: 8px; object-fit: cover; }
.rc-list img.round { border-radius: 50%; }
.rc-list small { display: block; font-size: 13px; font-weight: 500; opacity: .7; }
.recap-slide .btn { background: #fff; color: #000; margin-top: 10px; position: relative; z-index: 3; }
.recap-tap { position: absolute; top: 0; bottom: 0; z-index: 2; }
.recap-tap.left { left: 0; width: 30%; } .recap-tap.right { right: 0; width: 70%; }

/* Concerts */
.concerts { display: flex; flex-direction: column; max-width: 760px; }
.concert { display: grid; grid-template-columns: 50px auto 1fr auto; gap: 14px; align-items: center; padding: 10px 4px; border-bottom: 1px solid var(--hairline); }
.concert .date { display: flex; flex-direction: column; align-items: center; line-height: 1.1; padding: 6px 0; border-radius: 10px; background: var(--fill); }
.concert .date b { font-size: 20px; } .concert .date small { font-size: 11px; text-transform: uppercase; color: var(--text-2); }
.concert img { width: 46px; height: 46px; object-fit: cover; }
.concert img.round { border-radius: 50%; }
.concert .ct { display: flex; flex-direction: column; min-width: 0; }
.concert .t { font-weight: 700; } .concert .s { font-size: 13px; color: var(--text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.concert .go { font-size: 12.5px; font-weight: 700; padding: 6px 12px; border-radius: 999px; background: var(--fill-strong); }

/* Blind test */
.bt-daily { display: flex; flex-direction: column; gap: 4px; width: 100%; max-width: 720px; padding: 20px; border-radius: 20px; text-align: left; color: #fff; background: linear-gradient(130deg, #ff9f0a, #e8417b 55%, #7b3ff2); box-shadow: var(--shadow-art); }
.bt-daily .eyebrow { color: rgba(255,255,255,.85); }
.bt-daily .t { font-size: 22px; font-weight: 800; letter-spacing: -.02em; }
.bt-daily .s { font-size: 14px; opacity: .85; }
.bt-options { max-width: 560px; margin-bottom: 14px; }
.opt-label { font-size: 12.5px; font-weight: 600; color: var(--text-2); margin: 0 0 6px 2px; }
.switch-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 14px; cursor: pointer; }
.switch-row > span { display: flex; flex-direction: column; min-width: 0; }
.switch-row small { color: var(--text-2); font-size: 12.5px; }
.switch-row input { position: absolute; opacity: 0; pointer-events: none; }
.switch-row i { flex: none; width: 51px; height: 31px; border-radius: 999px; background: var(--fill-strong); position: relative; transition: background .25s; }
.switch-row i::after { content: ""; position: absolute; left: 2px; top: 2px; width: 27px; height: 27px; border-radius: 50%; background: #fff; box-shadow: 0 2px 6px rgba(0,0,0,.3); transition: transform .25s var(--spring); }
.switch-row input:checked + i { background: #30d158; }
.switch-row input:checked + i::after { transform: translateX(20px); }
.bt-options .switch-row { padding: 6px 2px; }
.bt-game { max-width: 560px; margin: 0 auto; }
.bt-top { display: flex; align-items: center; gap: 12px; font-weight: 600; color: var(--text-2); }
.bt-top b { color: var(--text); font-size: 18px; margin-left: auto; }
.bt-top .streak { font-weight: 700; color: #ff9f0a; }
.bt-cover { width: min(260px, 62vw); aspect-ratio: 1; margin: 6px auto 14px; border-radius: 20px; overflow: hidden; background: linear-gradient(135deg, #7b3ff2, #1f6fe5); display: grid; place-items: center; box-shadow: var(--shadow-pop); }
.bt-cover img { width: 100%; height: 100%; object-fit: cover; animation: popIn .4s var(--spring); }
.bt-wave { font-size: 90px; color: rgba(255,255,255,.9); display: grid; }
.bt-wave.listen .icon { animation: pulse 1s ease-in-out infinite; }
@keyframes pulse { 50% { transform: scale(1.08); opacity: .75; } }
.bt-q { text-align: center; font-size: 20px; margin: 0 0 14px; }
.bt-lyrics { text-align: center; margin-bottom: 14px; }
.bt-lyrics p { margin: 4px 0; font-size: 18px; font-weight: 700; }
.bt-lyrics p.before { font-size: 15px; font-weight: 500; color: var(--text-2); }
.bt-choices { display: grid; gap: 10px; }
.bt-choice { padding: 14px 16px; border-radius: 14px; background: var(--fill-strong); text-align: left; display: flex; flex-direction: column; transition: transform .15s var(--spring), background .2s; }
.bt-choice:active { transform: scale(.97); }
.bt-choice b { font-size: 16px; } .bt-choice small { color: var(--text-2); }
.bt-choice.right { background: #30d158; color: #fff; } .bt-choice.right small { color: rgba(255,255,255,.85); }
.bt-choice.wrong { background: #ff453a; color: #fff; }
.bt-choice.picked { box-shadow: 0 0 0 2px var(--text); }
.bt-choice.dim { opacity: .45; }
.bt-choice[disabled] { cursor: default; }
.bt-feedback { text-align: center; font-weight: 700; margin-top: 14px; }
.bt-feedback.ok { color: #30d158; } .bt-feedback.ko { color: #ff453a; }
.bt-end { text-align: center; }
.bt-end .section { text-align: left; }
.board { display: flex; flex-direction: column; max-width: 560px; }
.board-row { display: grid; grid-template-columns: 30px 36px 1fr auto; gap: 12px; align-items: center; padding: 8px 6px; border-radius: 12px; }
.board-row.me { background: var(--fill); }
.board-row .avatar { width: 36px; height: 36px; font-size: 14px; }
.board-row .rk { text-align: center; font-weight: 800; color: var(--text-2); }
.board-row .n { font-weight: 600; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.board-row .sc { font-weight: 800; display: flex; align-items: baseline; gap: 6px; }
.board-row .sc small { font-weight: 600; color: var(--text-2); }
.board-row small.ok { color: #30d158; } .board-row small.ko { color: #ff453a; }
.live-code { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 18px; border-radius: 20px; background: var(--fill); max-width: 560px; margin-bottom: 14px; }
.live-code b { font-size: 40px; font-weight: 900; letter-spacing: .12em; font-variant-numeric: tabular-nums; }
.lobby-config { margin-bottom: 12px; }

/* Écoute ensemble */
.party-queue { display: flex; flex-direction: column; max-width: 720px; }
.party-how { max-width: 640px; color: var(--text-2); font-size: 14.5px; }
.party-how b { color: var(--text); }
.party-now { display: grid; grid-template-columns: 84px 1fr; gap: 14px; align-items: center; padding: 14px; border-radius: 20px; background: var(--fill); max-width: 720px; margin-bottom: 12px; }
.party-now > img { width: 84px; height: 84px; border-radius: 12px; object-fit: cover; box-shadow: var(--shadow-art); }
.pn-text { display: flex; flex-direction: column; min-width: 0; }
.pn-text b { font-size: 18px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pn-text .muted { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pn-sync { font-size: 12.5px; font-weight: 600; color: var(--text-3); margin-top: 4px; }
.pn-sync.ok { color: #30d158; }
.pn-progress { grid-column: 1 / -1; height: 4px; border-radius: 4px; background: var(--fill-strong); overflow: hidden; }
.pn-progress i { display: block; height: 100%; width: 0; background: var(--text); transition: width 1s linear; }
.pn-actions { grid-column: 1 / -1; display: flex; gap: 8px; flex-wrap: wrap; }
.pn-actions .btn.on { background: var(--text); color: var(--bg); }
.party-wait { max-width: 640px; }
.card-row { border-radius: 16px; background: var(--fill); max-width: 720px; margin-bottom: 14px; }
.party-tabs { margin-top: 18px; max-width: 720px; }
.pq-acts { display: flex; gap: 6px; align-items: center; }
.pq-acts .vote .icon { font-size: 13px; vertical-align: -1px; }
.members .member { color: var(--text); }
.small-note { font-size: 12.5px; margin-top: 8px; }
.chat-list { display: flex; flex-direction: column; gap: 8px; max-width: 720px; max-height: 46vh; overflow-y: auto; padding: 4px 2px 8px; }
.msg { display: flex; align-items: flex-end; gap: 8px; max-width: 85%; }
.msg .avatar { width: 28px; height: 28px; font-size: 12px; }
.msg.mine { align-self: flex-end; }
.bubble { padding: 8px 12px; border-radius: 18px; background: var(--fill-strong); font-size: 15px; line-height: 1.35; overflow-wrap: anywhere; -webkit-user-select: text; user-select: text; }
.bubble b { display: block; font-size: 12px; color: var(--text-2); }
.msg.mine .bubble { background: #0a84ff; color: #fff; border-bottom-right-radius: 6px; }
.msg:not(.mine) .bubble { border-bottom-left-radius: 6px; }
.chat-form { display: flex; gap: 8px; align-items: center; max-width: 720px; }
.chat-form .field { margin: 8px 0; flex: 1; }
.pq { display: grid; grid-template-columns: 46px 1fr auto; gap: 12px; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--hairline); }
.pq img { width: 46px; height: 46px; border-radius: 6px; object-fit: cover; }
.pt { display: flex; flex-direction: column; min-width: 0; }
.pt b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pt small { color: var(--text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vote { padding: 6px 12px; border-radius: 999px; background: var(--fill-strong); font-weight: 700; font-size: 13px; }
.vote.on { background: var(--text); color: var(--bg); }
.members { display: flex; flex-wrap: wrap; gap: 10px; }
.member { display: flex; align-items: center; gap: 8px; padding: 4px 12px 4px 4px; border-radius: 999px; background: var(--fill); font-weight: 600; font-size: 14px; }
.member .avatar { width: 28px; height: 28px; font-size: 12px; }

/* Mode sport */
.sport { display: flex; flex-direction: column; align-items: center; gap: 18px; max-width: 460px; margin: 10px auto 0; }
.sport-val { display: flex; flex-direction: column; align-items: center; }
.sport-val b { font-size: 84px; font-weight: 900; letter-spacing: -.04em; line-height: 1; font-variant-numeric: tabular-nums; }
.sport-val span { color: var(--text-2); }
.sport input[type="range"].slider { height: 8px; }
.tap-btn { width: 150px; height: 150px; border-radius: 50%; background: radial-gradient(circle at 30% 30%, #2bd56f, #0d6e3a); color: #fff; font-weight: 800; font-size: 16px; box-shadow: 0 16px 40px rgba(26,140,77,.4); transition: transform .1s; }
.tap-btn:active { transform: scale(.92); }

/* Réglages */
.set-account { display: flex; align-items: center; gap: 14px; padding: 14px; border-radius: 16px; background: var(--fill); max-width: 620px; }
.set-account div { display: flex; flex-direction: column; }
.set-account small { color: var(--text-2); }
.set-head { font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; color: var(--text-2); margin: 26px 0 8px 14px; }
.set-group { border-radius: 16px; background: var(--fill); max-width: 620px; overflow: hidden; }
.set-group > * + * { border-top: 1px solid var(--hairline); }
.set-row { display: flex; align-items: center; gap: 14px; padding: 12px 14px; min-height: 52px; cursor: pointer; }
.set-row > .icon { color: var(--text-3); font-size: 16px; margin-left: auto; flex: none; }
.set-row .mi-icon { width: 30px; height: 30px; border-radius: 8px; background: var(--fill-strong); font-size: 17px; color: var(--text); flex: none; }
.set-text { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.set-text b { font-weight: 500; }
.set-text small { color: var(--text-2); font-size: 13px; }
.set-row .avatar { width: 36px; height: 36px; font-size: 14px; }
.wide.btn { max-width: 620px; }
.cast-remote { margin-top: 14px; padding: 14px; border-radius: 16px; background: var(--fill); display: flex; flex-direction: column; gap: 12px; }
.cr-head { display: flex; align-items: center; gap: 8px; }
.cr-head .muted { margin-left: auto; font-size: 13px; }
.cast-remote .btn { align-self: center; }
.np-volume { display: flex; align-items: center; gap: 10px; font-size: 16px; color: var(--text-2); }

/* Écrans moyens */
@media (max-width: 1100px) {
  .shelf { grid-auto-columns: calc((100% - 3 * 18px) / 4); gap: 18px; }
  .shelf.large { grid-auto-columns: calc((100% - 18px) / 2); }
  .shelf.round { grid-auto-columns: calc((100% - 4 * 18px) / 5); }
  .track-grid { grid-auto-columns: calc((100% - 22px) / 2); }
  .tr { grid-template-columns: 36px 44px minmax(0, 1fr) 60px 100px; }
  .tr .al { display: none; }
}

/* ── Téléphone : la même allure que l'app iOS ─────────────────────────────
   Noir profond, blanc, gris par transparence (la seule couleur vient des
   pochettes) ; barre d'onglets et mini-lecteur flottants en verre ; grands
   titres ; lecteur plein écran qui monte du bas ; feuilles du bas. */

@media (max-width: 760px) {
  :root {
    --bg: #000; --bg-elevated: #1c1c1e; --sidebar: #000; --glass: rgba(28, 28, 30, 0.7);
    --hairline: rgba(255, 255, 255, 0.08); --fill: rgba(255, 255, 255, 0.07); --fill-strong: rgba(255, 255, 255, 0.12);
    --text: #fff; --text-2: rgba(255, 255, 255, 0.6); --text-3: rgba(255, 255, 255, 0.35);
    --accent: #fff; --accent-soft: rgba(255, 255, 255, 0.16); --on-accent: #000;
    --shadow-art: 0 8px 24px rgba(0, 0, 0, 0.5); --shadow-pop: 0 24px 60px rgba(0, 0, 0, 0.7);
    --safe-top: env(safe-area-inset-top, 0px); --safe-bottom: env(safe-area-inset-bottom, 0px);
    --head-h: 48px; --tab-h: 64px; --tab-gap: max(10px, calc(var(--safe-bottom) - 12px)); --mini-h: 58px;
    color-scheme: dark;
  }
  html, body { background: var(--bg); overscroll-behavior: none; }
  body { font-size: 16px; -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
  input, textarea { -webkit-user-select: text; user-select: text; }
  .app { display: block; height: 100dvh; }
  .sidebar, .topbar { display: none; }

  /* Défilement de la page entre l'en-tête et les onglets */
  .content { position: fixed; inset: 0; overflow-y: auto; overflow-x: hidden; overscroll-behavior-y: contain; -webkit-overflow-scrolling: touch;
    padding-top: calc(var(--safe-top) + var(--head-h)); padding-bottom: calc(var(--tab-h) + var(--tab-gap) + 20px); scrollbar-width: none; }
  .content::-webkit-scrollbar { display: none; }
  body.has-mini .content { padding-bottom: calc(var(--tab-h) + var(--tab-gap) + var(--mini-h) + 28px); }
  .page { padding: 4px 16px 24px; max-width: none; animation: pageIn .35s var(--ease) both; }
  .page.push { animation: pushIn .38s cubic-bezier(.32, .72, 0, 1) both; }
  .page.pop { animation: popBack .3s cubic-bezier(.32, .72, 0, 1) both; }
  @keyframes pushIn { from { transform: translateX(32%); opacity: 0; } to { transform: none; opacity: 1; } }
  @keyframes popBack { from { transform: translateX(-18%); opacity: .4; } to { transform: none; opacity: 1; } }
  .page-title { font-size: 34px; font-weight: 800; letter-spacing: -.03em; margin: 0 0 2px; }
  .page-sub { font-size: 15px; margin-bottom: 18px; }

  /* En-tête (retour, titre qui apparaît en défilant, réglages) */
  .mhead { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; position: fixed; top: 0; left: 0; right: 0; z-index: 25;
    height: calc(var(--safe-top) + var(--head-h)); padding: var(--safe-top) 10px 0; border-bottom: .5px solid transparent;
    transition: background .25s var(--ease), border-color .25s; }
  .mhead.edge { background: rgba(14, 16, 20, .55); -webkit-backdrop-filter: blur(24px) saturate(180%); backdrop-filter: blur(24px) saturate(180%); border-bottom-color: var(--hairline); }
  .mh-left { display: flex; min-width: 0; }
  .mh-title { font-size: 17px; font-weight: 700; max-width: 52vw; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; opacity: 0; transform: translateY(6px); transition: opacity .2s, transform .25s var(--ease); }
  .mhead.scrolled .mh-title { opacity: 1; transform: none; }
  .mh-right { display: flex; justify-content: flex-end; gap: 8px; }
  .mh-back { display: flex; align-items: center; gap: 2px; height: 38px; padding: 0 12px 0 4px; border-radius: 999px; font-size: 16px; font-weight: 500; max-width: 40vw;
    background: rgba(255,255,255,.1); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px); }
  .mh-back .icon { font-size: 24px; }
  .mh-back span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .mh-btn { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; font-size: 21px; background: rgba(255,255,255,.1); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px); }
  .mh-back:active, .mh-btn:active { transform: scale(.92); }
  .mh-btn.on { color: var(--accent); }

  /* Barre d'onglets flottante (Liquid Glass) */
  .tabbar { display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; z-index: 30; left: 12px; right: 12px; bottom: var(--tab-gap); height: var(--tab-h);
    padding: 5px; border-radius: 999px; background: var(--glass); -webkit-backdrop-filter: blur(28px) saturate(190%); backdrop-filter: blur(28px) saturate(190%);
    border: .5px solid rgba(255,255,255,.14); box-shadow: 0 10px 30px rgba(0,0,0,.5), inset 0 .5px 0 rgba(255,255,255,.12); transition: transform .35s var(--ease), opacity .3s; }
  .tabbar button { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; border-radius: 999px; color: var(--text-2); font-size: 10px; font-weight: 600; transition: background .2s, color .2s; }
  .tabbar button .icon { font-size: 23px; }
  .tabbar button.active { color: #fff; background: rgba(255,255,255,.22); box-shadow: inset 0 1px 0 rgba(255,255,255,.45); }
  .tabbar button:active { transform: scale(.94); }

  /* Mini-lecteur flottant au-dessus des onglets */
  .mp { display: block; position: fixed; z-index: 29; left: 12px; right: 12px; bottom: calc(var(--tab-gap) + var(--tab-h) + 8px); transition: transform .35s var(--ease), opacity .3s; }
  .mp:empty { display: none; }
  .mp-inner { position: relative; display: grid; grid-template-columns: 42px 1fr 44px 44px; gap: 10px; align-items: center; height: var(--mini-h); padding: 0 6px 0 8px; border-radius: 999px; overflow: hidden;
    background: var(--glass); -webkit-backdrop-filter: blur(28px) saturate(190%); backdrop-filter: blur(28px) saturate(190%); border: .5px solid rgba(255,255,255,.14);
    box-shadow: 0 10px 30px rgba(0,0,0,.45), inset 0 .5px 0 rgba(255,255,255,.12); }
  .mp-inner > img { width: 42px; height: 42px; border-radius: 50%; object-fit: cover; background: var(--fill-strong); }
  .mp-meta { min-width: 0; }
  .mp-meta .t { font-size: 15px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .mp-meta .a { font-size: 13px; color: var(--text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: flex; align-items: center; gap: 4px; }
  .mp-meta .a .icon { font-size: 13px; }
  .mp-btn { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; font-size: 24px; }
  .mp-btn:active { background: var(--fill-strong); transform: scale(.9); }
  .mp-progress { position: absolute; left: 22px; right: 22px; bottom: 3px; height: 2px; border-radius: 2px; background: rgba(255,255,255,.12); overflow: hidden; }
  .mp-progress .fill { height: 100%; width: 0; background: rgba(255,255,255,.75); transition: width .25s linear; }
  body.np-open .tabbar, body.np-open .mp { transform: translateY(30px); opacity: 0; pointer-events: none; }

  /* Tirer pour recharger */
  .ptr { display: block; position: fixed; z-index: 24; left: 50%; top: calc(var(--safe-top) + var(--head-h) + 6px); width: 28px; height: 28px; margin-left: -14px; pointer-events: none;
    opacity: var(--pull, 0); transform: scale(calc(.5 + var(--pull, 0) * .5)) rotate(calc(var(--pull, 0) * 270deg)); }
  .ptr span { display: block; width: 100%; height: 100%; border-radius: 50%; border: 3px solid rgba(255,255,255,.2); border-top-color: #fff; }
  .ptr.spin { opacity: 1; transform: none; } .ptr.spin span { animation: spin .8s linear infinite; }

  /* Rayons et cartes */
  .section { margin-top: 30px; }
  .section-head { border-top: 0; padding-top: 0; margin-bottom: 12px; align-items: center; }
  .section-head h2 { font-size: 22px; font-weight: 800; letter-spacing: -.02em; }
  .shelf-nav button { display: none; }
  .shelf, .track-grid { margin: 0 -16px; padding: 4px 16px 8px; scroll-padding: 0 16px; gap: 14px; }
  .shelf { grid-auto-columns: 42%; }
  .shelf.large { grid-auto-columns: 84%; }
  .shelf.round { grid-auto-columns: 30%; }
  .track-grid { grid-auto-columns: 86%; gap: 0 16px; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 16px; }
  .card .t { font-size: 15px; } .card .s { font-size: 13.5px; }
  .card .play-fab { opacity: 1; transform: none; width: 34px; height: 34px; font-size: 15px; }
  .card:not(.radio-card) .play-fab { display: none; }
  .card:hover .art-wrap, .feature:hover { transform: none; }
  .card:active .art-wrap, .feature:active, .home-hero:active, .memory:active { transform: scale(.97); }
  .feature { aspect-ratio: 1.15; border-radius: 18px; }
  .feature .play-fab { opacity: 1; transform: none; }
  .feature .title { font-size: 24px; }
  .home-hero { height: auto; aspect-ratio: 1; max-height: 420px; }
  .concert-teaser { margin-top: 30px; }
  .tiles { grid-template-columns: 1fr; gap: 10px; }

  /* Listes de titres */
  .tracks { margin: 4px -4px 0; }
  .tr { grid-template-columns: 48px minmax(0, 1fr) 40px; gap: 12px; padding: 6px 4px; border-radius: 10px; }
  .tr:nth-child(odd) { background: none; }
  .tr:hover { background: none; }
  .tr:active { background: var(--fill); }
  .tr img { width: 48px; height: 48px; border-radius: 6px; }
  .tr .n, .tr .d, .tr .al { display: none; }
  .tr .ti { font-size: 16px; }
  .tr.current .ti { color: #fff; font-weight: 700; }
  .tr.current img { box-shadow: 0 0 0 2px #fff; }
  .tr .acts { opacity: 1; }
  .tr .acts [data-act="next"], .tr .acts [data-act="like"] { display: none; }
  .tr .acts button { width: 36px; height: 36px; font-size: 20px; color: var(--text-2); }
  .tr > span:nth-child(3) { border-bottom: .5px solid var(--hairline); padding-bottom: 6px; margin-bottom: -6px; }
  .mini { grid-template-columns: 48px 1fr; padding: 6px 0; }
  .mini img { width: 48px; height: 48px; }
  .mini:hover .t { color: inherit; }
  .mini.current .t { color: #fff; font-weight: 700; }
  .link:hover { text-decoration: none; }

  /* En-tête d'album, d'artiste, de playlist */
  .hero { grid-template-columns: 1fr; justify-items: center; text-align: center; gap: 16px; padding: 4px 0 18px; }
  .hero-art { width: min(240px, 66vw); height: min(240px, 66vw); border-radius: 14px; }
  .hero h1 { font-size: 26px; margin-top: 2px; }
  .hero .by { font-size: 18px; color: var(--text-2); font-weight: 600; }
  .hero .kind { font-size: 11.5px; }
  .hero .actions { justify-content: center; gap: 10px; width: 100%; }
  .hero .actions .btn:not(.icon-only) { flex: 1; max-width: 170px; justify-content: center; }
  .hero-glow { inset: -60px -16px auto; height: 420px; }
  .hero-glow img { opacity: .55; }
  .btn { height: 46px; border-radius: 14px; padding: 0 18px; font-size: 16px; background: #fff; color: #000; }
  .btn.ghost { background: var(--fill-strong); color: #fff; }
  .btn.ghost.danger { color: #ff453a; }
  .btn.icon-only { width: 46px; font-size: 20px; }
  .btn.small { height: 34px; border-radius: 999px; font-size: 13.5px; }
  .btn.icon-only.on { color: #fff; }
  .pill-row .btn { flex: 1; }
  .pill-row.tight .btn { flex: none; }

  /* Recherche */
  .search-hero input { height: 44px; border-radius: 12px; font-size: 17px; background: var(--fill-strong); padding-left: 42px; }
  .search-hero input:focus { box-shadow: none; background: rgba(255,255,255,.16); }
  .search-hero .icon { left: 14px; top: 50%; transform: translateY(-50%); font-size: 18px; }
  .top-result { grid-template-columns: 1fr; gap: 14px; }
  .top-card { min-height: 0; flex-direction: row; align-items: center; justify-content: flex-start; gap: 14px; padding: 14px; flex-wrap: wrap; }
  .top-card img { width: 72px; height: 72px; margin: 0; }
  .top-card .t { font-size: 20px; flex: 1; min-width: 0; }
  .top-card .s { width: 100%; }
  .chips { margin-top: 12px; overflow-x: auto; flex-wrap: nowrap; scrollbar-width: none; margin-left: -16px; margin-right: -16px; padding: 0 16px; }
  .chips::-webkit-scrollbar { display: none; }
  .chip { white-space: nowrap; background: var(--fill-strong); }
  .chips.center { flex-wrap: wrap; overflow: visible; margin: 12px 0 0; padding: 0; }

  .segmented { max-width: none; border-radius: 12px; }
  .segmented > * { padding: 8px 4px; font-size: 13px; }
  .empty { padding: 60px 16px; }
  .toast { bottom: calc(var(--tab-h) + var(--tab-gap) + 18px); max-width: calc(100vw - 32px); text-align: center; background: rgba(40,40,42,.92); color: #fff; }
  body.has-mini .toast { bottom: calc(var(--tab-h) + var(--tab-gap) + var(--mini-h) + 26px); }

  /* Feuilles du bas */
  .sheet { left: 0; right: 0; top: auto; bottom: 0; width: auto; max-height: 90vh; border-radius: 24px 24px 0 0; padding: 0 16px calc(var(--safe-bottom) + 14px);
    transform: translateY(100%); opacity: 1; transition: transform .38s cubic-bezier(.32, .72, 0, 1); background: #1c1c1e; }
  .sheet-wrap.open .sheet { transform: none; }
  .sheet-wrap.tall .sheet { height: 86vh; }
  .sheet-grab { display: grid; place-items: center; height: 22px; flex: none; }
  .sheet-grab span { width: 38px; height: 5px; border-radius: 5px; background: rgba(255,255,255,.3); }
  .sheet-body { padding-top: 0; }
  .menu-item { padding: 13px 4px; font-size: 17px; }
  .menu-item:hover { background: none; }
  .menu-item:active { background: var(--fill); }
  .sheet .pill-row .btn { flex: 1; }

  /* Relais en feuille du bas */
  .devices-pop.as-sheet { top: auto !important; right: 0 !important; left: 0; bottom: 0; width: auto; max-width: none; border-radius: 24px 24px 0 0;
    padding: 14px 14px calc(var(--safe-bottom) + 14px); background: rgba(28,28,30,.96); animation: sheetUp .35s cubic-bezier(.32, .72, 0, 1) both; z-index: 85; }
  @keyframes sheetUp { from { transform: translateY(100%); } }

  /* Lecteur plein écran */
  .np.mobile { display: block; opacity: 1; visibility: hidden; transform: translateY(100%); border-radius: 0;
    transition: transform .45s cubic-bezier(.32, .72, 0, 1), visibility 0s .45s; }
  .np.mobile.open { visibility: visible; transform: none; transition: transform .45s cubic-bezier(.32, .72, 0, 1), visibility 0s; }
  .np.mobile .np-bg img { filter: blur(70px) saturate(1.7) brightness(.6); }
  .np-m { position: relative; z-index: 1; height: 100%; display: flex; flex-direction: column; gap: 14px; padding: calc(var(--safe-top) + 4px) 24px calc(var(--safe-bottom) + 12px); }
  .np-grab { flex: none; height: 26px; display: grid; place-items: center; }
  .np-grab span { width: 40px; height: 5px; border-radius: 5px; background: rgba(255,255,255,.4); }
  .np-stage { flex: 1; min-height: 0; display: grid; place-items: center; }
  .np-m .np-art { width: 100%; max-width: min(100%, 46vh); aspect-ratio: 1; height: auto; border-radius: 14px; box-shadow: 0 26px 60px rgba(0,0,0,.55); transition: transform .5s var(--spring); }
  .np.paused .np-m .np-art { transform: scale(.84); }
  .np-m .np-meta { gap: 6px; }
  .np-m .np-meta .t { font-size: 22px; }
  .np-m .np-meta .a { font-size: 18px; }
  .np-m .np-meta .tbtn { width: 40px; height: 40px; font-size: 22px; background: rgba(255,255,255,.12); flex: none; }
  .np-m .np-meta .tbtn.on { color: #fff; }
  .np-m .np-progress input[type="range"].slider { height: 7px; }
  .np-m input[type="range"].slider::-webkit-slider-thumb { opacity: 1; width: 16px; height: 16px; }
  .np-m .np-transport { gap: 0; justify-content: space-between; }
  .np-m .np-transport .tbtn { width: 60px; height: 60px; font-size: 36px; }
  .np-m .np-transport .tbtn.big { width: 78px; height: 78px; font-size: 52px; }
  .np-m .np-transport .tbtn.small { width: 44px; height: 44px; font-size: 21px; }
  .np-m .np-transport .tbtn:hover { background: none; }
  .np-m .np-transport .tbtn:active { background: rgba(255,255,255,.12); transform: scale(.9); }
  .np-m .np-volume { color: rgba(255,255,255,.6); }
  .np-m .np-volume input[type="range"].slider { background: linear-gradient(to right, rgba(255,255,255,.85) var(--p, 0%), rgba(255,255,255,.22) var(--p, 0%)); height: 6px; }
  .np-bottom { flex: none; display: flex; justify-content: space-around; }
  .np-bottom .tbtn { width: 46px; height: 46px; font-size: 22px; color: rgba(255,255,255,.55); }
  .np-bottom .tbtn.on { color: #fff; background: rgba(255,255,255,.16); }
  .np-m .np-sing { background: rgba(255,255,255,.08); border-radius: 18px; padding: 10px 12px; }
  .np-mini-head { flex: none; display: grid; grid-template-columns: 56px 1fr auto auto; gap: 12px; align-items: center; }
  .np-mini-head img { width: 56px; height: 56px; border-radius: 8px; object-fit: cover; }
  .np-mini-head .tbtn { color: #fff; width: 38px; height: 38px; font-size: 20px; background: rgba(255,255,255,.12); }
  .np-meta-s { min-width: 0; }
  .np-meta-s .t { font-weight: 700; font-size: 17px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .np-meta-s .a { color: rgba(255,255,255,.65); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .np-panel { display: block; place-items: normal; position: relative; overflow: hidden; }
  .np-panel .lyrics { padding: 22% 20px 60%; -webkit-mask-image: linear-gradient(to bottom, transparent, #000 10%, #000 80%, transparent); mask-image: linear-gradient(to bottom, transparent, #000 10%, #000 80%, transparent); }
  .np-panel .lyrics p { font-size: 28px; }
  .np-panel .lyrics.plain p { font-size: 22px; }
  .np-panel .queue { padding: 8px 0 24px; }
  .np-panel .qrow { padding: 8px 4px; }
  .np-m .moments { top: -20px; }

  /* Écrans de fonctions */
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
  .big-num { font-size: 46px; }
  .habits { grid-template-columns: 1fr; }
  .bars-chart { height: 120px; }
  .challenges { grid-template-columns: 1fr; }
  .badges { grid-template-columns: repeat(2, 1fr); }
  .rank-row { grid-template-columns: 22px 46px 1fr auto; }
  .rank-row img { width: 46px; height: 46px; }
  .live-code b { font-size: 34px; }
  .set-head { margin-left: 16px; }
  .set-group, .set-account { border-radius: 14px; }
  .login-card { padding-bottom: env(safe-area-inset-bottom); }
  .login h1 { font-size: 40px; }
  .login p { font-size: 16px; }
  .resume { grid-template-columns: 52px 1fr; }
  .resume img { width: 52px; height: 52px; }
  .resume-cta { grid-column: 1 / -1; justify-content: center; }
  .profile-head .hero-glow { inset: -60px -16px auto; }
}

/* Appli installée : rien à sélectionner, pas de surbrillance au toucher. */
@media (display-mode: standalone) {
  body { -webkit-user-select: none; user-select: none; }
  input, textarea { -webkit-user-select: text; user-select: text; }
}

/* Mode focus : chrono flottant */
.focus-pill { position: fixed; z-index: 60; right: 22px; bottom: 22px; display: flex; align-items: center; gap: 10px; padding: 10px 16px; border-radius: 999px; color: #fff; font-size: 14px; background: linear-gradient(120deg, #ff8a3d, #ff3d6e); box-shadow: 0 10px 30px rgba(0,0,0,.35); }
.focus-pill.rest { background: linear-gradient(120deg, #2fb67c, #1f7a8c); }
.focus-pill b { font-variant-numeric: tabular-nums; font-size: 16px; }
.focus-chips { flex-wrap: wrap; }
@media (max-width: 760px) { .focus-pill { bottom: calc(150px + env(safe-area-inset-bottom)); right: 14px; } }

/* Mix « selon la météo » */
.mood { display: grid; grid-template-columns: 64px 1fr auto; gap: 14px; align-items: center; width: 100%; max-width: 720px; margin-top: 14px; padding: 12px 14px; border-radius: 18px; text-align: left; color: #fff; background: linear-gradient(120deg, #1d4e89, #102a4c); }
.mood-pluie, .mood-gris { background: linear-gradient(120deg, #3b4a63, #1b2433); }
.mood-neige { background: linear-gradient(120deg, #6d8fb3, #2d4060); }
.mood-nuit { background: linear-gradient(120deg, #241b4f, #0d0b22); }
.mood-soiree { background: linear-gradient(120deg, #b0246a, #4a1460); }
.mood-soleil, .mood-matin { background: linear-gradient(120deg, #f29a2e, #c2451f); }
.mood-emoji { font-size: 40px; text-align: center; }
.mood-text { display: flex; flex-direction: column; min-width: 0; }
.mood .eyebrow { color: rgba(255,255,255,.75); }
.mood .t { font-weight: 700; font-size: 17px; }
.mood .s { font-size: 13px; opacity: .8; }
.mood .link { text-decoration: underline; cursor: pointer; }
.mood .fab { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: #fff; color: #000; }
.mood .fab svg { width: 18px; height: 18px; }
/* Défis entre amis */
.champion { margin: 0 0 12px; padding: 10px 14px; border-radius: 14px; background: linear-gradient(120deg, rgba(242,183,5,.25), rgba(242,113,28,.12)); font-weight: 600; }
.boards { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; }
.board { padding: 14px; border-radius: 16px; background: var(--fill); }
.board .bt { font-weight: 700; margin-bottom: 8px; }
.brow { display: grid; grid-template-columns: 28px 26px 1fr auto; align-items: center; gap: 8px; padding: 5px 0; font-size: 14px; }
.brow.me .bn { color: var(--accent); font-weight: 700; }
.brow .bm { text-align: center; }
.brow small { color: var(--text-2); font-weight: 500; }
.bav { width: 26px; height: 26px; border-radius: 50%; font-size: 11px; display: grid; place-items: center; background: var(--fill-strong); object-fit: cover; }
.bn { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Reconnaître un titre */
.rec { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 18px 0 8px; text-align: center; }
.rec-pulse { width: 110px; height: 110px; border-radius: 50%; display: grid; place-items: center; background: var(--accent); color: var(--on-accent, #fff); font-size: 44px; animation: rec-pulse 1.2s ease-in-out infinite; margin-bottom: 8px; }
@keyframes rec-pulse { 50% { box-shadow: 0 0 0 22px color-mix(in srgb, var(--accent) 18%, transparent); } }
.rec-art { width: 180px; height: 180px; border-radius: 14px; object-fit: cover; box-shadow: 0 16px 40px rgba(0,0,0,.4); background: var(--fill); }
.rec-title { font-size: 20px; margin-top: 6px; }
.rec .btn { margin-top: 10px; }

/* Page artiste : filtres de discographie, biographie */
.dl-mark { display: inline-flex; vertical-align: -2px; margin-right: 6px; color: var(--text-3); font-size: 13px; }
.disco-controls { display: flex; flex-wrap: wrap; gap: 10px 22px; margin: 26px 0 -6px; }
.disco-controls .chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip.on { background: var(--accent); color: var(--on-accent, #fff); }
.bio { max-width: 760px; }
.bio-text { margin: 0; line-height: 1.55; color: var(--text-2); font-size: 15px; white-space: pre-line; }
.bio-text.clamp { display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.bio-foot { display: flex; align-items: center; gap: 16px; margin-top: 8px; }
.bio-foot .link-btn { margin-top: 0; }
.bio-src { font-size: 12.5px; color: var(--text-3); }


/* ═══ Sona v2 — direction artistique ═════════════════════════════════════════
   Un fond marine très sombre, un grand panneau arrondi pour le contenu, un
   lecteur flottant en bas, un seul accent (bleu ciel) pour ce qui est actif.
   Beaucoup d'air : échelle de 4 px, marges de 56 px, titres larges.
   Ce bloc vient en dernier : il reprend les variables et composants plus haut. */

:root {
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", "Segoe UI Variable Text", "Segoe UI", "Helvetica Neue", system-ui, sans-serif;
  --canvas: #08080a;
  --bg: #101012;            /* panneau de contenu */
  --bg-elevated: #19191c;   /* cartes, feuilles */
  --sidebar: transparent;
  --glass: rgba(25, 25, 28, 0.82);
  --hairline: rgba(255, 255, 255, 0.07);
  --fill: rgba(255, 255, 255, 0.045);
  --fill-strong: rgba(255, 255, 255, 0.085);
  --text: #f2f5fb;
  --text-2: rgba(242, 245, 251, 0.62);
  --text-3: rgba(242, 245, 251, 0.38);
  --accent: #f5f5f7;
  --accent-2: #f5f5f7;
  --accent-soft: rgba(255, 255, 255, 0.1);
  --on-accent: #0a0a0b;
  --shadow-art: none;
  --shadow-pop: 0 24px 64px rgba(0, 0, 0, 0.55);
  --radius-art: var(--r-art);
  --r-panel: 28px; --r-card: 22px; --r-art: 18px; --r-ctl: 999px;
  --sidebar-w: 256px;
  --page-x: 64px;
  --s-1: 4px; --s-2: 8px; --s-3: 12px; --s-4: 16px; --s-5: 24px; --s-6: 32px; --s-7: 48px; --s-8: 64px; --s-9: 96px;
  color-scheme: dark;
}
html { background: var(--canvas); }
body {
  font-family: var(--font); font-size: 15px; line-height: 1.5; letter-spacing: 0; background: transparent;
  background-color: var(--canvas);
}
button, input, textarea, select { font-family: inherit; }

/* ── Écran d'ordinateur : menu sur le fond, contenu en panneau, lecteur flottant ── */
@media (min-width: 761px) {
  .app { grid-template-columns: var(--sidebar-w) 1fr; grid-template-rows: 1fr; height: 100vh; height: 100dvh; background: transparent; }
  .sidebar { grid-row: 1; background: transparent; -webkit-backdrop-filter: none; backdrop-filter: none; border: 0; box-shadow: none; padding: var(--s-6) var(--s-4) var(--s-4) var(--s-5); gap: var(--s-1); }
  .content {
    grid-column: 2; grid-row: 1; margin: var(--s-3) var(--s-3) var(--s-3) 0; border-radius: var(--r-panel);
    background: var(--bg); border: 1px solid var(--hairline); box-shadow: 0 1px 0 rgba(255, 255, 255, 0.03) inset;
  }
  .page { padding: var(--s-8) var(--page-x) 168px; max-width: 1320px; margin: 0 auto; animation: none; }
  .topbar {
    position: fixed; z-index: 20; bottom: var(--s-5); height: 76px;
    left: calc(var(--sidebar-w) + (100vw - var(--sidebar-w)) / 2); transform: translateX(-50%);
    width: min(920px, calc(100vw - var(--sidebar-w) - 96px));
    grid-template-columns: auto minmax(180px, 1fr) auto; gap: var(--s-5); padding: 0 var(--s-5) 0 var(--s-4);
    background: var(--glass); -webkit-backdrop-filter: blur(28px) saturate(160%); backdrop-filter: blur(28px) saturate(160%);
    border: 1px solid var(--hairline); border-radius: var(--r-panel); box-shadow: var(--shadow-pop);
  }
  .lcd { background: transparent; border: 0; height: 56px; border-radius: 14px; }
  .lcd .art { width: 56px; height: 56px; border-radius: 12px; }
  .lcd .meta { text-align: left; }
  .lcd .progress { left: 68px; bottom: 2px; height: 4px; border-radius: 4px; background: var(--fill-strong); }
  .lcd .progress .fill { background: var(--accent); border-radius: 4px; }
  .volume { width: 120px; }
}

/* ── Marque et navigation ───────────────────────────────────────────────── */
.lit { text-shadow: none; }
.brand { align-items: baseline; gap: 0; padding: 0 0 var(--s-6) 0; margin-left: -7px; font-size: 26px; font-weight: 700; letter-spacing: -0.05em; }
.brand-mark svg { transform: translateY(5.4px); }
.brand .wordmark { font-size: 37px; line-height: 1; padding-right: .08em; }
.brand-mark, .brand-mark svg { width: 38px; height: 38px; display: block; flex: none; border-radius: 0; background: none; box-shadow: none; color: var(--accent); }
.side-search { margin: 0 0 var(--s-5); }
.side-search input { height: 42px; border-radius: 14px; background: var(--fill); font-size: 14px; padding-left: 40px; }
.side-search input:focus { background: var(--fill-strong); box-shadow: 0 0 0 1px var(--accent-soft); }
.side-search .icon { left: 14px; top: 13px; }
.side-section { padding: var(--s-6) var(--s-4) var(--s-2); font-size: 11px; font-weight: 600; letter-spacing: 0.09em; color: var(--text-3); }
.side-link { gap: var(--s-3); padding: 10px var(--s-4); border-radius: 14px; font-size: 14.5px; font-weight: 500; color: var(--text-2); }
.side-link .icon { color: currentColor; font-size: 19px; }
.side-link:hover { background: var(--fill); color: var(--text); }
.side-link.active { background: var(--accent-soft); color: var(--accent); box-shadow: none; font-weight: 600; }
.side-user { margin-top: var(--s-3); padding: var(--s-4) var(--s-3) var(--s-1); border-top: 0; }

/* ── Lecteur ────────────────────────────────────────────────────────────── */
.tbtn { border-radius: 50%; }
.tbtn:hover { background: var(--fill-strong); }
.tbtn.big { background: var(--accent); color: var(--on-accent); width: 46px; height: 46px; font-size: 24px; }
.tbtn.big:hover { background: var(--accent); filter: brightness(1.08); }
.tbtn.on { color: var(--accent); text-decoration: none; }
input[type="range"].slider { height: 4px; background: linear-gradient(to right, var(--accent) var(--p, 0%), var(--fill-strong) var(--p, 0%)); }
input[type="range"].slider::-webkit-slider-thumb { background: var(--accent); }

/* ── Pages ──────────────────────────────────────────────────────────────── */
.page-title { font-size: 44px; font-weight: 700; letter-spacing: -0.04em; line-height: 1.08; margin: 0 0 var(--s-6); word-spacing: 0; }
.page-title + .page-sub { margin-top: calc(-1 * var(--s-4)); }
.page-sub { font-size: 17px; color: var(--text-2); margin: 0 0 var(--s-8); max-width: 52ch; }
.section { margin-top: var(--s-9); }
.section:first-child { margin-top: var(--s-7); }
.section-head { border-top: 0; padding-top: 0; margin-bottom: var(--s-6); align-items: center; }
.section-head h2 { font-size: 22px; font-weight: 650; letter-spacing: -0.02em; }
.section-head .more { color: var(--text-2); font-size: 14px; font-weight: 500; }
.section-head .more:hover { color: var(--accent); }
.shelf-nav { gap: var(--s-2); }
.shelf-nav button { width: 36px; height: 36px; background: var(--fill); }
.shelf-nav button:hover { background: var(--fill-strong); }

/* Cartes */
.shelf { gap: var(--s-6); grid-auto-columns: calc((100% - 4 * var(--s-6)) / 5); }
.shelf.large { grid-auto-columns: calc((100% - 2 * var(--s-6)) / 3); }
.shelf.round { grid-auto-columns: calc((100% - 6 * var(--s-6)) / 7); }
.grid { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: var(--s-7) var(--s-6); }
.card .art-wrap { box-shadow: none; transition: transform .35s var(--ease); }
.card:hover .art-wrap { transform: scale(1.025); box-shadow: none; }
.card .art-wrap::after { display: none; }
.card .t { margin-top: var(--s-4); font-size: 15px; font-weight: 600; letter-spacing: -0.01em; }
.card .s { margin-top: 2px; font-size: 13.5px; color: var(--text-2); }
.card .play-fab { background: var(--accent); color: var(--on-accent); box-shadow: none; }
.feature { border-radius: var(--r-card); box-shadow: none; }
.feature:hover { transform: none; box-shadow: none; }

/* Titres */
.track-grid { gap: 0 var(--s-6); }
.mini { padding: var(--s-3) var(--s-3) var(--s-3) 0; gap: var(--s-4); grid-template-columns: 52px 1fr auto; }
.mini img { width: 52px; height: 52px; border-radius: 12px; box-shadow: none; }
.mini:hover .t, .mini.current .t { color: var(--accent); }
.tracks { margin-top: var(--s-4); }
.tr { padding: var(--s-3) var(--s-4); gap: var(--s-4); border-radius: 16px; }
.tr:nth-child(odd) { background: transparent; }
.tr:hover { background: var(--fill); }
.tr.current { background: var(--accent-soft); }
.tr.current .ti, .tr.current .n, .tr .acts button.liked, .tr .acts button:hover { color: var(--accent); }
.tr img { width: 48px; height: 48px; border-radius: 10px; }
.bars i { background: var(--accent); }

/* En-tête d'album, de playlist, d'artiste */
.hero { grid-template-columns: 280px 1fr; gap: var(--s-8); padding: var(--s-4) 0 var(--s-7); align-items: end; }
.hero-art { width: 280px; height: 280px; border-radius: var(--r-card); box-shadow: none; }
.hero .kind { letter-spacing: 0.1em; color: var(--text-2); }
.hero h1 { font-size: 48px; font-weight: 700; letter-spacing: -0.04em; margin: var(--s-3) 0 var(--s-2); }
.hero .by { font-size: 20px; color: var(--text-2); font-weight: 500; }
.hero .info { margin-top: var(--s-3); }
.hero .actions { gap: var(--s-3); margin-top: var(--s-6); }
.page { isolation: isolate; }
.hero-glow { display: block; position: absolute; z-index: -1; inset: calc(-1 * var(--s-8)) calc(-1 * var(--page-x)) auto; height: 520px; opacity: 1; overflow: hidden; pointer-events: none; }
.hero-glow img { filter: blur(90px) saturate(1.5); opacity: .6; transform: scale(1.4); }
.hero-glow::after { background: linear-gradient(to bottom, transparent 20%, var(--bg) 98%); }
.hero > :not(.hero-glow) { position: relative; z-index: 1; }

/* ── Boutons, puces, champs : tout en pilule ────────────────────────────── */
.btn { height: 44px; padding: 0 var(--s-6); border-radius: var(--r-ctl); font-size: 15px; font-weight: 600; background: var(--accent); color: var(--on-accent); box-shadow: none; }
.btn:hover { filter: brightness(1.08); }
.btn.ghost { background: var(--fill-strong); color: var(--text); border: 0; box-shadow: none; }
.btn.ghost:hover { background: rgba(255, 255, 255, 0.13); filter: none; }
.chips { gap: var(--s-2); margin-top: var(--s-5); }
.chip { padding: 9px var(--s-5); border-radius: var(--r-ctl); border: 0; background: var(--fill); box-shadow: none; }
.chip.on { background: var(--accent); color: var(--on-accent); }
.field { height: 48px; border-radius: 14px; background: var(--fill); }
.field:focus { box-shadow: 0 0 0 1px var(--accent); }
.search-hero input { height: 60px; border-radius: 20px; background: var(--fill); font-size: 18px; padding-left: 52px; }
.search-hero input:focus { background: var(--fill-strong); box-shadow: 0 0 0 1px var(--accent-soft); }

/* Tuiles */
.tile, .tile.violet, .tile.blue, .tile.green, .tile.orange, .tile.pink { background: var(--fill); border: 0; border-radius: var(--r-card); padding: var(--s-5) var(--s-6); gap: var(--s-4); }
.tile:hover, .tile.blue:hover { background: var(--fill-strong); }
.tile-icon { background: var(--accent-soft); color: var(--accent); border-radius: 14px; width: 48px; height: 48px; }
.tiles { gap: var(--s-5); }
.live-pill.violet, .badge.earned, .stat-hero, .resume, .dev-remote { background: var(--fill); border: 0; border-radius: var(--r-card); }

/* Réglages */
.set-head { margin: var(--s-8) 0 var(--s-4) var(--s-5); letter-spacing: 0.08em; color: var(--text-3); }
.set-group, .set-account { border-radius: var(--r-card); max-width: 720px; background: var(--fill); }
.set-row { padding: var(--s-5) var(--s-6); min-height: 68px; gap: var(--s-5); }
.switch-row { padding: var(--s-5) var(--s-6); }
.switch-row input:checked + i { background: var(--accent); }
.switch-row input:checked + i::after { background: #fff; box-shadow: none; }
.switch-row i::after { box-shadow: none; }

/* Feuilles, notifications */
.toast { border-radius: 999px; background: var(--bg-elevated); -webkit-backdrop-filter: none; backdrop-filter: none; box-shadow: var(--shadow-pop); border: 1px solid var(--hairline); }
.sheet { background: var(--bg-elevated); -webkit-backdrop-filter: none; backdrop-filter: none; border: 1px solid var(--hairline); border-radius: var(--r-panel); box-shadow: var(--shadow-pop); }
.sheet-backdrop { background: rgba(0, 0, 0, 0.66); }
.focus-pill, .focus-pill.rest { display: none; }

/* Connexion */
.login-bg { background: transparent; }
.login-card { max-width: 400px; padding: var(--s-8) var(--s-7) var(--s-7); border-radius: var(--r-panel); background: var(--bg); border: 1px solid var(--hairline); box-shadow: var(--shadow-pop); -webkit-backdrop-filter: none; backdrop-filter: none; }
.login-mark { width: 96px; height: 96px; display: block; margin: 0 auto var(--s-6); filter: none; color: var(--accent); }
.login h1 { font-size: 40px; font-weight: 700; letter-spacing: -0.04em; }
.login p { font-size: 16px; margin-bottom: var(--s-7); }
.login .btn { height: 52px; padding: 0 var(--s-7); font-size: 16px; }

/* Écrans moyens et téléphone */
@media (max-width: 1100px) {
  :root { --page-x: 40px; }
  .page-title { font-size: 40px; }
  .shelf { grid-auto-columns: calc((100% - 3 * var(--s-5)) / 4); gap: var(--s-5); }
  .shelf.large { grid-auto-columns: calc((100% - var(--s-5)) / 2); }
  .shelf.round { grid-auto-columns: calc((100% - 4 * var(--s-5)) / 5); }
}
@media (max-width: 760px) {
  :root { --page-x: 20px; }
  .page { padding: var(--s-5) var(--page-x) var(--s-7); }
  .page-title { font-size: 34px; }
  .page-sub { font-size: 16px; margin-bottom: var(--s-6); }
  .section { margin-top: var(--s-8); }
  .shelf { gap: var(--s-4); }
  .hero { grid-template-columns: 1fr; gap: var(--s-5); }
  .hero-art { width: min(260px, 72vw); height: auto; aspect-ratio: 1; }
  .hero h1 { font-size: 34px; }
  .login-card { padding: var(--s-7) var(--s-5) var(--s-6); }
  .tabbar button.active { background: var(--accent-soft); color: var(--accent); box-shadow: none; }
}

/* ── Menu : un rail d'icônes qui s'ouvre au survol (ou toujours ouvert) ───────
   Au repos 88 px : seulement les icônes et ta pastille. Au survol ou au clavier,
   il glisse par-dessus le contenu sans le décaler. Réglage « Menu » dans Apparence. */
@media (min-width: 761px) {
  :root { --sidebar-w: 88px; --sidebar-open: 264px; }
  html[data-menu="ouvert"] { --sidebar-w: 264px; }
  .sidebar {
    position: fixed; z-index: 30; inset: 0 auto 0 0; width: var(--sidebar-w); overflow: hidden;
    padding: var(--s-6) 22px var(--s-4); border-radius: 0 var(--r-panel) var(--r-panel) 0;
    transition: width .28s cubic-bezier(.32, .72, 0, 1) .06s, background .2s ease, box-shadow .28s ease;
  }
  .sidebar:hover, .sidebar:has(:focus-visible) {
    width: var(--sidebar-open); background: rgba(20, 20, 22, 0.94);
    -webkit-backdrop-filter: blur(28px) saturate(160%); backdrop-filter: blur(28px) saturate(160%);
    box-shadow: var(--shadow-pop), inset -1px 0 0 var(--hairline);
  }
  html[data-menu="ouvert"] .sidebar { width: var(--sidebar-open); padding-left: var(--s-5); padding-right: var(--s-4); border-radius: 0; }
  .app { grid-template-columns: var(--sidebar-w) 1fr; }
  .content { grid-column: 2; }

  /* Le S (38 px) tombe au milieu du rail : 22 de marge + 3 + 19 = 44, comme les icônes. */
  .app .sidebar .brand { margin-left: 3px; }
  .sidebar .brand .wordmark { max-width: 0; opacity: 0; overflow: hidden; white-space: nowrap; transition: opacity .15s ease, max-width .28s ease; }
  .sidebar:hover .brand .wordmark, .sidebar:has(:focus-visible) .brand .wordmark, html[data-menu="ouvert"] .sidebar .brand .wordmark { max-width: 160px; opacity: 1; transition-delay: .1s; }

  .side-search { width: 44px; overflow: hidden; border-radius: 14px; transition: width .28s cubic-bezier(.32, .72, 0, 1) .06s; }
  .side-search input { width: var(--sidebar-open); min-width: 0; color: transparent; }
  .side-search input::placeholder { color: transparent; }
  .sidebar:hover .side-search, .sidebar:has(:focus-visible) .side-search, html[data-menu="ouvert"] .sidebar .side-search { width: 100%; }
  .sidebar:hover .side-search input, .sidebar:has(:focus-visible) .side-search input, html[data-menu="ouvert"] .sidebar .side-search input { width: 100%; color: var(--text); }
  .sidebar:hover .side-search input::placeholder, .sidebar:has(:focus-visible) .side-search input::placeholder, html[data-menu="ouvert"] .sidebar .side-search input::placeholder { color: var(--text-3); }

  /* Rien ne bouge à l'ouverture : mêmes marges et mêmes hauteurs au repos et
     ouvert, seuls les libellés apparaissent (sinon icônes et pastille glissent
     de côté et tout le bas du menu saute). */
  .side-list { overflow-x: hidden; }
  .side-link { font-size: 0; overflow: hidden; white-space: nowrap; height: 40px; padding: 0 12px; flex-shrink: 0; }
  .side-link .icon { font-size: 19px; flex: none; }
  .side-link .side-badge { display: none; }
  .sidebar:hover .side-link, .sidebar:has(:focus-visible) .side-link, html[data-menu="ouvert"] .sidebar .side-link { font-size: 14.5px; }
  .sidebar:hover .side-link .side-badge, .sidebar:has(:focus-visible) .side-link .side-badge, html[data-menu="ouvert"] .sidebar .side-link .side-badge { display: inline; }

  /* Section : au repos un trait au milieu, ouvert son titre en bas, dans la même hauteur. */
  .side-section {
    display: flex; align-items: flex-end; height: 44px; margin: 0; padding: 0 var(--s-4) var(--s-2); flex-shrink: 0;
    font-size: 0; white-space: nowrap; overflow: hidden;
    background: linear-gradient(var(--hairline), var(--hairline)) 12px 50% / 20px 1px no-repeat;
  }
  .sidebar:hover .side-section, .sidebar:has(:focus-visible) .side-section, html[data-menu="ouvert"] .sidebar .side-section { font-size: 11px; background: none; }

  .side-user { padding-left: 7px; }
  .side-user .name, .side-user .gear { display: none; }
  .sidebar:hover .side-user .name, .sidebar:has(:focus-visible) .side-user .name, html[data-menu="ouvert"] .sidebar .side-user .name { display: block; }
  .sidebar:hover .side-user .gear, .sidebar:has(:focus-visible) .side-user .gear, html[data-menu="ouvert"] .sidebar .side-user .gear { display: grid; }
}
.side-section:has(+ div:empty) { display: none; }

/* Teinte de la pochette en haut des fiches : sur toute la largeur du panneau.
   Calée sur l'en-tête, elle s'arrêtait net aux bords de la colonne centrale
   (1320 px) dès que la fenêtre est plus large. Elle se place maintenant dans
   le panneau qui défile (.content), et défile avec la page. */
@media (min-width: 761px) {
  .content .hero, .content .profile-head, .content .blend-head { position: static; }
  :root .content .hero-glow, :root .content .profile-head .hero-glow { inset: 0 0 auto; }
}

/* Ouverture d'une page (album, playlist, artiste, onglet…) sur ordinateur :
   la teinte s'allume, la pochette se pose, le texte puis les titres montent
   en cascade. Retour en arrière : un simple fondu. Rien si l'on demande
   moins d'animations (réglage du système). */
@media (min-width: 761px) and (prefers-reduced-motion: no-preference) {
  .page.enter { animation: pg-fade .3s ease-out backwards; }
  .page.enter-back { animation: pg-fade .22s ease-out backwards; }
  .page.enter .hero-glow { animation: pg-glow 1s ease-out backwards; }
  .page.enter :is(.hero-art, .profile-avatar) { animation: pg-art .62s cubic-bezier(.16, 1, .3, 1) backwards; }
  .page.enter :is(.hero-text, .profile-head) > :not(.hero-glow) { animation: pg-rise .5s cubic-bezier(.16, 1, .3, 1) backwards; animation-delay: calc(70ms + var(--d, 0) * 45ms); }
  .page.enter :is(.tr, .card, .feature) { animation: pg-rise .46s cubic-bezier(.16, 1, .3, 1) backwards; animation-delay: calc(150ms + var(--d, 0) * 26ms); }
  .page.enter :is(.hero-text, .profile-head) > :nth-child(2), .page.enter :is(.tr, .card, .feature):nth-child(2) { --d: 1; }
  .page.enter :is(.hero-text, .profile-head) > :nth-child(3), .page.enter :is(.tr, .card, .feature):nth-child(3) { --d: 2; }
  .page.enter :is(.hero-text, .profile-head) > :nth-child(4), .page.enter :is(.tr, .card, .feature):nth-child(4) { --d: 3; }
  .page.enter :is(.hero-text, .profile-head) > :nth-child(5), .page.enter :is(.tr, .card, .feature):nth-child(5) { --d: 4; }
  .page.enter :is(.hero-text, .profile-head) > :nth-child(6), .page.enter :is(.tr, .card, .feature):nth-child(6) { --d: 5; }
  .page.enter :is(.tr, .card, .feature):nth-child(7) { --d: 6; }
  .page.enter :is(.tr, .card, .feature):nth-child(8) { --d: 7; }
  .page.enter :is(.tr, .card, .feature):nth-child(9) { --d: 8; }
  .page.enter :is(.tr, .card, .feature):nth-child(10) { --d: 9; }
  .page.enter :is(.tr, .card, .feature):nth-child(11) { --d: 10; }
  .page.enter :is(.tr, .card, .feature):nth-child(n+12) { --d: 11; }
}
@keyframes pg-fade { from { opacity: 0; } }
@keyframes pg-glow { from { opacity: 0; } }
@keyframes pg-art { from { opacity: 0; transform: translateY(14px) scale(.94); } }
@keyframes pg-rise { from { opacity: 0; transform: translateY(12px); } }

/* ── Personnalisation (Réglages > Apparence) ────────────────────────────── */
html[data-shape="net"] { --r-panel: 12px; --r-card: 8px; --r-art: 6px; --r-ctl: 10px; }
html[data-tint="off"] .hero-glow { display: none; }


.look-accents { display: flex; flex-wrap: wrap; gap: var(--s-5); max-width: 720px; }
.look-sw { display: grid; justify-items: center; gap: var(--s-2); }
.look-sw::before { content: ""; width: 48px; height: 48px; border-radius: 50%; background: var(--c); box-shadow: inset 0 0 0 1px rgba(255,255,255,.16); transition: box-shadow .2s var(--ease); }
.look-sw span { font-size: 12.5px; color: var(--text-2); }
.look-sw.on::before { box-shadow: 0 0 0 3px var(--bg), 0 0 0 5px var(--text); }
.look-sw.on span { color: var(--text); }

.look-seg { cursor: default; }
.look-seg .chips { margin: 0; flex: none; }
@media (max-width: 760px) {
  .look-seg { flex-wrap: wrap; }
}

/* Décalage global des paroles (Apparence > Paroles) */
.lyr-step { display: inline-flex; align-items: center; gap: var(--s-3); flex: none; }
.lyr-step button { width: 36px; height: 36px; border-radius: 50%; background: var(--fill-strong); font-size: 20px; font-weight: 600; line-height: 1; }
.lyr-step button:hover { background: rgba(255, 255, 255, 0.16); }
.lyr-step output { min-width: 64px; text-align: center; font-variant-numeric: tabular-nums; font-weight: 600; }

/* ═══ Lecteur en grand ═══════════════════════════════════════════════════════
   Fond teinté par la pochette (coupable dans Apparence), pochette qui rétrécit en
   pause, bouton lecture blanc, onglets en pilule, rangée volume + karaoké compacte. */
.np { background: var(--canvas); }
.np-bg img { filter: blur(110px) saturate(1.6) brightness(.62); }
.np-bg::after { background: radial-gradient(120% 90% at 30% 15%, rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.6)), linear-gradient(to top, rgba(0, 0, 0, 0.5), transparent 50%); }
html[data-tint="off"] .np-bg img, html[data-tint="off"] .np-gl { display: none; }

.np-top { padding: 22px 32px; }
.np-top .tbtn { width: 44px; height: 44px; border-radius: 50%; }
.np-tabs { padding: 4px; border-radius: 999px; background: rgba(255, 255, 255, 0.1); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px); }
.np-tabs button { padding: 8px 22px; border-radius: 999px; font-size: 14px; font-weight: 600; transition: background .25s var(--ease), color .25s var(--ease); }
.np-tabs button.on { background: #fff; color: #000; }

.np-body { grid-template-columns: minmax(320px, 520px) minmax(0, 1fr); gap: 8vw; padding: 0 8vw 6vh; }
.np-left { gap: 26px; }
.np-art {
  border-radius: var(--r-panel); background: var(--fill);
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(255, 255, 255, 0.07);
  transition: transform .7s cubic-bezier(.2, .8, .2, 1), box-shadow .7s cubic-bezier(.2, .8, .2, 1);
}
.np.paused .np-art { transform: scale(.9); box-shadow: 0 18px 48px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(255, 255, 255, 0.06); }
.np-meta .t { font-size: 28px; font-weight: 700; letter-spacing: -0.03em; line-height: 1.15; }
.np-meta .a { font-size: 17px; margin-top: 2px; color: rgba(255, 255, 255, 0.62); }

.np-progress input[type="range"].slider { height: 4px; background: linear-gradient(to right, #fff var(--p, 0%), rgba(255, 255, 255, 0.2) var(--p, 0%)); transition: height .15s var(--ease); }
.np-progress:hover input[type="range"].slider { height: 8px; }
.np-progress input[type="range"].slider::-webkit-slider-thumb { background: #fff; }
.np-times { margin-top: 10px; }

.np-transport { gap: 34px; }
.np-transport .tbtn:not(.big):hover { background: rgba(255, 255, 255, 0.1); }
.np-transport .tbtn.big { background: #fff; color: #000; width: 76px; height: 76px; font-size: 38px; transition: transform .25s cubic-bezier(.2, .8, .2, 1), background .2s; }
.np-transport .tbtn.big:hover { background: #fff; transform: scale(1.06); }
.np-transport .tbtn.big:active { transform: scale(.96); }

.np-dock { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.np-dock .np-volume { flex: 1; min-width: 190px; background: rgba(255, 255, 255, 0.08); border-radius: 999px; padding: 4px 18px 4px 6px; }
.np-chip { display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 18px; border-radius: 999px; background: rgba(255, 255, 255, 0.08); color: #fff; font-size: 14px; font-weight: 600; transition: background .2s; }
.np-chip .icon { font-size: 18px; }
.np-chip:hover { background: rgba(255, 255, 255, 0.15); }
.np-sing { flex: 1 0 100%; background: rgba(255, 255, 255, 0.08); border-radius: 22px; padding: 14px 16px; }
.np-sing.compact { flex: none; background: none; border-radius: 0; padding: 0; }
.np.mobile .np-sing { flex: none; background: none; padding: 0; }

.np .lyrics p { font-size: clamp(28px, 2.8vw, 44px); }
@media (max-width: 1100px) { .np-body { gap: 5vw; padding: 0 5vw 5vh; } }
/* Karaoké activé : son panneau prend de la place, la pochette rapetisse d'autant. */
.np:not(.mobile):has(.np-sing:not(.compact)) .np-art { width: min(100%, max(120px, calc(100vh - 700px))); }
.np:not(.mobile):has(.np-sing:not(.compact)) .np-left { gap: 18px; }
.vol-pct { white-space: nowrap; }

/* ═══ Mini-lecteurs, file d'attente, lecteur sur téléphone ═══════════════════ */

/* Barre du bas (ordinateur) : la pochette en cours, très floue, la teinte ; les
   temps apparaissent sur la barre de progression au survol. */
@media (min-width: 761px) {
  .topbar { isolation: isolate; overflow: hidden; }
  .topbar::before {
    content: ""; position: absolute; inset: -40px; z-index: -1; pointer-events: none;
    background-image: var(--bar-cover, none); background-size: cover; background-position: center;
    filter: blur(36px) saturate(1.7); opacity: 0.34; transition: opacity .4s var(--ease);
  }
  html[data-tint="off"] .topbar::before { display: none; }
  .lcd { height: 60px; }
  .lcd .art { width: 60px; height: 60px; }
  .lcd .progress { left: 72px; bottom: 0; height: 4px; border-radius: 4px; transition: height .18s var(--ease), background .18s; }
  .lcd:hover .progress { height: 16px; border-radius: 8px; background: rgba(255, 255, 255, 0.14); }
  .lcd:hover .progress .fill { background: rgba(255, 255, 255, 0.28); border-radius: 8px; }
  .lcd .tm { position: absolute; bottom: 2px; z-index: 2; font-size: 10.5px; font-weight: 600; font-variant-numeric: tabular-nums; color: rgba(255, 255, 255, 0.9); opacity: 0; pointer-events: none; transition: opacity .18s; }
  .lcd .tm.cur { left: 80px; }
  .lcd .tm.rem { right: 8px; }
  .lcd:hover .tm { opacity: 1; }
}

/* Mini-lecteur du téléphone : pochette arrondie, fond teinté, glissé pour changer de titre */
@media (max-width: 760px) {
  .mp-inner { grid-template-columns: 46px 1fr 44px 44px; border-radius: 24px; isolation: isolate; transition: transform .25s var(--ease), opacity .25s; }
  .mp-inner::before {
    content: ""; position: absolute; inset: -30px; z-index: -1; pointer-events: none;
    background-image: var(--mp-cover, none); background-size: cover; background-position: center;
    filter: blur(32px) saturate(1.7); opacity: 0.5;
  }
  html[data-tint="off"] .mp-inner::before { display: none; }
  .mp-inner > img { width: 46px; height: 46px; border-radius: 12px; box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35); }
  .mp-meta .t { font-weight: 650; }
  .mp-progress { left: 14px; right: 14px; bottom: 5px; height: 3px; background: rgba(255, 255, 255, 0.16); }
  .mp-progress .fill { background: #fff; }
}

/* File d'attente (À suivre) */
.queue { padding: 8vh 6px 8vh; }
.q-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; margin-bottom: 6px; }
.queue h3.q-title, .q-head h3 { font-size: 30px; font-weight: 700; letter-spacing: -0.03em; line-height: 1.1; margin: 0; color: #fff; }
.q-head p { margin: 6px 0 0; color: rgba(255, 255, 255, 0.55); font-size: 14px; }
.q-head .q-clear { margin: 0; flex: none; }
.q-clear { display: inline-block; padding: 8px 18px; border-radius: 999px; background: rgba(255, 255, 255, 0.1); color: rgba(255, 255, 255, 0.85); font-size: 13.5px; font-weight: 600; }
.q-clear:hover { background: rgba(255, 255, 255, 0.18); }
.q-sec { margin: 28px 0 8px 8px; font-size: 11.5px; font-weight: 600; letter-spacing: 0.09em; text-transform: uppercase; color: rgba(255, 255, 255, 0.45); }
.qrow { grid-template-columns: 52px minmax(0, 1fr) auto; gap: 14px; padding: 8px 10px 8px 8px; border-radius: 16px; position: relative; user-select: none; -webkit-user-select: none; }
.qrow img { width: 52px; height: 52px; border-radius: 12px; }
.qrow .t { font-size: 16px; color: rgba(255, 255, 255, 0.92); }
.qrow .s { font-size: 13.5px; }
.qrow.now { background: rgba(255, 255, 255, 0.14); }
.qrow.now .t { color: #fff; }
.qrow.past { opacity: 0.45; }
.qrow.past:hover { opacity: 0.8; }
.qd { display: flex; align-items: center; gap: 2px; }
.qd .q-up, .qd .q-x { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; color: rgba(255, 255, 255, 0.55); font-size: 15px; opacity: 0; transition: opacity .15s, background .15s; }
.qd .q-up:hover, .qd .q-x:hover { background: rgba(255, 255, 255, 0.14); color: #fff; }
.qrow:hover .q-up, .qrow:hover .q-x, .qrow:focus-within .q-up, .qrow:focus-within .q-x { opacity: 1; }
@media (hover: none) { .qd .q-up, .qd .q-x { opacity: 1; } }
.q-grip { width: 30px; height: 40px; display: grid; place-items: center; color: rgba(255, 255, 255, 0.32); cursor: grab; touch-action: none; }
.q-grip svg { width: 14px; height: 14px; fill: currentColor; }
.qrow:hover .q-grip { color: rgba(255, 255, 255, 0.6); }
.qrow.drag { z-index: 3; background: rgba(40, 40, 46, 0.96); box-shadow: 0 18px 44px rgba(0, 0, 0, 0.5); transition: none; cursor: grabbing; }
.qrow.drag .q-grip { cursor: grabbing; color: #fff; }
.q-empty { color: rgba(255, 255, 255, 0.45); padding: 14px 8px; font-size: 14px; }
.q-end { display: flex; align-items: center; gap: 10px; margin: 24px 8px 0; padding: 14px 16px; border-radius: 16px; background: rgba(255, 255, 255, 0.07); color: rgba(255, 255, 255, 0.65); font-size: 14px; text-align: left; }
.q-end .icon { font-size: 18px; flex: none; color: rgba(255, 255, 255, 0.8); }

/* Lecteur sur téléphone */
@media (max-width: 760px) {
  .np-from { text-align: center; margin: 0 auto 4px; padding-top: 2px; font-size: 11px; font-weight: 600; letter-spacing: 0.09em; text-transform: uppercase; color: rgba(255, 255, 255, 0.55); }
  .np-from b { display: block; margin: 3px auto 0; max-width: 72vw; font-size: 13.5px; font-weight: 600; letter-spacing: 0; text-transform: none; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .np.mobile .np-art { border-radius: 26px; box-shadow: 0 30px 70px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.07); }
  .np.mobile .np-meta .t { font-size: 24px; letter-spacing: -0.03em; }
  .np.mobile .np-meta .a { font-size: 16px; }
  .np.mobile .np-meta .tbtn { background: rgba(255, 255, 255, 0.12); width: 42px; height: 42px; border-radius: 50%; }
  .np.mobile .np-seek-wrap { padding: 12px 0; margin: -12px 0; }
  .np.mobile .np-progress input[type="range"].slider { height: 5px; }
  .np.mobile .np-progress input[type="range"].slider::-webkit-slider-thumb { width: 14px; height: 14px; }
  .np.mobile .np-transport { gap: 26px; }
  .np.mobile .np-transport .tbtn.big { width: 76px; height: 76px; }
  .np.mobile .np-bottom {
    display: flex; justify-content: space-between; gap: 6px; padding: 6px; margin: 0 2px;
    border-radius: 999px; background: rgba(255, 255, 255, 0.1); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px);
  }
  .np.mobile .np-bottom .tbtn { flex: 1; width: auto; height: 46px; border-radius: 999px; color: rgba(255, 255, 255, 0.72); transition: background .2s, color .2s; }
  .np.mobile .np-bottom .tbtn.on { background: #fff; color: #000; }
  .np-panel .qrow { padding: 8px 8px 8px 6px; }
  .np-panel .queue { padding: 8px 2px 24px; }
  .q-head h3 { font-size: 26px; }
}
@media (min-width: 761px) {
  .lcd { grid-template-columns: 60px minmax(0, 1fr); gap: 14px; }
  .lcd .meta { transition: transform .2s var(--ease); }
  .lcd:hover .meta { transform: translateY(-7px); }
}

.np-transport .tbtn { flex: none; }
@media (max-width: 760px) {
  .np.mobile .np-transport { gap: 12px; justify-content: space-between; padding: 0 2px; }
  .np.mobile .np-transport .tbtn { width: 52px; height: 52px; font-size: 30px; }
  .np.mobile .np-transport .tbtn.small { width: 40px; height: 40px; font-size: 20px; }
  .np.mobile .np-transport .tbtn.big { width: 74px; height: 74px; font-size: 40px; }
}

/* ═══ Paroles : transitions de ligne façon Apple Musique ═════════════════════
   La ligne chantée est nette et pleine ; plus on s'en éloigne, plus les lignes
   s'estompent et se floutent (data-d = distance). Le glissement d'une ligne à
   l'autre est une vague (propriété `translate`, voir `lyricsWave`). */
.lyrics p { will-change: auto; transition: color .6s var(--ease), filter .7s var(--ease), transform .8s cubic-bezier(.2, .8, .2, 1), opacity .6s var(--ease); color: rgba(255, 255, 255, 0.5); }
.lyrics p[data-d="1"] { opacity: .82; filter: blur(.5px); }
.lyrics p[data-d="2"] { opacity: .62; filter: blur(1.1px); }
.lyrics p[data-d="3"] { opacity: .48; filter: blur(1.6px); }
.lyrics p[data-d="4"] { opacity: .38; filter: blur(2px); }
.lyrics p.on, .lyrics p.on[data-d] { opacity: 1; filter: none; color: #fff; }
.lyrics p:hover { opacity: .9; filter: none; }
.lyrics.free p, .lyrics.free p[data-d] { opacity: .72; filter: none; }
.lyrics.free p.on { opacity: 1; }
html[data-lyrblur="off"] .lyrics p[data-d] { filter: none; }
@media (max-width: 760px) { .lyrics p[data-d="4"], .lyrics p[data-d="3"] { filter: none; } }

/* ═══ Téléphone : corrections vues sur iPhone ═══════════════════════════════ */
@media (max-width: 760px) {
  /* La pochette se cale sur la place réellement disponible : elle ne peut plus recouvrir le titre. */
  .np-m .np-stage { container-type: size; }
  .np-m .np-stage .np-art { width: min(100cqw, 100cqh); height: min(100cqw, 100cqh); max-width: none; }
  /* Réglage du décalage des paroles : une pastille en bas, qui ne passe plus sur le texte. */
  .np-panel .lyr-tools {
    top: auto; right: auto; left: 50%; bottom: 10px; transform: translateX(-50%); z-index: 3; opacity: .9;
    padding: 4px 10px; border-radius: 999px; background: rgba(0, 0, 0, 0.42);
    -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  }
}

/* ═══ Accueil : cartes du haut sur deux colonnes, sans couleurs vives ═══════ */
.home-top { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--s-4) var(--s-6); align-items: start; max-width: 1180px; margin-top: var(--s-5); }
.home-cards { display: flex; flex-direction: column; gap: var(--s-3); min-width: 0; }
.home-cards > * { margin: 0 !important; max-width: none !important; width: 100%; }
.home-top .home-hero { max-width: none; margin: 0; }
.home-cards:empty { display: none; }
@media (max-width: 1100px) { .home-top { grid-template-columns: minmax(0, 1fr); } }
.resume, .daily, .mood, .memory { background: var(--fill); border: 0; box-shadow: none; border-radius: var(--r-card); color: var(--text); }
.daily .eyebrow, .mood .eyebrow, .memory .eyebrow, .resume .eyebrow { color: var(--text-3); }
.daily img, .resume img { box-shadow: none; }
.resume:hover, .daily:hover, .mood:hover, .memory:hover { transform: none; background: var(--fill-strong); }

/* Paroles : le dégradé de chaque mot (background-clip: text) ne se dessine que dans sa boîte, aussi haute que la
   ligne : le bas des g, y, p était rogné. On agrandit la boîte vers le haut et le bas sans changer l'interligne. */
.lyrics p .w, .lyrics p .w .ch { padding-block: .16em .28em; margin-block: -.16em -.28em; }

/* Teinte de la pochette peinte sous tout le panneau, barre de défilement comprise (voir syncContentGlow) */
.content-glow { position: fixed; z-index: 0; overflow: hidden; pointer-events: none; background: var(--bg); }
.cg-layer { display: none; position: absolute; left: 0; top: 0; width: 100%; height: 520px; overflow: hidden; transform: translateY(calc(var(--sy, 0px) * -1)); }
.content-glow.on .cg-layer { display: block; animation: pg-glow 1s ease-out backwards; }
.cg-layer img { width: 100%; height: 100%; object-fit: cover; filter: blur(90px) saturate(1.5); opacity: .6; transform: scale(1.4); }
.cg-layer::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to bottom, transparent 20%, var(--bg) 98%); }
.app.has-cg .content { background: transparent; z-index: 1; }
.app.has-cg .hero-glow { display: none; }
@media (max-width: 760px) { .content-glow { display: none; } }

/* Formulaire d'ajout d'un exclu : champs qui ne débordent plus de la feuille */
.excl-form { min-width: 0; }
.tag-lossless { background: rgba(255, 200, 80, .16); color: #f0b84a; margin-left: 4px; }
.excl-versions { display: flex; flex-direction: column; gap: 6px; margin-bottom: 6px; }
.excl-ver { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 12px; border-radius: 12px; background: var(--fill); font-size: 14px; }
.excl-ver small { display: block; color: var(--text-2); font-size: 12px; margin-top: 2px; }
.excl-form .field { width: 100%; min-width: 0; max-width: 100%; }
.excl-row { gap: 12px; }
.excl-row .excl-label { flex: 1 1 0; }
.excl-form select.field, html.desktop .excl-form select.field { appearance: none; -webkit-appearance: none; padding-right: 36px; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5 6 6.5l5-5' fill='none' stroke='%23999' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; }
.excl-form input[type="file"].field { height: auto; min-height: 46px; padding: 6px; display: flex; align-items: center; font-size: 14px; color: var(--text-2); }
.excl-form input[type="file"]::file-selector-button { margin-right: 10px; height: 34px; padding: 0 14px; border: 0; border-radius: 9px; background: var(--fill-strong); color: var(--text); font: 600 14px/1 inherit; cursor: pointer; }


/* ── Styles immersifs du lecteur plein écran (PC) ─────────────────────────────
   Le choix (« sona.npStyle ») ajoute `np-s-<style>` sur #np. « classique » ne
   change rien : le conteneur des commandes disparaît de la mise en page. */
.np-ctrl { display: contents; }

/* Feuille de choix */
.np-styles { display: grid; gap: 10px; padding: 4px 0 8px; }
.np-style-opt { display: flex; align-items: center; gap: 14px; padding: 10px 12px; border-radius: 14px; background: var(--fill); text-align: left; color: inherit; border: 1px solid transparent; cursor: pointer; font: inherit; }
.np-style-opt:hover { background: var(--fill-strong); }
.np-style-opt.on { border-color: var(--accent, #fff); }
.np-style-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.np-style-text b { font-size: 15px; }
.np-style-text small { font-size: 12.5px; color: var(--text-3); }
.np-style-thumb { position: relative; flex: none; width: 76px; height: 48px; border-radius: 8px; background: #1b1b1f; overflow: hidden; }
.np-style-thumb i { position: absolute; display: block; background: rgba(255,255,255,.55); border-radius: 2px; }
.np-style-thumb-classic i:nth-child(1) { left: 8px; top: 9px; width: 24px; height: 24px; border-radius: 4px; }
.np-style-thumb-classic i:nth-child(2) { right: 8px; top: 12px; width: 26px; height: 3px; }
.np-style-thumb-classic i:nth-child(3) { right: 8px; top: 22px; width: 20px; height: 3px; opacity: .5; }
.np-style-thumb-sonoma i:nth-child(1) { left: 0; top: 0; width: 38px; height: 48px; border-radius: 0; }
.np-style-thumb-sonoma i:nth-child(2) { right: 8px; top: 12px; width: 26px; height: 3px; }
.np-style-thumb-sonoma i:nth-child(3) { right: 8px; top: 22px; width: 20px; height: 3px; opacity: .5; }
.np-style-thumb-centered i:nth-child(1) { left: 14px; top: 12px; width: 48px; height: 4px; }
.np-style-thumb-centered i:nth-child(2) { left: 20px; top: 22px; width: 36px; height: 4px; opacity: .5; }
.np-style-thumb-centered i:nth-child(3) { left: 8px; bottom: 6px; width: 60px; height: 3px; opacity: .4; }
.np-style-thumb-minimal i:nth-child(1) { left: 25px; top: 6px; width: 26px; height: 26px; border-radius: 4px; }
.np-style-thumb-minimal i:nth-child(2) { left: 22px; top: 37px; width: 32px; height: 3px; }
.np-style-thumb-minimal i:nth-child(3) { display: none; }

/* Sonoma : la pochette prend toute la moitié gauche, les commandes flottent dessus en verre. */
.np.np-s-sonoma:not(.mobile) .np-body { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0; padding: 0; align-items: stretch; }
.np.np-s-sonoma:not(.mobile) .np-left { position: relative; justify-content: flex-end; padding: 0 0 4vh 2.4vw; min-height: 0; }
.np.np-s-sonoma:not(.mobile) .np-art {
  position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; aspect-ratio: auto; border-radius: 0; box-shadow: none;
  -webkit-mask-image: linear-gradient(to right, #000 62%, transparent); mask-image: linear-gradient(to right, #000 62%, transparent);
}
.np.np-s-sonoma.paused:not(.mobile) .np-art { transform: none; }
.np.np-s-sonoma:not(.mobile) .np-ctrl {
  display: flex; flex-direction: column; gap: 14px; position: relative; z-index: 1; width: min(440px, 88%);
  padding: 16px 18px; border-radius: 20px; background: rgba(18,18,20,.5);
  -webkit-backdrop-filter: blur(28px) saturate(1.4); backdrop-filter: blur(28px) saturate(1.4); border: 1px solid rgba(255,255,255,.1);
}
.np.np-s-sonoma:not(.mobile) .np-meta .t { font-size: 18px; }
.np.np-s-sonoma:not(.mobile) .np-meta .a { font-size: 14px; }
.np.np-s-sonoma:not(.mobile) .np-transport { gap: 18px; }
.np.np-s-sonoma:not(.mobile) .np-transport .tbtn.big { width: 56px; height: 56px; font-size: 36px; }
.np.np-s-sonoma:not(.mobile) .np-right { padding-right: 3vw; }

/* Paroles centrées : tout l'écran aux paroles, les commandes en barre en bas. */
.np.np-s-centered:not(.mobile) .np-body { grid-template-columns: minmax(0, 1fr); gap: 0; padding: 0 8vw; position: relative; }
.np.np-s-centered:not(.mobile) .np-left { display: contents; }
.np.np-s-centered:not(.mobile) .np-art { display: none; }
.np.np-s-centered:not(.mobile) .np-ctrl {
  display: grid; position: absolute; left: 4vw; right: 4vw; bottom: 3vh; z-index: 2; gap: 10px 24px; align-items: center;
  grid-template-columns: 1fr auto 1fr; grid-template-areas: "progress progress progress" "meta transport dock";
}
.np.np-s-centered:not(.mobile) .np-progress { grid-area: progress; }
.np.np-s-centered:not(.mobile) .np-meta { grid-area: meta; min-width: 0; }
.np.np-s-centered:not(.mobile) .np-meta .t { font-size: 17px; }
.np.np-s-centered:not(.mobile) .np-meta .a { font-size: 14px; }
.np.np-s-centered:not(.mobile) .np-transport { grid-area: transport; gap: 18px; }
.np.np-s-centered:not(.mobile) .np-transport .tbtn.big { width: 56px; height: 56px; font-size: 36px; }
.np.np-s-centered:not(.mobile) .np-dock { grid-area: dock; justify-self: end; width: min(260px, 100%); }
.np.np-s-centered:not(.mobile) .np-right .lyrics { text-align: center; padding-bottom: 38vh; }
.np.np-s-centered:not(.mobile) .np-right .lyrics p { font-size: clamp(32px, 3.8vw, 60px); transform-origin: center; }
.np.np-s-centered:not(.mobile) .np-right .lyrics p.on { transform: scale(1); }

/* Minimaliste : la pochette et la lecture, sans panneau. */
.np.np-s-minimal:not(.mobile) .np-body { grid-template-columns: minmax(300px, 540px); justify-content: center; gap: 0; padding: 0 0 4vh; }
.np.np-s-minimal:not(.mobile) .np-right, .np.np-s-minimal:not(.mobile) .np-tabs, .np.np-s-minimal:not(.mobile) .np-dock { display: none; }
.np.np-s-minimal:not(.mobile) .np-art { width: min(100%, max(160px, calc(100vh - 380px))); }

/* Feuille de choix : invitation à télécharger l'app, styles verrouillés sur le site. */
.np-style-pitch { margin: 0 0 12px; padding: 14px 16px; border-radius: 14px; background: var(--fill-strong); font-size: 14px; line-height: 1.5; display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.np-styles.locked .np-style-opt:not(.on) { opacity: .6; }
.np-style-lock { margin-left: auto; flex: none; font-size: 11px; font-weight: 700; padding: 4px 9px; border-radius: 999px; background: var(--fill-strong); color: var(--text-2, inherit); }

/* Miniatures des nouveaux styles */
.np-style-thumb-solarium i:nth-child(1) { left: 8px; top: 8px; width: 30px; height: 30px; border-radius: 50%; box-shadow: 0 0 14px rgba(255,255,255,.5); }
.np-style-thumb-solarium i:nth-child(2) { right: 8px; top: 14px; width: 24px; height: 3px; }
.np-style-thumb-solarium i:nth-child(3) { right: 8px; top: 24px; width: 18px; height: 3px; opacity: .5; }
.np-style-thumb-spectrum i:nth-child(1) { left: 8px; top: 8px; width: 20px; height: 20px; border-radius: 4px; }
.np-style-thumb-spectrum i:nth-child(2) { left: 6px; bottom: 0; width: 64px; height: 14px; border-radius: 0; background: repeating-linear-gradient(90deg, rgba(255,255,255,.6) 0 3px, transparent 3px 6px); -webkit-mask-image: linear-gradient(to top, #000, transparent); mask-image: linear-gradient(to top, #000, transparent); }
.np-style-thumb-spectrum i:nth-child(3) { right: 8px; top: 12px; width: 22px; height: 3px; opacity: .5; }
.np-style-thumb-un i:nth-child(1) { left: 12px; top: 18px; width: 52px; height: 8px; border-radius: 3px; }
.np-style-thumb-un i:nth-child(2), .np-style-thumb-un i:nth-child(3) { display: none; }
.np-style-thumb-oneclassic i:nth-child(1) { left: 6px; top: 6px; width: 12px; height: 12px; border-radius: 3px; }
.np-style-thumb-oneclassic i:nth-child(2) { left: 6px; top: 24px; width: 56px; height: 5px; }
.np-style-thumb-oneclassic i:nth-child(3) { left: 6px; top: 34px; width: 40px; height: 5px; opacity: .5; }

/* Spectre : caché sauf dans « Spectrum Deck » */
.np-spectrum { display: none; }

/* Solarium : un disque qui tourne dans un halo, les paroles à droite. */
.np.np-s-solarium:not(.mobile) .np-art {
  border-radius: 50%; aspect-ratio: 1; box-shadow: 0 0 120px 20px rgba(255,255,255,.18), 0 30px 90px rgba(0,0,0,.55);
  animation: np-spin 48s linear infinite;
}
.np.np-s-solarium.paused:not(.mobile) .np-art { animation-play-state: paused; transform: none; }
.np.np-s-solarium:not(.mobile) .np-left { align-items: center; text-align: center; }
.np.np-s-solarium:not(.mobile) .np-meta { width: 100%; }
@keyframes np-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .np.np-s-solarium:not(.mobile) .np-art { animation: none; } }

/* Spectrum Deck : pochette plus petite, le spectre occupe le bas de l'écran. */
.np.np-s-spectrum:not(.mobile) .np-spectrum { display: block; position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: 34%; z-index: 0; pointer-events: none; }
.np.np-s-spectrum:not(.mobile) .np-art { width: min(100%, max(140px, calc(100vh - 640px))); }

/* Un : une seule ligne de paroles, immense, au centre. */
.np.np-s-un:not(.mobile) .np-body { grid-template-columns: minmax(0, 1fr); gap: 0; padding: 0 6vw; position: relative; }
.np.np-s-un:not(.mobile) .np-left { display: contents; }
.np.np-s-un:not(.mobile) .np-art { position: absolute; left: 4vw; top: 2vh; width: 72px; height: 72px; border-radius: 12px; box-shadow: none; z-index: 2; }
.np.np-s-un:not(.mobile) .np-ctrl { display: flex; flex-direction: column; gap: 10px; position: absolute; left: 14vw; right: 14vw; bottom: 3vh; z-index: 2; }
.np.np-s-un:not(.mobile) .np-meta, .np.np-s-un:not(.mobile) .np-dock { display: none; }
.np.np-s-un:not(.mobile) .np-right .lyrics { text-align: center; padding-bottom: 30vh; }
.np.np-s-un:not(.mobile) .np-right .lyrics p { font-size: clamp(40px, 6vw, 96px); line-height: 1.08; transform-origin: center; opacity: 0; transition: opacity .5s var(--ease), color .5s var(--ease); pointer-events: none; }
.np.np-s-un:not(.mobile) .np-right .lyrics p.on { opacity: 1; transform: scale(1); filter: none; }
.np.np-s-un:not(.mobile) .np-right .lyrics.plain p { opacity: 1; font-size: 26px; pointer-events: auto; }

/* One Classic : vignette en haut à gauche, paroles pleine largeur alignées à gauche. */
.np.np-s-oneclassic:not(.mobile) .np-body { grid-template-columns: minmax(0, 1fr); gap: 0; padding: 0 8vw; position: relative; }
.np.np-s-oneclassic:not(.mobile) .np-left { display: contents; }
.np.np-s-oneclassic:not(.mobile) .np-art { position: absolute; left: 8vw; top: 1vh; width: 96px; height: 96px; border-radius: 12px; z-index: 2; }
.np.np-s-oneclassic:not(.mobile) .np-ctrl {
  display: grid; position: absolute; left: 8vw; right: 8vw; bottom: 3vh; z-index: 2; gap: 10px 24px; align-items: center;
  grid-template-columns: 1fr auto 1fr; grid-template-areas: "progress progress progress" "meta transport dock";
}
.np.np-s-oneclassic:not(.mobile) .np-progress { grid-area: progress; }
.np.np-s-oneclassic:not(.mobile) .np-meta { grid-area: meta; min-width: 0; }
.np.np-s-oneclassic:not(.mobile) .np-transport { grid-area: transport; }
.np.np-s-oneclassic:not(.mobile) .np-dock { grid-area: dock; justify-self: end; width: min(240px, 100%); }
.np.np-s-oneclassic:not(.mobile) .np-right .lyrics { padding-top: 22vh; padding-bottom: 36vh; }

/* ── Finitions des styles immersifs ───────────────────────────────────────── */
/* La teinte de la pochette (`--np-tint`, posée par le fond vivant) colore halo, verre et lueur. */
.np { --np-tint: 255, 255, 255; }

/* Mode cinéma : commandes et barre du haut s'effacent, le curseur aussi. */
.np-top, .np-ctrl { transition: opacity .6s var(--ease); }
.np.np-idle { cursor: none; }
.np.np-idle .np-top, .np.np-idle .np-ctrl, .np.np-idle .np-tabs { opacity: 0; pointer-events: none; }
.np.np-s-minimal:not(.mobile) .np-ctrl { display: flex; flex-direction: column; gap: 22px; }

/* Solarium : le halo prend la couleur de la pochette. */
.np.np-s-solarium:not(.mobile) .np-art {
  box-shadow: 0 0 140px 30px rgba(var(--np-tint), .32), 0 0 40px 4px rgba(var(--np-tint), .25), 0 30px 90px rgba(0,0,0,.55);
}

/* Sonoma : le verre prend un reflet de la pochette, et les onglets passent en pastille sous la file. */
.np.np-s-sonoma:not(.mobile) .np-ctrl {
  background: linear-gradient(160deg, rgba(var(--np-tint), .22), rgba(18,18,20,.55) 70%);
  border-color: rgba(var(--np-tint), .28);
}
.np.np-s-sonoma:not(.mobile) .np-tabs { position: fixed; left: 75%; bottom: 3.2vh; transform: translateX(-50%); z-index: 3; }

/* Un : la ligne chantée entre en fondu, brille de la teinte, la suivante se devine dessous. */
.np.np-s-un:not(.mobile) .np-right .lyrics p.on { animation: np-un-in .6s cubic-bezier(.2, .8, .2, 1); text-shadow: 0 0 70px rgba(var(--np-tint), .55); }
.np.np-s-un:not(.mobile) .np-right .lyrics p.on + p {
  opacity: .3; font-size: clamp(20px, 2.4vw, 36px); font-weight: 600; margin-top: .6em; filter: none;
}
@keyframes np-un-in { from { opacity: 0; transform: translateY(28px) scale(.96); filter: blur(10px); } to { opacity: 1; transform: none; filter: none; } }
@media (prefers-reduced-motion: reduce) { .np.np-s-un:not(.mobile) .np-right .lyrics p.on { animation: none; } }

/* Centré et One Classic : la ligne chantée brille aussi de la teinte. */
.np.np-s-centered:not(.mobile) .np-right .lyrics p.on, .np.np-s-oneclassic:not(.mobile) .np-right .lyrics p.on { text-shadow: 0 0 50px rgba(var(--np-tint), .4); }

/* ── Pochette qui s'envole, recherche dans une liste, ajout de morceaux ────── */
.card.flight-clone { position: fixed; margin: 0; z-index: 9000; pointer-events: none; transform-origin: 0 0; will-change: transform; }
.card.flight-clone .art-wrap { transition: none; transform: none !important; box-shadow: 0 26px 70px rgba(0,0,0,.45); }
.card.flight-clone .art-wrap::after { display: none; }

.page-search { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin: 4px 0 14px; }
.page-find { flex: 1; min-width: 200px; display: flex; align-items: center; gap: 10px; padding: 0 14px; height: 40px; border-radius: 12px; background: var(--fill); color: var(--text-2); }
.page-find:focus-within { background: var(--fill-strong); color: var(--text); }
.page-find input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; color: var(--text); font: inherit; font-size: 14.5px; }
.page-find input::-webkit-search-cancel-button { display: none; }

.as-results { display: flex; flex-direction: column; gap: 2px; margin-top: 12px; max-height: 52vh; overflow-y: auto; }
.as-row { display: flex; align-items: center; gap: 12px; padding: 8px 4px; border-radius: 10px; }
.as-row img { width: 44px; height: 44px; border-radius: 6px; object-fit: cover; flex: none; background: var(--fill-strong); }
.as-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.as-text b { font-size: 14.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.as-text small { font-size: 12.5px; color: var(--text-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.as-row .btn.on { color: var(--accent); }

/* ── Recherche : suggestions, filtres, surbrillance, récentes ──────────────── */
.search-box { position: relative; max-width: 680px; }
.search-clear { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--fill-strong); color: var(--text-2); font-size: 14px; cursor: pointer; border: 0; }
.search-clear:hover { color: var(--text); }
.search-clear.hidden, .sugg.hidden { display: none; }
.search-hero input { padding-right: 48px; }
.search-hero input::-webkit-search-cancel-button { display: none; }

.sugg { position: absolute; z-index: 20; left: 0; right: 0; top: calc(100% + 6px); background: var(--bg-elevated); border-radius: 14px; padding: 6px; box-shadow: var(--shadow-pop); border: 1px solid var(--fill-strong); max-height: min(60vh, 440px); overflow-y: auto; }
.sg { display: flex; align-items: center; gap: 12px; width: 100%; padding: 8px 10px; border-radius: 10px; text-align: left; color: inherit; cursor: pointer; border: 0; background: transparent; font: inherit; }
.sg:hover, .sg.on { background: var(--fill-strong); }
.sg img, .sg .sg-ic { width: 38px; height: 38px; border-radius: 6px; object-fit: cover; flex: none; background: var(--fill-strong); }
.sg img.round { border-radius: 50%; }
.sg .sg-ic { display: grid; place-items: center; color: var(--text-3); font-size: 16px; }
.sg-text { min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.sg-text b { font-size: 14.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sg-text small { font-size: 12.5px; color: var(--text-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

mark { background: transparent; color: var(--accent); font-weight: inherit; border-radius: 3px; }

.recents { margin-top: 18px; }
.recents-head { display: flex; align-items: center; justify-content: space-between; max-width: 680px; font-size: 14px; }
.link-btn { background: none; border: 0; color: var(--accent); font: inherit; font-size: 13.5px; cursor: pointer; padding: 4px 2px; }
.link-btn:hover { text-decoration: underline; }
.chip.recent { display: inline-flex; align-items: center; gap: 2px; padding: 0 4px 0 0; }
.chip.recent > button { background: none; border: 0; color: inherit; font: inherit; cursor: pointer; }
.chip.recent > button:first-child { padding: 7px 4px 7px 14px; }
.chip.recent .x { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-size: 11px; color: var(--text-3); }
.chip.recent .x:hover { background: var(--fill-strong); color: var(--text); }

.search-filters { margin: 14px 0 6px; }
.chip small { opacity: .6; margin-left: 4px; font-size: 11.5px; }
.more-row { display: flex; justify-content: center; margin: 14px 0 6px; }
.section-head .link-btn { margin-left: auto; }

#results { transition: opacity .18s; }
#results.refreshing { opacity: .45; }
.search-skel { display: flex; flex-direction: column; gap: 14px; margin-top: 22px; max-width: 760px; }
.sk-row { display: flex; align-items: center; gap: 14px; }
.sk-thumb { width: 46px; height: 46px; border-radius: 8px; flex: none; }
.sk-lines { flex: 1; display: flex; flex-direction: column; gap: 8px; }
.sk-lines .sk-line { height: 11px; width: 55%; border-radius: 6px; }
.sk-lines .sk-line.short { width: 32%; }

/* ── Menu « Style immersif » : dispositions, fonds animés, réglages ─────────── */
.np-style-sheet .sheet { width: min(800px, 94vw); }
.np-style-sheet .np-sec { margin: 18px 2px 8px; font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--text-2); display: flex; align-items: baseline; gap: 10px; }
.np-style-sheet .np-sec small { font-size: 11.5px; font-weight: 500; letter-spacing: 0; text-transform: none; color: var(--text-3); }
.np-style-sheet .np-styles { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
@media (max-width: 560px) { .np-style-sheet .np-styles { grid-template-columns: 1fr; } }
.np-style-sheet .set-group { margin-top: 18px; }

/* Aperçus des fonds : de petites animations CSS aux couleurs de la pochette en cours. */
.np-shader-thumb { position: relative; flex: none; width: 76px; height: 48px; border-radius: 8px; overflow: hidden; background: #14141a; isolation: isolate; }
.np-shader-thumb i { position: absolute; display: block; }
.np-shader-thumb-mesh { background: radial-gradient(circle at 25% 30%, rgba(var(--np-tint, 255, 120, 90), .9), transparent 60%), radial-gradient(circle at 80% 75%, rgba(var(--np-tint, 255, 120, 90), .55), transparent 55%), #14141a; background-size: 160% 160%; animation: sw-drift 7s ease-in-out infinite alternate; }
.np-shader-thumb-aurora { background: linear-gradient(180deg, #0c0c12, #14141a); }
.np-shader-thumb-aurora i { left: -20%; right: -20%; height: 18px; border-radius: 50%; filter: blur(7px); background: linear-gradient(90deg, transparent, rgba(var(--np-tint, 255, 120, 90), .85), transparent); animation: sw-sway 5s ease-in-out infinite alternate; }
.np-shader-thumb-aurora i:nth-child(1) { top: 6px; }
.np-shader-thumb-aurora i:nth-child(2) { top: 17px; animation-delay: -1.7s; opacity: .7; }
.np-shader-thumb-aurora i:nth-child(3) { top: 28px; animation-delay: -3.1s; opacity: .5; }
.np-shader-thumb-liquid { background: conic-gradient(from 0deg at 50% 50%, rgba(var(--np-tint, 255, 120, 90), .9), #14141a, rgba(var(--np-tint, 255, 120, 90), .45), #14141a, rgba(var(--np-tint, 255, 120, 90), .9)); filter: blur(5px) saturate(1.2); transform: scale(1.3); animation: sw-spin 9s linear infinite; }
.np-shader-thumb-orbs i { border-radius: 50%; filter: blur(5px); background: rgba(var(--np-tint, 255, 120, 90), .9); animation: sw-orb 6s ease-in-out infinite alternate; }
.np-shader-thumb-orbs i:nth-child(1) { width: 24px; height: 24px; left: 6px; top: 8px; }
.np-shader-thumb-orbs i:nth-child(2) { width: 18px; height: 18px; left: 32px; top: 22px; animation-delay: -2s; opacity: .8; }
.np-shader-thumb-orbs i:nth-child(3) { width: 22px; height: 22px; left: 48px; top: 4px; animation-delay: -4s; opacity: .7; }
.np-shader-thumb-ripples { background: repeating-radial-gradient(circle at 50% 50%, rgba(var(--np-tint, 255, 120, 90), .7) 0 2px, transparent 2px 9px), #14141a; background-size: 100% 100%; animation: sw-ripple 2.4s linear infinite; mask-image: radial-gradient(circle, #000 30%, transparent 85%); -webkit-mask-image: radial-gradient(circle, #000 30%, transparent 85%); }
.np-shader-thumb-stars { background: radial-gradient(circle, #fff 0 1px, transparent 1.6px) 0 0 / 14px 14px, radial-gradient(circle, rgba(var(--np-tint, 255, 120, 90), .9) 0 1px, transparent 1.6px) 7px 7px / 14px 14px, #0c0c12; animation: sw-stars 3s linear infinite; }
.np-shader-thumb-none { background: #232328; }
.np-shader-thumb-none::after { content: ""; position: absolute; inset: 0; background: linear-gradient(135deg, rgba(255,255,255,.12), transparent); }
@keyframes sw-drift { from { background-position: 0% 0%; } to { background-position: 100% 100%; } }
@keyframes sw-sway { from { transform: translateX(-12%) skewY(-4deg); } to { transform: translateX(12%) skewY(5deg); } }
@keyframes sw-spin { to { transform: scale(1.3) rotate(360deg); } }
@keyframes sw-orb { from { transform: translate(0, 0) scale(1); } to { transform: translate(10px, 8px) scale(1.25); } }
@keyframes sw-ripple { from { background-size: 100% 100%; } to { background-size: 128% 128%; } }
@keyframes sw-stars { to { background-position: -14px 0, -7px 7px, 0 0; } }
@media (prefers-reduced-motion: reduce) { .np-shader-thumb, .np-shader-thumb * { animation: none !important; } }

/* Aperçus des nouvelles dispositions */
.np-style-thumb-vinyl i:nth-child(1) { left: 6px; top: 6px; width: 36px; height: 36px; border-radius: 50%; background: radial-gradient(circle, rgba(255,255,255,.85) 0 28%, #0c0c0e 30% 100%); box-shadow: 0 0 0 2px #333; }
.np-style-thumb-vinyl i:nth-child(2) { right: 8px; top: 14px; width: 24px; height: 3px; }
.np-style-thumb-vinyl i:nth-child(3) { right: 8px; top: 24px; width: 18px; height: 3px; opacity: .5; }
.np-style-thumb-cinema i:nth-child(1) { right: 0; top: 0; width: 44px; height: 48px; border-radius: 0; opacity: .7; }
.np-style-thumb-cinema i:nth-child(2) { left: 6px; bottom: 14px; width: 30px; height: 6px; }
.np-style-thumb-cinema i:nth-child(3) { left: 6px; bottom: 6px; width: 18px; height: 3px; opacity: .5; }
.np-style-thumb-poster i:nth-child(1) { left: 6px; right: 6px; top: 13px; height: 14px; opacity: .35; }
.np-style-thumb-poster i:nth-child(2) { left: 25px; top: 6px; width: 26px; height: 26px; border-radius: 3px; background: rgba(255,255,255,.85); }
.np-style-thumb-poster i:nth-child(3) { left: 14px; right: 14px; bottom: 6px; height: 3px; opacity: .5; }
.np-style-thumb-flow i:nth-child(1) { left: 4px; top: 12px; width: 16px; height: 22px; opacity: .4; transform: skewY(8deg); }
.np-style-thumb-flow i:nth-child(2) { left: 26px; top: 8px; width: 24px; height: 28px; border-radius: 3px; background: rgba(255,255,255,.85); }
.np-style-thumb-flow i:nth-child(3) { right: 4px; top: 12px; width: 16px; height: 22px; opacity: .4; transform: skewY(-8deg); }
.np-style-thumb-ambient i:nth-child(1) { left: 16px; top: 10px; width: 44px; height: 14px; opacity: .85; }
.np-style-thumb-ambient i:nth-child(2) { left: 26px; top: 30px; width: 24px; height: 3px; opacity: .5; }
.np-style-thumb-ambient i:nth-child(3) { display: none; }

/* Fond « Aucun » : pas de canevas, la pochette floue reste */
.np[data-shader="none"] .np-gl { display: none; }

/* ── Vinyle : un disque noir sillonné qui tourne, la pochette en étiquette ──── */
.np.np-s-vinyl:not(.mobile) .np-left { align-items: center; }
.np.np-s-vinyl:not(.mobile) .np-art {
  border-radius: 50%; aspect-ratio: 1; width: min(40%, 29vh); margin: 11vmin 0 4vmin; animation: np-spin 14s linear infinite;
  box-shadow: 0 0 0 2.6vmin #0b0b0d, 0 0 0 calc(2.6vmin + 1px) #2b2b31, 0 0 0 3.8vmin #0f0f12, 0 0 0 calc(3.8vmin + 1px) #26262b,
    0 0 0 5vmin #0b0b0d, 0 0 0 calc(5vmin + 1px) #2d2d33, 0 0 0 6.3vmin #0e0e10, 0 0 0 calc(6.3vmin + 1px) #26262b,
    0 0 0 7.6vmin #09090b, 0 40px 90px 7.6vmin rgba(0,0,0,.55);
}
.np.np-s-vinyl.paused:not(.mobile) .np-art { animation-play-state: paused; transform: none; }
@media (prefers-reduced-motion: reduce) { .np.np-s-vinyl:not(.mobile) .np-art { animation: none; } }

/* ── Cinéma : pochette panoramique, titre géant en bas à gauche ────────────── */
.np.np-s-cinema:not(.mobile) .np-body { grid-template-columns: minmax(0, 1fr); gap: 0; padding: 0; position: relative; }
.np.np-s-cinema:not(.mobile) .np-left { display: contents; }
.np.np-s-cinema:not(.mobile) .np-art {
  position: absolute; right: 0; top: 0; width: 64%; height: 100%; aspect-ratio: auto; border-radius: 0; box-shadow: none; transform: none;
  -webkit-mask-image: linear-gradient(to left, #000 50%, transparent); mask-image: linear-gradient(to left, #000 50%, transparent);
}
.np.np-s-cinema.paused:not(.mobile) .np-art { transform: none; }
.np.np-s-cinema:not(.mobile) .np-meta { position: absolute; left: 4vw; bottom: 24vh; width: 56%; z-index: 2; align-items: flex-end; }
.np.np-s-cinema:not(.mobile) .np-meta .t { font-size: clamp(44px, 6.4vw, 124px); font-weight: 800; letter-spacing: -.045em; line-height: 1; white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; text-shadow: 0 6px 40px rgba(0,0,0,.45); }
.np.np-s-cinema:not(.mobile) .np-meta .a { font-size: clamp(16px, 1.7vw, 26px); margin-top: 8px; }
.np.np-s-cinema:not(.mobile) .np-progress { position: absolute; left: 4vw; width: 46%; bottom: 15vh; z-index: 2; }
.np.np-s-cinema:not(.mobile) .np-transport { position: absolute; left: 4vw; bottom: 4vh; z-index: 2; justify-content: flex-start; gap: 18px; }
.np.np-s-cinema:not(.mobile) .np-dock { position: absolute; right: 4vw; bottom: 4vh; z-index: 2; width: min(260px, 30vw); }
.np.np-s-cinema:not(.mobile) .np-right, .np.np-s-cinema:not(.mobile) .np-tabs { display: none; }

/* ── Affiche : le titre en lettres géantes derrière la pochette ────────────── */
.np.np-s-poster:not(.mobile) .np-body { grid-template-columns: minmax(0, 1fr); gap: 0; padding: 0; position: relative; }
.np.np-s-poster:not(.mobile) .np-left { display: contents; }
.np.np-s-poster:not(.mobile) .np-art { position: absolute; left: 50%; top: 47%; width: auto; height: 50vh; aspect-ratio: 1; transform: translate(-50%, -50%); z-index: 2; box-shadow: 0 40px 120px rgba(0,0,0,.6); }
.np.np-s-poster.paused:not(.mobile) .np-art { transform: translate(-50%, -50%) scale(.94); }
.np.np-s-poster:not(.mobile) .np-meta { position: absolute; left: 2vw; right: 2vw; top: 47%; transform: translateY(-50%); z-index: 3; pointer-events: none; justify-content: center; text-align: center; }
.np.np-s-poster:not(.mobile) .np-meta .t { font-size: clamp(70px, 15vw, 270px); font-weight: 900; letter-spacing: -.06em; line-height: .85; text-transform: uppercase; opacity: .92; white-space: nowrap; overflow: hidden; text-overflow: clip; color: rgba(255,255,255,.08); -webkit-text-stroke: 2px rgba(255,255,255,.92); text-shadow: 0 0 80px rgba(var(--np-tint), .5); }
.np.np-s-poster:not(.mobile) .np-meta .a { position: absolute; left: 0; right: 0; top: calc(100% + 4px); font-size: 0; }
.np.np-s-poster:not(.mobile) .np-meta .tbtn { display: none; }
.np.np-s-poster:not(.mobile) .np-progress { position: absolute; left: 16vw; right: 16vw; bottom: 13vh; z-index: 3; }
.np.np-s-poster:not(.mobile) .np-transport { position: absolute; left: 0; right: 0; bottom: 3.5vh; z-index: 3; gap: 22px; }
.np.np-s-poster:not(.mobile) .np-dock { display: none; }
.np.np-s-poster:not(.mobile) .np-right { position: absolute; left: 10vw; right: 10vw; bottom: 20vh; height: 12vh; z-index: 3; }
.np.np-s-poster:not(.mobile) .np-right .lyrics { padding: 4vh 0; text-align: center; }
.np.np-s-poster:not(.mobile) .np-right .lyrics p { font-size: clamp(20px, 2.4vw, 38px); opacity: 0; pointer-events: none; transform-origin: center; }
.np.np-s-poster:not(.mobile) .np-right .lyrics p.on { opacity: 1; transform: scale(1); }
.np.np-s-poster:not(.mobile) .np-tabs { display: none; }

/* ── Cover Flow : les pochettes de la file en 3D ───────────────────────────── */
.np-flow { display: none; }
.np.np-s-flow:not(.mobile) .np-flow { display: block; position: absolute; left: 0; right: 0; top: 11vh; height: 44vh; perspective: 1400px; z-index: 2; pointer-events: none; }
.flow-item {
  position: absolute; top: 0; left: calc(50% - 22vh); width: 44vh; height: 44vh; padding: 0; border: 0; background: none; cursor: pointer; pointer-events: auto;
  transform: translateX(calc(var(--d) * 19vw)) translateZ(calc(var(--a) * -140px)) rotateY(calc(var(--d) * -44deg)) scale(calc(1 - var(--a) * .06));
  z-index: calc(10 - var(--a)); opacity: calc(1 - var(--a) * .2); transition: transform .7s cubic-bezier(.2, 1.2, .3, 1), opacity .5s;
}
.flow-item img { width: 100%; height: 100%; object-fit: cover; border-radius: 10px; box-shadow: 0 30px 70px rgba(0,0,0,.55); -webkit-box-reflect: below 6px linear-gradient(transparent 65%, rgba(255,255,255,.18)); }
.np.np-s-flow:not(.mobile) .np-body { grid-template-columns: minmax(0, 1fr); gap: 0; padding: 0; position: relative; }
.np.np-s-flow:not(.mobile) .np-left { display: contents; }
.np.np-s-flow:not(.mobile) .np-art { display: none; }
.np.np-s-flow:not(.mobile) .np-meta { position: absolute; left: 0; right: 0; top: 64vh; z-index: 3; justify-content: center; text-align: center; }
.np.np-s-flow:not(.mobile) .np-meta > div { text-align: center; }
.np.np-s-flow:not(.mobile) .np-meta .tbtn { display: none; }
.np.np-s-flow:not(.mobile) .np-meta .t { font-size: clamp(22px, 2.4vw, 38px); }
.np.np-s-flow:not(.mobile) .np-progress { position: absolute; left: 22vw; right: 22vw; bottom: 12vh; z-index: 3; }
.np.np-s-flow:not(.mobile) .np-transport { position: absolute; left: 0; right: 0; bottom: 3.5vh; z-index: 3; gap: 22px; }
.np.np-s-flow:not(.mobile) .np-dock { display: none; }
.np.np-s-flow:not(.mobile) .np-right { position: absolute; left: 14vw; right: 14vw; bottom: 22vh; height: 9vh; z-index: 3; }
.np.np-s-flow:not(.mobile) .np-right .lyrics { padding: 3vh 0; text-align: center; }
.np.np-s-flow:not(.mobile) .np-right .lyrics p { font-size: clamp(16px, 1.7vw, 26px); opacity: 0; pointer-events: none; transform-origin: center; }
.np.np-s-flow:not(.mobile) .np-right .lyrics p.on { opacity: 1; transform: scale(1); }
.np.np-s-flow:not(.mobile) .np-tabs { display: none; }
@media (prefers-reduced-motion: reduce) { .flow-item { transition: none; } }

/* ── Ambiance : une grande horloge sur le fond animé ───────────────────────── */
.np-clock { display: none; }
.np.np-s-ambient:not(.mobile) .np-clock {
  display: block; position: absolute; left: 0; right: 0; top: 24vh; z-index: 2; text-align: center; pointer-events: none;
  font-size: clamp(90px, 21vw, 380px); font-weight: 200; letter-spacing: -.05em; line-height: 1; font-variant-numeric: tabular-nums;
  text-shadow: 0 0 120px rgba(var(--np-tint), .55);
}
.np.np-s-ambient:not(.mobile) .np-body { grid-template-columns: minmax(0, 1fr); gap: 0; padding: 0; position: relative; }
.np.np-s-ambient:not(.mobile) .np-left { display: contents; }
.np.np-s-ambient:not(.mobile) .np-art, .np.np-s-ambient:not(.mobile) .np-right, .np.np-s-ambient:not(.mobile) .np-tabs, .np.np-s-ambient:not(.mobile) .np-dock { display: none; }
.np.np-s-ambient:not(.mobile) .np-meta { position: absolute; left: 0; right: 0; bottom: 17vh; z-index: 2; justify-content: center; text-align: center; }
.np.np-s-ambient:not(.mobile) .np-meta > div { text-align: center; }
.np.np-s-ambient:not(.mobile) .np-meta .tbtn { display: none; }
.np.np-s-ambient:not(.mobile) .np-progress { position: absolute; left: 25vw; right: 25vw; bottom: 12vh; z-index: 2; }
.np.np-s-ambient:not(.mobile) .np-transport { position: absolute; left: 0; right: 0; bottom: 3.5vh; z-index: 2; gap: 22px; }

/* ── Artiste à identités : le choix de l'identité à écouter ─────────────────── */
.persona-switch { margin: 4px 0 22px; }
.persona-switch .chip { font-size: 14.5px; padding: 9px 18px; }
.persona-switch .chip small { opacity: .6; margin-left: 6px; font-size: 12px; }

/* ── Sonoma, repris : pochette sur toute la hauteur, texte lisible même sur une pochette claire ── */
.np.np-s-sonoma:not(.mobile) { grid-template-rows: minmax(0, 1fr); }
.np.np-s-sonoma:not(.mobile) .np-body { grid-row: 1; }
/* La barre du haut flotte au-dessus de l'image (elle laissait une bande de fond au-dessus de la pochette). */
.np.np-s-sonoma:not(.mobile) .np-top { position: absolute; top: 0; left: 0; right: 0; z-index: 4; }
.np.np-s-sonoma:not(.mobile) .np-top::before { content: ""; position: absolute; inset: 0 0 -30px; z-index: -1; pointer-events: none; background: linear-gradient(to bottom, rgba(0,0,0,.55), transparent); }
/* L'image se fond dans le fond sombre vers la droite, sans traîner de blanc sous les paroles. */
/* Le verre assombrit ce qu'il y a derrière lui : pochette claire ou foncée, le texte reste net. */
.np.np-s-sonoma:not(.mobile) .np-ctrl {
  background: linear-gradient(160deg, rgba(var(--np-tint), .16), rgba(12,12,14,.7) 70%);
  -webkit-backdrop-filter: blur(30px) saturate(1.3) brightness(.62); backdrop-filter: blur(30px) saturate(1.3) brightness(.62);
  border-color: rgba(255,255,255,.14); box-shadow: 0 24px 60px rgba(0,0,0,.45);
}
.np.np-s-sonoma:not(.mobile) .np-meta .t { color: #fff; }
.np.np-s-sonoma:not(.mobile) .np-meta .a { color: rgba(255,255,255,.78); }
.np.np-s-sonoma:not(.mobile) .np-tabs { background: rgba(18,18,20,.72); -webkit-backdrop-filter: blur(22px); backdrop-filter: blur(22px); }
/* Le mode karaoké réduit la pochette des autres styles (sélecteur très précis) : Sonoma la garde plein cadre. */
.np.np-s-sonoma.np-s-sonoma.np-s-sonoma:not(.mobile) .np-art { width: 100%; height: 100%; }

@font-face { font-family: "IBM Plex Mono"; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/IBMPlexMono-400-latin-ext.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "IBM Plex Mono"; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/IBMPlexMono-400-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "IBM Plex Mono"; font-style: normal; font-weight: 500; font-display: swap; src: url("fonts/IBMPlexMono-500-latin-ext.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "IBM Plex Mono"; font-style: normal; font-weight: 500; font-display: swap; src: url("fonts/IBMPlexMono-500-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Space Mono"; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/SpaceMono-400-latin-ext.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Space Mono"; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/SpaceMono-400-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Space Mono"; font-style: normal; font-weight: 700; font-display: swap; src: url("fonts/SpaceMono-700-latin-ext.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Space Mono"; font-style: normal; font-weight: 700; font-display: swap; src: url("fonts/SpaceMono-700-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

/* ── Page d'un artiste à identités : sobre, façon archive (mono, filets fins, un seul accent doré) ─── */
.page:has(> .pa) { max-width: none; }
.pa {
  --pa-s1: #0f0f13; --pa-s2: #131318; --pa-line: #24242e; --pa-t1: #d8d8d8; --pa-t2: #888894; --pa-t3: #5c5c68; --pa-gold: #c8b890;
  font-family: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace; color: var(--pa-t1); font-size: 13px; line-height: 1.5;
}
.pa a { color: inherit; text-decoration: none; }
.pa-crumb { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--pa-t3); }
.pa-crumb i { font-style: normal; opacity: .6; }
.pa-crumb b { color: var(--pa-t2); font-weight: 500; }
.pa-crumb a:hover { color: var(--pa-gold); }
.pa-box { border: 1px solid var(--pa-line); background: var(--pa-s1); padding: 30px 32px 28px; }
.pa-label { font-size: 10.5px; letter-spacing: .22em; text-transform: uppercase; color: var(--pa-t3); }
.pa-label a:hover { color: var(--pa-gold); }
.pa-name { font: 700 clamp(34px, 6vw, 84px)/1 "Space Mono", "IBM Plex Mono", monospace; letter-spacing: .08em; text-transform: uppercase; color: var(--pa-gold); margin: 14px 0 12px; word-break: break-word; }
.pa-line { margin: 0; color: var(--pa-t2); font-size: 13px; }
.pa-line b { color: var(--pa-t1); font-weight: 500; }
.pa-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.pa .btn, .pa .like-btn, .pa .icon-only { border-radius: 0 !important; font-family: inherit; font-size: 12px; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; box-shadow: none; background: var(--pa-gold); color: #0b0b0e; border: 1px solid var(--pa-gold); }
.pa .btn.ghost { background: transparent; color: var(--pa-t1); border-color: var(--pa-line); }
.pa .btn.ghost:hover { border-color: var(--pa-gold); color: var(--pa-gold); }
.pa .btn svg { fill: currentColor; }

/* Identités : une barre d'onglets, texte seul */
.pa-tabs { display: flex; flex-wrap: wrap; margin: 14px 0 6px; border: 1px solid var(--pa-line); background: var(--pa-s1); }
.pa-tab { flex: 1 1 200px; display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 14px 18px; background: none; border: 0; border-right: 1px solid var(--pa-line); color: var(--pa-t2); font: inherit; cursor: pointer; text-align: left; transition: color .2s, background .2s; }
.pa-tab:last-child { border-right: 0; }
.pa-tab:hover { color: var(--pa-t1); background: var(--pa-s2); }
.pa-tab:focus-visible { outline: 1px solid var(--pa-gold); outline-offset: -3px; }
.pa-tab.on { color: var(--pa-gold); box-shadow: inset 0 -2px 0 var(--pa-gold); background: var(--pa-s2); }
.pa-tab-name { font-size: 13px; letter-spacing: .08em; text-transform: uppercase; font-weight: 500; }
.pa-tab-count { font-size: 11px; color: var(--pa-t3); }

/* Sections et lignes */
.pa-sec { margin-top: 26px; }
.pa-sec-h { display: flex; align-items: baseline; justify-content: space-between; padding: 0 2px 9px; border-bottom: 1px solid var(--pa-line); }
.pa-sec-h b { font-size: 11px; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; color: var(--pa-t1); }
.pa-sec-h span { font-size: 11px; color: var(--pa-t3); }
.pa-list { border-left: 1px solid var(--pa-line); border-right: 1px solid var(--pa-line); }
.pa-row, .pa-shared-row { display: grid; align-items: center; gap: 16px; padding: 10px 16px; border-bottom: 1px solid var(--pa-line); background: transparent; transition: background .2s; }
.pa-row { position: relative; grid-template-columns: 28px 52px minmax(0, 1fr) 70px 90px 64px 40px; border-radius: 0; }
.pa-row:hover { background: var(--pa-s2); }
.pa-row .art-wrap { width: 52px; height: 52px; border-radius: 0 !important; box-shadow: none; overflow: hidden; }
.pa-row .art-wrap img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.05) brightness(.9); transition: filter .35s; }
.pa-row:hover .art-wrap img { filter: none; }
.pa-n { color: var(--pa-t3); font-size: 11px; }
.pa-r-main { display: flex; flex-direction: column; min-width: 0; }
.pa-r-main b { font-weight: 500; color: var(--pa-t1); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pa-r-main small { color: var(--pa-t3); font-size: 11.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pa-r-kind { font-size: 10.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--pa-t3); }
.pa-r-count, .pa-r-dur { font-size: 11.5px; color: var(--pa-t2); text-align: right; }
.pa-play { width: 32px; height: 32px; display: inline-grid; place-items: center; border: 1px solid var(--pa-line); background: transparent; color: var(--pa-gold); cursor: pointer; opacity: 0; transition: opacity .2s, border-color .2s; padding: 0; }
.pa-play svg { width: 13px; height: 13px; fill: currentColor; }
.pa-row:hover .pa-play, .pa-play:focus-visible { opacity: 1; }
.pa-play:hover { border-color: var(--pa-gold); }
.pa-shared-row { grid-template-columns: minmax(160px, 1fr) auto; grid-auto-flow: column; justify-content: start; }
.pa-shared-row { display: flex; flex-wrap: wrap; }
.pa-shared-row .pa-r-main { flex: 1 1 200px; }
.pa-jump { display: inline-flex; gap: 4px; padding: 6px 12px; border: 1px solid var(--pa-line); background: transparent; color: var(--pa-t1); font: inherit; font-size: 11.5px; letter-spacing: .06em; text-transform: uppercase; cursor: pointer; transition: border-color .2s, color .2s; }
.pa-jump span { color: var(--pa-t3); text-transform: none; letter-spacing: 0; }
.pa-jump:hover { border-color: var(--pa-gold); color: var(--pa-gold); }
.pa-empty { padding: 40px 0; color: var(--pa-t3); }
#persona-body.pa-in { animation: pa-fade .35s var(--ease); }
@keyframes pa-fade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* Page d'une sortie */
.pa-rel-head { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 32px; align-items: end; }
.pa-rel-head .hero-art { width: 220px; height: 220px; object-fit: cover; border-radius: 0 !important; box-shadow: none; border: 1px solid var(--pa-line); display: block; }
.pa-rel-head .pa-name { font-size: clamp(28px, 4.6vw, 62px); margin-top: 10px; }
.pa-thead { display: grid; grid-template-columns: 40px 1fr 60px; gap: 12px; padding: 18px 16px 8px; border-bottom: 1px solid var(--pa-line); font-size: 10.5px; letter-spacing: .2em; text-transform: uppercase; color: var(--pa-t3); }
.pa-thead span:last-child { text-align: right; }
.pa-release .tag, .pa-release .tag-exclu, .pa-release .tag-lossless { background: transparent; color: var(--pa-t2); border: 1px solid var(--pa-line); border-radius: 0; }
.pa-release .tr { font-family: inherit; }
.pa-release .tr .t, .pa-release .tr .title { color: var(--pa-t1); }
@media (prefers-reduced-motion: reduce) { #persona-body.pa-in { animation: none; } }
@media (max-width: 820px) {
  .pa-box { padding: 22px 18px; }
  .pa-row { grid-template-columns: 24px 48px minmax(0, 1fr) 40px; gap: 12px; padding: 10px 12px; }
  .pa-r-kind, .pa-r-count { display: none; }
  .pa-r-dur { display: none; }
  .pa-play { opacity: 1; }
  .pa-tab { flex-basis: 100%; border-right: 0; border-bottom: 1px solid var(--pa-line); }
  .pa-tab:last-child { border-bottom: 0; }
  .pa-rel-head { grid-template-columns: 1fr; gap: 20px; }
  .pa-rel-head .hero-art { width: 160px; height: 160px; }
}

/* ── Sonoma : la pochette se fond dans le fond animé (plus de bordure) ─────────────────────────
   Le fondu respire lentement ; derrière lui, des lueurs aux couleurs de la pochette dérivent, et le
   fond animé (shader) reste bien visible : il prolonge l'image au lieu de s'arrêter net. */
@property --sono-fade { syntax: "<percentage>"; inherits: false; initial-value: 60%; }
.np.np-s-sonoma:not(.mobile) .np-bg::after { background: rgba(0,0,0,.26); }
.np.np-s-sonoma:not(.mobile) .np-gl { filter: saturate(1.3) brightness(1.18); }
.np.np-s-sonoma:not(.mobile) .np-art {
  --sono-fade: 60%;
  -webkit-mask-image: linear-gradient(to right, #000 0%, #000 calc(var(--sono-fade) - 26%), rgba(0,0,0,.82) calc(var(--sono-fade) - 12%),
    rgba(0,0,0,.52) var(--sono-fade), rgba(0,0,0,.24) calc(var(--sono-fade) + 14%), rgba(0,0,0,.07) calc(var(--sono-fade) + 28%), transparent 100%);
  mask-image: linear-gradient(to right, #000 0%, #000 calc(var(--sono-fade) - 26%), rgba(0,0,0,.82) calc(var(--sono-fade) - 12%),
    rgba(0,0,0,.52) var(--sono-fade), rgba(0,0,0,.24) calc(var(--sono-fade) + 14%), rgba(0,0,0,.07) calc(var(--sono-fade) + 28%), transparent 100%);
  animation: sono-breathe 10s ease-in-out infinite alternate;
}
.np.np-s-sonoma.paused:not(.mobile) .np-art { animation-play-state: paused; }
.np.np-s-sonoma:not(.mobile) .np-left::before {
  content: ""; position: absolute; top: -10%; bottom: -10%; right: -32%; width: 70%; z-index: 0; pointer-events: none;
  background: radial-gradient(ellipse 60% 45% at 28% 32%, rgba(var(--np-tint), .6), transparent 70%),
              radial-gradient(ellipse 55% 50% at 62% 78%, rgba(var(--np-tint), .4), transparent 70%),
              radial-gradient(ellipse 40% 35% at 80% 18%, rgba(255,255,255,.14), transparent 70%);
  filter: blur(46px); mix-blend-mode: screen; animation: sono-drift 16s ease-in-out infinite alternate;
}
.np.np-s-sonoma.paused:not(.mobile) .np-left::before { animation-play-state: paused; }
.np.np-s-sonoma:not(.mobile) .np-right .lyrics p { text-shadow: 0 2px 24px rgba(0,0,0,.35); }
@keyframes sono-breathe { from { --sono-fade: 54%; } to { --sono-fade: 68%; } }
@keyframes sono-drift {
  0% { transform: translate(0, 0) scale(1); opacity: .9; }
  50% { transform: translate(-6%, 7%) scale(1.12); opacity: 1; }
  100% { transform: translate(5%, -6%) scale(.96); opacity: .8; }
}
@media (prefers-reduced-motion: reduce) { .np.np-s-sonoma:not(.mobile) .np-art, .np.np-s-sonoma:not(.mobile) .np-left::before { animation: none; } }

/* ── Exclus : rangés par rappeur ─────────────────────────────────────────────────────────────── */
.xr-bar { display: flex; align-items: center; flex-wrap: wrap; gap: 14px; margin: 18px 0 8px; }
.xr-bar .field { flex: 1 1 260px; max-width: 420px; }
.xr-sort { display: inline-flex; border: 1px solid var(--hairline); border-radius: 999px; overflow: hidden; }
.xr-sort button { padding: 8px 14px; background: none; border: 0; color: var(--text-2); font: inherit; font-size: 13px; cursor: pointer; }
.xr-sort button.on { background: var(--fill-strong); color: var(--text); }
.xr { margin-top: 26px; }
.xr-head { display: flex; align-items: center; gap: 14px; padding-bottom: 10px; border-bottom: 1px solid var(--hairline); }
.xr-head img { width: 46px; height: 46px; border-radius: 10px; object-fit: cover; flex: none; }
.xr-id { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.xr-id b { font-size: 18px; letter-spacing: -.01em; }
.xr-id small { color: var(--text-3); font-size: 12.5px; }

/* ── Mode « archive » : quand on écoute FEMTOGO, tout Sona prend la D.A. de trois.id ──────────────
   Mono, filets fins, angles droits, noir et un seul accent doré. Les variables font le gros du travail. */
html.archive {
  --font: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --canvas: #0b0b0e; --bg: #0b0b0e; --bg-elevated: #0f0f13; --sidebar: transparent; --glass: rgba(15, 15, 19, .96);
  --hairline: #24242e; --fill: rgba(255, 255, 255, .03); --fill-strong: rgba(255, 255, 255, .06);
  --text: #d8d8d8; --text-2: #888894; --text-3: #5c5c68;
  --accent: #c8b890; --accent-2: #c8b890; --accent-soft: rgba(200, 184, 144, .12); --on-accent: #0b0b0e;
  --shadow-art: none; --shadow-pop: none;
  --r-panel: 0; --r-card: 0; --r-art: 0; --r-ctl: 0; --radius-art: 0;
}
html.archive body { font-size: 13px; letter-spacing: 0; }
html.archive *, html.archive *::before, html.archive *::after { border-radius: 0 !important; box-shadow: none !important; }
html.archive .ambient, html.archive .hero-glow, html.archive .content-glow { display: none !important; }
html.archive .content { border: 1px solid var(--hairline); }
html.archive .page-title, html.archive h1 { font-family: "Space Mono", var(--font); text-transform: uppercase; letter-spacing: .08em; font-weight: 700; color: var(--accent); }
html.archive h2, html.archive h3, html.archive .section-head h2 { font-size: 11px; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; color: var(--text); }
html.archive .section-head { border-bottom: 1px solid var(--hairline); padding-bottom: 9px; }
html.archive .side-link { text-transform: uppercase; letter-spacing: .1em; }
html.archive .sidebar:hover { background: #0f0f13; -webkit-backdrop-filter: none; backdrop-filter: none; border-right: 1px solid var(--hairline); }
html.archive .btn { text-transform: uppercase; letter-spacing: .1em; font-size: 12px; font-weight: 500; border: 1px solid var(--accent); }
html.archive .btn.ghost { background: transparent; border-color: var(--hairline); color: var(--text); }
html.archive .btn.ghost:hover { border-color: var(--accent); color: var(--accent); }
html.archive .card .art-wrap img, html.archive .tr img, html.archive .mp-inner img { filter: grayscale(1) brightness(.92); transition: filter .35s; }
html.archive .card:hover .art-wrap img, html.archive .tr:hover img, html.archive .mp-inner:hover img, html.archive .np img { filter: none; }
html.archive .tr { border-bottom: 1px solid var(--hairline); }
html.archive .tr:hover, html.archive .card:hover { background: var(--bg-elevated); }
html.archive .tag, html.archive .tag-exclu, html.archive .tag-lossless { background: transparent; color: var(--text-2); border: 1px solid var(--hairline); }
html.archive .field, html.archive input[type="search"], html.archive input[type="text"] { border: 1px solid var(--hairline); background: var(--bg-elevated); }
html.archive .field:focus { border-color: var(--accent); outline: none; }
html.archive .xr-sort { border-color: var(--hairline); }
html.archive .xr-sort button { text-transform: uppercase; letter-spacing: .08em; font-size: 11px; }
html.archive .xr-sort button.on { color: var(--accent); background: var(--accent-soft); }
html.archive .mp-inner, html.archive .sheet, html.archive .np-tabs { border: 1px solid var(--hairline); background: var(--glass); }
html.archive, html.archive body, html.archive .content { transition: background-color .5s, color .5s; }

/* Lecteur plein écran en mode archive : fond noir uni (plus de shader), pochette encadrée, texte mono. */
html.archive .np { background: #0b0b0e !important; color: var(--text); font-family: var(--font); }
html.archive .np .np-bg, html.archive .np .np-gl, html.archive .np .np-left::before, html.archive .np .np-left::after, html.archive .np .np-right::before, html.archive .np .np-right::after { display: none !important; }
html.archive .np .np-art { border: 1px solid var(--hairline); -webkit-mask-image: none !important; mask-image: none !important; animation: none !important; width: min(100%, max(140px, calc(100vh - 520px))); }
html.archive .np .np-tabs { background: transparent; border: 1px solid var(--hairline); padding: 0; -webkit-backdrop-filter: none; backdrop-filter: none; }
html.archive .np .np-tabs button { border-radius: 0; text-transform: uppercase; letter-spacing: .12em; font-size: 11.5px; font-weight: 500; color: var(--text-2); padding: 8px 18px; }
html.archive .np .np-tabs button.on { background: var(--accent-soft); color: var(--accent); box-shadow: inset 0 -2px 0 var(--accent); }
html.archive .np .np-meta .t { font-family: "Space Mono", var(--font); text-transform: uppercase; letter-spacing: .06em; font-size: 22px; color: var(--accent) !important; }
html.archive .np .np-meta .a { color: var(--text-2) !important; font-size: 13px; }
html.archive .np .np-meta .tbtn, html.archive .np .np-top .tbtn, html.archive .np .np-transport .tbtn { color: var(--text) !important; }
html.archive .np .np-transport .tbtn.on, html.archive .np .np-meta .tbtn.on { color: var(--accent) !important; }
html.archive .np .np-transport .tbtn.big { background: var(--accent); color: #0b0b0e !important; }
html.archive .np input[type="range"].slider, html.archive .np .np-volume .slider { background: linear-gradient(to right, var(--accent) var(--p, 0%), var(--hairline) var(--p, 0%)) !important; }
html.archive .np .np-times, html.archive .np .np-sing-status, html.archive .np .np-sing-head { color: var(--text-3); }
html.archive .np .lyrics p { font-family: var(--font); color: var(--text-3); text-shadow: none !important; }
html.archive .np .lyrics p.on, html.archive .np .lyrics p.active, html.archive .np .lyrics p.cur { color: var(--accent); }
html.archive .np .np-sing-presets button, html.archive .np .np-sing .tbtn.on { border: 1px solid var(--hairline); background: transparent; color: var(--text); }
html.archive .np .np-sing-presets button.on, html.archive .np .np-sing .tbtn.on { background: var(--accent); color: #0b0b0e; border-color: var(--accent); }
html.archive .np .tag-exclu { background: transparent; border: 1px solid var(--hairline); }

/* ── Exclus : la liste des artistes ───────────────────────────────────────────────────────────── */
.xa-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 22px 18px; margin-top: 14px; }
.xa { display: flex; flex-direction: column; gap: 6px; color: inherit; text-decoration: none; }
.xa-pic { aspect-ratio: 1; overflow: hidden; background: var(--fill-strong); border-radius: var(--r-art, 14px); transition: transform .3s var(--ease); }
.xa-pic img { width: 100%; height: 100%; object-fit: cover; display: block; }
.xa:hover .xa-pic { transform: translateY(-3px); }
.xa-name { font-weight: 700; font-size: 16px; letter-spacing: -.01em; }
.xa-name small { display: block; font-weight: 400; font-size: 12px; color: var(--text-3); letter-spacing: 0; }
.xa-count { font-size: 12.5px; color: var(--text-3); }
/* FEMTO (archives) : la carte reprend la D.A. de trois.id — mono, filet, sceau SPK, accent doré */
.xa-archive { padding: 12px; border: 1px solid #24242e; background: #0f0f13; font-family: "IBM Plex Mono", ui-monospace, Consolas, monospace; }
.xa-archive .xa-pic { background: #0b0b0e; border-radius: 0; padding: 14px; }
.xa-archive .xa-pic img { object-fit: contain; }
.xa-archive .xa-name { font-family: "Space Mono", "IBM Plex Mono", monospace; text-transform: uppercase; letter-spacing: .14em; color: #c8b890; }
.xa-archive .xa-name small { text-transform: lowercase; letter-spacing: .06em; color: #888894; }
.xa-archive:hover { border-color: #c8b890; }
.xd-back { margin: 0 0 6px; } .xd-back a { color: var(--text-2); text-decoration: none; font-size: 13px; }
.xd-bar { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin: 16px 0 4px; }
.xd-bar .field { flex: 1 1 280px; max-width: 460px; }
.pa .xd-bar .field { border-radius: 0; background: var(--pa-s1); border: 1px solid var(--pa-line); font-family: inherit; color: var(--pa-t1); }
.pa-logo { width: 150px; height: 150px; object-fit: contain; display: block; border: 0; }
.pa-rel-head .pa-logo { justify-self: center; }
.pa-release .pa-sec .tr { border-color: var(--pa-line); }
@media (max-width: 820px) { .pa-logo { width: 110px; height: 110px; } }

/* Volet des paroles et file d'attente (fenêtre étroite) en mode archive */
html.archive .drawer { background: var(--bg); border-left: 1px solid var(--hairline); font-family: var(--font); }
html.archive .drawer-tabs { background: transparent; border: 1px solid var(--hairline); padding: 0; }
html.archive .drawer-tabs button { border-radius: 0; text-transform: uppercase; letter-spacing: .1em; font-size: 11px; font-weight: 500; color: var(--text-2); }
html.archive .drawer-tabs button.on { background: var(--accent-soft); color: var(--accent); box-shadow: inset 0 -2px 0 var(--accent); }
html.archive .lyrics p, html.archive .drawer-body .lyrics p { font-family: var(--font); font-weight: 500; letter-spacing: 0; color: var(--text-3); text-shadow: none; }
html.archive .lyrics p.on, html.archive .drawer-body .lyrics p.on { color: var(--accent); }
html.archive .lyrics p.on .w { color: var(--accent); }
html.archive .drawer .queue .tr, html.archive .drawer .mini { font-family: var(--font); }

/* ── Écoute ensemble : menu « Proposer un titre » ───────────────────────────────────────────────── */
.pp-tabs { display: flex; gap: 8px; overflow-x: auto; margin: 12px 0 4px; padding-bottom: 4px; scrollbar-width: none; }
.pp-tabs::-webkit-scrollbar { display: none; }
.pp-tabs button { flex: none; padding: 7px 14px; border-radius: 999px; border: 1px solid var(--hairline); background: var(--fill); color: var(--text-2); font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; }
.pp-tabs button.on { background: var(--text); color: var(--bg); border-color: var(--text); }
.pp-limit { margin: 4px 2px 2px; font-size: 12px; }
.pp-head { padding: 12px 4px 4px; font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--text-3); }
.pp-row .pp-add { margin-left: auto; width: 30px; height: 30px; display: grid; place-items: center; border-radius: 50%; background: var(--fill-strong); color: var(--text); flex: none; font-weight: 700; }
.pp-row.done { opacity: .55; }
.pp-row.done .pp-add { background: var(--accent-soft); color: var(--accent); }
.pp-empty { padding: 24px 4px; text-align: center; }
.pp-back { color: var(--text-2); font-weight: 600; }

/* ── Thème GTA VI : Vice City, Leonida ─────────────────────────────────────────────────────────
   Classe `gtavi` sur <html> : posée sur la fiche de Grand Theft Auto VI (artiste, album) et tant
   qu'un titre de l'album joue (voir `syncGta`, app.js). Un coucher de soleil de néons : ciel
   violet, soleil rayé, grille au sol, palmiers, rose et orange, cyan en filet. Réglage :
   Réglages > Apparence > Thème GTA VI. */
/* La police de GTA : Pricedown Black (Typodermic), un seul graisse, déjà grasse : ni italique ni gras
   synthétiques. Fichier woff2 converti depuis « Pricedown Bl.otf » (archive des polices gratuites de
   Typodermic) ; licence : voir docs/GUIDE.md. */
@font-face { font-family: "Pricedown"; src: url("fonts/Pricedown.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
html.gtavi {
  --canvas: #0d0220; --bg: rgba(22, 5, 40, .66); --bg-elevated: rgba(48, 12, 78, .9); --sidebar: transparent;
  --glass: rgba(30, 7, 54, .74); --hairline: rgba(255, 130, 215, .24);
  --fill: rgba(255, 110, 200, .08); --fill-strong: rgba(255, 110, 200, .16);
  --text: #fff4fb; --text-2: rgba(255, 226, 244, .72); --text-3: rgba(255, 205, 236, .46);
  --accent: #ff4fa3 !important; --accent-2: #7a7bff !important; --accent-soft: rgba(255, 79, 163, .2) !important; --on-accent: #1a0230 !important;
  --neon-cyan: #25e8ff; --neon-pink: #ff2e97; --neon-blue: #6f7bff; --neon-violet: #a45bff;
  --shadow-pop: 0 0 0 1px rgba(255, 130, 215, .2), 0 24px 64px rgba(10, 0, 30, .6), 0 0 42px rgba(255, 46, 151, .16);
  --font-title: "Pricedown", Impact, "Haettenschweiler", "Arial Black", sans-serif;
  color-scheme: dark;
}

/* Le décor : ciel, soleil, palmiers (body::before) et grille qui fuit vers l'horizon (body::after). */
html.gtavi, html.gtavi body { background: #0d0220; }
html.gtavi body::before {
  content: ""; position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background:
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 400'><g fill='%230a0118'><path d='M96 400C100 300 104 220 118 140' stroke='%230a0118' stroke-width='9' fill='none' stroke-linecap='round'/><path d='M118 140C90 110 50 105 12 130 52 118 90 125 118 140Z'/><path d='M118 140C95 100 70 75 30 70 70 78 98 100 118 140Z'/><path d='M118 140C130 95 150 70 185 62 156 80 138 100 118 140Z'/><path d='M118 140C150 118 185 118 198 140 176 130 146 132 118 140Z'/><path d='M118 140C112 100 112 70 100 40 122 70 124 100 118 140Z'/><path d='M118 140C100 150 70 165 40 195 78 172 100 160 118 140Z'/><path d='M118 140C140 152 166 168 178 198 156 176 134 160 118 140Z'/></g></svg>") left -2vmin bottom -4vh / auto min(62vh, 560px) no-repeat,
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 400'><g fill='%230a0118'><path d='M96 400C100 300 104 220 118 140' stroke='%230a0118' stroke-width='9' fill='none' stroke-linecap='round'/><path d='M118 140C90 110 50 105 12 130 52 118 90 125 118 140Z'/><path d='M118 140C95 100 70 75 30 70 70 78 98 100 118 140Z'/><path d='M118 140C130 95 150 70 185 62 156 80 138 100 118 140Z'/><path d='M118 140C150 118 185 118 198 140 176 130 146 132 118 140Z'/><path d='M118 140C112 100 112 70 100 40 122 70 124 100 118 140Z'/><path d='M118 140C100 150 70 165 40 195 78 172 100 160 118 140Z'/><path d='M118 140C140 152 166 168 178 198 156 176 134 160 118 140Z'/></g></svg>") right -4vmin bottom -10vh / auto min(78vh, 700px) no-repeat,
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 200'><defs><linearGradient id='s' x1='0' y1='0' x2='0' y2='1'><stop offset='0' stop-color='%23ffa6dc'/><stop offset='.5' stop-color='%23ff4fa3'/><stop offset='1' stop-color='%236f5cff'/></linearGradient><mask id='m'><rect width='200' height='200' fill='%23fff'/><rect y='112' width='200' height='4' fill='%23000'/><rect y='132' width='200' height='7' fill='%23000'/><rect y='154' width='200' height='10' fill='%23000'/><rect y='177' width='200' height='14' fill='%23000'/></mask></defs><circle cx='100' cy='100' r='96' fill='url(%23s)' mask='url(%23m)'/></svg>") center 62% / min(54vmin, 480px) no-repeat,
    linear-gradient(180deg, #080224 0%, #170a58 30%, #3a1790 48%, #7a24b8 60%, #c52fb0 72%, #ff5fa8 84%, #ff9ccf 100%);
}
html.gtavi body::after {
  content: ""; position: fixed; left: -25%; right: -25%; top: 66vh; height: 90vh; z-index: 0; pointer-events: none;
  background:
    repeating-linear-gradient(90deg, rgba(37, 232, 255, .55) 0 2px, transparent 2px 72px),
    repeating-linear-gradient(0deg, rgba(255, 46, 151, .6) 0 2px, transparent 2px 46px),
    linear-gradient(180deg, rgba(13, 2, 32, .94), rgba(70, 8, 90, .72));
  transform: perspective(420px) rotateX(64deg); transform-origin: 50% 0;
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 22%, #000 100%); mask-image: linear-gradient(180deg, transparent 0%, #000 22%, #000 100%);
  opacity: .72;
}
html.gtavi #root, html.gtavi .app { position: relative; z-index: 1; }
html.gtavi .ambient { display: none !important; }
@media (prefers-reduced-motion: no-preference) {
  html.gtavi body::before { animation: gta-dusk 14s ease-in-out infinite alternate; }
  @keyframes gta-dusk { from { filter: saturate(1) brightness(1); } to { filter: saturate(1.25) brightness(1.08); } }
}

/* Panneaux de verre violet, filets néon. */
html.gtavi .content { background: var(--bg); -webkit-backdrop-filter: blur(18px) saturate(150%); backdrop-filter: blur(18px) saturate(150%); border-color: var(--hairline); box-shadow: 0 0 0 1px rgba(255, 46, 151, .08) inset, 0 0 38px rgba(255, 46, 151, .12); }
html.gtavi .topbar, html.gtavi .sheet, html.gtavi .mp-inner, html.gtavi .tabbar { border-color: var(--hairline); box-shadow: var(--shadow-pop); }
html.gtavi .tabbar { background: rgba(28, 6, 50, .78); }
html.gtavi .tabbar button.active { background: linear-gradient(135deg, rgba(255, 79, 163, .55), rgba(111, 123, 255, .5)); box-shadow: 0 0 18px rgba(255, 79, 163, .45); color: #fff; text-shadow: 0 0 8px rgba(26, 2, 48, .9); }
html.gtavi .hero-glow img { filter: blur(70px) saturate(1.8) hue-rotate(-12deg); opacity: .7; }

/* Titres : lettres de façade de Vice City, dégradé jaune-rose et halo néon. */
html.gtavi .page-title, html.gtavi .hero h1, html.gtavi .pa-name, html.gtavi .profile-head h1 {
  font-family: var(--font-title); font-style: normal; text-transform: uppercase; letter-spacing: .015em; font-weight: 400;
  background: linear-gradient(180deg, #f2f7ff 0%, #9cc0ff 34%, #a45bff 66%, #ff4fa3 100%); -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 0 12px rgba(255, 46, 151, .55)) drop-shadow(0 2px 0 rgba(30, 0, 50, .6));
}
html.gtavi .section-head h2, html.gtavi .set-head { font-family: var(--font-title); font-style: normal; text-transform: uppercase; letter-spacing: .05em; font-weight: 400; color: #ffd6ee; text-shadow: 0 0 10px rgba(255, 46, 151, .5); }
html.gtavi .hero .kind { color: var(--neon-cyan); text-shadow: 0 0 8px rgba(37, 232, 255, .6); letter-spacing: .24em; }
html.gtavi .hero .by, html.gtavi .page-sub { color: var(--text-2); }
html.gtavi .hero-art, html.gtavi .card .art-wrap, html.gtavi .tr img, html.gtavi .mini img { box-shadow: 0 0 0 1px rgba(255, 130, 215, .35), 0 0 26px rgba(255, 46, 151, .28); }
html.gtavi .card:hover .art-wrap { box-shadow: 0 0 0 1px rgba(37, 232, 255, .6), 0 0 34px rgba(37, 232, 255, .35); }

/* Marque, menu, boutons : rose et orange, halo au survol. */
html.gtavi .brand .wordmark { font-family: var(--font-title); font-style: normal; text-transform: uppercase; letter-spacing: .06em; color: #ffd6ee; text-shadow: 0 0 12px rgba(255, 46, 151, .7); }
html.gtavi .brand .wordmark::after { content: " VI"; color: var(--neon-blue); text-shadow: 0 0 12px rgba(111, 123, 255, .85); }
html.gtavi .brand-mark svg { filter: drop-shadow(0 0 8px rgba(255, 79, 163, .6)); }
html.gtavi .side-link.active { background: linear-gradient(90deg, rgba(255, 79, 163, .3), rgba(111, 123, 255, .14)); color: #fff; box-shadow: inset 2px 0 0 var(--neon-pink), 0 0 20px rgba(255, 46, 151, .22); }
html.gtavi .side-link:hover { background: var(--fill-strong); }
html.gtavi .btn, html.gtavi .tbtn.big, html.gtavi .chip.on, html.gtavi .card .play-fab { background: linear-gradient(135deg, #ff4fa3, #7a5cff); color: #1a0230; box-shadow: 0 0 22px rgba(255, 79, 163, .5); }
html.gtavi .btn.ghost { background: var(--fill-strong); color: var(--text); box-shadow: none; border: 1px solid var(--hairline); }
html.gtavi .btn.ghost:hover { border-color: var(--neon-cyan); box-shadow: 0 0 16px rgba(37, 232, 255, .3); }
html.gtavi .tr.current { background: linear-gradient(90deg, rgba(255, 79, 163, .24), rgba(111, 123, 255, .1)); box-shadow: inset 2px 0 0 var(--neon-pink); }
html.gtavi .tr.current .ti, html.gtavi .mini.current .t { text-shadow: 0 0 10px rgba(255, 79, 163, .7); }
html.gtavi .bars i { background: var(--neon-cyan); box-shadow: 0 0 6px var(--neon-cyan); }
html.gtavi input[type="range"].slider { background: linear-gradient(to right, var(--neon-pink), var(--neon-blue) var(--p, 0%), var(--fill-strong) var(--p, 0%)); }
html.gtavi input[type="range"].slider::-webkit-slider-thumb { background: #fff; box-shadow: 0 0 10px var(--neon-pink); }
html.gtavi .lcd .progress .fill, html.gtavi .mp-progress .fill { background: linear-gradient(90deg, var(--neon-pink), var(--neon-blue)); box-shadow: 0 0 8px var(--neon-pink); }
html.gtavi .field, html.gtavi .side-search input, html.gtavi .search-hero input { background: rgba(255, 110, 200, .1); }
html.gtavi .field:focus, html.gtavi .side-search input:focus, html.gtavi .search-hero input:focus { box-shadow: 0 0 0 1px var(--neon-cyan), 0 0 18px rgba(37, 232, 255, .3); }
html.gtavi .tag-exclu, html.gtavi .tag { background: rgba(37, 232, 255, .12); color: var(--neon-cyan); border: 1px solid rgba(37, 232, 255, .4); }
html.gtavi .set-group, html.gtavi .set-account, html.gtavi .tile { border: 1px solid var(--hairline); }
html.gtavi .switch-row input:checked + i { background: var(--neon-pink); box-shadow: 0 0 10px rgba(255, 46, 151, .7); }
html.gtavi .toast { background: rgba(40, 8, 70, .95); color: #fff; border: 1px solid var(--neon-pink); box-shadow: 0 0 24px rgba(255, 46, 151, .5); font-weight: 700; letter-spacing: .02em; }
html.gtavi ::selection { background: rgba(255, 79, 163, .45); }
html.gtavi .scroll { --sb: rgba(255, 130, 215, .32); --sb-on: rgba(255, 130, 215, .6); }

/* Lecteur plein écran : le décor de Vice City derrière la pochette et les paroles. */
html.gtavi .np { background: linear-gradient(180deg, #080224 0%, #1d0c66 40%, #5a1aa8 70%, #c52fb0 90%, #ff5fa8 100%); }
html.gtavi .np .np-bg { opacity: .55; mix-blend-mode: screen; }
html.gtavi .np .np-meta .t { font-family: var(--font-title); font-style: normal; text-transform: uppercase; letter-spacing: .02em; background: linear-gradient(180deg, #f2f7ff, #9cc0ff 40%, #a45bff 72%, #ff4fa3); -webkit-background-clip: text; background-clip: text; color: transparent !important; filter: drop-shadow(0 0 10px rgba(255, 46, 151, .6)); }
html.gtavi .np .lyrics p.on, html.gtavi .np .lyrics p.active, html.gtavi .np .lyrics p.cur { color: #fff; text-shadow: 0 0 18px rgba(255, 79, 163, .9), 0 0 4px rgba(111, 123, 255, .7); }
html.gtavi .np .np-art { box-shadow: 0 0 0 1px rgba(255, 130, 215, .5), 0 0 60px rgba(255, 46, 151, .45); }

/* Téléphone : palmiers et grille plus discrets, pour ne pas gêner la lecture. */
@media (max-width: 760px) {
  html.gtavi body::after { opacity: .5; }
  html.gtavi .content { background: rgba(22, 5, 40, .74); }
}
