:root {
  --bg: #181818;
  --s1: #1e1e1e;
  --s2: #212121;
  --s3: #272727;
  --s4: #2f2f2f;
  --s5: #3a3a3a;
  --b1: rgba(255,255,255,0.055);
  --b2: rgba(255,255,255,0.10);
  --b3: rgba(255,255,255,0.17);
  --acc: #f23987;
  --acc-d: rgba(242,57,135,0.14);
  --acc-g: rgba(242,57,135,0.26);
  --acc-l: #ff79b0;
  --grn: #00e676;
  --txt: #eeeeee;
  --txt2: #aaaaaa;
  --mut: #666666;
  --radius: 13px;
  --radius-sm: 9px;
  --radius-xs: 6px;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  background:
    radial-gradient(circle at top, rgba(242,57,135,0.06), transparent 28%),
    var(--bg);
  color: var(--txt);
  font-family: system-ui, "Segoe UI", sans-serif;
}

body {
  padding: 18px;
}

.wrap {
  max-width: 1120px;
  margin: 0 auto;
}

.topbar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 22px;
}

.topbar-left,
.topbar-right {
  display: flex;
  flex-direction: column;
}

.topbar-right {
  align-items: flex-end;
}

.title {
  margin: 0 0 22px;
  font-size: 56px;
  line-height: 0.95;
  letter-spacing: -0.05em;
  font-weight: 850;
  color: var(--txt);
}

.tabs {
  display: flex;
  align-items: center;
  gap: 22px;
}

.tab {
  background: transparent;
  border: 0;
  color: var(--txt2);
  font-size: 16px;
  font-weight: 750;
  padding: 0 0 12px;
  position: relative;
  cursor: pointer;
}

.tab.active {
  color: var(--txt);
}

.tab.active::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 80px;
  height: 4px;
  border-radius: 999px;
  background: var(--txt);
}

.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-left: 7px;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--acc);
  color: #fff;
  font-size: 10px;
  font-weight: 900;
}

.range-select {
  min-width: 120px;
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px solid var(--b2);
  background: linear-gradient(180deg, var(--s3), var(--s2));
  color: var(--txt);
  font-size: 15px;
  font-weight: 750;
  outline: none;
}

.hero {
  margin-bottom: 22px;
}

.hero-title {
  margin: 0 0 22px;
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.03;
  letter-spacing: -0.05em;
  font-weight: 850;
  color: var(--txt);
}

.growth {
  color: var(--grn);
}

.hero-title span,
.title,
.panel-title,
.overview-value {
  text-rendering: geometricPrecision;
}

.hero-metrics {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
}

.metric-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  min-height: 44px;
  border-radius: 999px;
  background: #343434;
  border: 1px solid transparent;
  color: var(--txt);
  font-size: 14px;
  font-weight: 750;
}

.metric-pill-main {
  background: #f2f2f2;
  color: #111;
}

.metric-pill-icon {
  font-size: 13px;
  line-height: 1;
}

.hero-meta {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 22px;
  flex-wrap: wrap;
}

.hero-meta-muted {
  color: var(--txt2);
  font-size: 14px;
  font-weight: 650;
}

.hero-meta-strong {
  color: var(--txt);
  font-size: 15px;
  font-weight: 800;
}

.chart-section {
  margin-bottom: 28px;
}

.chart-shell {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 16px;
  min-height: 420px;
}

.y-axis {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding-top: 8px;
  color: #a6b3c9;
  font-size: 13px;
  font-weight: 750;
}

.bars {
  position: relative;
  display: grid;
  align-items: end;
  gap: 22px;
  min-height: 420px;
  padding: 8px 8px 0;
}

.bars::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, var(--b1) 1px, transparent 1px) 0 0 / 100% 20%;
  pointer-events: none;
}

.bar-group {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: end;
  justify-content: center;
  height: 100%;
}

.bar-col {
  width: 100%;
  max-width: 96px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: end;
  gap: 14px;
}

