:root {
  --bg:      #0d0d0d;
  --text:    #e8e8e8;
  --muted:   #888;
  --accent:  #1db954;
  --border:  #222;
  --art-bg:  #1a1a1a;
  --width:   720px;
}

*, *::before, *::after { box-sizing: border-box; }

html { font-size: 16px; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
  color: var(--text);
  background: var(--bg);
  margin: 0;
  padding: 0 1rem;
}

header, main {
  max-width: var(--width);
  margin-left: auto;
  margin-right: auto;
}

header {
  padding: 1.5rem 0 1rem;
  border-bottom: 1px solid var(--border);
}

.site-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--accent);
  text-decoration: none;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

main { padding: 1.5rem 0 3rem; }

.empty { color: var(--muted); }

.scrobble-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.scrobble {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--border);
}

.art {
  width: 48px;
  height: 48px;
  border-radius: 3px;
  object-fit: cover;
  flex-shrink: 0;
  background: var(--art-bg);
}

.art-placeholder {
  background: var(--art-bg);
  border-radius: 3px;
}

.info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.track {
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.artist-album {
  font-size: 0.85rem;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.when {
  font-size: 0.8rem;
  color: var(--muted);
  white-space: nowrap;
  flex-shrink: 0;
  font-variant-numeric: tabular-nums;
}

nav { margin-top: 1.5rem; }
nav a { color: var(--accent); text-decoration: none; font-size: 0.9rem; }
nav a:hover { text-decoration: underline; }
