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

/* ─── Variables ─────────────────────────────────────────────────────────────── */
:root {
  color-scheme: light;

  --bg:       #ffffff;
  --surface:  #f8f8f8;
  --line:     #e0e0e0;
  --line2:    #c8c8c8;

  --text:     #111111;
  --text2:    #555555;
  --text3:    #999999;
  --text4:    #cccccc;

  --red:    #cc1a00;
  --orange: #e05500;
  --gold:   #b8860a;
  --green:  #2a7a4a;

  --header-h: 64px;
}

/* ─── Base ──────────────────────────────────────────────────────────────────── */
html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 14px;
  line-height: 1.5;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
}

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

/* ═══════════════════════════════════════════════════════════════════════════════
   WHITE HEADER  — logo works naturally, bold dark nav
═══════════════════════════════════════════════════════════════════════════════ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  background: #ffffff;
  border-bottom: 3px solid var(--orange);
  box-shadow: 0 2px 12px rgba(0,0,0,.08);
  display: flex;
  align-items: center;
  padding: 0 2rem;
  gap: 1.5rem;
}

.logo-link { display: flex; align-items: center; flex-shrink: 0; }

.header-logo { height: 42px; width: auto; }

.site-nav { display: flex; gap: .25rem; margin-left: auto; }

.nav-link {
  font-family: 'Oswald', sans-serif;
  font-size: .85rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #333;
  padding: .5rem 1.1rem;
  border-radius: 3px;
  transition: color .15s, background .15s;
  white-space: nowrap;
}
.nav-link:hover  { color: var(--red); background: #fdf0ee; }
.nav-link.active { color: var(--red); border-bottom: 2px solid var(--red); }

/* ─── Main ──────────────────────────────────────────────────────────────────── */
main {
  flex: 1;
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  padding: 2.5rem 2rem 5rem;
  overflow-x: hidden;
}

/* ─── Footer ────────────────────────────────────────────────────────────────── */
.site-footer {
  text-align: center;
  padding: 1.25rem;
  font-size: .63rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--text3);
  border-top: 1px solid var(--line);
  background: var(--surface);
}

/* ─── Loading / error ───────────────────────────────────────────────────────── */
.loading {
  text-align: center;
  color: var(--text4);
  padding: 5rem 1rem;
  font-family: 'Oswald', sans-serif;
  font-size: .7rem;
  letter-spacing: .22em;
  text-transform: uppercase;
}
.error { color: var(--red); text-align: center; padding: 3rem; }

/* ─── Animation ─────────────────────────────────────────────────────────────── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ═══════════════════════════════════════════════════════════════════════════════
   HOME
═══════════════════════════════════════════════════════════════════════════════ */
.home {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 3.5rem 0 2rem;
  animation: fadeUp .4s ease both;
}

.home-logo {
  width: min(320px, 65vw);
  margin-bottom: 2rem;
}

.home-tagline {
  font-family: 'Oswald', sans-serif;
  font-size: clamp(.78rem, 2vw, .95rem);
  font-weight: 400;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--text3);
}

.home-since {
  margin-top: .45rem;
  font-size: .65rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--text4);
}

.divider {
  margin: 2rem auto;
  width: min(200px, 45vw);
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--red) 50%, transparent);
}

.home-cta { margin-bottom: 3rem; }

.btn-primary {
  display: inline-block;
  font-family: 'Oswald', sans-serif;
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  background: var(--red);
  color: #fff;
  padding: .9rem 2.5rem;
  border-radius: 2px;
  transition: background .2s;
}
.btn-primary:hover { background: var(--orange); }

.btn-secondary {
  display: inline-block;
  font-family: 'Oswald', sans-serif;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--text2);
  border: 1px solid var(--line2);
  padding: .7rem 1.8rem;
  border-radius: 2px;
  transition: color .15s, border-color .15s;
}
.btn-secondary:hover { color: var(--red); border-color: var(--red); }

.home-section { margin-bottom: 2.25rem; width: 100%; max-width: 560px; }

.year-picker {
  text-align: center;
  margin-top: 2.5rem;
}
.year-picker h2 {
  font-family: 'Oswald', sans-serif;
  font-size: .62rem;
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--text3);
  margin-bottom: 1.25rem;
}

