.stats-intro {
  padding-top: 2rem;
}

.section-wrap .terminal-card {
  margin-inline: auto;
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 0.9rem;
}

.stat-card {
  background: var(--panel-light);
  border-radius: 0.9rem;
  padding: 1rem;
}

html.dark .stat-card {
  background: #2d1e44;
}

.stat-label {
  margin: 0;
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.stat-value {
  margin: 0.45rem 0 0;
  font-size: 1.9rem;
  line-height: 1;
  font-weight: 800;
  color: var(--heading-light);
}

html.dark .stat-value {
  color: #fff;
}

.sample-note {
  margin-top: 1rem;
  opacity: 0.85;
}

.warning-panel {
  border: 1px solid rgba(197, 92, 92, 0.45);
}

.analytics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 1rem;
}

.analytics-panel h2 {
  margin-top: 0;
  margin-bottom: 1rem;
}

.bar-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.6rem;
}

.bar-row {
  display: grid;
  grid-template-columns: 44px 1fr 32px;
  gap: 0.6rem;
  align-items: center;
}

.bar-label {
  font-weight: 700;
}

.bar-track {
  border-radius: 999px;
  background: rgba(100, 50, 148, 0.18);
  height: 11px;
  overflow: hidden;
}

.bar-fill {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #7a47ad, #9bcd6b);
}

.bar-value {
  text-align: right;
  font-weight: 700;
}

.rank-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.5rem;
}

.rank-list li {
  display: flex;
  justify-content: space-between;
  border-bottom: 1px solid rgba(100, 50, 148, 0.25);
  padding-bottom: 0.35rem;
}

.table-wrap {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 520px;
}

th,
td {
  text-align: left;
  padding: 0.62rem 0.55rem;
  border-bottom: 1px solid rgba(100, 50, 148, 0.26);
}

th {
  color: var(--heading-light);
}

html.dark th {
  color: #fff;
}

.timeline-scroll {
  overflow-x: auto;
  padding-bottom: 0.8rem;
}

.month-timeline {
  list-style: none;
  margin: 0.5rem 0 0;
  padding: 0.4rem 0.2rem 0;
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(52px, 52px);
  gap: 0.75rem;
  align-items: end;
  min-width: max-content;
}

.month-node {
  display: grid;
  gap: 0.3rem;
  justify-items: center;
}

.month-count {
  margin: 0;
  font-size: 0.76rem;
  font-weight: 700;
}

.month-bar-track {
  width: 20px;
  height: 150px;
  border-radius: 999px;
  background: rgba(100, 50, 148, 0.18);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
}

.month-bar {
  width: 100%;
  min-height: 4px;
  border-radius: 999px;
  background: linear-gradient(180deg, #9bcd6b, #7a47ad);
}

.month-label {
  margin: 0;
  font-size: 0.72rem;
  font-weight: 700;
  text-align: center;
}

.entry-timeline {
  list-style: none;
  margin: 0.8rem 0 0;
  padding: 0.2rem 0.2rem 0.4rem;
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(220px, 220px);
  gap: 1rem;
  min-width: max-content;
  position: relative;
}

.entry-timeline::before {
  content: "";
  position: absolute;
  left: 0.2rem;
  right: 0.2rem;
  top: 14px;
  border-top: 2px solid rgba(100, 50, 148, 0.35);
}

.entry-node {
  position: relative;
  padding-top: 1.2rem;
}

.entry-dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #9bcd6b;
  border: 2px solid #6f3ea1;
  position: absolute;
  left: 0.6rem;
  top: 0.05rem;
  z-index: 1;
}

.entry-card {
  background: var(--panel-light);
  border-radius: 0.8rem;
  padding: 0.85rem;
  min-height: 430px;
}

html.dark .entry-card {
  background: #2d1e44;
}

.entry-date {
  margin: 0;
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.entry-poster {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: contain;
  background: rgba(22, 17, 38, 0.12);
  border-radius: 0.55rem;
  margin-bottom: 0.55rem;
}

.entry-card h3 {
  margin: 0.4rem 0 0.3rem;
  font-size: 1rem;
  line-height: 1.25;
}

.entry-card h3 a {
  color: inherit;
  text-decoration: none;
}

.entry-card h3 a:hover {
  text-decoration: underline;
}

.entry-meta {
  margin: 0;
  font-size: 0.86rem;
}

.country-heatmap-map {
  width: 100%;
  height: 360px;
  border-radius: 0.85rem;
  overflow: hidden;
  border: 1px solid rgba(100, 50, 148, 0.38);
  margin-top: 0.8rem;
}

.country-heatmap-map .leaflet-control-attribution {
  background: rgba(18, 11, 30, 0.75);
  color: rgba(230, 225, 247, 0.75);
}
