:root {
  --bg: #0e0f12;
  --bg-elev: #16181d;
  --bg-card: #1c1f26;
  --bg-hover: #242833;
  --border: #2a2e38;
  --text: #e8ecf3;
  --text-dim: #9aa3b2;
  --text-muted: #6b7385;
  --accent: #d4a574;
  --accent-2: #7ab8c4;
  --rare: #e87d5a;
  --success: #7cc48f;
  --radius: 10px;
  --radius-sm: 6px;
  --shadow: 0 2px 12px rgba(0,0,0,0.3);
  --max-width: 1200px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  font-size: 16px;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

.site-header {
  position: sticky;
  top: 0;
  background: rgba(14,15,18,0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
  z-index: 100;
}
.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-weight: 700;
  font-size: 1.1rem;
}
.brand:hover { text-decoration: none; }
.brand-icon { color: var(--accent); }
.site-nav {
  display: flex;
  gap: 24px;
}
.site-nav a {
  color: var(--text-dim);
  font-size: 0.95rem;
  transition: color 0.15s;
}
.site-nav a:hover { color: var(--text); text-decoration: none; }
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  margin: 5px 0;
  border-radius: 2px;
}

main { max-width: var(--max-width); margin: 0 auto; padding: 0 24px 60px; }

.hero {
  padding: 80px 0 60px;
  border-bottom: 1px solid var(--border);
}
.hero-tag {
  display: inline-block;
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--accent);
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 20px;
}
.hero h1 {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  line-height: 1.2;
  margin: 0 0 16px;
  max-width: 700px;
}
.hero-sub {
  color: var(--text-dim);
  font-size: 1.1rem;
  max-width: 560px;
  margin: 0 0 32px;
}
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--text);
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s;
}
.btn:hover { background: var(--bg-hover); text-decoration: none; }
.btn-primary {
  background: var(--accent);
  color: #1a1410;
  border-color: var(--accent);
}
.btn-primary:hover { background: #c49664; border-color: #c49664; }
.btn-ghost { background: transparent; }
.btn-sm { padding: 6px 14px; font-size: 0.85rem; }
.btn:disabled { opacity: 0.4; cursor: not-allowed; }

.section-header { margin-bottom: 32px; }
.section-header h2 { font-size: 1.6rem; margin: 0 0 8px; }
.section-sub { color: var(--text-dim); margin: 0; }

.browse-section { padding: 60px 0; }
.browse-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 24px;
}
.artist-panel {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  height: fit-content;
  max-height: 70vh;
  overflow-y: auto;
}
.artist-search {
  width: 100%;
  padding: 10px 12px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-size: 0.9rem;
  margin-bottom: 12px;
}
.artist-search:focus { outline: none; border-color: var(--accent); }
.artist-search::placeholder { color: var(--text-muted); }
.artist-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.artist-list li {
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: 0.95rem;
  transition: background 0.1s;
}
.artist-list li:hover { background: var(--bg-hover); }
.artist-list li.active { background: var(--accent); color: #1a1410; font-weight: 600; }

.tour-panel {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
}
.tour-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 80px 20px;
  color: var(--text-muted);
  text-align: center;
}
.tour-empty svg { margin-bottom: 16px; opacity: 0.5; }
.tour-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 20px;
  flex-wrap: wrap;
  gap: 12px;
}
.tour-header h3 { margin: 0; font-size: 1.3rem; }
.tour-meta { color: var(--text-dim); margin: 4px 0 0; font-size: 0.9rem; }
.tour-actions { display: flex; gap: 8px; }

.tour-tabs {
  display: flex;
  gap: 4px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 20px;
}
.tab {
  background: none;
  border: none;
  color: var(--text-dim);
  padding: 10px 16px;
  font-size: 0.9rem;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: all 0.15s;
}
.tab:hover { color: var(--text); }
.tab.active { color: var(--accent); border-bottom-color: var(--accent); }
.tab-panel { display: none; }
.tab-panel.active { display: block; }

