
/* v4.3.12: standard page wrapper */
.wrap{
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 22px;
}
@media (max-width: 700px){
  .wrap{ padding: 0 16px; }
}

:root{
  --bg:#0b0f14;
  --panel:#101720;
  --panel2:#0f141c;
  --fg:#e9eef5;
  --muted:#a2acb6;
  --line:#1b2633;
  --accent:#6aa6ff;
  --good:#4bd37b;
}

*{box-sizing:border-box}
body{
  margin:0;
  font-family:system-ui,-apple-system,Segoe UI,Roboto,Arial,sans-serif;
  background:var(--bg);
  color:var(--fg);
}

header{
  padding:26px 20px 18px;
  background:linear-gradient(135deg,#0f1a28,#0b0f14);
  border-bottom:1px solid var(--line);
}

h1{margin:0;font-size:22px;letter-spacing:.2px}
.sub{color:var(--muted);margin-top:6px;font-size:14px}

.container{padding:16px 20px;max-width:1300px;margin:0 auto}

.controls{
  display:flex;flex-wrap:wrap;gap:10px;align-items:center;
  margin:12px 0 6px;
}

select,input[type="search"]{
  padding:10px 12px;
  border:1px solid var(--line);
  border-radius:12px;
  background:var(--panel);
  color:var(--fg);
  outline:none;
}

select:focus,input[type="search"]:focus{
  border-color:#2b4060;
  box-shadow:0 0 0 3px rgba(106,166,255,.15);
}

.toggle{
  display:inline-flex;align-items:center;gap:8px;
  padding:8px 10px;
  border:1px solid var(--line);
  border-radius:999px;
  background:var(--panel2);
  cursor:pointer;
  user-select:none;
  color:var(--fg);
}

.toggle input{accent-color:var(--accent)}

hr.sep{border:none;border-top:1px solid var(--line);margin:16px 0}

table{border-collapse:collapse;width:100%;max-width:1200px}
th,td{padding:10px;border-bottom:1px solid var(--line);font-size:14px;vertical-align:top}
th{
  text-align:left;
  position:sticky;
  top:0;
  background:rgba(16,23,32,.95);
  backdrop-filter: blur(6px);
  border-bottom:1px solid #243244;
  z-index:2;
}
tr:hover td{background:rgba(255,255,255,.03)}

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

.no-audio{
  display:inline-block;
  padding:2px 8px;
  border-radius:999px;
  background:rgba(255,255,255,.06);
  color:var(--muted);
  font-style:italic;
  font-size:12px;
  border:1px solid rgba(255,255,255,.08);
}

.thumb{
  width:56px;height:56px;
  object-fit:cover;
  border-radius:10px;
  border:1px solid rgba(255,255,255,.10);
  background:rgba(255,255,255,.06);
}

.grid{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(240px,1fr));
  gap:12px;
  margin-top:14px;
  max-width:1200px;
}
.card{
  border:1px solid var(--line);
  border-radius:16px;
  padding:12px;
  background:var(--panel);
  box-shadow:0 6px 20px rgba(0,0,0,.25);
}
.showThumbWrap{display:flex;justify-content:center;margin:0 0 10px;}
.showThumb{width:140px;max-width:100%;height:90px;object-fit:cover;border-radius:14px;border:1px solid var(--line);box-shadow:0 10px 30px rgba(0,0,0,.35);background:rgba(255,255,255,.06);}
.yearDivider{margin:18px 0 10px;font-size:18px;font-weight:900;letter-spacing:.04em;}
.card h2{font-size:14px;margin:0 0 6px 0}
.card .meta{color:var(--muted);font-size:12px;margin-bottom:10px}
.cardrow{display:flex;gap:10px;align-items:flex-start}

.section-title{
  font-size:13px;
  text-transform:uppercase;
  letter-spacing:.12em;
  color:var(--muted);
  margin:18px 0 10px;
}

.footer{
  padding:18px 20px;
  color:var(--muted);
  font-size:12px;
  border-top:1px solid var(--line);
}

.badge{
  display:inline-block;
  padding:2px 8px;
  border-radius:999px;
  background:rgba(106,166,255,.14);
  color:var(--fg);
  font-size:12px;
  border:1px solid rgba(106,166,255,.22);
  margin-left:8px;
}

#top-heatmaps .hm{
  border:1px solid var(--line);
  border-radius:16px;
  padding:12px;
  background:var(--panel);
  overflow:auto;
}
#top-frequencies .freqbox{
  border:1px solid var(--line);
  border-radius:16px;
  padding:12px;
  background:var(--panel);
}

