/* ── Champion Pool (core picks / LP leaks) ── */

.champ-pool-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 28px;
}
.champ-pool-col {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.champ-pool-heading {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding-bottom: 6px;
  border-bottom: 2px solid var(--border);
}
.champ-pool-heading--strong { color: var(--green); border-color: var(--green); }
.champ-pool-heading--weak   { color: var(--red);   border-color: var(--red); }
.champ-pool-count {
  font-weight: 400;
  font-size: 11px;
  opacity: 0.5;
  margin-left: 4px;
}

.champ-pool-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px 12px;
  transition: border-color .15s;
}
.champ-pool-card:hover { border-color: var(--text-dim); }

.champ-pool-row {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
}
.champ-pool-icon {
  width: 30px;
  height: 30px;
  border-radius: 6px;
  object-fit: cover;
  flex-shrink: 0;
  border: 1px solid var(--border);
}
.champ-pool-icon--empty {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  color: var(--text-dim);
  background: var(--bg-inset);
}
.champ-pool-id {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: baseline;
  gap: 6px;
  white-space: nowrap;
  overflow: hidden;
}
.champ-pool-name {
  font-size: 13px;
  font-weight: 600;
}
.champ-pool-dash {
  color: var(--text-dim);
  font-size: 12px;
}
.champ-pool-games {
  font-size: 11px;
  color: var(--text-dim);
  margin-left: 2px;
}
.champ-pool-chevron {
  font-size: 10px;
  color: var(--text-dim);
  transition: transform .2s;
  flex-shrink: 0;
}
.champ-pool-card.expanded .champ-pool-chevron {
  transform: rotate(180deg);
}

.champ-pool-summary {
  font-size: 11px;
  color: var(--text-sec);
  margin-top: 4px;
  line-height: 1.4;
}

.champ-pool-expand {
  max-height: 0;
  overflow: hidden;
  transition: max-height .25s ease, margin-top .25s ease, opacity .2s ease;
  opacity: 0;
  margin-top: 0;
}
.champ-pool-card.expanded .champ-pool-expand {
  max-height: 400px;
  opacity: 1;
  margin-top: 10px;
}

.champ-narrative-enrichments {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
}
.champ-narrative-enrichments .enrichment {
  display: flex;
  align-items: baseline;
  gap: 8px;
  font-size: 11px;
  line-height: 1.45;
  color: var(--text-sec);
}
.champ-narrative-enrichments .enrichment-dot {
  flex-shrink: 0;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--text-dim);
  margin-top: 4px;
}
.champ-narrative-enrichments .enrichment.pos .enrichment-dot { background: var(--green); }
.champ-narrative-enrichments .enrichment.neg .enrichment-dot { background: var(--red); }
.champ-narrative-enrichments .enrichment.neutral .enrichment-dot { background: var(--text-dim); }

.champ-pool-phases {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin-bottom: 8px;
}
.champ-pool-detail-stats {
  display: flex;
  gap: 12px;
  font-size: 11px;
  color: var(--text-sec);
  padding-top: 8px;
  border-top: 1px solid var(--border);
}

.champ-pool-empty {
  padding: 20px 16px;
  text-align: center;
  color: var(--text-dim);
  font-size: 12px;
  background: var(--bg-card);
  border: 1px dashed var(--border);
  border-radius: 10px;
}

.champ-viewall-btn {
  display: block;
  text-align: center;
  margin: 16px auto 0;
  padding: 8px 24px;
  font-size: 13px;
  color: var(--text-sec);
  border: 1px solid var(--border);
  border-radius: 16px;
  text-decoration: none;
  transition: border-color .15s, color .15s, background .15s;
  width: fit-content;
}
.champ-viewall-btn:hover {
  border-color: var(--text-sec);
  color: var(--text);
  background: rgba(255,255,255,0.03);
}

.champ-page-nav {
  margin-bottom: 20px;
}
.champ-back-link {
  font-size: 13px;
  color: var(--text-sec);
  text-decoration: none;
  transition: color .15s;
}
.champ-back-link:hover { color: var(--text); }

/* ── Champion Breakdown ── */

/* ── Champion Scatter Plot ── */