.timeline { display: flex; flex-direction: column; gap: 12px; }
.timeline-item {
  display: flex;
  gap: 16px;
  padding: 14px 16px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: border-color 0.15s;
}
.timeline-item:hover { border-color: var(--accent); }
.timeline-date { min-width: 90px; font-weight: 600; font-size: 0.9rem; color: var(--accent); }
.timeline-info { flex: 1; }
.timeline-venue { font-weight: 600; margin: 0; }
.timeline-location { color: var(--text-dim); font-size: 0.85rem; margin: 2px 0 0; }
.timeline-count { color: var(--text-muted); font-size: 0.85rem; margin: 4px 0 0; }

.freq-list { display: flex; flex-direction: column; gap: 8px; }
.freq-row {
  display: flex;
  align-items: center;
  gap: 12px;
}
.freq-label { min-width: 180px; font-size: 0.9rem; }
.freq-bar-wrap {
  flex: 1;
  height: 8px;
  background: var(--bg-card);
  border-radius: 4px;
  overflow: hidden;
}
.freq-bar {
  height: 100%;
  background: var(--accent);
  border-radius: 4px;
  transition: width 0.3s;
}
.freq-bar.rare { background: var(--rare); }
.freq-count { min-width: 60px; text-align: right; font-size: 0.85rem; color: var(--text-dim); }

.notes-list { display: flex; flex-direction: column; gap: 12px; }
.note-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
}
.note-card p { margin: 0 0 6px; font-size: 0.95rem; }
.note-card .note-meta { color: var(--text-muted); font-size: 0.8rem; }

.show-detail {
  padding: 40px 0;
  border-top: 1px solid var(--border);
}
.detail-back { margin-bottom: 16px; }
.detail-title { font-size: 1.5rem; margin: 0 0 4px; }
.detail-meta { color: var(--text-dim); margin: 0 0 24px; }

.setlist-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  margin-bottom: 32px;
}
.setlist-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}
.setlist-header h4 { margin: 0; font-size: 1.1rem; }
.setlist-actions { display: flex; gap: 8px; }
.setlist-ol {
  margin: 0;
  padding-left: 24px;
}
.setlist-ol li {
  padding: 6px 0;
  font-size: 0.95rem;
  border-bottom: 1px solid var(--border);
}
.setlist-ol li:last-child { border-bottom: none; }
.setlist-ol li.rare-song { color: var(--rare); font-weight: 600; }
.encore-block { margin-top: 16px; padding-top: 16px; border-top: 2px dashed var(--border); }
.encore-label { font-weight: 700; color: var(--accent); margin: 0 0 8px; text-transform: uppercase; font-size: 0.8rem; letter-spacing: 1px; }

.show-memories { margin-bottom: 32px; }
.show-memories h4 { margin: 0 0 12px; }
.memory-list { display: flex; flex-direction: column; gap: 10px; margin-bottom: 16px; }
.memory-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
}
.memory-card p { margin: 0 0 4px; font-size: 0.9rem; }
.memory-card .memory-meta { color: var(--text-muted); font-size: 0.78rem; }
.memory-add { display: flex; flex-direction: column; gap: 8px; }
.memory-add textarea {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  padding: 10px 12px;
  font-family: inherit;
  font-size: 0.9rem;
  resize: vertical;
}
.memory-add textarea:focus { outline: none; border-color: var(--accent); }

.show-recommend h4 { margin: 0 0 12px; }
.recommend-list { display: flex; flex-direction: column; gap: 8px; }
.recommend-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  cursor: pointer;
  transition: border-color 0.15s;
}
.recommend-item:hover { border-color: var(--accent); }
.recommend-item p { margin: 0 0 2px; font-size: 0.9rem; }
.recommend-item .rec-meta { color: var(--text-muted); font-size: 0.8rem; }

