*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:        #0a0a0a;
  --surface:   #111;
  --surface-2: #1a1a1a;
  --border:    #222;
  --accent:    #1db954;
  --accent-hover: #1ed760;
  --text:      #fff;
  --muted:     #888;
  --error:     #e05461;
  --radius:    10px;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 14px;
  line-height: 1.5;
  min-height: 100vh;
}

a { color: inherit; text-decoration: none; }

/* ── Buttons ──────────────────────────────────────────────────── */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 22px;
  border-radius: 500px;
  border: none;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
  white-space: nowrap;
}

.btn-primary {
  background: var(--accent);
  color: #000;
}
.btn-primary:hover { background: var(--accent-hover); }

.btn-ghost {
  background: transparent;
  color: var(--muted);
  border: 1px solid var(--border);
}
.btn-ghost:hover { color: var(--text); border-color: #444; }

.btn-sm { padding: 7px 16px; font-size: 13px; }
.btn-block { width: 100%; justify-content: center; }

/* ── Inputs ───────────────────────────────────────────────────── */

.input {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  font-size: 14px;
  padding: 10px 14px;
  outline: none;
  transition: border-color 0.15s;
  width: 100%;
}
.input:focus { border-color: #444; }
.input::placeholder { color: var(--muted); }

/* ── Header ───────────────────────────────────────────────────── */

.header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  height: 60px;
  border-bottom: 1px solid var(--border);
  background: var(--surface);
  position: sticky;
  top: 0;
  z-index: 10;
}

.header-logo {
  font-size: 16px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
}

.header-logo .dot {
  width: 8px;
  height: 8px;
  background: var(--accent);
  border-radius: 50%;
}

.header-user {
  display: flex;
  align-items: center;
  gap: 12px;
}

.header-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--border);
}

.header-name { font-size: 13px; color: var(--muted); }

/* ── Layout ───────────────────────────────────────────────────── */

.layout {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 0;
  min-height: calc(100vh - 60px);
}

.sidebar {
  border-right: 1px solid var(--border);
  padding: 20px;
  overflow-y: auto;
}

.main {
  padding: 20px 24px;
  overflow-y: auto;
}

/* ── Section titles ───────────────────────────────────────────── */

.section-title {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 12px;
}

/* ── City bar ─────────────────────────────────────────────────── */

.city-bar {
  display: flex;
  gap: 8px;
  margin-bottom: 24px;
}

.city-bar .input { flex: 1; }

/* ── Filter bar ───────────────────────────────────────────────── */

.filter-bar {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 20px;
  align-items: center;
}

.filter-select {
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: 500px;
  font-size: 13px;
  padding: 6px 12px;
  cursor: pointer;
  outline: none;
}
.filter-select:focus { border-color: #444; }

.filter-label {
  font-size: 12px;
  color: var(--muted);
  margin-left: 4px;
}

/* ── Sidebar artist row ───────────────────────────────────────── */

.artist-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
}
.artist-row:last-child { border-bottom: none; }

.artist-row-img {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--surface-2);
  flex-shrink: 0;
}