.champ-breakdown-top {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 14px;
  align-items: stretch;
  margin-bottom: 20px;
}
.champ-breakdown-top--table-only {
  grid-template-columns: 1fr;
}
.champ-scatter-panel {
  min-width: 0;
}
.champ-scatter-wrap {
  display: flex;
  align-items: center;
  gap: 6px;
  height: 100%;
}
.champ-scatter-main {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}
.champ-scatter-y-label {
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  font-size: 10px;
  color: var(--text-dim);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  flex-shrink: 0;
}
.champ-scatter-x-label {
  font-size: 10px;
  color: var(--text-dim);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  text-align: center;
  margin-top: 6px;
}
.champ-scatter-chart {
  flex: 1;
  min-width: 0;
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px 12px 4px;
}
.champ-scatter-chart svg {
  width: 100%;
  height: auto;
  display: block;
}
.champ-dot { cursor: pointer; }
.champ-dot circle { transition: stroke-width .1s, opacity .1s; }
.champ-dot:hover circle { stroke-width: 2.5; opacity: 1; }

.champ-scatter-tooltip {
  position: absolute;
  pointer-events: none;
  background: rgba(21,27,35,0.95);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 5px 10px;
  font-size: 11px;
  line-height: 1.6;
  color: var(--text);
  white-space: nowrap;
  opacity: 0;
  transition: opacity .12s;
  z-index: 10;
}
.champ-scatter-tooltip.visible { opacity: 1; }

.champ-table-wrapper {
  position: relative;
  min-width: 0;
  min-height: 200px;
}
.champ-table-panel {
  position: absolute;
  inset: 0;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: auto;
}
.champ-tbl {
  display: flex;
  flex-direction: column;
}
.champ-tbl-row {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 8px 14px;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  transition: background .12s;
}
.champ-tbl-row:last-child { border-bottom: none; }
.champ-tbl-row:hover { background: rgba(255,255,255,0.03); }
.champ-tbl-left {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 200px;
  flex-shrink: 0;
}
.champ-tbl-icon {
  width: 32px;
  height: 32px;
  border-radius: 6px;
  object-fit: cover;
  flex-shrink: 0;
  border: 1px solid var(--border);
}
.champ-tbl-icon--empty {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-dim);
  background: var(--bg-inset);
  font-size: 13px;
  font-weight: 600;
}
.champ-tbl-info { min-width: 0; }
.champ-tbl-name {
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.champ-tbl-meta {
  font-size: 11px;
  color: var(--text-sec);
  white-space: nowrap;
}
.champ-tbl-sep {
  color: var(--text-dim);
  margin: 0 2px;
}
.champ-tbl-phases {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}
.champ-table-tag {
  display: inline-block;
  border-radius: 8px;
  padding: 2px 6px;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.champ-table-tag.dominant  { background: var(--green-soft); color: var(--green); }
.champ-table-tag.late-scaler { background: rgba(88,166,255,0.10); color: var(--blue); }
.champ-table-tag.mid-peaker { background: rgba(255,180,50,0.10); color: #f0b030; }
.champ-table-tag.falls-off { background: var(--red-soft); color: var(--red); }
.champ-table-tag.struggling { background: var(--red-soft); color: var(--red-bright); }
.champ-table-tag.consistent { background: rgba(255,255,255,0.05); color: var(--text-sec); }
.champ-table-tag.snowballer { background: var(--green-soft); color: var(--green); }
.champ-table-tag.comeback { background: rgba(88,166,255,0.10); color: var(--blue); }
.champ-table-tag.lane-bully { background: var(--green-soft); color: var(--green); }
.champ-table-tag.tempo-controller { background: rgba(255,180,50,0.10); color: #f0b030; }
.champ-table-tag.ineffective-finisher { background: var(--red-soft); color: var(--red); }
.champ-table-tag.outscaled { background: var(--red-soft); color: var(--red); }
.champ-table-tag.early-peaker { background: var(--red-soft); color: var(--red); }
.champ-table-tag.grinder { background: var(--green-soft); color: var(--green); }
.champ-table-tag.flat { background: rgba(255,255,255,0.06); color: var(--text-sec); }

.champ-sort-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
}
.champ-sort-label {
  font-size: 12px;
  color: var(--text-dim);
  margin-right: 4px;
}
.champ-sort-btn {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-sec);
  font-size: 12px;
  padding: 4px 12px;
  border-radius: 14px;
  cursor: pointer;
  transition: background .15s, color .15s, border-color .15s;
}
.champ-sort-btn:hover { border-color: var(--text-sec); color: var(--text); }
.champ-sort-btn.active {
  background: rgba(255,255,255,0.06);
  border-color: var(--text-sec);
  color: var(--text);
}

.champ-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 12px;
}

.champ-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px 12px;
  transition: border-color .15s;
}
.champ-card:hover { border-color: var(--text-dim); }
.champ-card.champ-hidden { display: none; }