.freqgrid{display:grid;grid-template-columns:repeat(auto-fit,minmax(280px,1fr));gap:12px;max-width:1200px}
.freqgrid ol{margin:8px 0 0 18px;color:var(--fg)}
.freqgrid li{margin:4px 0;color:var(--fg)}
.freqgrid .muted{color:var(--muted);font-size:12px}

#lightbox{
  position:fixed;inset:0;
  /* Only a *slight* dim behind the poster (keep image bright). */
  background:rgba(0,0,0,.08);
  display:none;
  align-items:center;justify-content:center;
  padding:20px;
  z-index:9999;
}
#lightbox.open{display:flex}
#lightbox img{
  /* Let the poster render much larger (up to nearly full viewport). */
  max-width:96vw;
  max-height:96vh;
  border-radius:14px;
  border:1px solid rgba(255,255,255,.12);
  background:var(--panel);
  box-shadow:0 18px 60px rgba(0,0,0,.55);
}

/* Version stamp */
.ver{font-size:12px; font-weight:700; opacity:0.75; margin-left:6px;}


/* --- Archived show cards + upcoming rows --- */
.show-row{padding:10px 0;border-bottom:1px solid rgba(255,255,255,0.08)}
.show-row__date{font-weight:700}
.show-row__band{margin-top:2px}
.show-row__venue{opacity:.85}

.show-thumb-wrap{display:flex;justify-content:center;margin-bottom:10px}
.show-thumb{
  width:120px;
  height:180px;
  object-fit:contain;
  border-radius:14px;
  border:1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.04);
}
.show-thumb-wrap--empty{height:10px}

.show-card__band{font-size:1.05rem;font-weight:800;margin-bottom:6px;text-align:center}
.show-card__venue{text-align:center;opacity:.9;margin-bottom:6px}
.show-card__date{text-align:center;opacity:.7;font-size:.9rem;margin-bottom:10px}

.show-card__actions{display:flex;gap:10px;justify-content:center;flex-wrap:wrap;margin-bottom:10px}
.pill-btn{display:inline-flex;align-items:center;justify-content:center;padding:8px 12px;border-radius:999px;border:1px solid rgba(167,139,250,0.55);background:rgba(88,28,135,0.25);color:#fff;text-decoration:none;font-weight:700;font-size:.9rem}
.pill-btn:hover{background:rgba(88,28,135,0.4)}

.show-personnel{margin-top:6px}
.show-personnel__label{font-size:.8rem;opacity:.7;margin-bottom:4px;text-transform:uppercase;letter-spacing:.08em}
.show-personnel__text{font-size:.92rem;opacity:.9}

/* Archived Shows (two-up cards on desktop) */
.archivedGrid{
  display:grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap:16px;
  margin-top:14px;
  max-width:1200px;
}
@media (max-width:700px){
   .archivedGrid{ grid-template-columns: 1fr; }
}

/* Year separator inside archived grid should span full width */
.yearDivider{
  grid-column:1 / -1;
  font-weight:800;
  font-size:18px;
  letter-spacing:0.02em;
  margin:18px 0 6px;
}


/* Archived show card layout (poster left, details right) */
.archivedGrid .card.show-card{ display:flex; gap:14px; align-items:flex-start; }
.archivedGrid .card.show-card .card-media{ flex:0 0 96px; width:96px; height:144px; display:flex; align-items:center; justify-content:center; border-radius:12px; overflow:hidden; background:rgba(255,255,255,0.04); }
.archivedGrid .card.show-card .card-thumb{ width:100%; height:100%; object-fit:contain; display:block; }
.archivedGrid .card.show-card .card-body{ flex:1; min-width:0; text-align:left; }
.archivedGrid .card.show-card .show-band{ font-weight:800; font-size:16px; line-height:1.15; }
.archivedGrid .card.show-card .show-card__date{ margin-bottom:2px; }
.archivedGrid .card.show-card .show-venue{ opacity:0.92; }
.archivedGrid .card.show-card .show-actions{ margin-top:8px; }


/* v4.3.12 Archived shows: 2-column cards + left poster layout (ArtworkURL only) */
.archivedGrid{
  display:grid;
  grid-template-columns:repeat(2, minmax(0, 1fr));
  gap:16px;
}
@media (max-width: 900px){
  .archivedGrid{ grid-template-columns:1fr; }
}

.show-card--archived .show-card__row{
  display:flex;
  gap:14px;
  align-items:flex-start;
}

.show-card--archived .card-media--poster{
  flex:0 0 96px;
  width:96px;
  height:128px;
  border-radius:14px;
  overflow:hidden;
  background:rgba(255,255,255,0.04);
  border:1px solid rgba(255,255,255,0.08);
  display:flex;
  align-items:center;
  justify-content:center;
}

.show-card--archived .card-media--poster.card-media--empty{
  background:rgba(255,255,255,0.02);
}

.show-card--archived .card-thumb--poster{
  width:100%;
  height:100%;
  object-fit:contain; /* do NOT crop posters */
  display:block;
}

.show-card--archived .show-card__row{
  display:flex;
  align-items:flex-start;
  gap:14px;
}

.show-card--archived .show-card__body{
  flex:1 1 auto;
  min-width:0;
}

.show-card--archived .show-card__date{
  font-size:0.95rem;
  opacity:0.95;
  margin-bottom:2px;
}

.show-card--archived .show-card__band{
  font-weight:700;
  font-size:1.05rem;
  line-height:1.2;
  margin-bottom:2px;
}

.show-card--archived .show-card__venue{
  opacity:0.9;
  margin-bottom:10px;
}

.show-card--archived .card-actions{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  justify-content:flex-start;
  margin-bottom:10px;
}


/* ===== Archived Shows: 2-wide cards + constrained images (v4.3.12) ===== */

/* Archived Shows grid container */
#shows-container {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  align-items: start;
}

