/* muse.fm - styles. Design tokens follow the reference mockups: near-black navy surfaces,
   mint-green accent with a soft glow, large rounded cards. */

@font-face {
  font-family: "Jakarta";
  src: url("/fonts/jakarta-var.woff2") format("woff2");
  font-weight: 200 800;
  font-display: swap;
}

:root {
  --bg: #070b10;
  --bg-2: #0b1117;
  --surface: #0f161d;
  --surface-2: #141d26;
  --surface-3: #1b2630;
  --line: rgba(255, 255, 255, 0.06);
  --line-2: rgba(255, 255, 255, 0.1);
  --text: #f1f5f7;
  --text-2: #9aa7b2;
  --text-3: #66737e;
  --accent: #22d88f;
  --accent-2: #14b877;
  --accent-ink: #04130c;
  --accent-soft: rgba(34, 216, 143, 0.12);
  --accent-glow: 0 0 24px rgba(34, 216, 143, 0.45), 0 0 2px rgba(34, 216, 143, 0.8);
  --danger: #ff5d6c;
  --radius: 16px;
  --radius-sm: 10px;
  --sidebar: 236px;
  --player-h: 128px;
  --tabbar-h: 64px;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --font: "Jakarta", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color-scheme: dark;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { height: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 500 14px/1.45 var(--font);
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
  overflow: hidden;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
input { font: inherit; color: inherit; }
img { display: block; }
svg.i { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8;
  stroke-linecap: round; stroke-linejoin: round; }
svg.i.fill { fill: currentColor; stroke: none; }
::selection { background: var(--accent-soft); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 6px; }

/* scrollbars */
.scroll { overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: #26323c transparent; }
.scroll::-webkit-scrollbar { width: 10px; height: 10px; }
.scroll::-webkit-scrollbar-thumb { background: #26323c; border-radius: 10px; border: 3px solid var(--bg); }

/* ── shell ─────────────────────────────────────────────────────────────────── */
.app {
  display: grid;
  grid-template-columns: var(--sidebar) 1fr;
  grid-template-rows: 1fr auto;
  height: 100dvh;
}
.sidebar {
  grid-row: 1 / 3;
  display: flex; flex-direction: column;
  border-right: 1px solid var(--line);
  background: linear-gradient(180deg, #0a0f14, #070b10);
  padding: 22px 14px 14px;
  min-height: 0;
}
.brand { display: flex; align-items: center; gap: 10px; padding: 0 10px 22px; font-weight: 700; font-size: 21px; letter-spacing: -.3px; }
.brand svg { width: 30px; height: 30px; color: var(--accent); filter: drop-shadow(0 0 6px rgba(34,216,143,.5)); }
.nav { display: flex; flex-direction: column; gap: 2px; }
.nav a {
  display: flex; align-items: center; gap: 14px;
  padding: 11px 12px; border-radius: 12px; color: var(--text-2); font-weight: 600;
  transition: background .2s, color .2s;
}
.nav a:hover { color: var(--text); background: rgba(255,255,255,.03); }
.nav a.active { color: var(--text); background: linear-gradient(90deg, rgba(34,216,143,.14), rgba(34,216,143,.04)); }
.nav a.active svg { color: var(--accent); }
.nav .sep { height: 1px; background: var(--line); margin: 14px 4px; }
.nav .head { display: flex; align-items: center; justify-content: space-between; color: var(--text-2); }
.nav .head button { width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center; color: var(--text-2); }
.nav .head button:hover { color: var(--text); background: rgba(255,255,255,.05); }
.nav .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); margin-left: auto; box-shadow: var(--accent-glow); }
.side-playlists { margin-top: 6px; flex: 1; min-height: 0; overflow-y: auto; scrollbar-width: none; }
.side-playlists a { display: block; padding: 7px 12px; color: var(--text-3); font-weight: 500; border-radius: 8px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.side-playlists a:hover, .side-playlists a.active { color: var(--text); background: rgba(255,255,255,.03); }

.mini-side {
  display: flex; align-items: center; gap: 10px; padding: 10px; margin-top: 10px;
  border: 1px solid var(--line); border-radius: 14px; background: var(--surface);
}
.mini-side .art { width: 46px; height: 46px; border-radius: 10px; flex: none; }
.mini-side .heart { display: none; }
.mini-side .play-fab { width: 40px; height: 40px; flex: none; }
.mini-side .meta { min-width: 0; flex: 1; }
.mini-side .t { font-weight: 700; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mini-side .a { color: var(--text-2); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mini-side[hidden] { display: none; }

.main { min-width: 0; min-height: 0; display: flex; flex-direction: column; position: relative; }
.topbar {
  display: flex; align-items: center; gap: 16px; padding: 22px 34px 10px;
  position: sticky; top: 0; z-index: 5;
}
.topbar .titles { flex: 1; min-width: 0; }
.topbar h1 { margin: 0; font-size: 24px; font-weight: 700; letter-spacing: -.4px; }
.topbar .sub { color: var(--text-2); font-size: 14px; }
.topbar .nav-arrows { display: flex; gap: 8px; }
.icon-btn {
  width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; color: var(--text-2);
  transition: background .2s, color .2s, transform .15s;
}
.icon-btn:hover { color: var(--text); background: rgba(255,255,255,.06); }
.icon-btn:active { transform: scale(.94); }
.icon-btn.on { color: var(--accent); }
.bell { position: relative; }
.bell .badge { position: absolute; top: 9px; right: 10px; width: 8px; height: 8px; border-radius: 50%;
  background: var(--accent); box-shadow: var(--accent-glow); }
.avatar {
  width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center;
  font-weight: 800; font-size: 16px; color: var(--accent-ink);
  background: radial-gradient(circle at 30% 25%, #6ff0b9, var(--accent-2));
  box-shadow: 0 0 0 2px var(--bg), 0 0 0 4px rgba(34,216,143,.7);
}
.view { flex: 1; min-height: 0; padding: 8px 34px 40px; }
.view-inner { max-width: 1500px; margin: 0 auto; }

/* ── generic bits ──────────────────────────────────────────────────────────── */
.art { position: relative; overflow: hidden; background: linear-gradient(135deg, hsl(var(--h, 160) 45% 22%), hsl(calc(var(--h, 160) + 40) 50% 10%)); }
.art::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 1px rgba(255,255,255,.05); pointer-events: none; }
.art img { width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .35s; }
.art img.ok { opacity: 1; }
.art .ph { position: absolute; inset: 0; display: grid; place-items: center; color: rgba(255,255,255,.35); }
.art .ph svg { width: 36%; height: 36%; }
.art img.ok + .ph { display: none; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 46px; padding: 0 24px; border-radius: 999px; font-weight: 700; font-size: 15px;
  transition: transform .15s var(--ease), box-shadow .2s, background .2s;
  white-space: nowrap;
}
.btn:active { transform: scale(.97); }
.btn.primary { color: var(--accent-ink); background: linear-gradient(180deg, #34e6a0, var(--accent-2)); box-shadow: 0 6px 24px rgba(34,216,143,.35); }
.btn.primary:hover { box-shadow: 0 8px 30px rgba(34,216,143,.5); }
.btn.ghost { border: 1px solid var(--line-2); color: var(--text); background: rgba(255,255,255,.02); }
.btn.ghost:hover { background: rgba(255,255,255,.06); }
.btn.sm { height: 36px; padding: 0 16px; font-size: 13px; }
.btn svg.i { width: 18px; height: 18px; }
.chip {
  display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 14px; border-radius: 999px;
  border: 1px solid var(--line-2); color: var(--text-2); font-weight: 600; font-size: 13px; background: rgba(7,11,16,.5);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); white-space: nowrap;
}
button.chip:hover, a.chip:hover { color: var(--text); border-color: rgba(255,255,255,.2); }
.chip.on { color: var(--accent-ink); background: var(--accent); border-color: var(--accent); }

.section { margin-top: 34px; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 16px; gap: 12px; }
.section-head h2 { margin: 0; font-size: 20px; font-weight: 700; letter-spacing: -.3px; }
.section-head a, .section-head button { color: var(--accent); font-weight: 600; font-size: 14px; }
.section-head a:hover { text-decoration: underline; }

.eyebrow { color: var(--accent); font-size: 11px; font-weight: 700; letter-spacing: 2.6px; text-transform: uppercase; }
.muted { color: var(--text-2); }
.dim { color: var(--text-3); }
.ellip { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.link:hover { text-decoration: underline; color: var(--text); }

/* ── hero carousel ─────────────────────────────────────────────────────────── */
.hero-row { display: grid; grid-template-columns: minmax(0, 2.15fr) minmax(0, 1fr) minmax(0, 1fr); gap: 18px; position: relative; }
.hero {
  position: relative; border-radius: 20px; overflow: hidden; height: clamp(280px, 23vw, 380px); min-width: 0;
  border: 1px solid rgba(34,216,143,.25);
  box-shadow: 0 0 0 1px rgba(34,216,143,.06), 0 20px 60px -20px rgba(34,216,143,.25);
  isolation: isolate;
}
.hero-slide { position: absolute; inset: 0; opacity: 0; transition: opacity .7s var(--ease); pointer-events: none; }
.hero-slide.on { opacity: 1; pointer-events: auto; }
.hero-slide .content, .hero-slide .count { opacity: 0; transform: translateY(10px); transition: opacity .2s, transform .2s; }
.hero-slide.on .content, .hero-slide.on .count { opacity: 1; transform: none; transition: opacity .5s .3s, transform .6s .3s var(--ease); }
.hero-slide .bg { position: absolute; inset: 0; }
.hero-slide .bg .art { position: absolute; inset: 0; }
.hero-slide .bg .blur { position: absolute; inset: -40px; filter: blur(40px) saturate(1.4); opacity: .55; }
.hero-slide .bg .cover { position: absolute; left: auto; right: 0; top: 0; bottom: 0; width: 62%; }
.hero-slide .bg .cover img { -webkit-mask-image: linear-gradient(90deg, transparent, #000 40%); mask-image: linear-gradient(90deg, transparent, #000 40%); }
.hero-slide .shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(6,10,14,.92) 0%, rgba(6,10,14,.65) 42%, rgba(6,10,14,.05) 75%), linear-gradient(0deg, rgba(6,10,14,.6), transparent 40%); }
.hero-slide .content { position: relative; z-index: 1; height: 100%; display: flex; flex-direction: column; justify-content: center; padding: 34px 40px; max-width: 64%; }
.hero-slide h3 { margin: 12px 0 6px; font-size: clamp(30px, 4.2vw, 58px); line-height: 1; font-weight: 800; letter-spacing: -1px; text-transform: uppercase;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.hero-slide .by { color: var(--text); opacity: .85; font-size: 17px; margin-bottom: 26px; }
.hero-slide .count { position: absolute; right: 22px; bottom: 20px; z-index: 2; }
.hero-dots { position: absolute; left: 0; right: 0; bottom: 22px; display: flex; justify-content: center; gap: 8px; z-index: 2; }
.hero-dots button { width: 7px; height: 7px; border-radius: 50%; background: rgba(255,255,255,.3); transition: all .3s; }
.hero-dots button.on { background: #fff; width: 9px; height: 9px; margin-top: -1px; }
.hero-arrow {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 6; width: 44px; height: 44px; border-radius: 50%;
  display: grid; place-items: center; background: rgba(12,18,24,.85); border: 1px solid var(--line-2); color: var(--text);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); transition: background .2s;
}
.hero-arrow:hover { background: rgba(30,40,50,.95); }
.hero-arrow.prev { left: -22px; }
.hero-arrow.next { right: -22px; }

.feature-card {
  position: relative; border-radius: 20px; overflow: hidden; border: 1px solid var(--line-2); height: clamp(280px, 23vw, 380px); min-width: 0;
  display: flex; flex-direction: column; justify-content: flex-end; isolation: isolate;
  transition: transform .3s var(--ease), border-color .3s;
}
.feature-card:hover { transform: translateY(-3px); border-color: rgba(255,255,255,.18); }
.feature-card .art { position: absolute; inset: 0; z-index: -1; }
.feature-card .art img { transition: transform .8s var(--ease), opacity .35s; }
.feature-card:hover .art img { transform: scale(1.05); }
.feature-card::before { content: ""; position: absolute; inset: 0; z-index: 0; background: linear-gradient(0deg, rgba(6,10,14,.95) 8%, rgba(6,10,14,.2) 55%, transparent); }
.feature-card .meta { position: relative; z-index: 1; padding: 18px; }
.feature-card .t { font-size: 17px; font-weight: 800; text-transform: uppercase; letter-spacing: .2px; }
.feature-card .a { color: var(--text-2); }
.feature-card .n { color: var(--text-3); font-size: 13px; margin-top: 4px; }
.feature-card .play-fab { position: absolute; right: 16px; bottom: 18px; z-index: 2; }

/* ── cards / grids / shelves ───────────────────────────────────────────────── */
.shelf { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 4 * 18px) / 5); gap: 18px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding-bottom: 4px; }
.shelf::-webkit-scrollbar { display: none; }
.shelf > * { scroll-snap-align: start; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 18px; }
.card {
  position: relative; display: block; padding: 10px 10px 14px; border-radius: 18px; background: var(--surface);
  border: 1px solid var(--line); transition: background .25s, border-color .25s, transform .25s var(--ease); min-width: 0;
}
.card:hover { background: var(--surface-2); border-color: var(--line-2); transform: translateY(-2px); }
.card .art { aspect-ratio: 1; border-radius: 12px; }
.card.round .art { border-radius: 50%; }
.card.round { text-align: center; }
.card .t { margin-top: 12px; font-weight: 700; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card .s { color: var(--text-2); font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: 2px; }
.card .play-fab { position: absolute; right: 18px; top: calc(100% - 92px); opacity: .95; transform: translateY(0); }
.card.round .play-fab { display: none; }
.play-fab {
  width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(10,15,20,.75); border: 1px solid rgba(255,255,255,.18); color: #fff;
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  transition: transform .2s var(--ease), background .2s, color .2s, box-shadow .2s;
}
.play-fab svg.i { width: 18px; height: 18px; margin-left: 2px; }
.play-fab:hover { transform: scale(1.08); background: var(--accent); color: var(--accent-ink); box-shadow: var(--accent-glow); border-color: transparent; }
.play-fab.playing { background: var(--accent); color: var(--accent-ink); box-shadow: var(--accent-glow); border-color: transparent; }
.play-fab.playing svg.i { margin-left: 0; }
.mosaic { display: grid; grid-template-columns: 1fr 1fr; width: 100%; height: 100%; }
.mosaic .art { width: 100%; height: 100%; }
.genre-tile {
  position: relative; display: block; aspect-ratio: 1.6; border-radius: 16px; overflow: hidden; padding: 16px;
  background: linear-gradient(135deg, hsl(var(--h) 55% 30%), hsl(calc(var(--h) + 50) 60% 12%)); isolation: isolate;
  border: 1px solid var(--line); transition: transform .25s var(--ease);
}
.genre-tile:hover { transform: translateY(-2px); }
.genre-tile .t { font-weight: 800; font-size: 18px; position: relative; z-index: 1; text-shadow: 0 2px 12px rgba(0,0,0,.4); }
.genre-tile .s { font-size: 12px; color: rgba(255,255,255,.7); position: relative; z-index: 1; }
.genre-tile .art { position: absolute; width: 46%; aspect-ratio: 1; right: -6%; bottom: -10%; transform: rotate(18deg); border-radius: 10px; box-shadow: -6px 8px 24px rgba(0,0,0,.5); z-index: 0; }

/* ── detail header (album/artist/playlist/station) ─────────────────────────── */
.detail-head { position: relative; display: flex; gap: 30px; align-items: flex-end; padding: 26px; border-radius: 24px; overflow: hidden; isolation: isolate; border: 1px solid var(--line); }
.detail-head .tint { position: absolute; inset: 0; z-index: -1; background: radial-gradient(120% 140% at 0% 0%, color-mix(in srgb, var(--tint, #1a3a2e) 70%, transparent), transparent 70%), linear-gradient(180deg, color-mix(in srgb, var(--tint, #1a3a2e) 35%, var(--bg)), var(--bg)); }
.detail-head .cover { width: 232px; flex: none; aspect-ratio: 1; border-radius: 16px; box-shadow: 0 24px 60px rgba(0,0,0,.55); }
.detail-head.artist .cover { border-radius: 50%; }
.detail-head .info { min-width: 0; }
.detail-head h1 { font-size: clamp(30px, 5vw, 64px); line-height: 1.02; font-weight: 800; margin: 10px 0 12px; letter-spacing: -1.4px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; }
.detail-head .facts { color: var(--text-2); display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; }
.detail-head .facts b { color: var(--text); }
.detail-head .facts .sep::before { content: "•"; color: var(--text-3); }
.actions { display: flex; align-items: center; gap: 12px; margin: 24px 0 10px; flex-wrap: wrap; }
.actions .big-play { width: 60px; height: 60px; border-radius: 50%; display: grid; place-items: center; color: var(--accent-ink);
  background: linear-gradient(180deg, #3ae9a5, var(--accent-2)); box-shadow: 0 8px 30px rgba(34,216,143,.45); transition: transform .15s; }
.actions .big-play:hover { transform: scale(1.05); }
.actions .big-play svg.i { width: 26px; height: 26px; }
.actions .icon-btn svg.i { width: 24px; height: 24px; }
.desc { color: var(--text-2); max-width: 70ch; margin-top: 8px; }
.tags { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 14px; }

/* ── track list ────────────────────────────────────────────────────────────── */
.tracks { margin-top: 8px; }
.tracks .thead, .trow {
  display: grid; grid-template-columns: 40px minmax(0, 1.5fr) minmax(0, 1fr) 84px 64px 40px; gap: 14px; align-items: center; padding: 0 14px;
}
.tracks.no-album .thead, .tracks.no-album .trow { grid-template-columns: 40px minmax(0, 1fr) 84px 64px 40px; }
.tracks.no-album .c-album { display: none; }
.tracks .thead { color: var(--text-3); font-size: 12px; font-weight: 600; letter-spacing: .6px; text-transform: uppercase; height: 36px; border-bottom: 1px solid var(--line); margin-bottom: 6px; }
.trow { height: 60px; border-radius: 12px; cursor: default; user-select: none; }
.trow:hover, .trow.sel { background: rgba(255,255,255,.04); }
.trow .num { color: var(--text-3); text-align: center; font-variant-numeric: tabular-nums; position: relative; }
.trow .num .play { display: none; color: var(--text); margin: 0 auto; }
.trow:hover .num .n { display: none; }
.trow:hover .num .play { display: grid; place-items: center; }
.trow.current .t { color: var(--accent); }
.trow.current .num .n { color: var(--accent); }
.trow .main-c { display: flex; align-items: center; gap: 12px; min-width: 0; }
.trow .main-c .art { width: 42px; height: 42px; border-radius: 8px; flex: none; }
.trow .main-c .txt { min-width: 0; }
.trow .t { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.trow .a { color: var(--text-2); font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.trow .c-album { color: var(--text-2); font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.trow .dur { color: var(--text-3); font-variant-numeric: tabular-nums; text-align: right; font-size: 13px; }
.trow .like { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; color: var(--text-3); opacity: 0; transition: opacity .15s, color .15s; }
.trow:hover .like, .trow .like.on { opacity: 1; }
.trow .like.on { color: var(--accent); }
.trow .like:hover { color: var(--text); }
.trow .more { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; color: var(--text-2); opacity: 0; }
.trow:hover .more { opacity: 1; }
.trow .more:hover { background: rgba(255,255,255,.06); color: var(--text); }
.eq { display: inline-flex; gap: 2px; align-items: flex-end; height: 14px; }
.eq i { width: 3px; background: var(--accent); border-radius: 2px; animation: eq 1s infinite ease-in-out; }
.eq i:nth-child(2) { animation-delay: -.4s; } .eq i:nth-child(3) { animation-delay: -.7s; }
.paused .eq i { animation-play-state: paused; }
@keyframes eq { 0%, 100% { height: 4px; } 50% { height: 14px; } }

/* ── player bar ────────────────────────────────────────────────────────────── */
.player {
  grid-column: 2; margin: 0 20px 18px; height: var(--player-h);
  display: grid; grid-template-columns: minmax(200px, 1fr) minmax(360px, 1.6fr) minmax(200px, 1fr); align-items: center; gap: 24px;
  padding: 12px 22px 12px 14px; border-radius: 22px; background: linear-gradient(180deg, rgba(19,28,36,.92), rgba(12,18,24,.96));
  border: 1px solid var(--line-2); box-shadow: 0 20px 50px rgba(0,0,0,.45); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
}
.player[hidden] { display: none; }
.player .now { display: flex; align-items: center; gap: 16px; min-width: 0; }
.player .now .art { width: 84px; height: 84px; border-radius: 14px; flex: none; cursor: pointer; }
.player .now .txt { min-width: 0; }
.player .now .t { font-weight: 700; font-size: 16px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.player .now .a { color: var(--text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.player .now .ctx { color: var(--text-3); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: 2px; }
.heart { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; color: var(--text-2); flex: none; transition: transform .2s var(--ease), color .2s; }
.heart:hover { color: var(--text); }
.heart.on { color: var(--accent); }
.heart.pop { animation: pop .35s var(--ease); }
/* Like+ counter button */
.likes { display: flex; align-items: center; justify-content: flex-end; gap: 2px; }
.plusbtn { position: relative; height: 34px; min-width: 34px; padding: 0 6px; border-radius: 999px; display: inline-flex; align-items: center;
  justify-content: center; gap: 3px; color: var(--text-3); opacity: 0; transition: opacity .15s, color .15s, background .15s; font-weight: 800; font-size: 12px; }
.plusbtn svg.i { width: 19px; height: 19px; }
.trow:hover .plusbtn, .plusbtn.on { opacity: 1; }
.plusbtn.on { color: var(--accent); }
.plusbtn:hover { color: var(--text); background: rgba(255,255,255,.06); }
.plusbtn.on:hover { color: var(--accent); }
.plusbtn.bump { animation: pop .35s var(--ease); }
.player .plusbtn, .full .plusbtn, .m-now .plusbtn { opacity: 1; color: var(--text-2); }
.player .plusbtn.on, .full .plusbtn.on, .m-now .plusbtn.on { color: var(--accent); filter: drop-shadow(0 0 6px rgba(34,216,143,.5)); }
.full .titles .plusbtn { height: 52px; min-width: 52px; border: 1px solid var(--line-2); font-size: 14px; }
.full .titles .plusbtn svg.i { width: 24px; height: 24px; }
/* owner's editor on their Top 150 */
.stepper { display: inline-flex; align-items: center; gap: 2px; border: 1px solid var(--line-2); border-radius: 999px; padding: 2px; }
.stepper button { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; color: var(--text-2); font-weight: 800; }
.stepper button:hover { background: rgba(255,255,255,.08); color: var(--text); }
.stepper b { min-width: 22px; text-align: center; color: var(--accent); font-size: 13px; }
.owner-count { color: var(--accent); font-weight: 800; font-size: 13px; }
.m-count { display: none; }
@keyframes pop { 50% { transform: scale(1.3); } }
.player .center { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.timeline { display: grid; grid-template-columns: 44px 1fr 44px; align-items: center; gap: 12px; color: var(--text-2); font-size: 12px; font-variant-numeric: tabular-nums; }
.timeline .r { text-align: right; } .timeline .l { text-align: left; }
.player .timeline .l { text-align: right; }
.range { position: relative; height: 18px; display: flex; align-items: center; cursor: pointer; touch-action: none; }
.range .track { position: absolute; left: 0; right: 0; height: 4px; border-radius: 4px; background: rgba(255,255,255,.12); overflow: hidden; }
.range .buf { position: absolute; left: 0; top: 0; bottom: 0; background: rgba(255,255,255,.12); }
.range .fill { position: absolute; left: 0; top: 0; bottom: 0; background: linear-gradient(90deg, var(--accent-2), var(--accent)); }
.range .knob { position: absolute; width: 14px; height: 14px; margin-left: -7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px rgba(34,216,143,.18), var(--accent-glow); transition: transform .15s; }
.range:hover .knob, .range.drag .knob { transform: scale(1.15); }
.controls { display: flex; align-items: center; justify-content: center; gap: 22px; }
.controls .icon-btn svg.i { width: 22px; height: 22px; }
.controls .icon-btn.on { color: var(--accent); }
.controls .icon-btn.on::after { content: ""; position: absolute; }
.controls .rep1 { position: relative; }
.controls .rep1 .one { position: absolute; top: 6px; right: 5px; font-size: 9px; font-weight: 800; color: var(--accent); }
.play-main {
  width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center; color: var(--accent-ink);
  background: radial-gradient(circle at 50% 35%, #45f0ad, var(--accent-2)); box-shadow: 0 0 0 6px rgba(34,216,143,.12), 0 0 30px rgba(34,216,143,.55);
  transition: transform .15s var(--ease), box-shadow .2s;
}
.play-main:hover { transform: scale(1.05); box-shadow: 0 0 0 7px rgba(34,216,143,.16), 0 0 40px rgba(34,216,143,.7); }
.play-main:active { transform: scale(.95); }
.play-main svg.i { width: 24px; height: 24px; }
.play-main.loading svg { animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.wave { height: 18px; display: flex; align-items: center; gap: 2px; cursor: pointer; padding: 0 56px; }
.wave i { flex: 1; min-width: 1px; border-radius: 2px; background: rgba(255,255,255,.18); }
.wave i.past { background: var(--accent); box-shadow: 0 0 6px rgba(34,216,143,.4); }
.player .right { display: flex; align-items: center; justify-content: flex-end; gap: 6px; }
.player .right .vol { width: 110px; }
.thumbs { display: flex; gap: 2px; }
.thumbs[hidden] { display: none; }
.thumbs .icon-btn.up.on { color: var(--accent); }
.thumbs .icon-btn.down.on { color: var(--danger); }

/* ── queue panel ───────────────────────────────────────────────────────────── */
.drawer {
  position: fixed; top: 12px; right: 12px; bottom: calc(var(--player-h) + 30px); width: 380px; z-index: 65; /* above the full-screen player (60), below dialogs (70) */
  background: rgba(13,19,25,.97); border: 1px solid var(--line-2); border-radius: 22px; box-shadow: 0 24px 80px rgba(0,0,0,.6);
  display: flex; flex-direction: column; transform: translateX(110%); transition: transform .35s var(--ease);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
}
.drawer.open { transform: none; }
.drawer header { display: flex; align-items: center; gap: 6px; padding: 14px 16px 8px 10px; }
.drawer header h3 { margin: 0; font-size: 18px; flex: 1; }
.drawer .grab { display: none; }
.drawer .close-q span { display: grid; place-items: center; }
.drawer .close-q .on-mobile { display: none; }
.drawer .body { flex: 1; min-height: 0; padding: 0 10px 16px; }
.drawer h4 { margin: 18px 12px 8px; color: var(--text-2); font-size: 12px; text-transform: uppercase; letter-spacing: 1px; }
.qrow { display: flex; align-items: center; gap: 12px; padding: 8px 10px; border-radius: 12px; cursor: pointer; }
.qrow:hover { background: rgba(255,255,255,.04); }
.qrow .art { width: 42px; height: 42px; border-radius: 8px; flex: none; }
.qrow .txt { flex: 1; min-width: 0; }
.qrow .t { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.qrow .a { color: var(--text-2); font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.qrow.current .t { color: var(--accent); }
.qrow .x { opacity: 0; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; color: var(--text-2); }
.qrow:hover .x { opacity: 1; }
.qrow .x:hover { color: var(--text); background: rgba(255,255,255,.06); }

/* ── full-screen player ────────────────────────────────────────────────────── */
.full {
  position: fixed; inset: 0; z-index: 60; background: var(--bg); display: flex; flex-direction: column; overflow: hidden;
  transform: translateY(100%); transition: transform .45s var(--ease); visibility: hidden;
}
.full.open { transform: none; visibility: visible; }
.full .glow { position: absolute; inset: -20%; z-index: 0; opacity: .5; filter: blur(80px) saturate(1.3); }
.full .glow .art { width: 100%; height: 100%; }
.full .veil { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(7,11,16,.55), rgba(7,11,16,.92) 60%, var(--bg)); z-index: 0; }
.full .inner { position: relative; z-index: 1; height: 100%; display: flex; flex-direction: column; max-width: 560px; width: 100%; margin: 0 auto; padding: max(16px, env(safe-area-inset-top)) 28px max(24px, env(safe-area-inset-bottom)); }
.full .bar { display: flex; align-items: center; justify-content: space-between; height: 52px; }
.full .bar .ctx { text-align: center; min-width: 0; flex: 1; padding: 0 10px; }
.full .bar .ctx small { display: block; color: var(--text-3); font-size: 11px; text-transform: uppercase; letter-spacing: 1.5px; font-weight: 700; }
.full .bar .ctx b { display: block; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.full .cover-wrap { flex: 1; min-height: 0; display: flex; align-items: center; justify-content: center; padding: 18px 0 26px; }
.full .cover { height: min(100%, 560px); max-width: 100%; aspect-ratio: 1; flex: none; border-radius: 20px; box-shadow: 0 30px 80px rgba(0,0,0,.6), 0 0 80px -20px rgba(34,216,143,.35); transition: transform .5s var(--ease); }
.full.paused .cover { transform: scale(.94); }
.full .titles { display: flex; align-items: center; gap: 14px; }
.full .titles .txt { flex: 1; min-width: 0; }
.full .titles .t { font-size: clamp(24px, 6vw, 32px); font-weight: 800; letter-spacing: -.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.full .titles .a { color: var(--text-2); font-size: 18px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.full .titles .heart { width: 52px; height: 52px; border: 1px solid var(--line-2); }
.full .titles .heart svg.i { width: 24px; height: 24px; }
.full .seek { margin-top: 24px; }
.full .seek .times { display: flex; justify-content: space-between; color: var(--text-2); font-size: 13px; margin-top: 6px; font-variant-numeric: tabular-nums; }
.full .ctrl { display: flex; align-items: center; justify-content: center; gap: 40px; margin: 22px 0 8px; }
.full .ctrl .skip svg.i { width: 34px; height: 34px; }
.full .ctrl .skip { color: #fff; }
.full .ctrl .play-ring {
  width: 92px; height: 92px; border-radius: 50%; display: grid; place-items: center; color: var(--accent);
  border: 2px solid var(--accent); box-shadow: 0 0 30px rgba(34,216,143,.45), inset 0 0 22px rgba(34,216,143,.25);
  transition: transform .15s;
}
.full .ctrl .play-ring:active { transform: scale(.95); }
.full .ctrl .play-ring svg.i { width: 36px; height: 36px; }
.full .ctrl .play-ring.is-play svg.i { margin-left: 5px; }
.full .modes { display: flex; justify-content: center; gap: 80px; color: var(--accent); }
.full .modes .icon-btn { color: var(--text-3); }
.full .modes .icon-btn.on { color: var(--accent); }
.full .volrow { display: flex; align-items: center; gap: 14px; margin-top: 18px; color: var(--text-2); }
.full .volrow .range { flex: 1; }
.full .extra { display: flex; justify-content: center; gap: 10px; margin-top: 14px; }

/* ── menus, modals, toasts ─────────────────────────────────────────────────── */
.menu {
  position: fixed; z-index: 80; min-width: 230px; max-width: 300px; padding: 6px; border-radius: 14px;
  background: #121a22; border: 1px solid var(--line-2); box-shadow: 0 20px 50px rgba(0,0,0,.6);
  animation: fadein .14s var(--ease);
}
.menu button, .menu a { display: flex; align-items: center; gap: 12px; width: 100%; padding: 10px 12px; border-radius: 9px; text-align: left; color: var(--text); font-weight: 500; }
.menu button:hover, .menu a:hover { background: rgba(255,255,255,.06); }
.menu svg.i { width: 18px; height: 18px; color: var(--text-2); }
.menu hr { border: 0; border-top: 1px solid var(--line); margin: 5px 6px; }
.menu .label { padding: 8px 12px 4px; color: var(--text-3); font-size: 11px; text-transform: uppercase; letter-spacing: 1px; }
.menu .sub { max-height: 260px; overflow-y: auto; }
@keyframes fadein { from { opacity: 0; transform: translateY(-4px) scale(.98); } }
.scrim { position: fixed; inset: 0; z-index: 70; background: rgba(0,0,0,.55); backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px); display: grid; place-items: center; padding: 20px; animation: fadein .15s; }
.modal { width: min(440px, 100%); background: #10171e; border: 1px solid var(--line-2); border-radius: 20px; padding: 24px; box-shadow: 0 30px 80px rgba(0,0,0,.6); }
.modal h3 { margin: 0 0 16px; font-size: 20px; }
.modal .field { display: block; margin-bottom: 14px; }
.modal .field span { display: block; color: var(--text-2); font-size: 13px; margin-bottom: 6px; }
.input { width: 100%; height: 46px; padding: 0 16px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--line-2); outline: none; transition: border-color .2s, box-shadow .2s; }
.input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
textarea.input { height: 90px; padding: 12px 16px; resize: vertical; }
.modal .row { display: flex; justify-content: flex-end; gap: 10px; margin-top: 18px; }
.toasts { position: fixed; left: 50%; bottom: calc(var(--player-h) + 40px); transform: translateX(-50%); z-index: 90; display: flex; flex-direction: column; gap: 8px; align-items: center; pointer-events: none; }
.toast { background: #e9f2ee; color: #08130e; padding: 11px 18px; border-radius: 12px; font-weight: 600; box-shadow: 0 10px 30px rgba(0,0,0,.45); animation: toast .25s var(--ease); max-width: 90vw; }
.toast.err { background: #ff5d6c; color: #fff; }
@keyframes toast { from { opacity: 0; transform: translateY(8px); } }

/* ── search ────────────────────────────────────────────────────────────────── */
.searchbar { position: relative; max-width: 620px; }
.searchbar svg.i { position: absolute; left: 18px; top: 50%; transform: translateY(-50%); color: var(--text-2); }
.searchbar input { width: 100%; height: 54px; border-radius: 999px; padding: 0 52px; background: var(--surface-2); border: 1px solid var(--line-2); outline: none; font-size: 16px; transition: border-color .2s, box-shadow .2s; }
.searchbar input:focus { border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.searchbar .clear { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); }
.top-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr); gap: 22px; }
.top-result { position: relative; padding: 22px; border-radius: 20px; background: var(--surface); border: 1px solid var(--line); transition: background .2s; display: block; }
.top-result:hover { background: var(--surface-2); }
.top-result .art { width: 108px; height: 108px; border-radius: 12px; box-shadow: 0 10px 30px rgba(0,0,0,.4); }
.top-result.artist .art { border-radius: 50%; }
.top-result .t { font-size: 30px; font-weight: 800; margin-top: 18px; letter-spacing: -.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.top-result .play-fab { position: absolute; right: 22px; bottom: 22px; width: 54px; height: 54px; background: var(--accent); color: var(--accent-ink); border: 0; box-shadow: var(--accent-glow); }
.pill { display: inline-block; padding: 3px 10px; border-radius: 999px; background: rgba(255,255,255,.08); font-size: 12px; font-weight: 700; color: var(--text); margin-left: 6px; }

/* Soulseek results + downloads */
.slsk-list { display: flex; flex-direction: column; gap: 6px; }
.srow { display: flex; align-items: center; gap: 14px; padding: 10px 12px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); }
.srow.best { border-color: rgba(34,216,143,.3); background: linear-gradient(90deg, rgba(34,216,143,.08), var(--surface) 60%); }
.srow .art { width: 44px; height: 44px; border-radius: 10px; flex: none; }
.srow .txt { flex: 1; min-width: 0; }
.srow .t { font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.srow .a { color: var(--text-2); font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.srow .m { color: var(--text-3); font-size: 12px; margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.srow .act { flex: none; }
.srow .bar { height: 4px; border-radius: 4px; background: rgba(255,255,255,.08); overflow: hidden; margin-top: 7px; }
.srow .bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--accent-2), var(--accent)); transition: width .6s var(--ease); }
.srow.job.done .ph { color: var(--accent); }
.srow.job.failed .ph { color: var(--danger); }
.srow .btn:disabled { opacity: .5; }
.srow .retry { display: inline-flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.srow.album .art { border-radius: 8px; }
.slsk-tabs { margin: 4px 0 12px; }

/* settings: people + switches */
.setting { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 16px 18px; border-radius: 16px;
  background: var(--surface); border: 1px solid var(--line); margin-bottom: 12px; cursor: pointer; }
.setting .muted { font-size: 13px; margin-top: 2px; }
.toggle { position: relative; width: 50px; height: 28px; flex: none; border-radius: 999px; background: rgba(255,255,255,.14); transition: background .2s; }
.toggle i { position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; transition: transform .2s var(--ease); }
.toggle.on { background: var(--accent); box-shadow: 0 0 14px rgba(34,216,143,.4); }
.toggle.on i { transform: translateX(22px); }
.people { display: flex; flex-direction: column; gap: 8px; }
.person { display: flex; align-items: center; gap: 14px; padding: 12px 14px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); }
.person .txt { flex: 1; min-width: 0; }
.person .t { font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.person .a { color: var(--text-2); font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.avatar.sm { width: 40px; height: 40px; font-size: 15px; box-shadow: none; flex: none; }

.top-cover { aspect-ratio: 1; border-radius: 12px; background: linear-gradient(135deg, #1b6b4c, #0b2a22 60%, #071510); }
.top-cover .mosaic { opacity: .45; filter: saturate(.8); }
.top-badge { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; color: #fff;
  font-weight: 800; font-size: 13px; letter-spacing: 3px; text-shadow: 0 2px 18px rgba(0,0,0,.6); }
.top-badge b { display: block; font-size: 46px; letter-spacing: -1px; line-height: 1; color: var(--accent);
  filter: drop-shadow(0 0 14px rgba(34,216,143,.55)); }
.detail-head .top-cover .top-badge b { font-size: 72px; }

/* offline downloads */
.icon-btn.dl.on { color: var(--accent); }
.icon-btn.dl.on svg.i { width: 26px; height: 26px; filter: drop-shadow(0 0 6px rgba(34,216,143,.5)); }
.icon-btn.dl.busy { position: relative; color: var(--accent); }
.icon-btn.dl .ring { position: absolute; inset: 7px; border-radius: 50%;
  background: conic-gradient(var(--accent) calc(var(--p) * 1%), rgba(255,255,255,.12) 0);
  -webkit-mask: radial-gradient(circle, transparent 58%, #000 60%); mask: radial-gradient(circle, transparent 58%, #000 60%); }
.icon-btn.dl .pct { font-size: 10px; font-weight: 800; color: var(--text); position: relative; }
.trow.cached .t::after { content: ""; display: inline-block; width: 12px; height: 12px; margin-left: 7px; vertical-align: -1px;
  border-radius: 50%; background: var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2304130c' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 6v10M7.5 11.5 12 16l4.5-4.5'/%3E%3C/svg%3E") center / 10px no-repeat; }
body.is-offline .topbar .sub::before { content: "Offline • "; color: var(--accent); font-weight: 700; }
.scanbar svg.i { width: 22px; height: 22px; color: var(--accent); flex: none; }

.update-bar { position: fixed; left: 50%; transform: translateX(-50%); top: max(12px, env(safe-area-inset-top)); z-index: 95;
  display: inline-flex; align-items: center; gap: 10px; padding: 11px 18px; border-radius: 999px; font-weight: 700;
  color: var(--accent-ink); background: linear-gradient(180deg, #34e6a0, var(--accent-2)); box-shadow: 0 10px 30px rgba(0,0,0,.45), var(--accent-glow); }
.update-bar svg.i { width: 18px; height: 18px; }

/* library tabs */
.tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 22px; }
.alpha { display: flex; flex-wrap: wrap; gap: 4px; margin: -8px 0 18px; }
.alpha button { width: 30px; height: 30px; border-radius: 8px; color: var(--text-2); font-weight: 700; font-size: 12px; }
.alpha button:hover { background: rgba(255,255,255,.05); color: var(--text); }
.alpha button.on { background: var(--accent); color: var(--accent-ink); }
.empty { text-align: center; padding: 70px 20px; color: var(--text-2); }
.empty svg.i { width: 48px; height: 48px; color: var(--text-3); margin-bottom: 12px; }
.empty h3 { color: var(--text); margin: 0 0 6px; font-size: 20px; }
.empty .btn { margin-top: 18px; }
.loader { display: grid; place-items: center; padding: 80px; }
.spinner { width: 34px; height: 34px; border-radius: 50%; border: 3px solid rgba(255,255,255,.1); border-top-color: var(--accent); animation: spin .8s linear infinite; }
.skel { background: linear-gradient(90deg, rgba(255,255,255,.04), rgba(255,255,255,.08), rgba(255,255,255,.04)); background-size: 200% 100%; animation: skel 1.4s infinite; border-radius: 12px; }
@keyframes skel { to { background-position: -200% 0; } }
.scanbar { margin-top: 10px; padding: 12px 16px; border-radius: 14px; background: var(--accent-soft); color: var(--text); border: 1px solid rgba(34,216,143,.25); display: flex; align-items: center; gap: 12px; }
.scanbar .spinner { width: 18px; height: 18px; border-width: 2px; }
.stat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.stat { padding: 16px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); }
.stat b { display: block; font-size: 24px; font-weight: 800; }
.stat span { color: var(--text-2); font-size: 13px; }
.seed-list { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 14px; }
.seed-list .chip button { margin-left: 2px; color: var(--text-3); display: grid; place-items: center; }
.seed-list .chip button:hover { color: var(--text); }

/* ── mobile chrome (hidden on desktop) ─────────────────────────────────────── */
.m-head, .m-now, .tabbar, .m-greet { display: none; }

/* ── responsive ────────────────────────────────────────────────────────────── */
@media (max-width: 1280px) {
  .shelf { grid-auto-columns: calc((100% - 3 * 18px) / 4); }
  .hero-row { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); }
  .hero-row .feature-card:last-of-type { display: none; }
}
@media (max-width: 1080px) {
  :root { --sidebar: 84px; }
  .brand span, .nav a span, .nav .head, .side-playlists, .mini-side, .nav .dot { display: none; }
  .brand { justify-content: center; padding: 0 0 22px; }
  .nav a { justify-content: center; padding: 13px; }
  .player { grid-template-columns: minmax(160px, 1fr) minmax(300px, 1.6fr) auto; }
  .player .right .vol, .player .right .vol-btn { display: none; }
  .top-grid { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  :root { --player-h: 0px; }
  body { font-size: 15px; }
  .app { display: block; height: 100dvh; }
  .sidebar, .topbar, .player { display: none !important; }
  .main { height: 100dvh; }
  .view { padding: 0 16px calc(var(--tabbar-h) + 76px + env(safe-area-inset-bottom)); }

  .m-head { display: flex; align-items: center; gap: 12px; padding: max(14px, env(safe-area-inset-top)) 16px 8px; position: sticky; top: 0; z-index: 10;
    background: linear-gradient(180deg, var(--bg) 70%, transparent); }
  .m-head .brand { padding: 0; font-size: 22px; flex: 1; justify-content: flex-start; }
  .m-head .bell { margin-left: auto; }
  .m-head .brand span { display: inline; }
  .m-head .back { margin-left: -8px; }
  .m-greet { display: block; font-size: 26px; font-weight: 700; margin: 6px 0 16px; letter-spacing: -.4px; }

  .tabbar {
    display: grid; grid-template-columns: repeat(4, 1fr); position: fixed; left: 10px; right: 10px; bottom: max(10px, env(safe-area-inset-bottom)); z-index: 30;
    height: var(--tabbar-h); border-radius: 22px; background: rgba(14,20,26,.94); border: 1px solid var(--line-2);
    backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); box-shadow: 0 10px 40px rgba(0,0,0,.5);
  }
  .tabbar a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; color: var(--text-2); font-size: 11px; font-weight: 600; }
  .tabbar a svg.i { width: 23px; height: 23px; }
  .tabbar a.active { color: var(--accent); }
  .tabbar a.active svg { filter: drop-shadow(0 0 6px rgba(34,216,143,.6)); }

  .m-now {
    display: block; position: fixed; left: 10px; right: 10px; bottom: calc(max(10px, env(safe-area-inset-bottom)) + var(--tabbar-h) + 8px); z-index: 29;
    padding: 5px 6px 5px 5px; border-radius: 14px; background: rgba(17,25,32,.96); border: 1px solid var(--line-2);
    backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); box-shadow: 0 10px 40px rgba(0,0,0,.5);
  }
  .m-now[hidden] { display: none; }
  .m-now .lbl { display: none; }
  .m-now .row { display: flex; align-items: center; gap: 10px; }
  .m-now .art { width: 34px; height: 34px; border-radius: 8px; flex: none; }
  .m-now .txt { flex: 1; min-width: 0; }
  .m-now .t { font-weight: 700; font-size: 14px; line-height: 1.2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .m-now .a { color: var(--text-2); font-size: 12px; line-height: 1.2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .m-now .heart { width: 30px; height: 30px; }
  .m-now .heart svg.i { width: 18px; height: 18px; }
  .m-now .plusbtn { height: 30px; min-width: 30px; padding: 0 4px; font-size: 11px; flex: none; }
  .m-now .plusbtn svg.i { width: 18px; height: 18px; }
  .m-now .play-main { width: 34px; height: 34px; box-shadow: 0 0 0 3px rgba(34,216,143,.12), 0 0 14px rgba(34,216,143,.4); }
  .m-now .play-main svg.i { width: 15px; height: 15px; }
  .m-now .prog { position: absolute; left: 14px; right: 14px; bottom: 0; height: 2px; border-radius: 2px; overflow: hidden; background: rgba(255,255,255,.08); }
  .m-now .prog i { display: block; height: 100%; background: var(--accent); width: 0; }

  .hero-row { display: block; }
  .hero-row .feature-card, .hero-arrow { display: none; }
  .hero { aspect-ratio: auto; min-height: 0; height: 380px; border-radius: 22px; }
  .hero-slide .content { max-width: 100%; justify-content: flex-start; padding: 28px 24px 74px; }
  .hero-slide .bg .cover { width: 100%; }
  .hero-slide .bg .cover img { -webkit-mask-image: none; mask-image: none; }
  .hero-slide .shade { background: linear-gradient(180deg, rgba(6,10,14,.8) 0%, rgba(6,10,14,.25) 45%, rgba(6,10,14,.75) 100%); }
  .hero-slide h3 { font-size: 46px; margin-top: 16px; }
  .hero-slide .content .btn { margin-top: auto; align-self: flex-start; }
  .hero-slide .by { margin-bottom: 0; font-size: 18px; }
  .hero-slide .count { bottom: 20px; }
  .hero-dots { bottom: 32px; }

  .section { margin-top: 26px; }
  .section-head h2 { font-size: 21px; }
  .shelf { grid-auto-columns: 42%; gap: 12px; margin: 0 -16px; padding: 0 16px 4px; scroll-padding: 0 16px; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .card { padding: 8px 8px 12px; border-radius: 16px; }
  .card .play-fab { width: 38px; height: 38px; right: 14px; top: calc(100% - 84px); }
  .card .t { font-size: 15px; }

  .detail-head { flex-direction: column; align-items: center; text-align: center; padding: 22px 16px; gap: 16px; }
  .detail-head .cover { width: min(64vw, 260px); }
  .detail-head .facts { justify-content: center; }
  .actions { justify-content: center; }
  .tracks .thead { display: none; }
  .tracks .trow, .tracks.no-album .trow { grid-template-columns: minmax(0, 1fr) auto 36px; padding: 0 4px; gap: 6px; height: 64px; }
  .trow .plusbtn:not(.on) { display: none; }
  .trow.has-mcount { height: auto; padding-top: 8px; padding-bottom: 8px; }
  .m-count { display: block; margin-top: 5px; }
  .m-count .stepper button { width: 30px; height: 30px; }
  .trow .num, .trow .c-album, .trow .dur { display: none; }
  .trow .like, .trow .more { opacity: 1; }
  .trow .like:not(.on) { display: none; }
  .tracks.numbered .trow .main-c .art { display: none; }

  .drawer { top: auto; left: 0; right: 0; bottom: 0; width: auto; height: 82dvh; border-radius: 24px 24px 0 0; transform: translateY(100%); padding-bottom: env(safe-area-inset-bottom); }
  .drawer.open { transform: none; }
  .drawer .grab { display: flex; justify-content: center; padding: 10px 0 2px; cursor: grab; touch-action: none; }
  .drawer .grab i { width: 42px; height: 5px; border-radius: 3px; background: rgba(255,255,255,.25); }
  .drawer header { padding-top: 4px; touch-action: none; }
  .drawer .close-q .on-mobile { display: grid; }
  .drawer .close-q .on-desktop { display: none; }
  .toasts { bottom: calc(var(--tabbar-h) + 84px); }
  .top-result .t { font-size: 24px; }
  .tabs { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin: 0 -16px 20px; padding: 0 16px; }
  .tabs::-webkit-scrollbar { display: none; }
  .tabs .chip { flex: none; }
  .srow { gap: 10px; padding: 9px 10px; }
  .srow .pill { display: none; }
  .srow .retry { flex-direction: column; align-items: stretch; }
  .srow .retry .btn { height: 32px; padding: 0 12px; }
  .searchbar input { height: 50px; }
  .menu { left: 8px !important; right: 8px; bottom: 8px; top: auto !important; max-width: none; padding: 8px; border-radius: 20px; padding-bottom: max(8px, env(safe-area-inset-bottom)); }
  .menu button, .menu a { padding: 13px 14px; font-size: 16px; }
}

@media (hover: none) {
  .card .play-fab { opacity: .95; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
