main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 6px 24px 40px;
}

.stats-sheet {
  max-width: 820px;
  display: grid;
  gap: 18px;
}

.stats-group {
  display: grid;
  gap: 10px;
}

.yearly-chart {
  display: grid;
  gap: 12px;
  max-width: 760px;
}

.yearly-row {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
}

.yearly-year {
  color: #d9e2ea;
  font-size: 0.65rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding-top: 2px;
}

.yearly-bars {
  display: grid;
  gap: 8px;
}

.yearly-bar {
  display: grid;
  gap: 5px;
}

.yearly-bar-head {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: baseline;
}

.yearly-bar-label {
  color: #718191;
  font-size: 0.56rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.yearly-bar-value {
  color: #9fb0bf;
  font-size: 0.62rem;
  white-space: nowrap;
}

.yearly-track {
  height: 7px;
}

.yearly-empty {
  color: #6d7e8e;
  font-size: 0.64rem;
  letter-spacing: 0.04em;
}

.hours-chart {
  display: grid;
  gap: 8px;
  max-width: 760px;
}

.hours-bar-row {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
}

.hours-bar-label {
  color: #718191;
  font-size: 0.6rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
}

.hours-bar-track {
  height: 8px;
  border-radius: 999px;
  background: rgba(237, 242, 247, 0.05);
  overflow: hidden;
  box-shadow: inset 0 0 0 1px rgba(114, 130, 146, 0.12);
}

.hours-bar-fill {
  height: 100%;
  border-radius: inherit;
}

.hours-bar-fill.book {
  background: linear-gradient(90deg, rgba(144, 170, 196, 0.96), rgba(110, 140, 171, 0.96));
}

.hours-bar-fill.movie {
  background: linear-gradient(90deg, rgba(126, 183, 150, 0.96), rgba(88, 148, 114, 0.96));
}

.hours-bar-fill.manga {
  background: linear-gradient(90deg, rgba(187, 150, 213, 0.96), rgba(143, 109, 176, 0.96));
}

.hours-bar-fill.tv {
  background: linear-gradient(90deg, rgba(197, 158, 113, 0.96), rgba(159, 123, 83, 0.96));
}

.hours-bar-fill.anime {
  background: linear-gradient(90deg, rgba(207, 151, 177, 0.96), rgba(171, 117, 145, 0.96));
}

.hours-bar-value {
  color: #d9e2ea;
  font-size: 0.65rem;
  letter-spacing: 0.01em;
  white-space: nowrap;
}

.group-label {
  color: #667787;
  font-size: 0.5rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.stats-divider {
  height: 1px;
  background: linear-gradient(90deg, rgba(82, 99, 115, 0.7), rgba(82, 99, 115, 0));
}

.header-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
  align-items: baseline;
}

.header-stat {
  display: flex;
  flex-direction: row;
  align-items: baseline;
  gap: 5px;
  min-width: 0;
  white-space: nowrap;
  padding: 2px 0;
}

.header-stat-label {
  color: #667787;
  font-size: 0.46rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  white-space: nowrap;
}

.header-stat-value {
  color: #e4ebf2;
  font-size: 0.72rem;
  line-height: 1;
  letter-spacing: 0.01em;
  white-space: nowrap;
}

.header-stat-meta {
  color: #8fa0af;
  font-size: 0.62rem;
  line-height: 1;
  letter-spacing: 0.01em;
  white-space: nowrap;
}

.note {
  color: #6d7e8e;
  font-size: 0.64rem;
  line-height: 1.6;
  max-width: 68ch;
}

@media (max-width: 640px) {
  main {
    padding: 6px 16px 28px;
  }

  .yearly-row {
    grid-template-columns: 42px minmax(0, 1fr);
  }

  .header-stats {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
}
