/* ── MetalMap Israel ─────────────────────────────────────────── */
@font-face {
  font-family: 'Metal Mania';
  src: url('../vendor/metalmania.woff2') format('woff2');
  font-display: swap;
}
@font-face {
  font-family: 'UnifrakturMaguntia';
  src: url('../vendor/unifraktur.woff2') format('woff2');
  font-display: swap;
}
@font-face {
  font-family: 'Pirata One';
  src: url('../vendor/pirata.woff2') format('woff2');
  font-display: swap;
}
@font-face {
  font-family: 'Cloister Black';
  src: url('../vendor/cloisterblack.woff2') format('woff2');
  font-display: swap;
}
@font-face {
  font-family: 'Grenze Gotisch';
  src: url('../vendor/grenze.woff2') format('woff2');
  font-display: swap;
}
@font-face {
  font-family: 'Inter';
  src: url('../vendor/inter_3.woff2') format('woff2');
  font-weight: 400 700;
  font-display: swap;
}

:root {
  --display-font: 'Cloister Black', 'UnifrakturMaguntia', 'Metal Mania', cursive;
  --bg: #0b0d10;
  --panel: #14171cf2;
  --panel-solid: #14171c;
  --border: #262b33;
  --text: #d8dde5;
  --muted: #8b93a1;
  --accent: #e0453e;
  --radius: 10px;
}

* { box-sizing: border-box; }
html, body {
  margin: 0; height: 100%;
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', system-ui, sans-serif;
  overflow: hidden;
}

#map { position: fixed; inset: 0; background: var(--bg); }
.leaflet-container { background: var(--bg); font: inherit; }

/* ── top bar ── */
#topbar {
  position: fixed; top: 0; left: 0; right: 0;
  display: flex; align-items: center; gap: 22px;
  padding: 16px 22px 10px;
  pointer-events: none;
  z-index: 1000;
}
#topbar > * { pointer-events: auto; }
#topbar h1 {
  margin: 0;
  font-family: var(--display-font);
  font-size: 34px; font-weight: 400;
  letter-spacing: 1px;
  color: #f2f4f8;
  text-shadow: 0 2px 4px #000;
  user-select: none;
}
#topbar h1 span { color: var(--accent); }
#brand { display: flex; flex-direction: column; }
#tagline {
  color: var(--muted); font-size: 11.5px;
  letter-spacing: .09em;
  margin-top: 2px;
  text-shadow: 0 1px 3px #000;
}
#topnav { display: flex; gap: 8px; }
#topnav button {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 18px;
  color: var(--text);
  font-family: 'Inter', sans-serif;
  font-size: 12.5px; font-weight: 600;
  padding: 7px 14px;
  cursor: pointer;
  backdrop-filter: blur(6px);
  transition: border-color .12s, color .12s;
}
#topnav button:hover { border-color: #4a5261; color: #fff; }

