/* ============================================================
   Do You Realize? - Phish Radio Radar
   Design system: Deep Water / Bioluminescent
   Dark first. Teal accent like sonar pinging through dark ocean.
   ============================================================ */

/* ── Spacing scale ── */
:root {
  --s-1:  0.25rem;
  --s-2:  0.5rem;
  --s-3:  0.75rem;
  --s-4:  1rem;
  --s-6:  1.5rem;
  --s-8:  2rem;
  --s-10: 2.5rem;
  --s-12: 3rem;
  --s-16: 4rem;
  --s-20: 5rem;
  --s-24: 6rem;

  --nav-h:  56px;
  --max-w:  1100px;
  --radius: 4px;
  --radius-lg: 8px;

  --font-display: 'Inter', system-ui, sans-serif;
  --font-mono:    'Helvetica Neue', Helvetica, Arial, sans-serif;
}

/* ── Dark theme (default) ── */
:root,
[data-theme="dark"] {
  --bg:          #07100e;
  --bg-surface:  #0c1c18;
  --bg-raised:   #132420;

  --text:   #d8efea;
  --text-2: #7aada4;
  --text-3: #3f6b64;

  --accent:       #00c9b1;
  --accent-light: #00ecd4;
  --accent-dim:   rgba(0, 201, 177, 0.12);
  --accent-glow:  rgba(0, 201, 177, 0.25);

  --border: rgba(0, 201, 177, 0.1);
  --border-subtle: rgba(255,255,255,0.05);

  --row-hover: rgba(0, 201, 177, 0.05);
  --row-alt:   rgba(255,255,255,0.02);

  --shadow: 0 0 0 1px var(--border);
}

/* ── Light theme ── */
[data-theme="light"] {
  --bg:         #f0f9f7;
  --bg-surface: #ffffff;
  --bg-raised:  #e4f4f0;

  --text:   #0d2622;
  --text-2: #2e6b62;
  --text-3: #7aada4;

  --accent:       #007a6e;
  --accent-light: #009985;
  --accent-dim:   rgba(0, 122, 110, 0.1);
  --accent-glow:  rgba(0, 122, 110, 0.18);

  --border: rgba(0, 122, 110, 0.18);
  --border-subtle: rgba(0,0,0,0.06);

  --row-hover: rgba(0, 122, 110, 0.05);
  --row-alt:   rgba(0,0,0,0.025);

  --shadow: 0 1px 3px rgba(0,0,0,0.08), 0 0 0 1px var(--border);
}

/* ── Theme transition (only when switching, not on load) ── */
.theme-transition,
.theme-transition * {
  transition: background-color 0.2s, color 0.2s, border-color 0.2s !important;
}

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

html { font-size: 16px; scroll-behavior: smooth; }

body {
  font-family: var(--font-display);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  padding-top: var(--nav-h);
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-light); }

img { display: block; }

/* ── Typography ── */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: var(--text);
}

h1 { font-size: clamp(1.8rem, 4vw, 2.8rem); }
h2 { font-size: clamp(1.2rem, 2.5vw, 1.6rem); }

.mono {
  font-family: var(--font-mono);
  font-size: 0.85em;
}

.text-muted  { color: var(--text-3); }
.text-right  { text-align: right; }
.text-accent { color: var(--accent); }

/* ── Container ── */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: var(--s-8) var(--s-6);
}

@media (max-width: 768px) {
  .container { padding: var(--s-6) var(--s-4); }
}

