/* Alvtify: dark navy base, neon pink-violet-cyan accents, glass panels. */
:root {
  --bg: #07051a;
  --panel: rgba(22, 17, 52, .66);
  --panel-2: rgba(255, 255, 255, .055);
  --panel-3: rgba(255, 255, 255, .1);
  --line: rgba(255, 255, 255, .09);
  --text: #f5f2ff;
  --muted: #aaa3cc;
  --pink: #ff3d8b;
  --violet: #8b5cf6;
  --cyan: #22d3ee;
  --sun: #facc15;
  --grad: linear-gradient(135deg, var(--pink), var(--violet) 52%, var(--cyan));
  --glow: 0 10px 30px -8px rgba(255, 61, 139, .55), 0 8px 26px -10px rgba(34, 211, 238, .5);
  --r: 18px;
  --bar-h: 92px;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html, body { height: 100%; margin: 0; }
body {
  background: var(--bg);
  color: var(--text);
  font: 15px/1.5 "Manrope", system-ui, sans-serif;
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
a:hover { text-decoration: underline; text-decoration-color: rgba(255,255,255,.4); }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
img { display: block; }
h1, h2, h3, .brand span { font-family: "Sora", "Manrope", sans-serif; letter-spacing: -.02em; }
.ic { width: 20px; height: 20px; flex: none; }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 2px; border-radius: 8px; }

/* moving colour fields behind everything */
.aurora { position: fixed; inset: 0; z-index: -1; overflow: hidden; filter: blur(80px) saturate(140%); opacity: .55; }
.aurora i { position: absolute; width: 46vmax; height: 46vmax; border-radius: 50%; animation: drift 26s ease-in-out infinite alternate; }
.aurora i:nth-child(1) { background: #ff3d8b; top: -18vmax; left: -10vmax; }
.aurora i:nth-child(2) { background: #6d28d9; top: 20vh; right: -16vmax; animation-delay: -8s; }
.aurora i:nth-child(3) { background: #0891b2; bottom: -22vmax; left: 20vw; animation-delay: -14s; }
.aurora i:nth-child(4) { background: #f59e0b; width: 22vmax; height: 22vmax; top: 40vh; left: 40vw; opacity: .5; animation-delay: -4s; }
@keyframes drift { to { transform: translate(8vmax, 6vmax) scale(1.15); } }
@media (prefers-reduced-motion: reduce) { .aurora i { animation: none; } }

/* ── gate (setup and login) ── */
.gate { min-height: 100vh; display: grid; place-items: center; padding: 24px 16px; overflow: auto; height: 100vh; }
.gate-card {
  width: min(520px, 100%); padding: 40px 34px; border-radius: 28px; text-align: center;
  background: var(--panel); border: 1px solid var(--line); backdrop-filter: blur(24px);
  box-shadow: 0 30px 80px -30px rgba(0,0,0,.8);
}
.gate-logo { width: 84px; height: 84px; margin: 0 auto 8px; filter: drop-shadow(0 12px 30px rgba(139,92,246,.6)); animation: float 5s ease-in-out infinite; }
@keyframes float { 50% { transform: translateY(-6px) rotate(-3deg); } }
.gate h1 { font-size: 40px; margin: 0; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { color: var(--muted); margin: 8px 0 22px; }
.warn { background: rgba(255,61,139,.14); border: 1px solid rgba(255,61,139,.4); padding: 10px 14px; border-radius: 12px; text-align: left; }
.steps { text-align: left; color: var(--muted); padding-left: 20px; margin: 0 0 20px; }
.steps li { margin-bottom: 8px; }
.steps a { color: var(--cyan); }
code { font-family: ui-monospace, Menlo, monospace; font-size: 13px; background: var(--panel-3); padding: 2px 6px; border-radius: 6px; color: var(--text); word-break: break-all; }
.setup { display: flex; gap: 8px; }
.setup input {
  flex: 1; min-width: 0; padding: 13px 16px; border-radius: 999px; border: 1px solid var(--line);
  background: rgba(0,0,0,.3); color: var(--text); font: 14px ui-monospace, Menlo, monospace;
}
.btn-grad {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 22px; border-radius: 999px; background: var(--grad); color: #fff; font-weight: 700;
  box-shadow: var(--glow); transition: transform .15s, filter .15s; text-decoration: none !important;
}
.btn-grad:hover { transform: translateY(-1px) scale(1.02); filter: brightness(1.1); }
.btn-grad.big { padding: 16px 30px; font-size: 17px; }
.hint { color: var(--muted); font-size: 13px; margin-top: 16px; }
.link { color: var(--muted); text-decoration: underline; font-size: 13px; margin-top: 6px; }
.fine { color: var(--muted); font-size: 12px; margin-top: 22px; opacity: .8; }

/* ── layout ── */
.app {
  height: 100vh; display: grid; gap: 10px; padding: 10px;
  grid-template-columns: 300px minmax(0, 1fr) auto;
  grid-template-rows: minmax(0, 1fr) var(--bar-h);
}
.side, .main, .np { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); backdrop-filter: blur(22px); min-height: 0; }
.side { display: flex; flex-direction: column; padding: 14px 10px; gap: 10px; }
.brand { display: flex; align-items: center; gap: 10px; padding: 4px 12px 8px; text-decoration: none !important; }
.brand img { width: 38px; height: 38px; filter: drop-shadow(0 6px 16px rgba(139,92,246,.6)); }
.brand span { font-size: 23px; font-weight: 800; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.nav { display: grid; gap: 2px; }
.nav a, .lib header a {
  display: flex; align-items: center; gap: 14px; padding: 10px 14px; border-radius: 12px;
  color: var(--muted); font-weight: 700; text-decoration: none !important; transition: .15s;
}
.nav a:hover, .lib header a:hover { color: var(--text); background: var(--panel-2); }
.nav a.on, .lib header a.on { color: var(--text); background: linear-gradient(90deg, rgba(255,61,139,.22), rgba(139,92,246,.12) 60%, transparent); }
.nav a.on .ic, .lib header a.on .ic { color: var(--pink); }
.lib { flex: 1; min-height: 0; display: flex; flex-direction: column; border-top: 1px solid var(--line); padding-top: 8px; }
.lib-list { overflow: auto; flex: 1; padding-right: 2px; }
.li { display: flex; gap: 12px; align-items: center; padding: 7px 10px; border-radius: 12px; text-decoration: none !important; }
.li:hover { background: var(--panel-2); }
.li img, .li-art { width: 46px; height: 46px; border-radius: 10px; object-fit: cover; flex: none; }
.li-art { display: grid; place-items: center; font: 800 18px "Sora"; background: linear-gradient(135deg, hsl(var(--h) 90% 60%), hsl(calc(var(--h) + 60) 85% 45%)); }
.li-art.liked, .q-art.liked { background: var(--grad); }
.li span { min-width: 0; display: grid; }
.li b, .li small { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.li b { font-weight: 600; }
.li small { color: var(--muted); font-size: 12.5px; }

.chips { display: flex; gap: 8px; flex-wrap: wrap; margin: 6px 0 18px; }
.chips.small { margin: 6px 10px 8px; }
.chip { padding: 6px 14px; border-radius: 999px; background: var(--panel-3); font-size: 13px; font-weight: 600; text-decoration: none !important; transition: .15s; }
.chip:hover { background: rgba(255,255,255,.16); }
.chip.on { background: var(--grad); color: #fff; box-shadow: var(--glow); }

.main { overflow: auto; position: relative; scroll-behavior: smooth; }
.top {
  position: sticky; top: 0; z-index: 5; display: flex; align-items: center; gap: 14px; padding: 12px 22px;
  background: linear-gradient(rgba(10,7,30,.82), rgba(10,7,30,.55)); backdrop-filter: blur(14px);
}
.arrows { display: flex; gap: 8px; }
.arrows button { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: rgba(0,0,0,.4); }
.arrows button:hover { background: rgba(0,0,0,.6); }
.searchbox {
  display: flex; align-items: center; gap: 10px; flex: 0 1 420px; padding: 10px 18px; border-radius: 999px;
  background: rgba(255,255,255,.09); border: 1px solid var(--line); transition: .15s;
}
.searchbox:focus-within { border-color: var(--pink); box-shadow: 0 0 0 3px rgba(255,61,139,.2); }
.searchbox[hidden] { display: none; }
.searchbox input { flex: 1; background: none; border: 0; color: var(--text); font: inherit; outline: none; }
.me { margin-left: auto; position: relative; }
.avatar { width: 38px; height: 38px; border-radius: 50%; overflow: hidden; background: var(--grad); padding: 2px; font-weight: 800; }
.avatar img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
.menu {
  position: absolute; right: 0; top: 46px; width: 230px; padding: 12px; border-radius: 14px; display: grid; gap: 4px;
  background: #160f36; border: 1px solid var(--line); box-shadow: 0 20px 50px rgba(0,0,0,.6);
}
.menu[hidden] { display: none; }
.menu small { color: var(--muted); margin-bottom: 6px; }
.menu a, .menu button { display: flex; gap: 10px; align-items: center; padding: 8px 10px; border-radius: 10px; text-align: left; text-decoration: none !important; font-size: 14px; }
.menu a:hover, .menu button:hover { background: var(--panel-3); }
.credit { padding: 26px 24px 30px; color: var(--muted); font-size: 12px; border-top: 1px solid var(--line); margin-top: 20px; }
.credit a { color: var(--text); text-decoration: underline; }

/* ── pages ── */
.page { padding: 0 24px 10px; position: relative; }
.home .wash { position: absolute; inset: -70px 0 auto; height: 340px; z-index: -1;
  background: linear-gradient(180deg, hsl(var(--h) 80% 45% / .45), transparent); pointer-events: none; }
.hello { font-size: 32px; margin: 8px 0 18px; }
.grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.h1 { font-size: 30px; margin: 10px 0 4px; }
.h2 { font-size: 22px; margin: 22px 0 12px; }
.quick { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 10px; margin-bottom: 10px; }
.q {
  position: relative; display: flex; align-items: center; gap: 14px; height: 64px; padding-right: 54px; border-radius: 12px;
  background: var(--panel-2); border: 1px solid var(--line); overflow: hidden; text-decoration: none !important; transition: .2s;
}
.q:hover { background: var(--panel-3); transform: translateY(-1px); }
.q img, .q-art { width: 64px; height: 64px; object-fit: cover; flex: none; }
.q-art { display: grid; place-items: center; font: 800 22px "Sora"; background: linear-gradient(135deg, hsl(var(--h) 90% 60%), hsl(calc(var(--h) + 60) 85% 45%)); }
.q-art .ic { width: 26px; height: 26px; }
.q b { font-weight: 700; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.fab.sm { width: 38px; height: 38px; right: 12px; bottom: auto; top: 13px; }

.shelf { margin-top: 26px; }
.shelf > header { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 10px; }
.shelf h2 { font-size: 22px; margin: 0; }
.shelf > header a { color: var(--muted); font-size: 13px; font-weight: 700; }
.cards { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(170px, 186px); gap: 10px; overflow-x: auto; padding: 4px 2px 10px; scroll-snap-type: x proximity; }
.cards.grid { grid-auto-flow: row; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); grid-auto-columns: auto; overflow: visible; }
.card {
  padding: 12px; border-radius: 16px; display: grid; gap: 3px; align-content: start; scroll-snap-align: start;
  text-decoration: none !important; transition: background .2s, transform .2s; border: 1px solid transparent;
}
.card:hover { background: var(--panel-2); border-color: var(--line); transform: translateY(-2px); }
.card .art { position: relative; aspect-ratio: 1; margin-bottom: 8px; }
.card .art img, .card .ph { width: 100%; height: 100%; object-fit: cover; border-radius: 12px; box-shadow: 0 12px 28px -12px rgba(0,0,0,.8); }
.card.round .art img, .card.round .ph { border-radius: 50%; }
.ph { display: grid; place-items: center; font: 800 40px "Sora"; background: linear-gradient(135deg, hsl(var(--h) 90% 60%), hsl(calc(var(--h) + 70) 85% 45%)); }
.card b { font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card span { color: var(--muted); font-size: 13px; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.fab {
  position: absolute; right: 8px; bottom: 8px; width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center;
  background: var(--grad); color: #fff; box-shadow: var(--glow); opacity: 0; transform: translateY(8px); transition: .2s;
}
.fab .ic { width: 22px; height: 22px; }
.card:hover .fab, .q:hover .fab, .top-hit:hover .fab, .fab:focus-visible { opacity: 1; transform: none; }
.fab:hover { transform: scale(1.06) !important; }
.fab.static { position: static; opacity: 1; transform: none; flex: none; }

/* hero header of playlist, album, artist, podcast */
.hero {
  display: flex; align-items: flex-end; gap: 24px; margin: -70px -24px 0; padding: 100px 24px 24px;
  background: linear-gradient(180deg, hsl(var(--h) 85% 55% / .75), hsl(calc(var(--h) + 50) 70% 30% / .35) 75%, transparent);
}
.cover { width: 232px; height: 232px; flex: none; border-radius: 16px; overflow: hidden; box-shadow: 0 24px 60px -16px rgba(0,0,0,.85); }
.cover.round { border-radius: 50%; }
.cover img, .cover .ph { width: 100%; height: 100%; object-fit: cover; }
.liked-cover { display: grid; place-items: center; background: var(--grad); }
.liked-cover .ic { width: 90px; height: 90px; color: #fff; filter: drop-shadow(0 8px 20px rgba(0,0,0,.35)); }
.hero-text { min-width: 0; }
.hero small { font-weight: 700; font-size: 13px; text-transform: uppercase; letter-spacing: .12em; }
.hero h1 { font-size: clamp(34px, 6vw, 84px); line-height: 1; margin: 8px 0 12px; overflow-wrap: anywhere; }
.desc { color: rgba(255,255,255,.75); margin: 0 0 8px; }
.meta { margin: 0; font-size: 14px; color: rgba(255,255,255,.85); }
.actions { display: flex; align-items: center; gap: 20px; padding: 22px 0 8px; }
.big-play { width: 60px; height: 60px; border-radius: 50%; display: grid; place-items: center; background: var(--grad); color: #fff; box-shadow: var(--glow); transition: .15s; }
.big-play .ic { width: 26px; height: 26px; }
.big-play:hover { transform: scale(1.06); }
.ghost { display: inline-flex; gap: 8px; align-items: center; padding: 9px 16px; border-radius: 999px; border: 1px solid var(--line); color: var(--muted); font-weight: 700; font-size: 14px; text-decoration: none !important; }
.ghost:hover { color: var(--text); border-color: rgba(255,255,255,.3); }
.body { padding-top: 8px; }
.about { color: var(--muted); max-width: 760px; }

/* track table */
.tracks { display: grid; }
.tr {
  display: grid; grid-template-columns: 44px minmax(0, 4fr) minmax(0, 3fr) 92px; align-items: center; gap: 14px;
  padding: 6px 12px; border-radius: 10px; min-height: 58px; transition: background .12s;
}
.tracks.with-added .tr { grid-template-columns: 44px minmax(0, 4fr) minmax(0, 3fr) 110px 92px; }
.tracks.no-album .tr { grid-template-columns: 44px minmax(0, 1fr) 92px; }
.tr.head { min-height: 36px; color: var(--muted); font-size: 13px; border-bottom: 1px solid var(--line); border-radius: 0; margin-bottom: 8px; }
.tr:not(.head):hover { background: var(--panel-2); }
.tr .no { position: relative; text-align: center; color: var(--muted); font-variant-numeric: tabular-nums; }
.tr .mini { position: absolute; inset: 0; display: none; place-items: center; color: var(--text); }
.tr:hover .no em { visibility: hidden; }
.tr:hover .mini { display: grid; }
.ti { display: flex; gap: 12px; align-items: center; min-width: 0; }
.ti img { width: 42px; height: 42px; border-radius: 8px; object-fit: cover; flex: none; }
.ti > span { display: grid; min-width: 0; }
.ti b, .ti small, .al { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ti b { font-weight: 600; }
.ti small, .al, .ad { color: var(--muted); font-size: 13.5px; }
.ti small a:hover, .al a:hover { color: var(--text); }
.e { display: inline-grid; place-items: center; width: 16px; height: 16px; border-radius: 3px; background: var(--muted); color: var(--bg); font: 800 9px/1 "Manrope"; margin-right: 6px; vertical-align: 1px; font-style: normal; }
.dur { display: flex; align-items: center; justify-content: flex-end; gap: 12px; color: var(--muted); font-size: 13.5px; font-variant-numeric: tabular-nums; }
.tr.head .dur { justify-content: flex-end; padding-right: 2px; }
.like { color: var(--muted); opacity: 0; transition: .15s; display: grid; }
.like .ic { width: 18px; height: 18px; }
.tr:hover .like, .like.on, .now .like { opacity: 1; }
.like:hover { color: var(--text); transform: scale(1.1); }
.like.on { color: var(--pink); filter: drop-shadow(0 0 6px rgba(255,61,139,.6)); }
.tr.playing b { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.tr.playing .no em { color: var(--pink); }

/* search */
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 16px; }
.tile {
  position: relative; aspect-ratio: 1.6; border-radius: 16px; overflow: hidden; padding: 16px; text-decoration: none !important;
  background: linear-gradient(135deg, hsl(var(--h) 92% 58%), hsl(calc(var(--h) + 45) 88% 42%)); transition: transform .2s;
  box-shadow: 0 14px 30px -18px hsl(var(--h) 90% 50%);
}
.tile:hover { transform: translateY(-3px) rotate(-.5deg); }
.tile b { font: 800 21px/1.15 "Sora"; position: relative; z-index: 1; text-shadow: 0 2px 10px rgba(0,0,0,.25); }
.tile img { position: absolute; width: 96px; height: 96px; right: -14px; bottom: -6px; transform: rotate(24deg); border-radius: 8px; box-shadow: 0 8px 20px rgba(0,0,0,.4); }
.search-top { display: grid; grid-template-columns: minmax(260px, 420px) minmax(0, 1fr); gap: 24px; }
.search-top .grow { min-width: 0; }
.top-hit { position: relative; display: grid; gap: 12px; padding: 22px; border-radius: 18px; background: var(--panel-2); border: 1px solid var(--line); text-decoration: none !important; min-height: 236px; align-content: start; }
.top-hit:hover { background: var(--panel-3); }
.top-hit img { width: 100px; height: 100px; object-fit: cover; border-radius: 12px; box-shadow: 0 12px 30px -10px rgba(0,0,0,.8); }
.top-hit img.round { border-radius: 50%; }
.top-hit b { font: 800 30px/1.1 "Sora"; }
.pill { justify-self: start; padding: 4px 12px; border-radius: 999px; background: rgba(0,0,0,.35); font-size: 13px; font-weight: 700; }
.top-hit .fab { right: 20px; bottom: 20px; }

/* podcast episodes */
.episodes { display: grid; gap: 4px; max-width: 900px; }
.ep { display: flex; gap: 16px; align-items: center; padding: 14px; border-radius: 14px; border-bottom: 1px solid var(--line); }
.ep:hover { background: var(--panel-2); }
.ep img { width: 96px; height: 96px; border-radius: 10px; object-fit: cover; flex: none; }
.ep > div { flex: 1; min-width: 0; }
.ep p { color: var(--muted); font-size: 13.5px; margin: 4px 0; }
.ep small { color: var(--muted); font-size: 12.5px; }

.empty { color: var(--muted); padding: 30px 0; }
.empty.sm { padding: 12px; font-size: 13px; }
.errbox { margin: 60px auto; max-width: 520px; text-align: center; padding: 30px; border-radius: 20px; background: var(--panel-2); border: 1px solid var(--line); }
.errbox p { color: var(--muted); }

.loading { display: flex; gap: 6px; justify-content: center; align-items: flex-end; height: 120px; padding: 30px; }
.loading span { width: 6px; height: 14px; border-radius: 3px; background: var(--grad); animation: eq 1s ease-in-out infinite; }
.loading span:nth-child(2) { animation-delay: -.8s; } .loading span:nth-child(3) { animation-delay: -.6s; }
.loading span:nth-child(4) { animation-delay: -.4s; } .loading span:nth-child(5) { animation-delay: -.2s; }
@keyframes eq { 50% { height: 46px; } }

/* now playing panel */
.np { width: 320px; overflow: auto; padding: 16px; }
.np[hidden] { display: none; }
.np header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.np header button { font-size: 24px; line-height: 1; color: var(--muted); width: 32px; height: 32px; border-radius: 50%; }
.np header button:hover { background: var(--panel-3); color: var(--text); }
.np-cover { border-radius: 16px; overflow: hidden; box-shadow: 0 20px 60px -10px hsl(var(--h) 80% 50% / .6); }
.np-cover img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.np h3 { font-size: 22px; margin: 16px 0 2px; }
.np p { color: var(--muted); margin: 0; }
.np-album { display: flex; gap: 6px; align-items: center; margin-top: 6px !important; font-size: 13px; }
.np-album .ic { width: 16px; height: 16px; }
.np h4 { margin: 22px 0 8px; font-family: "Sora"; }
.np-next { display: flex; gap: 10px; align-items: center; padding: 6px; border-radius: 10px; }
.np-next:hover { background: var(--panel-2); }
.np-next img { width: 44px; height: 44px; border-radius: 8px; object-fit: cover; }
.np-next span { display: grid; min-width: 0; flex: 1; }
.np-next b, .np-next small { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.np-next small, .np-next em { color: var(--muted); font-size: 12.5px; font-style: normal; }
.np-empty { text-align: center; color: var(--muted); padding: 60px 10px; }
.np-empty .ic { width: 42px; height: 42px; color: var(--violet); }

/* ── player bar ── */
.bar {
  grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr) minmax(0, 1fr); align-items: center; gap: 16px;
  padding: 0 18px; border-radius: var(--r); background: rgba(14, 10, 36, .82); border: 1px solid var(--line); backdrop-filter: blur(22px);
  position: relative; overflow: hidden;
}
.bar::before { content: ""; position: absolute; inset: 0 0 auto; height: 2px; background: var(--grad); opacity: .35; transition: opacity .3s; }
.bar.live::before { opacity: 1; animation: shimmer 3s linear infinite; background-size: 200% 100%; }
@keyframes shimmer { to { background-position: -200% 0; } }
.now { display: flex; align-items: center; gap: 14px; min-width: 0; }
.now img { width: 58px; height: 58px; border-radius: 10px; object-fit: cover; box-shadow: 0 8px 20px -6px rgba(0,0,0,.7); }
.now > div { display: grid; min-width: 0; }
.now b, .now small { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.now small { color: var(--muted); font-size: 13px; }
.now-empty { display: flex; gap: 8px; align-items: center; color: var(--muted); font-size: 14px; }
.now-empty .ic { color: var(--violet); }
.ctrl { display: grid; gap: 6px; justify-items: center; }
.btns { display: flex; align-items: center; gap: 18px; }
.btns button { color: var(--muted); position: relative; display: grid; place-items: center; transition: .15s; }
.btns button:hover { color: var(--text); }
.btns button.on { color: var(--cyan); }
.btns button.on::after { content: ""; position: absolute; bottom: -7px; width: 4px; height: 4px; border-radius: 50%; background: var(--cyan); }
.btns button i { position: absolute; font: 800 8px "Manrope"; font-style: normal; top: 4px; }
.btns .play { width: 42px; height: 42px; border-radius: 50%; background: var(--grad); color: #fff; box-shadow: var(--glow); }
.btns .play:hover { transform: scale(1.07); color: #fff; }
.prog { display: flex; align-items: center; gap: 10px; width: 100%; max-width: 620px; font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
.prog span { width: 42px; text-align: center; }
input[type=range] {
  -webkit-appearance: none; appearance: none; flex: 1; height: 5px; border-radius: 5px; cursor: pointer;
  background: linear-gradient(90deg, var(--pink), var(--violet) calc(var(--p, 0%) * .6), var(--cyan) var(--p, 0%), rgba(255,255,255,.15) var(--p, 0%));
}
input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 13px; height: 13px; border-radius: 50%; background: #fff; box-shadow: 0 0 10px rgba(255,61,139,.8); opacity: 0; transition: opacity .15s; }
input[type=range]:hover::-webkit-slider-thumb, input[type=range]:focus-visible::-webkit-slider-thumb { opacity: 1; }
input[type=range]::-moz-range-thumb { width: 13px; height: 13px; border: 0; border-radius: 50%; background: #fff; }
.extra { display: flex; align-items: center; justify-content: flex-end; gap: 12px; }
.extra button { color: var(--muted); display: grid; }
.extra button:hover, .extra button.on { color: var(--cyan); }
.extra input { flex: 0 1 120px; }

#toast {
  position: fixed; left: 50%; bottom: calc(var(--bar-h) + 26px); transform: translate(-50%, 20px); opacity: 0; pointer-events: none;
  padding: 12px 20px; border-radius: 999px; background: #fff; color: #120c2c; font-weight: 700; font-size: 14px;
  box-shadow: 0 14px 40px rgba(0,0,0,.5); transition: .25s; z-index: 50; max-width: calc(100vw - 32px); text-align: center;
}
#toast.show { opacity: 1; transform: translate(-50%, 0); }

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: rgba(255,255,255,.14); border-radius: 10px; border: 2px solid transparent; background-clip: padding-box; }
::-webkit-scrollbar-thumb:hover { background-color: rgba(255,255,255,.26); }

/* ── smaller screens ── */
@media (max-width: 1100px) { .np { display: none !important; } .search-top { grid-template-columns: 1fr; } }
@media (max-width: 900px) {
  .app { grid-template-columns: 76px minmax(0, 1fr); }
  .brand span, .nav span, .lib header span, .chips.small, .li span { display: none; }
  .nav a, .lib header a { justify-content: center; padding: 12px; }
  .li { justify-content: center; padding: 6px; }
  .tr, .tracks.with-added .tr { grid-template-columns: 36px minmax(0, 1fr) 84px; }
  .tr .al, .tr .ad, .tr.head span:nth-child(3), .tracks.with-added .tr.head span:nth-child(4) { display: none; }
  .hero { flex-direction: column; align-items: flex-start; }
  .cover { width: 170px; height: 170px; }
  .bar { grid-template-columns: minmax(0, 1fr) auto; }
  .extra { display: none; }
  .prog { display: none; }
}
@media (max-width: 600px) {
  :root { --bar-h: 76px; }
  .app { grid-template-columns: minmax(0, 1fr); grid-template-rows: minmax(0, 1fr) var(--bar-h) auto; padding: 6px; gap: 6px; }
  .side { grid-row: 3; flex-direction: row; padding: 4px; }
  .brand, .lib .chips, .lib-list { display: none; }
  .lib { border: 0; padding: 0; flex: 1; }
  .nav { grid-auto-flow: column; flex: 2; }
  .page { padding: 0 16px 10px; }
  .hero { margin: -70px -16px 0; padding: 90px 16px 20px; }
  .top { padding: 10px 16px; }
  .hello { font-size: 25px; }
  .quick { grid-template-columns: 1fr 1fr; }
  .q { height: 56px; padding-right: 8px; }
  .q img, .q-art { width: 56px; height: 56px; }
  .q .fab { display: none; }
  .btns { gap: 10px; }
  .btns #bShuffle, .btns #bRepeat { display: none; }
  .setup { flex-direction: column; }
}
