/* Analytics Hub (adr/five-star-analytics-hub.md) — shared chrome, tables,
   and widgets for /analytics, /analytics/wrestlers, /analytics/rankings.
   Built from the existing 5 Star Booker design tokens (--fs-* custom
   properties in five-star.css); no new color language. */

.an-page {
  background: var(--fs-black);
  color: var(--fs-white);
  min-height: 100vh;
  /* Chart color tokens (beauty pass 2026-07-24, plans/active/
     analytics-hub-beauty-pass.md). Validated with the dataviz palette
     validator against the panel surface #101014 (dark mode):
     - ordinal gold ramp (grade donuts, best grade brightest):
       monotone lightness, adjacent gaps >= 0.06, dark end 2.58:1.
     - loss red and the voting diverging poles clear 4.5:1 as text and
       CVD deltaE >= 8 against each other; sign/identity is always also
       carried by glyphs and labels, never color alone. */
  --an-ord-1: #FFEFB8;
  --an-ord-2: #F2D374;
  --an-ord-3: #C9982E;
  --an-ord-4: #A87E1F;
  --an-ord-5: #6E5113;
  /* Round 2 (2026-07-24): polarity moved to the validated fs tokens in
     five-star.css (--fs-rise/--fs-fall/--fs-info + -fill steps). --an-loss
     stays as the FALLING FILL step (#E4572E, same hex as --fs-fall-fill);
     falling/overrated TEXT now wears --fs-fall (#FF6B4A). */
  --an-loss: var(--fs-fall-fill, #E4572E); /* falling / overrated large fills */
  --an-under: var(--fs-info, #1B98DD);     /* voting "underrated" diverging pole */
  --an-anim-ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

.an-shell {
  max-width: 1080px;
  margin: 0 auto;
  padding: 16px 16px 48px;
  font-family: system-ui, -apple-system, sans-serif;
}

/* ---------- Topbar ---------- */
.an-topbar {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  padding: 10px 0 16px;
}
.an-brand {
  font-family: var(--fs-display-font);
  font-size: 1rem;
  color: var(--fs-gold-1);
  text-decoration: none;
  letter-spacing: 0.02em;
}
.an-brand:hover { text-decoration: underline; }
.an-brand-sub {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--fs-white-faint);
  border: 1px solid var(--fs-line);
  border-radius: 4px;
  padding: 2px 8px;
}
.an-back {
  margin-left: auto;
  color: var(--fs-white-dim);
  font-size: 0.8rem;
  text-decoration: none;
}
.an-back:hover { color: var(--fs-white); text-decoration: underline; }

/* ---------- Tab bar (same visual language as .dlb-tabs) ---------- */
.an-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 20px;
  border-bottom: 1px solid var(--fs-line);
  padding-bottom: 10px;
}
.an-tab {
  padding: 8px 14px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  font-size: 0.8rem;
  font-family: var(--fs-display-font);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background: var(--fs-black-3);
  color: var(--fs-white-dim);
  border: 1px solid var(--fs-line);
  border-radius: 6px;
  text-decoration: none;
  transition: background 0.15s, color 0.15s;
}
.an-tab:hover { background: var(--fs-black-4); color: var(--fs-white); }
.an-tab--on {
  background: var(--fs-gold-2);
  color: var(--fs-ink-on-gold);
  border-color: var(--fs-gold-2);
}

.an-content h1 {
  font-family: var(--fs-display-font);
  font-size: 1.4rem;
  color: var(--fs-gold-1);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  margin: 0 0 6px;
}
.an-sub {
  color: var(--fs-white-dim);
  font-size: 0.85rem;
  margin: 0 0 20px;
}

/* ---------- Hero counters ---------- */
.an-hero-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-bottom: 24px;
}
.an-hero-card {
  /* Stat plaque: gold strip top rule + a soft gold sheen behind the number
     so the plaque reads as a lit broadcast graphic, not a form field. */
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(140px 70px at 50% 0%, var(--fs-gold-soft), transparent 75%),
    var(--fs-black-2);
  border: 1px solid var(--fs-line);
  border-radius: 8px;
  padding: 16px 12px 14px;
  text-align: center;
}
.an-hero-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--fs-strip);
}
.an-hero-value {
  font-family: var(--fs-display-font);
  font-size: clamp(1.5rem, 3.2vw, 2rem);
  color: var(--fs-gold-hi);
  line-height: 1.1;
}
.an-hero-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--fs-white-faint);
  margin-top: 4px;
}
@media (max-width: 640px) {
  .an-hero-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ---------- Today's hot stats ---------- */
.an-hot-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 10px;
  margin-bottom: 28px;
}
.an-hot-card {
  background: var(--fs-black-2);
  border: 1px solid var(--fs-line);
  border-left: 3px solid var(--fs-gold-3);
  border-radius: 8px;
  padding: 12px 14px;
}
.an-hot-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--fs-white-faint);
  margin: 0 0 6px;
}
.an-hot-value {
  font-weight: 700;
  color: var(--fs-white);
  font-size: 0.95rem;
}
.an-hot-meta {
  color: var(--fs-white-dim);
  font-size: 0.78rem;
  margin-top: 2px;
}
.an-hot-empty { color: var(--fs-white-faint); font-style: normal; }

