/* =========================================================
   STATS PAGE
========================================================= */

.stats-page-body {
  --stats-bg: #050606;
  --stats-line: rgba(255, 255, 255, 0.105);
  --stats-line-soft: rgba(255, 255, 255, 0.065);
  --stats-text: #f4f1ec;
  --stats-accent: #c9ff00;

  color: var(--stats-text);
  background: var(--stats-bg);
}

.stats-page {
  min-height: 100vh;
  background: var(--stats-bg);
}

.stats-page-body .sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

/* =========================================================
   HERO
========================================================= */

.stats-hero {
  position: relative;
  height: clamp(720px, 47.5vw, 790px);
  min-height: 720px;
  overflow: hidden;
  isolation: isolate;
  color: var(--stats-text);
  background: var(--stats-bg);
  border-bottom: 1px solid rgba(201, 255, 0, 0.08);
}

.stats-hero__background,
.stats-hero__glow,
.stats-hero__noise {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.stats-hero__background {
  z-index: -5;
  background-image: url("../assets/img/artists-bg.png");
  background-repeat: no-repeat;
  background-position: center top;
  background-size: cover;
  transform: scale(1.02);
  transform-origin: center top;
  will-change: opacity, transform;
}

.stats-hero__glow {
  z-index: -4;
  opacity: 0.92;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.34), transparent 26%, transparent 75%, rgba(0, 0, 0, 0.35)),
    linear-gradient(180deg, rgba(0, 0, 0, 0.08), transparent 58%, rgba(0, 0, 0, 0.4));
}

.stats-hero__noise {
  z-index: -3;
  opacity: 0.045;
  background-image: url("../assets/img/noise.png");
  background-size: 280px 280px;
  mix-blend-mode: screen;
}

/* =========================================================
   HEADER — DARK STATS VARIANT
========================================================= */

.stats-header {
  color: var(--stats-text);
}

.stats-header .logo__image {
  filter: none;
}

.stats-header .nav__link,
.stats-header .join-link,
.stats-header .language-btn {
  color: var(--stats-text);
}

.stats-header .nav__link::after {
  background: var(--stats-accent);
}

.stats-header .menu-btn {
  border-color: rgba(255, 255, 255, 0.4);
}

.stats-header .menu-btn span {
  background: var(--stats-text);
}

.stats-header .menu-btn:hover {
  border-color: var(--stats-accent);
  box-shadow: 0 0 28px rgba(201, 255, 0, 0.1);
}

.stats-page-body .mobile-menu {
  background: rgba(5, 6, 6, 0.97);
}

.stats-page-body .mobile-menu a[aria-current="page"] {
  color: var(--stats-accent);
}

/* =========================================================
   SOCIAL RAIL
========================================================= */

/* =========================================================
   HERO GRID
========================================================= */

.stats-hero__main {
  position: relative;
  z-index: 10;
  height: calc(100% - var(--header-height));
  min-height: 0;
  margin-left: var(--side-width);
  padding: clamp(40px, 4.25vh, 58px) clamp(54px, 4.35vw, 74px) 30px clamp(52px, 4vw, 68px);
  display: grid;
  grid-template-columns: minmax(500px, 0.94fr) minmax(390px, 0.88fr) minmax(330px, 0.62fr);
  grid-template-rows: minmax(340px, 1fr) 205px;
  grid-template-areas:
    "intro art side"
    "summary summary summary";
  column-gap: clamp(22px, 2vw, 36px);
  row-gap: 28px;
}

.stats-hero__intro {
  grid-area: intro;
  align-self: center;
  min-width: 0;
}

.stats-hero__title {
  display: flex;
  align-items: baseline;
  gap: clamp(14px, 1.2vw, 22px);
  width: max-content;
  max-width: 100%;
  color: var(--stats-text);
  font-family: var(--font-display);
  font-size: clamp(82px, 5.85vw, 104px);
  line-height: 0.92;
  font-weight: 700;
  letter-spacing: -0.046em;
  text-transform: uppercase;
  white-space: nowrap;
  text-shadow: 0 18px 54px rgba(0, 0, 0, 0.5);
}

.stats-hero__title-outline {
  color: transparent;
  -webkit-text-stroke: 1.35px rgba(244, 241, 236, 0.72);
  opacity: 0.88;
}

.stats-hero__lead {
  margin-top: 26px;
  color: rgba(244, 241, 236, 0.88);
  font-size: clamp(19px, 1.3vw, 23px);
  line-height: 1.45;
  font-weight: 500;
}

.stats-range {
  position: relative;
  z-index: 90;
  width: min(100%, 278px);
  margin-top: 38px;
}

.stats-range__label {
  display: block;
  margin: 0 0 8px 2px;
  color: rgba(244, 241, 236, 0.54);
  font-size: 10px;
  line-height: 1;
  font-weight: 600;
  letter-spacing: 0.065em;
  text-transform: uppercase;
}

.stats-range__control {
  position: relative;
  z-index: 210;
  min-width: 0;
}

.stats-range__native {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

.stats-range__trigger {
  position: relative;
  width: 100%;
  min-height: 48px;
  padding: 0 43px 0 16px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 6px;
  color: rgba(244, 241, 236, 0.92);
  background: rgba(255, 255, 255, 0.012);
  font: 600 13px/1 var(--font-main);
  letter-spacing: 0.035em;
  text-align: left;
  text-transform: uppercase;
  cursor: pointer;
  transition:
    border-color 0.28s ease,
    background 0.28s ease,
    box-shadow 0.28s ease;
}

.stats-range__trigger::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  bottom: 9px;
  width: 2px;
  border-radius: 99px;
  background: var(--stats-accent);
  box-shadow: 0 0 9px rgba(201, 255, 0, 0.34);
  opacity: 0.72;
}

.stats-range__trigger > span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.stats-range__trigger > i {
  position: absolute;
  top: 50%;
  right: 15px;
  color: var(--stats-accent);
  font-size: 9px;
  transform: translateY(-50%);
  transition: transform 0.32s cubic-bezier(0.16, 1, 0.3, 1);
}

.stats-range__trigger:hover,
.stats-range__trigger:focus-visible,
.stats-range__control.is-open .stats-range__trigger {
  border-color: rgba(201, 255, 0, 0.42);
  background:
    linear-gradient(90deg, rgba(201, 255, 0, 0.045), transparent 48%),
    rgba(255, 255, 255, 0.018);
  box-shadow:
    0 0 0 1px rgba(201, 255, 0, 0.025),
    0 8px 18px rgba(0, 0, 0, 0.13),
    0 0 12px rgba(201, 255, 0, 0.045);
  outline: none;
}

.stats-range__control.is-open .stats-range__trigger > i {
  transform: translateY(-50%) rotate(180deg);
}

.stats-range__menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  width: 100%;
  min-width: 190px;
  padding: 6px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  background:
    linear-gradient(145deg, rgba(201, 255, 0, 0.025), transparent 48%),
    rgba(8, 9, 9, 0.97);
  box-shadow:
    0 22px 58px rgba(0, 0, 0, 0.48),
    inset 0 1px 0 rgba(255, 255, 255, 0.035);
  backdrop-filter: blur(16px);
}

.stats-range__menu[hidden] {
  display: none;
}

.stats-range__menu button {
  position: relative;
  width: 100%;
  min-height: 39px;
  padding: 0 34px 0 12px;
  display: flex;
  align-items: center;
  border: 0;
  border-radius: 6px;
  color: rgba(244, 241, 236, 0.58);
  background: transparent;
  font: 600 11px/1 var(--font-main);
  letter-spacing: 0.055em;
  text-align: left;
  text-transform: uppercase;
  cursor: pointer;
  transition:
    color 0.22s ease,
    background 0.22s ease,
    transform 0.22s ease;
}