@media (max-width: 980px) {
  #shows-container {
    grid-template-columns: 1fr;
  }
}

/* Archived show card */
.showCard {
  border-radius: 16px;
  overflow: hidden;
}

/* Thumb wrapper already used by archived cards */
.showCard .thumb {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 14px;
  overflow: hidden;
  background: rgba(255,255,255,0.04);
  margin-bottom: 12px;
}

/* Constrain the poster/artwork image */
.showCard .thumb img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover; /* change to contain if you prefer no cropping */
  object-position: center;
}

/* If placeholder has no image, keep it sized */
.showCard .thumb.placeholder {
  min-height: 140px;
}


/* ===== Archived Shows grid override (v4.3.12) ===== */
/* Some builds accidentally forced 1-column; this block enforces 2-column on desktop. */
#shows-container{
  display:grid !important;
  grid-template-columns:repeat(2, minmax(0, 1fr)) !important;
  gap:16px !important;
  align-items:start !important;
}
@media (max-width: 980px){
  #shows-container{
    grid-template-columns:1fr !important;
  }
}

/* Constrain hero/banner & poster thumbnails inside archived cards */
.showCard .thumb{
  width:100%;
  aspect-ratio:16 / 9;
  overflow:hidden;
  border-radius:14px;
  background: rgba(255,255,255,0.04);
  margin-bottom:12px;
}
.showCard .thumb img{
  width:100%;
  height:100%;
  display:block;
  object-fit:cover;
  object-position:center;
}


/* ===== Archived Shows card polish (v4.3.12) ===== */
.archivedGrid{
  display:grid !important;
  grid-template-columns:repeat(2, minmax(0,1fr)) !important;
  gap:16px !important;
  max-width:1200px;
  margin: 14px auto 0 auto;
  padding: 0 6px;
}
@media (max-width: 980px){
  .archivedGrid{
    grid-template-columns:1fr !important;
  }
}

.showCard{
  background: rgba(0,0,0,0.45);
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 16px;
  overflow: hidden;
  padding: 12px;
}

.showCard .thumb{
  width:100%;
  height: 220px;           /* hard cap to stop giant banners */
  max-height: 220px;
  border-radius: 14px;
  overflow:hidden;
  background: rgba(255,255,255,0.04);
  margin-bottom: 12px;
}

.showCard .thumb img{
  width:100%;
  height:100%;
  display:block;
  object-fit: cover;
  object-position: center;
}

.showCard .meta .personnel{
  margin-top: 8px;
  opacity: 0.95;
  line-height: 1.35;
}


/* Bands page thumb sizing */
.band-card .thumb{ width:96px; height:144px; border-radius:12px; overflow:hidden; background:rgba(255,255,255,0.04); }


/* Upcoming shows one-line list + month separators */
.upMonthHeader{
  margin: 18px 0 10px;
  font-weight: 700;
  letter-spacing: .08em;
  opacity: .9;
}

