/* ============================================================
   Design tokens
   ============================================================ */
:root {
  --bg:          #0d0d0d;
  --card:        #141414;
  --accent:      #38bdf8;
  --text:        #e0e0e0;
  --text-muted:  rgba(255, 255, 255, 0.55);
  --text-dim:    rgba(255, 255, 255, 0.35);
  --border:      rgba(255, 255, 255, 0.06);
}

/* ============================================================
   Reset
   ============================================================ */
*, *::before, *::after {
  box-sizing: border-box;
  margin:     0;
  padding:    0;
}

/* ============================================================
   Base
   ============================================================ */
html {
  font-size: 16px;
}

body {
  background-color: var(--bg);
  color:            var(--text);
  font-family:      'Inter', sans-serif;
  font-weight:      300;
  letter-spacing:   0.02em;
  line-height:      1.6;
}

/* ============================================================
   Hero
   ============================================================ */
.hero {
  background: linear-gradient(180deg, var(--bg) 0%, #1a1a1a 50%, var(--bg) 100%);
  text-align:      center;
  padding:         5rem 2rem 4rem;
}

.hero-title {
  font-size:      0.75rem;
  font-weight:    500;
  text-transform: uppercase;
  letter-spacing: 0.35em;
  color:          var(--text-muted);
}

.hero-subtitle {
  font-size:      0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.25em;
  color:          var(--text-dim);
  margin-top:     0.6rem;
}

/* ============================================================
   Stats grid
   ============================================================ */
.stats-grid {
  display:               grid;
  grid-template-columns: repeat(4, 1fr);
  gap:                   1px;
  background-color:      var(--border);
  border-top:            1px solid var(--border);
  border-bottom:         1px solid var(--border);
  max-width:             900px;
  margin:                2rem auto;
}

.stat {
  background: var(--bg);
  text-align: center;
  padding:    1.75rem 1rem;
  display:    flex;
  flex-direction: column;
  gap: 0.5rem;
}

.stat-number {
  display:     block;
  font-size:   1.8rem;
  font-weight: 200;
  color:       #ffffff;
  line-height: 1;
}

.stat-label {
  display:        block;
  font-size:      0.6rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color:          var(--text-muted);
}

/* ============================================================
   Duration callout
   ============================================================ */
.duration-callout {
  text-align:  center;
  padding:     0.5rem 2rem 2rem;
  font-size:   0.75rem;
  color:       var(--text-muted);
  letter-spacing: 0.04em;
}

.duration-callout .accent {
  color: var(--accent);
}

/* ============================================================
   Sections
   ============================================================ */
.section {
  max-width: 900px;
  margin:    0 auto;
  padding:   2.5rem 1.5rem;
}

.section-title {
  font-size:      0.6rem;
  font-weight:    500;
  text-transform: uppercase;
  letter-spacing: 0.25em;
  color:          var(--text-muted);
  margin-bottom:  1rem;
}

.section-subtitle {
  font-size:     0.65rem;
  color:         var(--text-dim);
  margin-top:    -0.5rem;
  margin-bottom: 1rem;
  letter-spacing: 0.04em;
}

/* ============================================================
   Chart container
   ============================================================ */
.chart-container {
  background:    var(--card);
  border-radius: 6px;
  padding:       1.5rem;
}

/* ============================================================
   List cards
   ============================================================ */
.list-card {
  background:    var(--card);
  border-radius: 6px;
  overflow:      hidden;
}

.list-row {
  display:       flex;
  align-items:   center;
  gap:           0.75rem;
  padding:       0.7rem 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.list-row:last-child {
  border-bottom: none;
}

.list-rank {
  width:          1.8rem;
  flex-shrink:    0;
  font-size:      0.65rem;
  color:          var(--text-dim);
  text-align:     right;
}

.list-main {
  flex:        1;
  min-width:   0;
}

.list-name {
  display:     block;
  font-size:   0.8rem;
  font-weight: 300;
  color:       #ffffff;
  white-space: nowrap;
  overflow:    hidden;
  text-overflow: ellipsis;
}

.list-sub {
  display:    block;
  font-size:  0.65rem;
  color:      var(--text-muted);
  margin-top: 0.15rem;
  white-space: nowrap;
  overflow:    hidden;
  text-overflow: ellipsis;
}

.list-value {
  font-size:   0.65rem;
  color:       var(--accent);
  flex-shrink: 0;
  white-space: nowrap;
}

.list-value-muted {
  font-size:   0.65rem;
  color:       var(--text-muted);
  flex-shrink: 0;
  white-space: nowrap;
}

/* ============================================================
   Year label (top artist by year rows)
   ============================================================ */
.year-label {
  width:       3rem;
  flex-shrink: 0;
  font-size:   0.7rem;
  font-weight: 400;
  color:       var(--accent);
}

/* ============================================================
   Year pills
   ============================================================ */
#year-pills {
  display:   flex;
  flex-wrap: wrap;
  gap:       0.5rem;
  margin-bottom: 1rem;
}

.year-pill {
  background:    rgba(255, 255, 255, 0.08);
  color:         var(--text-muted);
  border:        none;
  border-radius: 100px;
  padding:       0.3rem 0.85rem;
  font-size:     0.6rem;
  font-family:   inherit;
  letter-spacing: 0.08em;
  cursor:        pointer;
  transition:    background 0.15s ease, color 0.15s ease;
}

.year-pill:hover {
  background: rgba(255, 255, 255, 0.14);
  color:      var(--text);
}

.year-pill.active {
  background: var(--accent);
  color:      #0d0d0d;
  font-weight: 500;
}

/* ============================================================
   Consistency rows
   ============================================================ */
.consistency-row {
  display:     flex;
  align-items: center;
  gap:         0.75rem;
  padding:     0.6rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.consistency-row:last-child {
  border-bottom: none;
}

.consistency-name {
  width:       11rem;
  flex-shrink: 0;
  font-size:   0.8rem;
  font-weight: 300;
  color:       #ffffff;
  white-space: nowrap;
  overflow:    hidden;
  text-overflow: ellipsis;
}

.consistency-years {
  display: flex;
  gap:     0.25rem;
  flex:    1;
  flex-wrap: wrap;
}

.year-box {
  width:         1.4rem;
  height:        1.4rem;
  border-radius: 2px;
  font-size:     0.4rem;
  display:       flex;
  align-items:   center;
  justify-content: center;
  flex-shrink:   0;
}

.year-box.active {
  background: var(--accent);
  color:      #0d0d0d;
}

.year-box.inactive {
  background: rgba(255, 255, 255, 0.06);
  color:      transparent;
}

.consistency-count {
  font-size:   0.65rem;
  color:       var(--text-muted);
  flex-shrink: 0;
  white-space: nowrap;
}

/* ============================================================
   Responsive fallback for narrow screens
   ============================================================ */
@media (max-width: 600px) {
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .consistency-name {
    width: 7rem;
  }
}
