/* Sonora — appli web, même interface que l'app iPhone (Liquid Glass) */
:root {
  --accent: #fa2d48;
  --accent-soft: color-mix(in srgb, var(--accent) 18%, transparent);
  --bg: #000;
  --text: #fff;
  --text-2: rgba(255, 255, 255, .62);
  --text-3: rgba(255, 255, 255, .38);
  --card: rgba(255, 255, 255, .08);
  --card-2: rgba(255, 255, 255, .14);
  --sep: rgba(255, 255, 255, .1);
  --glass: rgba(30, 30, 32, .62);
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
  --safe-t: env(safe-area-inset-top, 0px);
  --safe-b: env(safe-area-inset-bottom, 0px);
  --side: 0px;
  --tab-h: 74px;
  --mini-h: 64px;
  color-scheme: dark;
}
:root.light {
  --bg: #f2f2f7; --text: #111; --text-2: rgba(0, 0, 0, .6); --text-3: rgba(0, 0, 0, .35);
  --card: rgba(0, 0, 0, .05); --card-2: rgba(0, 0, 0, .09); --sep: rgba(0, 0, 0, .1); --glass: rgba(255, 255, 255, .7);
  color-scheme: light;
}
:root.serif { --font: "New York", "Iowan Old Style", Georgia, "Times New Roman", serif; }
:root.rounded { --font: ui-rounded, "SF Pro Rounded", "Nunito", "Varela Round", -apple-system, sans-serif; }
:root.mono { --font: ui-monospace, "SF Mono", "JetBrains Mono", Menlo, Consolas, monospace; }

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; height: 100%; background: var(--bg); color: var(--text); font-family: var(--font); }
body { overflow: hidden; -webkit-font-smoothing: antialiased; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; border: 0; background: none; padding: 0; }
a { color: inherit; text-decoration: none; }
img { display: block; }
.hidden { display: none !important; }
.i { width: 1.15em; height: 1.15em; fill: currentColor; flex: none; vertical-align: -0.2em; }
.glass { background: var(--glass); backdrop-filter: blur(30px) saturate(1.8); -webkit-backdrop-filter: blur(30px) saturate(1.8);
  border: 1px solid rgba(255, 255, 255, .1); }
:root.light .glass { border-color: rgba(0, 0, 0, .06); }

/* ------------------------------------------------------------ fond du thème */
#theme-bg { position: fixed; inset: 0; z-index: 0; background: var(--bg); }
#theme-bg canvas, #theme-overlay { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; }
#theme-overlay { z-index: 40; }

/* ------------------------------------------------------------ structure */
#app { position: fixed; inset: 0; z-index: 1; display: flex; }
#view { flex: 1; overflow-y: auto; overflow-x: hidden; padding: calc(var(--safe-t) + 14px) 0 calc(var(--tab-h) + var(--mini-h) + var(--safe-b) + 30px);
  scroll-behavior: smooth; }
#view > .page { max-width: 1200px; margin: 0 auto; animation: pagein .28s ease; }
@keyframes pagein { from { opacity: 0; transform: translateY(8px); } }
#sidebar { display: none; }

@media (min-width: 900px) {
  :root { --side: 250px; --tab-h: 0px; }
  #sidebar { display: flex; flex-direction: column; gap: 2px; width: var(--side); padding: 24px 12px 120px; overflow-y: auto;
    background: rgba(255, 255, 255, .03); border-right: 1px solid var(--sep); }
  #tabbar { display: none !important; }
  #view { padding-top: 26px; }
}
.side-brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 22px; padding: 6px 12px 18px; }
.logo-badge { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; color: #fff;
  background: linear-gradient(135deg, #ff5f6d, var(--accent), #8e2de2); }
.side-item { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 12px; font-weight: 600; color: var(--text-2); }
.side-item .i { width: 22px; height: 22px; }
.side-item:hover { background: var(--card); color: var(--text); }
.side-item.on { background: var(--card-2); color: var(--accent); }
.side-label { font-size: 12px; font-weight: 700; color: var(--text-3); text-transform: uppercase; letter-spacing: .06em; padding: 16px 12px 6px; }

/* barre d'onglets (téléphone) */
#tabbar { position: fixed; z-index: 30; left: 12px; right: 12px; bottom: calc(var(--safe-b) + 10px); height: 62px; border-radius: 31px;
  display: flex; align-items: center; justify-content: space-around; padding: 0 6px; box-shadow: 0 10px 30px rgba(0, 0, 0, .35); }
#tabbar button { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 2px; font-size: 10.5px; font-weight: 600;
  color: var(--text-2); padding: 6px 0; border-radius: 24px; }