.home-section h2 {
  font-family: 'Oswald', sans-serif;
  font-size: .62rem;
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--text3);
  margin-bottom: 1rem;
}

.year-grid {
  display: flex;
  flex-wrap: wrap;
  gap: .45rem;
  justify-content: center;
}

.year-btn {
  font-family: 'Oswald', sans-serif;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .04em;
  color: var(--text2);
  border: 1px solid var(--line);
  padding: .42rem 1.1rem;
  border-radius: 2px;
  transition: color .15s, border-color .15s;
}
.year-btn:hover { color: var(--red); border-color: var(--red); }
.year-btn-wip   { opacity: .6; font-style: italic; }

/* ═══════════════════════════════════════════════════════════════════════════════
   CHART VIEW
═══════════════════════════════════════════════════════════════════════════════ */
.chart-view { animation: fadeUp .3s ease both; }

/* Page title */
.chart-page-title { text-align: center; margin-bottom: 1.5rem; }

.chart-edition-line {
  display: inline-block;
  font-family: 'Oswald', sans-serif;
  font-size: clamp(.85rem, 2.5vw, 1.05rem);
  font-weight: 400;
  letter-spacing: .04em;
  color: var(--text);
  border: 2px solid var(--text);
  padding: .45rem 1.25rem;
  margin: 0;
}
.chart-edition-line strong {
  font-weight: 700;
}

/* Spotify playlist embed */
.spotify-embed {
  margin-top: 2rem;
  border-top: 2px solid #eee;
  padding-top: 1.5rem;
}
.video-section {
  margin-top: 2rem;
  border-top: 2px solid #eee;
  padding-top: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
.video-embed { display: flex; flex-direction: column; gap: .5rem; }
.video-label {
  font-family: 'Oswald', sans-serif;
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--red);
}
/* CB / BS highlights section at the bottom of each weekly chart */
.chart-highlights {
  margin-top: 2rem;
  border-top: 3px solid var(--orange);
  padding-top: 1.25rem;
  padding-bottom: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0;
  background: var(--bg);
}

.highlight-entry {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding: .9rem 1rem;
  border: 1px solid var(--line);
  border-top: none;
  background: #fff;
}
.highlight-entry:first-child { border-top: 1px solid var(--line); }

.highlight-logo {
  height: 72px;
  width: 72px;
  object-fit: contain;
  flex-shrink: 0;
}

.highlight-info {
  flex: 1;
  min-width: 0;
}

.highlight-track {
  font-family: 'Oswald', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  color: var(--orange);
  text-transform: uppercase;
  letter-spacing: .04em;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.highlight-artist {
  font-style: italic;
  font-size: .85rem;
  color: var(--text2);
  margin-top: .2rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Navigation row */
.chart-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  margin-bottom: 1.25rem;
  flex-wrap: wrap;
}

.chart-nav-center {
  display: flex;
  align-items: center;
  gap: .6rem;
  flex-wrap: wrap;
  justify-content: center;
}

select {
  background: var(--bg);
  color: var(--text2);
  border: 1px solid var(--line);
  border-radius: 2px;
  padding: .32rem 1.5rem .32rem .6rem;
  font-size: .72rem;
  font-family: 'Oswald', sans-serif;
  font-weight: 600;
  letter-spacing: .04em;
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='8' height='5'%3E%3Cpath d='M0 0l4 5 4-5z' fill='%23ccc'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right .45rem center;
  transition: border-color .15s, color .15s;
}
select:hover, select:focus { color: var(--text); border-color: var(--text3); outline: none; }

.nav-arrow {
  font-family: 'Oswald', sans-serif;
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--text2);
  white-space: nowrap;
  flex-shrink: 0;
  padding: .38rem .9rem;
  border: 1px solid var(--line);
  border-radius: 2px;
  transition: color .15s, border-color .15s;
}
.nav-arrow:hover       { color: var(--red); border-color: var(--red); }
.nav-arrow.disabled    { color: var(--text4); border-color: var(--line); pointer-events: none; }

/* PDF button */
.btn-pdf {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  font-family: 'Oswald', sans-serif;
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--text2);
  border: 1px solid var(--line);
  border-radius: 2px;
  padding: .38rem .85rem;
  transition: color .15s, border-color .15s;
  text-decoration: none;
}
.btn-pdf:hover { color: var(--red); border-color: var(--red); }