.champ-show-toggle {
  display: block;
  margin: 14px auto 0;
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-sec);
  font-size: 12px;
  padding: 6px 20px;
  border-radius: 16px;
  cursor: pointer;
  transition: border-color .15s, color .15s;
}
.champ-show-toggle:hover { border-color: var(--text-sec); color: var(--text); }

.champ-card-row {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
}
.champ-card-icon {
  width: 30px;
  height: 30px;
  border-radius: 6px;
  object-fit: cover;
  flex-shrink: 0;
  border: 1px solid var(--border);
}
.champ-card-icon--empty {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  color: var(--text-dim);
  background: var(--bg-inset);
}
.champ-card-identity { flex: 1; min-width: 0; }
.champ-card-name {
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.champ-card-meta {
  font-size: 11px;
  color: var(--text-sec);
  white-space: nowrap;
}
.champ-card-sep {
  color: var(--text-dim);
  margin: 0 2px;
}
.champ-wr.pos { color: var(--green); }
.champ-wr.neg { color: var(--red); }

.champ-card-tag {
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 3px 8px;
  border-radius: 10px;
  white-space: nowrap;
  background: rgba(255,255,255,0.05);
  color: var(--text-sec);
}
.champ-card-tag.dominant  { background: var(--green-soft); color: var(--green); }
.champ-card-tag.late-scaler { background: rgba(88,166,255,0.10); color: var(--blue); }
.champ-card-tag.mid-peaker { background: rgba(255,180,50,0.10); color: #f0b030; }
.champ-card-tag.falls-off { background: var(--red-soft); color: var(--red); }
.champ-card-tag.struggling { background: var(--red-soft); color: var(--red-bright); }
.champ-card-tag.consistent { background: rgba(255,255,255,0.05); color: var(--text-sec); }
.champ-card-tag.snowballer { background: var(--green-soft); color: var(--green); }
.champ-card-tag.comeback { background: rgba(88,166,255,0.10); color: var(--blue); }
.champ-card-tag.lane-bully { background: var(--green-soft); color: var(--green); }
.champ-card-tag.tempo-controller { background: rgba(255,180,50,0.10); color: #f0b030; }
.champ-card-tag.ineffective-finisher { background: var(--red-soft); color: var(--red); }
.champ-card-tag.outscaled { background: var(--red-soft); color: var(--red); }
.champ-card-tag.early-peaker { background: var(--red-soft); color: var(--red); }
.champ-card-tag.grinder { background: var(--green-soft); color: var(--green); }
.champ-card-tag.flat { background: rgba(255,255,255,0.06); color: var(--text-sec); }

.champ-card-chevron {
  font-size: 10px;
  color: var(--text-dim);
  transition: transform .2s;
  flex-shrink: 0;
}
.champ-card.expanded .champ-card-chevron {
  transform: rotate(180deg);
}

.champ-card-summary {
  font-size: 11px;
  color: var(--text-sec);
  margin-top: 4px;
  line-height: 1.4;
}

.champ-card-expand {
  max-height: 0;
  overflow: hidden;
  transition: max-height .25s ease, margin-top .25s ease, opacity .2s ease;
  opacity: 0;
  margin-top: 0;
}
.champ-card.expanded .champ-card-expand {
  max-height: 400px;
  opacity: 1;
  margin-top: 10px;
}

.champ-card-enrichments {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
}
.champ-card-enrichments .enrichment {
  display: flex;
  align-items: baseline;
  gap: 8px;
  font-size: 11px;
  line-height: 1.45;
  color: var(--text-sec);
}
.champ-card-enrichments .enrichment-dot {
  flex-shrink: 0;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--text-dim);
  margin-top: 4px;
}
.champ-card-enrichments .enrichment.pos .enrichment-dot { background: var(--green); }
.champ-card-enrichments .enrichment.neg .enrichment-dot { background: var(--red); }
.champ-card-enrichments .enrichment.neutral .enrichment-dot { background: var(--text-dim); }

.champ-card-expand-phases {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin-bottom: 8px;
}
.champ-card-expand-stats {
  display: flex;
  gap: 12px;
  font-size: 11px;
  color: var(--text-sec);
  padding-top: 8px;
  border-top: 1px solid var(--border);
}

.champ-kda { font-weight: 500; color: var(--text); }
.champ-role { text-transform: capitalize; }

.champ-phase-rows { display: flex; flex-direction: column; gap: 6px; }
.champ-phase-row {
  display: flex;
  align-items: center;
  gap: 8px;
}
.champ-phase-label {
  font-size: 11px;
  color: var(--text-dim);
  width: 34px;
  flex-shrink: 0;
  text-align: right;
}
.champ-phase-bar-track {
  flex: 1;
  height: 8px;
  border-radius: 4px;
  background: var(--bg-inset);
  display: flex;
  overflow: hidden;
}
.champ-phase-bar-track.empty { opacity: 0.4; }
.champ-phase-bar {
  height: 100%;
  transition: width .3s ease;
}
.champ-phase-bar.behind { background: var(--red-fill); }
.champ-phase-bar.even { background: rgba(255,255,255,0.06); }
.champ-phase-bar.ahead { background: var(--green-fill); }
.champ-phase-pct {
  font-size: 11px;
  width: 30px;
  text-align: right;
  color: var(--text-sec);
  flex-shrink: 0;
}
.champ-phase-pct.pos { color: var(--green); }
.champ-phase-pct.neg { color: var(--red); }
.champ-phase-pct.dim { color: var(--text-dim); }

/* ── Table expandable rows ── */
.champ-tbl-chevron {
  font-size: 10px;
  color: var(--text-dim);
  transition: transform .2s;
  flex-shrink: 0;
  margin-left: 4px;
}
.champ-tbl-row.expanded .champ-tbl-chevron {
  transform: rotate(180deg);
}
.champ-tbl-expand {
  max-height: 0;
  overflow: hidden;
  transition: max-height .25s ease;
  background: rgba(255,255,255,0.015);
}
.champ-tbl-expand.expanded {
  max-height: 300px;
}
.champ-tbl-expand-inner {
  padding: 8px 14px 12px 56px;
}
.champ-tbl-narrative {
  font-size: 12px;
  line-height: 1.5;
  color: var(--text-sec);
  margin-bottom: 6px;
}
.champ-tbl-enrichments {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.champ-tbl-enrichments .enrichment {
  display: flex;
  align-items: baseline;
  gap: 8px;
  font-size: 11px;
  line-height: 1.45;
  color: var(--text-sec);
}
.champ-tbl-enrichments .enrichment-dot {
  flex-shrink: 0;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--text-dim);
  margin-top: 4px;
}
.champ-tbl-enrichments .enrichment.pos .enrichment-dot { background: var(--green); }
.champ-tbl-enrichments .enrichment.neg .enrichment-dot { background: var(--red); }
.champ-tbl-enrichments .enrichment.neutral .enrichment-dot { background: var(--text-dim); }

/* ── Controls (sort + filter) ── */
.champ-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 24px;
  margin-bottom: 16px;
}
.champ-filter-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.champ-filter-label {
  font-size: 12px;
  color: var(--text-dim);
  margin-right: 4px;
}
.champ-filter-chip {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-sec);
  font-size: 11px;
  padding: 3px 10px;
  border-radius: 12px;
  cursor: pointer;
  transition: background .15s, color .15s, border-color .15s;
  white-space: nowrap;
}
.champ-filter-chip:hover { border-color: var(--text-sec); color: var(--text); }
.champ-filter-chip.active {
  background: rgba(255,255,255,0.06);
  border-color: var(--text-sec);
  color: var(--text);
}

.champ-hidden { display: none !important; }

/* ── Champion responsive ── */
@media (max-width: 1100px) {
  .champ-pool-split { grid-template-columns: 1fr; }
  .champ-breakdown-top { grid-template-columns: 1fr; }
  .champ-table-wrapper { min-height: 0; }
  .champ-table-panel { position: static; max-height: 320px; }
  .champ-tbl-left { width: auto; flex: 1; }
  .champ-tbl-phases { display: none; }
  .champ-grid { grid-template-columns: 1fr; }
}
