/* Soundalike
   Dark ground, greys through opacity. Yellow means "buy the record", green means "this goes
   straight to the band", teal is a link. One column, hairline rules, 12px cards.
   Spacing scale: 4 8 12 16 24 32 48 64 96. */
:root {
  --bg: #0f1013;
  --bg-2: #131418;
  --panel: #17191e;
  --panel-2: #1c1f26;
  --line: #262932;
  --line-2: #343845;
  --text: #ecebe6;
  --muted: #9a9890;
  --faint: #6b6a64;
  --accent: #f5c518;
  --accent-ink: #1a1500;
  --accent-2: #2fb3d6;
  --direct: #7ad38a;
  --danger: #ff8c8c;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --display: "Inter Tight", "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --r-sm: 8px; --r: 12px; --r-lg: 16px;
  --ring: 0 0 0 3px rgba(47, 179, 214, 0.35);
  color-scheme: dark;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
html, body { overflow-x: clip; }  /* the hero disc bleeds past the viewport edge on purpose */
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 16px/1.55 var(--sans); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
a { color: var(--accent-2); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 4px; }
:focus-visible { outline: none; box-shadow: var(--ring); border-radius: var(--r-sm); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 16px; top: -48px; padding: 8px 12px; background: var(--accent); color: var(--accent-ink); border-radius: var(--r-sm); z-index: 10; }
.skip:focus { top: 12px; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }

/* Type */
.kicker, .meta, nav, footer, .score, .examples > span, button.small, .links a, .shows .date, .card .why.pending {
  font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted);
}
.kicker { display: block; margin-bottom: 16px; }
h1, h2, h3 { margin: 0; font-family: var(--display); }
h1 { font-size: clamp(2.75rem, 7vw, 5.25rem); font-weight: 700; letter-spacing: -0.04em; line-height: 0.95; max-width: 9.5em; text-wrap: balance; }
h2 { font-size: clamp(1.6rem, 3vw, 2.25rem); font-weight: 600; letter-spacing: -0.03em; line-height: 1.05; margin-bottom: 12px; text-wrap: balance; }
p { margin: 0 0 1em; max-width: 42em; }
.lead { font-size: clamp(1.05rem, 1.5vw, 1.25rem); color: var(--muted); margin: 24px 0 0; max-width: 34em; }

/* Header */
header { position: sticky; top: 0; z-index: 5; background: rgba(15, 16, 19, 0.82); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 60px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); font-weight: 600; letter-spacing: -0.01em; }
.brand img { border-radius: 7px; display: block; }
.brand:hover { text-decoration: none; }
nav { display: flex; gap: 24px; }
nav a { color: var(--muted); }
nav a:hover { color: var(--text); text-decoration: none; }