/* Chart banner */
.chart-banner {
  background: var(--text);
  color: #fff;
  font-family: 'Oswald', sans-serif;
  font-size: .85rem;
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
  text-align: center;
  padding: .7rem 1rem;
}

/* ═══════════════════════════════════════════════════════════════════════════════
   CHART GRID — two-column, PDF-style bordered cells
═══════════════════════════════════════════════════════════════════════════════ */
.chart-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-auto-flow: column;
  grid-template-rows: repeat(10, auto);
  border-left: 1px solid var(--line);
  border-top:  1px solid var(--line);
}

.chart-entry {
  display: flex;
  align-items: flex-start;
  gap: .6rem;
  padding: .75rem .85rem;
  border-right:  1px solid var(--line);
  border-bottom: 1px solid var(--line);
  transition: background .12s;
  animation: fadeUp .35s ease both;
  min-width: 0;
}
.chart-entry:hover { background: var(--surface); }

/* Stagger */
.chart-entry:nth-child(1)  { animation-delay:.00s }
.chart-entry:nth-child(2)  { animation-delay:.03s }
.chart-entry:nth-child(3)  { animation-delay:.05s }
.chart-entry:nth-child(4)  { animation-delay:.07s }
.chart-entry:nth-child(5)  { animation-delay:.09s }
.chart-entry:nth-child(6)  { animation-delay:.11s }
.chart-entry:nth-child(7)  { animation-delay:.13s }
.chart-entry:nth-child(8)  { animation-delay:.15s }
.chart-entry:nth-child(9)  { animation-delay:.17s }
.chart-entry:nth-child(10) { animation-delay:.19s }
.chart-entry:nth-child(11) { animation-delay:.21s }
.chart-entry:nth-child(12) { animation-delay:.22s }
.chart-entry:nth-child(13) { animation-delay:.23s }
.chart-entry:nth-child(14) { animation-delay:.24s }
.chart-entry:nth-child(15) { animation-delay:.25s }
.chart-entry:nth-child(16) { animation-delay:.26s }
.chart-entry:nth-child(17) { animation-delay:.27s }
.chart-entry:nth-child(18) { animation-delay:.28s }
.chart-entry:nth-child(19) { animation-delay:.29s }
.chart-entry:nth-child(20) { animation-delay:.30s }

/* Position column */
.entry-pos {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  flex-shrink: 0;
  width: 2.8rem;
  padding-top: .05rem;
}

.pos-num {
  font-family: 'Oswald', sans-serif;
  font-size: 1.55rem;
  font-weight: 700;
  color: var(--red);
  line-height: 1;
  letter-spacing: -.02em;
}

