.critic-page {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 32px 24px 80px;
}

.critic-header { margin-bottom: 28px; }
.critic-header h1 {
  font-size: 32px;
  font-weight: 800;
  color: #0d1117;
  letter-spacing: -0.5px;
  line-height: 1.15;
}

/* Section headers */
.stats-section-title {
  font-size: 18px;
  font-weight: 800;
  color: #0d1117;
  letter-spacing: -0.3px;
  margin: 36px 0 16px;
  padding-bottom: 8px;
  border-bottom: 1px solid #d8dae0;
}

.stats-section-title:first-of-type { margin-top: 0; }

/* Stat cards */
.stat-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 12px;
  margin-bottom: 20px;
}

.stat-card {
  background: #fff;
  border: 1px solid var(--border-color);
  border-radius: 10px;
  padding: 18px 16px;
  text-align: center;
}

.stat-card-value {
  font-size: 28px;
  font-weight: 800;
  color: #0d1117;
  line-height: 1.2;
  letter-spacing: -0.5px;
}

.stat-card-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.6px;
  margin-top: 4px;
}

.stat-green  { color: #1a9a4a; }
.stat-yellow { color: #b08800; }
.stat-red    { color: #c53030; }
.stat-muted  { color: var(--text-muted); }

/* Charts grid */
.charts-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 20px;
}

.chart-panel {
  background: #fff;
  border: 1px solid var(--border-color);
  border-radius: 10px;
  padding: 20px;
}

.chart-panel.full-width {
  grid-column: 1 / -1;
}

.chart-title {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 14px;
}

/* Horizontal bar rows (reusable) */
.h-bar-rows {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.h-bar-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.h-bar-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
  width: 110px;
  text-align: right;
  flex-shrink: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.h-bar-track {
  flex: 1;
  height: 18px;
  background: #f3f4f6;
  border-radius: 4px;
  overflow: hidden;
}

.h-bar-fill {
  height: 100%;
  border-radius: 4px;
  min-width: 2px;
  transition: width 0.4s ease;
}

.h-bar-value {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-secondary);
  width: 32px;
  flex-shrink: 0;
}

/* Score distribution colors */
.score-dist-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
  width: 52px;
  text-align: right;
  flex-shrink: 0;
}

/* Timeline chart — vertical bars */
.timeline-chart {
  display: flex;
  align-items: flex-end;
  gap: 4px;
  height: 100px;
  padding-top: 8px;
}

.timeline-col {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  min-width: 0;
}

.timeline-bar-wrap {
  width: 100%;
  height: 80px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.timeline-bar {
  width: 100%;
  max-width: 28px;
  background: linear-gradient(180deg, #3b82f6, #60a5fa);
  border-radius: 3px 3px 0 0;
  min-height: 3px;
  transition: height 0.4s ease;
  position: relative;
}

.timeline-bar:hover { opacity: 0.85; }

.timeline-bar-count {
  position: absolute;
  top: -16px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 10px;
  font-weight: 700;
  color: var(--text-secondary);
  white-space: nowrap;
}

.timeline-label {
  font-size: 9px;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0.2px;
  white-space: nowrap;
}

/* Pie chart */
.pie-chart-wrap {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 8px 0;
}

.pie-svg {
  width: 160px;
  height: 160px;
  flex-shrink: 0;
}

.pie-slice {
  transition: opacity 0.15s;
  cursor: default;
}

.pie-slice:hover {
  opacity: 0.75;
}

.pie-legend {
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-width: 0;
  flex: 1;
}

.pie-legend-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.3;
}

.pie-swatch {
  width: 10px;
  height: 10px;
  border-radius: 2px;
  flex-shrink: 0;
}

.pie-legend-label {
  flex: 1;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-weight: 600;
}

.pie-legend-value {
  font-weight: 700;
  color: var(--text-primary);
  flex-shrink: 0;
}

.pie-legend-pct {
  font-size: 11px;
  color: var(--text-muted);
  width: 36px;
  text-align: right;
  flex-shrink: 0;
}

/* Highlights row */
.highlights-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 20px;
}

.highlight-card {
  background: #fff;
  border: 1px solid var(--border-color);
  border-radius: 10px;
  padding: 16px 18px;
  display: flex;
  align-items: center;
  gap: 14px;
}

.highlight-cover {
  width: 40px;
  height: 53px;
  border-radius: 6px;
  object-fit: cover;
  flex-shrink: 0;
  background: #e2e4e9;
}

.highlight-cover-placeholder {
  width: 40px;
  height: 53px;
  border-radius: 6px;
  background: #e2e4e9;
  flex-shrink: 0;
}

.highlight-info { flex: 1; min-width: 0; }

.highlight-label {
  font-size: 10px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 2px;
}

.highlight-game {
  font-size: 14px;
  font-weight: 700;
  color: #0d1117;
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.highlight-game a { color: inherit; transition: color 0.15s; }
.highlight-game a:hover { color: var(--accent-blue); }

.highlight-score {
  font-size: 20px;
  font-weight: 800;
  flex-shrink: 0;
}

/* Wavelengths */
.wavelength-section { margin-top: 20px; }

.wavelength-group {
  margin-bottom: 20px;
}

.wavelength-group-title {
  font-size: 14px;
  font-weight: 700;
  color: #0d1117;
  margin-bottom: 10px;
}

.wavelength-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.wavelength-card {
  background: #fff;
  border: 1px solid var(--border-color);
  border-radius: 10px;
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.wavelength-card-top {
  display: flex;
  align-items: center;
  gap: 12px;
}

.wavelength-info { flex: 1; min-width: 0; }

.wavelength-name {
  font-size: 14px;
  font-weight: 700;
  color: #0d1117;
  line-height: 1.25;
}

.wavelength-name a { color: inherit; transition: color 0.15s; }
.wavelength-name a:hover { color: var(--accent-blue); }

.wavelength-meta {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 2px;
}

.wavelength-badge {
  font-size: 13px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 6px;
  flex-shrink: 0;
  white-space: nowrap;
}

.wavelength-games {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
}

.wavelength-game-thumb {
  width: 28px;
  height: 37px;
  border-radius: 4px;
  object-fit: cover;
  background: #e2e4e9;
  transition: opacity 0.15s;
}

.wavelength-game-thumb:hover {
  opacity: 0.8;
}

.wavelength-game-placeholder {
  width: 28px;
  height: 37px;
  border-radius: 4px;
  background: #e2e4e9;
}

.wavelength-badge.close { background: #dcfce7; color: #166534; }
.wavelength-badge.far   { background: #fee2e2; color: #991b1b; }

.wavelength-empty {
  font-size: 14px;
  color: var(--text-muted);
  padding: 20px 0;
}

@media (max-width: 768px) {
  .charts-grid { grid-template-columns: 1fr; }
  .highlights-row { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .stat-cards { grid-template-columns: repeat(2, 1fr); }
  .critic-header h1 { font-size: 26px; }
}