.compare-section {
  padding: 60px 0;
  border-top: 1px solid var(--border);
}
.compare-controls {
  display: flex;
  gap: 16px;
  align-items: flex-end;
  flex-wrap: wrap;
  margin-bottom: 24px;
}
.compare-select { display: flex; flex-direction: column; gap: 6px; flex: 1; min-width: 200px; }
.compare-select label { font-size: 0.85rem; color: var(--text-dim); }
.compare-select select {
  padding: 10px 12px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-size: 0.9rem;
}
.compare-select select:focus { outline: none; border-color: var(--accent); }
.compare-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 24px;
}
.compare-col h4 { margin: 0 0 12px; font-size: 1rem; }
.setlist-card.compact { padding: 16px; margin-bottom: 0; }
.setlist-card.compact .setlist-ol li { padding: 4px 0; font-size: 0.85rem; }
.compare-diff {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
}
.compare-diff h4 { margin: 0 0 12px; }
.compare-diff ul { margin: 0; padding-left: 20px; }
.compare-diff li { padding: 4px 0; font-size: 0.9rem; }
.compare-diff .added { color: var(--success); }
.compare-diff .removed { color: var(--rare); }

.about-section {
  padding: 60px 0;
  border-top: 1px solid var(--border);
}
.about-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-bottom: 40px;
}
.about-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
}
.about-card h3 { margin: 0 0 12px; font-size: 1.1rem; }
.about-card p { margin: 0; color: var(--text-dim); font-size: 0.95rem; }

.about-faq { margin-bottom: 40px; }
.about-faq h3 { margin: 0 0 16px; }
.about-faq dl { margin: 0; }
.about-faq dt { font-weight: 600; margin: 0 0 4px; }
.about-faq dd { margin: 0 0 16px; color: var(--text-dim); font-size: 0.95rem; }
.about-faq dd:last-child { margin-bottom: 0; }

.about-assumptions {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
}
.about-assumptions h3 { margin: 0 0 12px; font-size: 1.1rem; }
.about-assumptions ul { margin: 0; padding-left: 20px; }
.about-assumptions li { padding: 4px 0; color: var(--text-dim); font-size: 0.9rem; }

.site-footer {
  border-top: 1px solid var(--border);
  padding: 40px 24px;
}
.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}
.footer-brand { display: flex; flex-direction: column; gap: 4px; }
.footer-brand strong { font-size: 1rem; }
.footer-brand span { color: var(--text-muted); font-size: 0.85rem; }
.footer-nav { display: flex; gap: 20px; }
.footer-nav a { color: var(--text-dim); font-size: 0.9rem; }
.footer-nav a:hover { color: var(--text); }
.footer-note { color: var(--text-muted); font-size: 0.8rem; margin: 0; width: 100%; text-align: center; }

@media (max-width: 860px) {
  .browse-layout { grid-template-columns: 1fr; }
  .artist-panel { max-height: 300px; }
  .compare-grid { grid-template-columns: 1fr; }
  .hero { padding: 48px 0 40px; }
  .site-nav { display: none; }
  .site-nav.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg-elev);
    padding: 16px 24px;
    border-bottom: 1px solid var(--border);
    gap: 16px;
  }
  .nav-toggle { display: block; }
  .header-inner { position: relative; }
}

@media print {
  .site-header, .site-footer, .btn, .compare-controls, .memory-add, .hero-actions { display: none; }
  body { background: #fff; color: #000; }
  .setlist-card { border: 1px solid #ccc; }
}



/* Factory-injected deployment helpers. The AI owns the site design above this block. */
.ad-unit {
  width: min(100%, 720px);
  min-height: 120px;
  margin: 24px auto;
  display: block;
}

.legal-page {
  width: min(900px, calc(100% - 32px));
  margin: 40px auto;
}

.factory-fallback-nav {
  width: min(900px, calc(100% - 32px));
  margin: 24px auto 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  align-items: center;
  font-size: 0.95rem;
}

.factory-fallback-nav a {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid currentColor;
}