.pos-move {
  font-family: 'Oswald', sans-serif;
  font-size: .62rem;
  font-weight: 700;
  letter-spacing: .02em;
  margin-top: .18rem;
  line-height: 1;
}
.move-new  { color: var(--red); }
.move-re   { color: #7b4fa0; }
.move-up   { color: var(--green); }
.move-sup  { color: #1a6e3a; }
.move-down { color: var(--red); opacity: .6; }
.move-same { color: var(--text2); font-size: .9rem; }

/* Track info */
.entry-body { flex: 1; min-width: 0; }

.entry-track {
  font-family: 'Oswald', sans-serif;
  font-size: .88rem;
  font-weight: 700;
  letter-spacing: .03em;
  text-transform: uppercase;
  color: var(--text);
  line-height: 1.25;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 0;
  flex-wrap: nowrap;
}

.entry-track-text {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.entry-artist {
  font-size: .75rem;
  font-style: italic;
  color: var(--text2);
  margin-top: .1rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.entry-stats {
  font-family: 'Oswald', sans-serif;
  font-size: .6rem;
  letter-spacing: .04em;
  color: var(--text3);
  margin-top: .25rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Small badge images used in About page legend */
.badge-img {
  height: 18px;
  width: auto;
  vertical-align: middle;
  margin: 0 .25rem;
  position: relative;
  top: -1px;
}

/* Inline badge symbols (CB = star, BS = disc) */
.sym-cb, .sym-bs {
  display: inline-block;
  margin-left: .4rem;
  font-style: normal;
  font-weight: 900;
  font-size: 1em;
  vertical-align: middle;
  position: relative;
  top: -1px;
}
.sym-cb { color: #e8870a; flex-shrink: 0; }
.sym-bs { color: #e8870a; font-size: .8em; flex-shrink: 0; }

/* ═══════════════════════════════════════════════════════════════════════════════
   YEARLY TABLE
═══════════════════════════════════════════════════════════════════════════════ */
.chart-table {
  width: 100%;
  border-collapse: collapse;
}

.chart-table thead th {
  font-family: 'Oswald', sans-serif;
  font-size: .6rem;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--text3);
  text-align: left;
  padding: 0 .6rem .75rem;
  border-bottom: 2px solid var(--text);
}
.chart-table thead th.col-pos  { text-align: right; }
.chart-table thead th.col-data { text-align: right; }

.chart-table tbody tr {
  border-bottom: 1px solid var(--line);
  transition: background .1s;
  animation: fadeUp .35s ease both;
}
.chart-table tbody tr:hover { background: var(--surface); }
.chart-table td { vertical-align: middle; }

.col-pos { width: 3.5rem; padding: .85rem .6rem .85rem 0; }

.pos-wrap {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.chart-table .pos-num { font-size: 1.4rem; }

.col-info { padding: .85rem .65rem; }
.col-data { width: 6.5rem; padding: .85rem 0 .85rem .5rem; text-align: right; }

.data-wrap { display: flex; flex-direction: column; align-items: flex-end; gap: .18rem; }

.entry-pts {
  font-family: 'Oswald', sans-serif;
  font-size: .85rem;
  font-weight: 700;
  color: var(--text2);
}

.entry-meta {
  font-family: 'Oswald', sans-serif;
  font-size: .58rem;
  color: var(--text3);
  letter-spacing: .04em;
  white-space: nowrap;
}

/* Artist/title in yearly table */
.col-info .entry-track {
  font-family: 'Oswald', sans-serif;
  font-size: .88rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .02em;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: flex;
  align-items: center;
}
.col-info .entry-artist {
  font-size: .75rem;
  font-style: italic;
  color: var(--text2);
  margin-top: .1rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ═══════════════════════════════════════════════════════════════════════════════
   SEARCH
═══════════════════════════════════════════════════════════════════════════════ */
.search-view { animation: fadeUp .3s ease both; max-width: 760px; }

.search-form {
  display: flex;
  gap: .6rem;
  margin: 1.75rem 0 2.5rem;
}

.search-input {
  flex: 1;
  background: var(--bg);
  color: var(--text);
  border: 1px solid var(--line2);
  border-radius: 2px;
  padding: .78rem 1rem;
  font-size: .9rem;
  font-family: 'Inter', sans-serif;
  transition: border-color .15s;
}
.search-input::placeholder { color: var(--text3); }
.search-input:focus { outline: none; border-color: var(--text2); }

.search-btn {
  font-family: 'Oswald', sans-serif;
  font-weight: 700;
  font-size: .75rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  background: var(--red);
  color: #fff;
  border: none;
  border-radius: 2px;
  padding: .78rem 1.7rem;
  cursor: pointer;
  transition: background .15s;
  white-space: nowrap;
}
.search-btn:hover { background: var(--orange); }

.search-hint {
  text-align: center;
  color: var(--text4);
  padding: 5rem 1rem;
  font-family: 'Oswald', sans-serif;
  font-size: .7rem;
  letter-spacing: .2em;
  text-transform: uppercase;
}

.result-count {
  font-size: .6rem;
  color: var(--text3);
  letter-spacing: .12em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
  font-family: 'Oswald', sans-serif;
}

.search-result {
  padding: .95rem 0;
  border-bottom: 1px solid var(--line);
  animation: fadeUp .28s ease both;
}

.result-head {
  display: flex;
  align-items: center;
  gap: .5rem;
  flex-wrap: wrap;
  margin-bottom: .35rem;
}
.result-artist {
  font-family: 'Oswald', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  text-transform: uppercase;
  color: var(--text);
}
.result-sep  { color: var(--text4); font-size: .9rem; }
.result-song { font-style: italic; color: var(--text2); font-size: .88rem; }

.result-variants {
  font-size: .75rem;
  color: var(--text3);
  margin-bottom: .35rem;
}
.result-variants em { font-style: italic; }

.result-collab {
  font-size: .78rem;
  font-style: italic;
  color: var(--text3);
  margin-bottom: .3rem;
}
.result-collab a { color: inherit; text-decoration: none; }
.result-collab a:hover { text-decoration: underline; }

.con-only-note {
  font-size: .75rem;
  color: var(--orange);
  margin-bottom: .3rem;
}

/* ── Stats / Hall of Fame ── */
.stats-note {
  font-size: .78rem;
  color: var(--text3);
  margin-bottom: 1.2rem;
  line-height: 1.5;
}
.stats-controls {
  display: flex;
  align-items: center;
  gap: .6rem;
  margin-bottom: 1.4rem;
}
.stats-label {
  font-family: 'Oswald', sans-serif;
  font-size: .78rem;
  color: var(--text3);
  letter-spacing: .04em;
}
.stats-row {
  display: flex;
  align-items: center;
  gap: .8rem;
  padding: .55rem 0;
  border-bottom: 1px solid var(--line);
}
.stats-rank {
  font-family: 'Oswald', sans-serif;
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--red);
  width: 2rem;
  text-align: right;
  flex-shrink: 0;
}
.stats-artist {
  font-family: 'Oswald', sans-serif;
  font-weight: 700;
  font-size: .92rem;
  text-transform: uppercase;
  color: var(--text);
  text-decoration: none;
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.stats-artist:hover { text-decoration: underline; }
.stats-val {
  font-family: 'Oswald', sans-serif;
  font-size: .9rem;
  color: var(--text);
  white-space: nowrap;
}
.stats-unit {
  font-family: 'Inter', sans-serif;
  font-size: .72rem;
  color: var(--text3);
  margin-left: .3rem;
}

.artist-link { color: inherit; text-decoration: none; display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.artist-link:hover { text-decoration: underline; }
.track-link { color: inherit; text-decoration: none; }
.track-link:hover { text-decoration: underline; }

.back-btn {
  display: inline-block;
  margin-bottom: .8rem;
  padding: .3rem .8rem;
  font-size: .78rem;
  font-family: 'Oswald', sans-serif;
  font-weight: 700;
  letter-spacing: .04em;
  color: var(--text2);
  background: none;
  border: 1px solid var(--line);
  border-radius: 4px;
  cursor: pointer;
}
.back-btn:hover { color: var(--text); border-color: var(--text3); }

.artist-stats {
  display: flex;
  gap: 1.2rem;
  flex-wrap: wrap;
  margin: 1.2rem 0 .6rem;
}
.artist-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: #f7f7f7;
  border-radius: 8px;
  padding: .7rem 1.1rem;
  min-width: 4.5rem;
}
.artist-stat-val {
  font-family: 'Oswald', sans-serif;
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--red);
  line-height: 1;
}
.artist-stat-lbl {
  font-size: .65rem;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--text3);
  margin-top: .3rem;
}
.artist-years {
  font-size: .8rem;
  color: var(--text3);
  margin: 0 0 1.2rem;
}

.result-totals {
  display: flex;
  align-items: center;
  gap: .5rem;
  margin-bottom: .5rem;
  flex-wrap: wrap;
}
.stat-item {
  font-family: 'Oswald', sans-serif;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .04em;
  color: var(--text2);
}
.stat-peak { color: var(--red); }
.stat-sep  { color: var(--text4); font-size: .7rem; }

/* Year rows in search results */
.result-years { display: flex; flex-direction: column; gap: .35rem; }

.result-year-row {
  display: flex;
  align-items: baseline;
  gap: .75rem;
  flex-wrap: wrap;
}

.result-year-label {
  font-family: 'Oswald', sans-serif;
  font-weight: 700;
  font-size: .78rem;
  letter-spacing: .04em;
  color: var(--text2);
  min-width: 2.8rem;
  flex-shrink: 0;
}

.result-year-entries {
  display: flex;
  flex-wrap: wrap;
  gap: .3rem .6rem;
}

.app-link {
  font-family: 'Oswald', sans-serif;
  font-size: .72rem;
  color: var(--text2);
  transition: color .1s;
  white-space: nowrap;
}
.app-link:hover { color: var(--red); }
.app-link .app-pos { color: var(--red); font-weight: 700; }

/* ═══════════════════════════════════════════════════════════════════════════════
   RESPONSIVE
═══════════════════════════════════════════════════════════════════════════════ */

/* Nav label helpers */
.nav-short { display: none; }

/* Tablet — two-column chart collapses to one */
@media (max-width: 680px) {
  .chart-grid {
    grid-template-columns: 1fr;
    grid-auto-flow: row;
    grid-template-rows: none;
  }
}

/* Mobile — full reflow */
@media (max-width: 600px) {
  :root { --header-h: 56px; }

  /* Header */
  .site-header  { padding: 0 .85rem; gap: .75rem; }
  .header-logo  { height: 30px; }

  /* Nav: abbreviate long labels */
  .nav-full     { display: none; }
  .nav-short    { display: inline; }
  .nav-link     { padding: .4rem .6rem; font-size: .73rem; letter-spacing: .06em; }

  /* Main content */
  main { padding: 1.5rem .85rem 4rem; }

  /* Edition line wraps gracefully */
  .chart-edition-line {
    display: block;
    font-size: .82rem;
    padding: .4rem .85rem;
    line-height: 1.55;
  }

  /* Chart nav */
  .chart-nav  { gap: .4rem; }
  .nav-arrow  { padding: .35rem .65rem; font-size: .65rem; }
  .btn-pdf    { padding: .35rem .65rem; font-size: .63rem; }

  /* Chart entries */
  .pos-num        { font-size: 1.3rem; }
  .entry-pos      { width: 2.5rem; }
  .entry-track    { font-size: .82rem; }
  .entry-artist,
  .entry-stats    { font-size: .68rem; }

  /* Highlights */
  .highlight-logo { height: 52px; width: 52px; }
  .highlight-track { font-size: .88rem; }

  /* Yearly table */
  .chart-table .pos-num { font-size: 1.15rem; }
  .col-data { width: 5.5rem; }
  .entry-pts  { font-size: .78rem; }
  .entry-meta { font-size: .54rem; }

  /* Home */
  .home-logo { width: min(260px, 72vw); }
  .archive-note { padding: 1.1rem 1.1rem; }
}

/* Small phones — hide yearly stats column, no nav label needed */
@media (max-width: 400px) {
  .col-data { display: none; }

  .nav-link { padding: .38rem .45rem; font-size: .68rem; letter-spacing: .04em; }

  /* Spotify embed: compact height on very small screens */
  .spotify-embed iframe { height: 240px; }
}

/* ═══════════════════════════════════════════════════════════════════════════════
   ABOUT PAGE
═══════════════════════════════════════════════════════════════════════════════ */
.about-text {
  max-width: 720px;
  margin: 2rem auto 0;
}
.about-text h2 {
  font-family: 'Oswald', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--text);
  margin: 2rem 0 .6rem;
  padding-bottom: .35rem;
  border-bottom: 1px solid var(--line);
}
.about-text p, .about-text ul {
  font-size: .92rem;
  line-height: 1.7;
  color: var(--text2);
  margin-bottom: .9rem;
}
.about-text ul { padding-left: 1.4rem; }
.about-text li { margin-bottom: .35rem; }
.about-table {
  border-collapse: collapse;
  margin: .5rem 0 1rem;
}
.about-table td {
  padding: .3rem .9rem .3rem .3rem;
  font-size: .88rem;
  color: var(--text2);
  vertical-align: middle;
}
.about-table td:first-child {
  font-family: 'Oswald', sans-serif;
  font-weight: 700;
  min-width: 4rem;
}

/* ═══════════════════════════════════════════════════════════════════════════════
   HOME ARCHIVE NOTE
═══════════════════════════════════════════════════════════════════════════════ */
.archive-note {
  background: #f8f8f8;
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 1.5rem 1.75rem;
  margin-top: 2rem;
}
.archive-note h2 {
  font-family: 'Oswald', sans-serif;
  font-size: .95rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--text);
  margin: 0 0 1rem;
}
.archive-note p {
  font-size: .88rem;
  line-height: 1.65;
  color: var(--text2);
  margin-bottom: .7rem;
}
.archive-note p:last-child { margin-bottom: 0; }
.text-link {
  color: var(--red);
  font-weight: 600;
  text-decoration: none;
}
.text-link:hover { text-decoration: underline; }
