/* minimusic: the kdtv look. Dark ground, one teal accent, colors only when they mean something. */
@font-face { font-family: "fa"; src: url(/fonts/fa-solid-900.woff2) format("woff2"); font-weight: 900; font-display: block; }
@font-face { font-family: "far"; src: url(/fonts/fa-regular-400.woff2) format("woff2"); font-weight: 400; font-display: block; }

:root {
  --bg: #0d1117; --fg: #e6edf3; --dim: #8b949e; --border: #30363d; --accent: #5eead4;
  --sel: #1c2a2a; --ok: #3fb950; --warn: #ffa657; --bad: #ff7b72; --raise: #161b22;
  --safe-b: env(safe-area-inset-bottom, 0px); --safe-t: env(safe-area-inset-top, 0px);
  color-scheme: dark;
}
* { box-sizing: border-box; margin: 0; }
html, body { background: var(--bg); color: var(--fg); }
body { font: 15px/1.45 Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; -webkit-font-smoothing: antialiased; -webkit-tap-highlight-color: transparent; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
input { font: inherit; color: inherit; }
img { display: block; }
[hidden] { display: none !important; }
* { scrollbar-width: thin; scrollbar-color: var(--border) transparent; }
.fa, .far { font-family: "fa"; font-weight: 900; font-style: normal; display: inline-block; line-height: 1; width: 1.25em; text-align: center; flex: none; }
.far { font-family: "far"; font-weight: 400; }

/* ---------------------------------------------------------------- page */
.wrap { max-width: 1080px; margin: 0 auto; padding: calc(18px + var(--safe-t)) 32px calc(90px + var(--safe-b)); display: flex; flex-direction: column; gap: 24px; }
body.playing .wrap { padding-bottom: calc(160px + var(--safe-b)); }
body.noscroll { overflow: hidden; }
.view { display: flex; flex-direction: column; gap: 24px; }
.top { display: flex; align-items: center; gap: 12px; }
.brand { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 18px; }
.brand .fa { color: var(--accent); }
.top-r { margin-left: auto; display: flex; align-items: center; gap: 6px; }
.ib { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; color: var(--dim); font-size: 16px; flex: none; }
.ib:hover { color: var(--fg); background: var(--raise); }
.ib.on { color: var(--accent); }
.me { width: 36px; height: 36px; border-radius: 50%; border: 2px solid var(--accent); background: var(--sel); color: var(--accent); font-weight: 700; }
.search { display: flex; align-items: center; gap: 10px; height: 48px; padding: 0 6px 0 14px; border: 1px solid var(--border); border-radius: 12px; color: var(--dim); margin-top: -8px; background: var(--raise); }
.search:focus-within { border-color: var(--accent); }
.search .jp-btn { flex: none; width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; overflow: hidden; }
.search .jp-btn:hover { background: var(--sel); }
.search .jp-btn img { width: 26px; height: auto; }
.ask { display: flex; align-items: center; gap: 12px; width: 100%; padding: 10px 12px; border: 1px solid var(--accent); border-radius: 12px; background: var(--sel); text-align: left; margin-bottom: 14px; }
.ask img { flex: none; width: 30px; height: auto; }
.ask b { color: var(--accent); font-weight: 600; }
.ask small { display: block; color: var(--dim); font-size: 12px; margin-top: 2px; }
.search input { flex: 1; min-width: 0; border: 0; outline: 0; background: none; color: var(--fg); }

/* moods */
.moods { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 16px 0 14px; border: 1px solid var(--border); border-radius: 999px; color: var(--dim); font-size: 15px; white-space: nowrap; flex: none; }
.chip:hover { color: var(--fg); border-color: var(--dim); }
.chip.on { color: var(--accent); border-color: var(--accent); background: var(--sel); }

/* Discover / Trending switch (phones only) */
.seg { display: none; }
.new-tag { display: inline-block; margin-right: 6px; padding: 0 5px; border: 1px solid var(--accent); border-radius: 6px; font-size: 10px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--accent); vertical-align: 1px; }
.kind { font-size: 11px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--dim); }
.kind.on { color: var(--accent); }

