* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #111;
  color: #eee;
}

header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem;
  position: sticky;
  top: 0;
  background: #111;
  border-bottom: 1px solid #333;
}

h1 {
  font-size: 1.25rem;
  margin: 0;
}

#toggle-view {
  background: none;
  border: 1px solid #555;
  color: #eee;
  border-radius: 6px;
  padding: 0.4rem 0.8rem;
  font-size: 0.85rem;
}

#candidate-list {
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  max-width: 480px;
  margin: 0 auto;
}

.card {
  background: #1c1c1c;
  border-radius: 10px;
  padding: 1rem;
}

.badge {
  display: inline-block;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background: #333;
  color: #aaa;
  border-radius: 4px;
  padding: 0.15rem 0.5rem;
  margin-bottom: 0.4rem;
}

.card h2 {
  margin: 0 0 0.2rem;
  font-size: 1.1rem;
}

.artist {
  margin: 0;
  color: #bbb;
}

.meta {
  margin: 0.4rem 0 0.8rem;
  font-size: 0.85rem;
  color: #888;
}

.actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.actions a {
  color: #1db954;
  text-decoration: none;
  font-weight: 600;
}

.actions button {
  background: #1db954;
  color: #111;
  border: none;
  border-radius: 6px;
  padding: 0.5rem 0.8rem;
  font-weight: 600;
}

.actions button:disabled {
  opacity: 0.5;
}

.heard-label {
  color: #666;
  font-size: 0.85rem;
}

.loading,
.empty {
  text-align: center;
  color: #777;
  margin-top: 3rem;
}