/* ============================================================
   NAV
   ============================================================ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  z-index: 100;
  backdrop-filter: blur(8px);
}

.nav-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--s-6);
  height: 100%;
  display: flex;
  align-items: center;
  gap: var(--s-8);
}

.nav-breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-shrink: 0;
  line-height: 1;
}

.breadcrumb-home {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 400;
  letter-spacing: 0.06em;
  color: var(--text-3);
  text-decoration: none;
  transition: color 0.15s;
  white-space: nowrap;
}
.breadcrumb-home:hover { color: var(--accent); }

.breadcrumb-sep {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-3);
  opacity: 0.5;
  user-select: none;
}

.breadcrumb-current {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1.05rem;
  letter-spacing: -0.04em;
  line-height: 1;
  color: var(--text);
  text-decoration: none;
  display: flex;
  align-items: baseline;
  gap: 3px;
  white-space: nowrap;
}
.breadcrumb-current:hover { color: var(--text); }

.brand-fish  { color: var(--accent); }
.brand-radar { color: var(--text-2); font-size: 0.9em; }

@media (max-width: 480px) {
  .breadcrumb-home { display: none; }
  .breadcrumb-sep  { display: none; }
}

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--s-1);
  flex: 1;
}

.nav-link {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-2);
  padding: var(--s-1) var(--s-3);
  border-radius: var(--radius);
  transition: color 0.15s, background 0.15s;
}

.nav-link:hover {
  color: var(--text);
  background: var(--accent-dim);
}

.nav-link.active {
  color: var(--accent);
  background: var(--accent-dim);
}

.theme-toggle {
  margin-left: auto;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-2);
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: color 0.15s, border-color 0.15s, background 0.15s;
}

.theme-toggle:hover {
  color: var(--accent);
  border-color: var(--accent);
  background: var(--accent-dim);
}

@media (max-width: 480px) {
  .nav-inner { padding: 0 var(--s-4); gap: var(--s-4); }
  .nav-link   { padding: var(--s-1) var(--s-2); }
}

/* ============================================================
   NOW PLAYING
   ============================================================ */
.now-playing {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius-lg);
  padding: var(--s-8) var(--s-8);
  margin-bottom: var(--s-8);
  position: relative;
  overflow: hidden;
}

.now-playing::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 0% 50%, var(--accent-dim) 0%, transparent 65%);
  pointer-events: none;
}

.now-playing-label {
  display: flex;
  align-items: center;
  gap: var(--s-2);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
  margin-bottom: var(--s-3);
}

.now-playing-label::before {
  content: '';
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 0 var(--accent-glow);
  animation: pulse-dot 2s ease-in-out infinite;
  flex-shrink: 0;
}

@keyframes pulse-dot {
  0%   { box-shadow: 0 0 0 0 var(--accent-glow); }
  50%  { box-shadow: 0 0 0 6px transparent; }
  100% { box-shadow: 0 0 0 0 var(--accent-glow); }
}

.now-playing-title {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(1.6rem, 4vw, 2.6rem);
  letter-spacing: -0.04em;
  line-height: 1.05;
  color: var(--text);
  margin-bottom: var(--s-2);
}

.now-playing-show {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--text-2);
  margin-bottom: var(--s-1);
}

.now-playing-time {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-3);
}

/* ============================================================
   STATS GRID
   ============================================================ */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--s-4);
  margin-bottom: var(--s-8);
}

.stat-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-left: 2px solid var(--accent);
  border-radius: var(--radius);
  padding: var(--s-4) var(--s-4);
}

.stat-value {
  font-family: var(--font-mono);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.1;
  margin-bottom: var(--s-1);
  word-break: break-word;
}

.stat-label {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--text-3);
}

@media (max-width: 768px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 480px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: var(--s-3); }
  .stat-value { font-size: 1.2rem; }
}

/* ============================================================
   SECTION
   ============================================================ */
.section {
  margin-bottom: var(--s-10);
}

.section-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--s-4);
  margin-bottom: var(--s-4);
  padding-bottom: var(--s-3);
  border-bottom: 1px solid var(--border-subtle);
}

.section-title {
  font-size: 1rem;
  font-weight: 900;
  letter-spacing: -0.02em;
}

.section-link {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--accent);
  white-space: nowrap;
}

/* ============================================================
   PLAY LIST
   ============================================================ */