.upRow{
  padding: 10px 0;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.upLine{display:grid;grid-template-columns:140px minmax(0,2.8fr) minmax(0,1.0fr) 160px;column-gap:10px;align-items:baseline;}

.upDot{
  opacity: .6;
}

.upDate{
  font-weight: 650;
  white-space: nowrap;
}


/* Upcoming Shows stable list layout */
.upcoming-list .month-sep{
  margin:18px 0 8px;
  font-weight:800;
  letter-spacing:0.08em;
  opacity:0.9;
}
.upcoming-list .show-row{
  display:flex;
  align-items:center;
  gap:12px;
  padding:10px 0;
  border-bottom:1px solid rgba(255,255,255,0.06);
  flex-wrap:wrap;
}
.upcoming-list .show-row .show-cell{
  min-width: 160px;
}
.upcoming-list .show-row .show-date{min-width: 190px;}
.upcoming-list .show-row .show-band{min-width: 320px;}
.upcoming-list .show-row .show-venue{min-width: 220px;}
.upcoming-list .show-row .show-loc{min-width: 180px;}
@media (max-width: 720px){
  .upcoming-list .show-row{gap:8px;}
  .upcoming-list .show-row .show-band{min-width: 240px;}
}

/* Bands Timeline (bands.html) */
.timelineHost svg { display: block; width: 100%; height: auto; }
.timelineGridBg { fill: rgba(255,255,255,0.03); stroke: rgba(255,255,255,0.08); stroke-width: 1; }
.timelineYearTick { stroke: rgba(255,255,255,0.12); stroke-width: 1; }
.timelineYearLabel { fill: rgba(255,255,255,0.70); font-size: 12px; font-family: system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif; }
.timelineBandLabel { fill: rgba(255,255,255,0.85); font-size: 12px; font-family: system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif; }
.timelineBar { fill: rgba(141,92,246,0.35); stroke: rgba(141,92,246,0.90); stroke-width: 1; }
.timelineHost a:hover .timelineBar { fill: rgba(141,92,246,0.50); }

/* Compatibility aliases (older loader class names) */
.tlGridBg { fill: rgba(255,255,255,0.03); stroke: rgba(255,255,255,0.08); stroke-width: 1; }
.tlYearTick { stroke: rgba(255,255,255,0.12); stroke-width: 1; }
.tlTickLabel { fill: rgba(255,255,255,0.55); font-size: 11px; }
.tlTickLabelLabel { fill: rgba(255,255,255,0.55); font-size: 11px; }
.tlRowLabel { fill: rgba(255,255,255,0.78); font-size: 12px; }
.tlBar { fill: rgba(141,92,246,0.35); stroke: rgba(141,92,246,0.90); stroke-width: 1; }

/* =============================
   Songs page: compact list rows
   ============================= */

.songs-list{
  display:flex;
  flex-direction:column;
  gap:10px;
}

.song-row{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:14px;
  padding:14px 16px;
  border:1px solid rgba(255,255,255,.08);
  border-radius:16px;
  background:rgba(255,255,255,.03);
  box-shadow:0 10px 30px rgba(0,0,0,.25);
}

.song-row:hover{
  background:rgba(255,255,255,.05);
  border-color:rgba(255,255,255,.12);
}

.song-row .song-left{
  min-width:0;
  flex:1;
}

.song-row .song-title{
  font-weight:700;
  font-size:1.05rem;
  line-height:1.2;
  margin-bottom:4px;
}

.song-row .song-sub{
  font-size:.92rem;
  opacity:.85;
  display:flex;
  flex-wrap:wrap;
  gap:8px;
}

.song-row .song-sub .dot{
  opacity:.6;
}

.song-row .song-right{
  flex:0 0 auto;
  text-align:right;
  display:flex;
  flex-direction:column;
  gap:6px;
}

.song-row .plays{
  font-weight:800;
  font-size:1.05rem;
}

.song-row .dates{
  font-size:.86rem;
  opacity:.75;
  white-space:nowrap;
}

.song-row .actions{
  margin-top:2px;
}

.song-row .actions .link{
  font-weight:700;
  cursor:pointer;
  text-decoration:none;
}

@media (max-width: 720px){
  .song-row{
    flex-direction:column;
    align-items:stretch;
  }
  .song-row .song-right{
    text-align:left;
    flex-direction:row;
    align-items:center;
    justify-content:space-between;
  }
  .song-row .dates{
    white-space:normal;
  }
}


/* Archived Shows – personnel layout safety (no truncation) */
.archivedGrid .personnel{
  max-height: none !important;
  overflow: visible !important;
  white-space: normal !important;
}
.archivedGrid .personnel .names{
  white-space: normal !important;
  overflow: visible !important;
  text-overflow: clip !important;
}
.archivedGrid .card.show-card{
  min-height: 220px;
}




/* --- Archived Shows: keep date/band/venue on one line; buttons under meta; personnel at bottom --- */
.showCard--archived .metaLine1,
.showCard--archived .metaLine2,
.showCard--archived .meta h3 {
  white-space: nowrap;
}

.showCard--archived .meta h3 {
  font-size: 1.02rem;
}

.showCard--archived .metaLine1,
.showCard--archived .metaLine2 {
  font-size: 0.95rem;
}

/* =========================
   Musicians: Top 10 mini-cards
   ========================= */

.top10-cards{
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

@media (max-width: 900px){
  .top10-cards{ grid-template-columns: 1fr; }
}

.top10-card{
  border: 1px solid rgba(255,255,255,0.10);
  background: rgba(0,0,0,0.18);
  border-radius: 14px;
  padding: 12px 14px;
}

.top10-card .row1{
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 6px;
}

.top10-card .rank{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 24px;
  padding: 0 10px;
  border-radius: 999px;
  border: 1px solid rgba(150,110,255,0.45);
  background: rgba(120,90,220,0.18);
  font-weight: 700;
  letter-spacing: 0.02em;
}

.top10-card .shows{
  opacity: 0.9;
  font-weight: 600;
}

.top10-card .name{
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.2;
}

/* =============================
   Band page: Top Songs by Year
   ============================= */
.song-heat{
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
  font-size: 0.92rem;
}
.song-heat th,
.song-heat td{
  border-bottom: 1px solid rgba(255,255,255,0.08);
  padding: 8px 10px;
  vertical-align: middle;
}
.song-heat thead th{
  position: sticky;
  top: 0;
  background: rgba(10,12,18,0.92);
  backdrop-filter: blur(8px);
  z-index: 2;
  font-weight: 800;
  letter-spacing: 0.02em;
}
.song-heat th.song-col{
  width: 42%;
  text-align: left;
}
.song-heat td.song-name{
  text-transform: none;
  font-weight: 700;
  line-height: 1.2;
}
.song-heat td.song-name .songTitle{ font-weight: 800; }
.song-heat td.song-name .songArtist{ font-size: 12px; opacity: .72; margin-top: 2px; }
.song-heat th.song-col{ position: sticky; left: 0; z-index: 3; background: rgba(10,12,18,0.92); }
.song-heat td.song-name{ position: sticky; left: 0; z-index: 1; background: rgba(10,12,18,0.72); backdrop-filter: blur(6px); }
.song-heat th.year{ min-width: 54px; }
.song-heat td.count,
.song-heat th.year{
  text-align: center;
}
.song-heat td.count{
  border-left: 1px solid rgba(255,255,255,0.05);
  font-variant-numeric: tabular-nums;
  font-weight: 700;
}
.song-heat td.count.zero{
  opacity: 0.25;
}

/* Back-compat (band.js currently renders .heat/.song/.cell) */
.heatWrap{ overflow:auto; max-height: 520px; padding-right: 6px; }
.gridLegend{ font-size: .85rem; opacity: .85; margin: 0 0 8px 0; }

table.heat{
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
  font-size: 0.92rem;
}
table.heat th, table.heat td{
  border-bottom: 1px solid rgba(255,255,255,0.08);
  padding: 8px 10px;
  vertical-align: middle;
}
table.heat thead th{
  position: sticky;
  top: 0;
  background: rgba(10,12,18,0.92);
  backdrop-filter: blur(8px);
  z-index: 2;
  font-weight: 800;
  letter-spacing: 0.02em;
}
table.heat th.songCol{ width: 42%; text-align:left; }
table.heat td.song{
  font-weight: 700;
  line-height: 1.2;
}
table.heat th.year, table.heat td.cell{ text-align:center; }
table.heat th.total-col, table.heat td.total-col{ text-align:right; min-width:72px; font-weight:700; }
table.heat td.cell{
  border-left: 1px solid rgba(255,255,255,0.05);
  font-variant-numeric: tabular-nums;
  font-weight: 800;
}
table.heat td.cell .bar{
  height: 22px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 6px;
}
table.heat td.cell .txt{
  font-size: 0.88rem;
  font-weight: 800;
}

/* ------------------------------------------------------------
   Band page: Top 25 Songs by Year grid
   ------------------------------------------------------------ */

.songyear-note{font-size:12px;opacity:.85;margin:6px 0 10px 0}
.songyear-wrap{overflow:auto;max-height:520px;border:1px solid rgba(255,255,255,.08);border-radius:12px}
.songyear-table{width:100%;border-collapse:separate;border-spacing:0;min-width:560px}
.songyear-table thead th{position:sticky;top:0;z-index:2;background:rgba(0,0,0,.55);backdrop-filter:blur(6px);font-size:12px;letter-spacing:.08em;text-transform:uppercase}
.songyear-table th,.songyear-table td{padding:10px 12px;border-bottom:1px solid rgba(255,255,255,.06);white-space:nowrap}
.songyear-table th.song-col{min-width:220px;max-width:320px}
.songyear-table td.song-col{max-width:340px;overflow:hidden;text-overflow:ellipsis}
.songyear-table td{font-variant-numeric:tabular-nums}
.syg-cell{position:relative}
.syg-cell .bar{position:absolute;left:0;top:0;bottom:0;width:var(--w,0%);background:rgba(255,255,255,.09)}
.syg-cell .val{position:relative;z-index:1;font-weight:700;opacity:.95}
.syg-cell.is-zero .val{opacity:.35}

/* Hide broken hero image if no URL available */
#bandHeroImg.is-empty{display:none}


/* Band card nav pills */
.band-card-pills{display:flex;flex-wrap:wrap;gap:8px;margin-top:10px}
.band-card-pills .pill-btn{padding:6px 10px;font-size:12px;line-height:1}

/* ==========================================================================
   On This Day Ticker — v2.2.3.20.01 (visual polish)
   - cleaner pill icons (no emoji)
   - better spacing/contrast
   - second line truncates nicely
============================================================================ */

.otd-ticker{
  display:flex;
  flex-direction:column;
  gap:2px;
  padding:10px 14px;
  background:rgba(255,255,255,0.04);
  border-bottom:1px solid rgba(255,255,255,0.08);
}

.otd-t1{
  font-size:13px;
  font-weight:700;
  letter-spacing:0.2px;
  color:rgba(255,255,255,0.92);
}

.otd-t2{
  font-size:12.5px;
  color:rgba(255,255,255,0.82);
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}

.otd-link{
  color:rgba(255,255,255,0.90);
  text-decoration:none;
}
.otd-link:hover{ text-decoration:underline; }

.otd-year{ font-weight:700; }
.otd-band{ font-weight:600; }
.otd-venue, .otd-loc{ opacity:0.92; }

.otd-sep{
  opacity:0.55;
  padding:0 6px;
}

.otd-pills{
  display:inline-flex;
  gap:6px;
  margin-left:8px;
  vertical-align:middle;
}

.otd-pill{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  height:18px;
  padding:0 7px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,0.16);
  background:rgba(255,255,255,0.06);
  color:rgba(255,255,255,0.85);
  font-size:11px;
  font-weight:700;
  letter-spacing:0.2px;
}

.otd-empty{
  color:rgba(255,255,255,0.65);
}


/* ==========================================================================
   On This Day Inline Cards — v2.2.3.20.01
   Placement: below header/nav, above content. Compact, non-intrusive.
============================================================================ */
.otd-inline-slot{ margin: 8px 0 12px 0; }
.otd-inline{
  margin: 10px 0 14px 0;
  padding: 10px 12px;
  border: 1px solid rgba(255,255,255,0.10);
  background: rgba(255,255,255,0.03);
  border-radius: 12px;
}
.otd-inline-head{
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .25px;
  color: rgba(255,255,255,0.85);
  margin-bottom: 8px;
  text-transform: uppercase;
}
.otd-inline-row{
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
@media (max-width: 820px){
  .otd-inline-row{ grid-template-columns: 1fr; }
}
.otd-card{
  display: flex;
  gap: 10px;
  padding: 10px;
  border: 1px solid rgba(255,255,255,0.10);
  background: rgba(0,0,0,0.18);
  border-radius: 12px;
  text-decoration: none;
  color: inherit;
  min-height: 78px;
}
.otd-card:hover{ border-color: rgba(255,255,255,0.18); background: rgba(0,0,0,0.24); }
.otd-card-poster img{
  width: 44px;
  height: 66px;
  object-fit: contain;
  border-radius: 6px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.10);
}
.otd-card-body{ min-width: 0; flex: 1; }
.otd-card-top{ display:flex; align-items:flex-start; justify-content:space-between; gap:10px; }
.otd-card-title{
  font-size: 13px;
  font-weight: 700;
  color: rgba(255,255,255,0.92);
  line-height: 1.2;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.otd-card-sub{
  margin-top: 4px;
  font-size: 12px;
  color: rgba(255,255,255,0.72);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.otd-card-loc{ opacity: 0.9; }

.otd-inline{ max-width: 1200px; }

/* Hide On This Day block on pages where it causes UI regressions */
body.page-archived-shows .otd-inline,
body.page-archived-shows .otd-ticker,
body.page-on-the-road .otd-inline,
body.page-on-the-road .otd-ticker,
body.page-songs .otd-inline,
body.page-songs .otd-ticker{
  display: none !important;
}


/* ==========================================================================
   On This Day Inline Cards — v2.2.3.20.01 fixes
============================================================================ */
.otd-pills{ display:inline-flex; gap:6px; }
.otd-card-title{ white-space: nowrap; overflow:hidden; text-overflow: ellipsis; max-width: 100%; }


/* ==========================================================================
   Time Machine CTA — v2.2.3.20.01
============================================================================ */
.tm-home-cta{margin: 8px 0 10px;}
.tm-home-cta a{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:8px 14px;
  border-radius:999px;
  border:1px solid rgba(163,134,255,0.55);
  background:rgba(109,68,208,0.18);
  color:rgba(255,255,255,0.92);
  text-decoration:none;
  font-weight:800;
  font-size:13px;
  letter-spacing:.02em;
  transition: background .15s ease, border-color .15s ease;
}
.tm-home-cta a:hover{
  background:rgba(109,68,208,0.28);
  border-color:rgba(163,134,255,0.75);
  text-decoration:none;
}

/* ==========================================================================
   Insights Time Machine Cards — v2.2.3.20.01
============================================================================ */
.tm-section{ margin: 18px 0 24px; }
.tm-head{ margin-bottom: 10px; }
.tm-head h2{ margin: 0 0 4px; font-size: 18px; }
.tm-sub{ font-size: 12.5px; opacity: 0.75; }
.tm-grid{
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
@media (max-width: 980px){ .tm-grid{ grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 680px){ .tm-grid{ grid-template-columns: 1fr; } }
.tm-card{
  display:flex;
  gap: 12px;
  padding: 10px;
  border: 1px solid rgba(255,255,255,0.10);
  background: rgba(255,255,255,0.03);
  border-radius: 14px;
}
.tm-thumb{
  width: 56px;
  height: 84px;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.10);
  background: rgba(0,0,0,0.22);
  flex: 0 0 auto;
}
.tm-thumb img{ width: 100%; height: 100%; object-fit: cover; display:block; }
.tm-thumb--empty{ background: rgba(0,0,0,0.18); }
.tm-body{ min-width: 0; flex: 1; }
.tm-date{ font-size: 12px; opacity: 0.78; }
.tm-band{ margin-top: 2px; font-size: 13.5px; font-weight: 800; }
.tm-loc{ margin-top: 2px; font-size: 12.5px; opacity: 0.78; white-space: nowrap; overflow:hidden; text-overflow: ellipsis; }
.tm-pills{ margin-top: 8px; display:flex; gap: 8px; flex-wrap: wrap; }
.tm-pill{
  display:inline-flex;
  align-items:center;
  height: 22px;
  padding: 0 10px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(0,0,0,0.18);
  font-size: 11px;
  font-weight: 700;
  color: rgba(255,255,255,0.85);
  text-decoration: none;
}
.tm-pill:hover{ border-color: rgba(255,255,255,0.24); background: rgba(0,0,0,0.28); }
.tm-personnel{ margin-top: 8px; font-size: 12px; opacity: 0.72; line-height: 1.25; }
.tm-personnel span{ font-weight: 700; opacity: 0.9; }
.tm-empty{ opacity: 0.7; padding: 10px 2px; }

.tm-week .tm-day{ margin-top: 14px; }
.tm-day-head{ font-size: 12px; font-weight: 800; letter-spacing: .3px; text-transform: uppercase; opacity: 0.75; margin: 0 0 8px; }
.tm-grid--week{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 680px){ .tm-grid--week{ grid-template-columns: 1fr; } }


/* ==========================================================================
   Insights Time Machine Dense Week — v2.2.3.20.01
============================================================================ */
.tm-week-grid{
  display:grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  align-items: stretch;
}
@media (max-width: 980px){ .tm-week-grid{ grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 680px){ .tm-week-grid{ grid-template-columns: 1fr; } }

.tm-week-head{
  grid-column: 1 / -1;
  margin-top: 8px;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .35px;
  text-transform: uppercase;
  opacity: 0.75;
}

.tm-card--compact{
  padding: 9px;
  gap: 10px;
  border-radius: 12px;
}
.tm-card--compact .tm-thumb{
  width: 46px;
  height: 69px;
  border-radius: 9px;
}
.tm-card--compact .tm-band{ font-size: 13px; }
.tm-card--compact .tm-date{ font-size: 11.5px; }
.tm-card--compact .tm-loc{ font-size: 12px; }
.tm-card--compact .tm-pills{ margin-top: 7px; gap: 6px; }
.tm-card--compact .tm-pill{ height: 21px; padding: 0 9px; font-size: 10.5px; }

/* clamp personnel so cards stay tight */
.tm-personnel{
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}


/* ==========================================================================
   Remove personnel + 3x3 week — v2.2.3.20.01
============================================================================ */
.tm-personnel{ display:none; }

/* Even tighter compact cards for This Week */
.tm-card--compact{ padding: 8px; gap: 9px; }
.tm-card--compact .tm-thumb{ width: 42px; height: 63px; }
.tm-card--compact .tm-band{ font-size: 12.8px; }
.tm-card--compact .tm-date{ font-size: 11px; }
.tm-card--compact .tm-pills{ margin-top: 6px; gap: 6px; }
.tm-card--compact .tm-pill{ height: 20px; padding: 0 8px; font-size: 10px; }

/* Ensure week grid stays 3-up on desktop */
.tm-week-grid{ grid-template-columns: repeat(3, minmax(0, 1fr)); }



/* === Band page: Top 25 Songs By Year grid improvements === */
.songyear-wrap{
  overflow:auto;
  scrollbar-gutter: stable both-edges;
  padding-bottom: 8px;
}

.songyear-table{
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}

.songyear-table th,
.songyear-table td{
  border-bottom:1px solid var(--line);
}

.songyear-table thead th{
  position: sticky;
  top: 0;
  z-index: 2;
  background: rgba(16,23,32,0.98);
}

.songyear-table th.song-col{
  width: 240px;
  text-align: left;
}

.songyear-table th.year-col,
.songyear-table td.year-col{
  width: 72px;
  text-align: center;
}

.songyear-table th.total-col,
.songyear-table td.total-col{
  width: 84px;
  text-align: right;
  padding-right: 10px;
}

.syg-cell{
  position:relative;
  height: 22px;
  line-height: 22px;
  border-radius: 6px;
  overflow: hidden;
}

.syg-cell .bar{
  position:absolute;
  left:0; top:0; bottom:0;
  background: var(--accent);
  opacity: 0.25;
}

.syg-cell .val{
  position:relative;
  z-index:1;
  font-size: 12px;
  color: var(--fg);
  padding: 0 6px;
  white-space: nowrap;
}

.songyear-hint{
  font-size: 12px;
  color: var(--muted);
  margin-top: 8px;
}



/* Band page: Top 25 songs by year heatmap table */
.heatWrap{
  width:100%;
  overflow-x:auto;
  overflow-y:hidden;
}
.heatWrap table{
  width:100%;
  min-width: 760px;
  border-collapse: separate;
  border-spacing: 0;
}
.heatWrap thead th{
  position: sticky;
  top: 0;
  z-index: 3;
  background: rgba(16,18,25,0.95);
}
.heatWrap th, .heatWrap td{
  padding: 10px 12px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  font-size: 14px;
  white-space: nowrap;
}
.heatWrap th.song, .heatWrap td.song{
  position: sticky;
  left: 0;
  z-index: 4;
  background: rgba(16,18,25,0.98);
  min-width: 260px;
  max-width: 360px;
}
.heatWrap td.song{
  font-weight: 600;
}
.heatWrap th.total, .heatWrap td.total{
  position: sticky;
  right: 0;
  z-index: 4;
  background: rgba(16,18,25,0.98);
  text-align: right;
  min-width: 88px;
}
.heatWrap th.year, .heatWrap td.heatCell{
  text-align: right;
  min-width: 64px;
}
.heatWrap td.heatCell{
  position: relative;
}
.heatWrap td.heatCell .bar{
  position: absolute;
  left: 6px;
  right: 6px;
  top: 6px;
  bottom: 6px;
  border-radius: 8px;
  background: rgba(140, 97, 255, 0.12);
  transform-origin: left center;
}
.heatWrap td.heatCell .val{
  position: relative;
  z-index: 2;
  opacity: 0.9;
}
.heatWrap tr:nth-child(even) td{
  background: rgba(255,255,255,0.01);
}

.show-time{margin-left:.35rem;opacity:.85;font-size:.9em}


/* v2.1 Stability Sweep: unify card language (no glow/shadow) */
.card,
.statCard,
.panel,
.miniShowCard,
.press-item,
.insightCard{
  box-shadow:none !important;
  text-shadow:none !important;
  filter:none !important;
}


@media (max-width: 800px){
  .upLine{grid-template-columns:1fr;row-gap:4px;}
  .upLine span{display:block;}
  .upDate{font-size:13px;}
}