.stats-range__menu button:hover,
.stats-range__menu button:focus-visible {
  color: var(--stats-text);
  background: rgba(255, 255, 255, 0.045);
  transform: translateX(2px);
  outline: none;
}

.stats-range__menu button.is-selected {
  color: var(--stats-accent);
  background: rgba(201, 255, 0, 0.06);
}

.stats-range__menu button > i {
  position: absolute;
  top: 50%;
  right: 13px;
  width: 8px;
  height: 8px;
  border: 1px solid rgba(244, 241, 236, 0.24);
  transform: translateY(-50%) rotate(45deg);
}

.stats-range__menu button.is-selected > i {
  border-color: var(--stats-accent);
  background: var(--stats-accent);
  box-shadow: 0 0 10px rgba(201, 255, 0, 0.32);
}

/* =========================================================
   CENTER ARTWORK
========================================================= */

.stats-hero__art {
  grid-area: art;
  position: relative;
  min-width: 0;
  align-self: stretch;
  display: grid;
  place-items: center;
  pointer-events: none;
}

.stats-hero__art::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: min(86%, 500px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(201, 255, 0, 0.065), rgba(201, 255, 0, 0.01) 46%, transparent 72%);
  filter: blur(18px);
  transform: translate(-50%, -50%);
}

/* =========================================================
   RIGHT STAT CARDS
========================================================= */

.stats-hero__side {
  grid-area: side;
  align-self: center;
  display: grid;
  gap: 12px;
}

.stats-side-card {
  min-height: 104px;
  padding: 18px 22px;
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) auto;
  align-items: center;
  gap: 17px;
  border: 1px solid var(--stats-line);
  border-radius: 7px;
  background:
    linear-gradient(105deg, rgba(255, 255, 255, 0.024), rgba(255, 255, 255, 0.006) 64%),
    rgba(8, 9, 9, 0.88);
  box-shadow: inset 0 0 26px rgba(255, 255, 255, 0.008), 0 12px 36px rgba(0, 0, 0, 0.14);
  transition: border-color 0.28s ease, transform 0.28s ease, box-shadow 0.28s ease;
}

.stats-side-card:hover {
  border-color: rgba(201, 255, 0, 0.32);
  box-shadow: 0 14px 38px rgba(0, 0, 0, 0.22), 0 0 22px rgba(201, 255, 0, 0.04);
  transform: translateX(-3px);
}

.stats-side-card__icon {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 6px;
  color: var(--stats-accent);
  background: rgba(201, 255, 0, 0.04);
  font-size: 24px;
}

.stats-side-card__copy {
  min-width: 0;
}

.stats-side-card__copy > span {
  display: block;
  margin-bottom: 9px;
  color: rgba(244, 241, 236, 0.76);
  font-size: 11px;
  line-height: 1;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  white-space: nowrap;
}

.stats-side-card__copy > strong {
  display: block;
  color: var(--stats-text);
  font-size: 34px;
  line-height: 0.9;
  font-weight: 500;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums lining-nums;
}

.stats-side-card__growth {
  align-self: center;
  text-align: left;
}

.stats-side-card__growth strong {
  display: block;
  color: var(--stats-accent);
  font-size: 12px;
  line-height: 1;
  font-weight: 700;
}

.stats-side-card__growth small {
  display: block;
  margin-top: 8px;
  color: rgba(244, 241, 236, 0.5);
  font-size: 8px;
  line-height: 1;
  font-weight: 600;
  letter-spacing: 0.035em;
  text-transform: uppercase;
  white-space: nowrap;
}

/* =========================================================
   BOTTOM SUMMARY STRIP
========================================================= */

.stats-summary {
  grid-area: summary;
  min-width: 0;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  overflow: hidden;
  border: 1px solid var(--stats-line);
  border-radius: 7px;
  background:
    linear-gradient(100deg, rgba(255, 255, 255, 0.018), transparent 58%),
    rgba(8, 9, 9, 0.9);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.16);
}

.stats-summary-card {
  position: relative;
  min-width: 0;
  padding: 26px 22px 19px;
}

.stats-summary-card + .stats-summary-card {
  border-left: 1px solid var(--stats-line-soft);
}

.stats-summary-card__head {
  display: flex;
  align-items: center;
  gap: 13px;
  color: rgba(244, 241, 236, 0.8);
  font-size: 11px;
  line-height: 1;
  font-weight: 600;
  letter-spacing: 0.035em;
  text-transform: uppercase;
  white-space: nowrap;
}

.stats-summary-card__icon {
  flex: 0 0 auto;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 5px;
  color: var(--stats-accent);
  background: rgba(255, 255, 255, 0.028);
  font-size: 21px;
}

.stats-summary-card__value {
  display: block;
  margin: 14px 0 12px 55px;
  color: var(--stats-text);
  font-size: clamp(36px, 2.7vw, 45px);
  line-height: 0.9;
  font-weight: 500;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums lining-nums;
  white-space: nowrap;
}

.stats-summary-card__bottom {
  min-height: 58px;
  display: grid;
  grid-template-columns: 75px minmax(0, 1fr);
  align-items: end;
  gap: 8px;
}

.stats-summary-card__bottom p {
  padding-bottom: 4px;
}

.stats-summary-card__bottom p strong,
.stats-summary-card__bottom p small {
  display: block;
}

.stats-summary-card__bottom p strong {
  color: var(--stats-accent);
  font-size: 11px;
  line-height: 1;
  font-weight: 700;
}

.stats-summary-card__bottom p small {
  margin-top: 8px;
  color: rgba(244, 241, 236, 0.46);
  font-size: 7px;
  line-height: 1;
  font-weight: 600;
  text-transform: uppercase;
  white-space: nowrap;
}

.stats-summary-card__bottom svg {
  display: block;
  width: 100%;
  min-width: 0;
  height: 58px;
  overflow: visible;
}

.stats-sparkline__grid,
.stats-sparkline__line,
.stats-sparkline__end {
  fill: none;
  vector-effect: non-scaling-stroke;
}

.stats-sparkline__grid {
  stroke: rgba(255, 255, 255, 0.12);
  stroke-width: 1;
}

.stats-sparkline__line {
  stroke: #c9ff00;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: none;
  stroke-dashoffset: 0;
  opacity: 1;
  filter:
    drop-shadow(0 0 2px rgba(201, 255, 0, 0.72))
    drop-shadow(0 0 6px rgba(201, 255, 0, 0.22));
}

.stats-sparkline__end {
  stroke: rgba(201, 255, 0, 0.55);
  stroke-width: 1;
}

/* =========================================================
   REVEAL / COUNTERS
========================================================= */

html.stats-hero-animations-ready .stats-hero__intro,
html.stats-hero-animations-ready .stats-hero__art,
html.stats-hero-animations-ready .stats-side-card,
html.stats-hero-animations-ready .stats-summary {
  opacity: 0;
  transform: translate3d(0, 18px, 0);
}

html.stats-hero-animations-ready.stats-hero-is-visible .stats-hero__intro,
html.stats-hero-animations-ready.stats-hero-is-visible .stats-hero__art,
html.stats-hero-animations-ready.stats-hero-is-visible .stats-side-card,
html.stats-hero-animations-ready.stats-hero-is-visible .stats-summary {
  opacity: 1;
  transform: translate3d(0, 0, 0);
  transition: opacity 0.8s ease, transform 0.95s cubic-bezier(0.16, 1, 0.3, 1);
}

