/* live-stats.html page styles (v4.3) */
header {
  text-align: center;
  padding: 48px 24px 32px;
  border-bottom: 1px solid var(--border);
}
header h1 {
  font-size: clamp(1.6rem, 5vw, 2.8rem);
  font-weight: 900;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin-bottom: 8px;
}
.subtitle {
  font-size: 1rem;
  font-weight: 600;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 16px;
}
.header-desc {
  font-size: 0.82rem;
  color: var(--muted2);
  max-width: 560px;
  margin: 0 auto 16px;
}

.stats-loading, .stats-error {
  text-align: center;
  color: var(--muted2);
  padding: 48px 16px;
  font-size: 0.9rem;
}
.stats-error { display: none; }

main { max-width: 760px; margin: 0 auto; padding: 0 16px 48px; }

.stat-section { margin-top: 40px; }
.section-label {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
  text-align: center;
}
.section-note {
  font-size: 0.78rem;
  color: var(--muted2);
  text-align: center;
  margin: 4px 0 16px;
}
.section-line {
  width: 60px;
  height: 2px;
  background: var(--red);
  margin: 10px auto 18px;
}

.rank-list { list-style: none; padding: 0; margin: 0; }
.rank-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 4px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 0.85rem;
}
.rank-row:first-child { border-top: none; }
.rank-num {
  color: var(--muted2);
  font-size: 0.7rem;
  min-width: 24px;
  text-align: right;
  flex-shrink: 0;
}
.rank-song { flex-shrink: 0; font-weight: 600; }
.rank-song a { color: var(--text); text-decoration: none; }
.rank-song a:hover { color: var(--gold); text-decoration: underline; }
.rank-bar-wrap { flex: 1; height: 8px; border-radius: 4px; background: rgba(255, 255, 255, 0.05); overflow: hidden; }
.rank-bar { height: 100%; border-radius: 4px; background: var(--red); }
.rank-count { color: var(--gold); font-weight: 700; font-size: 0.78rem; min-width: 38px; text-align: right; flex-shrink: 0; }

.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
@media (max-width: 600px) { .two-col { grid-template-columns: 1fr; } }
.two-col h3 {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  text-align: center;
  margin-bottom: 8px;
}

.detail-list { list-style: none; padding: 0; margin: 0; }
.detail-row {
  padding: 8px 4px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 0.82rem;
  line-height: 1.5;
}
.detail-row:first-child { border-top: none; }
.detail-row a { color: var(--text); font-weight: 600; text-decoration: none; }
.detail-row a:hover { color: var(--gold); text-decoration: underline; }
.detail-meta { color: var(--muted2); font-size: 0.75rem; }
.detail-meta a { color: var(--gold); font-weight: 600; font-size: 0.75rem; }

.never-grid { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.never-chip {
  font-size: 0.72rem;
  color: var(--muted);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 20px;
  padding: 4px 12px;
  text-decoration: none;
  transition: all 0.15s ease;
}
.never-chip:hover { border-color: var(--gold); color: var(--gold); }

.show-more-btn {
  display: block;
  margin: 14px auto 0;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: var(--muted);
  font-family: inherit;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  padding: 8px 18px;
  border-radius: 30px;
  cursor: pointer;
  transition: all 0.18s ease;
}
.show-more-btn:hover { border-color: var(--red); color: var(--text); }
.show-more-btn:focus-visible { outline: 2px solid var(--red); outline-offset: 2px; }
