:root {
  --bg: #14120e;
  --surface: #1d1a14;
  --surface-2: #262019;
  --border: #3b3226;
  --text: #f1ead8;
  --text-dim: #a99c81;
  --accent: #e8a33d;
  --accent-2: #6fb395;
  --warn: #e2795c;
  --font-body: 'Public Sans', -apple-system, 'Segoe UI', sans-serif;
  --font-mono: 'IBM Plex Mono', 'SF Mono', Consolas, monospace;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.5;
}

.wrap { max-width: 760px; margin: 0 auto; padding: 2.5rem 1.25rem 4rem; }
.center-wrap { max-width: 360px; margin: 12vh auto; padding: 0 1.25rem; }

h1 { font-size: 1.6rem; margin: 0 0 0.25rem; letter-spacing: -0.01em; }
h2 { font-size: 1.05rem; margin: 0 0 0.9rem; color: var(--text); }
p.hint { color: var(--text-dim); font-size: 0.88rem; margin: 0.3rem 0 0; }

header.app-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 2rem; gap: 1rem; flex-wrap: wrap; }
.badge { font-family: var(--font-mono); font-size: 0.72rem; padding: 0.25rem 0.55rem; border-radius: 4px; border: 1px solid var(--border); color: var(--text-dim); }
.badge.ok { color: var(--accent-2); border-color: var(--accent-2); }
.badge.warn { color: var(--warn); border-color: var(--warn); }

.card { background: var(--surface); border: 1px solid var(--border); border-radius: 6px; padding: 1.25rem 1.4rem; margin-bottom: 1.25rem; }

button, input, select { font-family: inherit; font-size: 0.92rem; }
button {
  background: var(--accent);
  color: #1a1305;
  border: none;
  border-radius: 4px;
  padding: 0.55rem 1rem;
  font-weight: 600;
  cursor: pointer;
}
button.secondary { background: none; color: var(--text); border: 1px solid var(--border); font-weight: 500; }
button.danger { background: none; color: var(--warn); border: 1px solid var(--warn); font-weight: 500; }
button:disabled { opacity: 0.5; cursor: not-allowed; }
button:hover:not(:disabled) { filter: brightness(1.08); }

input[type="text"], input[type="password"], select {
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: 4px;
  padding: 0.5rem 0.6rem;
  width: 100%;
}

.row { display: flex; gap: 0.6rem; align-items: center; flex-wrap: wrap; }
.row.between { justify-content: space-between; }

.stars { display: inline-flex; gap: 0.15rem; font-size: 1.1rem; cursor: pointer; user-select: none; }
.stars .star { color: var(--border); }
.stars .star.filled { color: var(--accent); }

.now-playing { display: flex; flex-direction: column; gap: 0.5rem; }
.now-playing .title { font-size: 1.1rem; font-weight: 600; }
.now-playing .meta { font-family: var(--font-mono); font-size: 0.76rem; color: var(--text-dim); }
.progress-bar { height: 4px; background: var(--surface-2); border-radius: 2px; overflow: hidden; }
.progress-bar > div { height: 100%; background: var(--accent); }

.artist-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.5rem; }
.artist-list li { display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; padding: 0.5rem 0; border-bottom: 1px solid var(--border); flex-wrap: wrap; }
.artist-list li:last-child { border-bottom: none; }
.artist-name { font-weight: 500; }
.artist-name.inactive { color: var(--text-dim); text-decoration: line-through; }

.error-text { color: var(--warn); font-size: 0.85rem; min-height: 1.1em; }
.small-note { color: var(--text-dim); font-size: 0.8rem; }
