:root {
  --bg: #0b0b0b;
  --panel: #121212;
  --panel2: #0f0f0f;
  --text: #f2f2f2;
  --muted: #999;
  --line: rgba(255,255,255,.1);
  --brand: #D19A4C;
  --brand2: #b88439;
  --red: #e94d4d;
  --green: #34d399;
  --yellow: #f59e0b;
}

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

html, body { min-height: 100vh; }

body {
  background:
    radial-gradient(1200px 500px at 10% -10%, rgba(209,154,76,.18), transparent 60%),
    radial-gradient(900px 400px at 90% 0%, rgba(255,255,255,.04), transparent 55%),
    var(--bg);
  color: var(--text);
  font-family: "Instrument Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

.nav {
  position: sticky; top: 0; z-index: 10;
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 20px;
  border-bottom: 1px solid var(--line);
  background: rgba(11,11,11,.8);
  backdrop-filter: blur(14px);
}

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

.logo {
  width: 38px; height: 38px; border-radius: 10px;
  display: grid; place-items: center;
  font-family: "Syne", sans-serif; font-weight: 800; font-size: 13px;
  color: #0b0b0b;
  background: linear-gradient(135deg, var(--brand), #e6c080);
}

.brand-name { font-family: "Syne", sans-serif; font-weight: 800; font-size: 1rem; }
.brand-sub { color: var(--muted); font-size: 11px; }

.status-pill {
  font-family: "JetBrains Mono", monospace;
  font-size: 11px; padding: 5px 10px;
  border: 1px solid var(--line); border-radius: 999px;
  color: var(--muted);
}

.wrap { max-width: 1080px; margin: 0 auto; padding: 24px 20px 80px; }

.hero { padding: 20px 0 8px; }

.hero h1 {
  font-family: "Syne", sans-serif;
  font-size: clamp(26px, 4vw, 44px);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 12px;
}

.hero h1 span { color: var(--brand); }

.hero p { color: var(--muted); line-height: 1.65; max-width: 68ch; font-size: .93rem; }

.search-card {
  margin-top: 20px;
  background: linear-gradient(180deg, rgba(255,255,255,.055), rgba(255,255,255,.025));
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 20px;
}

.form-label { display: block; font-size: 11px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .8px; margin-bottom: 7px; }

.form-row { display: flex; flex-direction: column; }

.form-grid { display: grid; grid-template-columns: 2fr 1.2fr .8fr; gap: 12px; }

@media (max-width: 600px) { .form-grid { grid-template-columns: 1fr; } }

.btn-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 14px; }

@media (max-width: 480px) { .btn-grid { grid-template-columns: 1fr; } }

select, input[type="text"] {
  width: 100%;
  padding: 11px 13px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.13);
  background: rgba(0,0,0,.4);
  color: var(--text);
  font-size: .9rem;
  outline: none;
  appearance: none;
  transition: border-color .18s;
}

select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath fill='%23888' d='M5 6L0 0h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 30px;
}

select option { background: #111; }

select:focus, input:focus { border-color: rgba(209,154,76,.55); }

.btn {
  padding: 12px 16px;
  border-radius: 13px;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.06);
  color: var(--text);
  font-family: "Syne", sans-serif;
  font-weight: 800;
  font-size: .88rem;
  cursor: pointer;
  transition: transform .12s, background .15s;
}

.btn:hover { transform: translateY(-1px); background: rgba(255,255,255,.09); }
.btn:disabled { opacity: .4; cursor: not-allowed; transform: none; }

.btn.primary {
  background: linear-gradient(135deg, var(--brand), var(--brand2));
  color: #0b0b0b;
  border: none;
}