.play-list {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.play-row {
  display: flex;
  align-items: center;
  gap: var(--s-4);
  padding: var(--s-3) var(--s-3);
  border-radius: var(--radius);
  transition: background 0.12s;
  background: transparent;
}

.play-row:nth-child(even) { background: var(--row-alt); }

.play-row:hover { background: var(--row-hover); }

.play-row--current {
  background: var(--accent-dim) !important;
  border: 1px solid rgba(0,201,177,0.2);
}

.play-img {
  width: 40px;
  height: 40px;
  border-radius: var(--radius);
  object-fit: cover;
  flex-shrink: 0;
}

.play-img--placeholder {
  width: 40px;
  height: 40px;
  border-radius: var(--radius);
  background: var(--bg-raised);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  color: var(--text-3);
  flex-shrink: 0;
}

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

.play-title {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.play-show {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-3);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.play-meta {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  flex-shrink: 0;
}

.play-time {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-3);
  white-space: nowrap;
}

.play-count {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--accent);
  font-weight: 700;
}

/* ── Era of the day card ── */
.era-of-day {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius-lg);
  padding: var(--s-4) var(--s-6);
  margin-bottom: var(--s-8);
  display: flex;
  align-items: center;
  gap: var(--s-5);
  flex-wrap: wrap;
}
.era-of-day--1980 { border-left-color: #8250c8; }
.era-of-day--1990 { border-left-color: var(--accent); }
.era-of-day--2000 { border-left-color: #c8a820; }
.era-of-day--2010 { border-left-color: #2864c8; }
.era-of-day--2020 { border-left-color: #c83248; }
.era-of-day-label {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-3);
  white-space: nowrap;
}
.era-of-day-main {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  flex: 1;
}
.era-badge--lg {
  font-size: 0.82rem;
  padding: 3px var(--s-3);
}
.era-of-day-desc {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1rem;
  letter-spacing: -0.02em;
  color: var(--text);
}
.era-of-day-count {
  font-size: 0.75rem;
  color: var(--text-3);
  white-space: nowrap;
}

/* ── Daily highlights cards ── */
.highlights-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s-8);
}
.highlights-card {
  /* no background - transparent, sits directly on page */
}
.highlights-card-title {
  font-size: 0.65rem;
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-3);
  margin-bottom: 0;
  padding-bottom: var(--s-2);
  border-bottom: 1px solid var(--border);
}
.highlights-list {
  display: flex;
  flex-direction: column;
}
.highlights-row {
  display: flex;
  align-items: baseline;
  gap: var(--s-2);
  padding: var(--s-2) 0;
  border-bottom: 1px solid var(--border-subtle);
  font-size: 0.85rem;
}
.highlights-row:last-child { border-bottom: none; }
.highlights-day {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-3);
  white-space: nowrap;
  width: 4.5rem;
  flex-shrink: 0;
}
.highlights-name {
  flex: 1;
  font-family: var(--font-mono);
  color: var(--text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 0;
}
a.highlights-name:hover { color: var(--accent); }
.highlights-count {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-3);
  white-space: nowrap;
  flex-shrink: 0;
}

@media (max-width: 600px) {
  .highlights-grid { grid-template-columns: 1fr; gap: var(--s-6); }
  .era-of-day { gap: var(--s-3); padding: var(--s-3) var(--s-4); }
}

