:root {
  --bg: #0a0d18;
  --bg-soft: #12172a;
  --panel: rgba(18, 23, 42, 0.88);
  --panel-soft: rgba(27, 33, 58, 0.92);
  --panel-strong: rgba(36, 44, 78, 0.95);
  --border: rgba(129, 144, 255, 0.18);
  --border-strong: rgba(148, 163, 255, 0.28);
  --accent: #8b7bff;
  --accent-soft: rgba(139, 123, 255, 0.18);
  --text: #f6f7ff;
  --muted: #adb4d8;
  --ok: #27ae60;
  --warn: #f39c12;
  --danger: #ff6b6b;
  --info: #6ea8ff;
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.28);
}

* { box-sizing: border-box; }

html {
  color-scheme: dark;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  background:
    radial-gradient(circle at top, rgba(104, 86, 255, 0.24) 0%, rgba(10, 13, 24, 0) 32%),
    linear-gradient(180deg, #101526 0%, var(--bg) 56%);
  color: var(--text);
  min-height: 100vh;
}

.container {
  max-width: 960px;
  margin: 0 auto;
  padding: 32px 20px 48px;
}

.container-wide {
  max-width: 1280px;
}

.card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 22px;
  padding: 22px;
  margin-bottom: 16px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.toast {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 50;
  max-width: min(92vw, 320px);
  border-radius: 14px;
  padding: 12px 14px;
  color: #fff;
  background: rgba(17, 24, 39, 0.94);
  border: 1px solid rgba(148, 163, 255, 0.24);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.28);
  font-size: 0.92rem;
  line-height: 1.45;
}

.toast.success {
  background: rgba(14, 116, 52, 0.94);
  border-color: rgba(74, 222, 128, 0.32);
}

.toast.error {
  background: rgba(127, 29, 29, 0.95);
  border-color: rgba(252, 165, 165, 0.28);
}


.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
}

h1, h2, h3 { margin: 0 0 12px 0; }

h1 {
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1.02;
}

h2 {
  font-size: 1.35rem;
}

h3 {
  font-size: 1rem;
}

p {
  margin: 0;
  color: var(--muted);
}

.artist-page .container {
  padding-top: 40px;
}

.hero-card {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 18px;
  padding: 28px;
}

.hero-identity {
  display: flex;
  align-items: center;
  gap: 16px;
  min-width: 0;
}

.hero-copy {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}

.hero-subline {
  font-size: 1rem;
}

.hero-actions {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.hero-card-settings {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
}

.artist-avatar {
  width: 68px;
  height: 68px;
  min-width: 68px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(139, 123, 255, 0.9), rgba(96, 165, 250, 0.85));
  color: #fff;
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.24);
}

.artist-avatar.has-image {
  background: #000;
  font-size: 0;
}

.artist-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 24%;
  transform: scale(1.12);
  transform-origin: center;
  background: #000;
  display: block;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.74rem;
  color: #c6cdf8;
  margin-bottom: 2px;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 16px;
}

.stat-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 142px;
}

.stat-label {
  color: #d6dbfb;
  font-size: 0.86rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.stat-value {
  font-size: clamp(2rem, 4vw, 2.8rem);
  line-height: 1;
  letter-spacing: -0.03em;
}

.stat-copy,
.next-event-copy {
  color: var(--muted);
  line-height: 1.45;
}

.stats-grid-dashboard .stat-copy {
  display: none;
}

.stats-grid-dashboard {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.stat-card-highlight {
  background: linear-gradient(180deg, rgba(139, 123, 255, 0.24), rgba(96, 165, 250, 0.08));
  border-color: rgba(139, 123, 255, 0.34);
}

.stat-card-emotional {
  min-height: 142px;
  justify-content: space-between;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.02));
}

.availability-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 16px 20px;
}

.availability-state {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.availability-label {
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #cfd5fa;
}

.availability-copy {
  flex: 1;
  color: var(--muted);
  line-height: 1.45;
  margin: 0;
}

.btn-compact {
  min-height: 40px;
  padding: 10px 14px;
}

.section-card {
  padding: 24px;
}


.stats-grid-compact {
  margin-bottom: 16px;
}

.spotlight-card {
  padding: 26px;
}

.spotlight-card.is-empty {
  opacity: 0.9;
}

.spotlight-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 18px;
}

.spotlight-layout {
  display: grid;
  grid-template-columns: 140px minmax(0, 1fr);
  gap: 18px;
  align-items: stretch;
}

.spotlight-date {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  border-radius: 20px;
  min-height: 170px;
  background: linear-gradient(180deg, rgba(139, 123, 255, 0.22), rgba(96, 165, 250, 0.12));
  border: 1px solid rgba(139, 123, 255, 0.26);
  text-align: center;
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.spotlight-date.has-visual {
  background: linear-gradient(180deg, rgba(6, 8, 18, 0.16), rgba(6, 8, 18, 0.62)), var(--event-visual) center / cover no-repeat;
}

.spotlight-date.has-visual::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(17, 24, 39, 0.04), rgba(17, 24, 39, 0.42));
  z-index: -1;
}

