:root {
  --bg: #0b0e14; --panel: #131823; --card: #171d2b; --line: #242d40;
  --text: #e6ecf5; --muted: #8c98ad; --accent: #5cc8ff; --accent2: #7ef0c7;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'PingFang SC', 'Microsoft YaHei', sans-serif; padding-bottom: 100px; }
header { position: sticky; top: 0; z-index: 20; background: rgba(11,14,20,0.92); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.wrap { max-width: 1240px; margin: 0 auto; padding: 14px 18px; }
.topbar { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.brand { font-weight: 700; font-size: 18px; display: flex; align-items: center; gap: 8px; white-space: nowrap; }
.badge { font-size: 11px; padding: 2px 8px; border-radius: 99px; background: rgba(92,200,255,0.14); color: var(--accent); border: 1px solid rgba(92,200,255,0.3); }
.searchbox { flex: 1; min-width: 220px; display: flex; gap: 8px; }
.searchbox input { flex: 1; background: var(--panel); border: 1px solid var(--line); color: var(--text); padding: 9px 14px; border-radius: 10px; outline: none; font-size: 14px; }
.searchbox input:focus { border-color: var(--accent); }
.btn { background: var(--panel); border: 1px solid var(--line); color: var(--text); padding: 7px 13px; border-radius: 9px; cursor: pointer; font-size: 13px; white-space: nowrap; text-decoration: none; display: inline-flex; align-items: center; gap: 6px; }
.btn:hover { border-color: var(--accent); color: var(--accent); }
.btn.primary { background: linear-gradient(135deg, #3ea6ff, #5cc8ff); color: #06121f; border: none; font-weight: 600; }
.cats { display: flex; gap: 8px; overflow-x: auto; padding: 8px 18px 12px; max-width: 1240px; margin: 0 auto; }
.cat-pill { background: var(--panel); border: 1px solid var(--line); color: var(--muted); padding: 5px 12px; border-radius: 99px; font-size: 12px; cursor: pointer; white-space: nowrap; }
.cat-pill.active { background: rgba(92,200,255,0.15); border-color: var(--accent); color: var(--accent); }
.stats { font-size: 12px; color: var(--muted); margin-left: auto; white-space: nowrap; }
main { max-width: 1240px; margin: 0 auto; padding: 18px; }
.section-title { font-size: 15px; font-weight: 600; margin: 8px 0 14px; display: flex; justify-content: space-between; align-items: center; color: #cdd7e6; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 16px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; cursor: pointer; transition: transform 0.15s, border-color 0.15s; }
.card:hover { transform: translateY(-2px); border-color: var(--accent); }
.cover-wrap { aspect-ratio: 1 / 1; background: #101521; position: relative; overflow: hidden; }
.cover-wrap img { width: 100%; height: 100%; object-fit: cover; display: block; }
.spec-tag { position: absolute; right: 8px; bottom: 8px; font-size: 10px; padding: 2px 7px; border-radius: 6px; background: rgba(6,10,18,0.82); color: var(--accent2); border: 1px solid rgba(126,240,199,0.3); }
.card-body { padding: 11px 12px; }
.card-title { font-size: 14px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card-sub { font-size: 12px; color: var(--muted); margin-top: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card-meta { font-size: 11px; color: #6e7c94; margin-top: 6px; display: flex; justify-content: space-between; }
.track-list { display: flex; flex-direction: column; gap: 8px; }
.track-row { background: var(--panel); border: 1px solid var(--line); border-radius: 11px; padding: 10px 14px; display: flex; align-items: center; gap: 12px; }
.track-row:hover { border-color: #354463; }
.track-row.playing { border-color: var(--accent); background: rgba(92,200,255,0.08); }
.t-no { width: 38px; color: var(--muted); font-size: 12px; text-align: center; }
.t-info { flex: 1; min-width: 0; }
.t-title { font-size: 14px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.t-sub { font-size: 12px; color: var(--muted); margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.t-size { font-size: 12px; color: var(--muted); white-space: nowrap; }
.detail-hero { display: flex; gap: 22px; flex-wrap: wrap; background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: 18px; margin-bottom: 18px; }
.detail-hero img { width: 210px; height: 210px; border-radius: 12px; object-fit: cover; background: #0e121c; }
.detail-meta { flex: 1; min-width: 240px; display: flex; flex-direction: column; justify-content: center; gap: 8px; }
.detail-meta h2 { margin: 0; font-size: 22px; }
.notice { font-size: 12px; color: var(--muted); background: rgba(92,200,255,0.07); border: 1px solid rgba(92,200,255,0.22); padding: 9px 13px; border-radius: 10px; margin-bottom: 14px; }
.player-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; background: rgba(15,20,30,0.96); backdrop-filter: blur(14px); border-top: 1px solid var(--line); padding: 10px 18px; }
.player-inner { max-width: 1240px; margin: 0 auto; display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.p-cover { width: 46px; height: 46px; border-radius: 8px; object-fit: cover; background: #101521; }
.p-meta { min-width: 170px; max-width: 270px; overflow: hidden; }
.p-title { font-size: 13px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.p-sub { font-size: 11px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
audio { flex: 1; min-width: 220px; height: 36px; }
.lrc-drawer { position: fixed; right: 18px; bottom: 88px; width: min(410px, calc(100vw - 36px)); max-height: 58vh; background: rgba(15,20,30,0.97); border: 1px solid var(--line); border-radius: 14px; z-index: 29; display: none; flex-direction: column; box-shadow: 0 16px 40px rgba(0,0,0,0.5); }
.lrc-drawer.open { display: flex; }
.lrc-head { padding: 11px 14px; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; font-size: 13px; font-weight: 600; }
.lrc-body { padding: 14px; overflow-y: auto; font-size: 13px; line-height: 1.9; color: var(--muted); }
.lrc-line { padding: 2px 6px; border-radius: 6px; transition: color 0.15s, background 0.15s; }
.lrc-line.active { color: var(--accent2); background: rgba(126,240,199,0.1); font-weight: 600; }
.pager { display: flex; gap: 10px; justify-content: center; margin-top: 20px; }
