:root {
  --bg: #121016;
  --surface: #1b1820;
  --surface-2: #221e29;
  --border: #332f3c;
  --ink: #ede9e2;
  --ink-muted: #9c93ac;
  --ink-faint: #6b6478;

  --accent-gold: #f0a63e;
  --accent-pink: #e63c86;

  --status-open: #35c97b;
  --status-open-bg: rgba(53, 201, 123, 0.14);
  --status-soon: #4ea8ff;
  --status-soon-bg: rgba(78, 168, 255, 0.14);
  --status-sold: #e8a23a;
  --status-sold-bg: rgba(232, 162, 58, 0.14);
  --status-dead: #7c7488;
  --status-dead-bg: rgba(124, 116, 136, 0.14);
  --status-cancel: #e6493f;
  --status-cancel-bg: rgba(230, 73, 63, 0.14);

  --font-display: "Big Shoulders Display", sans-serif;
  --font-body: "Work Sans", sans-serif;

  --radius: 10px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  line-height: 1.45;
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}

:focus-visible {
  outline: 2px solid var(--accent-pink);
  outline-offset: 2px;
}

/* ============================================================
   HEADER
   ============================================================ */

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  background: linear-gradient(180deg, var(--bg) 78%, rgba(18,16,22,0.94));
  border-bottom: 1px solid var(--border);
  padding: 22px clamp(16px, 4vw, 40px) 16px;
}

.brand h1 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(30px, 5vw, 42px);
  letter-spacing: 0.01em;
  margin: 0;
  line-height: 0.95;
}

.brand h1 .amp {
  color: var(--accent-pink);
  font-style: italic;
}

.tagline {
  margin: 4px 0 18px;
  color: var(--ink-muted);
  font-size: 14px;
}

.controls {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.search-wrap input {
  width: 100%;
  max-width: 480px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 15px;
  padding: 11px 14px;
}

.search-wrap input::placeholder { color: var(--ink-faint); }

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

.scope-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.scope-btn {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--ink-muted);
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 13.5px;
  padding: 7px 14px;
  border-radius: 999px;
  cursor: pointer;
}

.scope-btn:hover { color: var(--ink); border-color: var(--ink-faint); }

.scope-btn.is-active {
  background: var(--ink);
  color: var(--bg);
  border-color: var(--ink);
  font-weight: 600;
}

.venue-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.venue-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.venue-chip {
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--ink-muted);
  font-family: var(--font-body);
  font-size: 13px;
  padding: 6px 12px;
  border-radius: 999px;
  cursor: pointer;
}

.venue-chip:hover { color: var(--ink); }

.venue-chip.is-active {
  background: var(--accent-pink);
  border-color: var(--accent-pink);
  color: #fff;
  font-weight: 600;
}

#venue-select {
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 13px;
  padding: 7px 10px;
  border-radius: 999px;
  max-width: 220px;
}

.toggle {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--ink-faint);
  font-size: 13px;
  margin-left: auto;
  cursor: pointer;
  user-select: none;
}

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

/* ============================================================
   RESULTS
   ============================================================ */

main#results {
  padding: 28px clamp(16px, 4vw, 40px) 60px;
  max-width: 920px;
  margin: 0 auto;
}

.loading, .empty-state {
  color: var(--ink-muted);
  padding: 60px 0;
  text-align: center;
}

.empty-state h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 24px;
  color: var(--ink);
  margin: 0 0 8px;
}

.date-group {
  display: flex;
  gap: 18px;
  padding: 22px 0;
  border-bottom: 1px solid var(--border);
}

.date-group:first-child { padding-top: 0; }

.date-rail {
  flex: 0 0 64px;
  text-align: center;
  padding-top: 4px;
}

.date-rail .day-num {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 30px;
  line-height: 1;
  color: var(--accent-gold);
}

.date-rail .month-abbr {
  display: block;
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--ink-muted);
  margin-top: 2px;
}

.date-rail .weekday {
  display: block;
  font-size: 11px;
  color: var(--ink-faint);
  margin-top: 6px;
}

.date-events {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
}

.event-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.event-main { min-width: 0; }

.event-artist {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 20px;
  letter-spacing: 0.01em;
  margin: 0 0 3px;
  overflow-wrap: break-word;
}

.event-meta {
  color: var(--ink-muted);
  font-size: 13.5px;
  overflow-wrap: break-word;
}

.event-meta .sep { color: var(--ink-faint); margin: 0 6px; }

.event-side {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
}

.status-pill {
  font-size: 11.5px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 999px;
  white-space: nowrap;
}

.status-pill.open   { color: var(--status-open);   background: var(--status-open-bg); }
.status-pill.soon   { color: var(--status-soon);   background: var(--status-soon-bg); }
.status-pill.sold   { color: var(--status-sold);   background: var(--status-sold-bg); }
.status-pill.dead   { color: var(--status-dead);   background: var(--status-dead-bg); }
.status-pill.cancel { color: var(--status-cancel); background: var(--status-cancel-bg); }

.ticket-link {
  font-size: 13px;
  font-weight: 600;
  color: var(--bg);
  background: var(--accent-gold);
  padding: 6px 12px;
  border-radius: 6px;
  text-decoration: none;
  white-space: nowrap;
}

.ticket-link:hover { filter: brightness(1.08); }

/* ============================================================
   FOOTER
   ============================================================ */

.site-footer {
  padding: 18px clamp(16px, 4vw, 40px) 30px;
  color: var(--ink-faint);
  font-size: 12.5px;
  display: flex;
  justify-content: space-between;
  max-width: 920px;
  margin: 0 auto;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 560px) {
  .event-card {
    flex-direction: column;
    align-items: flex-start;
  }

  .event-side {
    align-items: flex-start;
    flex-direction: row;
    width: 100%;
    justify-content: space-between;
  }

  .toggle { margin-left: 0; }

  .date-rail { flex-basis: 46px; }
  .date-rail .day-num { font-size: 24px; }
}