.spotlight-date strong {
  font-size: 3.2rem;
  line-height: 1;
  letter-spacing: -0.05em;
}

.spotlight-date span {
  margin-top: 8px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #d7dcff;
  font-size: 0.8rem;
}

.spotlight-body {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.spotlight-title {
  margin: 0;
  font-size: clamp(1.5rem, 3vw, 2.3rem);
}

.spotlight-meta {
  font-size: 1rem;
  line-height: 1.5;
}

.spotlight-facts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.spotlight-fact {
  border: 1px solid var(--border);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.03);
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.spotlight-fact-label {
  color: var(--muted);
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.spotlight-fact strong {
  font-size: 1rem;
  line-height: 1.35;
}

.spotlight-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.spotlight-helper {
  color: var(--muted);
  line-height: 1.45;
}

.section-main {
  min-height: 100%;
}

.section-main-wide {
  width: 100%;
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 18px;
}

.section-head.compact {
  margin-bottom: 14px;
}

.section-copy {
  max-width: 580px;
  line-height: 1.45;
}

.section-summary {
  color: #d9def9;
  font-size: 0.93rem;
  margin-bottom: 16px;
}

.section-head-wide {
  margin-bottom: 14px;
}

.section-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.section-toolbar-hint {
  color: var(--muted);
  font-size: 0.88rem;
  text-align: right;
}

.events-scroll-board {
  max-height: 72vh;
  overflow-y: auto;
  padding-right: 8px;
}

.events-scroll-board::-webkit-scrollbar {
  width: 10px;
}

.events-scroll-board::-webkit-scrollbar-thumb {
  background: rgba(139, 123, 255, 0.28);
  border-radius: 999px;
}

.filter-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.filter-btn {
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  border-radius: 999px;
  padding: 10px 14px;
  font-size: 0.93rem;
  font-weight: 600;
  cursor: pointer;
  transition: 160ms ease;
}

.filter-btn:hover {
  border-color: var(--border-strong);
  background: rgba(255, 255, 255, 0.06);
}

.filter-btn.is-active {
  background: linear-gradient(135deg, rgba(139, 123, 255, 0.3), rgba(96, 165, 250, 0.2));
  border-color: rgba(139, 123, 255, 0.44);
}

.event-section-stack {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.event-group {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.event-group-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.event-group-head h3 {
  margin: 0;
}

.event-group-head span {
  color: var(--muted);
  font-size: 0.9rem;
}

.event-card-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.event-card.is-clickable,
.spotlight-card.is-clickable {
  cursor: pointer;
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.event-card.is-clickable:hover,
.spotlight-card.is-clickable:hover {
  transform: translateY(-2px);
  border-color: rgba(139, 123, 255, 0.34);
  box-shadow: 0 24px 56px rgba(0, 0, 0, 0.32);
}

.event-card.is-clickable:focus-visible,
.spotlight-card.is-clickable:focus-visible {
  outline: 2px solid rgba(139, 123, 255, 0.72);
  outline-offset: 2px;
}


.event-card {
  border: 1px solid var(--border);
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.025), rgba(255, 255, 255, 0.015));
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr);
  gap: 16px;
  padding: 16px;
}

.event-date-badge {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(139, 123, 255, 0.18), rgba(96, 165, 250, 0.1));
  border: 1px solid rgba(139, 123, 255, 0.2);
  min-height: 110px;
  text-align: center;
  padding: 10px;
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.event-date-badge.has-visual {
  background: linear-gradient(180deg, rgba(6, 8, 18, 0.18), rgba(6, 8, 18, 0.7)), var(--event-visual) center / cover no-repeat;
}

.event-date-badge.has-visual::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(17, 24, 39, 0.06), rgba(17, 24, 39, 0.35));
  z-index: -1;
}

.event-date-badge strong {
  font-size: 2rem;
  line-height: 1;
  letter-spacing: -0.04em;
}

.event-date-badge span {
  margin-top: 6px;
  color: #d7dcff;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.78rem;
}

.event-card-body {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.event-card-top,
.event-card-footer,
.hub-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}

.event-card-title,
.hub-card-title {
  margin: 0 0 6px 0;
  font-size: 1.08rem;
}

.event-card-meta,
.hub-card-meta {
  color: var(--muted);
  line-height: 1.45;
}

.event-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.soft-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 999px;
  padding: 7px 10px;
  font-size: 0.82rem;
  color: #eef1ff;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.05);
}

.soft-chip.muted {
  color: var(--muted);
  background: rgba(255, 255, 255, 0.03);
}

.soft-chip.ok {
  border-color: rgba(39, 174, 96, 0.35);
  background: rgba(39, 174, 96, 0.16);
  color: #b6f4cc;
}

.event-helper {
  color: var(--muted);
  line-height: 1.45;
  font-size: 0.92rem;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 999px;
  padding: 7px 12px;
  font-size: 0.8rem;
  font-weight: 700;
  white-space: nowrap;
}

