:root {
  --bg: #05080c;
  --panel: #0d151d;
  --panel2: #111d27;
  --line: #1d2c38;
  --text: #eaf6f5;
  --muted: #7f95a3;
  --teal: #55e6d2;
  --teal2: #2fb8a8;
  --amber: #ffb65c;
  --shadow: 0 18px 60px rgba(0,0,0,.55);
  --sat: env(safe-area-inset-top, 0px);
  --sab: env(safe-area-inset-bottom, 0px);
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; min-height: 100%; background: var(--bg); color: var(--text); }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  overflow-x: hidden;
  background:
    radial-gradient(1200px 500px at 100% -10%, rgba(85,230,210,.10), transparent 60%),
    radial-gradient(900px 500px at -10% 10%, rgba(255,182,92,.06), transparent 55%),
    var(--bg);
  padding-bottom: calc(104px + var(--sab));
}
button, input { font: inherit; color: inherit; }
button { border: 0; background: none; cursor: pointer; }
svg { width: 22px; height: 22px; fill: currentColor; display: block; }
#app { width: 100%; max-width: 760px; margin: 0 auto; padding: calc(16px + var(--sat)) 16px 0; }

.topbar { display: flex; align-items: center; justify-content: space-between; padding: 4px 2px 14px; }
.brand { display: flex; align-items: center; gap: 10px; }
.mark {
  width: 38px; height: 38px; border-radius: 12px; color: var(--teal);
  display: grid; place-items: center;
  background: linear-gradient(145deg, #0f2026, #071014);
  border: 1px solid #1c3a3d;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.07), 0 6px 18px rgba(0,0,0,.3);
}
.mark svg { width: 25px; height: 25px; }
.brandtext { display: flex; flex-direction: column; line-height: 1; }
.brandtext strong { font-size: 19px; letter-spacing: 2px; }
.brandtext span { color: var(--muted); font-size: 8px; letter-spacing: 2.2px; margin-top: 5px; }
.iconbtn {
  width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center;
  color: var(--muted); background: rgba(255,255,255,.025); border: 1px solid var(--line);
}
.iconbtn:active { transform: scale(.94); }

.hero { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; padding: 10px 2px 18px; }
.eyebrow { color: var(--teal2); font-size: 8px; letter-spacing: 2.6px; margin-bottom: 8px; }
.hero h1 { margin: 0; font-size: 27px; line-height: 1.18; letter-spacing: .5px; font-weight: 650; }
.countbox { text-align: right; min-width: 76px; flex: none; padding-bottom: 2px; }
.countbox b { display: block; font-size: 26px; color: var(--teal); line-height: 1; font-variant-numeric: tabular-nums; }
.countbox span { color: var(--muted); font-size: 9px; letter-spacing: 1px; }

.searchwrap {
  display: flex; align-items: center; gap: 8px; height: 46px; padding: 0 12px; max-width: 100%;
  border-radius: 14px; background: rgba(13,21,29,.9); border: 1px solid var(--line);
  position: sticky; top: calc(8px + var(--sat)); z-index: 8;
  backdrop-filter: blur(18px);
}
.searchwrap > svg { color: var(--muted); width: 18px; height: 18px; flex: none; }
.searchwrap input { flex: 1 1 0; width: 0; min-width: 0; border: 0; outline: 0; background: transparent; font-size: 13.5px; }
.searchwrap input::placeholder { color: #5d7280; }
.clear { color: var(--muted); font-size: 20px; width: 26px; height: 26px; display: none; }
.clear.show { display: block; }

.tabs { display: flex; gap: 4px; padding: 14px 2px 8px; position: sticky; top: calc(64px + var(--sat)); z-index: 7; background: linear-gradient(var(--bg) 65%, transparent); }
.tab {
  padding: 8px 14px; border-radius: 99px; color: var(--muted); font-size: 12px;
  border: 1px solid transparent; letter-spacing: .5px;
}
.tab.active { color: var(--teal); background: rgba(85,230,210,.08); border-color: rgba(85,230,210,.22); }

.list { display: flex; flex-direction: column; gap: 2px; padding-top: 4px; }
.row {
  display: flex; align-items: center; gap: 12px; padding: 8px 8px; border-radius: 13px;
  border: 1px solid transparent; position: relative; background: transparent;
  transition: background .15s ease, border-color .15s ease;
}
.row:active { background: rgba(255,255,255,.035); }
.row.current { background: rgba(85,230,210,.055); border-color: rgba(85,230,210,.10); }
.cover {
  width: 46px; height: 46px; border-radius: 10px; flex: none; overflow: hidden;
  background: linear-gradient(145deg, #183039, #0a1116);
  border: 1px solid #243945; display: grid; place-items: center; color: #58717c;
  font-size: 20px; position: relative;
}
.cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cover.small { width: 42px; height: 42px; border-radius: 9px; }
.cover.big { width: 100%; height: 100%; border-radius: 18px; font-size: 72px; }
.rowtext { min-width: 0; flex: 1; }
.rowtitle { font-size: 13.5px; font-weight: 560; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rowsub { color: var(--muted); font-size: 10.5px; margin-top: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rowmeta { color: #617684; font-size: 10px; font-variant-numeric: tabular-nums; flex: none; padding-right: 4px; }
.row.current .rowtitle { color: var(--teal); }
.eq { display: none; width: 14px; height: 14px; align-items: flex-end; gap: 2px; margin-right: 2px; }
.row.current.playing .eq { display: flex; }
.eq i { width: 3px; background: var(--teal); border-radius: 2px; animation: eq .8s ease-in-out infinite alternate; }
.eq i:nth-child(1) { height: 7px; }
.eq i:nth-child(2) { height: 13px; animation-delay: .2s; }
.eq i:nth-child(3) { height: 9px; animation-delay: .4s; }
@keyframes eq { from { transform: scaleY(.45); } to { transform: scaleY(1); } }

.grouphead { padding: 18px 8px 6px; color: var(--muted); font-size: 9px; letter-spacing: 2px; }

.empty { text-align: center; padding: 64px 24px; color: var(--muted); }
.emptyart { font-size: 46px; color: #2a4b53; margin-bottom: 12px; }
.empty h2 { color: var(--text); font-size: 17px; margin: 0 0 10px; font-weight: 600; }
.empty p { font-size: 12px; line-height: 1.8; margin: 0; }
.empty code { color: var(--teal); font-size: 11px; word-break: break-all; }
.empty p, .empty code { overflow-wrap: anywhere; }

.mini {
  position: fixed; left: 12px; right: 12px; bottom: calc(12px + var(--sab)); z-index: 30;
  background: rgba(13,22,30,.94); border: 1px solid #233640; border-radius: 16px;
  box-shadow: 0 18px 50px rgba(0,0,0,.55); backdrop-filter: blur(22px); overflow: hidden;
  max-width: 736px; margin: 0 auto;
  animation: rise .28s cubic-bezier(.22,.8,.3,1);
}
@keyframes rise { from { transform: translateY(16px); opacity: 0; } to { transform: none; opacity: 1; } }
.minihit { display: flex; align-items: center; gap: 10px; padding: 8px 10px; }
.minitext { flex: 1; min-width: 0; }
.minitext b { display: block; font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.minitext span { display: block; color: var(--muted); font-size: 10px; margin-top: 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.roundbtn {
  width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center;
  background: var(--teal); color: #03100f; flex: none;
}
.roundbtn svg { width: 19px; height: 19px; }
.roundbtn.ghost { background: transparent; color: var(--muted); }
.roundbtn.ghost svg { width: 18px; height: 18px; }
.minibar { height: 2px; background: #18252c; }
.minibar i { display: block; height: 100%; width: 0%; background: linear-gradient(90deg, var(--teal2), var(--teal)); transition: width .25s linear; }

.player {
  position: fixed; inset: 0; z-index: 60; background: #05080c;
  padding: calc(18px + var(--sat)) 24px calc(24px + var(--sab));
  display: flex; flex-direction: column;
  transform: translateY(102%); transition: transform .34s cubic-bezier(.22,.8,.3,1);
  background: radial-gradient(800px 500px at 50% 0%, rgba(85,230,210,.10), transparent 65%), #05080c;
}
.player.open { transform: none; }
.playerhead { display: flex; align-items: center; justify-content: space-between; }
.playerlabel { color: var(--muted); font-size: 8px; letter-spacing: 2.6px; }
.bigcover { width: min(78vw, 330px); aspect-ratio: 1; border-radius: 18px; margin: 26px auto 22px; overflow: hidden; background: linear-gradient(145deg,#183039,#091116); border: 1px solid #263b46; box-shadow: var(--shadow); display: grid; place-items: center; color: #42606b; font-size: 72px; }
.bigcover img { width: 100%; height: 100%; object-fit: cover; }
.songmeta { text-align: center; padding: 0 10px; }
.songmeta h2 { margin: 0; font-size: 20px; font-weight: 650; line-height: 1.35; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.songmeta p { margin: 7px 0 0; color: var(--muted); font-size: 12px; }
.songmeta .album { font-size: 10px; color: #5f7581; margin-top: 5px; }
.seekwrap { margin-top: auto; padding-top: 30px; }
.seekwrap input { width: 100%; accent-color: var(--teal); height: 20px; display: block; }
.times { display: flex; justify-content: space-between; color: #667c87; font-size: 9px; font-variant-numeric: tabular-nums; margin-top: 2px; }
.controls { display: flex; align-items: center; justify-content: space-between; padding: 18px 4px 6px; }
.ctl { width: 44px; height: 44px; color: #92a7b2; display: grid; place-items: center; border-radius: 50%; }
.ctl svg { width: 22px; height: 22px; }
.ctl.big svg { width: 28px; height: 28px; }
.ctl.active { color: var(--teal); }
.playbtn { width: 66px; height: 66px; border-radius: 50%; display: grid; place-items: center; background: var(--teal); color: #03100f; box-shadow: 0 10px 30px rgba(85,230,210,.18); }
.playbtn svg { width: 28px; height: 28px; }
.ico-pause { display: none; }
.playing .ico-play { display: none; }
.playing .ico-pause { display: block; }
.playerhint { text-align: center; color: #4b626d; font-size: 9px; letter-spacing: 1.2px; margin-top: 14px; }

.sheet { position: fixed; inset: 0; z-index: 70; background: rgba(0,0,0,.55); opacity: 0; pointer-events: none; transition: opacity .2s ease; }
.sheet.open { opacity: 1; pointer-events: auto; }
.sheetpanel { position: absolute; left: 0; right: 0; bottom: 0; max-height: 70vh; background: #0a1218; border-top: 1px solid #22343f; border-radius: 22px 22px 0 0; padding: 8px 16px calc(20px + var(--sab)); transform: translateY(100%); transition: transform .28s ease; overflow: auto; }
.sheet.open .sheetpanel { transform: none; }
.sheethandle { width: 38px; height: 4px; border-radius: 99px; background: #2a3d48; margin: 4px auto 10px; }
.sheethead { display: flex; align-items: center; justify-content: space-between; padding: 0 2px 6px; }
.sheethead h3 { margin: 0; font-size: 14px; font-weight: 600; color: var(--text); }
.queuelist .row { padding: 7px 4px; }
.queuehead { display: flex; justify-content: space-between; color: var(--muted); font-size: 9px; letter-spacing: 1.5px; padding: 10px 6px 4px; }

.toast { position: fixed; left: 50%; bottom: calc(90px + var(--sab)); transform: translate(-50%, 10px); background: #14232b; color: var(--text); font-size: 11px; padding: 8px 14px; border-radius: 99px; border: 1px solid #2a414d; opacity: 0; pointer-events: none; transition: .2s ease; z-index: 80; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

@media (min-width: 720px) {
  #app { padding-left: 24px; padding-right: 24px; }
  .hero h1 { font-size: 36px; }
  .list { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 14px; }
  .row { padding: 9px 10px; }
}