#tabbar button .i { width: 25px; height: 25px; }
#tabbar button.on { color: var(--accent); background: var(--card-2); }

/* ------------------------------------------------------------ mini-lecteur */
#mini { position: fixed; z-index: 31; left: calc(var(--side) + 12px); right: 12px; bottom: calc(var(--safe-b) + var(--tab-h) + 14px);
  height: var(--mini-h); border-radius: 22px; display: flex; align-items: center; gap: 12px; padding: 0 10px; cursor: pointer;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .35); }
@media (min-width: 900px) { #mini { left: calc(var(--side) + 20px); right: 20px; bottom: 16px; max-width: 980px; margin: 0 auto; } }
#mini .art { width: 46px; height: 46px; border-radius: 10px; object-fit: cover; background: var(--card); }
#mini .meta { flex: 1; min-width: 0; }
#mini .t { font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#mini .a { font-size: 13px; color: var(--text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#mini .ctl { display: flex; gap: 2px; }
#mini .bar { position: absolute; left: 18px; right: 18px; bottom: 4px; height: 2px; border-radius: 1px; background: var(--card-2); overflow: hidden; }
#mini .bar i { display: block; height: 100%; width: 0; background: var(--accent); }
.icon-btn { width: 42px; height: 42px; border-radius: 50%; display: inline-grid; place-items: center; color: inherit; }
.icon-btn:hover { background: var(--card); }
.icon-btn .i { width: 24px; height: 24px; }

/* ------------------------------------------------------------ titres et sections */
.head { display: flex; align-items: center; gap: 10px; padding: 0 18px; min-height: 44px; }
.head .sp { flex: 1; }
.large-title { font-size: 34px; font-weight: 800; letter-spacing: -.02em; padding: 6px 18px 4px; line-height: 1.1; }
.subtitle { color: var(--text-2); padding: 0 18px 10px; font-size: 15px; }
.section-title { font-size: 22px; font-weight: 800; padding: 22px 18px 10px; display: flex; align-items: center; gap: 8px; }
.section-title .more { margin-left: auto; font-size: 15px; font-weight: 600; color: var(--accent); }
.shelf { display: flex; gap: 14px; overflow-x: auto; padding: 2px 18px 6px; scroll-snap-type: x mandatory; scrollbar-width: none; }
.shelf::-webkit-scrollbar { display: none; }
.shelf > * { scroll-snap-align: start; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 18px 14px; padding: 4px 18px; }
.grid.small { grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); }
.grid.three { grid-template-columns: repeat(3, 1fr); }
@media (min-width: 700px) { .grid.three { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); } }
.empty { color: var(--text-2); text-align: center; padding: 40px 30px; }
.empty .big { font-size: 46px; margin-bottom: 8px; }

/* cartes */
.card { width: 165px; flex: none; cursor: pointer; }
.grid .card { width: auto; }
.card .art, .tile-art { width: 100%; aspect-ratio: 1; border-radius: 14px; overflow: hidden; background: var(--card); position: relative;
  box-shadow: 0 4px 12px rgba(0, 0, 0, .25); transition: transform .2s; }
