:root {
  --bg: #f6f7fb;
  --panel: #ffffff;
  --ink: #1f2937;
  --muted: #6b7280;
  --line: #dde2ea;
}

body {
  background: var(--bg);
  color: var(--ink);
}

.app-shell {
  width: min(100% - 24px, 760px);
  margin: 0 auto;
}

.narrow-shell {
  width: min(100% - 24px, 560px);
}

.page-top {
  background: rgba(246, 247, 251, 0.94);
  backdrop-filter: blur(10px);
}

.panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(31, 41, 55, 0.05);
}

.icon {
  width: 1rem;
  height: 1rem;
  vertical-align: -0.15em;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
}

.search-results {
  max-height: 360px;
  overflow: auto;
}

.track-row {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 0.75rem;
  align-items: center;
}

.track-thumb {
  width: 44px;
  height: 44px;
  border-radius: 6px;
  background: #e5e7eb;
  object-fit: cover;
}

.selected-track {
  border: 1px solid #b6d4fe;
  background: #eef6ff;
  border-radius: 8px;
  padding: 0.75rem;
}

.song-item {
  display: grid;
  grid-template-columns: 2rem 1fr auto;
  gap: 0.75rem;
  align-items: center;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--line);
}

.song-item:last-child {
  border-bottom: 0;
}

.song-index {
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  background: #edf2f7;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.875rem;
}

.song-title {
  font-weight: 700;
}

.song-meta {
  color: var(--muted);
  font-size: 0.9rem;
}

.vote-badge {
  white-space: nowrap;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
}

.admin-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
}

@media (max-width: 575.98px) {
  .stats-grid {
    grid-template-columns: 1fr;
  }

  .admin-actions {
    grid-template-columns: 1fr;
  }

  .song-item {
    grid-template-columns: 2rem 1fr;
  }

  .song-item .song-tools,
  .song-item .vote-badge {
    grid-column: 2;
    justify-self: start;
  }
}