.btn.primary:hover { background: linear-gradient(135deg, #e0aa5c, var(--brand)); }

.hint { margin-top: 10px; color: var(--muted); font-size: 11.5px; line-height: 1.5; }
.hint code { font-family: "JetBrains Mono", monospace; font-size: 10.5px; padding: 2px 5px; border: 1px solid var(--line); border-radius: 6px; }

.results-section { margin-top: 28px; }

.results-head {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 12px; flex-wrap: wrap; margin-bottom: 14px;
}

.results-head h2 { font-family: "Syne", sans-serif; font-weight: 800; margin: 0; }

.results-meta { color: var(--muted); font-size: 12px; }

.error-box {
  padding: 14px 16px; border-radius: 14px;
  border: 1px solid rgba(255,72,88,.35);
  background: rgba(255,72,88,.1);
  color: #ffb3ba; font-size: .88rem; line-height: 1.5;
}

.spinner-wrap { text-align: center; padding: 50px 0; color: var(--muted); font-size: .88rem; }

.spinner {
  display: inline-block; width: 18px; height: 18px;
  border: 2px solid rgba(209,154,76,.2);
  border-top-color: var(--brand);
  border-radius: 50%;
  animation: spin .75s linear infinite;
  vertical-align: middle; margin-right: 8px;
}

@keyframes spin { to { transform: rotate(360deg); } }

.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

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

.card-item {
  background: rgba(0,0,0,.35);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 14px;
  display: flex; flex-direction: column; gap: 10px;
  transition: border-color .2s;
}

.card-item:hover { border-color: rgba(209,154,76,.3); }

.card-photo {
  width: 100%; height: 150px;
  object-fit: cover;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.04);
}

.card-top { display: flex; justify-content: space-between; gap: 8px; }

.card-name { font-family: "Syne", sans-serif; font-weight: 800; font-size: .95rem; line-height: 1.3; }
.card-addr { font-size: .73rem; color: var(--muted); margin-top: 3px; }

.card-badges { display: flex; flex-direction: column; gap: 5px; align-items: flex-end; flex-shrink: 0; }

.badge {
  font-family: "JetBrains Mono", monospace;
  font-size: 10px; padding: 4px 8px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.13);
  color: var(--muted);
  white-space: nowrap;
}

.badge.gold { border-color: rgba(209,154,76,.5); color: var(--brand); }
.badge.blue { border-color: rgba(56,189,248,.4); color: #38bdf8; }
.badge.purple { border-color: rgba(167,139,250,.4); color: #a78bfa; }
.badge.green { border-color: rgba(52,211,153,.4); color: var(--green); }
.badge.amber { border-color: rgba(245,158,11,.4); color: var(--yellow); }
.badge.dim { border-color: rgba(255,255,255,.08); color: #555; }

.score-row { display: flex; flex-wrap: wrap; gap: 5px; }

.snippets { display: flex; flex-direction: column; gap: 6px; }

.snippet {
  font-size: .76rem; color: var(--muted); line-height: 1.5;
  border-left: 2px solid rgba(209,154,76,.35);
  padding-left: 8px;
}

.artists-block {
  background: rgba(13,31,45,.6);
  border-radius: 10px;
  padding: 10px 12px;
  border: 1px solid rgba(56,189,248,.1);
}

.artists-label {
  font-size: 10px; font-weight: 700; text-transform: uppercase;
  letter-spacing: .9px; color: rgba(56,189,248,.6); margin-bottom: 8px;
}

.artist-row { margin-bottom: 6px; }
.artist-row:last-child { margin-bottom: 0; }

.artist-name { font-size: .85rem; font-weight: 700; color: #e2e8f0; }

.verified-tag {
  font-size: 9px; font-weight: 800; text-transform: uppercase;
  color: var(--green); margin-left: 5px;
}

.ig-link {
  font-size: 10px; color: var(--brand); text-decoration: none;
  margin-left: 5px; font-weight: 600;
}

.ig-link:hover { text-decoration: underline; }

.artist-sub { font-size: .7rem; color: #4a6a80; margin-top: 2px; }

.card-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: auto; }

.action-link {
  font-family: "Syne", sans-serif; font-weight: 800; font-size: 11.5px;
  padding: 8px 11px; border-radius: 10px;
  border: 1px solid rgba(255,255,255,.13);
  background: rgba(255,255,255,.05);
  color: var(--text); text-decoration: none;
  transition: background .15s;
}

.action-link:hover { background: rgba(255,255,255,.09); }
.action-link.primary { background: rgba(209,154,76,.15); border-color: rgba(209,154,76,.4); color: var(--brand); }
.action-link.gold { background: #c9a84c; border-color: #c9a84c; color: #0a0a0a; font-weight: 700; }
.action-link.gold:hover { background: #b8963e; border-color: #b8963e; }
.action-link.gold-outline { background: transparent; border-color: #c9a84c; color: #c9a84c; font-weight: 700; }
.action-link.gold-outline:hover { background: rgba(201,168,76,.12); }

.empty { text-align: center; color: var(--muted); padding: 60px 20px; font-size: .9rem; }

.foot { margin-top: 48px; color: var(--muted); font-size: 11.5px; }