.bar-stack {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 320px;
  display: flex;
  align-items: end;
}

.bar-bg,
.bar-fill {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  border-radius: 8px 8px 0 0;
}

.bar-bg {
  height: 100%;
  background: #474747;
  opacity: 0.9;
}

.bar-fill {
  min-height: 8px;
  background: linear-gradient(180deg, #ff7eb3, var(--acc));
  box-shadow: 0 8px 22px var(--acc-g);
  transition: height 220ms ease;
}

.bar-fill.zero {
  height: 0 !important;
  min-height: 0;
  box-shadow: none;
}

.bar-label {
  color: #9aa8bf;
  font-size: 13px;
  font-weight: 800;
}

.bottom-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.panel {
  background: linear-gradient(180deg, var(--s1), #1a1a1a);
  border: 1px solid var(--b1);
  border-radius: var(--radius);
  padding: 18px;
}

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

.panel-title {
  margin: 0 0 6px;
  font-size: 20px;
  font-weight: 850;
  color: var(--txt);
}

.panel-subtitle {
  color: var(--txt2);
  font-size: 14px;
  font-weight: 650;
}

.panel-link {
  border: 0;
  background: transparent;
  color: var(--txt);
  font-size: 14px;
  font-weight: 750;
  cursor: pointer;
}

.track-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.track-item {
  display: grid;
  grid-template-columns: 60px 1fr;
  gap: 14px;
  align-items: center;
}

.track-cover {
  width: 60px;
  height: 60px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--acc-d), var(--s4));
  border: 1px solid var(--b1);
  overflow: hidden;
  display: grid;
  place-items: center;
  color: var(--acc-l);
  font-size: 18px;
  font-weight: 850;
}

.track-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.track-name {
  margin: 0 0 6px;
  color: var(--txt);
  font-size: 15px;
  line-height: 1.25;
  font-weight: 800;
}

.track-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  color: var(--txt2);
  font-size: 14px;
  font-weight: 650;
}

.overview-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}

.overview-card {
  padding: 14px;
  border-radius: 10px;
  background: linear-gradient(180deg, var(--s2), var(--s1));
  border: 1px solid var(--b1);
}

.overview-card-accent {
  background: linear-gradient(180deg, var(--acc-d), rgba(242,57,135,0.04));
  border-color: var(--acc-g);
}

.overview-label {
  margin-bottom: 8px;
  color: var(--txt2);
  font-size: 13px;
  font-weight: 700;
}

.overview-value {
  color: var(--txt);
  font-size: 28px;
  line-height: 1;
  letter-spacing: -0.03em;
  font-weight: 850;
}

.info-list {
  border: 1px solid var(--b1);
  border-radius: 10px;
  overflow: hidden;
  background: linear-gradient(180deg, var(--s2), var(--s1));
}

.info-row {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--b1);
}

.info-row:last-child {
  border-bottom: 0;
}

.info-key {
  color: var(--txt2);
  font-size: 13px;
  font-weight: 700;
}

.info-value {
  color: var(--txt);
  font-size: 13px;
  font-weight: 800;
  text-align: right;
}

.empty-state {
  color: var(--txt2);
  font-size: 14px;
  font-weight: 650;
}

button,
select {
  font: inherit;
}

@media (max-width: 980px) {
  .bottom-grid {
    grid-template-columns: 1fr;
  }

  .hero-meta {
    width: 100%;
    margin-left: 0;
  }
}

@media (max-width: 720px) {
  .title {
    font-size: 44px;
  }

  .topbar {
    flex-direction: column;
  }

  .tabs {
    flex-wrap: wrap;
    gap: 16px;
  }

  .chart-shell {
    grid-template-columns: 40px 1fr;
  }

  .bars {
    gap: 10px;
  }

  .bar-col {
    max-width: 54px;
  }

  .bar-stack {
    min-height: 250px;
  }

  .overview-grid {
    grid-template-columns: 1fr;
  }
}