html.stats-hero-animations-ready.stats-hero-is-visible .stats-hero__art { transition-delay: 0.08s; }
html.stats-hero-animations-ready.stats-hero-is-visible .stats-side-card:nth-child(1) { transition-delay: 0.13s; }
html.stats-hero-animations-ready.stats-hero-is-visible .stats-side-card:nth-child(2) { transition-delay: 0.18s; }
html.stats-hero-animations-ready.stats-hero-is-visible .stats-side-card:nth-child(3) { transition-delay: 0.23s; }
html.stats-hero-animations-ready.stats-hero-is-visible .stats-summary { transition-delay: 0.28s; }

[data-stat-value].is-updating {
  opacity: 0.45;
  transform: translateY(3px);
}

[data-stat-value] {
  transition: opacity 0.2s ease, transform 0.2s ease;
}

html.stats-hero-animations-ready.stats-hero-is-visible .stats-sparkline__line {
  animation: statsSparklineReveal 0.7s ease 0.42s both;
}

@keyframes statsSparklineReveal {
  from { opacity: 0.22; }
  to { opacity: 1; }
}

/* =========================================================
   RESPONSIVE
========================================================= */

@media (max-width: 1450px) {
  .stats-hero__main {
    grid-template-columns: minmax(430px, 0.9fr) minmax(300px, 0.7fr) minmax(300px, 0.62fr);
    padding-right: 42px;
    padding-left: 48px;
    column-gap: 22px;
  }

  .stats-hero__title {
    font-size: clamp(72px, 5.8vw, 90px);
  }

  .stats-summary-card {
    padding-inline: 17px;
  }

  .stats-summary-card__value {
    margin-left: 48px;
  }
}

@media (max-width: 1180px) {
  .stats-hero {
    height: auto;
    min-height: 880px;
  }

  .stats-hero__main {
    height: auto;
    min-height: calc(880px - var(--header-height));
    grid-template-columns: minmax(0, 1fr) 340px;
    grid-template-rows: auto auto auto;
    grid-template-areas:
      "intro side"
      "art side"
      "summary summary";
    padding-top: 48px;
  }

  .stats-hero__art {
    min-height: 250px;
  }

  .stats-summary {
    grid-template-columns: repeat(5, minmax(180px, 1fr));
    overflow-x: auto;
    scrollbar-width: thin;
  }

  .stats-summary-card {
    min-width: 210px;
  }
}

@media (max-width: 820px) {

  .stats-hero__main {
    min-height: 0;
    margin-left: 0;
    padding: 44px 24px 34px;
    display: block;
  }

  .stats-hero__title {
    flex-wrap: wrap;
    gap: 10px;
    white-space: normal;
    font-size: clamp(56px, 13.2vw, 84px);
  }

  .stats-hero__lead br {
    display: none;
  }

  .stats-range {
    margin-top: 28px;
  }

  .stats-hero__art {
    min-height: 280px;
    margin: 22px 0 12px;
  }

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

  .stats-side-card {
    min-height: 160px;
    padding: 17px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
  }

  .stats-side-card__growth {
    margin-top: auto;
  }

  .stats-summary {
    margin-top: 24px;
  }
}

@media (max-width: 560px) {
  .stats-hero__main {
    padding-inline: 18px;
  }

  .stats-hero__lead {
    font-size: 17px;
  }

  .stats-hero__art {
    min-height: 235px;
  }

  .stats-hero__side {
    display: block;
  }

  .stats-side-card {
    min-height: 105px;
    margin-top: 10px;
    display: grid;
    grid-template-columns: 46px minmax(0, 1fr) auto;
  }

  .stats-side-card__growth {
    margin-top: 0;
  }

  .stats-summary-card {
    min-width: 235px;
  }
}

