/* ═══════════════════════════════════════════════════════════════════
   AURALIS · Analytics stats + top-played (Task CC)
   ═══════════════════════════════════════════════════════════════════ */

.an-stats { display: flex; flex-direction: column; gap: 18px; }

.an-section { }
.an-section-title {
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: hsl(38 70% 50%);
  margin: 0 0 8px 0;
}
[data-theme="dark"] .an-section-title { color: hsl(38 80% 70%); }

.an-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 6px 0;
  border-bottom: 1px solid hsl(220 15% 90%);
}
[data-theme="dark"] .an-row {
  border-bottom-color: hsl(220 20% 14%);
}
.an-row:last-child { border-bottom: none; }
.an-row-label {
  font-size: 13.5px;
  color: var(--text-muted);
}
.an-row-value {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
}

/* ═══ TOP PLAYED BAR CHART ═══ */
.an-top { display: flex; flex-direction: column; gap: 10px; }

.an-bar-row {
  display: grid;
  grid-template-columns: 24px 1fr auto;
  grid-template-rows: auto auto;
  gap: 2px 10px;
  align-items: center;
}
.an-bar-rank {
  grid-row: 1 / 3;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 800;
  color: var(--text-faint);
  text-align: center;
}
.an-bar-name {
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.an-bar-val {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
  white-space: nowrap;
  grid-row: 1;
}
.an-bar-track {
  grid-column: 2 / 4;
  height: 6px;
  border-radius: var(--radius-pill);
  overflow: hidden;
}
[data-theme="light"] .an-bar-track,
:root:not([data-theme]) .an-bar-track { background: var(--surface-2); }
[data-theme="dark"] .an-bar-track { background: hsl(220 25% 12%); }

.an-bar-fill {
  height: 100%;
  border-radius: var(--radius-pill);
  background: linear-gradient(90deg, hsl(var(--hue3) 70% 55%), hsl(var(--hue1) 70% 65%));
  min-width: 4%;
  transition: width 0.4s var(--ease);
}