/* the two lists */
.lists { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 48px; }
.lhead { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; min-height: 30px; }
.lhead .kind { color: var(--fg); }
.ai { border: 1px solid var(--accent); color: var(--accent); border-radius: 5px; font-size: 10px; font-weight: 700; padding: 2px 5px; letter-spacing: .04em; }
.lvl { margin-left: auto; font-size: 13px; color: var(--dim); display: flex; align-items: center; gap: 6px; height: 30px; padding: 0 10px; border: 1px solid var(--border); border-radius: 8px; }
.lvl:hover { color: var(--fg); }
.src { margin-left: auto; font-size: 13px; color: var(--dim); }

.row { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto auto; gap: 12px; align-items: center; padding: 8px 10px; margin: 0 -10px; border-radius: 10px; cursor: pointer; }
.row.ranked { grid-template-columns: 22px 44px minmax(0, 1fr) auto auto; }
.row:hover { background: var(--raise); }
.row.on { background: var(--sel); }
.row.on .t { color: var(--accent); }
.rank { color: var(--dim); font-variant-numeric: tabular-nums; text-align: right; font-size: 14px; }
.cov { width: 44px; height: 44px; border-radius: 6px; background: var(--raise); border: 1px solid var(--border); object-fit: cover; display: grid; place-items: center; color: var(--dim); font-size: 13px; font-weight: 600; overflow: hidden; flex: none; }
img.cov { border: 0; }
.t { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.a { color: var(--dim); font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.liked, .liked:hover { color: var(--bad); }
.fam { display: flex; align-items: center; gap: 3px; color: var(--bad); font-size: 11px; }
.fam b { width: 20px; height: 20px; border-radius: 50%; border: 1px solid var(--border); color: var(--fg); display: grid; place-items: center; font-size: 10px; }
.hint { color: var(--dim); font-size: 14px; padding: 8px 0; line-height: 1.6; }
.spin { display: inline-block; width: 14px; height: 14px; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; animation: spin .7s linear infinite; vertical-align: -2px; }
@keyframes spin { to { transform: rotate(360deg); } }
.btn { display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 16px; border: 1px solid var(--border); border-radius: 10px; font-size: 14px; font-weight: 600; white-space: nowrap; }
.btn:hover { border-color: var(--dim); }
.btn.go { border-color: var(--accent); color: var(--accent); }

/* player: always on */
.dock { position: fixed; left: 0; right: 0; bottom: 0; z-index: 10; background: var(--raise); border-top: 1px solid var(--border); }
.bar { position: relative; display: flex; align-items: center; gap: 20px; padding: 10px 32px; border-bottom: 1px solid var(--border); }
.bar .song { display: flex; align-items: center; gap: 12px; flex: 1; min-width: 0; text-align: left; }
.tabs { display: flex; max-width: 560px; margin: 0 auto; padding: 4px 12px calc(4px + var(--safe-b)); }
.tabs button { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 6px 0 4px; font-size: 11px; font-weight: 600; color: var(--dim); }
.tabs button .fa { font-size: 19px; height: 22px; line-height: 22px; }
.tabs button.on { color: var(--accent); }
.tabs .me { width: 22px; height: 22px; border: 1.5px solid currentColor; background: none; color: inherit; font-size: 11px; display: grid; place-items: center; }
.tabs button.on .me { background: var(--sel); }

/* full-screen player */
.full { position: fixed; inset: 0; z-index: 30; background: linear-gradient(180deg, #132423 0%, var(--bg) 60%); overflow-y: auto; }
.fin { max-width: 480px; min-height: 100%; margin: 0 auto; display: flex; flex-direction: column; gap: 16px; padding: calc(10px + var(--safe-t)) 24px calc(28px + var(--safe-b)); }
.ftop { display: flex; align-items: center; gap: 8px; }
.ftop .kind { flex: 1; text-align: center; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fart { flex: 1; display: grid; place-items: center; min-height: 0; padding: 8px 0; }
.fcov { width: min(100%, 44dvh); aspect-ratio: 1; height: auto; border-radius: 14px; object-fit: cover; background: var(--raise); border: 1px solid var(--border); display: grid; place-items: center; font-size: 56px; font-weight: 700; color: var(--dim); box-shadow: 0 18px 50px rgba(0,0,0,.5); }
img.fcov { border: 0; }
.fmeta { display: flex; align-items: center; gap: 4px; }
.fmeta .grow { flex: 1; min-width: 0; }
.ft { font-size: 22px; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fsub { color: var(--dim); font-size: 16px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ib.big { width: 46px; height: 46px; font-size: 21px; }
.full .snd { white-space: normal; font-size: 13px; margin-top: -6px; }
.floved { color: var(--dim); font-size: 13px; margin-top: -8px; }
.floved .fa { color: var(--bad); margin-right: 6px; }
.full .time { flex: none; }
.full input[type=range] { height: 4px; }
.fctrl { display: flex; align-items: center; justify-content: center; gap: 30px; padding-bottom: 8px; }
.fctrl .ib { width: 56px; height: 56px; font-size: 24px; color: var(--fg); }
.play.big { width: 72px; height: 72px; font-size: 26px; }

/* pages (Playlists, Hearts, Me) */
.pg h1 { font-size: 26px; letter-spacing: -.01em; }
.pg h2 { font-size: 20px; letter-spacing: -.01em; margin: 4px 0; }
.pg p { color: var(--dim); font-size: 14px; margin-bottom: 16px; }
.pg-head { display: flex; align-items: baseline; gap: 10px; margin-bottom: 10px; }
.pg-head .ct { color: var(--dim); font-size: 14px; }
.bar .song > div { min-width: 0; }
.bar .cov { width: 44px; height: 44px; }
.ctrl { display: flex; align-items: center; gap: 8px; }
.ctrl .ib { color: var(--fg); }
.play { width: 44px; height: 44px; border-radius: 50%; background: var(--accent); color: var(--bg); display: grid; place-items: center; font-size: 15px; flex: none; }
.play:hover { filter: brightness(1.08); }
.time { flex: 1; display: flex; align-items: center; gap: 10px; font-size: 12px; color: var(--dim); font-variant-numeric: tabular-nums; }
input[type=range] { -webkit-appearance: none; appearance: none; flex: 1; height: 3px; border-radius: 3px; outline: 0; cursor: pointer; background: linear-gradient(to right, var(--accent) var(--p, 0%), var(--border) var(--p, 0%)); }
input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 12px; height: 12px; border-radius: 50%; background: var(--fg); }
input[type=range]::-moz-range-thumb { width: 12px; height: 12px; border: 0; border-radius: 50%; background: var(--fg); }
.bar .line { display: none; }

/* + menu */
.pop { position: fixed; z-index: 45; width: 230px; padding: 6px; border: 1px solid var(--border); border-radius: 12px; background: var(--raise); box-shadow: 0 14px 34px rgba(0,0,0,.5); display: flex; flex-direction: column; }
.pop button { display: flex; align-items: center; gap: 10px; height: 40px; padding: 0 10px; border-radius: 8px; text-align: left; font-size: 14px; }
.pop button:hover { background: var(--sel); }
.pop button .fa { color: var(--dim); }
.pop button.go, .pop button.go .fa { color: var(--accent); }
.pop .sep { height: 1px; background: var(--border); margin: 4px 0; }
.pop .ttl { font-size: 11px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--dim); padding: 6px 10px 4px; }
.pop .scroll { max-height: 260px; overflow-y: auto; display: flex; flex-direction: column; }

/* sheets */
.sheet { position: fixed; inset: 0; z-index: 40; background: rgba(1, 4, 9, .72); display: grid; place-items: center; padding: 20px; }
.panel { width: min(420px, 100%); max-height: 88dvh; overflow-y: auto; background: var(--bg); border: 1px solid var(--border); border-radius: 16px; padding: 22px; }
.ptop { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.panel h2 { font-size: 20px; letter-spacing: -.01em; margin: 4px 0; }
.panel p { color: var(--dim); font-size: 14px; margin-bottom: 16px; }
.item { display: flex; align-items: center; gap: 10px; width: 100%; padding: 10px; margin: 0 -10px; border-radius: 8px; text-align: left; }
.item:hover { background: var(--raise); }
.item .fa { color: var(--dim); }
.item .nm { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.item .ct { color: var(--dim); font-size: 13px; }
.people { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 18px; }
.person { display: flex; flex-direction: column; align-items: center; gap: 8px; width: 74px; font-size: 14px; color: var(--dim); }
.person .av { width: 56px; height: 56px; border-radius: 50%; border: 1px solid var(--border); display: grid; place-items: center; font-size: 20px; font-weight: 700; color: var(--fg); }
.person.on { color: var(--accent); }
.person.on .av { border: 2px solid var(--accent); color: var(--accent); background: var(--sel); }
.field { display: flex; gap: 8px; }
.field input { flex: 1; min-width: 0; height: 42px; padding: 0 12px; border-radius: 10px; border: 1px solid var(--border); background: none; outline: 0; }
.field input:focus { border-color: var(--accent); }
.sep2 { height: 1px; background: var(--border); margin: 16px 0 8px; }
.nums { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 14px; }
.nums div { border: 1px solid var(--border); border-radius: 10px; padding: 10px 12px; }
.nums b { font-size: 20px; display: block; }
.nums small { color: var(--dim); font-size: 12px; }
.log { font-size: 13px; color: var(--dim); display: flex; flex-direction: column; gap: 6px; max-height: 240px; overflow-y: auto; }
.log span { color: var(--border); margin-right: 6px; }
.toast { position: fixed; left: 50%; bottom: calc(150px + var(--safe-b)); transform: translateX(-50%); z-index: 50; padding: 9px 16px; border-radius: 10px; border: 1px solid var(--accent); background: var(--sel); color: var(--accent); font-size: 14px; font-weight: 600; max-width: calc(100% - 32px); text-align: center; }

/* ---------------------------------------------------------------- phone */
@media (max-width: 760px) {
  .wrap { padding: calc(14px + var(--safe-t)) 16px calc(80px + var(--safe-b)); gap: 18px; }
  body.playing .wrap { padding-bottom: calc(150px + var(--safe-b)); }
  .view { gap: 18px; }
  .seg { display: flex; gap: 6px; margin-bottom: -6px; }
  .seg button { flex: 1; height: 40px; border: 1px solid var(--border); border-radius: 10px; color: var(--dim); font-weight: 600; font-size: 14px; }
  .seg button.on { color: var(--accent); border-color: var(--accent); background: var(--sel); }
  #lists[data-show=fy] #trending, #lists[data-show=tr] #discover { display: none; }
  .lists .lhead .kind, .lists .lhead .ai { display: none; }
  .lists .lhead { min-height: 0; margin-bottom: 4px; }
  .moods { flex-wrap: nowrap; overflow-x: auto; margin: 0 -16px; padding: 0 16px; scrollbar-width: none; }
  .moods::-webkit-scrollbar { display: none; }
  .chip { height: 38px; font-size: 14px; }
  .lists { grid-template-columns: 1fr; gap: 22px; }
  .row { gap: 12px; margin: 0 -6px; padding: 8px 0 8px 6px; grid-template-columns: 52px minmax(0, 1fr) auto auto; }
  .row.ranked { grid-template-columns: 20px 52px minmax(0, 1fr) auto auto; gap: 10px; }
  .row .cov { width: 52px; height: 52px; border-radius: 8px; }
  .row .a { font-size: 14px; margin-top: 2px; }
  .row .t { font-size: 15px; }
  .row .ib { width: 48px; height: 48px; }
  .chip { height: 44px; }
  .dock { background: var(--bg); }
  .bar { margin: 8px 8px 0; border: 1px solid var(--border); border-radius: 14px; padding: 8px 6px 8px 8px; gap: 6px; overflow: hidden; background: var(--raise); }
  .bar .cov { width: 44px; height: 44px; }
  .bar .wide { display: none; }
  .bar .line { display: block; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: var(--border); }
  .bar .line i { display: block; height: 3px; background: var(--accent); width: 0; }
  .bar .time, .bar .prev { display: none; }
  .play { width: 40px; height: 40px; }
  .pop { left: 10px !important; right: 10px; bottom: calc(150px + var(--safe-b)); top: auto !important; width: auto; }
  .pop button { height: 48px; font-size: 15px; }
}

/* Playlists */
.plist { display: flex; flex-direction: column; }
.pl-row { display: grid; grid-template-columns: 20px minmax(0, 1fr) auto 14px; gap: 12px; align-items: center; height: 48px; padding: 0 10px; margin: 0 -10px; width: calc(100% + 20px); border-radius: 8px; text-align: left; }
.pl-row:hover { background: var(--raise); }
.pl-row > .fa { color: var(--dim); }
.pl-row .nm { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pl-row .ct { color: var(--dim); font-size: 13px; white-space: nowrap; }
.pl-row > .fa:last-child { font-size: 12px; }
.pl-name { display: flex; align-items: center; gap: 6px; }
.pl-name h2 { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pl-tools { display: flex; align-items: center; gap: 8px; margin: 12px 0 8px; }
.pl-tools .bad { margin-left: auto; }
.btn:disabled { opacity: .4; pointer-events: none; }
.ib.bad:hover, .btn.bad { color: var(--bad); }
.btn.bad { border-color: var(--bad); }
.pl-del { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 12px; margin-bottom: 8px; border: 1px solid var(--bad); border-radius: 10px; font-size: 14px; }
.pl-del span { flex: 1 1 100%; color: var(--fg); }
.pl-songs { display: flex; flex-direction: column; }
.pl-song { display: grid; grid-template-columns: 40px minmax(0, 1fr) 38px 38px; gap: 10px; align-items: center; padding: 6px 10px; margin: 0 -10px; border-radius: 10px; cursor: pointer; }
.pl-song:hover { background: var(--raise); }
.pl-song .cov { width: 40px; height: 40px; }
.pl-song .tx { min-width: 0; }

/* JP: a text chat (voice typing comes from the keyboard) */
.panel.jp { display: flex; flex-direction: column; gap: 12px; }
.jp-log { display: flex; flex-direction: column; gap: 10px; max-height: 58dvh; overflow-y: auto; }
.bub { padding: 9px 12px; border-radius: 12px 12px 12px 4px; border: 1px solid var(--border); font-size: 15px; line-height: 1.45; }
.jp-hello { display: flex; align-items: flex-end; gap: 12px; }
.jp-hello img { flex: none; width: 84px; height: auto; }
.jp-ideas { display: flex; flex-wrap: wrap; gap: 6px; }
.jp-ideas button { padding: 6px 12px; border: 1px solid var(--border); border-radius: 999px; font-size: 13px; color: var(--dim); }
.jp-ideas button:hover { border-color: var(--accent); color: var(--accent); }
.jp-me { align-self: flex-end; max-width: 85%; padding: 9px 12px; border-radius: 12px 12px 4px 12px; background: var(--raise); font-size: 15px; }
.jp-bot { align-self: flex-start; max-width: 92%; display: flex; align-items: flex-end; gap: 8px; }
.jp-face { flex: none; width: 30px; height: auto; }

/* Sound: what minimusic hears in a song, and Discover's match score */
.snd { min-height: 18px; margin-top: 4px; color: var(--dim); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.snd .fa { color: var(--accent); margin-right: 6px; font-size: 11px; }
.match { display: inline-block; margin-right: 6px; padding: 0 5px; border: 1px solid var(--border); border-radius: 6px; font-size: 11px; font-weight: 600; color: var(--dim); }
.match.new { border-color: var(--accent); color: var(--accent); }
.taste { margin-top: 16px; padding: 12px; border: 1px solid var(--border); border-radius: 10px; }
.taste .snd { white-space: normal; font-size: 13px; color: var(--fg); margin: 6px 0 4px; }
.taste small { color: var(--dim); font-size: 12px; }

/* Mix in new songs: a switch on playlists and Hearts */
.mixsw { display: flex; align-items: center; gap: 12px; width: 100%; padding: 10px 12px; margin: 4px 0 10px; border: 1px solid var(--border); border-radius: 12px; text-align: left; }
.mixsw b { display: block; font-weight: 600; font-size: 14px; }
.mixsw small { display: block; color: var(--dim); font-size: 12px; margin-top: 1px; }
.mixsw.on { border-color: var(--accent); background: var(--sel); }
.mixsw.on b { color: var(--accent); }
.sw { flex: none; width: 38px; height: 22px; border-radius: 999px; background: var(--border); position: relative; transition: background .15s; }
.sw i { position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: var(--fg); transition: transform .15s; }
.mixsw.on .sw { background: var(--accent); }
.mixsw.on .sw i { transform: translateX(16px); background: var(--bg); }

/* full player: Sounds like this */
.fds { margin-top: 8px; padding-top: 14px; border-top: 1px solid var(--border); }
.fds .lhead .kind { color: var(--fg); }

/* suggestions: how close it sounds, what it sounds like, why */
.row .d { color: var(--dim); font-size: 12px; margin-top: 2px; line-height: 1.45; }
.row .pct { color: var(--accent); font-weight: 700; cursor: help; }
.row .why { color: var(--dim); font-size: 12px; font-style: italic; margin-top: 1px; line-height: 1.4; opacity: .85; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* trending: pick a real chart */
.charts { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; margin-bottom: 6px; }
.charts::-webkit-scrollbar { display: none; }
.charts .chip { height: 34px; font-size: 13px; padding: 0 14px; }
.csrc { color: var(--dim); font-size: 12px; margin-bottom: 6px; }

/* waiting for the AI: a card you can't miss */
.aiwait { position: relative; margin: 4px 0 10px; padding: 14px; border: 1px solid var(--accent); border-radius: 14px; background: linear-gradient(135deg, var(--sel), var(--raise)); overflow: hidden; }
.aw-top { display: flex; align-items: center; gap: 12px; }
.aw-jp { position: relative; width: 44px; height: 44px; flex: none; border-radius: 50%; display: grid; place-items: center; background: var(--bg); }
.aw-jp img { width: 30px; height: 38px; object-fit: contain; }
.aw-jp::after { content: ""; position: absolute; inset: -3px; border-radius: 50%; border: 2px solid var(--accent); animation: awpulse 1.6s ease-out infinite; }
@keyframes awpulse { from { transform: scale(.9); opacity: .9; } to { transform: scale(1.35); opacity: 0; } }
.aw-title { font-weight: 700; font-size: 15px; line-height: 1.3; }
.aw-title .ai { display: inline-block; margin-left: 6px; vertical-align: 2px; }
.aw-step { color: var(--fg); opacity: .8; font-size: 13px; margin-top: 3px; line-height: 1.4; }
.aw-eq { display: flex; align-items: flex-end; gap: 3px; height: 26px; flex: none; }
.aw-eq i { width: 4px; height: 100%; border-radius: 2px; background: var(--accent); transform-origin: bottom; animation: aweq 1.2s ease-in-out infinite; }
@keyframes aweq { 0%, 100% { transform: scaleY(.2); } 50% { transform: scaleY(1); } }
.aw-bar { height: 4px; margin-top: 12px; border-radius: 2px; background: var(--border); overflow: hidden; }
.aw-bar i { display: block; width: 40%; height: 100%; border-radius: 2px; background: var(--accent); animation: awbar 1.6s ease-in-out infinite; }
@keyframes awbar { from { transform: translateX(-100%); } to { transform: translateX(250%); } }
.aw-note { color: var(--dim); font-size: 12px; margin-top: 8px; }
@media (prefers-reduced-motion: reduce) { .aw-eq i, .aw-bar i, .aw-jp::after { animation-duration: 3s; } }

/* one ... per row; a small heart shows what you already love */
.row .more { font-size: 18px; }
.hearted { color: var(--bad); font-size: 11px; width: auto; margin-right: 6px; vertical-align: 0; }

/* the ... panel, from the bottom, big enough for a thumb */
.act { position: fixed; inset: 0; z-index: 46; background: rgba(1, 4, 9, .6); display: flex; align-items: flex-end; justify-content: center; }
.act-in { width: min(520px, 100%); max-height: 86dvh; overflow-y: auto; background: var(--raise); border-radius: 22px 22px 0 0; padding: 10px 16px calc(20px + var(--safe-b)); animation: actup .22s ease-out; }
@keyframes actup { from { transform: translateY(40%); opacity: .4; } to { transform: none; opacity: 1; } }
.act .grab { width: 44px; height: 5px; border-radius: 3px; background: var(--border); margin: 0 auto 14px; }
.act-song { display: flex; align-items: center; gap: 14px; padding-bottom: 14px; border-bottom: 1px solid var(--border); }
.act-song .cov { width: 56px; height: 56px; border-radius: 8px; }
.act-song > div { min-width: 0; }
.act-song .t { font-size: 17px; }
.act-song .a { font-size: 14px; }
.act-big { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; padding: 14px 0 6px; }
.act-big button { height: 78px; border-radius: 14px; background: var(--bg); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; font-size: 13px; }
.act-big .fa, .act-big .far { font-size: 22px; color: var(--accent); }
.act-big .liked .fa { color: var(--bad); }
.act-big button:active { background: var(--sel); }
.act-ttl { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--dim); margin: 14px 0 4px; }
.act-pl { display: flex; align-items: center; gap: 14px; width: 100%; min-height: 64px; text-align: left; border-radius: 12px; padding: 0 6px; margin: 0 -6px; width: calc(100% + 12px); }
.act-pl:active, .act-pl:hover { background: var(--sel); }
.act-pl .plc { width: 48px; height: 48px; border-radius: 10px; flex: none; object-fit: cover; background: var(--bg); display: grid; place-items: center; color: var(--dim); font-size: 18px; }
.act-pl.new .plc { border: 2px dashed var(--accent); color: var(--accent); background: none; }
.act-pl.new b { color: var(--accent); }
.act-pl .tx { min-width: 0; display: flex; flex-direction: column; }
.act-pl b { font-size: 16px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.act-pl small { font-size: 13px; color: var(--dim); margin-top: 2px; }

/* big player: two tiles */
.ftiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.ftiles button { min-height: 58px; border-radius: 14px; background: var(--raise); border: 1px solid var(--border); display: flex; align-items: center; gap: 10px; padding: 8px 12px; text-align: left; }
.ftiles .fa { color: var(--accent); font-size: 18px; }
.ftiles span { min-width: 0; display: flex; flex-direction: column; }
.ftiles b { font-size: 15px; }
.ftiles small { font-size: 12px; color: var(--dim); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Up next */
.upnext { position: fixed; inset: 0; z-index: 35; background: var(--bg); overflow-y: auto; }
.up-in { max-width: 560px; margin: 0 auto; padding: calc(12px + var(--safe-t)) 16px calc(30px + var(--safe-b)); }
.up-top { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.up-top h1 { font-size: 24px; }
.up-top .ib { width: 44px; height: 44px; font-size: 20px; color: var(--fg); }
.up-help { color: var(--dim); font-size: 14px; line-height: 1.5; margin: 4px 0 8px; }
.up-help .fa { width: auto; }
.up-ttl { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--dim); margin: 18px 0 6px; }
.up-ttl.on { color: var(--accent); }
.qrow { display: grid; grid-template-columns: 48px minmax(0, 1fr) auto auto; gap: 12px; align-items: center; min-height: 64px; padding: 0 4px; border-radius: 12px; cursor: pointer; background: var(--bg); }
.qrow.now { grid-template-columns: 48px minmax(0, 1fr); background: var(--sel); padding: 8px 10px; cursor: default; }
.qrow.now .t { color: var(--accent); }
.qrow .cov { width: 48px; height: 48px; border-radius: 8px; }
.qrow .tx { min-width: 0; }
.qrow .ib { width: 44px; height: 44px; }
.qrow .grip { width: 44px; height: 44px; display: grid; place-items: center; color: var(--dim); touch-action: none; cursor: grab; }
.qrow.drag { position: relative; z-index: 2; background: var(--raise); box-shadow: 0 10px 24px rgba(0,0,0,.5); }
body.noscroll .toast { bottom: auto; top: calc(16px + var(--safe-t)); }   /* in the big player, keep the toast off the controls */

/* mini player: Up next is always one tap away */
.bar .upbtn { position: relative; color: var(--fg); font-size: 18px; }
.bar .upbtn b { position: absolute; top: 2px; right: 0; min-width: 18px; height: 18px; padding: 0 4px; border-radius: 9px; background: var(--accent); color: var(--bg); font-size: 11px; font-weight: 700; display: grid; place-items: center; }
.toast u { margin-left: 12px; text-decoration: none; padding: 2px 10px; border-radius: 8px; background: var(--accent); color: var(--bg); }
.toast[data-act] { cursor: pointer; }
.addp { margin: 4px 0 8px; }
.addp summary { color: var(--accent); font-size: 14px; cursor: pointer; padding: 8px 0; list-style: none; }
.addp summary::-webkit-details-marker { display: none; }
.addp .field { margin-top: 6px; }
.toast:not([hidden]) { display: flex; align-items: center; justify-content: center; white-space: nowrap; width: max-content; }
