:root {
  color-scheme: dark;
  --bg: #0b0b0d;
  --surface: #17171b;
  --text: #f2f2f0;
  --muted: #9a9aa2;
  --accent: #e8c86e;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
}

a { color: inherit; text-decoration: none; }

.site-header {
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid #232327;
}

.site-header .brand {
  font-weight: 700;
  letter-spacing: 0.02em;
}

main#page {
  max-width: 1100px;
  margin: 0 auto;
  padding: 1.5rem;
}

.day-header {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.date-nav {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.date-nav h1 {
  font-size: 1.5rem;
  margin: 0;
}

.today-link {
  color: var(--accent);
}

.filters {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.filters select {
  background: var(--surface);
  color: var(--text);
  border: 1px solid #2c2c31;
  border-radius: 6px;
  padding: 0.4rem 0.6rem;
}

.count {
  color: var(--muted);
  font-size: 0.9rem;
  margin: 0 0 0.75rem;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 1.25rem;
}

.card {
  display: block;
}

.cover {
  aspect-ratio: 1 / 1;
  border-radius: 8px;
  overflow: hidden;
  background: var(--surface);
}

.cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.cover-placeholder {
  width: 100%;
  height: 100%;
}

.meta { margin-top: 0.5rem; }
.meta .title { font-weight: 600; margin: 0; }
.meta .artist, .meta .year { color: var(--muted); margin: 0.15rem 0 0; font-size: 0.9rem; }

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

.album-detail {
  display: grid;
  grid-template-columns: minmax(220px, 360px) 1fr;
  gap: 2rem;
}

.cover-large {
  aspect-ratio: 1 / 1;
  border-radius: 12px;
  overflow: hidden;
  background: var(--surface);
}

.cover-large img { width: 100%; height: 100%; object-fit: cover; display: block; }

.info h1 { margin: 0 0 0.25rem; font-size: 2rem; }
.info .artist { color: var(--muted); font-size: 1.1rem; margin: 0 0 1rem; }
.info p { margin: 0.35rem 0; }
.info .back { display: inline-block; margin-top: 1.5rem; color: var(--accent); }

.scores {
  display: flex;
  gap: 1.5rem;
  margin-top: 1rem;
}

.scores .provider { text-transform: uppercase; font-size: 0.75rem; letter-spacing: 0.05em; color: var(--muted); }

@media (max-width: 640px) {
  .album-detail { grid-template-columns: 1fr; }
}

.admin-nav {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.admin-nav a {
  color: var(--muted);
  font-weight: 600;
}

.queue-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.queue-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: var(--surface);
  border-radius: 8px;
  padding: 0.75rem;
}

.queue-row .cover {
  width: 64px;
  height: 64px;
  border-radius: 6px;
  overflow: hidden;
  flex-shrink: 0;
  background: var(--bg);
}

.queue-row .cover img { width: 100%; height: 100%; object-fit: cover; display: block; }

.queue-row .meta { flex: 1; }
.queue-row .meta .title { font-weight: 600; margin: 0; }
.queue-row .meta .scheduled { color: var(--muted); margin: 0.15rem 0 0; font-size: 0.85rem; }

.veto-button {
  background: transparent;
  color: var(--accent);
  border: 1px solid var(--accent);
  border-radius: 6px;
  padding: 0.4rem 0.8rem;
  cursor: pointer;
}

.scrape-table {
  width: 100%;
  border-collapse: collapse;
}

.scrape-table th, .scrape-table td {
  text-align: left;
  padding: 0.5rem 0.75rem;
  border-bottom: 1px solid #232327;
  font-size: 0.9rem;
}

.scrape-table th { color: var(--muted); font-weight: 600; }
.scrape-table .status-failed { color: #e07a7a; }