/* ── Trend indicators (songs leaderboard) ── */
.trend {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  margin-left: 3px;
  vertical-align: middle;
}
.trend--up   { color: #22c55e; }
.trend--down { color: #ef4444; }

/* ============================================================
   ERA BADGES
   ============================================================ */
.era-badge {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  padding: 2px 7px;
  border-radius: 20px;
  white-space: nowrap;
  vertical-align: middle;
}

/* 1980s - deep purple/violet */
.era-1980 {
  background: rgba(130, 80, 200, 0.18);
  color: #b38aee;
  border: 1px solid rgba(130, 80, 200, 0.3);
}

/* 1990s - teal (the golden era) */
.era-1990 {
  background: rgba(0, 201, 177, 0.15);
  color: var(--accent);
  border: 1px solid rgba(0, 201, 177, 0.3);
}

/* 2000s - amber/gold (2.0 era) */
.era-2000 {
  background: rgba(220, 160, 40, 0.15);
  color: #e0a830;
  border: 1px solid rgba(220, 160, 40, 0.3);
}

/* 2010s - blue/indigo (3.0 era) */
.era-2010 {
  background: rgba(60, 130, 220, 0.15);
  color: #6aaaf0;
  border: 1px solid rgba(60, 130, 220, 0.3);
}

/* 2020s - coral/pink (4.0 / recent) */
.era-2020 {
  background: rgba(240, 90, 100, 0.15);
  color: #f07888;
  border: 1px solid rgba(240, 90, 100, 0.3);
}

/* Light mode era badge overrides - slightly richer */
[data-theme="light"] .era-1980 { background: rgba(130,80,200,0.1); }
[data-theme="light"] .era-1990 { background: rgba(0,122,110,0.1); color: var(--accent); border-color: rgba(0,122,110,0.25); }
[data-theme="light"] .era-2000 { background: rgba(180,120,20,0.1); color: #a07018; border-color: rgba(180,120,20,0.25); }
[data-theme="light"] .era-2010 { background: rgba(40,100,200,0.1); color: #2864c8; border-color: rgba(40,100,200,0.25); }
[data-theme="light"] .era-2020 { background: rgba(200,50,70,0.1);  color: #c83248; border-color: rgba(200,50,70,0.25); }

/* ============================================================
   PAGE HEADER
   ============================================================ */
.page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-6);
  margin-bottom: var(--s-8);
  flex-wrap: wrap;
}

.page-title {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  letter-spacing: -0.04em;
}

/* ============================================================
   FILTER TABS
   ============================================================ */
.filter-groups {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  flex-wrap: wrap;
}

.filter-label {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-3);
  white-space: nowrap;
  flex-shrink: 0;
}

.filter-tabs {
  display: flex;
  gap: var(--s-1);
  flex-wrap: wrap;
}

.filter-tab {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: var(--s-1) var(--s-3);
  border-radius: 20px;
  border: 1px solid var(--border);
  color: var(--text-2);
  background: transparent;
  transition: color 0.12s, background 0.12s, border-color 0.12s;
  cursor: pointer;
  text-decoration: none;
}

.filter-tab:hover {
  color: var(--text);
  border-color: var(--accent);
  background: var(--accent-dim);
}

.filter-tab.active {
  color: var(--bg);
  background: var(--accent);
  border-color: var(--accent);
}

[data-theme="light"] .filter-tab.active {
  color: #fff;
}

/* ── Search bar ── */
.search-bar {
  position: relative;
  margin-bottom: var(--s-4);
}

.search-bar input {
  width: 100%;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: var(--s-3) var(--s-4);
  font-family: var(--font-display);
  font-size: 0.9rem;
  color: var(--text);
  outline: none;
  transition: border-color 0.12s;
}

.search-bar input:focus {
  border-color: var(--accent);
}

.search-bar input::placeholder {
  color: var(--text-3);
}

.search-clear {
  position: absolute;
  right: var(--s-4);
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-3);
  font-size: 0.8rem;
  line-height: 1;
  text-decoration: none;
  transition: color 0.12s;
}

.search-clear:hover { color: var(--text); }

/* ── Results meta ── */
.results-meta {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-3);
  margin-bottom: var(--s-4);
}

.results-meta em {
  font-style: normal;
  color: var(--text-2);
}

/* ── Pagination ── */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--s-4);
  padding: var(--s-6) 0;
}

.page-link {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: var(--s-2) var(--s-4);
  border-radius: 20px;
  border: 1px solid var(--border);
  color: var(--text-2);
  text-decoration: none;
  transition: color 0.12s, border-color 0.12s, background 0.12s;
}

