* { box-sizing: border-box; }
:root {
  --card: rgba(17, 24, 39, 0.72);
  --border: rgba(255,255,255,0.10);
  --text: #e8eef2;
  --muted: #a7b6c6;
  --accent: #22d3ee;
  --orange: #ea580c;
}
html, body { height: 100%; }
body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial;
  color: var(--text);
  background-color: var(--orange);
  background-image: none !重要;
  transition: background-color 420ms ease;
}
.app-header { text-align:center; padding: 20px 12px 6px; }
.app-header h1 { margin: 0; font-size: 22px; font-weight: 800; letter-spacing: .3px; }
.subtitle { margin: 6px 0 0; color: var(--muted); }

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 12px;
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 16px;
}
.card { background: var(--card); border: 1px solid var(--border); border-radius: 14px; padding: 12px; backdrop-filter: blur(8px); }
.card-title { font-weight: 700; margin-bottom: 10px; }

.left .table-card { min-height: 50vh; }
.right { display: grid; grid-template-rows: auto auto auto 1fr; gap: 16px; }

.row { display:flex; gap:8px; align-items:center; margin-bottom:8px; }
.row.wrap { flex-wrap: wrap; }
.row.grid-4 { display:grid; grid-template-columns: 1fr 1fr 1fr 2fr; gap:8px; align-items:center; }
label { color: var(--muted); font-size: 12px; }
input, select, button, a { font-size: 14px; }
input, select { background:#0f172a; color:var(--text); border:1px solid var(--border); border-radius:10px; padding:8px 10px; }
button {
  background:#1f2937; color:var(--text); border:1px solid var(--border); border-radius:10px; padding:8px 12px; cursor:pointer;
}
button:hover { border-color:#60a5fa; }
button.chip { background:#111827; }
label.chk { display:flex; align-items:center; gap:6px; user-select:none; }
label.chk input { transform: translateY(1px); }

.hint { color: var(--muted); }
.small { font-size: 12px; }
.notice { margin-top: 6px; padding: 8px 10px; border: 1px dashed #60a5fa; border-radius: 10px; color:#cfe2ff; background: rgba(59,130,246,.08); }
.notice .btn { margin-left: 8px; background: #0f172a; border:1px solid var(--border); padding: 4px 8px; border-radius: 8px; cursor:pointer; color:#cfe2ff; }

.table-wrap { overflow:auto; border-radius:10px; }
table { width:100%; border-collapse: collapse; }
th, td { text-align:left; padding:8px; border-bottom:1px solid var(--border); }
.center { text-align:center; color: var(--muted); }
.bold { font-weight: 600; }
.badge { font-size: 12px; padding: 2px 6px; border-radius: 999px; background:#0f172a; border:1px solid var(--border); color:#9ac2ff; }

.loading { color:#9ac2ff; }

.cover-card .cover { width: 100%; aspect-ratio: 1/1; background:#0b1220; border-radius: 12px; overflow:hidden; position:relative; display:flex; align-items:center; justify-content:center; }
.cover-card .cover-fallback { color:#64748b; font-size:42px; position:absolute; }
.cover-card img { width:100%; height:100%; object-fit:cover; display:none; }
.meta .title { font-weight:700; margin:10px 0 2px; }
.meta .artist { color: var(--muted); margin-bottom: 4px; }
.meta .sub { color:#8ea9b7; font-size:12px; margin-bottom:10px; }
.controls { display:flex; gap:8px; align-items:center; flex-wrap:wrap; }
.controls a { color:#93c5fd; text-decoration: none; }
.volume input[type=range] { vertical-align: middle; }

.lyrics-card { display:flex; flex-direction: column; }
.tabs { display:flex; gap:8px; margin-bottom:8px; }
.tab { background:#0f172a; padding:6px 10px; border-radius:8px; border:1px solid var(--border); cursor:pointer; }
.tab.active { outline: 2px solid #3b82f6; }
.lyrics { flex:1; max-height: 40vh; overflow:auto; line-height: 1.6; font-size:14px; padding-right:4px; }
.lyrics .line { color:#dbe7ee; }
.lyrics .time { display:inline-block; width:48px; color:#7a93a3; margin-right:4px; text-align:right; }
.lyrics .active { color:#22d3ee; font-weight: 800; text-shadow: 0 0 6px rgba(34,211,238,0.45); }
.lyrics.trans { white-space: pre-wrap; color:#c8d7df; }

/* 隐藏滚动条但保留滚动能力 */
.hide-scrollbar { -ms-overflow-style: none; scrollbar-width: none; }
.hide-scrollbar::-webkit-scrollbar { width: 0; height: 0; display: none; }

.lib-card .lib-pane { max-height: 30vh; overflow: auto; }
.lib-card .row-item { display:flex; align-items:center; justify-content:space-between; gap:8px; padding:6px 0; border-bottom:1px solid var(--border); }
.lib-card .title { font-weight: 600; }
.lib-card .muted { color: var(--muted); }

.page-ctrl { display:flex; gap:6px; align-items:center; }
.page-ctrl input { width: 70px; text-align:center; }

.footer { text-align:center; padding:12px; color: var(--muted); }

@media (max-width: 980px) {
  .container { grid-template-columns: 1fr; }
  .right { grid-template-rows: auto auto auto 1fr; }
}