#search-wrap { position: relative; }
#search {
  width: 260px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 20px;
  color: var(--text);
  padding: 8px 14px;
  font-size: 14px;
  outline: none;
  backdrop-filter: blur(6px);
}
#search:focus { border-color: #4a5261; }
#search::placeholder { color: var(--muted); }
#search-results {
  position: absolute; top: 40px; left: 0;
  width: 320px; max-height: 320px; overflow-y: auto;
  background: var(--panel-solid);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 8px 30px #000a;
}
.sr-item {
  display: flex; align-items: center; gap: 8px;
  padding: 8px 12px; cursor: pointer; font-size: 13px;
}
.sr-item:hover, .sr-item.sel { background: #1d2229; }
.sr-item .dot { flex: none; }
.sr-item .sr-genre { color: var(--muted); font-size: 11px; margin-left: auto; text-align: right; }

#counts { color: var(--muted); font-size: 13px; margin-left: auto; padding-right: 4px; text-shadow: 0 1px 3px #000; }

/* ── legend ── */
#legend {
  position: fixed; top: 96px; left: 16px;
  width: 225px;
  max-height: calc(100% - 120px);
  overflow-y: auto;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 10px 12px;
  z-index: 900;
  backdrop-filter: blur(6px);
}
.legend-head { display: flex; align-items: baseline; justify-content: space-between; }
.legend-head h2 {
  margin: 2px 0 8px;
  font-family: var(--display-font);
  font-weight: 400; font-size: 19px; letter-spacing: .5px;
  color: #eef1f6;
}
.status-head { margin-top: 10px; border-top: 1px solid var(--border); padding-top: 8px; }
.legend-actions button {
  background: none; border: none; color: var(--muted);
  font-size: 11px; cursor: pointer; padding: 2px 4px;
}
.legend-actions button:hover { color: var(--text); }
#fam-list { list-style: none; margin: 0; padding: 0; }
#fam-list li {
  display: flex; align-items: center; gap: 9px;
  padding: 4.5px 4px; cursor: pointer;
  font-size: 13px; user-select: none;
  border-radius: 5px;
}
#fam-list li:hover { background: #ffffff0a; }
#fam-list li.off { opacity: .35; }
#fam-list .count { margin-left: auto; color: var(--muted); font-size: 11px; }
.dot {
  width: 11px; height: 11px; border-radius: 50%;
  display: inline-block;
  border: 1px solid #4a525e;
}
.grave-icon { pointer-events: auto; }
.grave-icon svg { display: block; filter: drop-shadow(0 1px 2px #000c); }
.map-logo-icon { pointer-events: auto; cursor: pointer; }
.map-logo-icon img {
  width: 100% !important; height: 100% !important; /* leaflet.css force-disables max-* on marker imgs */
  object-fit: contain;
  display: block;
  /* blending happens on the logoPane (leaflet transforms isolate per-img blending) */
  filter: contrast(1.45); /* crush jpeg near-black backgrounds to true black */
  opacity: .85;
  transition: opacity .15s, transform .15s;
}
.map-logo-icon:hover img { opacity: 1; transform: scale(1.06); }
.map-logo-icon.sel img { opacity: 1; }
#status-filter { display: flex; flex-direction: column; gap: 3px; }
#status-filter label {
  font-size: 12px; color: var(--muted); cursor: pointer;
  display: flex; align-items: center; gap: 4px;
  padding: 2px 6px;
}
#status-filter input { accent-color: var(--accent); }

/* ── timeline (inside the legend sidebar) ── */
#timeline {
  padding: 4px 2px 0;
}
#histogram { display: block; width: 100%; height: 30px; }
#slider { position: relative; height: 22px; margin-top: 2px; }
#slider-track {
  position: absolute; left: 0; right: 0; top: 9px; height: 4px;
  background: #2a3038; border-radius: 2px;
}
#slider-fill {
  position: absolute; top: 9px; height: 4px;
  background: var(--accent); border-radius: 2px;
}
.handle {
  position: absolute; top: 2px;
  width: 18px; height: 18px; margin-left: -9px;
  background: #e8ebf0;
  border: 2px solid var(--accent);
  border-radius: 50%;
  cursor: ew-resize;
  touch-action: none;
}
.handle:focus { outline: none; box-shadow: 0 0 0 4px rgba(224,69,62,.3); }
#year-labels { display: flex; justify-content: space-between; font-size: 12px; color: var(--muted); margin-top: 2px; }
#year-labels span { font-variant-numeric: tabular-nums; font-weight: 600; color: var(--text); }

/* ── band panel ── */
#panel {
  position: fixed; top: 0; right: 0; bottom: 0;
  width: min(66.7vw, calc(100% - 340px));
  background: var(--panel-solid);
  border-left: 1px solid var(--border);
  z-index: 1100;
  overflow-y: auto;
  box-shadow: -12px 0 40px #000c;
  animation: slidein .18s ease-out;
}
/* focus layout: map keeps the left third, panel gets the rest */
body.panel-open #map { right: min(66.7vw, calc(100% - 340px)); }
body.panel-open #legend { display: none; }
@media (max-width: 900px) {
  #panel { width: 100%; }
  body.panel-open #map { right: 0; }
}

.band-hero { display: grid; grid-template-columns: 1fr 1fr; gap: 0 26px; align-items: start; padding: 26px 28px 0; }
.hero-info { min-width: 0; }
.hero-photo img {
  width: 100%; max-height: 300px; object-fit: cover; object-position: center 25%;
  border-radius: 10px; border: 1px solid var(--border);
  filter: grayscale(20%) contrast(1.05);
}
.band-columns {
  display: grid;
  grid-template-columns: 1.15fr 1fr 1fr;
  gap: 0 30px;
  padding: 8px 28px 30px;
  align-items: start;
}
.band-columns .section { padding: 10px 0 0; }
@media (max-width: 1250px) {
  .band-columns { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
  .band-hero { grid-template-columns: 1fr; padding: 20px 18px 0; }
  .band-columns { grid-template-columns: 1fr; padding: 8px 18px 30px; }
}
@keyframes slidein { from { transform: translateX(30px); opacity: 0; } }
#panel-close {
  position: absolute; top: 8px; right: 10px;
  background: none; border: none; color: var(--muted);
  font-size: 26px; cursor: pointer; z-index: 2;
}
#panel-close:hover { color: #fff; }
#panel-content { padding: 0 0 30px; }