.page-link:not(.disabled):hover {
  color: var(--text);
  border-color: var(--accent);
  background: var(--accent-dim);
}

.page-link.disabled {
  opacity: 0.3;
  cursor: default;
}

.page-info {
  font-size: 0.72rem;
  color: var(--text-3);
}

/* ============================================================
   DATA TABLE
   ============================================================ */
.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.data-table thead {
  position: sticky;
  top: var(--nav-h);
  z-index: 10;
  background: var(--bg);
}

.data-table th {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-3);
  font-weight: 400;
  padding: var(--s-3) var(--s-3);
  border-bottom: 1px solid var(--border);
  text-align: left;
  white-space: nowrap;
}

.data-table td {
  padding: var(--s-3) var(--s-3);
  border-bottom: 1px solid var(--border-subtle);
  vertical-align: middle;
  color: var(--text);
}

.data-table th.text-right { text-align: right; }
.data-table tbody tr { transition: background 0.1s; }
.data-table tbody tr:nth-child(even) { background: var(--row-alt); }
.data-table tbody tr:hover           { background: var(--row-hover); }

.rank {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-3);
  width: 2.5rem;
  white-space: nowrap;
}

.track-cell {
  display: flex;
  align-items: center;
  gap: var(--s-3);
}

.track-title {
  font-weight: 600;
  color: var(--text);
}

.shows-cell { vertical-align: top; padding-top: 0.6rem; }
.show-link  { display: block; }
.show-link + .show-link { margin-top: 3px; }

/* ============================================================
   CHART SECTIONS
   ============================================================ */
.chart-section {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: var(--s-6) var(--s-6);
  margin-bottom: var(--s-6);
}

.chart-title {
  font-size: 1.1rem;
  font-weight: 900;
  letter-spacing: -0.03em;
  margin-bottom: var(--s-1);
}

.chart-subtitle {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-3);
  margin-bottom: var(--s-6);
}

.chart-container {
  min-height: 300px;
  width: 100%;
  overflow-x: auto;
}

/* ============================================================
   BUTTON
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  color: var(--accent);
  border: 1px solid var(--accent);
  background: var(--accent-dim);
  padding: var(--s-2) var(--s-4);
  border-radius: var(--radius);
  transition: background 0.15s, color 0.15s;
  text-decoration: none;
  cursor: pointer;
}

.btn:hover {
  background: var(--accent);
  color: var(--bg);
}

[data-theme="light"] .btn:hover { color: #fff; }

/* ============================================================
   EMPTY STATE
   ============================================================ */
.empty-state {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-3);
  text-align: center;
  padding: var(--s-12) var(--s-4);
}

/* ============================================================
   ERROR PAGE
   ============================================================ */
.error-page {
  text-align: center;
  padding: var(--s-24) var(--s-4);
}

.error-code {
  font-family: var(--font-mono);
  font-size: 5rem;
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
  margin-bottom: var(--s-4);
  opacity: 0.5;
}

.error-message {
  font-size: 1.1rem;
  color: var(--text-2);
  margin-bottom: var(--s-8);
}

/* ============================================================
   TRACKING SINCE
   ============================================================ */
.tracking-since {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-3);
  text-align: center;
  padding: var(--s-6) 0 0;
  margin-top: var(--s-6);
  border-top: 1px solid var(--border-subtle);
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  border-top: 1px solid var(--border-subtle);
  padding: var(--s-6) 0;
  margin-top: var(--s-8);
}

.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--s-6);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-4);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-3);
  flex-wrap: wrap;
}

.footer-inner a {
  color: var(--text-3);
  transition: color 0.12s;
}
.footer-inner a:hover { color: var(--accent); }

@media (max-width: 600px) {
  .footer-inner { flex-direction: column; gap: var(--s-2); align-items: flex-start; }
}

/* ============================================================
   RESPONSIVE TABLE - horizontal scroll on small screens
   ============================================================ */
