/* =============================================================================
   Artist Stats — Public Breakdown Page
   ============================================================================= */

.ast-page { min-height: 80vh; }

/* ── Hero ── */
.ast-hero {
  background: linear-gradient(135deg, #1a1a2e 0%, #2d1b3d 100%);
  padding: 48px 0 40px;
  color: #fff;
}
.ast-hero__inner {
  display: flex;
  align-items: center;
  gap: 28px;
}
.ast-hero__photo {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid rgba(255,255,255,.2);
  flex-shrink: 0;
}
.ast-hero__photo--placeholder {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: #e94560;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  font-weight: 800;
  flex-shrink: 0;
}
.ast-hero__name {
  font-size: 2rem;
  font-weight: 800;
  margin: 0 0 4px;
}
.ast-hero__sub {
  font-size: .875rem;
  color: rgba(255,255,255,.6);
  margin: 0 0 20px;
}
.ast-hero__totals {
  display: flex;
  gap: 32px;
}
.ast-hero__total {
  display: flex;
  flex-direction: column;
}
.ast-hero__total-value {
  font-size: 1.75rem;
  font-weight: 800;
  color: #fff;
  line-height: 1;
}
.ast-hero__total-label {
  font-size: .7rem;
  color: rgba(255,255,255,.55);
  margin-top: 4px;
  text-transform: uppercase;
  letter-spacing: .05em;
}

/* ── Body ── */
.ast-body {
  padding: 40px 0 60px;
}

.ast-empty {
  text-align: center;
  padding: 60px 20px;
  color: #aaa;
  font-size: 1rem;
}
.ast-empty i { font-size: 3rem; display: block; margin-bottom: 12px; }

/* ── Section ── */
.ast-section {
  background: #fff;
  border-radius: 16px;
  border: 1px solid #eee;
  padding: 28px;
  margin-bottom: 24px;
  box-shadow: 0 2px 12px rgba(0,0,0,.05);
}
.ast-section__title {
  font-size: 1rem;
  font-weight: 700;
  color: #1a1a2e;
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 24px;
}
.ast-section__total {
  margin-left: auto;
  font-size: .8rem;
  font-weight: 600;
  color: #888;
  background: #f5f5f5;
  padding: 3px 10px;
  border-radius: 99px;
}

/* ── Bar rows ── */
.ast-bars {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.ast-bar-row {
  display: grid;
  grid-template-columns: 180px 1fr 120px;
  align-items: center;
  gap: 12px;
}
.ast-bar-row__label {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}
.ast-bar-row__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}
.ast-bar-row__name {
  font-size: .85rem;
  font-weight: 600;
  color: #333;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ast-bar-row__source {
  font-size: .65rem;
  padding: 1px 6px;
  border-radius: 99px;
  flex-shrink: 0;
}
.ast-bar-row__source--api    { background: #e8f5e9; color: #2e7d32; }
.ast-bar-row__source--manual { background: #fff3e0; color: #e65100; }

.ast-bar-row__track {
  height: 10px;
  background: #f0f0f0;
  border-radius: 99px;
  overflow: hidden;
}
.ast-bar-row__fill {
  height: 100%;
  border-radius: 99px;
  width: 0%;
}

.ast-bar-row__right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}
.ast-bar-row__value {
  font-size: .875rem;
  font-weight: 700;
  color: #1a1a2e;
}
.ast-bar-row__share {
  font-size: .7rem;
  color: #aaa;
}

/* ── Donut chart ── */
.ast-section--chart .ast-donut-wrap {
  display: flex;
  align-items: center;
  gap: 32px;
  flex-wrap: wrap;
}
.ast-donut-legend {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.ast-legend-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: .8rem;
}
.ast-legend-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}
.ast-legend-name { flex: 1; color: #444; }
.ast-legend-val  { font-weight: 700; color: #1a1a2e; }

/* ── Synced note ── */
.ast-synced-note {
  text-align: center;
  font-size: .75rem;
  color: #bbb;
  margin-top: 8px;
}

/* ── Responsive ── */
@media (max-width: 768px) {
  .ast-hero__inner { flex-direction: column; text-align: center; }
  .ast-hero__totals { justify-content: center; }
  .ast-bar-row { grid-template-columns: 1fr; gap: 6px; }
  .ast-bar-row__right { flex-direction: row; gap: 8px; align-items: center; }
  .ast-section--chart .ast-donut-wrap { justify-content: center; }
}