/* ---------- Quick link cards ---------- */
.an-quicklinks {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
}
.an-quick-card {
  display: block;
  background: var(--fs-black-2);
  border: 1px solid var(--fs-line);
  border-radius: 8px;
  padding: 16px;
  text-decoration: none;
  color: var(--fs-white);
  transition: border-color 0.15s, transform 0.15s;
}
.an-quick-card:hover {
  border-color: var(--fs-gold-2);
  transform: translateY(-1px);
}
.an-quick-title {
  font-family: var(--fs-display-font);
  color: var(--fs-gold-1);
  font-size: 0.95rem;
  text-transform: uppercase;
  margin-bottom: 6px;
}
.an-quick-hook { color: var(--fs-white-dim); font-size: 0.82rem; }
.an-quick-soon { color: var(--fs-white-faint); font-size: 0.72rem; margin-top: 8px; text-transform: uppercase; letter-spacing: .06em; }

/* ---------- Filter bar ---------- */
.an-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-bottom: 14px;
}
.an-filters select,
.an-filters input {
  min-height: 44px;
}
.an-filters .fs-search { min-width: 180px; }
.an-filter-check {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--fs-white-dim);
  font-size: 0.82rem;
  min-height: 44px;
}
.an-sort-note {
  color: var(--fs-white-faint);
  font-size: 0.78rem;
  margin: -6px 0 14px;
}

/* ---------- Data table (extends the .fs-search / dark-panel language into
   a real sortable, zebra-striped, sticky-header table) ---------- */
.an-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--fs-line);
  border-radius: 8px;
  -webkit-overflow-scrolling: touch;
}
table.an-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
  min-width: 640px;
}
.an-table thead th {
  position: sticky;
  top: 0;
  z-index: 2;
  background: var(--fs-black-3);
  color: var(--fs-white-faint);
  text-transform: uppercase;
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  text-align: left;
  padding: 13px 12px;
  border-bottom: 1px solid var(--fs-line);
  white-space: nowrap;
}
.an-table th.an-sortable {
  cursor: pointer;
  user-select: none;
  min-height: 44px;
}
.an-table th.an-sortable:hover { color: var(--fs-white); }
.an-table th.an-sortable::after {
  content: '';
  display: inline-block;
  width: 0; height: 0;
  margin-left: 5px;
  vertical-align: middle;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  opacity: 0.35;
}
.an-table th.an-sort-desc::after {
  border-top: 5px solid var(--fs-gold-1);
  opacity: 1;
}
.an-table th.an-sort-asc::after {
  border-bottom: 5px solid var(--fs-gold-1);
  opacity: 1;
}
.an-table tbody td {
  padding: 9px 12px;
  border-bottom: 1px solid var(--fs-line-soft);
  color: var(--fs-white);
  vertical-align: middle;
}
.an-table tbody tr:nth-child(even) { background: rgba(255, 255, 255, 0.02); }
.an-table tbody tr:hover { background: var(--fs-black-4); }
a.an-row-link {
  /* Was plain white: identical to surrounding body text, so nothing on the
     page read as a link. Gold is the existing brand link/emphasis color
     (an-brand, sort arrows, sparkline stroke) - reuse it so every wrestler
     name pops as clickable against the black background instead of only
     revealing itself on hover. Deliberately NOT scoped to .an-table: the
     Analytics Hub visual redesign (2026-07-23) reuses this same class for
     wrestler-profile links inside bar-chart rows (Records, Biggest Movers),
     outside any table, and those need the identical gold treatment instead
     of falling back to default blue/underlined browser links. */
  color: var(--fs-gold-1);
  text-decoration: none;
  font-weight: 600;
}
a.an-row-link:hover { text-decoration: underline; }
/* Whole-row tap targets (2026-07 fresh-eyes S2, AC.rowTap): the name link
   alone was a 15-20px target on phones. The row itself now navigates; the
   link stays the keyboard/AT target. Hover matches the existing
   .an-table tbody tr:hover tint so tables and non-table rows read the same.
   On touch layouts, table rows grow to a >=44px hit area. */
.an-row-tap { cursor: pointer; }
.an-row-tap:hover,
.an-row-tap:focus-within { background: var(--fs-black-4); }
@media (pointer: coarse), (max-width: 640px) {
  .an-table tbody tr.an-row-tap > td {
    padding-top: 14px;
    padding-bottom: 14px;
  }
}
.an-table .an-num { text-align: right; font-variant-numeric: tabular-nums; }
.an-table .an-muted { color: var(--fs-white-faint); }

/* Sparkline cell */
.an-spark { display: inline-block; vertical-align: middle; }
.an-spark-empty { color: var(--fs-white-faint); font-size: 0.75rem; }

/* Pagination */
.an-pagination {
  display: flex;
  align-items: center;
  gap: 10px;
  justify-content: center;
  margin-top: 14px;
  font-size: 0.82rem;
  color: var(--fs-white-dim);
}
.an-pagination button {
  min-height: 44px;
  min-width: 44px;
  background: var(--fs-black-3);
  color: var(--fs-white);
  border: 1px solid var(--fs-line);
  border-radius: 6px;
  cursor: pointer;
}
.an-pagination button:hover:not(:disabled) { background: var(--fs-black-4); }
.an-pagination button:disabled { opacity: 0.4; cursor: default; }

/* Skeleton loading (not a blank flash) */
.an-skel-row { display: flex; gap: 10px; padding: 9px 12px; }
.an-skel-block {
  height: 14px;
  border-radius: 4px;
  background: linear-gradient(90deg, var(--fs-black-3) 25%, var(--fs-black-4) 37%, var(--fs-black-3) 63%);
  background-size: 400% 100%;
  animation: an-skel-shimmer 1.4s ease infinite;
}
@keyframes an-skel-shimmer {
  0% { background-position: 100% 50%; }
  100% { background-position: 0 50%; }
}