@media (max-width: 768px) {
  .data-table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  /* overflow-x: auto forces a scroll container, breaking position:sticky inside.
     Disable the sticky header on mobile to prevent it from offsetting over row 1. */
  .data-table-wrap .data-table thead {
    position: static;
  }

  .page-header {
    gap: var(--s-4);
  }
}

@media (max-width: 480px) {
  .page-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .hide-mobile { display: none; }
  .track-cell .play-img { display: none; }
}

/* ============================================================
   SITE TAGLINE (home page)
   ============================================================ */
.site-tagline {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(1.15rem, 2.5vw, 1.5rem);
  letter-spacing: -0.03em;
  line-height: 1.3;
  color: var(--text-2);
  margin-bottom: var(--s-8);
}

.tagline-q {
  color: var(--accent);
}

.tagline-body {
  display: inline-block;
}

.tagline-sub {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.02em;
  color: var(--text-3);
  margin-top: var(--s-2);
}

/* ============================================================
   SHOW DETAIL
   ============================================================ */

.back-link {
  display: inline-block;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-3);
  margin-bottom: var(--s-6);
  transition: color 0.12s;
}
.back-link:hover { color: var(--accent); }

/* ── Track title as link ── */
a.track-title {
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.12s;
}
a.track-title:hover { color: var(--accent); }

/* ── More shows overflow link ── */
.more-shows-link {
  display: block;
  margin-top: 3px;
  font-size: 0.75em;
  color: var(--accent);
  text-decoration: none;
  opacity: 0.8;
  transition: opacity 0.12s;
}
.more-shows-link:hover { opacity: 1; }

/* ============================================================
   SONG DETAIL PAGE
   ============================================================ */
.song-detail-header {
  display: flex;
  align-items: center;
  gap: var(--s-4);
  flex-wrap: wrap;
  margin-bottom: var(--s-8);
}

.song-detail-title {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 1;
}

.song-detail-meta {
  display: flex;
  align-items: center;
  gap: var(--s-2);
}

.stats-grid--song {
  grid-template-columns: repeat(4, 1fr);
}

@media (max-width: 600px) {
  .stats-grid--song { grid-template-columns: repeat(2, 1fr); }
}

.phishin-context {
  border-top: 1px solid var(--border-subtle);
  padding-top: var(--s-6);
  margin-top: var(--s-4);
}

.phishin-context-label {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-3);
  margin-bottom: var(--s-3);
}

.phishin-context-stats {
  font-size: 0.875rem;
  color: var(--text-2);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--s-2);
  margin-bottom: var(--s-4);
}

.phishin-context-stats strong { color: var(--text); }

.phishin-sep { color: var(--text-3); }

.phishin-link {
  font-size: 0.75rem;
  color: var(--accent);
  text-decoration: none;
  transition: opacity 0.12s;
}
.phishin-link:hover { opacity: 0.75; }

.show-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--s-6);
  margin-bottom: var(--s-8);
}

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

.show-date-line {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  margin-bottom: var(--s-2);
}

.show-date-display {
  font-size: 0.75rem;
  color: var(--text-3);
  letter-spacing: 0.03em;
}

.show-venue {
  font-size: clamp(1.5rem, 3.5vw, 2.4rem);
  letter-spacing: -0.04em;
  margin-bottom: var(--s-2);
}

.show-location {
  font-size: 0.85rem;
  color: var(--text-2);
  margin-bottom: var(--s-1);
}

.show-tour {
  font-size: 0.72rem;
  color: var(--text-3);
  letter-spacing: 0.03em;
}

.show-cover-art {
  width: 96px;
  height: 96px;
  border-radius: var(--radius-lg);
  object-fit: cover;
  flex-shrink: 0;
  border: 1px solid var(--border-subtle);
}

@media (max-width: 480px) {
  .show-cover-art { width: 64px; height: 64px; }
}

.stats-grid--show {
  grid-template-columns: repeat(3, 1fr);
}