/* Hero */
.hero { position: relative; padding: 96px 0 56px; }
/* Once there are results, the hero steps back so the list lands above the fold. */
body.has-results .hero { padding: 40px 0 32px; }
body.has-results .hero h1 { font-size: clamp(1.9rem, 3.4vw, 2.6rem); max-width: none; }
body.has-results .hero .lead, body.has-results .hero .kicker { display: none; }
body.has-results #search { margin-top: 20px; }
body.has-results .disc { width: 360px; height: 360px; top: -120px; right: -120px; opacity: 0.55; }
.hero, .disc, .disc i, h1, #search { transition: padding 0.25s ease, width 0.25s ease, height 0.25s ease, opacity 0.25s ease, font-size 0.25s ease, margin 0.25s ease; }
.hero > :not(.disc) { position: relative; }
.disc {
  position: absolute; right: -180px; top: -60px; width: 640px; height: 640px; border-radius: 50%;
  background:
    radial-gradient(circle at 50% 50%, var(--accent) 0 8px, var(--bg) 8px 12px, var(--accent) 12px 74px, #0a0b0d 74px 100%);
  box-shadow: inset 0 0 0 1px var(--line);
  -webkit-mask-image: linear-gradient(to left, #000 35%, transparent 90%);
  mask-image: linear-gradient(to left, #000 35%, transparent 90%);
  animation: spin 60s linear infinite;
  pointer-events: none;
}
.disc i {
  position: absolute; inset: 0; border-radius: 50%;
  background: repeating-radial-gradient(circle at 50% 50%, transparent 0 7px, rgba(255, 255, 255, 0.045) 7px 8px);
  -webkit-mask-image: radial-gradient(circle, transparent 0 78px, #000 80px 100%);
  mask-image: radial-gradient(circle, transparent 0 78px, #000 80px 100%);
}
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .disc { animation: none; } }

#search { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 36px; max-width: 680px; }
.field { position: relative; flex: 1 1 320px; }
.field-icon { position: absolute; left: 16px; top: 50%; width: 20px; height: 20px; transform: translateY(-50%); color: var(--faint); pointer-events: none; }
input[type=search] {
  width: 100%; padding: 16px 16px 16px 46px; font: 500 1.05rem var(--sans); color: var(--text);
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
input[type=search]::placeholder { color: var(--faint); font-weight: 400; }
input[type=search]:hover { border-color: var(--line-2); }
input[type=search]:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(245, 197, 24, 0.2); background: var(--panel-2); }
input[type=search]::-webkit-search-cancel-button { filter: invert(0.6); }
button { font: 600 0.95rem var(--sans); cursor: pointer; border: 0; border-radius: var(--r); transition: transform 0.12s ease, filter 0.12s ease, border-color 0.15s ease, color 0.15s ease, background 0.15s ease; }
button:active { transform: translateY(1px); }
button.primary { padding: 16px 22px; background: var(--accent); color: var(--accent-ink); }
button.primary:hover { filter: brightness(1.07); }
.examples { margin: 18px 0 0; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.examples > span { margin-right: 4px; }
button.example { padding: 6px 12px; font-size: 0.85rem; font-weight: 500; color: var(--muted); background: transparent; border: 1px solid var(--line); border-radius: 999px; }
button.example:hover { border-color: var(--line-2); color: var(--text); background: var(--panel); }
button.small { padding: 7px 11px; background: transparent; color: var(--accent-2); border: 1px solid var(--line); border-radius: var(--r-sm); }
button.small:hover { border-color: var(--accent-2); }
button.small:disabled { opacity: 0.5; cursor: default; }

/* Status + seed */
#status { padding: 4px 0 24px; color: var(--muted); }
#status.error { color: var(--danger); }
#seed { display: flex; gap: 20px; align-items: center; padding: 32px 0 24px; border-top: 1px solid var(--line); }
#seed img, #seed .noimg { width: 84px; height: 84px; border-radius: 50%; object-fit: cover; background: var(--panel); flex: none; }
#seed .kicker { margin-bottom: 6px; }
#seed h2 { margin: 0 0 8px; }
#seed .bio { color: var(--muted); font-size: 0.95rem; margin: 6px 0 10px; max-width: 60em; }
.promo { margin: 12px 0 0; font-size: 0.9rem; }
.promo a { display: inline-block; padding: 8px 12px; border: 1px solid rgba(245, 197, 24, 0.45); border-radius: var(--r-sm); color: var(--accent); }
.promo a:hover { text-decoration: none; background: rgba(245, 197, 24, 0.08); }
.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tags span { padding: 3px 10px; border-radius: 999px; background: var(--panel); border: 1px solid var(--line); color: var(--muted); font-size: 0.78rem; }

/* Cards */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 12px; padding-bottom: 32px; }
.grid:empty { display: none; }
.card {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); padding: 16px;
  display: flex; flex-direction: column; gap: 12px;
  opacity: 0; transform: translateY(8px);
  animation: rise 0.35s ease forwards; animation-delay: calc(var(--i, 0) * 40ms);
  transition: border-color 0.15s ease, background 0.15s ease;
}
.card:hover { border-color: var(--line-2); background: var(--panel-2); }
@keyframes rise { to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .card { animation: none; opacity: 1; transform: none; } }
.card .top { display: flex; gap: 12px; align-items: center; }
.card img, .card .noimg { width: 60px; height: 60px; border-radius: var(--r-sm); object-fit: cover; background: var(--bg); flex: none; }
.card .noimg { display: grid; place-items: center; color: var(--faint); font-size: 22px; }
.card h3 { font-size: 1.1rem; font-weight: 600; letter-spacing: -0.02em; line-height: 1.2; }
.card .meta { margin-top: 4px; display: flex; gap: 8px; align-items: center; }
.card .meta .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--faint); display: inline-block; }
.card .meta .dot.both { background: var(--direct); }
.match { display: flex; align-items: center; gap: 10px; }
.match .bar { flex: 1; height: 3px; background: var(--line); border-radius: 2px; overflow: hidden; }
.match .bar i { display: block; height: 100%; background: var(--muted); width: 0; transition: width 0.6s ease; }
.match .score { flex: none; min-width: 3ch; text-align: right; color: var(--muted); }
.card .why { font-size: 0.95rem; color: var(--text); line-height: 1.45; }
.card .why.pending { color: var(--faint); font-size: 0.72rem; }
.card .why:empty { display: none; }
.buy {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 11px 14px;
  border-radius: var(--r-sm); font-weight: 600; font-size: 0.92rem; border: 1px solid var(--line);
  color: var(--text); background: transparent;
}
.buy:hover { text-decoration: none; border-color: var(--line-2); background: var(--bg-2); }
.buy.direct { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.buy.direct:hover { filter: brightness(1.07); background: var(--accent); }
.buy svg { width: 14px; height: 14px; flex: none; }
.links { display: flex; flex-wrap: wrap; gap: 6px; }
.links a { padding: 5px 9px; border: 1px solid var(--line); border-radius: 6px; color: var(--muted); font-size: 0.68rem; }
.links a.direct { color: var(--direct); border-color: rgba(122, 211, 138, 0.35); }
.links a:hover { text-decoration: none; border-color: var(--accent-2); color: var(--text); }
.shows ul { list-style: none; margin: 4px 0 0; padding: 0; font-size: 0.85rem; }
.shows li { display: flex; gap: 10px; align-items: baseline; padding: 6px 0; border-top: 1px solid var(--line); }
.shows li span:nth-child(2) { flex: 1; }
.shows .none { color: var(--muted); font-size: 0.85rem; }
.card .more { margin-top: auto; display: flex; gap: 8px; align-items: center; justify-content: space-between; padding-top: 4px; }
.card .more a.like { font-size: 0.85rem; }

/* Skeletons */
.card.skeleton { animation: none; opacity: 1; transform: none; pointer-events: none; }
.sk { background: var(--line); border-radius: 6px; position: relative; overflow: hidden; }
.sk::after { content: ""; position: absolute; inset: 0; transform: translateX(-100%); background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.06), transparent); animation: shimmer 1.4s infinite; }
@keyframes shimmer { to { transform: translateX(100%); } }
@media (prefers-reduced-motion: reduce) { .sk::after { animation: none; } }
.sk-img { width: 60px; height: 60px; border-radius: var(--r-sm); flex: none; }
.sk-lines { flex: 1; display: flex; flex-direction: column; gap: 8px; }
.sk-line { height: 12px; } .w60 { width: 60%; } .w30 { width: 30%; }
.sk-bar { height: 3px; }
.sk-btn { height: 40px; border-radius: var(--r-sm); }
.sk-row { display: flex; gap: 6px; }
.sk-pill { width: 64px; height: 24px; }

