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

.page-header {
  margin-bottom: 24px;
  border-bottom: 1px solid #d8dae0;
  padding-bottom: 16px;
}

.page-header h1 {
  font-size: 28px;
  font-weight: 800;
  color: #0d1117;
  letter-spacing: -0.5px;
  line-height: 1.1;
}

.page-header p {
  font-size: 15px;
  color: var(--text-secondary);
  margin-top: 6px;
}

/* Showcase Grid */
.showcase-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px 40px;
  margin-bottom: 36px;
}

.showcase-panel {
  min-width: 0;
}

.showcase-header {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 12px;
  border-bottom: 1px solid #d8dae0;
  padding-bottom: 8px;
}

.showcase-title {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.3px;
  color: #0d1117;
}

.showcase-subtitle {
  font-size: 13px;
  color: var(--text-secondary);
}

/* Active Critic Entries */
.active-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: repeat(5, auto);
  grid-auto-flow: column;
  gap: 0 40px;
}

.active-entry {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 8px 14px 0;
  border-bottom: 1px solid #d8dae0;
  text-decoration: none;
  color: inherit;
  transition: background 0.12s;
}

.active-entry:last-child { border-bottom: none; }

@media (min-width: 769px) {
  .active-entry:nth-child(5) { border-bottom: none; }
}
.active-entry:hover { background: rgba(0, 0, 0, 0.06); }

.active-rank {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-muted);
  width: 26px;
  text-align: center;
  flex-shrink: 0;
}

.active-name {
  flex: 1;
  min-width: 0;
  font-size: 16px;
  font-weight: 600;
  color: #1a1f2e;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.active-count {
  font-size: 15px;
  font-weight: 800;
  color: #0d1117;
  flex-shrink: 0;
}

.active-count-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
  margin-left: 3px;
}