.an-empty {
  text-align: center;
  padding: 40px 16px;
  color: var(--fs-white-dim);
}
/* Branded empty state: a dimmed outline star (the brand mark) above the
   fan-voice line, so "no data yet" is a moment, not a shrug. */
.an-empty::before {
  content: "\2606";
  display: block;
  font-size: 1.9rem;
  line-height: 1;
  color: var(--fs-gold-3);
  opacity: 0.8;
  margin-bottom: 8px;
}

/* Caveat / tooltip note (cross-promotion disclosure, etc.) */
.an-caveat {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  color: var(--fs-white-faint);
  border: 1px solid var(--fs-line);
  border-radius: 6px;
  padding: 6px 10px;
  margin-bottom: 12px;
}
.an-caveat-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px; height: 16px;
  border-radius: 50%;
  border: 1px solid var(--fs-white-faint);
  font-size: 0.65rem;
  flex: none;
}

/* Rankings controls */
.an-ranking-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-bottom: 10px;
}
.an-date-slider-wrap {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
  min-width: 220px;
}
.an-date-slider-wrap input[type="range"] { width: 100%; min-height: 32px; }
.an-date-readout { font-size: 0.8rem; color: var(--fs-gold-1); }

@media (max-width: 480px) {
  .an-shell { padding: 12px 10px 32px; }
  .an-hero-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ---------- Section headers (reused across Matchup Lab / Booker Stats /
   Voting for "Discovery", "Grade distribution", etc. sub-headings) ---------- */
.an-section-title {
  font-family: var(--fs-display-font);
  font-size: 1rem;
  color: var(--fs-white);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin: 24px 0 10px;
}
.an-section-title:first-child { margin-top: 0; }

/* ---------- Matchup Lab: search boxes + typeahead ---------- */
.an-matchup-search {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}
.an-matchup-box { position: relative; flex: 1; min-width: 200px; }
.an-matchup-box .fs-search { width: 100%; }
.an-matchup-vs {
  font-family: var(--fs-display-font);
  color: var(--fs-gold-1);
  font-size: 0.9rem;
  padding: 10px 4px;
  flex: none;
}
.an-suggest {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  z-index: 5;
  background: var(--fs-black-2);
  border: 1px solid var(--fs-line);
  border-radius: 8px;
  overflow: hidden;
  max-height: 260px;
  overflow-y: auto;
}
.an-suggest-item {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  width: 100%;
  min-height: 44px;
  padding: 8px 12px;
  background: none;
  border: none;
  border-bottom: 1px solid var(--fs-line-soft);
  color: var(--fs-white);
  text-align: left;
  cursor: pointer;
  font-size: 0.85rem;
}
.an-suggest-item:last-child { border-bottom: none; }
.an-suggest-item:hover, .an-suggest-item:focus-visible { background: var(--fs-black-4); }
.an-suggest-item .an-muted { flex: none; }

/* ---------- Matchup Lab: result cards ---------- */
.an-matchup-cards {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 12px;
  align-items: center;
  margin: 16px 0;
}
.an-matchup-card {
  background: var(--fs-black-2);
  border: 1px solid var(--fs-line);
  border-radius: 8px;
  padding: 14px;
  text-align: center;
}
.an-matchup-card-name {
  font-family: var(--fs-display-font);
  color: var(--fs-gold-1);
  font-size: 1rem;
  margin-bottom: 6px;
}
.an-matchup-card-stat { color: var(--fs-white-dim); font-size: 0.78rem; }
.an-matchup-vs-badge {
  font-family: var(--fs-display-font);
  color: var(--fs-white-faint);
  font-size: 0.8rem;
}

.an-freq-banner {
  background: var(--fs-black-2);
  border: 1px solid var(--fs-line);
  border-left: 3px solid var(--fs-gold-3);
  border-radius: 8px;
  padding: 14px 16px;
  margin-bottom: 16px;
}
.an-freq-count {
  font-family: var(--fs-display-font);
  font-size: 1.3rem;
  color: var(--fs-gold-hi);
}
.an-freq-tag {
  display: inline-block;
  margin-left: 8px;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--fs-white-faint);
  border: 1px solid var(--fs-line);
  border-radius: 4px;
  padding: 2px 8px;
  vertical-align: middle;
}
.an-freq-note { color: var(--fs-white-dim); font-size: 0.78rem; margin-top: 6px; }

/* Win split meter (stacked bar, not a full pie -- same "no external library"
   constraint, simpler and just as legible for a two-way split). */
.an-meter { display: flex; gap: 2px; height: 10px; border-radius: 5px; overflow: hidden; background: var(--fs-black-4); margin: 10px 0 6px; }
.an-meter-seg-a { background: var(--fs-gold-2); }
.an-meter-seg-b { background: var(--fs-white-faint); }
.an-meter-labels { display: flex; justify-content: space-between; font-size: 0.78rem; color: var(--fs-white-dim); }

/* ---------- Discovery mode (Matchup Lab) ---------- */
.an-discovery-roll {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}
.an-discovery-result {
  color: var(--fs-white);
  font-size: 0.9rem;
}
.an-discovery-lists {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
  margin-top: 8px;
}

/* Compact ranked mini-list, reused by dream-matchup / rarest-matchup /
   most-least-booked panels on Matchup Lab and Booker Stats. */
.an-mini-list { list-style: none; margin: 0; padding: 0; }
.an-mini-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 4px;
  border-bottom: 1px solid var(--fs-line-soft);
  font-size: 0.83rem;
  min-height: 44px;
}
.an-mini-rank {
  flex: none;
  width: 22px;
  color: var(--fs-white-faint);
  font-variant-numeric: tabular-nums;
}
.an-mini-names { flex: 1; color: var(--fs-white); }
.an-mini-count {
  flex: none;
  color: var(--fs-gold-1);
  font-variant-numeric: tabular-nums;
  font-size: 0.78rem;
}