/* Intro steps */
#intro { border-top: 1px solid var(--line); }
.step { display: grid; grid-template-columns: 200px 1fr; gap: 24px; padding: 64px 0; }
.step + .step { border-top: 1px solid var(--line); }
.step .kicker { margin: 6px 0 0; }
.step p { color: var(--muted); font-size: 1.05rem; margin: 0; }
.step em { font-style: normal; color: var(--text); font-family: var(--mono); }

/* Footer */
footer { border-top: 1px solid var(--line); padding: 28px 0 56px; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 10px 32px; align-items: center; }
footer .brand { font-size: 0.85rem; font-family: var(--sans); text-transform: none; letter-spacing: 0; }
footer .disclosure { margin-left: auto; color: var(--faint); }

@media (max-width: 760px) {
  .hero { padding: 56px 0 40px; }
  .disc { width: 420px; height: 420px; right: -260px; top: -40px; opacity: 0.4; }
  h1 { font-size: clamp(2.4rem, 11vw, 3.4rem); }
  .step { grid-template-columns: 1fr; gap: 8px; padding: 44px 0; }
  .grid { grid-template-columns: 1fr; }
  footer .disclosure { margin-left: 0; }
}
@media (max-width: 420px) {
  .wrap { padding: 0 16px; }
  header .wrap { height: 56px; }
  nav { gap: 16px; }
  #search button.primary { flex: 1 1 100%; }
}