.sc-green  { background: #3da66a; }
.sc-lime   { background: #7ab33e; }
.sc-amber  { background: #d4911e; }
.sc-orange { background: #d46a2a; }
.sc-red    { background: #c94444; }
.sc-muted  { background: #c4c7ce; }

/* Wavelength Pair Cards */
.wave-list { display: flex; flex-direction: column; gap: 10px; }

.wave-card {
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid #ecedf0;
  background: #fafbfc;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.wave-card:hover {
  border-color: #d1d5db;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

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

.wave-rank {
  font-size: 11px;
  font-weight: 800;
  color: var(--text-muted);
  width: 18px;
  text-align: center;
  flex-shrink: 0;
}

.wave-pair { flex: 1; min-width: 0; }

.wave-names {
  font-size: 13px;
  font-weight: 700;
  color: #0d1117;
  line-height: 1.3;
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

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

.wave-vs {
  font-size: 10px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

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

.wave-badge {
  font-size: 14px;
  font-weight: 800;
  padding: 6px 12px;
  border-radius: 8px;
  flex-shrink: 0;
  letter-spacing: -0.3px;
}

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

.wave-games {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
  margin-top: 10px;
}

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

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

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

/* Category Entries */
.cat-list { display: flex; flex-direction: column; gap: 6px; }

.cat-entry {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 8px;
  transition: background 0.15s;
}

.cat-entry:hover { background: #f6f7f9; }

.cat-tag {
  font-size: 11px;
  font-weight: 700;
  color: #fff;
  padding: 3px 10px;
  border-radius: 5px;
  flex-shrink: 0;
  min-width: 70px;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 110px;
}

.cat-name {
  flex: 1;
  min-width: 0;
  font-size: 14px;
  font-weight: 700;
  color: #0d1117;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

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

.cat-count {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  flex-shrink: 0;
}

.showcase-empty {
  font-size: 13px;
  color: var(--text-muted);
  padding: 20px 0;
  text-align: center;
  font-style: italic;
}

/* Section Divider */
.section-divider {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin: 40px 0 16px;
  padding-bottom: 12px;
  border-bottom: 2px solid #e2e4e9;
}

.section-title {
  font-size: 22px;
  font-weight: 800;
  color: #0d1117;
  letter-spacing: -0.3px;
}

.section-count {
  font-size: 14px;
  color: var(--text-muted);
}

/* Filter Bar */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
  padding: 14px 16px;
  background: #f8f9fa;
  border-radius: 10px;
  border: 1px solid #d8dae0;
}

.search-wrap {
  flex: 1;
  min-width: 180px;
  position: relative;
}

.search-wrap svg {
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
}

.search-wrap input {
  width: 100%;
  padding: 8px 12px 8px 32px;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  font-size: 13px;
  color: var(--text-primary);
  background: #fff;
  transition: border-color 0.15s;
}

.search-wrap input:focus {
  outline: none;
  border-color: var(--accent-blue);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.filter-bar select {
  padding: 8px 12px;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  font-size: 13px;
  color: var(--text-primary);
  background: #fff;
  min-width: 150px;
  cursor: pointer;
}

.filter-bar button {
  padding: 8px 20px;
  border: none;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  background: var(--accent-blue);
  color: #fff;
  cursor: pointer;
  transition: background 0.15s, transform 0.1s;
}

.filter-bar button:hover { background: var(--accent-blue-dim); }
.filter-bar button:active { transform: scale(0.97); }

/* Critics Table */
.critics-table {
  border: 1px solid var(--border-color);
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
}

.table-header {
  display: flex;
  align-items: center;
  padding: 10px 16px;
  gap: 14px;
  background: #f6f7f9;
  border-bottom: 1px solid #e2e4e9;
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.th-name { flex: 1; min-width: 0; }
.th-stat { width: 90px; text-align: center; flex-shrink: 0; }

.critic-row {
  display: flex;
  align-items: center;
  padding: 14px 16px;
  gap: 14px;
  border-bottom: 1px solid #f0f1f4;
  text-decoration: none;
  color: inherit;
  transition: background 0.12s;
}

.critic-row:last-child { border-bottom: none; }
.critic-row:hover { background: #f8f9fb; }

.critic-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 800;
  color: #fff;
  flex-shrink: 0;
  text-transform: uppercase;
}

.critic-name {
  flex: 1;
  min-width: 0;
}

.critic-name-text {
  font-size: 15px;
  font-weight: 700;
  color: #0d1117;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.2;
}

.critic-outlets-text {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 1px;
}

.critic-stat {
  font-size: 13px;
  color: var(--text-secondary);
  width: 90px;
  text-align: center;
  flex-shrink: 0;
}

.critic-stat-label {
  display: none;
  font-size: 10px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.3px;
  margin-bottom: 2px;
}

.critic-score-circle {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 13px;
  color: #fff;
  margin: 0 auto;
}

.critic-date {
  font-size: 12px;
  color: var(--text-muted);
  width: 110px;
  text-align: right;
  flex-shrink: 0;
}

.critic-meta-mobile { display: none; }
.score-label-mobile { display: none; }

.list-empty {
  color: var(--text-muted);
  font-size: 15px;
  padding: 48px 0;
  text-align: center;
}

/* Pagination */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 32px;
  padding-bottom: 20px;
  border-bottom: 1px solid #ecedf0;
}

.pagination a,
.pagination span { font-size: 14px; font-weight: 600; }

.pagination a {
  color: var(--accent-blue);
  padding: 6px 14px;
  border-radius: 8px;
  border: 1px solid #d1d5db;
  transition: background 0.12s;
}

.pagination a:hover { background: #f0f1f4; }
.pagination .page-info { color: var(--text-secondary); }

@media (max-width: 960px) {
  .showcase-row { gap: 32px 24px; }
  .active-list { gap: 0 24px; }
}

@media (max-width: 768px) {
  .critics-page { padding: 24px 16px 60px; }
  .page-header h1 { font-size: 24px; }
  .showcase-row { grid-template-columns: 1fr; }
  .active-list { grid-template-columns: 1fr; grid-auto-flow: row; grid-template-rows: auto; }
  .filter-bar { flex-direction: column; align-items: stretch; }
  .search-wrap { min-width: 100%; }
  .filter-bar select { min-width: 100%; }
  .table-header { display: none; }

  /* Mobile rows: avatar | name+meta | score */
  .critic-row {
    display: grid;
    grid-template-columns: 36px 1fr auto;
    grid-template-rows: auto auto;
    gap: 0 12px;
    align-items: center;
    padding: 12px 16px;
  }
  .critic-avatar {
    grid-row: 1 / 3;
    grid-column: 1;
    align-self: center;
  }
  .critic-name {
    grid-row: 1;
    grid-column: 2;
  }

  /* Hide desktop stat elements on mobile */
  .critic-stat { display: none; }
  .critic-date { display: none; }

  /* Show score circle only */
  .critic-stat:has(.critic-score-circle) {
    display: block;
    grid-row: 1 / 3;
    grid-column: 3;
    align-self: center;
    width: auto;
  }
  .critic-stat:has(.critic-score-circle) {
    display: flex;
    flex-direction: column;
    align-items: center;
    grid-row: 1 / 3;
    grid-column: 3;
    align-self: center;
    width: auto;
  }
  .critic-stat:has(.critic-score-circle) .critic-stat-label { display: none; }
  .critic-stat:has(.critic-score-circle) .score-label-mobile {
    display: block;
    font-size: 8px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    color: #b0b5c0;
    margin-top: 3px;
  }
  .critic-score-circle { margin: 0; }

  /* Mobile meta line: "4 reviews · Feb 24, 2026" */
  .critic-meta-mobile {
    display: flex;
    grid-row: 2;
    grid-column: 2;
    font-size: 12px;
    color: var(--text-muted);
    gap: 5px;
  }
}

@media (max-width: 480px) {
  .critics-page { padding: 16px 12px 48px; }
  .page-header h1 { font-size: 22px; }
  .showcase-title { font-size: 18px; }
  .active-name { font-size: 14px; }
  .section-title { font-size: 20px; }
  .critic-name-text { font-size: 14px; }
  .wave-names { font-size: 12px; }
  .cat-name { font-size: 13px; }
  .critic-row { padding: 10px 12px; gap: 0 10px; }
  .critic-avatar { width: 32px; height: 32px; font-size: 12px; }
  .critic-score-circle { width: 32px; height: 32px; font-size: 12px; }
}
