/* Centrum analityka: gracz i postać */

.dash-role-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr)); gap: 0.75rem; }
.dash-role-col { background: #0b1220; border: 1px solid #1e293b; border-radius: 14px; padding: 0.6rem 0.7rem; }
.dash-role-head { display: flex; justify-content: space-between; font-size: 0.7rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.05em; color: #cbd5e1; margin-bottom: 0.4rem; }
.dash-role-head span:last-child { color: #64748b; font-weight: 700; }
.dash-role-row { display: grid; grid-template-columns: 1rem 26px minmax(0, 1fr) 2.8rem 3rem; align-items: center; gap: 0.4rem; padding: 0.22rem 0; font-size: 0.8rem; }
.dash-role-row img { width: 26px; height: 26px; border-radius: 7px; }
.dash-role-rank { color: #64748b; font-size: 0.7rem; font-weight: 800; }
.dash-role-name { font-weight: 700; color: #e2e8f0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dash-role-pick { color: #94a3b8; text-align: right; font-size: 0.74rem; }
.dash-role-wr { text-align: right; font-weight: 800; font-size: 0.78rem; }
.dash-patch-list { display: flex; flex-wrap: wrap; gap: 0.35rem; margin-top: 0.7rem; max-height: 5.5rem; overflow-y: auto; }
.dash-patch-chip { display: inline-flex; gap: 0.35rem; font-size: 0.72rem; color: #94a3b8; background: #0b1220; border: 1px solid #1e293b; border-radius: 999px; padding: 0.15rem 0.55rem; }
.dash-patch-chip b { color: #e2e8f0; }

.ax-picks { display: grid; grid-template-columns: repeat(auto-fill, minmax(13rem, 1fr)); gap: 0.6rem; }
.ax-pick-col h5 { font-size: 0.66rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.05em; color: #94a3b8; margin-bottom: 0.3rem; }
.ax-pick { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 0.45rem; padding: 0.3rem 0.4rem; background: #111827; border-radius: 10px; margin-bottom: 0.3rem; font-size: 0.76rem; }
.ax-pick-name { font-weight: 700; color: #e2e8f0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ax-add-btn { font-size: 0.72rem; font-weight: 800; color: #fff; background: #2563eb; border-radius: 8px; padding: 0.25rem 0.6rem; white-space: nowrap; }
.ax-add-btn:hover { background: #3b82f6; }
.ax-add-btn:disabled { opacity: 0.6; }

.ax-compare-bar { margin-bottom: 0.6rem; }
.ax-cmp-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); gap: 0.7rem; }
.ax-cmp-col { background: #111827; border-radius: 12px; border-top: 3px solid; padding: 0.6rem 0.7rem; }
.ax-cmp-col h5 { font-size: 0.8rem; font-weight: 800; margin-bottom: 0.2rem; }
.ax-cmp-col h6 { font-size: 0.62rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.05em; color: #64748b; margin: 0.5rem 0 0.2rem; }
.ax-mini-build { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: 0.4rem; font-size: 0.75rem; padding: 0.12rem 0; }
.ax-mini-build > :first-child { display: inline-flex; align-items: center; gap: 0.3rem; min-width: 0; overflow: hidden; }
.ax-verdict { background: linear-gradient(90deg, rgba(139, 92, 246, 0.14), rgba(15, 23, 42, 0)); border: 1px solid #312e81; border-radius: 14px; padding: 0.7rem 0.9rem; font-size: 0.86rem; color: #e2e8f0; line-height: 1.5; }

.draft-loadout { display: flex; gap: 3px; margin-top: 2px; }
.draft-lo-btn { width: 18px; height: 18px; border-radius: 4px; overflow: hidden; background: #0f172a; border: 1px solid #334155; display: inline-flex; align-items: center; justify-content: center; color: #64748b; font-size: 0.55rem; flex: none; }
.draft-lo-btn.is-rune { border-radius: 999px; }
.draft-lo-btn img { width: 100%; height: 100%; }
.draft-lo-btn:hover { border-color: #60a5fa; }
.draft-lo-picker { position: fixed; z-index: 90; width: 290px; max-height: 320px; overflow-y: auto; background: #0f172a; border: 1px solid #334155; border-radius: 12px; padding: 0.5rem; box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5); }
.draft-lo-picker.hidden { display: none; }
.draft-lo-title { font-size: 0.7rem; font-weight: 800; color: #94a3b8; text-transform: uppercase; letter-spacing: 0.04em; margin: 0 0.2rem 0.4rem; }
.draft-lo-grid { display: flex; flex-direction: column; gap: 2px; }
.draft-lo-grid button { display: grid; grid-template-columns: 24px 1fr auto; align-items: center; gap: 0.45rem; padding: 0.25rem 0.35rem; border-radius: 8px; text-align: left; font-size: 0.76rem; color: #e2e8f0; }
.draft-lo-grid button:hover { background: #1e293b; }
.draft-lo-grid img { width: 24px; height: 24px; border-radius: 6px; }
.draft-lo-grid em { font-style: normal; font-size: 0.66rem; color: #64748b; }

.attr-row { background: #0b1220; border: 1px solid #1e293b; border-radius: 12px; padding: 0.45rem 0.6rem; }
.attr-head { display: flex; justify-content: space-between; font-size: 0.76rem; font-weight: 700; color: #cbd5e1; }
.attr-segs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 3px; margin-top: 0.3rem; }
.attr-segs span { height: 6px; border-radius: 999px; }
.attr-detail { font-size: 0.68rem; color: #64748b; margin-top: 0.25rem; }

@media (min-width: 1280px) {
    .pane-grid.cols-champs { grid-template-columns: minmax(15rem, 19rem) minmax(0, 1fr); }
}
.champ-list-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0.4rem; }
@media (max-width: 1279px) {
    .champ-list-grid { grid-template-columns: repeat(8, minmax(0, 1fr)); }
    #view-champions .pane-grid.cols-champs { grid-template-rows: minmax(0, 0.35fr) minmax(0, 1fr); }
}
#champ-knowledge .champ-detail-split { min-height: 0; }
#champ-knowledge .champ-wr-chart-box { height: 280px; flex: none; }

.ax-hero { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 0.8rem; margin-bottom: 0.9rem; }
.ax-hero h3 { font-size: 1.5rem; font-weight: 800; color: #f8fafc; }
.ax-hero p { font-size: 0.82rem; color: #94a3b8; }
.ax-hero-actions { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.ax-hero-actions button {
    background: linear-gradient(180deg, #7c3aed, #6d28d9); color: #fff; font-size: 0.78rem; font-weight: 800;
    padding: 0.55rem 0.9rem; border-radius: 12px;
}
.ax-hero-actions button.is-ghost { background: #1e293b; color: #cbd5e1; border: 1px solid #334155; }
.ax-hero-actions button:hover { filter: brightness(1.1); }
.ax-hero-actions button:disabled { opacity: 0.5; }

.ax-tabs { display: flex; flex-wrap: wrap; gap: 0.25rem; border-bottom: 1px solid #1e293b; margin: 0.6rem 0 0.9rem; }
.ax-tabs.is-compact { border: 0; margin: 0; }
.ax-tab {
    font-size: 0.78rem; font-weight: 700; color: #94a3b8; padding: 0.5rem 0.8rem;
    border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap;
}
.ax-tabs.is-compact .ax-tab { border: 1px solid #1e293b; border-radius: 10px; margin: 0; }
.ax-tab:hover { color: #e2e8f0; }
.ax-tab.is-on { color: #f8fafc; border-bottom-color: #8b5cf6; }
.ax-tabs.is-compact .ax-tab.is-on { border-color: #8b5cf6; background: #1e1b4b; }

.ax-filters { display: flex; flex-direction: column; gap: 0.55rem; margin-bottom: 0.4rem; }
.ax-chip-row { display: flex; flex-wrap: wrap; gap: 0.35rem; }
.ax-chip {
    display: inline-flex; align-items: center; gap: 0.4rem; font-size: 0.76rem; font-weight: 700; color: #cbd5e1;
    background: #0f172a; border: 1px solid #1e293b; border-radius: 999px; padding: 0.3rem 0.75rem;
}
.ax-chip span { color: #64748b; font-weight: 600; }
.ax-chip.is-on { border-color: #60a5fa; background: #172554; color: #fff; }
.ax-select-row { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 0.6rem; }
.ax-select-row label { display: flex; flex-direction: column; gap: 0.2rem; font-size: 0.66rem; font-weight: 700; color: #94a3b8; text-transform: uppercase; letter-spacing: 0.04em; }
.ax-select-row select, .ax-select-row input {
    background: #0f172a; color: #e2e8f0; border: 1px solid #334155; border-radius: 9px;
    padding: 0.35rem 0.55rem; font-size: 0.8rem; font-weight: 600; text-transform: none; min-width: 7rem;
}
.ax-select-row input { width: 5rem; min-width: 0; }
.ax-select-row > .ax-dim { padding-bottom: 0.4rem; }

.ax-body { min-height: 8rem; }
.ax-empty { color: #64748b; font-size: 0.85rem; padding: 1.2rem; text-align: center; border: 1px dashed #1e293b; border-radius: 14px; }
.ax-note { font-size: 0.72rem; color: #64748b; margin: 0.55rem 0 0.2rem; line-height: 1.4; }
.ax-dim { color: #64748b; font-size: 0.72rem; }
.is-good { color: #34d399; }
.is-bad { color: #f87171; }

.ax-kpis { display: grid; grid-template-columns: repeat(auto-fill, minmax(9.5rem, 1fr)); gap: 0.5rem; }
.ax-kpi { background: linear-gradient(180deg, #111827, #0b1220); border: 1px solid #1e293b; border-radius: 14px; padding: 0.6rem 0.75rem; }
.ax-kpi-label { font-size: 0.64rem; font-weight: 800; letter-spacing: 0.05em; text-transform: uppercase; color: #94a3b8; }
.ax-kpi-value { font-size: 1.25rem; font-weight: 800; color: #f8fafc; margin-top: 0.1rem; }
.ax-kpi.is-good .ax-kpi-value { color: #34d399; }
.ax-kpi.is-bad .ax-kpi-value { color: #f87171; }
.ax-kpi-sub { font-size: 0.7rem; color: #64748b; margin-top: 0.1rem; }

.ax-section { margin-top: 1rem; background: #0b1220; border: 1px solid #1e293b; border-radius: 16px; padding: 0.85rem 0.9rem; min-width: 0; }
.ax-section header { margin-bottom: 0.55rem; }
.ax-section h4 { font-size: 0.9rem; font-weight: 800; color: #f8fafc; }
.ax-section header p { font-size: 0.72rem; color: #64748b; margin-top: 0.1rem; }
.ax-grid-2 { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0 1rem; }
@media (min-width: 1400px) { .ax-grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.ax-grid-2 > .ax-chart, .ax-grid-2 > .ax-section { margin-top: 1rem; }

.ax-table-wrap { overflow-x: auto; }
.ax-table { width: 100%; border-collapse: collapse; font-size: 0.8rem; }
.ax-table th {
    text-align: left; font-size: 0.64rem; font-weight: 800; letter-spacing: 0.05em; text-transform: uppercase;
    color: #64748b; padding: 0.4rem 0.5rem; border-bottom: 1px solid #1e293b; cursor: pointer; white-space: nowrap; user-select: none;
}
.ax-table th.on { color: #c4b5fd; }
.ax-table td { padding: 0.38rem 0.5rem; border-bottom: 1px solid #111827; color: #e2e8f0; vertical-align: middle; }
.ax-table .num { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.ax-table td.is-good { color: #34d399; font-weight: 700; }
.ax-table td.is-bad { color: #f87171; font-weight: 700; }
.ax-table tr.clickable { cursor: pointer; }
.ax-table tr.clickable:hover td { background: #111827; }
.ax-table tr.is-win td:first-child { box-shadow: inset 3px 0 0 #10b981; }
.ax-table tr.is-loss td:first-child { box-shadow: inset 3px 0 0 #ef4444; }
.ax-table tr.is-focus td { background: #1e1b4b; }
.ax-table.compact td { padding: 0.3rem 0.4rem; font-size: 0.76rem; }
.ax-name { max-width: 10rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.ax-champ { border-radius: 8px; display: inline-block; vertical-align: middle; background: #1e293b; }
.ax-champ.ax-sm { width: 26px; height: 26px; }
.ax-champ.ax-md { width: 36px; height: 36px; }
.ax-champ-cell { display: inline-flex; align-items: center; gap: 0.45rem; white-space: nowrap; }
.ax-items { display: inline-flex; align-items: center; gap: 2px; flex-wrap: nowrap; }
.ax-item { position: relative; display: inline-flex; width: 26px; height: 26px; border-radius: 6px; overflow: hidden; background: #1e293b; border: 1px solid #334155; flex: none; }
.ax-item img { width: 100%; height: 100%; }
.ax-item-empty { opacity: 0.35; }
.ax-item-id { font-size: 0.55rem; color: #94a3b8; margin: auto; }
.ax-item em { position: absolute; right: 1px; bottom: 0; font-size: 0.55rem; font-style: normal; background: rgba(0, 0, 0, 0.75); padding: 0 2px; border-radius: 3px; }
.ax-arrow { color: #475569; font-size: 0.65rem; margin: 0 2px; }
.ax-rune { display: inline-block; vertical-align: middle; border-radius: 999px; background: #0f172a; }
.ax-rune.ax-sm { width: 20px; height: 20px; }
.ax-rune.ax-md { width: 28px; height: 28px; }
.ax-spell { width: 20px; height: 20px; border-radius: 5px; display: inline-block; vertical-align: middle; margin-right: 2px; }
.ax-shard { display: inline-block; font-size: 0.58rem; font-weight: 800; color: #cbd5e1; background: #1e293b; border-radius: 999px; padding: 0.1rem 0.35rem; margin-right: 2px; }
.ax-rune-page { display: inline-flex; align-items: center; gap: 3px; }
.ax-sep { width: 1px; height: 18px; background: #334155; margin: 0 4px; }

.ax-skills { display: inline-flex; gap: 2px; }
.ax-skill { width: 17px; height: 17px; border-radius: 4px; font-size: 0.6rem; font-weight: 800; display: inline-flex; align-items: center; justify-content: center; color: #0b1220; background: var(--c); }
.ax-skill-grid { border-collapse: separate; border-spacing: 2px; }
.ax-skill-grid th { font-size: 0.75rem; font-weight: 800; padding-right: 0.4rem; }
.ax-skill-grid td { width: 24px; height: 22px; border-radius: 5px; background: #111827; font-size: 0.66rem; font-weight: 800; text-align: center; color: #0b1220; }
.ax-skill-grid td.on { background: var(--c); }

.ax-bar { display: inline-block; flex: 1; min-width: 4rem; height: 7px; background: #1e293b; border-radius: 999px; overflow: hidden; }
.ax-bar > span { display: block; height: 100%; background: #60a5fa; border-radius: 999px; }
.ax-bar.is-good > span { background: #34d399; }
.ax-bar.is-bad > span { background: #f87171; }
.ax-wr { font-weight: 800; }
.ax-wr.is-good { color: #34d399; }
.ax-wr.is-bad { color: #f87171; }

.ax-bench { display: flex; flex-direction: column; gap: 0.35rem; }
.ax-bench-row { display: grid; grid-template-columns: minmax(9rem, 13rem) minmax(4rem, 1fr) 2.5rem minmax(7rem, 10rem); align-items: center; gap: 0.6rem; font-size: 0.78rem; color: #cbd5e1; }
.ax-bench-pct { font-weight: 800; text-align: right; color: #cbd5e1; }
.ax-bench-pct.is-good { color: #34d399; }
.ax-bench-pct.is-bad { color: #f87171; }

.ax-durations { display: flex; flex-direction: column; gap: 0.4rem; }
.ax-dur { display: grid; grid-template-columns: 5rem 1fr 3rem 2.5rem; align-items: center; gap: 0.6rem; font-size: 0.78rem; color: #cbd5e1; }
.ax-dur .num { text-align: right; }

.ax-chart { background: #0b1220; border: 1px solid #1e293b; border-radius: 16px; padding: 0.75rem 0.85rem; min-width: 0; }
.ax-chart h5 { font-size: 0.8rem; font-weight: 800; color: #e2e8f0; margin-bottom: 0.35rem; }
.ax-chart-box { position: relative; height: 230px; }
.ax-section .ax-grid-2 > .ax-chart:first-child, .ax-section .ax-grid-2 > .ax-chart:nth-child(2) { margin-top: 0; }

.ax-slots { display: grid; grid-template-columns: repeat(auto-fill, minmax(10rem, 1fr)); gap: 0.6rem; }
.ax-slot { background: #111827; border-radius: 12px; padding: 0.55rem; }
.ax-slot-title { font-size: 0.66rem; font-weight: 800; text-transform: uppercase; color: #94a3b8; margin-bottom: 0.35rem; }
.ax-slot-row { display: flex; align-items: center; gap: 0.4rem; font-size: 0.75rem; padding: 0.15rem 0; }
.ax-slot-row .ax-dim { flex: 1; }
.ax-item-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(6.2rem, 1fr)); gap: 0.45rem; }
.ax-item-card { display: flex; flex-direction: column; align-items: center; gap: 0.15rem; background: #111827; border-radius: 12px; padding: 0.5rem 0.3rem; font-size: 0.72rem; color: #cbd5e1; }
.ax-item-card .ax-item { width: 34px; height: 34px; }

.ax-mini-row { display: grid; grid-template-columns: minmax(0, 1fr) 4.5rem 3.5rem 6.5rem; align-items: center; gap: 0.5rem; font-size: 0.8rem; padding: 0.3rem 0; border-bottom: 1px solid #111827; }

.ax-team { margin-top: 0.8rem; border: 1px solid #1e293b; border-radius: 14px; overflow: hidden; }
.ax-team-head { font-size: 0.75rem; font-weight: 800; padding: 0.45rem 0.7rem; text-transform: uppercase; letter-spacing: 0.05em; }
.ax-team.is-win .ax-team-head { background: rgba(16, 185, 129, 0.12); color: #6ee7b7; }
.ax-team.is-loss .ax-team-head { background: rgba(239, 68, 68, 0.12); color: #fca5a5; }
.ax-game-head { display: flex; flex-wrap: wrap; gap: 0.3rem 1rem; align-items: baseline; color: #e2e8f0; }
.ax-game-head span { font-size: 0.8rem; color: #94a3b8; }
.ax-buys { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.ax-buy { display: flex; align-items: center; gap: 3px; background: #111827; border-radius: 10px; padding: 0.3rem 0.45rem; }
.ax-buy > span { font-size: 0.7rem; font-weight: 800; color: #94a3b8; margin-right: 3px; }
#ax-modal-body .ax-chart { margin-top: 1rem; }

.ax-modal { position: fixed; inset: 0; z-index: 80; background: rgba(2, 6, 23, 0.78); display: flex; align-items: center; justify-content: center; padding: 1.5rem; }
.ax-modal.hidden { display: none; }
.ax-modal-card { width: min(1200px, 100%); max-height: 100%; display: flex; flex-direction: column; background: #0f172a; border: 1px solid #334155; border-radius: 18px; overflow: hidden; }
.ax-modal-head { display: flex; align-items: center; justify-content: space-between; padding: 0.8rem 1rem; border-bottom: 1px solid #1e293b; }
.ax-modal-head h3 { font-weight: 800; color: #f8fafc; }
.ax-modal-head button { color: #94a3b8; font-size: 1.1rem; }
.ax-modal-body { padding: 0.9rem 1rem 1.1rem; overflow-y: auto; }