.band-photo-wrap { position: relative; height: 180px; overflow: hidden; background: #0e1013; }
.band-photo-wrap img.photo {
  width: 100%; height: 100%; object-fit: cover; object-position: center 25%;
  filter: grayscale(25%) contrast(1.05);
  mask-image: linear-gradient(#000 55%, transparent);
  -webkit-mask-image: linear-gradient(#000 55%, transparent);
}
.band-logo-wrap { padding: 0 0 10px; }
.band-logo {
  max-width: 100%; max-height: 150px; display: block;
  margin: 0;
  mix-blend-mode: screen; /* black logo backgrounds disappear on the dark panel */
}
.artist-hero-photo img { object-position: center 15%; max-height: 340px; }
.band-head { padding: 10px 18px 0; }
.hero-info .band-head, .hero-info .band-facts { padding-left: 0; padding-right: 0; }
.band-head h2 {
  margin: 4px 0 2px;
  font-family: var(--display-font);
  font-weight: 400; font-size: 30px; line-height: 1.1;
  color: #f4f6fa;
}
.band-genre { font-size: 13.5px; margin-bottom: 8px; font-weight: 600; }
.band-facts { padding: 6px 18px; font-size: 13px; display: grid; grid-template-columns: auto 1fr; gap: 3px 12px; }
.band-facts dt { color: var(--muted); }
.band-facts dd { margin: 0; }
.status-Active { color: #6ecb5a; }
.status-Split-up { color: #e0453e; }
.status-On-hold, .status-Unknown, .status-Changed-name { color: #f5a524; }

.section { padding: 10px 18px 0; }
.section h3 {
  font-family: var(--display-font);
  font-weight: 400; font-size: 19px; letter-spacing: .5px;
  color: #eef1f6;
  margin: 8px 0 6px;
  border-bottom: 1px solid var(--border);
  padding-bottom: 4px;
}
/* member cards — the musicians deserve the spotlight */
.members-section { padding: 10px 28px 0; }
.mc-sec {
  font-family: var(--display-font); font-weight: 400;
  font-size: 17px; color: var(--muted);
  margin: 14px 0 8px;
}
.members-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(185px, 1fr));
  gap: 16px;
  margin-bottom: 8px;
}
.member-card {
  background: #171b21;
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  display: flex; flex-direction: column;
}
.mc-photo {
  height: 190px; background: #0e1013;
  cursor: pointer; overflow: hidden;
}
.mc-photo img {
  width: 100%; height: 100%;
  object-fit: cover; object-position: center 18%;
  filter: grayscale(30%) contrast(1.05);
  transition: filter .15s, transform .2s;
}
.member-card:hover .mc-photo img { filter: none; transform: scale(1.03); }
.mc-ph {
  display: flex; align-items: center; justify-content: center;
  height: 100%;
  font-family: var(--display-font);
  font-size: 74px; color: #2b323d;
  user-select: none;
}
.mc-body { padding: 9px 12px 12px; font-size: 12.5px; }
.mc-namerow { display: flex; align-items: baseline; gap: 6px; }
.mc-body .m-name { font-size: 18px; border-bottom: none; }
.mc-body .m-name:hover { border-bottom: 1px dotted #8b93a1; }
.mc-rankrow { margin: 3px 0 2px; }
.mc-rankrow .rank-chip { margin-left: 0; }
.mc-body .m-role { margin-top: 3px; }
.mc-body .m-other { margin-top: 4px; }
.member { padding: 11px 0; font-size: 13px; border-bottom: 1px dashed #1e232a; }
.member:last-child { border-bottom: none; }
.member .m-name {
  font-family: var(--display-font);
  font-weight: 400; font-size: 19px;
  color: var(--accent); letter-spacing: .4px;
}
.member .m-role { margin-top: 3px; color: #c3cad6; }
.rank-chip {
  display: inline-flex; align-items: center; gap: 5px;
  border: 1px solid #362a26;
  background: #1a1412;
  border-radius: 5px;
  padding: 2px 7px;
  font-size: 11.5px; font-weight: 600;
  color: #ef8f4e;
  vertical-align: 2px;
  margin-left: 7px;
  cursor: default;
}
.m-age {
  color: var(--muted); font-size: 11px;
  border: 1px solid var(--border); border-radius: 4px;
  padding: 0 5px; margin-left: 6px; vertical-align: 2px;
}
.rank-chip.small { font-size: 10px; padding: 1px 5px; gap: 4px; }
.rank-chip .insignia { display: block; }
.rank-line { display: flex; align-items: center; gap: 10px; margin: 6px 0 8px; }
.rank-line .rank-chip { margin-left: 0; font-size: 13px; padding: 3px 10px; }
.rank-stats { color: var(--muted); font-size: 12.5px; }
.score-breakdown {
  margin-top: 4px;
  font-family: ui-monospace, monospace;
  font-size: 11px;
  color: var(--muted);
}
.score-breakdown b { color: #d4af5a; }
.dormant {
  display: inline-flex; align-items: center; gap: 4px;
  color: var(--muted);
  border: 1px dashed var(--border);
  border-radius: 5px;
  padding: 2px 8px;
  font-size: 11.5px;
}
.artist-link { cursor: pointer; border-bottom: 1px dotted #4a5261; }
.artist-link:hover { color: #fff; border-bottom-color: #8b93a1; }
.artist-bands .chip { width: 100%; justify-content: flex-start; }
.artist-bands .chip .via { margin-left: auto; }
a.ext-chip { color: var(--muted); text-decoration: none; }
a.ext-chip:hover { color: var(--text); }
.mlink { color: #b9c3d2; cursor: pointer; border-bottom: 1px dotted #4a5261; text-decoration: none; }
.mlink:hover { color: #fff; border-bottom-color: #8b93a1; }
span.mlink { color: #cfd8e4; }
.member .m-sec { font-size: 10px; color: var(--muted); border: 1px solid var(--border); border-radius: 4px; padding: 0 4px; margin-left: 6px; vertical-align: 1px; }
.member .m-other { color: var(--muted); font-size: 12px; margin-top: 1px; }

.disco-row { display: flex; gap: 12px; align-items: center; padding: 6px 0; font-size: 13px; border-bottom: 1px dashed #1e232a; }
.disco-row:last-child { border-bottom: none; }
.disco-cover {
  width: 54px; height: 54px; flex: none;
  object-fit: cover; border-radius: 6px;
  border: 1px solid var(--border);
  background: #0e1013;
  display: block;
}
.disco-cover-empty { border-style: dashed; }
.disco-main { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.disco-title a { color: var(--text); text-decoration: none; font-weight: 600; }
.disco-title a:hover { color: #fff; text-decoration: underline; }
.disco-sub { color: var(--muted); font-size: 11.5px; }

.bc-player { width: 100%; height: 120px; border: 0; border-radius: 8px; }
.linked { display: flex; flex-wrap: wrap; gap: 6px; }
.chip {
  display: inline-flex; align-items: center; gap: 6px;
  background: #1b2027;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 4px 10px;
  font-size: 12.5px;
  cursor: pointer;
  transition: border-color .12s;
}
.chip:hover { border-color: #4a5261; }
.chip .via { color: var(--muted); font-size: 11px; }

.ma-link { display: inline-block; margin: 14px 18px 0; font-size: 12.5px; color: var(--muted); }
.ma-link:hover { color: var(--text); }

/* ── fresh blood drawer (right half, open by default) ── */
#fresh-overlay[hidden] { display: none; }
#fresh-overlay {
  position: fixed; top: 0; right: 0; bottom: 0;
  width: min(50vw, 800px);
  z-index: 1000;
}
body.fresh-open #map { right: min(50vw, 800px); }
#fresh-modal {
  position: relative;
  width: 100%; height: 100%;
  overflow-y: auto;
  background: var(--panel-solid);
  border-left: 1px solid var(--border);
  padding: 26px 30px 24px;
  box-shadow: -12px 0 40px #000c;
  animation: slidein .18s ease-out;
}
@media (max-width: 900px) {
  #fresh-overlay { width: 100%; }
  body.fresh-open #map { right: 0; }
}
#fresh-modal h2 {
  font-family: var(--display-font);
  font-weight: 400; font-size: 38px;
  margin: 0 0 2px; color: #f4f6fa;
}
#fresh-close {
  position: absolute; top: 10px; right: 14px;
  background: none; border: none;
  color: var(--muted); font-size: 26px; cursor: pointer;
}
#fresh-close:hover { color: #fff; }
#fresh-years { display: flex; gap: 8px; margin: 8px 0 4px; }
.fresh-year {
  background: #1b2027; border: 1px solid var(--border);
  border-radius: 14px; color: var(--muted);
  font-size: 13px; font-weight: 600;
  padding: 4px 14px; cursor: pointer;
}
.fresh-year.on { color: var(--accent); border-color: #4a3030; }
#fresh-modal h3 {
  font-family: var(--display-font);
  font-weight: 400; font-size: 20px;
  color: #eef1f6;
  margin: 16px 0 8px;
  border-bottom: 1px solid var(--border);
  padding-bottom: 4px;
  display: flex; align-items: center; gap: 8px;
}
.fresh-count { margin-left: auto; color: var(--muted); font-size: 12px; }
.fresh-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(128px, 1fr));
  gap: 14px;
}
.fresh-item { cursor: pointer; }
.fresh-cover {
  display: block; width: 100%; aspect-ratio: 1;
  object-fit: cover; border-radius: 8px;
  border: 1px solid var(--border);
  background: #0e1013;
  transition: transform .12s;
}
.fresh-item:hover .fresh-cover { transform: scale(1.04); }
.fresh-t { font-size: 12.5px; font-weight: 600; margin-top: 5px; line-height: 1.25; }
.fresh-b { font-size: 11px; color: var(--muted); }

/* ── album modal ── */
#album-overlay[hidden] { display: none; }
#album-overlay {
  position: fixed; inset: 0;
  background: #05060899;
  backdrop-filter: blur(3px);
  z-index: 2200;
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
}
#album-modal {
  position: relative;
  width: min(760px, 100%);
  max-height: calc(100vh - 50px);
  overflow-y: auto;
  background: var(--panel-solid);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 26px 30px 24px;
  box-shadow: 0 20px 60px #000d;
  animation: slidein .18s ease-out;
}
#album-close {
  position: absolute; top: 10px; right: 14px;
  background: none; border: none;
  color: var(--muted); font-size: 26px; cursor: pointer; z-index: 2;
}
#album-close:hover { color: #fff; }
.al-hero { display: flex; gap: 22px; align-items: flex-start; }
.al-cover {
  width: 210px; height: 210px; flex: none;
  object-fit: cover; border-radius: 10px;
  border: 1px solid var(--border);
  background: #0e1013;
}
.al-info h2 {
  font-family: var(--display-font);
  font-weight: 400; font-size: 32px; line-height: 1.05;
  margin: 0 0 4px; color: #f4f6fa;
}
.al-band { font-size: 15px; margin-bottom: 4px; }
.al-band .mlink { font-weight: 600; color: var(--accent); }
.al-meta { color: var(--text); font-size: 13px; margin-bottom: 8px; }
.al-meta2 { color: var(--muted); font-size: 12px; }
.al-meta2 span { color: #6b7482; }
.al-columns {
  display: grid; grid-template-columns: 1.1fr 1fr;
  gap: 0 28px; margin-top: 18px;
}
.al-columns h3 {
  font-family: var(--display-font);
  font-weight: 400; font-size: 19px;
  color: #eef1f6;
  margin: 10px 0 6px;
  border-bottom: 1px solid var(--border);
  padding-bottom: 4px;
}
.al-track { display: flex; gap: 10px; padding: 3px 0; font-size: 13px; border-bottom: 1px dashed #1e232a; }
.al-track:last-child { border-bottom: none; }
.al-tno { color: var(--muted); flex: none; width: 22px; font-variant-numeric: tabular-nums; }
.al-tt { flex: 1; }
.al-tl { color: var(--muted); font-variant-numeric: tabular-nums; }
.al-person { padding: 4px 0; font-size: 13px; border-bottom: 1px dashed #1e232a; }
.al-person:last-child { border-bottom: none; }
.al-person .artist-link { font-weight: 600; color: var(--accent); }
.al-role { display: block; color: var(--muted); font-size: 12px; }
.disco-row.clickable { cursor: pointer; border-radius: 8px; }
.disco-row.clickable:hover { background: #ffffff08; }
.credit-breakdown {
  margin: 6px 0 0; font-size: 12.5px;
  color: #c9a26d;
}
@media (max-width: 700px) {
  .al-hero { flex-direction: column; }
  .al-columns { grid-template-columns: 1fr; }
}

/* ── gigs board ── */
#gigs-overlay[hidden] { display: none; }
#gigs-overlay {
  position: fixed; inset: 0;
  background: #05060899;
  backdrop-filter: blur(3px);
  z-index: 2150;
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
}
#gigs-modal {
  position: relative;
  width: min(640px, 100%);
  max-height: calc(100vh - 50px);
  overflow-y: auto;
  background: var(--panel-solid);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 26px 30px 24px;
  box-shadow: 0 20px 60px #000d;
  animation: slidein .18s ease-out;
}
#gigs-modal h2 {
  font-family: var(--display-font);
  font-weight: 400; font-size: 38px;
  margin: 0 0 2px; color: #f4f6fa;
}
#gigs-modal h3 {
  font-family: var(--display-font);
  font-weight: 400; font-size: 20px;
  color: #eef1f6;
  margin: 16px 0 8px;
  border-bottom: 1px solid var(--border);
  padding-bottom: 4px;
}
#gigs-close {
  position: absolute; top: 10px; right: 14px;
  background: none; border: none;
  color: var(--muted); font-size: 26px; cursor: pointer;
}
#gigs-close:hover { color: #fff; }
.gig-row {
  display: flex; align-items: center; gap: 16px;
  padding: 10px 4px;
  border-bottom: 1px dashed #1e232a;
}
.gig-row:last-child { border-bottom: none; }
.gig-date {
  flex: none; width: 52px;
  display: flex; flex-direction: column; align-items: center;
  background: #1b2027;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 6px 0;
}
.gig-day { font-family: var(--display-font); font-size: 22px; color: var(--accent); line-height: 1; }
.gig-dow { font-size: 10.5px; color: var(--muted); text-transform: uppercase; }
.gig-main { min-width: 0; flex: 1; }
.gig-bands { font-size: 14.5px; font-weight: 600; }
.gig-bands .mlink { color: var(--accent); }
.gig-where { font-size: 12.5px; color: var(--muted); margin-top: 2px; }
.gig-tix {
  flex: none;
  font-size: 12.5px; font-weight: 600;
  color: var(--text); text-decoration: none;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 5px 12px;
}
.gig-tix:hover { border-color: #4a5261; color: #fff; }
.gigs-empty { color: var(--muted); font-size: 14px; line-height: 1.7; }
.gigs-empty a { color: #d9899b; }

/* ── live chat box ── */
#chat-box[hidden] { display: none; }
#chat-box {
  position: fixed; right: 16px; bottom: 16px;
  width: 350px; height: 520px;
  max-height: calc(100vh - 100px);
  background: var(--panel-solid);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  z-index: 1300;
  box-shadow: 0 16px 50px #000d;
  display: flex; flex-direction: column;
  animation: slidein .18s ease-out;
}
#chat-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 8px 12px;
  font-size: 13px; font-weight: 600;
  border-bottom: 1px solid var(--border);
  color: var(--text);
}
#chat-head button {
  background: none; border: none; color: var(--muted);
  font-size: 20px; cursor: pointer;
}
#chat-head button:hover { color: #fff; }
#chat-frame { flex: 1; width: 100%; border: 0; }
@media (max-width: 700px) {
  #chat-box { right: 0; bottom: 0; width: 100%; border-radius: 12px 12px 0 0; }
}

/* ── about modal ── */
#about-overlay[hidden], #ranks-overlay[hidden] { display: none; }
#ranks-overlay {
  position: fixed; inset: 0;
  background: #05060899;
  backdrop-filter: blur(3px);
  z-index: 2100;
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
}
#ranks-modal {
  position: relative;
  width: min(440px, 100%);
  max-height: calc(100vh - 60px);
  overflow-y: auto;
  background: var(--panel-solid);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 24px 30px 20px;
  box-shadow: 0 20px 60px #000d;
  animation: slidein .18s ease-out;
}
#ranks-modal h2 {
  font-family: var(--display-font);
  font-weight: 400; font-size: 36px;
  margin: 0 0 2px; color: #f2f4f8;
}
#ranks-modal .ranks-intro { font-size: 13px; line-height: 1.55; color: var(--text); }
#ranks-modal .ranks-formula {
  margin-top: 14px; font-size: 11.5px; color: var(--muted);
  font-family: ui-monospace, monospace;
  border-top: 1px solid var(--border); padding-top: 10px;
}
#ranks-close {
  position: absolute; top: 10px; right: 14px;
  background: none; border: none;
  color: var(--muted); font-size: 26px; cursor: pointer;
}
#ranks-close:hover { color: #fff; }
#ranks-table { margin-top: 12px; }
.rank-group { border-bottom: 1px dashed #1e232a; }
.rank-group:last-child { border-bottom: none; }
.rank-row {
  display: flex; align-items: center; gap: 10px;
  padding: 4px 2px; font-size: 13px;
  cursor: pointer;
  border-radius: 5px;
}
.rank-row:hover { background: #ffffff08; }
.rank-members[hidden] { display: none; }
.rank-members {
  display: flex; flex-wrap: wrap; gap: 4px 6px;
  max-height: 150px; overflow-y: auto;
  padding: 4px 4px 10px 30px;
}
.rank-member {
  font-size: 11.5px; color: #b9c3d2;
  cursor: pointer;
  border-bottom: 1px dotted #4a5261;
}
.rank-member:hover { color: #fff; }
.rank-row .rank-ins { width: 20px; display: inline-flex; justify-content: center; }
.rank-row .rank-name { font-weight: 600; color: #d4af5a; }
.rank-row .rank-count { margin-left: auto; color: var(--muted); font-size: 11.5px; }
.rank-chip { cursor: pointer; }
#about-overlay {
  position: fixed; inset: 0;
  background: #05060899;
  backdrop-filter: blur(3px);
  z-index: 2000;
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
}
#about-modal {
  position: relative;
  width: min(560px, 100%);
  max-height: calc(100vh - 60px);
  overflow-y: auto;
  background: var(--panel-solid);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 26px 32px 22px;
  box-shadow: 0 20px 60px #000d;
  animation: slidein .18s ease-out;
}
#about-modal h2 {
  font-family: var(--display-font);
  font-weight: 400; font-size: 40px;
  margin: 0 0 2px;
  color: #f2f4f8;
}
#about-modal h2 span { color: var(--accent); }
.about-tag { color: var(--muted); margin: 0 0 14px; font-size: 13.5px; }
#about-modal h3 {
  font-family: var(--display-font);
  font-weight: 400; font-size: 21px;
  color: #eef1f6;
  margin: 16px 0 6px;
  border-bottom: 1px solid var(--border);
  padding-bottom: 4px;
}
#about-modal p { font-size: 13.5px; line-height: 1.55; margin: 6px 0; }
#about-modal a { color: #d9899b; }
#about-modal a:hover { color: #fff; }
.about-contact { font-size: 15px !important; }
.about-foot { color: var(--muted); margin-top: 16px !important; font-style: italic; }
#about-close {
  position: absolute; top: 10px; right: 14px;
  background: none; border: none;
  color: var(--muted); font-size: 26px; cursor: pointer;
}
#about-close:hover { color: #fff; }
#credits a#about-link { color: #aab; font-weight: 600; }

/* ── credits ── */
#credits {
  position: fixed; right: 8px; bottom: 4px;
  font-size: 10.5px; color: #667;
  z-index: 800;
  text-shadow: 0 1px 2px #000;
}
#credits a { color: #889; }

/* leaflet dark tweaks */
.leaflet-control-zoom { border: 1px solid var(--border) !important; }
.leaflet-control-zoom a {
  background: var(--panel-solid) !important;
  color: var(--text) !important;
  border-bottom: 1px solid var(--border) !important;
}
.leaflet-control-attribution { display: none; }
.leaflet-tooltip.band-tip {
  background: var(--panel-solid);
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: 6px;
  padding: 4px 9px;
  font-size: 12.5px;
  box-shadow: 0 4px 14px #000a;
}
.leaflet-tooltip.band-tip::before { display: none; }
.tip-genre { color: var(--muted); font-size: 11px; }

/* mobile */
@media (max-width: 720px) {
  #topbar { flex-wrap: wrap; gap: 8px; }
  #topbar h1 { font-size: 26px; }
  #search { width: 180px; }
  #counts { display: none; }
  #legend { width: 170px; top: 96px; font-size: 12px; }
  }
