:root {
  --page: #eef3f8;
  --panel: #ffffff;
  --text: #0b1320;
  --muted: #637789;
  --line: #dce5ed;
  --accent: #0f766e;
  --accent-2: #2563eb;
  --warn: #f59e0b;
  --shadow: 0 18px 40px rgba(15, 23, 42, .11);
}

html[data-bc-theme="dark"] {
  --page: #061b1f;
  --panel: #102a31;
  --text: #f8fafc;
  --muted: #b7c9d3;
  --line: rgba(226, 232, 240, .18);
  --accent: #67e8f9;
  --accent-2: #93c5fd;
  --shadow: 0 18px 44px rgba(0, 0, 0, .25);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--page);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

a {
  color: inherit;
}

.artist-shell {
  width: min(1440px, calc(100% - 36px));
  margin: 0 auto;
  padding: 26px 0 54px;
}

.artist-hero,
.artist-page-section,
.artist-index-head {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.artist-hero {
  display: grid;
  grid-template-columns: 170px minmax(0, 1fr) auto;
  gap: 22px;
  align-items: center;
  padding: 22px;
}

.artist-hero[aria-busy="true"],
.artist-directory-grid.is-loading {
  opacity: .72;
}

.artist-photo {
  width: 170px;
  aspect-ratio: 1;
  border-radius: 8px;
  overflow: hidden;
  background: linear-gradient(135deg, #102a43, #0f766e 55%, #f59e0b);
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 3.2rem;
  font-weight: 900;
}

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

.artist-kicker {
  margin: 0 0 8px;
  color: var(--accent);
  font-size: .82rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .06em;
}

.artist-hero h1,
.artist-index-head h1 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 4rem);
  line-height: 1;
  letter-spacing: 0;
}

.artist-hero-copy p:not(.artist-kicker),
.artist-index-head p:not(.artist-kicker) {
  max-width: 880px;
  color: var(--muted);
  line-height: 1.6;
}

.artist-hero-actions,
.artist-stat-row,
.artist-section-head,
.artist-booking-line {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}

.artist-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 16px;
  border-radius: 8px;
  border: 1px solid #1ed760;
  background: #1ed760;
  color: #061b1f;
  text-decoration: none;
  font-weight: 800;
}

.artist-button:visited {
  color: #061b1f;
}

.artist-button:hover,
.artist-button:focus-visible {
  border-color: #1fdf64;
  background: #1fdf64;
  color: #061b1f;
  outline: none;
}

.artist-button.secondary {
  background: #eff6ff;
  color: var(--accent-2);
  border: 1px solid #bfdbfe;
}

.artist-button.secondary:visited {
  color: var(--accent-2);
}

html[data-bc-theme="dark"] .artist-button.secondary {
  background: rgba(147, 197, 253, .14);
  border-color: rgba(147, 197, 253, .32);
  color: #dbeafe;
}

html[data-bc-theme="dark"] .artist-button.secondary:visited {
  color: #dbeafe;
}

.artist-stat-row {
  align-self: stretch;
  justify-content: center;
  min-width: 180px;
}

.artist-stat-row span {
  display: grid;
  min-width: 82px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--muted);
  text-align: center;
}

.artist-stat-row strong {
  color: var(--text);
  font-size: 1.4rem;
}

.artist-page-section,
.artist-index-head {
  margin-top: 24px;
  padding: 22px;
}

.artist-directory-search {
  display: flex;
  align-items: center;
  gap: 10px;
  width: min(100%, 620px);
  margin-top: 18px;
}

.artist-directory-search label {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

.artist-directory-search input {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: #0b1320;
  padding: 0 14px;
  font: inherit;
  font-weight: 700;
}

.artist-directory-search input:focus {
  border-color: var(--accent);
  outline: 3px solid rgba(15, 118, 110, .18);
}

.artist-directory-search span {
  flex: 0 0 auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--muted);
  padding: 11px 12px;
  font-weight: 800;
}

html[data-bc-theme="dark"] .artist-directory-search input {
  background: rgba(2, 6, 23, .44);
  color: var(--text);
}

html[data-bc-theme="dark"] .artist-directory-search input::placeholder {
  color: rgba(248, 250, 252, .62);
}

.artist-section-head {
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  padding-bottom: 14px;
  margin-bottom: 18px;
}

.artist-section-head h2 {
  margin: 0;
  font-size: 1.45rem;
}

.artist-section-head span {
  min-width: 38px;
  min-height: 32px;
  display: inline-grid;
  place-items: center;
  border-radius: 8px;
  background: #fff7ed;
  color: #9a3412;
  font-weight: 900;
}

.artist-booking-list {
  display: grid;
  gap: 10px;
}