.artist-row-info { flex: 1; min-width: 0; }
.artist-row-name { font-size: 13px; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.artist-row-score { font-size: 11px; color: var(--muted); }

/* ── Empty / loading states ───────────────────────────────────── */

.empty-state {
  text-align: center;
  padding: 48px 24px;
  color: var(--muted);
}
.empty-state p + p { margin-top: 8px; font-size: 13px; }

.skeleton {
  background: linear-gradient(90deg, var(--surface) 25%, var(--surface-2) 50%, var(--surface) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.4s infinite;
  border-radius: 6px;
}
@keyframes shimmer { to { background-position: -200% 0; } }

/* ── Utilities ────────────────────────────────────────────────── */

.hidden  { display: none !important; }
.mt-4    { margin-top: 4px; }
.mt-8    { margin-top: 8px; }
.mt-16   { margin-top: 16px; }
.text-muted { color: var(--muted); }
.text-accent { color: var(--accent); }
.text-error  { color: var(--error); }

/* ── Landing page ─────────────────────────────────────────────── */

.landing {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 24px;
}

.landing-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 56px 48px;
  max-width: 480px;
  width: 100%;
  text-align: center;
}

.landing-logo {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.landing-logo svg { width: 16px; height: 16px; }

.landing-headline {
  font-size: 2rem;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 12px;
}

.landing-sub {
  color: var(--muted);
  font-size: 15px;
  margin-bottom: 36px;
  line-height: 1.6;
}

.how-it-works {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 36px;
  text-align: left;
}

.step {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px 14px;
}

.step-num {
  font-size: 11px;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 4px;
}

.step-text { font-size: 12px; color: var(--muted); line-height: 1.4; }

.landing-note {
  margin-top: 16px;
  font-size: 12px;
  color: var(--muted);
  line-height: 1.5;
}

.landing-note a,
.landing-footer a,
.demo-banner a { color: var(--accent); }
.landing-note a:hover,
.landing-footer a:hover,
.demo-banner a:hover { text-decoration: underline; }

.landing-footer {
  margin-top: 28px;
  font-size: 12px;
}

/* ── Demo banner ──────────────────────────────────────────────── */

.demo-banner {
  padding: 10px 24px;
  font-size: 13px;
  color: var(--muted);
  background: rgba(29, 185, 84, 0.08);
  border-bottom: 1px solid rgba(29, 185, 84, 0.25);
}
.demo-banner strong { color: var(--accent); }

/* ── Concert card: image backdrop ─────────────────────────────── */

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

.concert-card {
  display: block;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--border);
  text-decoration: none;
  color: inherit;
  transition: transform 0.15s, border-color 0.15s, box-shadow 0.15s;
}
.concert-card:not([href]) { cursor: default; }
.concert-card:hover {
  transform: translateY(-3px);
  border-color: #2a2a2a;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.45);
}

.concert-card-backdrop {
  position: relative;
  height: 150px;
  overflow: hidden;
  background: var(--surface-2);
}

.concert-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
  display: block;
  filter: brightness(0.55);
  transition: filter 0.2s;
}
.concert-card:hover .concert-card-img { filter: brightness(0.7); }

.concert-card-backdrop::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    transparent 15%,
    rgba(17, 17, 17, 0.45) 55%,
    #111 100%
  );
}

.concert-card-affinity {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 44px;
  height: 44px;
  z-index: 1;
}

.affinity-ring {
  width: 44px;
  height: 44px;
  transform: rotate(-90deg);
  display: block;
}

.affinity-ring-bg {
  fill: none;
  stroke: rgba(255, 255, 255, 0.15);
  stroke-width: 3;
}

.affinity-ring-fill {
  fill: none;
  stroke: var(--accent);
  stroke-width: 3;
  stroke-linecap: round;
  transition: stroke-dasharray 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.affinity-ring-label {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  color: #fff;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.7);
}

.concert-card-content {
  padding: 12px 14px 14px;
}

.concert-card-artist {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text);
  margin-bottom: 3px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.concert-card-event {
  font-size: 13px;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 3px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.concert-card-venue {
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 10px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.concert-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.concert-card-date {
  font-size: 12px;
  font-weight: 600;
  color: var(--text);
}

.concert-card-price {
  font-size: 12px;
  font-weight: 600;
  color: var(--accent);
}

@media (max-width: 900px) {
  .concert-feed-grid { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 720px) {
  .layout { grid-template-columns: minmax(0, 1fr); align-content: start; }
  .sidebar { border-right: none; border-bottom: 1px solid var(--border); max-height: 320px; }
  .header, .demo-banner { padding-left: 16px; padding-right: 16px; }
  .main { padding: 20px 16px; }
}

@media (max-width: 520px) {
  .landing { padding: 16px; }
  .landing-card { padding: 36px 24px; }
  .landing-headline { font-size: 1.6rem; }
  .how-it-works { grid-template-columns: 1fr; }
  .header-name { display: none; }
}

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