.badge.ok { background: rgba(39, 174, 96, 0.2); color: #8be7b1; }
.badge.warn { background: rgba(243, 156, 18, 0.2); color: #ffd48d; }
.badge.danger { background: rgba(255, 107, 107, 0.2); color: #ffb1b1; }
.badge.info { background: rgba(110, 168, 255, 0.18); color: #bcd6ff; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  background: linear-gradient(135deg, #8b7bff, #6ea8ff);
  color: white;
  border: 0;
  border-radius: 12px;
  padding: 11px 16px;
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  text-decoration: none;
}

.btn.secondary {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border);
}

.form-row {
  display: flex;
  gap: 10px;
}

input[type="email"],
input[type="date"] {
  width: 100%;
  border-radius: 12px;
  border: 1px solid var(--border-strong);
  background: var(--panel-soft);
  color: var(--text);
  padding: 12px;
}

input[type="checkbox"] {
  width: 18px;
  height: 18px;
}

.msg { margin-top: 12px; font-size: 14px; }
.msg.ok { color: #8be7b1; }
.msg.err { color: #ffb1b1; }

.list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.list-item {
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.02);
  border-radius: 12px;
  padding: 10px 12px;
}

.list-item-title {
  font-weight: 600;
  margin-bottom: 4px;
}

.list-item-meta {
  color: var(--muted);
  font-size: 13px;
}

.list-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}

.link-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.92rem;
  color: #d2c9ff;
  text-decoration: none;
  font-weight: 600;
}

.link-btn:hover {
  color: #ece8ff;
}

.list-empty,
.empty-panel {
  color: var(--muted);
  border: 1px dashed rgba(148, 163, 255, 0.22);
  border-radius: 16px;
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.02);
}

.hint {
  margin-bottom: 14px;
}

.switch-row {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  margin-bottom: 12px;
}

.pause-date-row {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-width: 260px;
  margin-bottom: 12px;
}

.pause-date-row label {
  color: var(--muted);
  font-size: 13px;
}

.pause-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.is-hidden {
  display: none !important;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 14px;
}

.form-group label {
  font-size: 13px;
  color: var(--muted);
  font-weight: 600;
}

.label-hint {
  font-weight: 400;
  font-size: 12px;
}

input[type="text"],
input[type="tel"],
input[type="url"],
textarea {
  width: 100%;
  border-radius: 12px;
  border: 1px solid var(--border-strong);
  background: var(--panel-soft);
  color: var(--text);
  padding: 12px;
  font-family: inherit;
  font-size: 14px;
  resize: vertical;
}

.pref-group {
  margin-bottom: 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.insight-band-card {
  padding-bottom: 18px;
}

.insight-band {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 10px;
}

.insight-item {
  position: relative;
  padding: 12px 14px 12px 18px;
  color: #dbe1ff;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.03);
  line-height: 1.45;
}

.insight-item::before {
  content: '';
  position: absolute;
  left: 0;
  top: 12px;
  bottom: 12px;
  width: 3px;
  border-radius: 999px;
  background: linear-gradient(180deg, #8b7bff, #6ea8ff);
}

.insight-item-placeholder {
  color: var(--muted);
}

@media (max-width: 1100px) {
  .stats-grid,
  .stats-grid-dashboard {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .availability-bar {
    flex-direction: column;
    align-items: flex-start;
  }

  .spotlight-facts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .container {
    padding: 20px 14px 36px;
  }

  .hero-card,
  .hero-card-settings,
  .availability-bar,
  .section-head,
  .section-toolbar,
  .spotlight-head,
  .event-card-top,
  .event-card-footer,
  .spotlight-actions {
    flex-direction: column;
    align-items: flex-start;
  }

  .stats-grid,
  .stats-grid-dashboard {
    grid-template-columns: 1fr;
  }


  .spotlight-layout {
    grid-template-columns: 1fr;
  }

  .spotlight-date {
    min-height: auto;
    padding: 18px;
  }

  .spotlight-facts {
    grid-template-columns: 1fr;
  }

  .card,
  .section-card,
  .hero-card {
    padding: 18px;
    border-radius: 18px;
  }

  .form-row,
  .pause-actions {
    flex-direction: column;
  }

  .hero-identity {
    width: 100%;
  }

  .hero-actions,
  .filter-row {
    width: 100%;
    justify-content: flex-start;
  }

  .section-toolbar {
    flex-direction: column;
    align-items: flex-start;
  }

  .events-scroll-board {
    max-height: none;
    overflow: visible;
    padding-right: 0;
  }

  .hero-actions .btn,
  .filter-btn,
  .pause-actions .btn,
  .form-row .btn {
    width: 100%;
  }

  .event-card {
    grid-template-columns: 1fr;
  }

  .event-date-badge {
    min-height: auto;
    flex-direction: row;
    gap: 10px;
    justify-content: flex-start;
  }
}