@media (max-width: 600px) {
  .stats-grid--show { grid-template-columns: repeat(2, 1fr); }
}

/* ── Setlist ── */
.setlist-set {
  margin-bottom: var(--s-6);
}

.setlist-set-name {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
  margin-bottom: var(--s-3);
  padding-bottom: var(--s-2);
  border-bottom: 1px solid var(--border-subtle);
}

.setlist-songs {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.setlist-song {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-4);
  padding: var(--s-2) var(--s-3);
  border-radius: var(--radius);
  transition: background 0.1s;
}

.setlist-song:nth-child(even) { background: var(--row-alt); }
.setlist-song:hover { background: var(--row-hover); }

.setlist-song--aired {
  background: var(--accent-dim) !important;
}
.setlist-song--aired:hover { background: rgba(0,201,177,0.12) !important; }

.setlist-song-title,
.setlist-song-link {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
  flex: 1;
  min-width: 0;
}

.setlist-song-link {
  text-decoration: none;
  transition: color 0.12s;
}
.setlist-song-link:hover { color: var(--accent); }

.setlist-airplay-badges {
  display: flex;
  align-items: center;
  gap: var(--s-2);
  flex-shrink: 0;
}

.airplay-badge {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 20px;
  white-space: nowrap;
  cursor: default;
}

.airplay-badge--show {
  background: rgba(0, 201, 177, 0.18);
  color: var(--accent);
  border: 1px solid rgba(0, 201, 177, 0.35);
}

.airplay-badge--alltime {
  background: var(--bg-raised);
  color: var(--text-3);
  border: 1px solid var(--border-subtle);
}

/* ── Notice banner ── */
.notice {
  font-size: 0.8rem;
  padding: var(--s-3) var(--s-4);
  border-radius: var(--radius);
  margin-bottom: var(--s-6);
}

.notice--warn {
  background: rgba(220, 160, 40, 0.1);
  color: #e0a830;
  border: 1px solid rgba(220, 160, 40, 0.25);
}

.notice--info {
  background: var(--bg-surface);
  color: var(--text-3);
  border: 1px solid var(--border-subtle);
}

/* ── Show tags/notes ── */
.show-tag {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius);
  padding: var(--s-4) var(--s-4);
  margin-bottom: var(--s-3);
}

.show-tag-name {
  display: block;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  margin-bottom: var(--s-2);
}

.show-tag-notes {
  font-size: 0.85rem;
  color: var(--text-2);
  line-height: 1.5;
}

/* ── State map ── */
.statemap-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--s-3);
  margin-bottom: var(--s-2);
}

.statemap-header .chart-title {
  margin-bottom: 0;
}

.statemap-layout {
  display: grid;
  grid-template-columns: 1fr 200px;
  gap: var(--s-5);
  align-items: start;
}

.statemap-container {
  min-height: 200px;
}

.cities-panel {
  padding-top: var(--s-2);
}

.cities-title {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-3);
  margin: 0 0 var(--s-3);
}

.city-item {
  display: flex;
  align-items: baseline;
  gap: var(--s-2);
  padding: var(--s-1) 0;
  border-bottom: 1px solid var(--border-subtle);
  font-size: 0.82rem;
}

.city-rank {
  font-size: 0.68rem;
  color: var(--text-3);
  min-width: 1.2em;
  text-align: right;
  flex-shrink: 0;
}

.city-name {
  flex: 1;
  color: var(--text-2);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.city-count {
  font-size: 0.75rem;
  color: var(--accent);
  flex-shrink: 0;
}

.cities-empty {
  font-size: 0.75rem;
  color: var(--text-3);
  padding: var(--s-2) 0;
}

@media (max-width: 600px) {
  .statemap-layout {
    grid-template-columns: 1fr;
  }

  .statemap-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .cities-panel {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0 var(--s-4);
  }

  .cities-title {
    grid-column: 1 / -1;
  }

  #cities-empty {
    grid-column: 1 / -1;
  }
}
