/* SoundFlow: stage black, cool white type, an electric-blue gradient that falls to black, thin steel labels.
   Covers first (as in Apple Music), wave shapes everywhere (as in SoundCloud). Montserrat for titles. */
@font-face { font-family: "Montserrat"; src: url("vendor/montserrat-latin-wght-normal.woff2") format("woff2"); font-weight: 100 900; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Montserrat"; src: url("vendor/montserrat-latin-ext-wght-normal.woff2") format("woff2"); font-weight: 100 900; font-display: swap; 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-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
:root {
  --tabs: 62px;
  --bg: #07080b; --surface: #101218; --raised: #181b23; --ink: #f1f4f8; --muted: #98a1b0; --line: #242833;
  --accent: #2f7bff; --accent-2: #19c3ff; --flame: linear-gradient(135deg, #19c3ff, #1f5eff 50%, #0a1a5c); --on-accent: #ffffff;
  --gold: #b7c2d3; --wave: #3c4352; --red: #ff7a70; --radius: 14px; --side: 232px; --lyrics: 380px;
  --title: "Montserrat", system-ui, -apple-system, "Segoe UI", sans-serif;
  color-scheme: dark;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.5 system-ui, -apple-system, "Segoe UI", sans-serif; }
/* Backdrop of every page: electric blue that fades into black (stage lights), nothing else, so the content stands out. */
body::before { content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(75% 55% at 90% -12%, rgba(31, 94, 255, .5), transparent 70%), radial-gradient(60% 50% at -12% 112%, rgba(25, 195, 255, .2), transparent 70%),
    linear-gradient(165deg, #04060c 0%, #06102e 42%, #030409 78%, #050b22 100%); }
h1, h2 { line-height: 1.1; margin: 0 0 10px; font-family: var(--title); text-wrap: balance; }
h1 { font-size: clamp(1.9rem, 5vw, 2.9rem); font-weight: 900; text-transform: uppercase; letter-spacing: -.01em; }
h2 { font-size: 1.05rem; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; margin-top: 32px; }
.eyebrow a { color: inherit; }
.eyebrow { margin: 0 0 4px; color: var(--gold); font-family: var(--title); font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .22em; }
p { margin: 0 0 10px; }
a { color: var(--accent-2); }
button, .btn, input, select, textarea { font: inherit; color: inherit; }
button, .btn { min-height: 44px; padding: 8px 16px; border: 1px solid var(--line); border-radius: 999px; background: var(--raised); cursor: pointer; text-decoration: none; display: inline-flex; align-items: center; justify-content: center; gap: 6px; }
button:hover:not(:disabled), .btn:hover { border-color: var(--muted); }
button:disabled { opacity: .4; cursor: default; }
button.primary { background: var(--flame); border: 0; color: var(--on-accent); font-family: var(--title); font-weight: 800; text-transform: uppercase; letter-spacing: .06em; font-size: .88rem; padding-inline: 22px; }
button.danger, .stat.danger { color: var(--red); }
button.primary.danger { background: #b3261e; color: #fff; }
button.link { border: 0; background: none; padding: 0; min-height: 0; color: var(--accent-2); text-decoration: underline; display: inline; border-radius: 4px; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
label { display: grid; gap: 4px; font-weight: 600; margin-bottom: 10px; }
label.check { display: flex; align-items: center; gap: 8px; font-weight: 400; min-height: 44px; margin: 0; }
label.check input { width: 20px; height: 20px; min-height: 0; accent-color: var(--accent); }
input, select, textarea { min-height: 44px; padding: 8px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); width: 100%; font-weight: 400; }
input::placeholder, textarea::placeholder { color: var(--muted); }
textarea { resize: vertical; }
.hint { color: var(--muted); font-size: .88rem; font-weight: 400; }
.empty { text-align: center; color: var(--muted); padding: 32px 12px; }
.row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 8px; }
.row.end { justify-content: flex-end; margin-top: 16px; }
.spacer { flex: 1; }
.flash { margin: 0; padding: 12px 16px; border-radius: 12px; background: var(--ink); color: var(--bg); font-weight: 600; box-shadow: 0 8px 30px rgba(0, 0, 0, .6); }
.toast { position: fixed; left: 16px; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom)); z-index: 40; margin: 0 auto; max-width: 520px; }
body.has-player .toast { bottom: calc(120px + env(safe-area-inset-bottom)); }

/* Menu: a column on the left on wide screens, a bar at the top on phones */
.top { position: fixed; z-index: 10; top: 0; bottom: 0; left: 0; width: var(--side); display: flex; flex-direction: column; gap: 22px; padding: 22px 14px; background: linear-gradient(180deg, #05060a, #060a18 60%, #081233); border-right: 1px solid var(--line); }
.logo { display: flex; align-items: center; gap: 10px; padding: 0 8px; font-family: var(--title); font-weight: 900; font-size: 1.15rem; text-transform: uppercase; letter-spacing: .04em; color: var(--ink); text-decoration: none; }
.logo img { border-radius: 9px; }
.top nav { display: grid; gap: 2px; }
.top nav a { min-height: 44px; padding: 0 12px; display: flex; align-items: center; gap: 12px; border-radius: 10px; color: var(--muted); text-decoration: none; font-family: var(--title); font-weight: 600; }
.top nav a:hover { color: var(--ink); background: var(--surface); }
.top nav a[aria-current="page"] { color: var(--ink); background: var(--raised); box-shadow: inset 3px 0 0 var(--accent); }
.top nav a[aria-current="page"] svg { color: var(--accent); }
.me { margin-top: auto; display: grid; gap: 8px; padding: 0 4px; }
.who { color: var(--muted); font-size: .88rem; padding-left: 8px; }
.me button { background: transparent; }
main { max-width: 1040px; margin: 0 0 0 var(--side); padding: 36px 32px 48px; }
body.has-player main { padding-bottom: 150px; }
@media (min-width: 1500px) { main { margin-inline: calc(var(--side) + (100vw - var(--side) - 1040px) / 2) auto; } }
@media (min-width: 1180px) { body.has-lyrics main { margin-right: var(--lyrics); margin-left: var(--side); } }
@media (max-width: 900px) {
  .top { position: sticky; bottom: auto; width: auto; flex-direction: row; align-items: center; gap: 12px; padding: calc(8px + env(safe-area-inset-top)) 14px 8px; border-right: 0; border-bottom: 1px solid var(--line); background: #050506; }
  .logo { padding: 0; font-size: 1rem; } .logo img { width: 30px; height: 30px; }
  .me { margin: 0 0 0 auto; display: flex; align-items: center; } .me button { min-height: 36px; padding: 4px 12px; font-size: .85rem; }
  /* Phone: the menu is a tab bar at the bottom of the screen; the player floats just above it. */
  .top nav { position: fixed; left: 0; right: 0; bottom: 0; display: flex; gap: 0; height: calc(var(--tabs) + env(safe-area-inset-bottom)); padding: 6px 6px env(safe-area-inset-bottom); background: rgba(10, 10, 11, .88); -webkit-backdrop-filter: blur(24px) saturate(1.4); backdrop-filter: blur(24px) saturate(1.4); border-top: 1px solid var(--line); }
  .top nav a { flex: 1; flex-direction: column; justify-content: center; gap: 3px; min-height: 48px; padding: 2px; font-size: .68rem; font-weight: 700; letter-spacing: .02em; position: relative; }
  .top nav a svg { width: 25px; height: 25px; }
  .top nav a:hover { background: none; }
  .top nav a[aria-current="page"] { background: none; box-shadow: none; color: var(--accent); }
  .top nav .badge { position: absolute; top: 0; left: calc(50% + 6px); min-width: 18px; height: 18px; font-size: .68rem; }
  main { margin: 0 auto; padding: 20px 16px calc(var(--tabs) + 40px + env(safe-area-inset-bottom)); }
  body.has-player main { padding-bottom: calc(var(--tabs) + 170px + env(safe-area-inset-bottom)); }
  .toast, body.has-player .toast { bottom: calc(var(--tabs) + 16px + env(safe-area-inset-bottom)); }
  body.has-player .toast { bottom: calc(var(--tabs) + 130px + env(safe-area-inset-bottom)); }
}

/* Sign-in */
.login { max-width: 400px; margin: 0 auto; text-align: center; padding: 9vh 16px 40px; }
.login > img { border-radius: 18px; box-shadow: 0 12px 40px rgba(31, 94, 255, .45); }
.login h1 { margin-top: 18px; font-size: 2.2rem; letter-spacing: .04em; }
.login form { text-align: left; margin: 22px 0 14px; display: grid; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.login form h2 { margin-top: 0; }

/* Covers */
.cover { position: relative; display: block; width: 88px; height: 88px; min-height: 0; padding: 0; border: 0; border-radius: 8px; overflow: hidden; flex: none; background: var(--raised); box-shadow: 0 6px 18px rgba(0, 0, 0, .5); }
.cv { width: 100%; height: 100%; object-fit: cover; display: block; }
.cv.ph { display: grid; place-items: center; background: radial-gradient(circle at 30% 20%, #16223d, transparent 65%), linear-gradient(145deg, #171a22, #08090c); box-shadow: inset 0 0 0 1px var(--line); border-radius: inherit; }
.cv.ph svg { width: 78%; height: 78%; }
.glyph { position: absolute; inset: 0; margin: auto; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--flame); color: #fff; box-shadow: 0 4px 14px rgba(0, 0, 0, .5); }

/* Shelf of the latest tracks */
.shelf { display: grid; grid-auto-flow: column; grid-auto-columns: 168px; gap: 18px; overflow-x: auto; padding: 6px 4px 14px; scroll-snap-type: x proximity; scrollbar-width: thin; scrollbar-color: var(--line) transparent; }
.tile { scroll-snap-align: start; display: grid; gap: 2px; min-width: 0; }
.tile .cover { width: 168px; height: 168px; border-radius: 12px; margin-bottom: 8px; }
.tile .glyph { inset: auto 10px 10px auto; opacity: 0; transform: translateY(6px); }
.tile:hover .glyph, .tile.on .glyph, .tile .cover:focus-visible .glyph { opacity: 1; transform: none; }
@media (hover: none) { .tile .glyph { opacity: 1; transform: none; width: 38px; height: 38px; } }
.tile .t-title { font-size: .95rem; }
.tile .t-sub { margin: 0; font-size: .85rem; }
@media (max-width: 640px) { .shelf { grid-auto-columns: 132px; gap: 12px; } .tile .cover { width: 132px; height: 132px; } }

/* Rows of tracks */
.bar { display: grid; grid-template-columns: 1fr auto; gap: 10px; margin-bottom: 10px; }
.bar select { width: auto; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.chips button { min-height: 38px; font-size: .9rem; background: transparent; }
.chips button[aria-pressed="true"] { border-color: var(--gold); color: var(--gold); font-weight: 700; }
.track { display: grid; grid-template-columns: 88px minmax(0, 1fr); gap: 16px; padding: 14px; border-radius: var(--radius); border-bottom: 1px solid var(--line); }
.track:hover { background: var(--surface); }
/* The track that plays stands out: lit blue panel, bright edge, moving level bars before its title; the others step back. */
.track.on { background: linear-gradient(90deg, rgba(47, 123, 255, .3), rgba(47, 123, 255, .07) 75%); border-bottom-color: transparent; box-shadow: inset 4px 0 0 var(--accent-2), 0 0 0 1px rgba(47, 123, 255, .55), 0 10px 34px rgba(31, 94, 255, .28); }
.track.on:hover { background: linear-gradient(90deg, rgba(47, 123, 255, .34), rgba(47, 123, 255, .1) 75%); }
.track.on .t-title, .tile.on .t-title { color: #fff; }
.track.on .t-sub, .track.on .t-dur { color: var(--ink); }
.track.on .t-title::before, .tile.on .t-title::before { content: ""; display: inline-block; width: 16px; height: 14px; margin-right: 8px; vertical-align: -1px;
  background: linear-gradient(var(--accent-2), var(--accent-2)) 0 100% / 4px 60% no-repeat, linear-gradient(var(--accent-2), var(--accent-2)) 6px 100% / 4px 100% no-repeat, linear-gradient(var(--accent-2), var(--accent-2)) 12px 100% / 4px 40% no-repeat; }
#list:has(.track.on) .track:not(.on) { opacity: .62; }
#list:has(.track.on) .track:not(.on):hover, #list:has(.track.on) .track:not(.on):focus-within { opacity: 1; }
.tile.on .cover { box-shadow: 0 0 0 3px var(--accent-2), 0 12px 34px rgba(31, 94, 255, .55); }
.shelf:has(.tile.on) .tile:not(.on) { opacity: .62; }
.shelf:has(.tile.on) .tile:not(.on):hover { opacity: 1; }
@keyframes levels { to { background-size: 4px 100%, 4px 35%, 4px 85%; } }
@media (prefers-reduced-motion: no-preference) { .playing .t-title::before { animation: levels .55s ease-in-out infinite alternate; } }
.t-head { display: flex; align-items: baseline; gap: 10px; }
.t-title { font-family: var(--title); font-weight: 700; font-size: 1.05rem; color: var(--ink); text-decoration: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; flex: 1; min-width: 0; }
.t-title:hover { text-decoration: underline; }
.t-dur { color: var(--muted); font-variant-numeric: tabular-nums; font-size: .85rem; }
.t-sub { color: var(--muted); margin: 0 0 6px; font-size: .92rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tag { display: inline-block; margin-left: 4px; padding: 0 8px; border: 1px solid var(--gold); border-radius: 999px; color: var(--gold); font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; vertical-align: 1px; }
canvas.wave { width: 100%; height: 54px; display: block; cursor: pointer; border-radius: 4px; touch-action: manipulation; }
canvas.wave.tall { height: 140px; }
.t-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 2px; margin-top: 4px; margin-left: -10px; }
.stat { min-height: 40px; padding: 4px 10px; border: 0; background: none; border-radius: 20px; display: inline-flex; align-items: center; gap: 5px; color: var(--muted); text-decoration: none; font-size: .88rem; font-variant-numeric: tabular-nums; }
button.stat:hover:not(:disabled), a.stat:hover { background: var(--raised); color: var(--ink); }
.stat[aria-pressed="true"] { color: var(--accent); }
.stat svg { width: 19px; height: 19px; }
@media (max-width: 640px) { .track { grid-template-columns: 60px minmax(0, 1fr); gap: 12px; padding: 12px 6px; } .track .cover { width: 60px; height: 60px; } .track .glyph { width: 34px; height: 34px; } }

/* One track */
.backdrop { position: absolute; z-index: -1; top: 0; left: 0; right: 0; height: 460px; background: #0d2a66 center / cover; filter: blur(70px) saturate(1.3); opacity: .38; -webkit-mask-image: linear-gradient(#000 30%, transparent); mask-image: linear-gradient(#000 30%, transparent); pointer-events: none; }
main { position: relative; isolation: isolate; }
.hero { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 28px; align-items: end; margin-bottom: 22px; }
.hero .cover { width: 240px; height: 240px; border-radius: 14px; box-shadow: 0 24px 60px rgba(0, 0, 0, .7); }
.hero .glyph { width: 64px; height: 64px; } .hero .glyph svg { width: 28px; height: 28px; }
.hero h1 { overflow-wrap: anywhere; }
.hero .t-sub { font-size: 1.15rem; color: var(--ink); white-space: normal; }
.wave-box { position: relative; padding: 4px 0 20px; margin-bottom: 14px; }
#marks { position: absolute; left: 0; right: 0; bottom: 0; height: 14px; }
.mark { position: absolute; width: 12px; height: 12px; min-height: 0; padding: 0; margin-left: -6px; border-radius: 50%; border: 2px solid var(--bg); background: var(--gold); }
.desc { white-space: pre-wrap; color: var(--muted); max-width: 70ch; }
.comments form { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px; margin-bottom: 12px; }
.comments form .row { justify-content: space-between; }
.comment { padding: 12px 0; border-bottom: 1px solid var(--line); }
.comment > div { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.comment .stat { margin-left: auto; }
.comment p { margin: 2px 0 0; white-space: pre-wrap; overflow-wrap: anywhere; }
@media (max-width: 700px) { .hero { grid-template-columns: 1fr; justify-items: center; text-align: center; gap: 18px; } .hero .cover { width: min(70vw, 260px); height: min(70vw, 260px); } .hero .t-meta { justify-content: center; margin-left: 0; } canvas.wave.tall { height: 96px; } }

/* Page « Plus » */
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; margin-top: 16px; }
.panel h2 { margin-top: 0; }
.stack { display: grid; max-width: 420px; }
details { margin-top: 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--raised); }
summary { min-height: 48px; padding: 0 16px; display: flex; align-items: center; justify-content: space-between; cursor: pointer; font-family: var(--title); font-weight: 800; text-transform: uppercase; letter-spacing: .06em; font-size: .9rem; list-style: none; border-radius: 12px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: ""; width: 9px; height: 9px; border-right: 2px solid var(--gold); border-bottom: 2px solid var(--gold); transform: rotate(45deg); margin-top: -4px; }
details[open] summary::after { transform: rotate(-135deg); margin-top: 4px; }
details h3 { margin: 4px 16px 6px; color: var(--gold); font: 700 .72rem/1.4 var(--title); text-transform: uppercase; letter-spacing: .18em; }
details ul { margin: 0 0 14px; padding: 0 16px 0 34px; display: grid; gap: 4px; }

/* Playlists, upload, accounts */
form.inline { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
form.inline input[name="name"] { flex: 1; min-width: 200px; }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.card { display: grid; gap: 2px; padding: 18px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); color: var(--ink); text-decoration: none; }
.card strong { font-family: var(--title); font-weight: 800; font-size: 1.05rem; }
.card:hover { border-color: var(--gold); }
.drop { display: grid; place-items: center; gap: 2px; text-align: center; padding: 44px 16px; border: 1px dashed var(--muted); border-radius: var(--radius); background: var(--surface); cursor: pointer; margin: 14px 0; }
.drop.over, .drop:hover { border-color: var(--accent-2); background: var(--raised); }
.drop input { position: absolute; opacity: 0; width: 1px; height: 1px; min-height: 0; }
.drop:focus-within { outline: 2px solid var(--gold); outline-offset: 2px; }
.drop strong { font-family: var(--title); font-weight: 800; text-transform: uppercase; letter-spacing: .06em; color: var(--accent-2); font-size: 1.05rem; }
.drop span { color: var(--muted); font-weight: 400; }
.up { padding: 12px 14px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 8px; }
.up-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; }
.up-head strong { overflow-wrap: anywhere; }
.up.ko .up-head span { color: var(--red); font-weight: 600; }
.up.ok .up-head span { color: var(--gold); font-weight: 600; }
progress { width: 100%; height: 6px; accent-color: var(--accent); margin-top: 8px; }
.user { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px; padding: 14px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 8px; }
.user > div:first-child { display: grid; min-width: 0; }
.user.pending { border-color: var(--gold); }
.user.refused { opacity: .75; }
.user .msg { font-style: italic; overflow-wrap: anywhere; }
.badge { display: inline-grid; place-items: center; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 11px; background: var(--flame); color: #fff; font: 800 .75rem/1 var(--title); letter-spacing: 0; vertical-align: 2px; }
.user .row { margin: 0; }

/* Player bar */
#player { position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; display: grid; grid-template-columns: auto 52px minmax(100px, 220px) auto minmax(80px, 1fr) auto 90px; align-items: center; gap: 14px; padding: 10px 18px calc(10px + env(safe-area-inset-bottom)); background: rgba(16, 16, 18, .82); -webkit-backdrop-filter: blur(24px) saturate(1.4); backdrop-filter: blur(24px) saturate(1.4); border-top: 1px solid var(--line); }
.p-buttons { display: flex; align-items: center; gap: 2px; }
button.icon { width: 44px; padding: 0; border: 0; background: none; border-radius: 50%; }
button.icon:hover { background: var(--raised); }
button.icon.big { background: var(--ink); color: var(--bg); margin-inline: 4px; }
button.icon.big:hover { background: #fff; }
button.icon[aria-pressed="true"] { color: var(--accent); background: var(--raised); }
button.mix { min-height: 36px; padding: 0 12px; margin-inline: 4px; background: transparent; border-color: var(--muted); color: var(--muted); font: 800 .72rem/1 var(--title); text-transform: uppercase; letter-spacing: .1em; white-space: nowrap; }
button.mix[aria-pressed="true"] { background: var(--flame); border-color: transparent; color: #fff; }
.p-cover { width: 52px; height: 52px; min-height: 0; padding: 0; border: 0; border-radius: 8px; overflow: hidden; display: block; position: relative; box-shadow: 0 4px 12px rgba(0, 0, 0, .5); }
.p-info { display: grid; min-width: 0; min-height: 44px; padding: 0; border: 0; border-radius: 8px; background: none; text-align: left; justify-content: stretch; justify-items: start; align-content: center; gap: 0; }
.p-title { font-family: var(--title); font-weight: 700; color: var(--ink); text-decoration: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.p-artist { color: var(--muted); font-size: .85rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.p-time, .p-dur { color: var(--muted); font-size: .82rem; font-variant-numeric: tabular-nums; }
/* Position line of the track that plays (Apple Music way): played part bright, rest dim */
input.seek { -webkit-appearance: none; appearance: none; width: 100%; height: 28px; min-height: 0; padding: 0; border: 0; border-radius: 4px; background: none; cursor: pointer; --p: 0%; }
input.seek::-webkit-slider-runnable-track { height: 4px; border-radius: 2px; background: linear-gradient(90deg, var(--ink) var(--p), var(--wave) var(--p)); }
input.seek::-moz-range-track { height: 4px; border-radius: 2px; background: var(--wave); }
input.seek::-moz-range-progress { height: 4px; border-radius: 2px; background: var(--ink); }
input.seek::-webkit-slider-thumb { -webkit-appearance: none; width: 12px; height: 12px; margin-top: -4px; border-radius: 50%; background: var(--ink); opacity: 0; }
input.seek::-moz-range-thumb { width: 12px; height: 12px; border: 0; border-radius: 50%; background: var(--ink); opacity: 0; }
input.seek:hover::-webkit-slider-thumb, input.seek:active::-webkit-slider-thumb, input.seek:focus-visible::-webkit-slider-thumb { opacity: 1; }
input.seek:hover::-moz-range-thumb, input.seek:active::-moz-range-thumb, input.seek:focus-visible::-moz-range-thumb { opacity: 1; }
input.n-seek { max-width: 640px; height: 36px; }
input.n-seek::-webkit-slider-runnable-track { height: 6px; border-radius: 3px; }
input.n-seek::-moz-range-track, input.n-seek::-moz-range-progress { height: 6px; border-radius: 3px; }
input.n-seek::-webkit-slider-thumb { width: 16px; height: 16px; margin-top: -5px; opacity: 1; }
input.n-seek::-moz-range-thumb { width: 16px; height: 16px; opacity: 1; }
.p-vol { min-height: 0; padding: 0; border: 0; accent-color: var(--ink); background: none; }
@media (max-width: 760px) {
  #player { grid-template-columns: 46px minmax(0, 1fr) auto; grid-template-areas: "cover info buttons" "wave wave wave"; gap: 6px 10px; padding: 8px 10px; }
  .p-cover { grid-area: cover; width: 46px; height: 46px; } .p-info { grid-area: info; } .p-buttons { grid-area: buttons; } input.p-seek { grid-area: wave; height: 18px; }
  .p-time, .p-dur, .p-vol, #player [data-act="prev"] { display: none; }
  #player button.icon { width: 40px; min-height: 40px; }
  body.can-fade #player [data-act="lyrics"] { display: none; }  /* the lyrics switch stays in the listening settings */
  button.mix { padding: 0 9px; margin-inline: 2px; }
}

/* Full-screen view of the track that plays: big cover (swipe to change track), wave shape, buttons */
#now { position: fixed; inset: 0; z-index: 30; display: grid; grid-template-rows: auto minmax(0, 1fr) auto auto auto auto auto; justify-items: center; align-items: center; gap: 12px; padding: calc(12px + env(safe-area-inset-top)) 24px calc(20px + env(safe-area-inset-bottom)); background: var(--bg); overflow: hidden; }
.n-back { position: absolute; inset: -80px; z-index: -1; background: #0d2a66 center / cover; filter: blur(80px) saturate(1.4); opacity: .45; }
#now { isolation: isolate; }
.n-close { justify-self: start; }
.n-art { position: relative; width: min(100%, 520px, 46vh); aspect-ratio: 1; border-radius: 18px; overflow: hidden; box-shadow: 0 30px 80px rgba(0, 0, 0, .75); touch-action: pan-y; cursor: grab; user-select: none; -webkit-user-select: none; }
.n-art .cv { pointer-events: none; -webkit-user-drag: none; }
.n-info { display: grid; justify-items: center; text-align: center; max-width: 100%; min-width: 0; }
.n-title { font-family: var(--title); font-weight: 900; font-size: clamp(1.3rem, 5vw, 2rem); text-transform: uppercase; color: var(--ink); text-decoration: none; overflow-wrap: anywhere; line-height: 1.15; }
.n-artist { color: var(--muted); font-size: 1.05rem; }
.n-times { display: flex; justify-content: space-between; width: 100%; max-width: 640px; margin-top: -14px; color: var(--muted); font-size: .82rem; font-variant-numeric: tabular-nums; }
.n-buttons { display: flex; align-items: center; gap: 18px; }
.n-buttons button.icon { width: 56px; min-height: 56px; } .n-buttons button.icon svg { width: 30px; height: 30px; }
.n-buttons button.icon.big { width: 76px; min-height: 76px; } .n-buttons button.icon.big svg { width: 36px; height: 36px; }
.n-more { display: flex; align-items: center; gap: 10px; }
body.now-open { overflow: hidden; }
@media (max-height: 560px) { #now { gap: 6px; } .n-buttons button.icon.big { width: 56px; min-height: 56px; } }

/* Lyrics: a column on the right on wide screens, a sheet above the player on phones */
body.now-open #lyrics { z-index: 32; }
#lyrics { position: fixed; z-index: 15; top: 0; right: 0; bottom: 0; width: var(--lyrics); display: flex; flex-direction: column; background: #050506; border-left: 1px solid var(--line); }
body.has-player #lyrics { padding-bottom: 76px; }
#lyrics header { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; padding: 22px 18px 14px 26px; border-bottom: 1px solid var(--line); }
#lyrics header div { display: grid; min-width: 0; }
#lyrics header strong { font-family: var(--title); font-weight: 800; font-size: 1.1rem; overflow-wrap: anywhere; }
.ly-body { flex: 1; overflow-y: auto; padding: 22px 26px 40vh; position: relative; scrollbar-width: thin; scrollbar-color: var(--line) transparent; }
.ly { display: block; width: 100%; min-height: 0; margin: 0 0 14px; padding: 0; border: 0; border-radius: 6px; background: none; text-align: left; justify-content: flex-start; font-family: var(--title); font-weight: 800; font-size: 1.45rem; line-height: 1.25; color: var(--ink); overflow-wrap: anywhere; }
button.ly { color: #5c5a56; cursor: pointer; }
button.ly:hover { color: var(--muted); }
button.ly.now { color: var(--ink); }
@media (prefers-reduced-motion: no-preference) { button.ly { transition: color .25s, transform .25s; transform-origin: left center; } button.ly.now { transform: scale(1.04); } }
@media (max-width: 1179px) {
  #lyrics { top: auto; left: 0; width: auto; height: 62vh; border-left: 0; border-top: 1px solid var(--line); border-radius: 18px 18px 0 0; box-shadow: 0 -20px 60px rgba(0, 0, 0, .8); }
  .ly { font-size: 1.25rem; } .ly-body { padding-bottom: 20vh; }
}
@media (min-width: 901px) and (max-width: 1179px) { #lyrics { left: var(--side); } }
@media (max-width: 900px) {
  #lyrics { bottom: calc(var(--tabs) + env(safe-area-inset-bottom)); height: 58vh; }
  body.has-player #lyrics { padding-bottom: 76px; }
}
@media (max-width: 760px) { body.has-player #lyrics { padding-bottom: 104px; } }

dialog { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); color: var(--ink); padding: 22px; width: min(520px, calc(100vw - 32px)); max-height: calc(100dvh - 32px); box-shadow: 0 30px 80px rgba(0, 0, 0, .8); }
dialog::backdrop { background: rgba(0, 0, 0, .7); }
dialog h2 { margin-top: 0; }
@media (prefers-reduced-motion: no-preference) { .track, .card, .glyph, .cover { transition: background-color .15s, border-color .15s, transform .2s, opacity .2s; } .cover:active { transform: scale(.97); } }
/* Phone: the player floats above the tab bar (kept last, so it wins over the rules of the player above). */
@media (max-width: 900px) {
  #player { left: 8px; right: 8px; bottom: calc(var(--tabs) + 8px + env(safe-area-inset-bottom)); padding-bottom: 8px; border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 10px 30px rgba(0, 0, 0, .6); }
}

/* Lists of tracks, the Apple Music way: small cover, title, artist (kept last: it replaces the wide rows above). */
.track { grid-template-columns: 52px minmax(0, 1fr) repeat(4, auto); align-items: center; gap: 4px 14px; padding: 8px 10px; border-radius: 10px; cursor: pointer; }
.track .cover { width: 52px; height: 52px; border-radius: 6px; box-shadow: 0 3px 10px rgba(0, 0, 0, .5); }
.track .glyph { width: 100%; height: 100%; border-radius: 0; background: rgba(0, 0, 0, .55); box-shadow: none; opacity: 0; }
.track .glyph svg { width: 20px; height: 20px; }
.track:hover .glyph, .track.on .glyph, .track:focus-visible .glyph { opacity: 1; }
.track .t-body { display: grid; min-width: 0; }
.track .t-title { font-size: 1rem; font-weight: 600; }
.track .t-title:hover { text-decoration: none; }
.track .t-sub { margin: 0; font-size: .88rem; }
.track .stat { padding: 4px 8px; }
@media (max-width: 640px) { .track { grid-template-columns: 48px minmax(0, 1fr) repeat(4, auto); gap: 4px 10px; padding: 8px 4px; } .track .cover { width: 48px; height: 48px; } .track .glyph { width: 100%; height: 100%; } }
/* The mini player wears the neon white outline (kept last: it wins over the phone rule just above). */
#player { border: 0; box-shadow: 0 0 0 2px #fff, 0 0 10px 2px rgba(255, 255, 255, .75), 0 0 26px 6px rgba(120, 190, 255, .45); }
@media (min-width: 901px) { #player { left: calc(var(--side) + 12px); right: 12px; bottom: 12px; border-radius: 16px; } body.has-lyrics #player { right: calc(var(--lyrics) + 12px); } }
@media (min-width: 901px) and (max-width: 1179px) { body.has-lyrics #player { right: 12px; } }
@media (min-width: 1180px) { body.has-player #lyrics { padding-bottom: 0; } }
@media (min-width: 901px) and (max-width: 1179px) { body.has-player #lyrics { padding-bottom: 100px; } }
/* Lyrics: a soft, regular-weight face (Arial family), easier to read than the heavy title face. */
.ly { font-family: Arial, "Helvetica Neue", Helvetica, sans-serif; font-weight: 400; font-size: 1.2rem; line-height: 1.5; letter-spacing: .01em; margin-bottom: 10px; }
button.ly { color: #8f97a6; }
button.ly.now { color: #fff; font-weight: 700; }
@media (prefers-reduced-motion: no-preference) { button.ly.now { transform: none; } }
@media (max-width: 1179px) { .ly { font-size: 1.1rem; } }
/* Timing the lyrics (administrator) */
.ly-tools { margin-top: 28px; padding-top: 16px; border-top: 1px solid var(--line); }
.ly-tools .eyebrow { margin-top: 14px; }
#lyrics footer.tap { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; padding: 12px; border-top: 1px solid var(--line); background: var(--surface); }
#lyrics footer.tap .primary { min-height: 56px; padding-inline: 28px; font-size: 1rem; }
p.ly.done { color: var(--muted); }
p.ly.now { color: #fff; font-weight: 700; box-shadow: inset 3px 0 0 var(--accent-2); padding-left: 10px; }
.panel h3.sub { margin: 22px 0 8px; padding-top: 16px; border-top: 1px solid var(--line); font: 800 .9rem/1.2 var(--title); text-transform: uppercase; letter-spacing: .06em; }
/* Phone: the lyrics sheet takes nearly the whole screen, so many lines stay in view while the song moves on. */
@media (max-width: 900px) {
  #lyrics { height: calc(100dvh - var(--tabs) - 64px - env(safe-area-inset-top) - env(safe-area-inset-bottom)); }
  #lyrics header { padding: 14px 14px 10px 20px; }
  .ly-body { padding: 16px 20px 30vh; }
}

/* Gestion: library list (administrator) */
.user.lib { flex-wrap: nowrap; justify-content: flex-start; padding: 8px 12px; }
.user.lib > .cover { flex: 0 0 44px; width: 44px; height: 44px; box-shadow: none; }
.user.lib > div:nth-child(2) { display: grid; min-width: 0; flex: 1 1 auto; }
.user.lib strong, .user.lib .hint { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#library > .row { margin-bottom: 12px; }

/* Offline listening */
.offline-bar { margin: 0 0 16px; padding: 10px 14px; border: 1px solid var(--gold); border-radius: var(--radius); color: var(--gold); font-weight: 600; }
.kept-mark { display: none; vertical-align: -3px; margin-right: 5px; color: var(--accent-2); }
.kept-mark svg { width: 14px; height: 14px; }
.track.kept .kept-mark { display: inline-block; }

/* Opening screen: the ring draws itself, the note appears, two waves leave the ring, then the screen fades.
   CSS only: it never blocks a click and it leaves by itself even if the scripts fail. */
#splash { position: fixed; inset: 0; z-index: 1000; display: grid; place-content: center; justify-items: center; gap: 14px; pointer-events: none; background: radial-gradient(120% 90% at 50% 100%, #12307a 0%, #070b18 55%, #030408 100%); animation: sp-out .72s ease 2.75s forwards; }
.sp-logo { width: min(44vw, 190px); height: auto; overflow: visible; filter: drop-shadow(0 0 26px rgba(47, 123, 255, .55)); }
.sp-ring { stroke-dasharray: 1; stroke-dashoffset: 1; animation: sp-draw 1.16s .07s cubic-bezier(.6, 0, .2, 1) forwards; }
.sp-arc { opacity: 0; transform-box: fill-box; transform-origin: center; animation: sp-arc .65s ease-out forwards; }
.sp-a1 { animation-delay: .8s; } .sp-a2 { animation-delay: 1.01s; }
.sp-note { stroke-dasharray: 1; stroke-dashoffset: 1; animation: sp-draw .65s 1.38s ease-out forwards; }
.sp-head { opacity: 0; transform-box: fill-box; transform-origin: center; animation: sp-pop .43s 1.16s cubic-bezier(.2, 1.7, .4, 1) forwards; }
.sp-wave { opacity: 0; transform-box: fill-box; transform-origin: center; animation: sp-wave 1.45s ease-out forwards; }
.sp-w1 { animation-delay: 1.45s; } .sp-w2 { animation-delay: 1.81s; }
.sp-name { margin: 0; font: 800 1.9rem/1 "Montserrat", system-ui, sans-serif; letter-spacing: .01em; background: linear-gradient(135deg, #5fd8ff, #3d8bff 55%, #1f5eff); -webkit-background-clip: text; background-clip: text; color: transparent; animation: sp-up .72s 1.45s ease-out both; }
@keyframes sp-draw { to { stroke-dashoffset: 0; } }
@keyframes sp-arc { from { opacity: 0; transform: scale(.7) rotate(-25deg); } to { opacity: .7; transform: none; } }
@keyframes sp-pop { from { opacity: 0; transform: scale(.2); } to { opacity: 1; transform: scale(1); } }
@keyframes sp-wave { from { opacity: .55; transform: scale(1); } to { opacity: 0; transform: scale(1.45); } }
@keyframes sp-up { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes sp-out { to { opacity: 0; visibility: hidden; } }
@media (prefers-reduced-motion: reduce) { #splash { animation: sp-out .2s linear .5s forwards; } #splash * { animation: none; opacity: 1; } .sp-ring, .sp-note { stroke-dashoffset: 0; } .sp-wave { opacity: 0; } }

/* ---------- Home page (14 October 2026): welcome, latest track in large, shelves that run to the screen edge ---------- */
.welcome { margin-bottom: 18px; }
.welcome h1 { margin-bottom: 6px; }
.welcome .eyebrow { letter-spacing: .16em; }
button.ghost { min-height: 36px; padding: 4px 14px; background: transparent; font-size: .88rem; font-weight: 600; }
button.ghost[aria-pressed="true"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.sec-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 34px 0 12px; scroll-margin-top: 80px; }
.sec-head h2 { margin: 0; }
/* The latest track: its own cover blurred behind, a large cover, title and two buttons. */
.star { position: relative; isolation: isolate; overflow: hidden; display: grid; grid-template-columns: 200px minmax(0, 1fr); grid-template-areas: "cover body" "cover actions"; gap: 14px 26px; align-items: center; padding: 22px; border-radius: 22px; border: 1px solid rgba(255, 255, 255, .08); background: linear-gradient(120deg, rgba(31, 94, 255, .35), rgba(10, 16, 40, .85) 60%), #0b1022; box-shadow: 0 24px 60px rgba(0, 0, 0, .45); }
.star::before { content: ""; position: absolute; inset: -40px; z-index: -1; background: var(--art, none) center / cover; filter: blur(48px) saturate(1.5); opacity: .55; }
.star::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(5, 8, 20, .2), rgba(5, 8, 20, .75)); }
.star .cover { grid-area: cover; width: 200px; height: 200px; border-radius: 16px; box-shadow: 0 20px 50px rgba(0, 0, 0, .6); }
.star .glyph { width: 56px; height: 56px; inset: auto 12px 12px auto; }
.st-body { grid-area: body; align-self: end; display: grid; gap: 4px; min-width: 0; }
.st-row { grid-area: actions; align-self: start; margin-top: 0; }
.st-title { font-family: var(--title); font-weight: 900; font-size: clamp(1.5rem, 4vw, 2.3rem); line-height: 1.08; text-transform: uppercase; color: #fff; text-decoration: none; overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.st-title:hover { text-decoration: underline; }
.star .t-sub { color: rgba(241, 244, 248, .8); font-size: 1rem; white-space: normal; margin: 0; }
.star .row button:not(.primary) { background: rgba(255, 255, 255, .1); border-color: rgba(255, 255, 255, .18); }
@media (max-width: 640px) {
  .star { grid-template-columns: 112px minmax(0, 1fr); grid-template-areas: "cover body" "actions actions"; padding: 16px; gap: 14px 16px; border-radius: 18px; }
  .st-body { align-self: center; }
  .star .cover { width: 112px; height: 112px; border-radius: 12px; }
  .star .glyph { width: 40px; height: 40px; inset: auto 8px 8px auto; }
  .st-title { font-size: 1.3rem; -webkit-line-clamp: 2; }
  .star .t-sub { font-size: .9rem; }
  .star .row { display: grid; grid-template-columns: 1fr 1fr; }
  .star .row button { padding-inline: 10px; font-size: .85rem; }
}
/* Shelves: they scroll to the edge of the screen; the first cover lines up with the page and the last one keeps a margin. */
.shelf { margin-inline: -32px; padding: 6px 32px 16px; scroll-padding-inline: 32px; grid-auto-columns: 172px; gap: 20px; scrollbar-width: none; }
.shelf::-webkit-scrollbar { display: none; }
.shelf::after { content: ""; width: 1px; }
.tile .cover { width: 172px; height: 172px; border-radius: 14px; box-shadow: 0 12px 30px rgba(0, 0, 0, .5); }
.tile .t-title { display: block; margin-top: 2px; }
@media (max-width: 900px) { .shelf { margin-inline: -16px; padding-inline: 16px; scroll-padding-inline: 16px; } }
@media (max-width: 640px) { .shelf { grid-auto-columns: 140px; gap: 14px; } .tile .cover { width: 140px; height: 140px; } }
/* Most played: two columns of numbered rows on wide screens, one on phones. */
.hots { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 4px 18px; }
.hot { display: grid; grid-template-columns: 26px 52px minmax(0, 1fr); align-items: center; gap: 12px; padding: 8px 10px; border-radius: 12px; cursor: pointer; }
.hot:hover, .hot.on { background: var(--surface); }
.hot .rank { font: 900 1.25rem/1 var(--title); color: var(--gold); text-align: center; }
.hot .cover { width: 52px; height: 52px; border-radius: 8px; }
.hot .glyph { width: 100%; height: 100%; border-radius: 0; background: rgba(0, 0, 0, .55); box-shadow: none; opacity: 0; }
.hot .glyph svg { width: 20px; height: 20px; }
.hot:hover .glyph, .hot.on .glyph { opacity: 1; }
.hot .t-body { display: grid; min-width: 0; }
.hot .t-title { font-size: 1rem; font-weight: 600; }
.hot .t-sub { margin: 0; font-size: .86rem; }
/* Artists: round pictures, a press shows only their tracks below. */
.shelf.artists { grid-auto-columns: 128px; }
.artist { display: grid; justify-items: center; gap: 2px; min-height: 0; padding: 6px 4px 8px; border: 0; border-radius: 16px; background: none; text-align: center; }
.artist .cover { width: 112px; height: 112px; border-radius: 50%; margin-bottom: 8px; box-shadow: 0 10px 26px rgba(0, 0, 0, .5); }
.artist strong { font-family: var(--title); font-weight: 700; font-size: .92rem; max-width: 120px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.artist .hint { font-size: .78rem; }
.artist:hover:not(:disabled) .cover, .artist[aria-pressed="true"] .cover { box-shadow: 0 0 0 3px var(--accent-2), 0 10px 26px rgba(31, 94, 255, .5); }
@media (max-width: 640px) { .shelf.artists { grid-auto-columns: 104px; } .artist .cover { width: 92px; height: 92px; } }
/* Search with its glass, then the sort. */
.search { position: relative; display: block; margin: 0; }
.search svg { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); width: 19px; height: 19px; color: var(--muted); pointer-events: none; }
.search input { padding-left: 40px; border-radius: 999px; }
.bar select { border-radius: 999px; padding-right: 30px; }
@media (max-width: 480px) { .bar { grid-template-columns: 1fr; } .bar select { width: 100%; } }
.chips button.on { border-color: var(--accent-2); color: #fff; background: rgba(47, 123, 255, .25); font-weight: 700; }
.chips button.on svg { width: 16px; height: 16px; }
/* Choosing tracks (administrator): a round tick before each cover, a bar of actions at the bottom. */
.track .pick { display: none; }
#list.selecting .track { grid-template-columns: 28px 52px minmax(0, 1fr) repeat(4, auto); }
#list.selecting .track .pick { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; border: 2px solid var(--muted); color: transparent; }
#list.selecting .track .pick svg { width: 16px; height: 16px; stroke-width: 3; }
#list.selecting .track.picked { background: rgba(47, 123, 255, .16); }
#list.selecting .track.picked .pick { background: var(--accent); border-color: var(--accent); color: #fff; }
#list.selecting .track .glyph { display: none; }
#list.selecting:has(.track.on) .track:not(.on) { opacity: 1; }
.selbar { position: sticky; z-index: 12; bottom: 16px; margin-top: 14px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; padding: 12px 14px; border-radius: 16px; background: rgba(16, 18, 26, .92); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px); border: 1px solid var(--line); box-shadow: 0 14px 40px rgba(0, 0, 0, .6); }
.selbar strong { flex: 1 1 100%; font-family: var(--title); font-weight: 700; }
@media (min-width: 641px) { .selbar strong { flex: 1 1 auto; } }
body.has-player .selbar { bottom: 104px; }
@media (max-width: 900px) { .selbar { bottom: calc(var(--tabs) + 10px + env(safe-area-inset-bottom)); } body.has-player .selbar { bottom: calc(var(--tabs) + 118px + env(safe-area-inset-bottom)); } }
dialog .picked-list { margin: 4px 0 6px; }
dialog .picked-list ul { max-height: 30vh; overflow: auto; padding-top: 6px; }
/* Head of a page of tracks (« Aimés »): big picture, count, buttons. */
.lhead { display: grid; grid-template-columns: 210px minmax(0, 1fr); gap: 26px; align-items: end; margin-bottom: 22px; }
.lh-art { width: 210px; height: 210px; border-radius: 18px; overflow: hidden; box-shadow: 0 24px 60px rgba(0, 0, 0, .6); }
.heart-art { display: grid; place-items: center; width: 100%; height: 100%; background: radial-gradient(circle at 30% 20%, #5fd8ff, transparent 55%), linear-gradient(140deg, #3d8bff, #1f3fd0 55%, #0b1a5c); color: #fff; }
.heart-art svg { width: 46%; height: 46%; filter: drop-shadow(0 6px 18px rgba(0, 0, 0, .35)); }
.lh-body .row { margin-top: 12px; }
@media (max-width: 640px) { .lhead { grid-template-columns: 1fr; justify-items: center; text-align: center; gap: 16px; } .lh-art { width: min(56vw, 220px); height: min(56vw, 220px); } .lh-body .row { justify-content: center; } }
.empty svg { width: 18px; height: 18px; vertical-align: -3px; }
/* Offline listening: the device and what SoundFlow keeps on it. */
.storage { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 20px; align-items: center; margin: 4px 0 16px; padding: 16px; border-radius: 16px; background: linear-gradient(135deg, rgba(47, 123, 255, .14), rgba(255, 255, 255, .02)); border: 1px solid var(--line); }
.storage svg { width: 100%; height: auto; overflow: visible; }
.storage .dv { fill: #1b2030; stroke: #8f9bb3; stroke-width: 2.5; }
.storage .dv-cam { fill: #0b0d13; }
.storage .scr { fill: #070a12; }
.storage .lvl { fill: var(--accent); opacity: .85; }
.storage .lvl-top { fill: none; stroke: var(--accent-2); stroke-width: 2; }
.storage .dv-note { fill: #fff; stroke: #fff; opacity: .9; }
.storage figcaption { display: grid; gap: 8px; min-width: 0; }
.storage figcaption strong { font-family: var(--title); font-weight: 800; font-size: 1.02rem; }
.gauge { display: flex; height: 12px; border-radius: 6px; overflow: hidden; background: #2a3040; }
.gauge i { display: block; height: 100%; }
.g-mine { background: linear-gradient(90deg, var(--accent-2), var(--accent)); }
.g-other { background: #8f9bb3; }
.g-free { background: #2a3040; border: 1px solid #4a5266; }
.legend { display: flex; flex-wrap: wrap; gap: 4px 16px; font-size: .88rem; }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.legend i { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }
@media (max-width: 520px) { .storage { grid-template-columns: 1fr; justify-items: center; text-align: center; } .storage svg { max-width: 150px; } .legend { justify-content: center; } }
.selbar button { flex: 1 1 auto; min-height: 42px; }
@media (max-width: 640px) { .selbar button { padding-inline: 10px; font-size: .82rem; } }

/* ---------- 14 October 2026 (evening): counts and heart on every row, pinned tracks, statistics ---------- */
.track .t-count { display: flex; gap: 12px; margin-top: 1px; color: var(--muted); font-size: .78rem; font-variant-numeric: tabular-nums; }
.track .t-count > span { display: inline-flex; align-items: center; gap: 3px; }
.track .t-count svg { width: 13px; height: 13px; }
.stat.heart { min-width: 40px; justify-content: center; }
.stat.heart svg { width: 21px; height: 21px; }
.stat.heart[aria-pressed="true"], button.icon[data-act="likenow"][aria-pressed="true"] { color: #ff4d6d; }
button.icon[data-act="likenow"][aria-pressed="true"] { background: none; }
.track { grid-template-columns: 52px minmax(0, 1fr) repeat(5, auto); }
#list.selecting .track { grid-template-columns: 28px 52px minmax(0, 1fr) repeat(5, auto); }
@media (max-width: 640px) { .track { grid-template-columns: 48px minmax(0, 1fr) repeat(5, auto); } }
@media (max-width: 760px) { #player [data-act="likenow"] { display: inline-flex; } }
/* Pinned tracks: first block of « Écouter », a soft frame with a pin. */
.pins { margin: 0 0 22px; padding: 6px 14px 10px; border-radius: 18px; border: 1px solid rgba(95, 216, 255, .28); background: linear-gradient(135deg, rgba(25, 195, 255, .1), rgba(31, 94, 255, .06)); }
.pins .sec-head { margin: 10px 0 6px; flex-wrap: wrap; gap: 2px 12px; }
.pins h2 { display: inline-flex; align-items: center; gap: 8px; }
.pins h2 svg { width: 20px; height: 20px; color: var(--accent-2); }
.pins .hint { font-size: .8rem; }
.pin-list .track { border-bottom-color: rgba(255, 255, 255, .06); }
/* Statistics (administrator) */
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 12px; margin: 10px 0 8px; }
.kpi { display: grid; gap: 2px; padding: 16px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); }
.kpi strong { font: 900 2rem/1 var(--title); background: var(--flame); -webkit-background-clip: text; background-clip: text; color: transparent; }
.kpi span { color: var(--muted); font-size: .88rem; }
.table-wrap { overflow-x: auto; border-radius: 14px; border: 1px solid var(--line); background: var(--surface); }
table.rank { width: 100%; border-collapse: collapse; font-size: .92rem; }
table.rank th, table.rank td { padding: 9px 12px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: middle; }
table.rank th { color: var(--muted); font: 700 .72rem/1.2 var(--title); text-transform: uppercase; letter-spacing: .1em; }
table.rank tr:last-child td { border-bottom: 0; }
table.rank .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; width: 1%; }
table.rank a { color: var(--ink); text-decoration: none; }
table.rank a:hover { text-decoration: underline; }
.barline { display: block; height: 4px; margin-top: 6px; border-radius: 2px; background: var(--line); overflow: hidden; }
.barline i { display: block; height: 100%; background: var(--flame); }
details.who-listens summary { text-transform: none; letter-spacing: 0; font-size: 1rem; gap: 12px; }
details.who-listens summary span:first-child { flex: 1; }
details.who-listens table { margin: 0 0 8px; }
.pin-rank { display: grid; place-items: center; min-width: 28px; font: 900 1.1rem/1 var(--title); color: var(--accent-2); }
.pin-rank svg { width: 18px; height: 18px; }
.welcome .row { margin-top: 12px; }
.pin-list .track { grid-template-columns: 24px 52px minmax(0, 1fr) repeat(3, auto); }
.pin-list .pin-rank { order: -1; min-width: 0; }
@media (max-width: 640px) { .pin-list .track { grid-template-columns: 20px 48px minmax(0, 1fr) repeat(3, auto); gap: 4px 8px; } }
/* Statistics: each part folds */
details.fold { background: var(--surface); padding: 0 0 4px; }
details.fold > summary { font-size: 1rem; }
details.fold > :not(summary) { margin-inline: 14px; }
details.fold .kpis { margin-bottom: 14px; }
details.fold .table-wrap { margin-bottom: 14px; }
details.fold details.who-listens { background: var(--raised); }
.sec-head { flex-wrap: wrap; row-gap: 2px; }
.sec-head > .hint { flex: 1 1 100%; font-size: .8rem; }
.shuffle-top { margin: 4px 0 6px; }

/* ---------- 14 October 2026 (night): mini player, queue, repeat, scrubbing wave, lyrics sheet ---------- */
/* Phone mini player, the Apple Music way: cover, title, then heart, play and next only, never over the title.
   Lyrics, queue, Mix and settings stay in the full-screen view. */
@media (max-width: 760px) {
  #player { grid-template-columns: 46px minmax(0, 1fr) auto; }
  .p-info { overflow: hidden; }
  #player [data-act="lyrics"], #player [data-act="settings"], #player [data-act="queue"], #player button.mix { display: none !important; }
  #player .p-buttons { gap: 0; }
  #player [data-act="likenow"] { order: 1; } #player [data-act="toggle"] { order: 2; } #player [data-act="next"] { order: 3; }
  #player button.icon.big { width: 40px; min-height: 40px; margin-inline: 2px 0; }
  #player button.icon.big svg { width: 20px; height: 20px; }
}
/* Full-screen view: shuffle and repeat beside the main buttons; a wave shape to drag, SoundCloud way. */
#now { grid-template-rows: auto minmax(0, 1fr) auto auto auto auto auto; }
.n-buttons { gap: 10px; }
.n-buttons button.icon.small { width: 44px; min-height: 44px; color: var(--muted); }
.n-buttons button.icon.small svg { width: 22px; height: 22px; }
.n-buttons button.icon.small[aria-pressed="true"] { color: var(--accent-2); background: rgba(25, 195, 255, .12); }
.n-wave { width: 100%; max-width: 640px; }
canvas.wave.scrub { display: block; width: 100%; height: 64px; cursor: ew-resize; touch-action: none; border-radius: 6px; }
canvas.wave.scrub.held { transform: scaleY(1.12); }
@media (prefers-reduced-motion: no-preference) { canvas.wave.scrub { transition: transform .15s; } }
canvas.wave { touch-action: pan-y; }
.n-times { margin-top: -6px; }
.n-more { flex-wrap: wrap; justify-content: center; gap: 6px; }
@media (max-width: 380px) { .n-buttons { gap: 4px; } .n-buttons button.icon { width: 48px; min-height: 48px; } .n-buttons button.icon.big { width: 68px; min-height: 68px; } }
@media (max-height: 700px) { canvas.wave.scrub { height: 48px; } }

/* Queue (Apple Music way): history, track that plays, next tracks. */
#queue { position: fixed; z-index: 34; top: 0; right: 0; bottom: 0; width: min(420px, 100vw); display: flex; flex-direction: column; background: rgba(10, 12, 18, .94); -webkit-backdrop-filter: blur(28px) saturate(1.4); backdrop-filter: blur(28px) saturate(1.4); border-left: 1px solid var(--line); box-shadow: -20px 0 60px rgba(0, 0, 0, .6); }
#queue header { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; padding: calc(18px + env(safe-area-inset-top)) 16px 10px 22px; }
#queue header div { display: grid; }
#queue header strong { font: 800 1.25rem/1.2 var(--title); }
.q-modes { display: flex; gap: 8px; padding: 0 22px 12px; border-bottom: 1px solid var(--line); }
.q-modes .pill { flex: 1; min-height: 40px; padding: 6px 12px; font-size: .88rem; font-weight: 600; color: var(--muted); }
.q-modes .pill svg { width: 18px; height: 18px; }
.q-modes .pill[aria-pressed="true"] { color: #fff; background: var(--flame); border-color: transparent; }
.q-body { flex: 1; overflow-y: auto; padding: 4px 14px calc(110px + env(safe-area-inset-bottom)); scrollbar-width: thin; }
.q-body h3 { margin: 18px 8px 6px; font: 800 .78rem/1.2 var(--title); text-transform: uppercase; letter-spacing: .12em; color: var(--gold); display: flex; gap: 8px; align-items: baseline; }
.q-body h3 .hint { text-transform: none; letter-spacing: 0; font-weight: 500; }
.q-body > .hint { margin: 0 8px; }
.q-list { list-style: none; margin: 0; padding: 0; }
.q-row { display: flex; align-items: center; gap: 4px; border-radius: 10px; }
.q-row:hover { background: rgba(255, 255, 255, .05); }
.q-main { flex: 1; min-width: 0; display: flex; align-items: center; justify-content: flex-start; gap: 12px; padding: 6px 8px; border: 0; border-radius: 10px; background: none; text-align: left; }
.q-main .cv { width: 44px; height: 44px; flex: none; border-radius: 6px; object-fit: cover; display: block; overflow: hidden; }
.q-main .cv.ph svg { width: 100%; height: 100%; }
.q-txt { display: grid; min-width: 0; flex: 1; }
.q-txt strong { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.q-txt span { color: var(--muted); font-size: .85rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.q-row.past { opacity: .55; }
.q-row.cur { background: linear-gradient(90deg, rgba(25, 195, 255, .16), rgba(31, 94, 255, .08)); }
.q-row.cur strong { color: var(--accent-2); }
.q-eq { display: flex; align-items: flex-end; gap: 2px; height: 16px; margin-right: 6px; }
.q-eq i { width: 3px; height: 60%; background: var(--accent-2); border-radius: 1px; }
@media (prefers-reduced-motion: no-preference) { body:not(.paused) .q-eq i { animation: qeq .5s ease-in-out infinite alternate; } .q-eq i:nth-child(2) { animation-delay: .15s; } .q-eq i:nth-child(3) { animation-delay: .3s; } }
@media (max-width: 900px) { #queue { top: auto; left: 0; width: auto; height: 82dvh; border-left: 0; border-top: 1px solid var(--line); border-radius: 20px 20px 0 0; } #queue header { padding-top: 18px; } }

/* Lyrics sheet, prettier: the cover blurred behind, a small cover in the header, big soft lines, faded edges. */
#lyrics { isolation: isolate; overflow: hidden; background: #05060a; }
#lyrics::before { content: ""; position: absolute; inset: -80px; z-index: -1; background: var(--art, none) center / cover, linear-gradient(160deg, #0d2a66, #05060a 70%); filter: blur(70px) saturate(1.6) brightness(.5); }
#lyrics::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(5, 6, 10, .35), rgba(5, 6, 10, .7)); }
#lyrics header { align-items: center; gap: 14px; border-bottom: 0; }
#lyrics header > div { flex: 1; }
.ly-cover { width: 52px; height: 52px; flex: none; border-radius: 8px; overflow: hidden; box-shadow: 0 6px 18px rgba(0, 0, 0, .55); }
.ly-cover .cv { width: 100%; height: 100%; object-fit: cover; display: block; }
.ly-cover .cv.ph svg { width: 100%; height: 100%; }
.ly-body { -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 7%, #000 82%, transparent 100%); mask-image: linear-gradient(180deg, transparent 0, #000 7%, #000 82%, transparent 100%); }
.ly { font-size: 1.5rem; font-weight: 700; line-height: 1.35; margin-bottom: 16px; letter-spacing: 0; }
p.ly { color: rgba(255, 255, 255, .86); }
button.ly { color: rgba(255, 255, 255, .32); }
button.ly.past { color: rgba(255, 255, 255, .5); }
button.ly:hover { color: rgba(255, 255, 255, .7); }
button.ly.now { color: #fff; text-shadow: 0 0 24px rgba(120, 200, 255, .45); }
@media (prefers-reduced-motion: no-preference) { button.ly { transition: color .3s, text-shadow .3s, transform .3s; } button.ly.now { transform: scale(1.03); } }
@media (max-width: 1179px) { .ly { font-size: 1.3rem; } }
.ly-tools { border-top-color: rgba(255, 255, 255, .12); }
/* « Jaquette au hasard »: preview */
.rc-img { display: block; width: min(100%, 320px); aspect-ratio: 1; margin: 6px auto 16px; border-radius: 14px; background: var(--raised); box-shadow: 0 16px 40px rgba(0, 0, 0, .6); }
@keyframes qeq { from { height: 25%; } to { height: 100%; } }
/* Middle tab: the SoundFlow logo opens the track that plays. Sidebar (large screens): a plain row. */
.tab-now { min-height: 44px; padding: 0 12px; display: flex; align-items: center; justify-content: flex-start; gap: 12px; border: 0; border-radius: 10px; background: none; color: var(--muted); font-family: var(--title); font-weight: 600; }
.tab-now img { width: 24px; height: 24px; }
.tab-now:hover { color: var(--ink); background: var(--surface); }
body.has-player .tab-now img { filter: drop-shadow(0 0 8px rgba(95, 216, 255, .7)); }
@media (max-width: 900px) {
  .tab-now { flex: 1; flex-direction: column; justify-content: center; gap: 0; min-height: 48px; padding: 0; border-radius: 50%; }
  .tab-now span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .tab-now img { width: 52px; height: 52px; margin-top: -18px; padding: 4px; border-radius: 50%; background: #0a0c12; box-shadow: 0 0 0 1px var(--line), 0 6px 18px rgba(0, 0, 0, .6); }
  .tab-now:hover { background: none; }
}
@media (prefers-reduced-motion: no-preference) { body.has-player:not(.paused) .tab-now img { animation: nowpulse 2.4s ease-in-out infinite; } }
@keyframes nowpulse { 50% { box-shadow: 0 0 0 1px var(--line), 0 0 18px 2px rgba(95, 216, 255, .55); } }
/* « Morceaux aimés » at the top of « Listes ». */
.liked-card { grid-template-columns: 64px 1fr; align-items: center; gap: 14px; margin-bottom: 12px; padding: 12px; max-width: 460px; }
.liked-card .heart-art { width: 64px; height: 64px; border-radius: 10px; }
.liked-card > span:last-child { display: grid; }
/* Mini player: « depuis le début » button, also on the phone (before the heart). */
@media (max-width: 760px) {
  #player [data-act="restart"] { order: 0; }
  #player .p-buttons button.icon { width: 38px; min-height: 38px; }
  #player .p-buttons button.icon svg { width: 20px; height: 20px; }
}
/* Tab bar of the phone, balanced: two tabs, the SoundFlow button exactly in the middle, two tabs. */
@media (max-width: 900px) {
  .top nav { display: grid; grid-template-columns: 1fr 1fr 76px 1fr 1fr; align-items: center; padding-inline: 4px; }
  .top nav a, .tab-now { flex: none; width: 100%; }
  .tab-now { justify-self: center; width: 76px; }
  .tab-now img { width: 58px; height: 58px; margin-top: -22px; }
}

/* ---------- 15 October 2026: « Liquid Glass » (iOS 26/27 way) for the mini player and the phone tab bar ---------- */
/* Glass: light coming through, a bright rim on top, a soft shine, a shadow underneath. Replaces the neon outline. */
#player, .top nav { isolation: isolate; }
#player {
  background: linear-gradient(135deg, rgba(255, 255, 255, .16), rgba(255, 255, 255, .05) 45%, rgba(120, 180, 255, .08));
  -webkit-backdrop-filter: blur(26px) saturate(1.9) brightness(1.08); backdrop-filter: blur(26px) saturate(1.9) brightness(1.08);
  border: 1px solid rgba(255, 255, 255, .22);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .45), inset 0 -1px 1px rgba(255, 255, 255, .08), inset 0 0 22px rgba(255, 255, 255, .05), 0 12px 34px rgba(0, 0, 0, .5);
}
#player::before { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; pointer-events: none;
  background: radial-gradient(120% 90% at 15% -30%, rgba(255, 255, 255, .28), transparent 55%), radial-gradient(80% 120% at 110% 130%, rgba(95, 216, 255, .14), transparent 60%); }
#player button.icon:hover { background: rgba(255, 255, 255, .1); }
#player input.seek::-webkit-slider-runnable-track { background: linear-gradient(90deg, #fff var(--p), rgba(255, 255, 255, .22) var(--p)); }
#player input.seek::-moz-range-track { background: rgba(255, 255, 255, .22); }

@media (max-width: 900px) {
  :root { --nav-h: 60px; --nav-b: max(8px, calc(env(safe-area-inset-bottom) - 12px)); }
  /* Tab bar: a floating glass capsule; the SoundFlow button sits inside it, nothing sticks out. */
  .top nav {
    left: 12px; right: 12px; bottom: var(--nav-b); height: var(--nav-h); padding: 4px 6px; border-radius: 30px;
    grid-template-columns: 1fr 1fr 64px 1fr 1fr;
    background: linear-gradient(135deg, rgba(255, 255, 255, .14), rgba(255, 255, 255, .04) 50%, rgba(120, 180, 255, .07));
    -webkit-backdrop-filter: blur(26px) saturate(1.9) brightness(1.06); backdrop-filter: blur(26px) saturate(1.9) brightness(1.06);
    border: 1px solid rgba(255, 255, 255, .2); border-top-color: rgba(255, 255, 255, .32);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35), 0 10px 30px rgba(0, 0, 0, .55);
  }
  .top nav a { min-height: 50px; border-radius: 24px; gap: 1px; font-size: .64rem; }
  .top nav a svg { width: 23px; height: 23px; }
  .top nav a[aria-current="page"] { color: #fff; background: rgba(255, 255, 255, .13); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .18); }
  .top nav a[aria-current="page"] svg { color: var(--accent-2); }
  .tab-now { width: 64px; min-height: 50px; border-radius: 50%; }
  .tab-now img { width: 46px; height: 46px; margin: 0; padding: 3px; background: rgba(5, 7, 12, .55); box-shadow: 0 0 0 1px rgba(255, 255, 255, .18), 0 4px 12px rgba(0, 0, 0, .45); }
  @keyframes nowpulse { 50% { box-shadow: 0 0 0 1px rgba(255, 255, 255, .25), 0 0 16px 2px rgba(95, 216, 255, .55); } }
  /* Mini player: a glass capsule just above the tab bar, with room between the two. */
  #player { left: 12px; right: 12px; bottom: calc(var(--nav-b) + var(--nav-h) + 10px); padding: 7px 10px 6px; gap: 2px 10px; border-radius: 24px; }
  #player .p-cover { width: 44px; height: 44px; border-radius: 10px; }
  #player input.p-seek { height: 10px; margin: 0 4px; }
  #lyrics { bottom: calc(var(--nav-b) + var(--nav-h) + 6px); }
  body.has-player main { padding-bottom: calc(var(--nav-b) + var(--nav-h) + 150px); }
  body.has-player .toast { bottom: calc(var(--nav-b) + var(--nav-h) + 96px); }
}
@media (max-width: 900px) and (max-height: 900px) { #lyrics { height: calc(100dvh - var(--nav-b) - var(--nav-h) - 70px - env(safe-area-inset-top)); } }

/* ---------- 16 October 2026: previous track in the mini player, albums ---------- */
@media (max-width: 760px) {
  #player [data-act="prev"] { display: inline-flex !important; }
  #player [data-act="restart"] { order: 0; } #player [data-act="prev"] { order: 1; } #player [data-act="toggle"] { order: 2; } #player [data-act="next"] { order: 3; } #player [data-act="likenow"] { order: 4; }
  #player .p-buttons button.icon { width: 34px; min-height: 36px; }
  #player .p-buttons button.icon svg { width: 19px; height: 19px; }
  #player button.icon.big { width: 38px; min-height: 38px; }
  #player { gap: 2px 8px; }
}
@media (max-width: 360px) { #player [data-act="likenow"] { display: none !important; } }
/* Albums */
.al-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 18px 14px; }
.al-card { display: grid; gap: 2px; color: var(--ink); text-decoration: none; min-width: 0; }
.al-card strong { font-family: var(--title); font-weight: 700; margin-top: 6px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.al-card .hint { font-size: .8rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.al-art { display: block; aspect-ratio: 1; border-radius: 12px; overflow: hidden; background: var(--raised); box-shadow: 0 8px 22px rgba(0, 0, 0, .5); }
.al-card:hover .al-art { transform: translateY(-2px); }
@media (prefers-reduced-motion: no-preference) { .al-art { transition: transform .2s; } }
.al-art .cv, .al-mosaic { width: 100%; height: 100%; display: block; object-fit: cover; }
.al-art .cv.ph svg, .al-hot .cv.ph svg, .lh-art .cv.ph svg { width: 100%; height: 100%; }
.al-mosaic { display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; }
.al-mosaic img { width: 100%; height: 100%; object-fit: cover; display: block; }
.al-hot { grid-template-columns: 26px 52px minmax(0, 1fr) auto; color: var(--ink); text-decoration: none; }
.al-hot .cover { overflow: hidden; display: block; }
.al-hot .cover .cv, .al-hot .al-mosaic { width: 100%; height: 100%; object-fit: cover; }
.al-hot .stat { width: 40px; min-height: 40px; padding: 0; justify-content: center; }
.al-no { min-width: 22px; text-align: center; color: var(--muted); font-variant-numeric: tabular-nums; order: -1; }
.al-tracks .track { grid-template-columns: 22px 52px minmax(0, 1fr) repeat(6, auto); }
@media (max-width: 640px) { .al-tracks .track { grid-template-columns: 18px 48px minmax(0, 1fr) repeat(6, auto); gap: 4px 8px; } }
.al-choices { display: grid; gap: 6px; margin: 10px 0 14px; max-height: 50vh; overflow-y: auto; }
.al-choices .hint { font-size: .8rem; margin-left: 4px; }
.selbar { flex-wrap: wrap; }
@media (max-width: 640px) {
  .al-tracks .track .stat { padding: 4px 5px; }
  .al-tracks .track .t-count { display: none; }
  .al-tracks .track:has([data-act="almove"]) .stat.heart { display: none; }
}

/* ---------- 17 October 2026: Accueil the Apple Music way (SoundFlow colours), album tools ---------- */
.am-top { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; }
.am-top h1 { margin: 0; }
.am-top .primary { flex: none; }
/* Big cards that slide: the cover blurred behind, title over a dark fade, a round play button. */
.shelf.am-cards { grid-auto-columns: min(520px, 82vw); gap: 16px; padding-bottom: 8px; }
.am-card { position: relative; isolation: isolate; overflow: hidden; scroll-snap-align: start; display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-rows: auto auto 1fr; align-content: start; column-gap: 16px; aspect-ratio: 16 / 10; padding: 20px 20px 18px; border-radius: 22px; color: #fff; text-decoration: none;
  background: linear-gradient(135deg, #1f5eff, #0a1a5c 70%); border: 1px solid rgba(255, 255, 255, .1); box-shadow: 0 20px 50px rgba(0, 0, 0, .5); }
.am-card::before { content: ""; position: absolute; inset: -30px; z-index: -2; background: var(--art, none) center / cover; filter: blur(34px) saturate(1.6); opacity: .8; }
.am-card::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(160deg, rgba(25, 195, 255, .25), rgba(5, 8, 20, .2) 40%, rgba(3, 5, 14, .85)); }
.am-card .eyebrow { grid-column: 1; color: rgba(255, 255, 255, .85); margin: 0 0 6px; }
.am-card h3 { grid-column: 1; margin: 0; font: 900 clamp(1.3rem, 4.5vw, 1.9rem)/1.1 var(--title); text-transform: uppercase; overflow-wrap: anywhere; }
.am-card .am-sub { grid-column: 1; margin: 4px 0 0; color: rgba(255, 255, 255, .78); font-size: .92rem; }
.am-card .am-cover { grid-column: 2; grid-row: 1 / 4; align-self: end; width: clamp(96px, 34%, 170px); aspect-ratio: 1; border-radius: 14px; overflow: hidden; box-shadow: 0 16px 40px rgba(0, 0, 0, .6); }
.am-cover .cv, .am-cover .al-mosaic { width: 100%; height: 100%; object-fit: cover; display: block; }
.am-cover .cv.ph svg { width: 100%; height: 100%; }
.am-play { position: absolute; left: 20px; bottom: 18px; width: 52px; height: 52px; min-height: 0; padding: 0; border-radius: 50%; border: 0; background: #fff; color: #0a1a5c; box-shadow: 0 8px 24px rgba(0, 0, 0, .45); }
.am-play svg { width: 24px; height: 24px; margin-left: 3px; }
.am-play:hover { transform: scale(1.06); }
@media (prefers-reduced-motion: no-preference) { .am-play { transition: transform .15s; } }
.am-head { margin-top: 30px; }
.am-head h2 { display: inline-flex; align-items: center; gap: 8px; text-transform: none; letter-spacing: 0; font-size: 1.35rem; font-weight: 800; }
.am-head h2 svg { width: 20px; height: 20px; color: var(--accent-2); }
.am-more { margin-left: auto; color: var(--accent-2); font-weight: 600; font-size: .9rem; text-decoration: none; }
.am-pins { margin-top: 0; }
.am-chart .rank { color: var(--accent-2); }
.al-tile { color: var(--ink); text-decoration: none; }
.al-tile .cover { position: relative; overflow: hidden; display: block; }
.al-tile .cover .cv, .al-tile .al-mosaic { width: 100%; height: 100%; object-fit: cover; }
.al-tile .glyph { position: absolute; border: 0; padding: 0; min-height: 0; }
.am-rank { position: absolute; left: 8px; top: 8px; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--flame); color: #fff; font: 900 .95rem/1 var(--title); box-shadow: 0 4px 12px rgba(0, 0, 0, .5); }
@media (max-width: 640px) { .am-card { aspect-ratio: 4 / 3; padding: 16px; } .am-play { left: 16px; bottom: 14px; width: 46px; height: 46px; } .am-head h2 { font-size: 1.15rem; } }
/* « Par album » headings in the list of every track */
h3.grp { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 20px 4px 6px; font: 800 1rem/1.2 var(--title); }
h3.grp a { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; }
h3.grp a .cv, h3.grp a .al-mosaic { width: 34px; height: 34px; border-radius: 6px; object-fit: cover; overflow: hidden; display: inline-grid; }
h3.grp .hint { font: 400 .8rem/1 system-ui, sans-serif; }
/* Choice of the tracks of an album */
.picker .search { margin: 8px 0; }
.pk-list { display: grid; gap: 2px; max-height: min(50vh, 420px); overflow-y: auto; margin: 4px -6px 12px; padding: 0 2px; }
.pk-row { display: flex; align-items: center; justify-content: flex-start; gap: 10px; min-height: 0; padding: 6px 8px; border: 0; border-radius: 10px; background: none; text-align: left; }
.pk-row:hover { background: rgba(255, 255, 255, .06); }
.pk-row[aria-pressed="true"] { background: linear-gradient(90deg, rgba(25, 195, 255, .2), rgba(31, 94, 255, .1)); }
.pk-row .cv { width: 40px; height: 40px; flex: none; border-radius: 6px; object-fit: cover; overflow: hidden; display: block; }
.pk-row .cv.ph svg { width: 100%; height: 100%; }
.pk-n { flex: none; display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; border: 1.5px solid var(--line); font: 800 .78rem/1 var(--title); color: #fff; }
.pk-row[aria-pressed="true"] .pk-n { background: var(--flame); border-color: transparent; }
.pk-count { margin-right: auto; align-self: center; }
.al-sort { margin: 6px 0 4px; align-items: center; }
/* Big cards: text on the left, the cover pinned bottom right (no grid: it fights with the sliding width). */
.am-card { display: block; }
.am-card .eyebrow, .am-card h3, .am-card .am-sub { max-width: 62%; }
.am-card .am-cover { position: absolute; right: 18px; bottom: 18px; width: 36%; max-width: 180px; }
@media (max-width: 640px) { .am-card .am-cover { right: 14px; bottom: 14px; width: 40%; } }

/* =====================================================================================================
   18 October 2026: new interface, the Apple Music way, SoundFlow colours (black, electric blue, blue gradient).
   Kept last: it wins over the older rules above.
   ===================================================================================================== */
:root { --text: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, system-ui, sans-serif; --side: 248px; --bar: 64px; }
body { font-family: var(--text); -webkit-font-smoothing: antialiased; }
/* Calmer titles: no capitals everywhere */
h1 { text-transform: none; font-size: clamp(1.8rem, 4.4vw, 2.3rem); letter-spacing: -.01em; }
h2 { text-transform: none; letter-spacing: 0; font-size: 1.3rem; }
.n-title, .st-title, .am-card h3 { text-transform: none; }
.ttl { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 4px; }
.ttl h1 { margin: 0; }
.greet { color: var(--muted); font-size: .92rem; margin: 2px 0 16px; }
.am-head { margin: 30px 0 12px; }
.am-head h2 { font-size: 1.3rem; }
.am-more { font-size: .88rem; }

/* ---------- Side column (wide screens) ---------- */
.top { width: var(--side); gap: 6px; padding: 18px 12px 14px; background: rgba(9, 11, 18, .82); -webkit-backdrop-filter: blur(30px) saturate(1.5); backdrop-filter: blur(30px) saturate(1.5); border-right: 1px solid var(--line); overflow-y: auto; scrollbar-width: none; }
.logo { text-transform: none; letter-spacing: .01em; font-size: 1.1rem; padding: 2px 8px 10px; }
.logo img { width: 28px; height: 28px; border-radius: 8px; }
.side-search { position: relative; display: block; margin: 0 2px 6px; }
.side-search svg { position: absolute; left: 10px; top: 50%; transform: translateY(-50%); width: 16px; height: 16px; color: var(--muted); pointer-events: none; }
.side-search input { width: 100%; min-height: 0; height: 34px; padding: 0 10px 0 32px; border-radius: 9px; border: 0; background: rgba(255, 255, 255, .08); font-size: .9rem; }
.top nav { gap: 1px; }
.top nav h6 { margin: 14px 10px 4px; font: 700 .7rem var(--text); color: #626b7c; text-transform: uppercase; letter-spacing: .08em; }
.top nav a { min-height: 34px; padding: 0 10px; gap: 11px; border-radius: 8px; color: #d4d9e2; font-family: var(--text); font-weight: 500; font-size: .93rem; }
.top nav a svg { width: 19px; height: 19px; color: var(--accent-2); flex: none; }
.top nav a span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.top nav a:hover { background: rgba(255, 255, 255, .06); color: #fff; }
.top nav a[aria-current="page"] { background: rgba(255, 255, 255, .11); color: #fff; box-shadow: none; }
.top nav a[aria-current="page"] svg { color: var(--accent-2); }
.top nav a .ct { margin-left: auto; color: #626b7c; font-weight: 500; font-size: .78rem; }
.top nav a.sub svg { color: var(--muted); }
.top nav .nav-more { margin-top: 8px; }
.top .me { margin-top: auto; display: flex; align-items: center; gap: 10px; padding: 8px; border-radius: 10px; background: rgba(255, 255, 255, .04); }
.top .me .who { padding: 0; flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--ink); }
.top .me button { min-height: 30px; padding: 2px 10px; font-size: .78rem; }
.avatar, .m-avatar { display: grid; place-items: center; width: 30px; height: 30px; flex: none; border-radius: 50%; background: var(--flame); color: #fff; font: 800 .82rem var(--title); text-decoration: none; }
.m-avatar { display: none; }
.tab-now { display: none; }
main { max-width: 1120px; margin-left: var(--side); padding: 30px 36px 60px; }
@media (min-width: 1500px) { main { margin-inline: calc(var(--side) + (100vw - var(--side) - 1120px) / 2) auto; } }

/* ---------- Player at the top, centred (computer, like Music on the Mac) ---------- */
@media (min-width: 901px) {
  html:not(.touch) #player { left: var(--side); right: 0; top: 0; bottom: auto; height: var(--bar); padding: 0 18px; border-radius: 0; border: 0; border-bottom: 1px solid var(--line); box-shadow: none;
    display: grid; grid-template-columns: auto minmax(0, 1fr) auto; grid-template-areas: none; gap: 18px; align-items: center; background: rgba(9, 11, 18, .72); }
  html:not(.touch) #player::before { display: none; }
  html:not(.touch) body.has-player main { padding-top: calc(var(--bar) + 28px); padding-bottom: 60px; }
  html:not(.touch) body.has-lyrics #player { right: 0; }
  html:not(.touch) .p-left, html:not(.touch) .p-right { display: flex; align-items: center; gap: 2px; }
  html:not(.touch) #player button.icon { width: 36px; min-height: 36px; }
  html:not(.touch) #player button.icon svg { width: 20px; height: 20px; }
  html:not(.touch) #player button.icon.big { width: 40px; min-height: 40px; background: none; color: var(--ink); margin: 0 2px; }
  html:not(.touch) #player button.icon.big svg { width: 24px; height: 24px; }
  html:not(.touch) #player button.icon.small { color: var(--muted); }
  html:not(.touch) #player button.icon.small[aria-pressed="true"] { color: var(--accent-2); background: none; }
  html:not(.touch) .p-lcd { justify-self: center; width: min(560px, 100%); height: 48px; display: grid; grid-template-columns: 48px minmax(0, 1fr); grid-template-rows: 1fr auto; border-radius: 9px; overflow: hidden; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .08); }
  html:not(.touch) .p-lcd .p-cover { grid-row: 1 / 3; width: 48px; height: 48px; border-radius: 0; box-shadow: none; }
  html:not(.touch) .p-lcd .p-info { min-height: 0; justify-items: center; text-align: center; padding: 0 60px; align-content: center; }
  html:not(.touch) .p-title { font-family: var(--text); font-weight: 600; font-size: .86rem; }
  html:not(.touch) .p-artist { font-size: .76rem; }
  html:not(.touch) .p-track { position: relative; display: flex; align-items: center; height: 10px; }
  html:not(.touch) .p-track .p-time, html:not(.touch) .p-track .p-dur { position: absolute; top: -26px; font-size: .68rem; color: var(--muted); }
  html:not(.touch) .p-track .p-time { left: 8px; } html:not(.touch) .p-track .p-dur { right: 8px; }
  html:not(.touch) .p-track input.seek { height: 10px; }
  html:not(.touch) .p-track input.seek::-webkit-slider-runnable-track { height: 3px; border-radius: 0; background: linear-gradient(90deg, var(--accent-2), var(--accent) var(--p), rgba(255, 255, 255, .12) var(--p)); }
  html:not(.touch) .p-track input.seek::-moz-range-track { height: 3px; background: rgba(255, 255, 255, .12); }
  html:not(.touch) .p-track input.seek::-moz-range-progress { height: 3px; background: var(--accent-2); }
  html:not(.touch) .p-vol { width: 90px; margin-left: 6px; }
  html:not(.touch) #lyrics, html:not(.touch) #queue { top: var(--bar); }
  html:not(.touch) body.has-player #lyrics { padding-bottom: 0; }
}
@media (min-width: 901px) and (max-width: 1180px) { html:not(.touch) .p-vol, html:not(.touch) #player button.mix { display: none; } html:not(.touch) .p-lcd .p-info { padding: 0 44px; } }

/* ---------- iPad and touch screens wider than a phone: glass mini player floating at the bottom ---------- */
@media (min-width: 901px) {
  html.touch #player { left: calc(var(--side) + (100vw - var(--side)) / 2 - 290px); right: auto; width: 580px; bottom: calc(16px + env(safe-area-inset-bottom)); top: auto; height: auto; padding: 8px 12px 6px; border-radius: 24px;
    display: grid; grid-template-columns: 48px minmax(0, 1fr) auto auto; grid-template-areas: "cover info left right" "wave wave wave wave"; gap: 2px 10px; align-items: center; }
  html.touch .p-lcd, html.touch .p-track { display: contents; }
  html.touch .p-cover { grid-area: cover; width: 48px; height: 48px; border-radius: 10px; }
  html.touch .p-info { grid-area: info; } html.touch .p-left { grid-area: left; display: flex; align-items: center; } html.touch .p-right { grid-area: right; display: flex; align-items: center; }
  html.touch #player input.p-seek { grid-area: wave; height: 10px; }
  html.touch .p-time, html.touch .p-dur, html.touch .p-vol, html.touch #player [data-act="shufflemode"], html.touch #player [data-act="repeat"], html.touch #player [data-act="lyrics"], html.touch #player [data-act="queue"], html.touch #player [data-act="settings"], html.touch #player button.mix { display: none !important; }
  html.touch #player button.icon { width: 40px; min-height: 40px; }
  html.touch #player button.icon.big { width: 42px; min-height: 42px; }
  html.touch body.has-player main { padding-bottom: 130px; }
}

/* ---------- Phones: tab bar and glass mini player (new player layout) ---------- */
@media (max-width: 900px) {
  .top { position: static; height: 0; padding: 0; border: 0; background: none; overflow: visible; -webkit-backdrop-filter: none; backdrop-filter: none; }  /* a filter here would trap the fixed tab bar */
  .top .logo, .top .me, .side-search, .top nav h6, .top nav .side-only { display: none !important; }
  .top nav .tab-now { display: flex; }
  .top nav { z-index: 12; }  /* above the page (the menu column is no longer a fixed layer on phones) */
  .top nav { grid-template-columns: 1fr 1fr 64px 1fr 1fr; }
  .top nav a { font-family: var(--text); font-size: .64rem; font-weight: 600; min-height: 50px; padding: 2px; gap: 1px; }
  .top nav a svg { color: inherit; }
  .top nav a.in-group { color: #fff; background: rgba(255, 255, 255, .13); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .18); }
  .top nav a.in-group svg { color: var(--accent-2); }
  .top nav .nav-more { margin-top: 0; }
  main { margin: 0 auto; padding-top: calc(18px + env(safe-area-inset-top)); }
  .m-avatar { display: grid; position: absolute; top: calc(20px + env(safe-area-inset-top)); right: 16px; width: 34px; height: 34px; z-index: 2; }
  .ttl { padding-right: 46px; }
  .ttl .am-shuffle { display: none; }
  #player { grid-template-columns: 44px minmax(0, 1fr) auto auto; grid-template-areas: "cover info left right" "wave wave wave wave"; }
  .p-lcd, .p-track { display: contents; }
  #player .p-cover { grid-area: cover; } #player .p-info { grid-area: info; }
  #player .p-left { grid-area: left; display: flex; align-items: center; } #player .p-right { grid-area: right; display: flex; align-items: center; }
  #player input.p-seek { grid-area: wave; }
  #player .p-time, #player .p-dur, #player .p-vol, #player [data-act="shufflemode"], #player [data-act="repeat"], #player [data-act="lyrics"], #player [data-act="queue"], #player [data-act="settings"], #player button.mix { display: none !important; }
  #player [data-act="prev"] { display: inline-flex !important; }
  #player .p-left button.icon, #player .p-right button.icon { width: 34px; min-height: 36px; }
  #player .p-left button.icon svg, #player .p-right button.icon svg { width: 19px; height: 19px; }
  #player .p-left button.icon.big { width: 38px; min-height: 38px; }
}
@media (max-width: 360px) { #player [data-act="likenow"], #player [data-act="restart"] { display: none !important; } }

/* ---------- Android: Material 3 (full-width navigation bar with a pill, mini player as a card) ---------- */
@media (max-width: 900px) {
  html.android .top nav { left: 0; right: 0; bottom: 0; height: calc(72px + env(safe-area-inset-bottom)); padding: 8px 4px calc(8px + env(safe-area-inset-bottom)); border-radius: 0; border: 0; border-top: 1px solid var(--line); background: #0f1320; box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; align-items: start; }
  html.android .top nav a { gap: 4px; font-family: Roboto, var(--text); font-weight: 500; font-size: .7rem; background: none !important; box-shadow: none !important; }
  html.android .top nav a svg { width: 56px; height: 30px; padding: 4px 16px; border-radius: 15px; box-sizing: border-box; }
  html.android .top nav a[aria-current="page"] svg, html.android .top nav a.in-group svg { background: rgba(47, 123, 255, .32); color: #cfe0ff; }
  html.android .tab-now img { border-radius: 16px; background: var(--flame); width: 52px; height: 52px; padding: 6px; }
  html.android #player { left: 8px; right: 8px; bottom: calc(80px + env(safe-area-inset-bottom)); border-radius: 16px; background: #1a2238; border: 0; box-shadow: 0 6px 18px rgba(0, 0, 0, .5); -webkit-backdrop-filter: none; backdrop-filter: none; }
  html.android #player::before { display: none; }
  html.android body, html.android h1, html.android h2 { font-family: Roboto, var(--text); }
  html.android button, html.android .btn, html.android .chip { border-radius: 20px; }
  html.android .chip.on, html.android .chips [aria-pressed="true"] { background: rgba(47, 123, 255, .32); color: #dbe7ff; border-color: rgba(95, 150, 255, .5); }
  html.android .tile .cover, html.android .am-pic { border-radius: 20px; }
  html.android #lyrics { bottom: calc(76px + env(safe-area-inset-bottom)); }
}

/* ---------- Home ---------- */
.am-chips { margin: 0 0 16px; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
.chip { flex: none; display: inline-flex; align-items: center; min-height: 34px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line); background: rgba(255, 255, 255, .05); color: #dfe4ec; font-size: .86rem; text-decoration: none; }
.chip.on { background: var(--flame); border-color: transparent; color: #fff; font-weight: 600; }
.shelf.am-hero { grid-auto-columns: minmax(300px, 420px); gap: 18px; }
.am-card2 { scroll-snap-align: start; min-width: 0; }
.am-card2 .eyebrow { margin: 0 0 4px; color: var(--accent-2); font: 700 .7rem var(--text); letter-spacing: .07em; }
.am-card2 h3 { margin: 0; font: 700 1.05rem var(--title); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.am-card2 .am-sub { margin: 0 0 10px; color: var(--muted); font-size: .86rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.am-pic { position: relative; isolation: isolate; display: block; aspect-ratio: 16 / 10; border-radius: 16px; overflow: hidden; background: linear-gradient(135deg, #1f5eff, #0a1a5c 70%); box-shadow: 0 18px 40px rgba(0, 0, 0, .45); color: #fff; text-decoration: none; }
.am-pic::before { content: ""; position: absolute; inset: -30px; z-index: -1; background: var(--art, none) center / cover; filter: blur(28px) saturate(1.5); opacity: .9; }
.am-pic .am-cover { position: absolute; inset: 14% auto auto 50%; transform: translateX(-50%); width: 46%; aspect-ratio: 1; border-radius: 12px; overflow: hidden; box-shadow: 0 16px 40px rgba(0, 0, 0, .55); }
.am-shade { position: absolute; inset: auto 0 0 0; display: flex; align-items: flex-end; justify-content: space-between; gap: 10px; padding: 40px 14px 12px; background: linear-gradient(transparent, rgba(3, 5, 14, .85)); }
.am-shade > span { font-size: .84rem; color: rgba(255, 255, 255, .85); }
.am-shade .am-play { position: static; width: 44px; height: 44px; }
.chart { display: grid; grid-auto-flow: column; grid-template-rows: repeat(3, auto); grid-auto-columns: minmax(300px, 1fr); column-gap: 26px; overflow-x: auto; scrollbar-width: none; }
.crow { display: grid; grid-template-columns: 48px 24px minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 7px 0; border-bottom: 1px solid var(--line); cursor: pointer; min-width: 0; }
.crow .cover { width: 48px; height: 48px; border-radius: 6px; }
.crow .glyph { width: 100%; height: 100%; border-radius: 0; background: rgba(0, 0, 0, .5); box-shadow: none; opacity: 0; }
.crow:hover .glyph, .crow.on .glyph { opacity: 1; }
.crow .glyph svg { width: 18px; height: 18px; }
.crow .n { font: 800 1rem var(--title); color: var(--accent-2); text-align: center; }
.crow .c-body { display: grid; min-width: 0; }
.crow .t-title { font-weight: 600; font-size: .92rem; } .crow .t-sub { font-size: .8rem; margin: 0; }
.tile.round { justify-items: center; text-align: center; min-height: 0; padding: 0; border: 0; background: none; }
.tile.round .cover { border-radius: 50%; }
.shelf.artists-shelf { grid-auto-columns: 132px; }
.shelf.artists-shelf .tile .cover { width: 120px; height: 120px; }
@media (max-width: 640px) {
  .shelf.am-hero { grid-auto-columns: 84%; }
  .chart { grid-auto-columns: 88%; margin-inline: -16px; padding-inline: 16px; }
  .shelf.artists-shelf { grid-auto-columns: 104px; } .shelf.artists-shelf .tile .cover { width: 96px; height: 96px; }
}

/* ---------- Bibliothèque, albums, artists ---------- */
.libl { list-style: none; margin: 10px 0 0; padding: 0; }
.libl li a { display: flex; align-items: center; gap: 14px; padding: 13px 6px; border-bottom: 1px solid var(--line); color: var(--ink); text-decoration: none; font-size: 1.05rem; }
.libl li a > svg:first-child { width: 22px; height: 22px; color: var(--accent-2); }
.libl li a:hover { background: rgba(255, 255, 255, .03); }
.libl .ct { margin-left: auto; color: #626b7c; font-size: .86rem; }
.libl .ch { color: #626b7c; }
.grid2 { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 20px 16px; }
.grid2 .tile .cover { width: 100%; height: auto; aspect-ratio: 1; }
.artists-grid .tile .cover { width: 100%; }
@media (max-width: 640px) { .grid2 { grid-template-columns: 1fr 1fr; gap: 18px 12px; } }

/* ---------- Album page: big cover, artist in blue, numbered table ---------- */
.alb { display: grid; grid-template-columns: 270px minmax(0, 1fr); gap: 30px; align-items: end; margin: 4px 0 24px; }
.alb-art { width: 270px; aspect-ratio: 1; border-radius: 12px; overflow: hidden; box-shadow: 0 24px 60px rgba(0, 0, 0, .6); background: var(--raised); }
.alb-art .cv, .alb-art .al-mosaic { width: 100%; height: 100%; object-fit: cover; }
.alb-art .cv.ph svg { width: 100%; height: 100%; }
.alb h1 { margin: 0; font-size: 2rem; }
.alb-who { display: inline-block; min-height: 0; padding: 0; border: 0; background: none; color: var(--accent-2); font: 700 1.2rem var(--title); margin: 4px 0; }
.alb-who:hover { text-decoration: underline; }
.alb-meta { margin: 0 0 14px; color: var(--muted); font-size: .8rem; text-transform: uppercase; letter-spacing: .05em; }
.alb-btns button, .alb-btns .btn { border-radius: 9px; }
.alb-btns button:not(.primary):not(.icon) { color: var(--accent-2); }
.btn.icon { width: 44px; padding: 0; }
.trows { margin-top: 6px; }
.trow-head { display: grid; grid-template-columns: 40px minmax(0, 1fr) auto 60px 40px; gap: 10px; padding: 8px 10px; border-bottom: 1px solid var(--line); color: #626b7c; font: 600 .72rem var(--text); text-transform: uppercase; letter-spacing: .06em; }
.trow-head span:nth-child(4) { text-align: right; }
.trow { display: grid; grid-template-columns: 40px minmax(0, 1fr) auto 60px 40px; gap: 10px; align-items: center; padding: 6px 10px; border-radius: 8px; cursor: pointer; }
.trow:nth-child(odd) { background: rgba(255, 255, 255, .025); }
.trow:hover { background: rgba(255, 255, 255, .06); }
.trow .tn { position: relative; text-align: center; color: #626b7c; font-variant-numeric: tabular-nums; }
.trow .tn .eq { display: none; }
.trow.on .tn b { display: none; } .trow.on .tn .eq { display: inline-flex; }
.trow.on:not(.playing) .eq i { animation: none; height: 40%; }
.trow .tt { display: grid; min-width: 0; }
.trow .t-title { font-size: .93rem; color: #e6eaf1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.trow.on .t-title { color: var(--accent-2); font-weight: 600; }
.trow .t-sub { font-size: .8rem; margin: 0; }
.trow .tx { display: flex; align-items: center; gap: 2px; }
.trow .tx .stat { padding: 4px 6px; }
.trow .td { text-align: right; color: var(--muted); font-size: .86rem; font-variant-numeric: tabular-nums; }
.trow .heart { opacity: 0; } .trow:hover .heart, .trow .heart[aria-pressed="true"] { opacity: 1; }
.eq { display: inline-flex; gap: 2px; align-items: flex-end; height: 12px; }
.eq i { width: 3px; height: 60%; background: var(--accent-2); border-radius: 1px; }
@media (prefers-reduced-motion: no-preference) { .eq i { animation: qeq .6s ease-in-out infinite alternate; } .eq i:nth-child(2) { animation-delay: .2s; } .eq i:nth-child(3) { animation-delay: .4s; } }
.alb-foot { color: var(--muted); font-size: .82rem; margin: 14px 10px 0; }
@media (max-width: 700px) {
  .alb { grid-template-columns: 1fr; justify-items: center; text-align: center; gap: 14px; }
  .alb-art { width: min(68vw, 260px); }
  .alb-btns { justify-content: center; }
  .trow-head { display: none; }
  .trow { grid-template-columns: 28px minmax(0, 1fr) auto 44px 32px; padding: 10px 4px; gap: 6px; }
  .trow:nth-child(odd) { background: none; } .trow { border-bottom: 1px solid var(--line); border-radius: 0; }
  .trow .heart { opacity: 1; }
}

/* ---------- Now playing on wide screens: cover left, everything else right ---------- */
@media (min-width: 901px) {
  #now { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-rows: auto 1fr auto auto auto auto auto 1fr;
    grid-template-areas: "close close" ". ." "art info" "art wave" "art times" "art buttons" "art more" ". ."; column-gap: 56px; row-gap: 14px; justify-items: start; padding: 24px 56px; }
  .n-close { grid-area: close; } .n-art { grid-area: art; justify-self: end; width: min(440px, 38vw, 62vh); }
  .n-info { grid-area: info; justify-items: start; text-align: left; } .n-wave { grid-area: wave; max-width: 520px; }
  .n-times { grid-area: times; max-width: 520px; margin-top: -8px; } .n-buttons { grid-area: buttons; } .n-more { grid-area: more; justify-content: flex-start; }
  .n-title { font-size: 1.9rem; }
}
/* Pressing: a slight push, as on iOS */
.tile, .crow, .am-pic, .libl li a, .chip, .trow { transition: transform .15s ease, background-color .15s; }
.tile:active, .crow:active, .am-pic:active, .chip:active, .trow:active { transform: scale(.98); }
@media (prefers-reduced-motion: reduce) { .tile, .crow, .am-pic, .libl li a, .chip, .trow { transition: none; } }
.m-only { display: none; }
@media (max-width: 900px) { .m-only { display: flex; } }
