:root { --bg: #000; --panel: #141414; --line: #2a2a2a; --fg: #eee; --muted: #8a8a8a; --accent: #fa5849; }
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; background: var(--bg); color: var(--fg); font: 15px/1.4 -apple-system, system-ui, sans-serif; }
body { display: grid; grid-template-rows: auto 1fr auto; height: 100vh; }
a { color: var(--accent); }
button { background: #222; color: var(--fg); border: 1px solid var(--line); border-radius: 8px; padding: 6px 12px; font: inherit; cursor: pointer; }
button:hover { background: #2c2c2c; }
button.small { padding: 3px 8px; font-size: 13px; }
button.primary, #loginForm button, #saveLyrics { background: var(--accent); border-color: var(--accent); color: #fff; }
input, textarea { background: #1a1a1a; color: var(--fg); border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px; font: inherit; }
input[type=search], #searchInput { width: 100%; margin-bottom: 12px; }
textarea { width: 100%; font-family: ui-monospace, monospace; font-size: 13px; }
.hidden { display: none !important; }
.muted { color: var(--muted); }
.error { color: var(--accent); }
.row { display: flex; gap: 8px; align-items: center; }
.between { justify-content: space-between; }
header { display: flex; justify-content: space-between; align-items: center; padding: 10px 16px; border-bottom: 1px solid var(--line); }
nav button { background: transparent; border: none; margin-right: 6px; }
nav button.active { color: var(--accent); font-weight: 600; }
main { display: grid; grid-template-columns: 1fr; overflow: hidden; }
main.withLyrics { grid-template-columns: 1fr 380px; }
.view { overflow: auto; padding: 16px; }
.crumbs { margin-bottom: 10px; }
.crumbs button { background: transparent; border: none; padding: 0 4px; }
.crumbs span button::before { content: "›"; color: var(--muted); margin-right: 8px; }
.list .item { display: flex; align-items: center; gap: 12px; padding: 8px 6px; border-bottom: 1px solid var(--line); cursor: pointer; }
.list .item:hover { background: var(--panel); }
.list .item.current .title { color: var(--accent); }
.list .thumb { width: 44px; height: 44px; border-radius: 4px; background: #222 center/cover; flex: none; }
.list .num { width: 2em; text-align: right; color: var(--muted); }
.list .text { flex: 1; min-width: 0; }
.list .title { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.list .sub { color: var(--muted); font-size: 13px; }
.list .dur { color: var(--muted); font-variant-numeric: tabular-nums; }
.list .actions button { visibility: hidden; }
.list .item:hover .actions button { visibility: visible; }
.list h3 { margin: 18px 0 6px; font-size: 13px; text-transform: uppercase; color: var(--muted); }
.albumHead { display: flex; gap: 20px; align-items: flex-end; margin-bottom: 14px; }
.albumHead .cover { width: 180px; height: 180px; border-radius: 8px; background: #222 center/cover; box-shadow: 0 8px 30px #000a; }
.albumHead h2 { margin: 0 0 4px; }
aside { border-left: 1px solid var(--line); padding: 14px; overflow: auto; background: #0a0a0a; }
#lyricsLines { margin-top: 10px; font-size: 20px; line-height: 1.5; }
#lyricsLines .line { padding: 4px 0; color: var(--muted); cursor: pointer; transition: color .2s; }
#lyricsLines .line.current { color: var(--fg); font-weight: 600; }
#lyricsLines .plain { color: var(--fg); white-space: pre-wrap; font-size: 16px; }
footer { display: grid; grid-template-columns: auto 1fr auto; grid-template-rows: auto auto; gap: 4px 16px; align-items: center; padding: 10px 16px; border-top: 1px solid var(--line); background: var(--panel); }
footer .art { width: 56px; height: 56px; border-radius: 6px; background: #222; object-fit: cover; grid-row: 1 / 3; }
footer .np { min-width: 0; }
footer #npTitle { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
footer #npTitle, footer #npArtist { cursor: pointer; }
footer #npTitle:hover, footer #npArtist:hover { text-decoration: underline; }
footer .controls button { background: transparent; border: none; font-size: 20px; padding: 4px 8px; }
footer .controls button.on { color: var(--accent); }
footer #playPause { font-size: 28px; }
footer .seek { grid-column: 2 / 4; display: flex; gap: 10px; align-items: center; font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
footer .seek input { flex: 1; accent-color: var(--accent); }
.overlay { position: fixed; inset: 0; background: #000d; display: grid; place-items: center; z-index: 10; }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 24px; width: min(420px, 90vw); display: grid; gap: 10px; }
.card h1 { margin: 0; }
.card .list { max-height: 50vh; overflow: auto; }
.card .row input { flex: 1; }
.drop { border: 2px dashed var(--line); border-radius: 12px; padding: 30px; text-align: center; margin: 12px 0; }
.drop.over { border-color: var(--accent); }
.drop input[type=file] { display: none; }
#uploadLog { list-style: none; padding: 0; font-size: 13px; color: var(--muted); }
@media (max-width: 700px) { main.withLyrics { grid-template-columns: 1fr; } aside { position: fixed; inset: 56px 0 120px; } .albumHead .cover { width: 110px; height: 110px; } }
