:root {
  --bg: #f5f7fa;
  --panel: #ffffff;
  --panel-border: #e5e7eb;
  --text: #111827;
  --muted: #6b7280;
  --accent: #0f172a;
  --accent-strong: #020617;
  --chip: #f3f4f6;
  --chip-active: #111827;
  --chip-active-text: #ffffff;
  --shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Manrope", sans-serif;
  color: var(--text);
  background: var(--bg);
}

.app-shell {
  width: min(980px, calc(100% - 32px));
  margin: 0 auto;
  padding: 40px 0 56px;
}

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

.eyebrow,
.summary-label,
.auth-state,
.status-message,
.artist-meta,
.artist-genres,
.artist-id,
.results-header p {
  color: var(--muted);
}

.eyebrow {
  margin: 0 0 8px;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

h1,
h2,
h3,
strong {
  margin: 0;
}

h1 {
  font-size: clamp(2.4rem, 5vw, 4rem);
  line-height: 1;
  letter-spacing: -0.04em;
}

.hero-copy {
  max-width: 54ch;
  margin: 14px 0 0;
  font-size: 1rem;
  line-height: 1.65;
}

.panel {
  margin-top: 16px;
  padding: 24px;
  border: 1px solid var(--panel-border);
  border-radius: 20px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.controls,
.field,
.results-panel {
  display: flex;
  flex-direction: column;
}

.auth-row,
.actions,
.summary-grid,
.results-header,
.artist-footer {
  display: flex;
  align-items: center;
}

.auth-row,
.actions,
.summary-grid {
  gap: 14px;
}

.field {
  gap: 10px;
  width: 100%;
}

.field span,
.results-header h2 {
  font-weight: 700;
}

textarea,
input,
select {
  width: 100%;
  border: 1px solid var(--panel-border);
  border-radius: 14px;
  background: #ffffff;
  color: var(--text);
  padding: 14px 16px;
  font: inherit;
}

textarea {
  resize: vertical;
  min-height: 160px;
}

textarea:focus,
input:focus,
select:focus,
button:focus {
  outline: 2px solid rgba(15, 23, 42, 0.14);
  outline-offset: 2px;
}

.small-field {
  max-width: 220px;
}

.results-header,
.artist-footer {
  justify-content: space-between;
  gap: 12px;
}

.actions {
  margin-top: 4px;
}

button {
  border: 1px solid transparent;
  border-radius: 12px;
  padding: 13px 18px;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  transition: background 140ms ease, border-color 140ms ease, color 140ms ease;
}

button:hover {
  transform: none;
}

button:disabled {
  cursor: wait;
  opacity: 0.65;
  transform: none;
}

.primary-button {
  background: var(--accent);
  color: #ffffff;
}

.primary-button:hover {
  background: var(--accent-strong);
}

.ghost-button,
.artist-image-shell {
  background: var(--chip);
}

.ghost-button {
  background: #ffffff;
  border-color: var(--panel-border);
}

.summary-grid {
  justify-content: space-between;
  flex-wrap: wrap;
}

.summary-grid article {
  min-width: 140px;
}

.summary-grid strong {
  display: block;
  margin-top: 6px;
  font-size: 1.9rem;
}

.status-message {
  margin: 14px 0 0;
  line-height: 1.5;
}

.results-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
  margin-top: 18px;
}

.artist-card {
  overflow: hidden;
  border-radius: 18px;
  background: #ffffff;
  border: 1px solid var(--panel-border);
}

.artist-image-shell {
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  overflow: hidden;
}

.artist-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.artist-image-fallback {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  font-size: 3rem;
  font-weight: 700;
  color: var(--accent);
}

.artist-body {
  padding: 18px 20px 20px;
}

.artist-name {
  font-size: 1.1rem;
  line-height: 1.35;
}

.artist-meta,
.artist-genres {
  margin: 8px 0 0;
  line-height: 1.45;
}

.artist-footer {
  margin-top: 18px;
}

.concert-meta-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.artist-link {
  color: var(--accent);
  font-weight: 600;
  text-decoration: none;
}

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

.empty-state {
  margin: 0;
  padding: 18px;
  border-radius: 18px;
  background: #f9fafb;
  border: 1px solid var(--panel-border);
  color: var(--muted);
}

.site-footer {
  margin-top: 28px;
  padding: 24px 4px 0;
  border-top: 1px solid var(--panel-border);
  color: var(--muted);
  font-size: 0.92rem;
  text-align: center;
}

.site-footer-line {
  margin: 0;
  line-height: 1.6;
}

.site-footer-line + .site-footer-line {
  margin-top: 2px;
}

@media (max-width: 700px) {
  .app-shell {
    width: min(100% - 20px, 980px);
    padding-top: 20px;
  }

  .panel {
    padding: 18px;
    border-radius: 18px;
  }

  .auth-row,
  .actions,
  .summary-grid,
  .results-header,
  .artist-footer,
  .concert-meta-row {
    flex-direction: column;
    align-items: stretch;
  }

  .small-field {
    max-width: none;
  }
}
