/* ===== CLB Page ===== */

.clb-intro {
  padding: 8px 0 20px;
}

.clb-intro p {
  font-size: 11px;
  color: var(--text-secondary);
  line-height: 1.8;
  font-weight: 400;
}

.clb-stats {
  display: flex;
  gap: 28px;
  padding-bottom: 22px;
}

.stat {
  display: flex;
  flex-direction: column;
}

.stat-number {
  font-family: 'Playfair Display', Georgia, 'Times New Roman', serif;
  font-size: 21px;
  font-weight: 800;
  color: var(--black);
  letter-spacing: -0.02em;
}

.stat-label {
  font-size: 11px;
  color: var(--text-tertiary);
  font-weight: 500;
  margin-top: 1px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* Leaderboard */
.clb-leaderboard {
  margin-top: 20px;
}

.clb-toolbar {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 8px;
}

.clb-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 3px;
}

.clb-filter {
  font-family: inherit;
  font-size: 11px;
  font-weight: 500;
  padding: 3px 7px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.5);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  color: var(--text-tertiary);
  cursor: pointer;
  transition: all 0.15s;
}

.clb-filter:hover {
  color: var(--text);
  border-color: #bbb;
}

.clb-filter.active {
  background: var(--black);
  color: var(--bg);
  border-color: var(--black);
}

.clb-category-tabs {
  display: flex;
  gap: 2px;
  overflow-x: auto;
  padding-bottom: 2px;
  margin-bottom: 0;
}

.clb-cat-tab {
  font-family: inherit;
  font-size: 11px;
  font-weight: 500;
  padding: 4px 8px;
  border: 1px solid transparent;
  border-radius: 3px;
  background: transparent;
  color: var(--text-tertiary);
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.15s;
}

.clb-cat-tab:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.4);
}

.clb-cat-tab.active {
  background: var(--black);
  color: var(--bg);
}

.clb-table-wrap {
  overflow-x: auto;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 4px;
  margin-top: 8px;
  background: rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(10px) saturate(1.4);
  -webkit-backdrop-filter: blur(10px) saturate(1.4);
}

.clb-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 11px;
}

.clb-table th {
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-tertiary);
  padding: 6px 8px;
  text-align: left;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  background: rgba(255, 255, 255, 0.3);
}

.clb-table td {
  padding: 6px 8px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  vertical-align: middle;
}

.clb-table tbody tr:last-child td {
  border-bottom: none;
}

.clb-table tbody tr:hover {
  background: rgba(255, 255, 255, 0.3);
}

.clb-rank {
  font-family: 'JetBrains Mono', 'SF Mono', monospace;
  font-weight: 700;
  font-size: 11px;
}

.clb-rank-1 { color: #d97706; }
.clb-rank-2 { color: #6b7280; }
.clb-rank-3 { color: #92400e; }

.clb-model-name {
  font-weight: 600;
}

.clb-model-org {
  color: var(--text-tertiary);
}

.clb-score-cell {
  min-width: 130px;
}

.clb-score-text {
  font-family: 'JetBrains Mono', 'SF Mono', monospace;
  font-size: 11px;
  font-weight: 600;
  margin-bottom: 3px;
}

.clb-score-std {
  font-weight: 400;
  font-size: 10px;
  color: var(--text-tertiary);
}

.clb-bar-wrap {
  position: relative;
  height: 5px;
  background: rgba(0, 0, 0, 0.06);
  border-radius: 3px;
  overflow: visible;
}

.clb-bar {
  height: 100%;
  border-radius: 3px;
  transition: width 0.4s ease;
}

.clb-error-bar {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  height: 7px;
  display: flex;
  align-items: center;
}

.clb-error-cap {
  width: 1px;
  height: 4px;
  background: rgba(0,0,0,0.35);
  flex-shrink: 0;
}

.clb-error-line {
  flex: 1;
  height: 1px;
  background: rgba(0,0,0,0.35);
}

/* Org bar colors */
.clb-bar-OpenAI     { background: #10a37f; }
.clb-bar-Anthropic  { background: #d97706; }
.clb-bar-Google     { background: #8b5cf6; }
.clb-bar-Alibaba    { background: #ef4444; }
.clb-bar-DeepSeek   { background: #06b6d4; }
.clb-bar-Moonshot   { background: #f59e0b; }
.clb-bar-ByteDance  { background: #ec4899; }
.clb-bar-Tencent    { background: #3b82f6; }
.clb-bar-xAI       { background: #1d1d1f; }
.clb-bar-MiniMax    { background: #7c3aed; }
.clb-bar-Zhipu      { background: #0ea5e9; }
.clb-bar-Xiaomi     { background: #ff6900; }
.clb-bar-Mininglamp { background: #1E5096; }

/* Expand row */
.clb-expand-btn {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-tertiary);
  font-size: 10px;
  padding: 2px;
  transition: transform 0.2s;
}

.clb-expand-btn:hover {
  color: var(--text);
}

.clb-expand-btn.open {
  transform: rotate(180deg);
}

.clb-detail-row td {
  padding: 0 !important;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.clb-detail-grid {
  display: none;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  padding: 6px 8px;
  background: rgba(255, 255, 255, 0.2);
}

.clb-detail-grid.visible {
  display: grid;
}

.clb-detail-item {
  padding: 5px;
  background: rgba(255, 255, 255, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 3px;
}

.clb-detail-label {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  white-space: nowrap;
  color: var(--text-tertiary);
  margin-bottom: 2px;
}

.clb-detail-value {
  font-family: 'JetBrains Mono', 'SF Mono', monospace;
  font-size: 11px;
  font-weight: 600;
}

.clb-detail-value .std {
  font-size: 10px;
  color: var(--text-tertiary);
  font-weight: 400;
}

.clb-mini-bar {
  height: 2px;
  background: rgba(0, 0, 0, 0.06);
  border-radius: 1px;
  margin-top: 3px;
  overflow: hidden;
}

.clb-mini-bar-fill {
  height: 100%;
  border-radius: 1px;
  opacity: 0.6;
}

/* Submit card */
.submit-section {
  margin-top: 24px;
  text-align: center;
}

.submit-section h3 {
  font-family: 'Playfair Display', Georgia, 'Times New Roman', serif;
  font-size: 11px;
  font-weight: 700;
  color: var(--black);
  margin-bottom: 4px;
}

.submit-section > p {
  font-size: 11px;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 10px;
}

.submit-links {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  justify-content: center;
}

.submit-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  font-weight: 600;
  color: var(--text);
  padding: 6px 12px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.5);
  border: 1px solid rgba(0, 0, 0, 0.08);
  transition: all 0.2s;
}

.submit-link svg {
  flex-shrink: 0;
  width: 14px;
  height: 14px;
}

.submit-link:hover {
  background: rgba(255, 255, 255, 0.75);
  border-color: rgba(0, 0, 0, 0.15);
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

/* Single-run marker */
.clb-single-run {
  color: #b07030;
  font-size: 0.75em;
  margin-left: 1px;
  cursor: help;
}

.clb-footnote {
  font-size: 10px;
  color: var(--text-tertiary);
  margin-top: 6px;
  padding-left: 2px;
  letter-spacing: 0.01em;
}

.clb-footnote sup {
  color: #b07030;
  font-size: 0.9em;
}

@media (max-width: 768px) {
  .clb-stats {
    gap: 14px;
    flex-wrap: wrap;
  }

  .submit-section {
    padding: 0 10px;
  }

  .clb-detail-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .clb-category-tabs {
    gap: 1px;
  }

  .clb-cat-tab {
    font-size: 10px;
    padding: 3px 5px;
  }
}