.artist-booking-row,
.artist-directory-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  overflow: hidden;
}

html[data-bc-theme="dark"] .artist-booking-row,
html[data-bc-theme="dark"] .artist-directory-card {
  background: #0d252d;
}

.artist-booking-row {
  display: grid;
  grid-template-columns: 68px minmax(0, 1fr) minmax(170px, .65fr);
  align-items: center;
  gap: 14px;
  min-height: 86px;
  padding: 10px 12px;
}

.artist-booking-row[hidden] {
  display: none !important;
}

.artist-booking-mark {
  width: 68px;
  height: 68px;
  border-radius: 8px;
  background: linear-gradient(135deg, #0f172a, #0f766e, #f59e0b);
  display: grid;
  place-items: center;
  overflow: hidden;
}

.artist-booking-mark.is-logo {
  --artist-event-logo-bg: #061b1f;
  padding: 9px;
  background:
    radial-gradient(circle at 20% 20%, rgba(103, 232, 249, .16), transparent 34%),
    linear-gradient(135deg, var(--artist-event-logo-bg), #102a31);
}

.artist-booking-mark img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.artist-booking-mark.is-logo img {
  object-fit: contain;
  filter: drop-shadow(0 8px 12px rgba(0, 0, 0, .28));
}

.artist-booking-main {
  display: grid;
  grid-template-columns: minmax(150px, .72fr) minmax(180px, 1fr);
  gap: 14px;
  align-items: center;
}

.artist-booking-event h3 {
  margin: 0 0 5px;
  font-size: 1.05rem;
}

.artist-booking-event h3 a {
  color: var(--accent);
  text-decoration: none;
}

.artist-booking-set strong,
.artist-directory-card strong {
  color: var(--text);
}

.artist-booking-meta,
.artist-booking-place,
.artist-booking-set span,
.artist-empty,
.artist-directory-card small {
  color: var(--muted);
}

html[data-bc-theme="dark"] .artist-booking-event h3 a {
  color: var(--accent);
}

html[data-bc-theme="dark"] .artist-booking-set strong,
html[data-bc-theme="dark"] .artist-directory-card strong {
  color: var(--text);
}

html[data-bc-theme="dark"] .artist-booking-meta,
html[data-bc-theme="dark"] .artist-booking-place,
html[data-bc-theme="dark"] .artist-booking-set span,
html[data-bc-theme="dark"] .artist-empty,
html[data-bc-theme="dark"] .artist-directory-card small {
  color: var(--muted);
}

.artist-booking-meta,
.artist-booking-place {
  margin: 0;
}

.artist-booking-set {
  display: grid;
  gap: 4px;
}

.artist-booking-toggle {
  justify-self: end;
  margin-top: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, .9);
  color: var(--text);
  min-height: 38px;
  padding: 0 14px;
  font: inherit;
  font-weight: 850;
  cursor: pointer;
}

html[data-bc-theme="dark"] .artist-booking-toggle {
  background: rgba(2, 6, 23, .42);
}

.artist-booking-toggle:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.artist-directory-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 14px;
  margin-top: 20px;
}

.artist-directory-card {
  display: grid;
  gap: 9px;
  padding: 14px;
  color: var(--text);
  text-decoration: none;
}

.artist-directory-card[hidden],
.artist-directory-empty[hidden] {
  display: none !important;
}

.artist-directory-empty {
  grid-column: 1 / -1;
  margin: 0;
}

.artist-directory-card img,
.artist-directory-card > span {
  width: 72px;
  height: 72px;
  border-radius: 8px;
  object-fit: cover;
  background: #dbeafe;
  display: grid;
  place-items: center;
  color: var(--accent-2);
  font-size: 1.8rem;
  font-weight: 900;
}

@media (max-width: 820px) {
  .artist-shell {
    width: min(100% - 22px, 720px);
    padding-top: 18px;
  }

  .artist-hero {
    grid-template-columns: 104px minmax(0, 1fr);
    gap: 16px;
  }

  .artist-photo {
    width: 104px;
  }

  .artist-stat-row {
    grid-column: 1 / -1;
    justify-content: flex-start;
  }

  .artist-directory-search {
    align-items: stretch;
    flex-direction: column;
  }

  .artist-booking-row {
    grid-template-columns: 56px minmax(0, 1fr);
    align-items: start;
    gap: 12px;
  }

  .artist-booking-mark {
    width: 56px;
    height: 56px;
  }

  .artist-booking-main {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .artist-booking-place {
    grid-column: 2;
  }
}

@media (max-width: 520px) {
  .artist-hero {
    grid-template-columns: 1fr;
  }

  .artist-photo {
    width: 100%;
    max-width: 190px;
  }
}
