:root { color-scheme: dark; --bg: #0b0d12; --panel: #141821; --panel2: #1b2030; --line: #232937; --fg: #e6e9ef; --muted: #8a93a6; --accent: #5eead4; }
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; background: var(--bg); color: var(--fg);
  font: 15px/1.4 -apple-system, BlinkMacSystemFont, "PingFang SC", "Noto Sans SC", system-ui, sans-serif; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
a { color: var(--muted); }
.muted { color: var(--muted); font-size: 13px; }
[hidden] { display: none !important; }

header { padding: calc(14px + env(safe-area-inset-top)) 16px 6px; position: sticky; top: 0; background: linear-gradient(var(--bg) 85%, transparent); z-index: 2; }
.brand { display: flex; align-items: center; justify-content: space-between; }
.brand h1 { margin: 0; font-size: 22px; letter-spacing: .5px; } .brand h1 b { color: var(--accent); }
.search { margin-top: 10px; display: flex; align-items: center; gap: 8px; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 0 12px; color: var(--muted); }
.search input { flex: 1; background: none; border: 0; color: var(--fg); font: inherit; padding: 10px 0; outline: none; min-width: 0; }
.chips { display: flex; gap: 8px; overflow-x: auto; padding: 12px 0 4px; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip { flex: none; padding: 6px 13px; border-radius: 999px; background: var(--panel); border: 1px solid var(--line); font-size: 13px; color: var(--muted); }
.chip.on { background: var(--accent); color: #062a24; border-color: var(--accent); font-weight: 600; }

.hero { margin: 6px 16px 4px; width: calc(100% - 32px); text-align: left; border-radius: 18px; padding: 16px; background: radial-gradient(120% 140% at 0% 0%, #1f3b4d 0%, #141821 55%); border: 1px solid var(--line); display: flex; gap: 14px; align-items: center; }
.hero > span:last-child { display: flex; flex-direction: column; }
.hero .play { width: 52px; height: 52px; border-radius: 50%; background: var(--accent); color: #062a24; display: grid; place-items: center; font-size: 22px; flex: none; }
.count { padding: 12px 16px 2px; }
ol.tracks { list-style: none; margin: 0; padding: 0 8px; }
ol.tracks li { display: flex; align-items: center; gap: 12px; padding: 10px 8px; border-radius: 12px; cursor: pointer; }
ol.tracks li:active, ol.tracks li.on { background: var(--panel); } ol.tracks li.on .t { color: var(--accent); }
.tile { width: 48px; height: 48px; border-radius: 10px; flex: none; position: relative; overflow: hidden; }
.tile .ini { position: absolute; inset: 0; display: grid; place-items: center; font-weight: 700; font-size: 15px; color: rgba(255,255,255,.75); letter-spacing: .5px; }
.tile .eq { position: absolute; inset: 0; display: none; align-items: flex-end; justify-content: center; gap: 3px; padding-bottom: 12px; background: rgba(0,0,0,.35); }
.tile .eq i { width: 4px; height: 6px; border-radius: 2px; background: var(--accent); }
li.on .tile .eq, .tile.on .eq { display: flex; }
li.on .tile .ini, .tile.on .ini { display: none; }
.playing li.on .tile .eq i, .playing .tile.on .eq i { animation: eq .9s ease-in-out infinite alternate; }
.tile .eq i:nth-child(2) { animation-delay: -.3s !important; } .tile .eq i:nth-child(3) { animation-delay: -.6s !important; }
@keyframes eq { from { height: 5px; } to { height: 22px; } }
.mini .tile .eq { padding-bottom: 9px; } .mini .tile .ini { font-size: 13px; }
.meta { flex: 1; min-width: 0; }
.t { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.s { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dur { color: var(--muted); font-size: 13px; flex: none; }
footer.lic { text-align: center; font-size: 11px; color: #5b6375; padding: 24px 0 calc(100px + env(safe-area-inset-bottom)); }

.mini { position: fixed; left: 8px; right: 8px; bottom: calc(8px + env(safe-area-inset-bottom)); background: rgba(27, 32, 48, .97); backdrop-filter: blur(12px); border: 1px solid var(--line); border-radius: 16px; padding: 8px 10px 10px; display: flex; align-items: center; gap: 10px; z-index: 3; }
.mini .tile { width: 40px; height: 40px; } .mini .meta { cursor: pointer; }
.mini .bt { font-size: 24px; width: 44px; height: 44px; } .mini .bt.sm { font-size: 20px; }
.mini .prog { position: absolute; left: 14px; right: 14px; bottom: 3px; height: 2px; background: var(--line); border-radius: 2px; }
.mini .prog i { display: block; height: 100%; width: 0; background: var(--accent); border-radius: 2px; }

.full { position: fixed; inset: 0; z-index: 5; overflow-y: auto; padding: calc(12px + env(safe-area-inset-top)) 20px calc(24px + env(safe-area-inset-bottom));
  background: radial-gradient(130% 70% at 50% 0%, #17324a 0%, var(--bg) 60%); }
.full .top { display: flex; justify-content: space-between; align-items: center; }
.full .icon { font-size: 22px; width: 44px; height: 44px; color: var(--muted); }
.full .art { margin: 12px auto 0; width: 100%; aspect-ratio: 1.25; border-radius: 24px; position: relative; overflow: hidden; border: 1px solid var(--line); }
.full .art canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.full h2 { margin: 20px 0 4px; font-size: 22px; }
.tags { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 8px; }
.tags span { font-size: 12px; padding: 3px 9px; border-radius: 999px; background: var(--panel); color: var(--muted); border: 1px solid var(--line); }
.tags .st { color: var(--accent); border-color: #1f5a50; }
.prompt { margin-top: 12px; padding: 10px 12px; border-radius: 12px; background: var(--panel); border: 1px solid var(--line); font-size: 13px; color: var(--muted); }
.prompt p { margin: 0; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; cursor: pointer; }
.prompt p.open { -webkit-line-clamp: unset; }
.prompt .ph { display: flex; justify-content: space-between; color: var(--fg); margin-bottom: 3px; }
.prompt .ph button { color: var(--accent); font-size: 12px; }
#seek { width: 100%; margin-top: 18px; accent-color: var(--accent); height: 28px; }
.times { display: flex; justify-content: space-between; margin-top: -2px; }
.ctrl { display: flex; justify-content: space-between; align-items: center; margin-top: 12px; }
.ctrl button { font-size: 28px; min-width: 52px; min-height: 52px; border-radius: 26px; }
.ctrl .big { width: 72px; height: 72px; border-radius: 50%; background: var(--accent); color: #062a24; font-size: 30px; }
.ctrl .sm { font-size: 13px; color: var(--muted); border: 1px solid var(--line); border-radius: 999px; min-height: 34px; min-width: 60px; }
.toast { position: fixed; left: 50%; bottom: 110px; transform: translateX(-50%); background: var(--panel2); border: 1px solid var(--line); padding: 8px 14px; border-radius: 10px; z-index: 9; font-size: 13px; }

@media (min-width: 800px) {
  body { max-width: 480px; margin: 0 auto; border-left: 1px solid var(--line); border-right: 1px solid var(--line); min-height: 100vh; }
  .mini, .full { max-width: 480px; margin: 0 auto; }
}
.full .icon.share { font-size: 14px; width: auto; padding: 0 12px; border: 1px solid var(--line); border-radius: 999px; height: 34px; }