/* Booker Stats' old plain-div distribution bars (.an-dist-row and friends)
   were removed here: the Phase 2 visual redesign (2026-07-23) migrated
   Grades/Stars/Modes to the shared AC.donutChart/AC.barChart helpers, and a
   repo-wide grep confirmed zero remaining template/JS references. */

.an-two-col {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
}

/* ---------- Voting page ---------- */
.an-vote-tabs { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.an-vote-tab {
  min-height: 44px;
  padding: 8px 14px;
  font-size: 0.78rem;
  font-family: var(--fs-display-font);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  background: var(--fs-black-3);
  color: var(--fs-white-dim);
  border: 1px solid var(--fs-line);
  border-radius: 6px;
  cursor: pointer;
}
.an-vote-tab:hover { background: var(--fs-black-4); color: var(--fs-white); }
.an-vote-tab.an-tab--on { background: var(--fs-gold-2); color: var(--fs-ink-on-gold); border-color: var(--fs-gold-2); }

@media (max-width: 640px) {
  .an-matchup-cards { grid-template-columns: 1fr; }
  .an-matchup-vs-badge { display: none; }
}

/* ---------- Your History page ---------- */
.an-signin-card {
  background: var(--fs-black-2);
  border: 1px solid var(--fs-line);
  border-radius: 8px;
  padding: 24px;
  text-align: center;
  max-width: 480px;
  margin: 24px auto;
}
.an-signin-card p { color: var(--fs-white-dim); margin: 0 0 16px; }
.an-signin-cta { display: inline-block; max-width: 200px; margin: 0 auto; }

.an-hist-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
.an-panel {
  background: var(--fs-black-2);
  border: 1px solid var(--fs-line);
  border-radius: 8px;
  padding: 16px;
  /* Grid items default to min-width:auto, which respects a child's intrinsic
     minimum size. A wide child (table.an-table has min-width:640px so its own
     .an-table-wrap can scroll internally) was forcing THIS grid track to grow
     past the viewport instead, pushing the whole Bookers/History/Records/
     Overview page into horizontal scroll on desktop. min-width:0 lets the
     panel shrink to its grid track so .an-table-wrap's own overflow-x:auto
     handles any overflow, never the page. */
  min-width: 0;
}
.an-panel-wide { grid-column: 1 / -1; }
.an-panel-title {
  font-family: var(--fs-display-font);
  font-size: 0.85rem;
  color: var(--fs-white);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin: 0 0 12px;
}
@media (max-width: 640px) {
  .an-hist-grid { grid-template-columns: 1fr; }
}

/* table.an-table's own min-width:640px (above) is sized for the full-width,
   many-column pages (Wrestler Index, Rankings, Voting). Booker Stats is the
   only page that nests a <table class="an-table"> inside an .an-panel grid
   tile -- a ~600px desktop column, much narrower on mobile -- so that global
   640px forced the table's own .an-table-wrap to scroll horizontally inside
   the tile on every viewport. These tables only have 4 narrow columns
   (#, Name, Times booked, action icon), so they don't need the wide-table
   floor at all; tbody td already wraps (no white-space:nowrap), so a long
   name just wraps to a second line instead of forcing a scrollbar. */
.an-panel .an-table { min-width: 0; }

.an-hist-stat-line { margin: 0 0 4px; }
.an-hist-stat-big {
  font-family: var(--fs-display-font);
  font-size: 1.6rem;
  color: var(--fs-gold-hi);
}

.an-hist-timeline-svg {
  width: 100%;
  height: 100px;
  display: block;
}

.an-hist-achievement-list { list-style: none; margin: 0; padding: 0; }

/* Horizontal bar chart (Modes played, Promotions booked) */
.an-bars { display: flex; flex-direction: column; gap: 12px; }
/* Label sits on its own full-width line above the bar, instead of squeezed
   into a fixed 110px grid column with an ellipsis -- a name like "Stone Cold
   Steve Austin" or "<name> . <promotion>" (Biggest Movers) needs to be fully
   readable at a glance, not clipped. The bar itself only needs to convey
   relative magnitude, so it doesn't need to be tall or wide to do its job. */
.an-bar-row {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.an-bar-label {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 0.8rem;
  color: var(--fs-white-dim);
  white-space: normal;
  overflow-wrap: break-word;
  min-width: 0;
}
.an-bar-label-text { min-width: 0; overflow-wrap: break-word; }
.an-bar-value-strong { color: var(--fs-white); font-weight: 700; }
.an-bar-track-row {
  display: flex;
  align-items: center;
  gap: 8px;
}
.an-bar-track {
  display: block;
  flex: 1 1 auto;
  height: 10px;
  background: var(--fs-black-4);
  border-radius: 2px 5px 5px 2px;
  overflow: hidden;
}
.an-bar-fill {
  display: block;
  height: 100%;
  background: var(--fs-gold-1);
  /* Rounded data-end, square at the baseline (dataviz mark spec). */
  border-radius: 0 4px 4px 0;
}
/* Fill-in entrance: AC.animateFill() sets width 0 first, then the real
   width one frame later; this transition carries the grow. The master
   reduced-motion block at the bottom of this file zeroes it. */
.an-fill-anim {
  transition: width 0.6s var(--an-anim-ease);
}
.an-bar-row {
  border-radius: 6px;
  padding: 2px 4px;
  margin: -2px -4px;
  transition: background-color 0.15s;
}
.an-bar-row:hover,
.an-bar-row:focus-within {
  background: var(--fs-black-3);
}
/* Achievements page: marks a row the signed-in caller has personally
   unlocked among the shared community stats (same gold left-border accent
   .an-hot-card/.an-freq-banner already use for "this one matters" cards). */
.an-bar-row--mine {
  border-left: 3px solid var(--fs-gold-3);
  padding-left: 8px;
  margin-left: -11px;
}
.an-bar-mine-badge {
  display: inline-block;
  margin-left: 6px;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--fs-ink-on-gold);
  background: var(--fs-gold-2);
  border-radius: 4px;
  padding: 1px 6px;
  vertical-align: middle;
}
.an-bar-value {
  flex: 0 0 auto;
  font-size: 0.78rem;
  color: var(--fs-white);
  font-weight: 600;
  text-align: right;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

/* Calendar activity heatmap (Your last 13 weeks of daily play) */
.an-heatmap { overflow-x: auto; }
.an-heatmap-svg { display: block; }

/* Donut chart (Grade mix) */
.an-donut-wrap { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.an-donut { flex: none; }
.an-donut-legend { list-style: none; margin: 0; padding: 0; font-size: 0.8rem; color: var(--fs-white-dim); }
.an-donut-legend li { display: flex; align-items: center; gap: 6px; margin-bottom: 4px; }
.an-donut-swatch { width: 10px; height: 10px; border-radius: 2px; display: inline-block; flex: none; }

/* ==========================================================================
   Analytics Hub beauty pass (2026-07-24)
   plans/active/analytics-hub-beauty-pass.md
   Everything below is the shared visual system: controls, plaques, medals,
   deltas, chart boxes, and the single reduced-motion gate.
   ========================================================================== */

/* ---------- Form controls: selects, search, checkboxes, pagination.
   Scoped to .an-shell so the in-game roster controls are untouched. ---------- */
.an-shell .fs-sort,
.an-shell .fs-search {
  min-height: 44px;
  background-color: var(--fs-black-3);
  color: var(--fs-white);
  border: 1px solid var(--fs-line);
  border-radius: 8px;
  padding: 8px 12px;
  font-size: 0.85rem;
  transition: border-color 0.15s, background-color 0.15s;
}
.an-shell select.fs-sort {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 32px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23F2D374' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 11px 8px;
}
.an-shell .fs-sort:hover,
.an-shell .fs-search:hover {
  border-color: var(--fs-gold-3);
  background-color: var(--fs-black-4);
}
.an-shell .fs-sort:focus-visible,
.an-shell .fs-search:focus-visible {
  outline: 2px solid var(--fs-gold-1);
  outline-offset: 1px;
}
.an-shell .fs-search::placeholder { color: var(--fs-white-faint); }
.an-filter-check input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: var(--fs-gold-2);
}
.an-filter-check input[type="checkbox"]:focus-visible {
  outline: 2px solid var(--fs-gold-1);
  outline-offset: 2px;
}
.an-pagination button {
  transition: border-color 0.15s, background-color 0.15s;
}
.an-pagination button:hover:not(:disabled) { border-color: var(--fs-gold-3); }
.an-pagination button:focus-visible {
  outline: 2px solid var(--fs-gold-1);
  outline-offset: 1px;
}
.an-tab:focus-visible,
.an-vote-tab:focus-visible,
.an-quick-card:focus-visible,
.an-back:focus-visible,
.an-brand:focus-visible {
  outline: 2px solid var(--fs-gold-1);
  outline-offset: 2px;
}

/* ---------- Date slider (Rankings): gold plate thumb, gold progress.
   JS keeps --an-range-pct in sync so the filled part of the track reads
   as "how far through history you are". ---------- */
.an-shell input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  height: 44px;
  background: transparent;
  cursor: pointer;
}
.an-shell input[type="range"]::-webkit-slider-runnable-track {
  height: 6px;
  border-radius: 3px;
  background: linear-gradient(
    to right,
    var(--fs-gold-2) 0%,
    var(--fs-gold-2) var(--an-range-pct, 100%),
    var(--fs-black-4) var(--an-range-pct, 100%)
  );
}
.an-shell input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 26px;
  height: 26px;
  margin-top: -10px;
  border-radius: 50%;
  background: var(--fs-plate);
  border: 1px solid var(--fs-gold-3);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.6);
}
.an-shell input[type="range"]::-moz-range-track {
  height: 6px;
  border-radius: 3px;
  background: var(--fs-black-4);
}
.an-shell input[type="range"]::-moz-range-progress {
  height: 6px;
  border-radius: 3px;
  background: var(--fs-gold-2);
}
.an-shell input[type="range"]::-moz-range-thumb {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--fs-plate);
  border: 1px solid var(--fs-gold-3);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.6);
}
.an-shell input[type="range"]:focus-visible {
  outline: 2px solid var(--fs-gold-1);
  outline-offset: 2px;
}
.an-date-readout {
  display: inline-block;
  align-self: flex-start;
  font-size: 0.78rem;
  font-family: var(--fs-display-font);
  letter-spacing: 0.03em;
  color: var(--fs-ink-on-gold);
  background: var(--fs-strip);
  border-radius: 4px;
  padding: 3px 10px;
}