@media (prefers-reduced-motion: reduce) {
  
  .stats-hero-is-visible .stats-sparkline__line {
    animation: none;
    stroke-dasharray: none;
    stroke-dashoffset: 0;
    opacity: 1;
  }

  html.stats-hero-animations-ready .stats-hero__intro,
  html.stats-hero-animations-ready .stats-hero__art,
  html.stats-hero-animations-ready .stats-side-card,
  html.stats-hero-animations-ready .stats-summary {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* =========================================================
   RANGE DROPDOWN
========================================================= */

.stats-hero__intro {
  position: relative;
  z-index: 40;
  overflow: visible;
}

.stats-range,
.stats-range__control,
.stats-range__menu {
  overflow: visible;
}

.stats-range__control.is-open {
  z-index: 1000;
}

.stats-range__menu {
  z-index: 1001;
}

.stats-hero__art,
.stats-hero__side {
  z-index: 2;
}

.stats-summary {
  position: relative;
  z-index: 1;
}

/* =========================================================
   SECTION 02 — STREAMS OVERVIEW + STREAMS BY PLATFORM
========================================================= */

.stats-dashboard-row {
  position: relative;
  z-index: 4;
  color: var(--stats-text);
  background:
    radial-gradient(circle at 16% 8%, rgba(201, 255, 0, 0.025), transparent 30%),
    var(--stats-bg);
}

.stats-dashboard-row__inner {
  width: min(100%, 1840px);
  margin: 0 auto;
  padding: 34px clamp(28px, 4vw, 70px) 16px;
  display: grid;
  grid-template-columns: minmax(0, 1.22fr) minmax(390px, 1fr);
  gap: 24px;
}

.stats-panel {
  position: relative;
  min-width: 0;
  min-height: 430px;
  overflow: visible;
  border: 1px solid var(--stats-line);
  border-radius: 7px;
  background:
    linear-gradient(120deg, rgba(255, 255, 255, 0.019), transparent 52%),
    rgba(8, 9, 9, 0.92);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.012),
    0 18px 52px rgba(0, 0, 0, 0.16);
}

.stats-panel__header {
  position: relative;
  z-index: 20;
  min-height: 70px;
  padding: 20px 24px 12px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.stats-panel__header h2 {
  color: rgba(244, 241, 236, 0.92);
  font-family: var(--font-main);
  font-size: 15px;
  line-height: 1;
  font-weight: 600;
  letter-spacing: 0.025em;
  text-transform: uppercase;
}

/* Compact filter */
.stats-chart-select {
  position: relative;
  z-index: 40;
  width: 132px;
}

.stats-chart-select.is-open {
  z-index: 120;
}

.stats-chart-select__trigger {
  width: 100%;
  min-height: 36px;
  padding: 0 35px 0 13px;
  display: flex;
  align-items: center;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 5px;
  color: rgba(244, 241, 236, 0.82);
  background: rgba(255, 255, 255, 0.01);
  font: 600 10px/1 var(--font-main);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
  transition: border-color 0.25s ease, background 0.25s ease, box-shadow 0.25s ease;
}

.stats-chart-select__trigger i {
  position: absolute;
  right: 13px;
  top: 50%;
  color: rgba(244, 241, 236, 0.66);
  font-size: 8px;
  transform: translateY(-50%);
  transition: transform 0.28s ease, color 0.28s ease;
}

.stats-chart-select__trigger:hover,
.stats-chart-select__trigger:focus-visible,
.stats-chart-select.is-open .stats-chart-select__trigger {
  border-color: rgba(201, 255, 0, 0.4);
  background: rgba(201, 255, 0, 0.025);
  box-shadow: 0 0 14px rgba(201, 255, 0, 0.04);
  outline: none;
}

.stats-chart-select.is-open .stats-chart-select__trigger i {
  color: var(--stats-accent);
  transform: translateY(-50%) rotate(180deg);
}

.stats-chart-select__menu {
  position: absolute;
  top: calc(100% + 7px);
  right: 0;
  z-index: 130;
  width: 100%;
  padding: 5px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 7px;
  background: rgba(8, 9, 9, 0.98);
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.48);
  backdrop-filter: blur(14px);
}

.stats-chart-select__menu[hidden] {
  display: none;
}

.stats-chart-select__menu button {
  width: 100%;
  min-height: 34px;
  padding: 0 10px;
  border-radius: 4px;
  color: rgba(244, 241, 236, 0.62);
  font: 600 10px/1 var(--font-main);
  letter-spacing: 0.035em;
  text-align: left;
  text-transform: uppercase;
  cursor: pointer;
}

.stats-chart-select__menu button:hover,
.stats-chart-select__menu button:focus-visible,
.stats-chart-select__menu button.is-selected {
  color: var(--stats-text);
  background: rgba(201, 255, 0, 0.065);
  outline: none;
}

.stats-chart-select__menu button.is-selected {
  color: var(--stats-accent);
}

/* STREAMS OVERVIEW */

.stats-overview__metrics {
  position: relative;
  z-index: 3;
  padding: 2px 26px 0;
  display: flex;
  align-items: flex-start;
  gap: 38px;
}

.stats-overview__metrics > div > strong {
  display: block;
  color: var(--stats-text);
  font-size: clamp(34px, 2.55vw, 48px);
  line-height: 0.94;
  font-weight: 500;
  letter-spacing: -0.035em;
  font-variant-numeric: tabular-nums lining-nums;
}

.stats-overview__metrics span {
  display: block;
  margin-top: 7px;
  color: rgba(244, 241, 236, 0.43);
  font-size: 8px;
  line-height: 1;
  font-weight: 600;
  letter-spacing: 0.055em;
  text-transform: uppercase;
}

.stats-overview__metrics p {
  padding-top: 6px;
}

.stats-overview__metrics p strong {
  display: block;
  color: var(--stats-accent);
  font-size: 12px;
  line-height: 1;
  font-weight: 700;
}

.stats-line-chart {
  position: absolute;
  inset: 155px 19px 17px 18px;
  min-height: 245px;
}

.stats-line-chart__svg {
  display: block;
  width: 100%;
  height: calc(100% - 28px);
  overflow: visible;
}

.stats-line-chart__grid line {
  stroke: rgba(255, 255, 255, 0.075);
  stroke-width: 1;
  stroke-dasharray: 3 5;
  vector-effect: non-scaling-stroke;
}

.stats-line-chart__labels text {
  fill: rgba(244, 241, 236, 0.43);
  font-family: var(--font-main);
  font-size: 10px;
  font-weight: 500;
}

.stats-line-chart__area {
  fill: url(#stats-stream-area);
  transition: d 0.48s cubic-bezier(0.16, 1, 0.3, 1);
}

.stats-line-chart__line {
  fill: none;
  stroke: var(--stats-accent);
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
  filter: drop-shadow(0 0 4px rgba(201, 255, 0, 0.56));
  transition: d 0.48s cubic-bezier(0.16, 1, 0.3, 1);
}

.stats-line-chart__cursor {
  stroke: rgba(201, 255, 0, 0.25);
  stroke-width: 1;
  vector-effect: non-scaling-stroke;
}

.stats-line-chart__point-glow {
  fill: rgba(201, 255, 0, 0.28);
  filter: url(#stats-stream-glow);
}

.stats-line-chart__point {
  fill: #efffb8;
  stroke: var(--stats-accent);
  stroke-width: 2;
  filter: drop-shadow(0 0 7px rgba(201, 255, 0, 0.95));
}

.stats-line-chart__months {
  margin: -1px 0 0 8.5%;
  padding-right: 0.5%;
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  color: rgba(244, 241, 236, 0.52);
  font-size: 8px;
  line-height: 1;
  font-weight: 600;
  text-align: center;
  text-transform: uppercase;
}

/* PLATFORM DONUT */

.stats-platforms {
  height: calc(100% - 70px);
  padding: 3px 34px 24px 24px;
  display: grid;
  grid-template-columns: minmax(235px, 1fr) minmax(190px, 0.75fr);
  align-items: center;
  gap: clamp(20px, 3vw, 50px);
}

.stats-platforms__chart {
  position: relative;
  width: min(100%, 310px);
  aspect-ratio: 1;
  justify-self: center;
}

.stats-platforms__chart svg {
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
  transform: rotate(-90deg);
}

.stats-donut__track,
.stats-donut__segment {
  fill: none;
  stroke-width: 40;
  vector-effect: non-scaling-stroke;
}

.stats-donut__track {
  stroke: rgba(255, 255, 255, 0.045);
}

.stats-donut__segment {
  stroke-linecap: butt;
  transform-origin: 140px 140px;
  transition: opacity 0.28s ease, filter 0.28s ease;
}

.stats-donut__segment--spotify { stroke: #c9ff00; }
.stats-donut__segment--youtube { stroke: #ff2537; }
.stats-donut__segment--soundcloud { stroke: #e6e6e6; }
.stats-donut__segment--apple { stroke: #bcbdbd; }
.stats-donut__segment--deezer { stroke: #858687; }
.stats-donut__segment--other { stroke: #4b4c4d; }

.stats-platforms__chart:hover .stats-donut__segment {
  opacity: 0.86;
  filter: drop-shadow(0 0 5px rgba(201, 255, 0, 0.08));
}

.stats-platforms__total {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  text-align: center;
  pointer-events: none;
}

.stats-platforms__total strong {
  color: var(--stats-text);
  font-size: clamp(34px, 2.5vw, 47px);
  line-height: 0.9;
  font-weight: 500;
  letter-spacing: -0.03em;
}

.stats-platforms__total span {
  margin-top: 11px;
  color: rgba(244, 241, 236, 0.72);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.stats-platforms__legend {
  display: grid;
  gap: 19px;
}

.stats-platforms__legend li,
.stats-genre-chart__legend li {
  min-width: 0;
}

.stats-platforms__legend button,
.stats-genre-chart__legend button {
  width: 100%;
  padding: 0;
  border: 0;
  color: inherit;
  background: transparent;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.stats-platforms__legend li > button {
  display: grid;
  grid-template-columns: 25px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
}

.stats-platforms__brand {
  width: 20px;
  height: 20px;
  display: grid;
  place-items: center;
  border-radius: 5px;
  color: #080909;
  font-size: 10px;
}

.stats-platforms__brand--spotify { background: #24d865; }
.stats-platforms__brand--youtube { color: #fff; background: #ff1f31; }
.stats-platforms__brand--soundcloud { color: #fff; background: #ff6a1a; }
.stats-platforms__brand--apple { color: #1f1f20; background: #efeff0; }
.stats-platforms__brand--deezer { color: #fff; background: linear-gradient(135deg, #ff324b, #7638ff); }
.stats-platforms__brand--other { color: rgba(255, 255, 255, 0.85); background: #4b4c4d; }

.stats-platforms__legend button > span:nth-child(2) {
  color: rgba(244, 241, 236, 0.52);
  font-size: 10px;
  line-height: 1;
  font-weight: 500;
}

.stats-platforms__legend button > strong {
  color: rgba(244, 241, 236, 0.91);
  font-size: 15px;
  line-height: 1;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

/* Reveal only */
html.stats-streams-animations-ready .stats-dashboard-row--streams .stats-panel {
  opacity: 0;
  transform: translate3d(0, 22px, 0);
}

html.stats-streams-animations-ready.stats-streams-is-visible .stats-dashboard-row--streams .stats-panel {
  opacity: 1;
  transform: translate3d(0, 0, 0);
  transition: opacity 0.72s ease, transform 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}

html.stats-streams-animations-ready.stats-streams-is-visible .stats-dashboard-row--streams .stats-panel:nth-child(2) {
  transition-delay: 0.1s;
}

html.stats-streams-animations-ready.stats-streams-is-visible .stats-line-chart__line {
  animation: statsStreamsDraw 1.15s cubic-bezier(0.16, 1, 0.3, 1) 0.2s both;
}

html.stats-streams-animations-ready.stats-streams-is-visible .stats-donut__segment {
  animation: statsDonutReveal 0.85s cubic-bezier(0.16, 1, 0.3, 1) both;
}

html.stats-streams-animations-ready.stats-streams-is-visible .stats-donut__segment:nth-of-type(3) { animation-delay: 0.05s; }
html.stats-streams-animations-ready.stats-streams-is-visible .stats-donut__segment:nth-of-type(4) { animation-delay: 0.10s; }
html.stats-streams-animations-ready.stats-streams-is-visible .stats-donut__segment:nth-of-type(5) { animation-delay: 0.15s; }
html.stats-streams-animations-ready.stats-streams-is-visible .stats-donut__segment:nth-of-type(6) { animation-delay: 0.20s; }
html.stats-streams-animations-ready.stats-streams-is-visible .stats-donut__segment:nth-of-type(7) { animation-delay: 0.25s; }

@keyframes statsStreamsDraw {
  from { stroke-dasharray: 1; stroke-dashoffset: 1; }
  to { stroke-dasharray: 1; stroke-dashoffset: 0; }
}

@keyframes statsDonutReveal {
  from { opacity: 0; }
  to { opacity: 1; }
}

@media (max-width: 1180px) {
  .stats-dashboard-row__inner {
    grid-template-columns: 1fr;
  }

  .stats-panel--overview {
    min-height: 445px;
  }

  .stats-platforms {
    grid-template-columns: minmax(250px, 0.85fr) minmax(250px, 0.65fr);
  }
}

@media (max-width: 680px) {
  .stats-dashboard-row__inner {
    padding: 22px 18px 10px;
    gap: 16px;
  }

  .stats-panel {
    min-height: 390px;
  }

  .stats-panel__header {
    min-height: 64px;
    padding: 17px 17px 10px;
  }

  .stats-overview__metrics {
    padding-inline: 17px;
    gap: 22px;
  }

  .stats-overview__metrics > div > strong {
    font-size: clamp(27px, 8.6vw, 38px);
  }

  .stats-line-chart {
    inset: 148px 10px 14px 9px;
  }

  .stats-line-chart__labels text {
    font-size: 8px;
  }

  .stats-line-chart__months {
    margin-left: 10%;
    font-size: 7px;
  }

  .stats-platforms {
    height: auto;
    padding: 0 18px 24px;
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .stats-platforms__chart {
    width: min(77vw, 270px);
  }

  .stats-platforms__legend {
    width: min(100%, 320px);
    margin: 0 auto;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px 22px;
  }

  .stats-platforms__legend li > button {
    grid-template-columns: 23px minmax(0, 1fr) auto;
    gap: 8px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html.stats-streams-animations-ready .stats-dashboard-row--streams .stats-panel {
    opacity: 1;
    transform: none;
    transition: none;
  }

  html.stats-streams-animations-ready.stats-streams-is-visible .stats-line-chart__line,
  html.stats-streams-animations-ready.stats-streams-is-visible .stats-donut__segment {
    animation: none;
  }
}

/* =========================================================
   SECTION 03 — COUNTRIES + WORLD MAP + FOLLOWERS GROWTH
========================================================= */

.stats-dashboard-row--geography {
  padding-bottom: 10px;
  background:
    radial-gradient(circle at 52% 24%, rgba(201, 255, 0, 0.018), transparent 28%),
    var(--stats-bg);
}

.stats-dashboard-row__inner--geography {
  padding-top: 8px;
  grid-template-columns: minmax(300px, 0.82fr) minmax(410px, 1fr) minmax(330px, 0.92fr);
  gap: 24px;
}

.stats-dashboard-row--geography .stats-panel {
  min-height: 470px;
}

.stats-panel--countries,
.stats-panel--world-map,
.stats-panel--followers-growth {
  overflow: visible;
}

/* TOP COUNTRIES */

.stats-country-list {
  margin: 0;
  padding: 2px 22px 0;
  display: grid;
  gap: 12px;
  list-style: none;
  counter-reset: none;
}

.stats-country-list li {
  --country-share: 100%;
  min-width: 0;
  display: grid;
  grid-template-columns: 25px 18px minmax(92px, 1.2fr) minmax(62px, 0.85fr) 36px;
  align-items: center;
  gap: 9px;
  color: rgba(244, 241, 236, 0.78);
  font-size: 12px;
  line-height: 1;
  font-weight: 600;
  text-transform: uppercase;
}

.stats-country-list__rank {
  color: rgba(244, 241, 236, 0.43);
  font-size: 13px;
  font-variant-numeric: tabular-nums;
}

.stats-country-list img {
  width: 17px;
  height: 12px;
  object-fit: cover;
  border-radius: 1px;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.07);
}

.stats-country-list__name {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.stats-country-list__bar {
  position: relative;
  height: 2px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.09);
}

.stats-country-list__bar i {
  position: absolute;
  inset: 0 auto 0 0;
  width: var(--country-share);
  background: var(--stats-accent);
  box-shadow: 0 0 9px rgba(201, 255, 0, 0.32);
  transform-origin: left center;
}

.stats-country-list li > strong {
  color: rgba(244, 241, 236, 0.76);
  font-size: 10px;
  font-weight: 500;
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.stats-panel__link {
  position: absolute;
  left: 22px;
  bottom: 22px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--stats-accent);
  font-size: 10px;
  line-height: 1;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  transition: gap 0.25s ease, color 0.25s ease;
}

.stats-panel__link:hover {
  gap: 16px;
  color: #dcff62;
}

.stats-panel__link i {
  font-size: 9px;
}

/* WORLD MAP */

.stats-world-map {
  position: absolute;
  overflow: hidden;
  border-radius: 3px;
  background:
    radial-gradient(circle at 50% 48%, rgba(201, 255, 0, 0.025), transparent 54%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.006), rgba(0, 0, 0, 0.08));
}

.stats-world-map::before {
  content: "";
  position: absolute;
  inset: 6% 0 12%;
  background:
    radial-gradient(circle at 23% 42%, rgba(201, 255, 0, 0.07), transparent 18%),
    radial-gradient(circle at 47% 40%, rgba(201, 255, 0, 0.09), transparent 21%),
    radial-gradient(circle at 54% 34%, rgba(201, 255, 0, 0.05), transparent 17%),
    radial-gradient(circle at 35% 67%, rgba(201, 255, 0, 0.04), transparent 16%),
    radial-gradient(circle at 73% 47%, rgba(201, 255, 0, 0.05), transparent 17%),
    radial-gradient(circle at 83% 69%, rgba(201, 255, 0, 0.04), transparent 15%);
  opacity: 0.58;
  filter: blur(14px);
  pointer-events: none;
}

/* The visible map */
.stats-world-map__shape {
  position: absolute;
  inset: -2% -4% 7%;
  background: url("../assets/svg/world-map-countries.svg") center / contain no-repeat;
  opacity: 0.86;
  filter:
    grayscale(1)
    brightness(1.34)
    contrast(0.96)
    drop-shadow(0 0 5px rgba(244, 241, 236, 0.08));
  transform: scale(1.07);
  transform-origin: center;
  transition: opacity 0.35s ease, filter 0.35s ease;
}

/* Smooth, continuous colour clipped */
.stats-world-map__dots {
  position: absolute;
  inset: -2% -4% 7%;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 23% 42%, rgba(201, 255, 0, 0.76) 0 3%, rgba(201, 255, 0, 0.32) 9%, transparent 20%),
    radial-gradient(ellipse at 47% 40%, rgba(201, 255, 0, 0.82) 0 4%, rgba(201, 255, 0, 0.36) 11%, transparent 23%),
    radial-gradient(ellipse at 54% 34%, rgba(201, 255, 0, 0.48) 0 2.5%, rgba(201, 255, 0, 0.19) 8%, transparent 18%),
    radial-gradient(ellipse at 35% 67%, rgba(201, 255, 0, 0.34) 0 2.5%, rgba(201, 255, 0, 0.13) 8%, transparent 17%),
    radial-gradient(ellipse at 73% 47%, rgba(201, 255, 0, 0.38) 0 2.5%, rgba(201, 255, 0, 0.15) 8%, transparent 18%),
    radial-gradient(ellipse at 83% 69%, rgba(201, 255, 0, 0.28) 0 2%, rgba(201, 255, 0, 0.11) 7%, transparent 16%);
  -webkit-mask: url("../assets/svg/world-map-countries.svg") center / contain no-repeat;
  mask: url("../assets/svg/world-map-countries.svg") center / contain no-repeat;
  transform: scale(1.07);
  transform-origin: center;
  opacity: 0.8;
  filter:
    saturate(1.08)
    blur(0.15px)
    drop-shadow(0 0 4px rgba(201, 255, 0, 0.22));
  pointer-events: none;
  transition: opacity 0.35s ease, filter 0.35s ease;
}

.stats-world-map__dots::before,
.stats-world-map__dots::after {
  content: none;
  display: none;
}

.stats-world-map[data-map-mode="heat"] .stats-world-map__shape {
  opacity: 0.9;
  filter:
    grayscale(1)
    brightness(1.42)
    contrast(0.98)
    drop-shadow(0 0 7px rgba(201, 255, 0, 0.08));
}

.stats-world-map[data-map-mode="heat"] .stats-world-map__dots {
  opacity: 1;
  filter:
    saturate(1.18)
    blur(0.15px)
    drop-shadow(0 0 5px rgba(201, 255, 0, 0.34))
    drop-shadow(0 0 12px rgba(201, 255, 0, 0.11));
}

.stats-world-map__scale {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 1px;
  display: grid;
  grid-template-columns: auto minmax(120px, 1fr) auto;
  align-items: center;
  gap: 8px;
  color: rgba(244, 241, 236, 0.43);
  font-size: 7px;
  line-height: 1;
  font-weight: 600;
  text-transform: uppercase;
}

.stats-world-map__scale i {
  height: 9px;
  background: linear-gradient(90deg, rgba(201, 255, 0, 0.02), rgba(201, 255, 0, 0.88));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.035);
}

/* FOLLOWERS GROWTH */

.stats-followers__metrics {
  padding: 2px 22px 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 20px;
}

.stats-followers__metrics > div > strong {
  display: block;
  color: var(--stats-text);
  font-size: clamp(28px, 2.1vw, 37px);
  line-height: 0.92;
  font-weight: 500;
  letter-spacing: -0.025em;
  font-variant-numeric: tabular-nums;
}

.stats-followers__metrics span {
  display: block;
  margin-top: 8px;
  color: rgba(244, 241, 236, 0.42);
  font-size: 8px;
  line-height: 1;
  font-weight: 600;
  text-transform: uppercase;
}

.stats-followers__metrics p strong {
  display: block;
  color: var(--stats-accent);
  font-size: 11px;
  line-height: 1;
  font-weight: 700;
}

.stats-bars-chart {
  position: absolute;
  inset: 158px 20px 20px 20px;
  padding: 4px 6px 26px 48px;
}

.stats-bars-chart__grid {
  position: absolute;
  inset: 4px 6px 26px 48px;
  display: grid;
  grid-template-rows: repeat(5, 1fr);
}

.stats-bars-chart__grid i {
  border-top: 1px dashed rgba(255, 255, 255, 0.075);
}

.stats-bars-chart__grid i:last-child {
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.stats-bars-chart__axis {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 23px;
  width: 42px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  color: rgba(244, 241, 236, 0.43);
  font-size: 7px;
  line-height: 1;
  font-weight: 500;
  text-align: right;
}

.stats-bars-chart__bars {
  position: relative;
  z-index: 2;
  height: 100%;
  display: grid;
  grid-template-columns: repeat(12, minmax(5px, 1fr));
  align-items: end;
  gap: clamp(5px, 0.65vw, 11px);
}

.stats-bars-chart__bars > span {
  position: relative;
  height: var(--bar);
  min-height: 3px;
  background: linear-gradient(180deg, #d9ff45, #9cca00);
  box-shadow: 0 0 12px rgba(201, 255, 0, 0.22);
  transform-origin: center bottom;
  transition: height 0.55s cubic-bezier(0.16, 1, 0.3, 1);
}

.stats-bars-chart__bars > span::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.25), transparent 42%);
  opacity: 0.45;
}

.stats-bars-chart__bars > span > i {
  position: absolute;
  left: 50%;
  top: calc(100% + 11px);
  color: rgba(244, 241, 236, 0.5);
  font: normal 600 7px/1 var(--font-main);
  text-transform: uppercase;
  transform: translateX(-50%);
}

/* Reveal only */
html.stats-geography-animations-ready .stats-dashboard-row--geography .stats-panel {
  opacity: 0;
  transform: translate3d(0, 22px, 0);
}

html.stats-geography-animations-ready.stats-geography-is-visible .stats-dashboard-row--geography .stats-panel {
  opacity: 1;
  transform: translate3d(0, 0, 0);
  transition: opacity 0.72s ease, transform 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}

html.stats-geography-animations-ready.stats-geography-is-visible .stats-dashboard-row--geography .stats-panel:nth-child(2) { transition-delay: 0.08s; }
html.stats-geography-animations-ready.stats-geography-is-visible .stats-dashboard-row--geography .stats-panel:nth-child(3) { transition-delay: 0.16s; }

html.stats-geography-animations-ready.stats-geography-is-visible .stats-country-list__bar i {
  animation: statsCountryBarIn 0.75s cubic-bezier(0.16, 1, 0.3, 1) both;
}

html.stats-geography-animations-ready.stats-geography-is-visible .stats-bars-chart__bars > span {
  animation: statsFollowerBarIn 0.72s cubic-bezier(0.16, 1, 0.3, 1) both;
}

html.stats-geography-animations-ready.stats-geography-is-visible .stats-bars-chart__bars > span:nth-child(2) { animation-delay: 0.025s; }
html.stats-geography-animations-ready.stats-geography-is-visible .stats-bars-chart__bars > span:nth-child(3) { animation-delay: 0.05s; }
html.stats-geography-animations-ready.stats-geography-is-visible .stats-bars-chart__bars > span:nth-child(4) { animation-delay: 0.075s; }
html.stats-geography-animations-ready.stats-geography-is-visible .stats-bars-chart__bars > span:nth-child(5) { animation-delay: 0.10s; }
html.stats-geography-animations-ready.stats-geography-is-visible .stats-bars-chart__bars > span:nth-child(6) { animation-delay: 0.125s; }
html.stats-geography-animations-ready.stats-geography-is-visible .stats-bars-chart__bars > span:nth-child(7) { animation-delay: 0.15s; }
html.stats-geography-animations-ready.stats-geography-is-visible .stats-bars-chart__bars > span:nth-child(8) { animation-delay: 0.175s; }
html.stats-geography-animations-ready.stats-geography-is-visible .stats-bars-chart__bars > span:nth-child(9) { animation-delay: 0.20s; }
html.stats-geography-animations-ready.stats-geography-is-visible .stats-bars-chart__bars > span:nth-child(10) { animation-delay: 0.225s; }
html.stats-geography-animations-ready.stats-geography-is-visible .stats-bars-chart__bars > span:nth-child(11) { animation-delay: 0.25s; }
html.stats-geography-animations-ready.stats-geography-is-visible .stats-bars-chart__bars > span:nth-child(12) { animation-delay: 0.275s; }

@keyframes statsCountryBarIn {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}

@keyframes statsFollowerBarIn {
  from { transform: scaleY(0); }
  to { transform: scaleY(1); }
}

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

  .stats-panel--followers-growth {
    grid-column: 1 / -1;
    min-height: 430px;
  }
}

@media (max-width: 820px) {
  .stats-dashboard-row__inner--geography {
    grid-template-columns: 1fr;
  }

  .stats-panel--followers-growth {
    grid-column: auto;
  }
}

@media (max-width: 520px) {
  .stats-country-list {
    padding-inline: 16px;
  }

  .stats-country-list li {
    grid-template-columns: 23px 17px minmax(82px, 1fr) 50px 32px;
    gap: 7px;
    font-size: 9px;
  }

  .stats-world-map {
    inset-inline: 8px;
  }

  .stats-bars-chart {
    inset-inline: 10px;
    padding-left: 42px;
  }

  .stats-bars-chart__grid {
    left: 42px;
  }

  .stats-bars-chart__bars {
    gap: 4px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html.stats-geography-animations-ready.stats-geography-is-visible .stats-country-list__bar i,
  html.stats-geography-animations-ready.stats-geography-is-visible .stats-bars-chart__bars > span {
    animation: none;
  }

  html.stats-geography-animations-ready .stats-dashboard-row--geography .stats-panel {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* =========================================================
   MAP SCALE REFINEMENT + SECTION 04 — PERFORMANCE ROW
========================================================= */

.stats-world-map {
  inset: 64px 10px 12px;
}

.stats-world-map__shape,
.stats-world-map__dots {
  inset: 1% 1% 10%;
  transform: scale(0.98);
}

.stats-dashboard-row--performance {
  padding-bottom: 42px;
  background:
    radial-gradient(circle at 18% 12%, rgba(201, 255, 0, 0.018), transparent 30%),
    var(--stats-bg);
}

.stats-dashboard-row__inner--performance {
  padding-top: 8px;
  grid-template-columns: minmax(320px, 0.96fr) minmax(330px, 0.92fr) minmax(360px, 1.08fr);
  gap: 24px;
}

.stats-dashboard-row--performance .stats-panel {
  min-height: 390px;
}

.stats-panel--genres,
.stats-panel--engagement,
.stats-panel--top-releases {
  overflow: visible;
}

/* STREAMS BY GENRE */

.stats-genre-chart {
  min-height: 300px;
  padding: 20px 22px 28px;
  display: grid;
  grid-template-columns: minmax(170px, 0.9fr) minmax(155px, 1fr);
  align-items: center;
  gap: clamp(18px, 2vw, 34px);
}

.stats-genre-chart__donut {
  position: relative;
  width: min(100%, 210px);
  aspect-ratio: 1;
  justify-self: center;
}


.stats-genre-chart__legend {
  margin: 0;
  padding: 0;
  display: grid;
  gap: 15px;
  list-style: none;
}

.stats-genre-chart__legend li > button {
  min-width: 0;
  display: grid;
  grid-template-columns: 11px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  color: rgba(244, 241, 236, 0.72);
  font-size: 15px;
  line-height: 1;
  font-weight: 500;
}

.stats-genre-chart__legend button > i {
  width: 10px;
  height: 10px;
  border-radius: 3px;
  background: var(--genre-color);
  box-shadow: 0 0 8px color-mix(in srgb, var(--genre-color) 38%, transparent);
}

.stats-genre-chart__legend button > span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.stats-genre-chart__legend button > strong {
  color: rgba(244, 241, 236, 0.88);
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}

/* ENGAGEMENT OVERVIEW */

.stats-engagement-grid {
  padding: 5px 22px 24px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.stats-engagement-card {
  position: relative;
  min-height: 139px;
  padding: 17px 16px 15px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.085);
  border-radius: 5px;
  background:
    linear-gradient(140deg, rgba(255, 255, 255, 0.018), transparent 58%),
    rgba(255, 255, 255, 0.008);
  transition: border-color 0.28s ease, background 0.28s ease, transform 0.28s ease;
}

.stats-engagement-card:hover {
  border-color: rgba(201, 255, 0, 0.26);
  background: rgba(201, 255, 0, 0.018);
  transform: translateY(-2px);
}

.stats-engagement-card > span {
  display: block;
  max-width: calc(100% - 28px);
  color: rgba(244, 241, 236, 0.48);
  font-size: 8px;
  line-height: 1;
  font-weight: 600;
  letter-spacing: 0.035em;
  text-transform: uppercase;
}

.stats-engagement-card > i {
  position: absolute;
  top: 15px;
  right: 15px;
  color: var(--stats-accent);
  font-size: 17px;
  filter: drop-shadow(0 0 8px rgba(201, 255, 0, 0.14));
}

.stats-engagement-card > strong {
  display: block;
  margin-top: 17px;
  color: var(--stats-text);
  font-size: clamp(25px, 2vw, 32px);
  line-height: 0.94;
  font-weight: 500;
  letter-spacing: -0.025em;
  font-variant-numeric: tabular-nums;
}

.stats-engagement-card p {
  margin-top: 13px;
}

.stats-engagement-card p b {
  display: block;
  color: var(--stats-accent);
  font-size: 9px;
  line-height: 1;
  font-weight: 700;
}

.stats-engagement-card p.is-negative b {
  color: #d9ff45;
}

.stats-engagement-card p small {
  display: block;
  margin-top: 5px;
  color: rgba(244, 241, 236, 0.34);
  font-size: 6px;
  line-height: 1;
  font-weight: 600;
  letter-spacing: 0.035em;
  text-transform: uppercase;
}

/* TOP PERFORMING RELEASES */

.stats-panel--top-releases {
  padding-bottom: 58px;
}

.stats-panel--top-releases .stats-chart-select {
  width: 112px;
}

.stats-release-list {
  margin: 0;
  padding: 0 22px;
  display: grid;
  gap: 10px;
  list-style: none;
}

.stats-release-list li {
  min-width: 0;
  grid-template-columns: 26px 38px minmax(0, 1fr) auto;
  align-items: center;
  gap: 11px;
}

.stats-release-list__rank {
  color: rgba(244, 241, 236, 0.44);
  font-size: 25px;
  line-height: 1;
  font-weight: 400;
  font-variant-numeric: tabular-nums;
}

.stats-release-list img {
  width: 38px;
  height: 38px;
  object-fit: cover;
  border-radius: 2px;
  filter: grayscale(0.32) contrast(1.08) brightness(0.7);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.07);
}

.stats-release-list li:nth-child(2) img { object-position: 30% 50%; }
.stats-release-list li:nth-child(3) img { object-position: 68% 50%; }
.stats-release-list li:nth-child(4) img { object-position: 48% 22%; }
.stats-release-list li:nth-child(5) img { object-position: 72% 75%; }

.stats-release-list li > div {
  min-width: 0;
}

.stats-release-list li > div strong,
.stats-release-list li > div span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-transform: uppercase;
}

.stats-release-list li > div strong {
  color: rgba(244, 241, 236, 0.88);
  font-size: 15px;
  line-height: 1;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.stats-release-list li > div span {
  margin-top: 5px;
  color: rgba(244, 241, 236, 0.48);
  font-size: 13px;
  line-height: 1;
  font-weight: 500;
}

.stats-release-list li > b {
  color: rgba(244, 241, 236, 0.9);
  font-size: 14px;
  line-height: 1;
  font-weight: 500;
  text-align: right;
  font-variant-numeric: tabular-nums;
}

html.stats-performance-animations-ready .stats-dashboard-row--performance .stats-panel {
  opacity: 0;
  transform: translate3d(0, 22px, 0);
}

html.stats-performance-animations-ready.stats-performance-is-visible .stats-dashboard-row--performance .stats-panel {
  opacity: 1;
  transform: translate3d(0, 0, 0);
  transition: opacity 0.72s ease, transform 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}

html.stats-performance-animations-ready.stats-performance-is-visible .stats-dashboard-row--performance .stats-panel:nth-child(2) {
  transition-delay: 0.08s;
}

html.stats-performance-animations-ready.stats-performance-is-visible .stats-dashboard-row--performance .stats-panel:nth-child(3) {
  transition-delay: 0.16s;
}

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

  .stats-panel--top-releases {
    grid-column: 1 / -1;
  }
}

@media (max-width: 820px) {
  .stats-dashboard-row__inner--performance {
    grid-template-columns: 1fr;
  }

  .stats-panel--top-releases {
    grid-column: auto;
  }
}

@media (max-width: 560px) {
  .stats-world-map {
    inset: 68px 14px 14px;
  }

  .stats-genre-chart {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .stats-genre-chart__donut {
    width: min(64vw, 210px);
  }

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

  .stats-dashboard-row--performance .stats-panel {
    min-height: auto;
  }

  .stats-panel--engagement,
  .stats-panel--genres {
    padding-bottom: 14px;
  }

  .stats-release-list {
    padding-inline: 16px;
  }

  .stats-release-list li {
    grid-template-columns: 24px 36px minmax(0, 1fr) auto;
    gap: 8px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html.stats-performance-animations-ready .stats-dashboard-row--performance .stats-panel {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* INTERACTIVE CHARTS AND RELEASE LINKS */
.stats-platforms [data-chart-item],
.stats-genre-chart [data-chart-item] {
  cursor: pointer;
  outline: none;
  transition: opacity .24s ease, filter .24s ease, transform .24s ease, color .24s ease, background .24s ease;
}

.stats-platforms [data-chart-item]:focus-visible,
.stats-genre-chart [data-chart-item]:focus-visible {
  outline: 2px solid rgba(201, 255, 0, .9);
  outline-offset: 4px;
}

.stats-platforms.is-chart-active [data-chart-item].is-dimmed,
.stats-genre-chart.is-chart-active [data-chart-item].is-dimmed {
  opacity: .2;
  filter: saturate(.35);
}

.stats-platforms [data-chart-item].is-active,
.stats-genre-chart [data-chart-item].is-active {
  opacity: 1;
  filter: drop-shadow(0 0 8px rgba(201, 255, 0, .36));
}

.stats-platforms__legend [data-chart-item].is-active,
.stats-genre-chart__legend [data-chart-item].is-active {
  color: var(--stats-text);
  transform: translateX(4px);
}

.stats-platforms__total strong,
.stats-platforms__total span,
.stats-genre-chart__donut > span strong,
.stats-genre-chart__donut > span small {
  transition: opacity .18s ease, transform .18s ease;
}

.stats-platforms__total.is-updating strong,
.stats-platforms__total.is-updating span,
.stats-genre-chart__donut > span.is-updating strong,
.stats-genre-chart__donut > span.is-updating small {
  opacity: .35;
  transform: translateY(3px);
}

.stats-genre-chart__donut {
  border-radius: 0;
  background: none;
  box-shadow: none;
  transform: none;
}


.stats-genre-chart__donut > svg {
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
  transform: rotate(-90deg);
}

.stats-genre-donut__track,
.stats-genre-donut__segment {
  fill: none;
  stroke-width: 30;
  vector-effect: non-scaling-stroke;
}

.stats-genre-donut__track { stroke: rgba(255, 255, 255, .045); }
.stats-genre-donut__segment { stroke-linecap: butt; transform-origin: 110px 110px; }
.stats-genre-donut__segment--techno { stroke: #bfff00; }
.stats-genre-donut__segment--bass-house { stroke: #38bb47; }
.stats-genre-donut__segment--melodic-house { stroke: #d7d7d4; }
.stats-genre-donut__segment--phonk { stroke: #ff3439; }
.stats-genre-donut__segment--future-bass { stroke: #6330cf; }
.stats-genre-donut__segment--other { stroke: #686868; }

.stats-genre-chart__donut > span {
  position: absolute;
  inset: 30%;
  z-index: 2;
  display: grid;
  place-content: center;
  border-radius: 50%;
  background: #090a0a;
  box-shadow: inset 0 0 22px rgba(255, 255, 255, .018), 0 0 0 1px rgba(255, 255, 255, .035);
  text-align: center;
  pointer-events: none;
}

.stats-genre-chart__donut > span strong {
  display: block;
  color: var(--stats-text);
  font-size: clamp(22px, 2vw, 31px);
  line-height: .95;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}

.stats-genre-chart__donut > span small {
  display: block;
  margin-top: 7px;
  color: rgba(244, 241, 236, .72);
  font-size: 8px;
  line-height: 1;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.stats-release-list li { display: block; }
.stats-release-list li > a {
  min-width: 0;
  padding: 6px 8px;
  display: grid;
  grid-template-columns: 26px 38px minmax(0, 1fr) auto 11px;
  align-items: center;
  gap: 11px;
  border: 1px solid transparent;
  border-radius: 5px;
  transition: transform .24s ease, border-color .24s ease, background .24s ease;
}

.stats-release-list li > a:hover,
.stats-release-list li > a:focus-visible {
  border-color: rgba(201, 255, 0, .24);
  background: rgba(201, 255, 0, .025);
  transform: translateX(4px);
  outline: none;
}

.stats-release-list li > a > div { min-width: 0; }
.stats-release-list li > a > div strong,
.stats-release-list li > a > div span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-transform: uppercase;
}
.stats-release-list li > a > div strong {
  color: rgba(244, 241, 236, .88);
  font-size: 15px;
  line-height: 1;
  font-weight: 600;
  letter-spacing: .02em;
}
.stats-release-list li > a > div span {
  margin-top: 5px;
  color: rgba(244, 241, 236, .48);
  font-size: 13px;
  line-height: 1;
  font-weight: 500;
}
.stats-release-list li > a > b {
  color: rgba(244, 241, 236, .9);
  font-size: 14px;
  line-height: 1;
  font-weight: 500;
  text-align: right;
  font-variant-numeric: tabular-nums;
}
.stats-release-list__arrow {
  color: var(--stats-accent);
  font-size: 9px;
  opacity: .45;
  transition: opacity .24s ease, transform .24s ease;
}
.stats-release-list a:hover .stats-release-list__arrow,
.stats-release-list a:focus-visible .stats-release-list__arrow {
  opacity: 1;
  transform: translateX(2px);
}

@media (max-width: 560px) {
  .stats-release-list li > a {
    grid-template-columns: 24px 36px minmax(0, 1fr) auto 9px;
    gap: 8px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .stats-platforms [data-chart-item],
  .stats-genre-chart [data-chart-item],
  .stats-release-list li > a { transition: none; }
}
