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

.outlet-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 28px;
}

.outlet-logo-sm {
  height: 36px;
  width: auto;
  max-width: 120px;
  object-fit: contain;
  flex-shrink: 0;
}

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

/* 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 */
.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-dist-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
  width: 52px;
  text-align: right;
  flex-shrink: 0;
}

/* Timeline chart */
.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, var(--outlet-accent, #3b82f6), color-mix(in srgb, var(--outlet-accent, #3b82f6) 60%, #fff));
  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) {
  .outlet-page { padding: 24px 16px 60px; }
  .charts-grid { grid-template-columns: 1fr; }
  .highlights-row { grid-template-columns: 1fr; }
  .wavelength-cards { grid-template-columns: repeat(2, 1fr); }
  .pie-svg { width: 130px; height: 130px; }
  .h-bar-label { width: 90px; font-size: 11px; }
}

@media (max-width: 640px) {
  .stat-cards { grid-template-columns: repeat(2, 1fr); }
  .outlet-header h1 { font-size: 24px; }
  .wavelength-cards { grid-template-columns: 1fr; }
  .pie-chart-wrap { flex-direction: column; align-items: center; }
  .pie-legend { width: 100%; }
  .h-bar-label { width: 70px; font-size: 10px; }
  .stats-section-title { font-size: 16px; }
}

@media (max-width: 480px) {
  .outlet-page { padding: 16px 12px 48px; }
  .stat-card-value { font-size: 22px; }
  .stat-card-label { font-size: 10px; }
  .chart-panel { padding: 14px; }
  .wavelength-card { padding: 12px; }
}