/* ---------- Overview headline plaque (broadcast lower-third). ---------- */
.an-headline {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(620px 130px at 18% 0%, var(--fs-gold-soft), transparent 72%),
    linear-gradient(180deg, var(--fs-black-3), var(--fs-black-2));
  border: 1px solid var(--fs-line);
  border-radius: 10px;
  padding: 16px 20px 16px 26px;
  margin: 0 0 20px;
  min-height: 86px;
}
.an-headline::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 6px;
  background: var(--fs-strip);
}
.an-headline-kicker {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--fs-gold-1);
  margin: 0 0 6px;
}
.an-headline-line {
  font-family: var(--fs-display-font);
  font-size: clamp(1.1rem, 3.4vw, 1.6rem);
  line-height: 1.25;
  color: var(--fs-white);
  margin: 0;
  transition: opacity 0.3s;
}
.an-headline-line .an-headline-num { color: var(--fs-gold-hi); }
.an-headline-line.an-headline-fade { opacity: 0; }

/* ---------- Rank medals + leaderboard treatment. ---------- */
.an-medal {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  font-size: 0.7rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  flex: none;
}
.an-medal-1 {
  background: var(--fs-plate);
  color: var(--fs-ink-on-gold);
  box-shadow: var(--fs-plate-edge);
}
.an-medal-2 {
  background: linear-gradient(172deg, #e8eaf2, #9aa0b4);
  color: #14141a;
}
.an-medal-3 {
  background: linear-gradient(172deg, #d9a05b, #8c5a23);
  color: #1a1206;
}
tr.an-rank-top td { background: rgba(217, 174, 63, 0.06); }
tr.an-rank-top td:first-child { box-shadow: inset 3px 0 0 var(--fs-gold-3); }
tr.an-rank-top .an-row-name {
  font-family: var(--fs-display-font);
  font-size: 0.95rem;
  color: var(--fs-gold-1);
}

/* Delta arrows: glyph carries the sign, color reinforces it. Round 2:
   rising = green, falling = red, everywhere (validated polarity tokens). */
.an-delta-up { color: var(--fs-rise, #26C6A2); white-space: nowrap; }
.an-delta-down { color: var(--fs-fall, #FF6B4A); white-space: nowrap; }
.an-delta-zero { color: var(--fs-delta-flat, var(--fs-white-faint)); white-space: nowrap; }

/* Row entrance (Rankings): JS adds .an-row-enter per row (inline
   animation-delay capped at 300ms on full loads). Scrub re-renders only
   give it to rows NEW to the list; persisting rows FLIP instead.
   (.an-stagger kept for any legacy tbody usage.) */
.an-stagger > tr,
.an-row-enter {
  animation: an-row-in 0.35s both var(--an-anim-ease);
}
@keyframes an-row-in {
  from {
    opacity: 0;
    transform: translateY(4px);
  }
}

/* ---------- Chart.js canvas boxes. ---------- */
.an-chartbox {
  position: relative;
  height: 180px;
}
.an-chartbox--tall { height: 220px; }
.an-donut-box {
  position: relative;
  width: 136px;
  height: 136px;
  flex: none;
}
.an-donut-legend b {
  color: var(--fs-white);
  font-weight: 600;
}
.an-donut-legend .an-muted { margin-left: 4px; }

/* ---------- Sparkline (shared helper AC.sparkline). ---------- */
.an-spark-dot { fill: var(--fs-gold-hi); stroke: var(--fs-black-2); stroke-width: 2; }
.an-spark-area { fill: var(--fs-gold-1); }

/* ---------- Heatmap legend. ---------- */
.an-heatlegend {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 0.7rem;
  color: var(--fs-white-faint);
  margin-top: 6px;
}
.an-heatlegend-cell {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 2px;
  background: var(--fs-gold-1);
}

/* ---------- Voting diverging legend chips. ---------- */
.an-vh-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  font-size: 0.75rem;
  color: var(--fs-white-dim);
  margin: 0 0 12px;
}
.an-vh-legend-swatch {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 2px;
  margin-right: 5px;
  vertical-align: -1px;
}

/* ---------- Quick cards: a touch more lift, gold sheen on hover. ---------- */
.an-quick-card {
  position: relative;
  overflow: hidden;
}
.an-quick-card:hover {
  background:
    radial-gradient(220px 90px at 20% 0%, var(--fs-gold-soft), transparent 75%),
    var(--fs-black-2);
}

/* ---------- Reduced motion: one gate for the whole hub.
   Final states render instantly; hover color changes and text updates stay
   (feedback is not motion). Chart.js animation is disabled from JS via
   AC.reducedMotion(). ---------- */
@media (prefers-reduced-motion: reduce) {
  .an-page *,
  .an-page *::before,
  .an-page *::after {
    animation-duration: 0.001s !important;
    animation-delay: 0s !important;
    transition-duration: 0.001s !important;
  }
}

/* Keyboard focus for sortable table headers (they act as buttons). */
.an-table th.an-sortable:focus-visible {
  outline: 2px solid var(--fs-gold-1);
  outline-offset: -2px;
  color: var(--fs-white);
}

/* ---------- Mobile-first table strategy (owner update 2026-07-24: most
   players are on phones). Below 640px every .an-table drops its wide-table
   min-width floor and lets cells wrap, so the core tables FIT the viewport
   instead of horizontally scrolling; page templates additionally hide
   low-priority columns (column-priority pattern). The scrolling-shadow
   backgrounds on .an-table-wrap are a belt-and-braces affordance: they only
   become visible if some table still overflows, so a cut-off edge always
   reads as "more to swipe", never a bare crop. ---------- */
.an-table-wrap {
  background:
    linear-gradient(to right, rgba(10, 10, 12, 0.95) 30%, transparent) left / 24px 100% no-repeat local,
    linear-gradient(to left, rgba(10, 10, 12, 0.95) 30%, transparent) right / 24px 100% no-repeat local,
    linear-gradient(to right, rgba(242, 211, 116, 0.12), transparent) left / 10px 100% no-repeat scroll,
    linear-gradient(to left, rgba(242, 211, 116, 0.12), transparent) right / 10px 100% no-repeat scroll;
}
@media (max-width: 640px) {
  table.an-table { min-width: 0; }
  .an-spark { width: 64px; height: 20px; }
  .an-vh-meter-cell { min-width: 110px; }
  .an-headline { padding: 14px 14px 14px 20px; }
}

/* Under-name sub-line: mobile column-priority tables move a hidden column's
   value here (e.g. Rankings' promotion) so the information survives the
   narrower layout. Hidden on desktop where the real column shows. */
.an-cell-sub {
  display: none;
  /* Explicit body font: the Rankings #1 row sets the display font on its
     name cell, and this sub-line must not inherit it. */
  font-family: system-ui, -apple-system, sans-serif;
  font-size: 0.7rem;
  color: var(--fs-white-faint);
  margin-top: 2px;
}
@media (max-width: 640px) {
  .an-cell-sub { display: block; }
}

/* ---------- Mobile tab bar: one swipeable row instead of a 5-row pill
   stack, so every page's content starts within the first screen. The
   gold scrolling-shadow on the right edge signals more tabs off-screen. ---------- */
@media (max-width: 640px) {
  .an-tabs {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    background:
      linear-gradient(to right, var(--fs-black) 30%, transparent) left / 24px 100% no-repeat local,
      linear-gradient(to left, var(--fs-black) 30%, transparent) right / 24px 100% no-repeat local,
      linear-gradient(to left, rgba(242, 211, 116, 0.14), transparent) right / 12px 100% no-repeat scroll;
  }
  .an-tabs::-webkit-scrollbar { display: none; }
  /* Partial-tab peek (Round 2 punch list): a min-width near a third of the
     viewport guarantees roughly 2.7 tabs fit, so the third tab is always
     visibly cut by the edge fade -- an unmissable "swipe me" affordance
     that the fade alone did not deliver at 360px. */
  .an-tab {
    flex: none;
    white-space: nowrap;
    min-width: 29vw;
    justify-content: center;
    padding: 8px 10px;
    font-size: 0.74rem;
  }
  .an-table tbody td { padding: 9px 8px; }
  /* Headers may wrap on phones: a nowrap "BOOKED IN GAME" th otherwise
     forces the whole table wider than the viewport. */
  .an-table thead th { padding: 13px 8px; white-space: normal; }
}
@media (max-width: 480px) {
  .an-spark { width: 56px; }
}

/* ==========================================================================
   Round 2: juicy analytics (2026-07-24)
   plans/active/analytics-hub-beauty-pass.md "Round 2" section.
   Storytelling system (source chips, framing lines, story beats), the
   sparkline dot-then-draw, the Rankings FLIP scrub, the Matchup line-race,
   and the pointer-scrub chip. Reduced motion is still governed by the single
   master gate above (plus AC.reducedMotion() checks in JS).
   ========================================================================== */

/* ---------- Two-worlds source chips: REAL HISTORY vs PLAYER BOOKINGS.
   The words carry the meaning; color only reinforces (real = brand gold,
   player = info blue, both validated >= 4.5:1 on the panel surface). ---------- */
.an-src {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: system-ui, -apple-system, sans-serif;
  font-size: 0.6rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  border: 1px solid;
  border-radius: 4px;
  padding: 2px 7px;
  vertical-align: 2px;
  white-space: nowrap;
}
.an-src::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
  flex: none;
}
.an-src--real { color: var(--fs-gold-1); border-color: var(--fs-gold-3); }
.an-src--game { color: var(--fs-info, #1B98DD); border-color: rgba(27, 152, 221, 0.45); }
h1 .an-src, .an-panel-title .an-src, .an-section-title .an-src, .an-content h2 .an-src {
  margin-left: 8px;
}

/* ---------- Framing lines: the plain-language sentence under a stat or a
   page title, written for someone on their first visit. ---------- */
.an-frame {
  font-size: 0.78rem;
  color: var(--fs-white-dim);
  margin: -14px 0 20px;
}
.an-hero-frame {
  font-size: 0.66rem;
  line-height: 1.4;
  color: var(--fs-white-dim);
  margin-top: 5px;
  text-transform: none;
  letter-spacing: normal;
}

/* ---------- Story beats: one composed insight line, called out with a gold
   tick so it reads as commentary, not another data row. ---------- */
.an-beat {
  display: flex;
  align-items: baseline;
  gap: 8px;
  font-size: 0.8rem;
  color: var(--fs-white);
  border-left: 2px solid var(--fs-gold-3);
  padding: 3px 10px;
  margin: 10px 0;
}
.an-beat::before {
  content: "\2605";
  color: var(--fs-gold-1);
  font-size: 0.65rem;
  flex: none;
}
.an-panel .an-beat { margin-top: 0; }

/* ---------- Sparkline dot-then-draw. JS (AC.sparkline) sets the dash
   geometry and toggles .an-spark--go on first visibility; the transitions
   below carry the motion. The area wash, end dot, and peak marker hold
   until the line lands, then the peak pulses exactly once. ---------- */
.an-spark--pending .an-spark-areafill,
.an-spark--pending .an-spark-dot,
.an-spark--pending .an-spark-peak,
.an-spark--pending .an-spark-line {
  opacity: 0;
}
.an-spark--go .an-spark-line { opacity: 1; }
.an-spark-line--draw {
  transition: stroke-dashoffset 0.7s var(--an-anim-ease);
}
.an-spark--go .an-spark-areafill,
.an-spark--go .an-spark-dot,
.an-spark--go .an-spark-peak {
  opacity: 1;
  transition: opacity 0.35s ease 0.55s;
}
.an-spark-peak {
  fill: var(--fs-gold-hi);
  stroke: var(--fs-black-2);
  stroke-width: 1.5;
  transform-box: fill-box;
  transform-origin: center;
}
@keyframes an-peak-pulse {
  0% { transform: scale(1); }
  45% { transform: scale(2); }
  100% { transform: scale(1); }
}
.an-spark--done .an-spark-peak {
  animation: an-peak-pulse 0.5s ease 1;
}
.an-spark-start { fill: var(--fs-gold-1); }
.an-spark { touch-action: pan-y; }

/* ---------- Pointer-scrub chip: follows the finger/cursor over any career
   line with "date, rating". One shared element per page, fixed-positioned
   by JS, never interactive itself. ---------- */
.an-scrub-chip {
  position: fixed;
  z-index: 60;
  pointer-events: none;
  background: var(--fs-black-3);
  border: 1px solid var(--fs-gold-3);
  border-radius: 6px;
  padding: 4px 9px;
  font-size: 0.72rem;
  color: var(--fs-white-dim);
  white-space: nowrap;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.55);
  transform: translate(-50%, calc(-100% - 12px));
}
.an-scrub-chip b { color: var(--fs-gold-1); font-weight: 700; }

/* ---------- Rankings FLIP scrub + Play button. Rows carry inline
   translateY() set from measured rects; this class plays it back to zero.
   transform-only, so a 100-row reshuffle never touches layout. ---------- */
.an-flip-move {
  transition: transform 0.45s var(--an-anim-ease);
}
.an-play-btn {
  min-height: 44px;
  padding: 8px 16px;
  background: var(--fs-black-3);
  color: var(--fs-gold-1);
  border: 1px solid var(--fs-gold-3);
  border-radius: 8px;
  font-family: var(--fs-display-font);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  cursor: pointer;
  transition: background-color 0.15s, border-color 0.15s;
}
.an-play-btn:hover { background: var(--fs-black-4); border-color: var(--fs-gold-1); }
.an-play-btn:focus-visible { outline: 2px solid var(--fs-gold-1); outline-offset: 1px; }
.an-play-btn[aria-pressed="true"] {
  background: var(--fs-gold-2);
  color: var(--fs-ink-on-gold);
  border-color: var(--fs-gold-2);
}

/* "Show all 100" on phones (Round 2 punch list: 100 tiny rows is a wall at
   360px; the podium plus top 25 is the story, the rest is on demand). */
.an-showmore {
  display: block;
  margin: 14px auto 0;
  min-height: 44px;
  padding: 8px 20px;
  background: var(--fs-black-3);
  color: var(--fs-white);
  border: 1px solid var(--fs-line);
  border-radius: 8px;
  font-size: 0.8rem;
  cursor: pointer;
  transition: border-color 0.15s, background-color 0.15s;
}
.an-showmore:hover { border-color: var(--fs-gold-3); background: var(--fs-black-4); }
/* display:block above would beat the UA's [hidden] rule; restate it. */
.an-showmore[hidden] { display: none; }
.an-showmore:focus-visible { outline: 2px solid var(--fs-gold-1); outline-offset: 1px; }

/* ---------- Matchup Lab line-race: two full-career arcs drawn from the
   same x-origin. Series colors follow the fixed categorical order (gold
   then info blue); names sit beside swatches in the legend, so identity is
   never color alone. ---------- */
.an-race-panel { margin: 16px 0; }
.an-race-svg { display: block; width: 100%; height: 190px; touch-action: pan-y; }
.an-race-line-a { stroke: var(--fs-gold-1); }
.an-race-line-b { stroke: var(--fs-info, #1B98DD); }
.an-race-line {
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.an-race-line--draw { transition: stroke-dashoffset 1.1s var(--an-anim-ease); }
.an-race-grid { stroke: var(--fs-line); stroke-width: 1; }
.an-race-axis-label {
  fill: var(--fs-white-faint);
  font-size: 9px;
  font-family: system-ui, -apple-system, sans-serif;
}
.an-race-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  font-size: 0.78rem;
  color: var(--fs-white-dim);
  margin: 4px 0 6px;
}
.an-race-legend .an-race-swatch {
  display: inline-block;
  width: 14px;
  height: 3px;
  border-radius: 2px;
  margin-right: 6px;
  vertical-align: 3px;
}
.an-race-caption {
  font-size: 0.72rem;
  color: var(--fs-white-faint);
  margin: 4px 0 0;
}

/* Race chart pending/landed states (mirrors the sparkline draw states). */
.an-race--pending .an-race-line,
.an-race--pending .an-race-dot {
  opacity: 0;
}
.an-race--go .an-race-line { opacity: 1; }
.an-race--go .an-race-dot {
  opacity: 1;
  transition: opacity 0.3s ease 0.95s;
}
.an-race-dot {
  stroke: var(--fs-black-2);
  stroke-width: 1.5;
}
.an-race-dot.an-race-line-a { fill: var(--fs-gold-hi); }
.an-race-dot.an-race-line-b { fill: var(--fs-info, #1B98DD); }

/* Hero plaques carry their world chip centered above the number. */
.an-hero-card .an-src { margin-bottom: 7px; }
@media (max-width: 640px) {
  /* "PLAYER BOOKINGS" must fit inside a half-width plaque at 360px. */
  .an-hero-card .an-src {
    font-size: 0.54rem;
    letter-spacing: 0.06em;
    padding: 2px 5px;
    max-width: 100%;
  }
}