.card:hover .art { transform: scale(1.02); }
.card .art img, .tile-art img { width: 100%; height: 100%; object-fit: cover; }
.card .ttl { font-weight: 650; font-size: 14px; margin-top: 7px; display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
.card .ttl.two { -webkit-line-clamp: 2; min-height: 2.5em; }
.card .sub { font-size: 12.5px; color: var(--text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card.round .art { border-radius: 50%; }
.card.round { text-align: center; width: 120px; }
.placeholder { width: 100%; height: 100%; display: grid; place-items: center; color: var(--text-3); background: var(--card); }
.placeholder .i { width: 40%; height: 40%; }
.mosaic { display: grid; grid-template-columns: 1fr 1fr; width: 100%; height: 100%; }
.mosaic img { width: 100%; height: 100%; object-fit: cover; }
.gen-cover { position: absolute; inset: 0; padding: 12px; display: flex; flex-direction: column; justify-content: space-between; color: #fff; }
.gen-cover small { font-size: 10px; font-weight: 800; letter-spacing: .1em; opacity: .85; }
.gen-cover b { font-size: 21px; font-weight: 900; line-height: 1.05; }
.badge-live { position: absolute; right: 6px; bottom: 6px; background: #ff3b30; color: #fff; font-size: 9px; font-weight: 900; padding: 2px 6px; border-radius: 9px; }
.radio-badge { position: absolute; right: 4px; bottom: 4px; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center;
  background: var(--accent); color: #fff; border: 2px solid var(--bg); }
.genre-tile { aspect-ratio: 1.6; border-radius: 14px; padding: 12px; color: #fff; font-weight: 800; font-size: 18px; display: flex; align-items: flex-end;
  position: relative; overflow: hidden; cursor: pointer; }
.genre-tile::after { content: ""; position: absolute; right: -14px; top: -14px; width: 70px; height: 70px; border-radius: 50%; border: 8px solid rgba(255, 255, 255, .18); }
.decade-tile { width: 150px; flex: none; aspect-ratio: 1; border-radius: 16px; overflow: hidden; position: relative; cursor: pointer; }
.decade-tile .mosaic { position: absolute; inset: 0; }
.decade-tile .lbl { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: flex-end; padding: 12px; color: #fff;
  background: linear-gradient(transparent 30%, rgba(0, 0, 0, .78)); }
.decade-tile .lbl b { font-size: 32px; font-weight: 900; line-height: 1; }
.decade-tile .lbl span { font-size: 12px; font-weight: 600; opacity: .85; }

/* lignes de morceaux */
.tracks { padding: 0 8px; }
.row-t { display: flex; align-items: center; gap: 12px; padding: 7px 10px; border-radius: 12px; cursor: pointer; }
.row-t:hover { background: var(--card); }
.row-t .art { width: 46px; height: 46px; border-radius: 7px; object-fit: cover; background: var(--card); flex: none; }
.row-t .num { width: 28px; text-align: center; color: var(--text-2); font-variant-numeric: tabular-nums; flex: none; }
.row-t .meta { flex: 1; min-width: 0; }
.row-t .t { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row-t .a { font-size: 13.5px; color: var(--text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row-t .d { font-size: 13px; color: var(--text-2); font-variant-numeric: tabular-nums; }
.row-t.playing .t { color: var(--accent); }
.row-t .liked { color: var(--accent); width: 12px; height: 12px; margin-right: 3px; }
.row-t .more { color: var(--text-2); }

/* boutons */
.btns { display: flex; gap: 12px; padding: 6px 18px 4px; }
.pill { flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 48px; border-radius: 24px; font-weight: 700;
  font-size: 16px; background: var(--card-2); color: var(--accent); white-space: nowrap; padding: 0 16px; }
.pill.primary { background: var(--accent); color: #fff; box-shadow: 0 6px 18px color-mix(in srgb, var(--accent) 35%, transparent); }
.pill:active { transform: scale(.97); }
.pill.small { flex: none; height: 36px; font-size: 14px; border-radius: 18px; }
.chips { display: flex; gap: 8px; overflow-x: auto; padding: 4px 18px 8px; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip { flex: none; padding: 8px 15px; border-radius: 18px; background: var(--card-2); font-weight: 650; font-size: 14.5px; white-space: nowrap; }
.chip.on { background: var(--accent); color: #fff; }
.seg { display: flex; margin: 4px 18px 10px; background: var(--card); border-radius: 12px; padding: 3px; }
.seg button { flex: 1; padding: 8px; border-radius: 9px; font-weight: 650; font-size: 14.5px; color: var(--text-2); }
.seg button.on { background: var(--card-2); color: var(--text); box-shadow: 0 1px 4px rgba(0, 0, 0, .2); }

/* formulaires */
.form { padding: 0 18px; }
.group { background: var(--card); border-radius: 16px; overflow: hidden; margin: 8px 0 4px; }
.group-title { font-size: 13px; font-weight: 600; color: var(--text-2); text-transform: uppercase; letter-spacing: .04em; padding: 18px 6px 4px; }
.group-foot { font-size: 13px; color: var(--text-2); padding: 6px 6px 10px; line-height: 1.4; }
.cell { display: flex; align-items: center; gap: 12px; min-height: 50px; padding: 10px 16px; border-bottom: 1px solid var(--sep); }
.cell:last-child { border-bottom: 0; }
.cell .l { flex: 1; min-width: 0; }
.cell .l small { display: block; color: var(--text-2); font-size: 13px; margin-top: 2px; }
.cell .v { color: var(--text-2); }
.cell.link { cursor: pointer; }
.cell.link::after { content: "›"; color: var(--text-3); font-size: 22px; }
.cell.danger { color: #ff453a; cursor: pointer; }
.cell.action { color: var(--accent); cursor: pointer; font-weight: 600; }
.input { width: 100%; background: var(--card-2); border: 1px solid transparent; border-radius: 12px; padding: 11px 13px; outline: none; }
.input:focus { border-color: var(--accent); }
textarea.input { min-height: 80px; resize: vertical; }
select.input { width: auto; }
.switch { position: relative; width: 51px; height: 31px; flex: none; }
.switch input { opacity: 0; width: 0; height: 0; }
.switch span { position: absolute; inset: 0; border-radius: 16px; background: var(--card-2); transition: .2s; cursor: pointer; }
.switch span::after { content: ""; position: absolute; left: 2px; top: 2px; width: 27px; height: 27px; border-radius: 50%; background: #fff; transition: .2s;
  box-shadow: 0 2px 4px rgba(0, 0, 0, .25); }
.switch input:checked + span { background: #34c759; }
.switch input:checked + span::after { transform: translateX(20px); }
input[type=range] { accent-color: var(--accent); }

/* ------------------------------------------------------------ feuille, menus, toast */
#scrim { position: fixed; inset: 0; z-index: 60; background: rgba(0, 0, 0, .45); opacity: 0; pointer-events: none; transition: opacity .25s; }
#scrim.on { opacity: 1; pointer-events: auto; }
#sheet { position: fixed; z-index: 61; left: 0; right: 0; bottom: 0; max-height: 88vh; overflow-y: auto; border-radius: 24px 24px 0 0;
  padding: 10px 0 calc(var(--safe-b) + 18px); transform: translateY(105%); transition: transform .32s cubic-bezier(.2, .9, .3, 1); }
#sheet.on { transform: none; }
@media (min-width: 700px) {
  #sheet { left: 50%; right: auto; bottom: 50%; width: 560px; max-height: 84vh; border-radius: 24px; transform: translate(-50%, 60%) scale(.96); opacity: 0;
    transition: transform .28s, opacity .2s; pointer-events: none; }
  #sheet.on { transform: translate(-50%, 50%); opacity: 1; pointer-events: auto; }
}
.sheet-grab { width: 38px; height: 5px; border-radius: 3px; background: var(--card-2); margin: 0 auto 10px; }
.sheet-head { display: flex; align-items: center; gap: 12px; padding: 4px 18px 12px; }
.sheet-head img { width: 54px; height: 54px; border-radius: 8px; object-fit: cover; }
.sheet-head .t { font-weight: 700; }
.sheet-head .a { color: var(--text-2); font-size: 14px; }
.sheet-title { font-size: 20px; font-weight: 800; padding: 4px 18px 10px; display: flex; align-items: center; }
.sheet-title .sp { flex: 1; }
.menu-item { display: flex; align-items: center; gap: 14px; width: 100%; padding: 13px 22px; font-size: 16px; text-align: left; }
.menu-item:hover { background: var(--card); }
.menu-item.danger { color: #ff453a; }
.menu-item .i { width: 22px; height: 22px; opacity: .85; }
#toast { position: fixed; z-index: 90; left: 50%; top: calc(var(--safe-t) + 14px); transform: translate(-50%, -150%); padding: 12px 18px; border-radius: 18px;
  font-weight: 600; max-width: 90vw; transition: transform .35s cubic-bezier(.2, .9, .3, 1); text-align: center; }
#toast.on { transform: translate(-50%, 0); }
#overlay-page { position: fixed; inset: 0; z-index: 70; display: none; }
#overlay-page.on { display: block; }

/* ------------------------------------------------------------ lecteur plein écran */
#player { position: fixed; inset: 0; z-index: 50; transform: translateY(100%); transition: transform .45s cubic-bezier(.2, .9, .25, 1);
  color: #fff; background: #000; overflow: clip; }
#player.on { transform: none; }
#np-bg { position: absolute; inset: -20%; background-size: cover; background-position: center; filter: blur(60px) saturate(1.6) brightness(.7);
  transform: scale(1.2); animation: drift 24s ease-in-out infinite alternate; }
@keyframes drift { 0% { transform: scale(1.2) translate(0, 0) rotate(0); } 50% { transform: scale(1.4) translate(-4%, 3%) rotate(8deg); } 100% { transform: scale(1.3) translate(4%, -3%) rotate(-6deg); } }
#np-halo { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; opacity: 0; transition: opacity .4s; }
#np-halo.on { opacity: 1; }
#np { position: relative; height: 100%; max-width: 560px; margin: 0 auto; display: flex; flex-direction: column;
  padding: calc(var(--safe-t) + 8px) 26px calc(var(--safe-b) + 14px); }
@media (min-width: 1000px) {
  #np { max-width: 1100px; display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: auto 1fr; gap: 0 50px; }
  #np .np-head { grid-column: 1 / 3; }
  #np .np-stage { grid-row: 2; }
  #np .np-controls { grid-row: 2; align-self: center; }
}
.np-head { display: flex; align-items: center; height: 50px; }
.np-head .ctx { flex: 1; text-align: center; font-size: 13.5px; font-weight: 650; opacity: .8; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.np-stage { flex: 1; min-height: 0; display: flex; align-items: center; justify-content: center; position: relative; padding: 12px 0; }
.np-art { height: min(100%, 480px); width: auto; max-width: 100%; aspect-ratio: 1; border-radius: 16px; overflow: hidden; position: relative;
  box-shadow: 0 30px 60px rgba(0, 0, 0, .5); transition: transform .5s cubic-bezier(.3, 1.4, .5, 1); transform: scale(.86); }
.np-art.playing { transform: scale(1); }
.np-art img { width: 100%; height: 100%; object-fit: cover; }
.np-art.animated img { animation: kenburns 26s ease-in-out infinite alternate; }
.np-art.animated:not(.playing) img { animation-play-state: paused; }
@keyframes kenburns { 0% { transform: scale(1.1) translate(-3%, 2%); } 50% { transform: scale(1.14) translate(3%, -2%); } 100% { transform: scale(1.1) translate(2%, 3%); } }
.np-art.animated::after { content: ""; position: absolute; inset: -50%; background: linear-gradient(115deg, transparent 42%, rgba(255, 255, 255, .22) 50%, transparent 58%);
  transform: translateX(-70%); animation: sheen 9s linear infinite; mix-blend-mode: screen; }
.np-art.animated:not(.playing)::after { animation-play-state: paused; }
@keyframes sheen { 0% { transform: translateX(-70%); } 28%, 100% { transform: translateX(70%); } }
.np-panel { position: absolute; inset: 0; overflow-y: auto; scrollbar-width: none; mask-image: linear-gradient(transparent, #000 8%, #000 88%, transparent); }
.np-panel::-webkit-scrollbar { display: none; }
.np-title { display: flex; align-items: center; gap: 12px; margin: 18px 0 10px; }
.np-title .meta { flex: 1; min-width: 0; }
.np-title .t { font-size: 22px; font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.np-title .a { font-size: 19px; opacity: .65; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; cursor: pointer; }
.scrub { margin: 8px 0 2px; }
.scrub input { width: 100%; accent-color: #fff; height: 6px; }
.scrub .times { display: flex; justify-content: space-between; font-size: 12px; opacity: .6; font-variant-numeric: tabular-nums; }
.live-bar { display: flex; align-items: center; gap: 10px; height: 44px; font-weight: 900; font-size: 13px; letter-spacing: .12em; }
.live-bar i { width: 9px; height: 9px; border-radius: 50%; background: #ff3b30; animation: pulse 1.4s infinite; }
.live-bar span { flex: 1; height: 4px; border-radius: 2px; background: rgba(255, 255, 255, .25); }
@keyframes pulse { 50% { opacity: .3; } }
.transport { display: flex; align-items: center; justify-content: space-between; margin: 10px 0; }
.transport .big .i { width: 58px; height: 58px; }
.transport .mid .i { width: 36px; height: 36px; }
.transport .small { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: 14px; }
.transport .small.on, .np-tools button.on { background: rgba(255, 255, 255, .2); }
.vol { display: flex; align-items: center; gap: 10px; opacity: .85; margin: 6px 0; }
.vol input { flex: 1; accent-color: #fff; }
.np-tools { display: flex; justify-content: space-between; margin-top: 8px; }
.np-tools button { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; }
.np-tools .i { width: 24px; height: 24px; }
.grab { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 18px; background: rgba(255, 255, 255, .22); font-weight: 650; font-size: 14px; }
.grab-msg { font-size: 13px; font-weight: 600; margin: 6px 0; opacity: .9; }

/* paroles */
.lyrics { padding: 120px 0 260px; }
.ly { font-size: 28px; font-weight: 800; line-height: 1.25; margin: 0 0 18px; opacity: .3; cursor: pointer; transition: opacity .3s, transform .3s; transform-origin: left; }
.ly.on { opacity: 1; }
.ly .tr { display: block; font-size: 19px; font-weight: 600; opacity: .75; margin-top: 4px; }
.ly-note { font-size: 12px; opacity: .5; font-weight: 700; margin-bottom: 14px; }
.dots { display: flex; gap: 9px; justify-content: center; height: 100%; align-items: center; }
.dots i { width: 13px; height: 13px; border-radius: 50%; background: #fff; animation: bounce 1s infinite ease-in-out; }
.dots i:nth-child(2) { animation-delay: .15s; } .dots i:nth-child(3) { animation-delay: .3s; }
@keyframes bounce { 0%, 100% { transform: translateY(0); opacity: .4; } 50% { transform: translateY(-12px); opacity: 1; } }
.center-msg { height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 10px; opacity: .7; }
.queue-row { display: flex; align-items: center; gap: 12px; padding: 8px 4px; cursor: pointer; border-radius: 10px; }
.queue-row img { width: 44px; height: 44px; border-radius: 7px; object-fit: cover; }
.queue-row .meta { flex: 1; min-width: 0; }
.queue-row .t { font-weight: 650; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.queue-row .a { font-size: 13px; opacity: .65; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.viz-wrap { position: absolute; inset: 0; display: flex; flex-direction: column; }
.viz-wrap canvas { flex: 1; width: 100%; min-height: 0; cursor: pointer; }
.viz-styles { display: flex; justify-content: center; gap: 6px; padding: 10px; }
.viz-styles button { padding: 6px 14px; border-radius: 16px; font-size: 13px; font-weight: 650; }
.viz-styles button.on { background: rgba(255, 255, 255, .25); }

/* égaliseur */
.eq { display: flex; justify-content: space-between; gap: 4px; padding: 10px 18px; height: 230px; }
.eq .band { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: 11px; color: var(--text-2); }
.eq input[type=range] { writing-mode: vertical-lr; direction: rtl; flex: 1; width: 28px; }
.eq-curve { height: 60px; margin: 0 18px; }

/* karaoké */
.karaoke { position: fixed; inset: 0; z-index: 80; color: #fff; background: #000; display: flex; flex-direction: column; }
.karaoke .bg { position: absolute; inset: -20%; background-size: cover; filter: blur(60px) brightness(.45) saturate(1.5); }
.karaoke .k-head { position: relative; display: flex; align-items: center; gap: 12px; padding: calc(var(--safe-t) + 12px) 20px 8px; }
.karaoke .k-head img { width: 52px; height: 52px; border-radius: 10px; object-fit: cover; }
.karaoke .k-lines { position: relative; flex: 1; overflow: hidden; text-align: center; padding: 0 26px;
  mask-image: linear-gradient(transparent, #000 18%, #000 82%, transparent); }
.karaoke .k-inner { transition: transform .6s cubic-bezier(.2, .9, .3, 1); padding-top: 34vh; }
.k-line { font-size: 26px; font-weight: 800; opacity: .45; margin: 0 0 24px; line-height: 1.25; }
.k-line.past { opacity: .25; font-size: 22px; }
.k-line.now { font-size: 36px; opacity: 1; background: linear-gradient(90deg, var(--accent) var(--p, 0%), rgba(255, 255, 255, .5) var(--p, 0%));
  -webkit-background-clip: text; background-clip: text; color: transparent; filter: drop-shadow(0 0 12px color-mix(in srgb, var(--accent) 60%, transparent)); }
.k-line .tr { display: block; font-size: 19px; color: rgba(255, 255, 255, .75); font-weight: 600; margin-top: 6px; -webkit-text-fill-color: rgba(255, 255, 255, .75); }
.karaoke .k-foot { position: relative; padding: 10px 24px calc(var(--safe-b) + 22px); }
.k-voice { display: flex; align-items: center; gap: 12px; }
.k-voice input { flex: 1; accent-color: var(--accent); }

/* soirée, profils, divers */
.qr { width: 240px; height: 240px; background: #fff; border-radius: 22px; padding: 14px; margin: 0 auto; }
.qr img { width: 100%; height: 100%; }
.profiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 26px; padding: 30px; max-width: 700px; margin: 0 auto; }
.profile { display: flex; flex-direction: column; align-items: center; gap: 10px; cursor: pointer; font-weight: 700; }
.avatar { width: 100px; height: 100px; border-radius: 50%; display: grid; place-items: center; font-size: 46px; position: relative; }
.avatar.sm { width: 32px; height: 32px; font-size: 16px; }
.avatar.cur::after { content: ""; position: absolute; inset: -5px; border-radius: 50%; border: 3px solid var(--text); }
.banner { margin: 10px 18px 0; padding: 14px; border-radius: 18px; display: flex; align-items: center; gap: 12px; font-weight: 650;
  border: 1px solid color-mix(in srgb, var(--accent) 50%, transparent);
  background: linear-gradient(90deg, color-mix(in srgb, var(--accent) 35%, transparent), color-mix(in srgb, var(--accent) 8%, transparent)); }
.banner .e { font-size: 34px; }
.theme-card { aspect-ratio: 1.35; border-radius: 18px; overflow: hidden; position: relative; cursor: pointer; border: 3px solid transparent; }
.theme-card.on { border-color: var(--accent); }
.theme-card .e { position: absolute; inset: 0; display: grid; place-items: center; font-size: 44px; }
.theme-card .n { position: absolute; left: 12px; bottom: 10px; font-weight: 800; }
.theme-card .n i { display: block; width: 34px; height: 5px; border-radius: 3px; margin-top: 4px; }
.progress { height: 4px; border-radius: 2px; background: var(--card-2); overflow: hidden; }
.progress i { display: block; height: 100%; background: var(--accent); }
.job .progress { margin-top: 6px; }
.status-err { color: #ff453a; }
.status-ok { color: #34c759; }
.episode { padding: 12px 8px; border-bottom: 1px solid var(--sep); }
.episode .date { font-size: 12px; font-weight: 650; color: var(--text-2); }
.episode .t { font-weight: 700; margin: 2px 0; }
.episode .desc { font-size: 14px; color: var(--text-2); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; cursor: pointer; }
.episode .desc.open { -webkit-line-clamp: 40; }
.episode .acts { display: flex; align-items: center; gap: 10px; margin-top: 8px; }
.ep-play { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 16px; background: var(--accent-soft); color: var(--accent); font-weight: 650; font-size: 13px; }
.ep-play .progress { width: 40px; }
.hero { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 10px 18px; text-align: center; }
.hero .cover { width: 230px; aspect-ratio: 1; border-radius: 18px; overflow: hidden; box-shadow: 0 14px 30px rgba(0, 0, 0, .35); }
.hero .cover img { width: 100%; height: 100%; object-fit: cover; }
.hero .kind { font-size: 12px; font-weight: 800; color: var(--text-2); letter-spacing: .08em; text-transform: uppercase; }
.hero h1 { margin: 0; font-size: 24px; }
.hero .by { color: var(--accent); font-weight: 650; cursor: pointer; }
.hero .meta { color: var(--text-2); font-size: 13.5px; }
.artist-hero { height: 340px; position: relative; overflow: hidden; margin: -14px 0 10px; }
.artist-hero img { width: 100%; height: 100%; object-fit: cover; }
.artist-hero .ov { position: absolute; inset: 0; background: linear-gradient(transparent 40%, rgba(0, 0, 0, .75)); display: flex; align-items: flex-end;
  padding: 20px; color: #fff; }
.artist-hero h1 { font-size: 40px; font-weight: 900; margin: 0; flex: 1; }
.fab { width: 58px; height: 58px; border-radius: 50%; background: var(--accent); color: #fff; display: grid; place-items: center; box-shadow: 0 8px 20px rgba(0, 0, 0, .35); }
.fab .i { width: 26px; height: 26px; }
#auth { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 24px;
  background: linear-gradient(160deg, #3a1030, #000); }
#auth .box { width: min(420px, 100%); border-radius: 28px; padding: 28px; display: flex; flex-direction: column; gap: 12px; text-align: center; }
#auth h1 { margin: 6px 0 0; }
#auth p { margin: 0 0 6px; color: var(--text-2); }
#auth .err { color: #ff453a; min-height: 1em; font-size: 14px; }
.brand-logo { width: 84px; height: 84px; border-radius: 22px; margin: 0 auto; display: grid; place-items: center; color: #fff;
  background: linear-gradient(135deg, #ff5f6d, #fa2d48, #8e2de2); }
.brand-logo .i { width: 44px; height: 44px; }
.stat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 10px; padding: 6px 18px; }
.stat { background: var(--card); border-radius: 14px; padding: 12px; }
.stat b { font-size: 22px; display: block; }
.stat span { color: var(--text-2); font-size: 13px; }
code { background: var(--card-2); padding: 2px 6px; border-radius: 6px; font-size: .9em; word-break: break-all; }

/* modifier les infos d'un morceau */
.ed-cover { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 4px 0 6px; }
.ed-art { width: 150px; height: 150px; border-radius: 12px; overflow: hidden; background: var(--card); }
.ed-art img, .ed-art .placeholder { width: 100%; height: 100%; object-fit: cover; }
.ed-cover .pill { flex: none; height: 38px; padding: 0 16px; font-size: 14px; cursor: pointer; }
.cell .ed-in { max-width: 58%; text-align: right; background: transparent; padding: 6px 4px; }
.cell .ed-in:focus { background: var(--card-2); text-align: left; }
.cell.action .i { flex: none; }
