/* Statistics dashboard compatibility layer.
   The data controller is independent, while presentation follows the canonical
   Futebol Agenda component geometry and neutral application foundations. */

@layer components {
.statistics-page {
    --club-dashboard-gap: var(--content-stack-gap);
    --club-dashboard-pad: 16px;
    --club-dashboard-rule: var(--line);
    --club-dashboard-positive: var(--statistics-result-win, var(--win));
    --club-dashboard-neutral: var(--statistics-result-draw, var(--gold-strong));
    --club-dashboard-negative: var(--statistics-result-loss, var(--loss));
    --coverage: 0%;
    min-width: 0;
}

.statistics-page > .stats-head {
    margin-bottom: var(--club-dashboard-gap);
}

.club-dashboard,
.club-dashboard-section-content {
    min-width: 0;
    display: grid;
    gap: var(--club-dashboard-gap);
}

.club-dashboard-panel,
.club-dashboard-empty,
.club-dashboard-error {
    min-width: 0;
    border: 1px solid var(--line);
    border-radius: var(--radius-card);
    background: var(--bg-card);
    box-shadow: var(--shadow-tight);
}

.statistics-controls-card .team-filter-host,
.statistics-controls-card .stats-team-filter {
    margin: 0;
}

.statistics-controls-card {
    --statistics-filter-columns: minmax(144px, 1fr) minmax(120px, 0.7fr) minmax(240px, 1.25fr) minmax(216px, 1.1fr);
    --statistics-filter-gap: 12px;
}

.statistics-controls-card .team-filter-pills,
.statistics-controls-card .club-dashboard-scope {
    grid-template-columns: var(--statistics-filter-columns);
    gap: var(--statistics-filter-gap);
}

.club-dashboard-scope-details {
    min-width: 0;
}

.club-dashboard-scope-details > summary {
    min-height: var(--target-min);
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) 20px;
    gap: 8px;
    align-items: center;
    border-top: 1px solid var(--line);
    color: var(--ink);
    padding-top: 12px;
    font-size: 0.74rem;
    font-weight: 700;
    cursor: pointer;
    list-style: none;
}

.club-dashboard-scope-details > summary::-webkit-details-marker {
    display: none;
}

.club-dashboard-scope-details > summary small {
    overflow: hidden;
    color: var(--text-muted);
    font-size: 0.7rem;
    font-weight: 600;
    text-align: right;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.club-dashboard-scope-details > summary svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.8;
    transition: transform var(--motion);
}

.club-dashboard-scope-details[open] > summary svg {
    transform: rotate(180deg);
}

.club-dashboard-scope {
    min-width: 0;
    display: grid;
    align-items: end;
    padding-top: 12px;
}

.club-dashboard-filter,
.club-dashboard-segmented {
    min-width: 0;
    display: grid;
    gap: 4px;
}

.club-dashboard-filter > span,
.club-dashboard-segmented > span {
    min-height: 16px;
    display: flex;
    align-items: center;
    color: var(--text-secondary);
    font-size: 0.7rem;
    line-height: 16px;
    font-weight: 700;
}

.club-dashboard-filter select,
.club-dashboard-compare-select {
    width: 100%;
    min-height: var(--filter-control-height);
    border: 1px solid var(--control-neutral-border);
    border-radius: var(--filter-control-radius);
    background: var(--control-neutral-bg);
    color: var(--control-neutral-text);
    padding: var(--filter-control-padding);
    font-size: var(--filter-control-font-size);
    line-height: var(--filter-control-line-height);
    font-weight: var(--filter-control-font-weight);
    cursor: pointer;
}

.club-dashboard-segmented > div {
    min-width: 0;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
}

.club-dashboard-segmented button,
.club-dashboard-section-nav button {
    min-width: 0;
    min-height: var(--target-min);
    border: 1px solid var(--control-neutral-border);
    border-radius: var(--filter-control-radius);
    background: var(--control-neutral-bg);
    color: var(--control-neutral-text);
    padding: var(--filter-control-padding);
    font-size: var(--filter-control-font-size);
    line-height: var(--filter-control-line-height);
    font-weight: var(--filter-control-font-weight);
    cursor: pointer;
    transition: background var(--motion), border-color var(--motion), color var(--motion);
}

.club-dashboard-segmented button:hover,
.club-dashboard-section-nav button:hover {
    border-color: var(--control-neutral-border-strong);
    background: var(--control-neutral-bg-hover);
}

.club-dashboard-segmented button[aria-pressed="true"],
.club-dashboard-section-nav button[aria-selected="true"] {
    border-color: var(--control-neutral-selected-bg);
    background: var(--control-neutral-selected-bg);
    color: var(--control-neutral-selected-text);
}

.club-dashboard-filter select:focus-visible,
.club-dashboard-segmented button:focus-visible,
.club-dashboard-section-nav button:focus-visible,
.club-dashboard-compare-select:focus-visible,
.club-dashboard-table-scroll:focus-visible,
.club-dashboard-data-details summary:focus-visible {
    outline: 2px solid var(--control-neutral-focus);
    outline-offset: 2px;
}

.club-dashboard-section-nav {
    min-width: 0;
    display: flex;
    gap: 8px;
    overflow-x: auto;
}

.club-dashboard-section-nav[hidden] {
    display: none !important;
}

.club-dashboard-hero {
    min-width: 0;
    display: grid;
    grid-template-columns: minmax(140px, 0.7fr) minmax(220px, 1.3fr);
    gap: 0;
    align-items: stretch;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--radius-card);
    background: var(--bg-card);
    padding: 14px 16px;
    box-shadow: var(--shadow-tight);
}

.club-dashboard-next-opponent {
    min-width: 0;
    display: flex;
    gap: 10px;
    align-items: center;
}

.club-dashboard-standing > span,
.club-dashboard-next-match > span,
.club-dashboard-compare-copy > span {
    display: block;
    color: var(--text-muted);
    font-size: 0.68rem;
    line-height: 1.3;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.club-dashboard-standing small,
.club-dashboard-next-meta,
.club-dashboard-next-opponent small {
    margin: 0;
    color: var(--text-secondary);
    font-size: 0.72rem;
    line-height: 1.45;
}

.club-dashboard-standing,
.club-dashboard-next-match {
    min-width: 0;
    display: grid;
    align-content: center;
    gap: 5px;
    padding: 2px 16px;
}

.club-dashboard-standing {
    padding-left: 0;
}

.club-dashboard-next-match {
    border-left: 1px solid var(--line);
}

.club-dashboard-standing strong {
    color: var(--ink);
    font-size: 1.65rem;
    line-height: 1;
}

.club-dashboard-next-opponent img {
    width: 32px;
    height: 32px;
    flex: 0 0 32px;
    object-fit: contain;
}

.club-dashboard-next-opponent strong,
.club-dashboard-compare-copy strong {
    display: block;
    color: var(--ink);
    font-size: 0.8rem;
    line-height: 1.3;
}

.club-dashboard-panel {
    padding: var(--club-dashboard-pad);
}

.club-dashboard-summary-heading,
.club-dashboard-panel-head {
    min-width: 0;
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: start;
    margin-bottom: 16px;
}

.club-dashboard-summary-heading > div,
.club-dashboard-panel-head > div {
    min-width: 0;
}

.club-dashboard-summary-heading h3,
.club-dashboard-panel-head h3,
.club-dashboard-panel-head h4 {
    margin: 0;
    color: var(--ink);
    font-size: 1rem;
    line-height: 1.2;
    font-weight: 800;
}

.club-dashboard-summary-heading p,
.club-dashboard-panel-head p {
    margin: 4px 0 0;
    color: var(--text-secondary);
    font-size: 0.74rem;
    line-height: 1.4;
}

.club-dashboard-summary-heading > span,
.club-dashboard-sample {
    flex: 0 0 auto;
    color: var(--text-muted);
    font-size: 0.7rem;
    line-height: 1.35;
    font-weight: 700;
    text-align: right;
}

.club-dashboard-panel-head span {
    display: block;
    margin-bottom: 4px;
    color: var(--gold-strong);
    font-size: 0.7rem;
    line-height: 1.2;
    font-weight: 700;
}

.club-dashboard-kpis {
    display: grid;
    grid-template-columns: 1.15fr repeat(5, minmax(0, 1fr));
    gap: 1px;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--radius-card);
    background: var(--line);
}

.club-dashboard-kpi {
    min-width: 0;
    min-height: 132px;
    display: grid;
    grid-template-rows: auto 1fr auto;
    gap: 8px;
    align-content: center;
    border: 0;
    border-radius: 0;
    background: var(--bg-card);
    padding: 16px 12px;
}

.club-dashboard-kpi:first-child {
    background: var(--bg-soft);
}

.club-dashboard-kpi > span {
    color: var(--text-muted);
    font-size: 0.7rem;
    line-height: 1.25;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.club-dashboard-kpi strong {
    align-self: end;
    color: var(--ink);
    font-size: clamp(2rem, 4vw, 3.25rem);
    line-height: 0.9;
    font-weight: 900;
    font-variant-numeric: tabular-nums;
}

.club-dashboard-kpi small {
    min-height: 2.5em;
    color: var(--text-muted);
    font-size: 0.7rem;
    line-height: 1.3;
    font-weight: 600;
}

.club-dashboard-kpi small[data-tone="positive"] {
    color: var(--club-dashboard-positive);
    font-weight: 800;
}

.club-dashboard-kpi small[data-tone="negative"] {
    color: var(--club-dashboard-negative);
    font-weight: 800;
}

.club-dashboard-overview-grid,
.club-dashboard-split-grid,
.club-dashboard-detail-grid,
.club-dashboard-prediction-grid {
    min-width: 0;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--club-dashboard-gap);
    align-items: stretch;
}

.club-dashboard-pulse {
    min-width: 0;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 8px;
}

.club-dashboard-pulse-item {
    min-width: 0;
    min-height: 112px;
    display: grid;
    grid-template-rows: auto 1fr auto;
    gap: 8px;
    border: 1px solid var(--line);
    border-top: 4px solid var(--club-dashboard-neutral);
    border-radius: var(--radius-control);
    background: var(--bg-soft);
    color: var(--text);
    padding: 8px;
}

.club-dashboard-pulse-item[data-result="W"] {
    border-top-color: var(--club-dashboard-positive);
}

.club-dashboard-pulse-item[data-result="L"] {
    border-top-color: var(--club-dashboard-negative);
}

.club-dashboard-pulse-item time,
.club-dashboard-pulse-item small {
    color: var(--text-muted);
    font-size: 0.68rem;
    line-height: 1.25;
    font-weight: 600;
}

.club-dashboard-pulse-item > div {
    min-width: 0;
    display: grid;
    gap: 4px;
    align-content: center;
}

.club-dashboard-pulse-item strong {
    overflow: hidden;
    color: var(--text);
    font-size: 0.72rem;
    line-height: 1.2;
    font-weight: 700;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.club-dashboard-pulse-score {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    align-items: center;
}

.club-dashboard-pulse-score b {
    color: var(--ink);
    font-size: 0.82rem;
    line-height: 1;
    font-weight: 900;
    font-variant-numeric: tabular-nums;
}

.club-dashboard-result-mark {
    min-width: 24px;
    min-height: 24px;
    display: inline-grid;
    place-items: center;
    border-radius: var(--radius-control);
    background: var(--club-dashboard-neutral);
    color: #171815;
    font-size: 0.65rem;
    font-weight: 900;
}

.club-dashboard-result-mark[data-result="W"] {
    background: var(--club-dashboard-positive);
    color: #fffdf3;
}

.club-dashboard-result-mark[data-result="L"] {
    background: var(--club-dashboard-negative);
    color: #fffdf3;
}

.club-dashboard-insights {
    display: grid;
    gap: 12px;
}

.club-dashboard-insight {
    display: grid;
    grid-template-columns: 28px minmax(0, 1fr);
    gap: 8px;
    align-items: start;
    border-bottom: 1px solid var(--line);
    padding-bottom: 12px;
}

.club-dashboard-insight:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}

.club-dashboard-insight > span {
    width: 28px;
    height: 28px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: var(--bg-soft);
    color: var(--gold-strong);
    font-size: 0.7rem;
    font-weight: 800;
}

.club-dashboard-insight strong {
    color: var(--ink);
    font-size: 0.78rem;
    line-height: 1.3;
}

.club-dashboard-insight p {
    margin: 4px 0 0;
    color: var(--text-secondary);
    font-size: 0.72rem;
    line-height: 1.4;
}

.club-dashboard-trend-chart {
    position: relative;
    min-height: 250px;
    overflow-x: auto;
    border: 1px solid var(--line);
    border-radius: var(--radius-control);
    background: var(--bg-card);
    padding: 16px;
}

.club-dashboard-trend-chart svg {
    width: 100%;
    min-width: 520px;
    height: 218px;
    overflow: visible;
}

.club-dashboard-trend-chart .trend-grid line {
    stroke: var(--line);
    stroke-width: 0.75;
    shape-rendering: crispEdges;
    vector-effect: non-scaling-stroke;
}

.club-dashboard-trend-chart .trend-grid text {
    fill: var(--text-muted);
    font-size: 10px;
    line-height: 1;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}

.club-dashboard-trend-chart .trend-area {
    fill: color-mix(in srgb, var(--ink) 6%, transparent);
}

.club-dashboard-trend-chart .trend-line {
    fill: none;
    stroke: var(--action-bg);
    stroke-width: 3;
    stroke-linecap: round;
    stroke-linejoin: round;
    vector-effect: non-scaling-stroke;
}

.club-dashboard-trend-chart .trend-average {
    fill: none;
    stroke: var(--gold-strong);
    stroke-width: 1.5;
    stroke-dasharray: 6 4;
    vector-effect: non-scaling-stroke;
}

.club-dashboard-trend-chart .trend-point-marker {
    stroke: var(--bg-card);
    stroke-width: 2;
    fill: var(--action-bg);
    vector-effect: non-scaling-stroke;
}

.club-dashboard-trend-chart .trend-point-marker[data-result="W"] {
    fill: var(--club-dashboard-positive);
}

.club-dashboard-trend-chart .trend-point-marker[data-result="D"] {
    fill: var(--club-dashboard-neutral);
}

.club-dashboard-trend-chart .trend-point-marker[data-result="L"] {
    fill: var(--club-dashboard-negative);
}

.club-dashboard-trend-chart .trend-point-hit {
    fill: transparent;
    stroke: transparent;
    stroke-width: 0;
    cursor: pointer;
    pointer-events: all;
}

.club-dashboard-trend-chart .trend-point-hit:focus {
    outline: none;
}

.club-dashboard-trend-chart .trend-point-hit:focus-visible {
    stroke: var(--action-bg);
    stroke-width: 2;
}

.club-dashboard-trend-chart .trend-point[data-active="true"] .trend-point-marker {
    stroke: var(--ink);
    stroke-width: 4;
}

.club-dashboard-trend-tooltip {
    width: max-content;
    max-width: min(260px, calc(100% - 24px));
    position: absolute;
    z-index: 3;
    display: grid;
    gap: 6px;
    border: 1px solid var(--line-strong);
    border-radius: var(--radius-control);
    background: var(--bg-card);
    box-shadow: var(--shadow-card);
    color: var(--ink);
    padding: 10px 12px;
    pointer-events: none;
}

.club-dashboard-trend-tooltip[hidden] {
    display: none;
}

.club-dashboard-trend-tooltip[data-placement="above"] {
    transform: translate(-50%, -100%);
}

.club-dashboard-trend-tooltip[data-placement="below"] {
    transform: translate(-50%, 0);
}

.club-dashboard-trend-tooltip > div {
    display: flex;
    gap: 8px;
    align-items: center;
    justify-content: space-between;
}

.club-dashboard-trend-tooltip strong {
    font-size: 0.76rem;
    line-height: 1.3;
    font-weight: 900;
}

.club-dashboard-trend-tooltip span {
    flex: 0 0 auto;
    border-radius: 999px;
    background: var(--bg-soft);
    padding: 3px 7px;
    color: var(--text-secondary);
    font-size: 0.62rem;
    line-height: 1.2;
    font-weight: 800;
}

.club-dashboard-trend-tooltip span[data-result="W"] {
    background: color-mix(in srgb, var(--club-dashboard-positive) 16%, var(--bg-card));
    color: var(--club-dashboard-positive);
}

.club-dashboard-trend-tooltip span[data-result="L"] {
    background: color-mix(in srgb, var(--club-dashboard-negative) 16%, var(--bg-card));
    color: var(--club-dashboard-negative);
}

.club-dashboard-trend-tooltip small {
    color: var(--text-secondary);
    font-size: 0.66rem;
    line-height: 1.35;
}

.club-dashboard-trend-tooltip b {
    color: var(--text);
    font-size: 0.68rem;
    line-height: 1.3;
    font-weight: 800;
}

.club-dashboard-trend-chart .trend-current-value {
    fill: var(--ink);
    stroke: var(--bg-card);
    stroke-width: 4px;
    paint-order: stroke fill;
    font-size: 11px;
    line-height: 1;
    font-weight: 900;
    font-variant-numeric: tabular-nums;
}

.club-dashboard-trend-legend,
.statistics-probability-labels {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-top: 12px;
    color: var(--text-secondary);
    font-size: 0.7rem;
    line-height: 1.2;
    font-weight: 700;
}

.club-dashboard-trend-legend {
    justify-content: flex-start;
}

.club-dashboard-trend-legend span {
    display: inline-flex;
    gap: 8px;
    align-items: center;
}

.club-dashboard-trend-legend i {
    width: 16px;
    height: 3px;
    border-radius: 999px;
    background: var(--action-bg);
}

.club-dashboard-trend-legend i.is-average {
    height: 0;
    border-top: 2px dashed var(--gold-strong);
    background: transparent;
}

.club-dashboard-data-details {
    margin-top: 12px;
    border: 1px solid var(--line);
    border-radius: var(--radius-control);
    background: var(--bg-soft);
}

.club-dashboard-data-details summary {
    min-height: var(--target-min);
    display: flex;
    align-items: center;
    padding: 8px 12px;
    color: var(--text);
    font-size: 0.72rem;
    font-weight: 700;
    cursor: pointer;
}

.club-dashboard-table-scroll {
    min-width: 0;
    overflow-x: auto;
    border: 1px solid var(--line);
    border-radius: var(--radius-control);
}

.club-dashboard-data-details .club-dashboard-table-scroll {
    margin: 0 8px 8px;
}

.club-dashboard-prediction-details-body {
    padding: 0 12px 12px;
}

.club-dashboard-table {
    width: 100%;
    min-width: 560px;
    border-collapse: collapse;
    color: var(--text);
    font-size: 0.7rem;
    font-variant-numeric: tabular-nums;
}

.club-dashboard-comparison-table {
    min-width: 500px;
}

.club-dashboard-table caption {
    width: 1px;
    height: 1px;
    position: absolute;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
}

.club-dashboard-table th,
.club-dashboard-table td {
    border-bottom: 1px solid var(--line);
    padding: 8px;
    text-align: center;
    white-space: nowrap;
}

.club-dashboard-table th {
    background: var(--bg-soft);
    color: var(--text-muted);
    font-size: 0.68rem;
    font-weight: 800;
}

.club-dashboard-table th:first-child,
.club-dashboard-table td:first-child {
    position: sticky;
    z-index: 1;
    left: 0;
    min-width: 120px;
    background: var(--bg-card);
    text-align: left;
    font-weight: 800;
}

.club-dashboard-table thead th:first-child {
    z-index: 2;
    background: var(--bg-soft);
}

.club-dashboard-table tbody tr:last-child th,
.club-dashboard-table tbody tr:last-child td {
    border-bottom: 0;
}

.club-dashboard-table td.is-positive {
    color: var(--club-dashboard-positive);
    font-weight: 900;
}

.club-dashboard-metric-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.club-dashboard-metric-card {
    min-width: 0;
    min-height: 136px;
    display: grid;
    grid-template-rows: auto 1fr auto auto;
    gap: 8px;
    border: 1px solid var(--line);
    border-radius: var(--radius-control);
    background: var(--bg-card);
    padding: 12px;
}

.club-dashboard-metric-label {
    color: var(--text-secondary);
    font-size: 0.72rem;
    line-height: 1.25;
    font-weight: 700;
}

.club-dashboard-metric-card strong {
    align-self: end;
    color: var(--ink);
    font-size: 1.75rem;
    line-height: 1;
    font-weight: 900;
    font-variant-numeric: tabular-nums;
}

.club-dashboard-metric-comparison,
.club-dashboard-coverage-bar {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
    align-items: center;
}

.club-dashboard-metric-track,
.club-dashboard-coverage-bar > span {
    position: relative;
    height: 4px;
    border-radius: 999px;
    background: var(--bg-soft);
}

.club-dashboard-metric-track i,
.club-dashboard-metric-track b {
    position: absolute;
    top: 50%;
    border-radius: 50%;
    transform: translate(-50%, -50%);
}

.club-dashboard-metric-track i {
    width: 8px;
    height: 8px;
    background: var(--action-bg);
}

.club-dashboard-metric-track b {
    width: 6px;
    height: 6px;
    background: var(--gold-strong);
}

.club-dashboard-metric-comparison small,
.club-dashboard-metric-coverage {
    color: var(--text-muted);
    font-size: 0.68rem;
    line-height: 1.3;
    font-weight: 600;
}

.club-dashboard-coverage-bar > span {
    overflow: hidden;
}

.club-dashboard-coverage-bar > span i {
    display: block;
    width: var(--coverage, 0%);
    height: 100%;
    border-radius: inherit;
    background: var(--gold-strong);
}

.club-dashboard-no-coverage,
.club-dashboard-empty,
.club-dashboard-error {
    min-height: 210px;
    display: grid;
    place-items: center;
    padding: 32px;
    text-align: center;
}

.club-dashboard-empty,
.club-dashboard-error {
    min-height: 260px;
}

.club-dashboard-no-coverage {
    border: 1px dashed var(--line-strong);
    border-radius: var(--radius-control);
    background: var(--bg-soft);
}

.club-dashboard-no-coverage > div,
.club-dashboard-empty > div,
.club-dashboard-error > div {
    max-width: 520px;
}

.club-dashboard-no-coverage strong,
.club-dashboard-empty strong,
.club-dashboard-error strong {
    display: block;
    color: var(--ink);
    font-size: 1rem;
    line-height: 1.2;
    font-weight: 800;
}

.club-dashboard-no-coverage p,
.club-dashboard-empty p,
.club-dashboard-error p {
    margin: 8px 0 0;
    color: var(--text-secondary);
    font-size: 0.74rem;
    line-height: 1.5;
}

.club-dashboard-probability {
    display: flex;
    min-height: var(--target-min);
    overflow: hidden;
    border-radius: var(--radius-control);
    color: #fffdf3;
    font-size: 0.72rem;
    font-weight: 900;
    font-variant-numeric: tabular-nums;
}

.club-dashboard-probability span {
    min-width: 0;
    display: grid;
    place-items: center;
    overflow: hidden;
}

.club-dashboard-probability .is-win {
    background: var(--club-dashboard-positive);
}

.club-dashboard-probability .is-draw {
    background: var(--club-dashboard-neutral);
    color: #171815;
}

.club-dashboard-probability .is-loss {
    background: var(--club-dashboard-negative);
}

.club-dashboard-method {
    color: var(--text-secondary);
    font-size: 0.72rem;
    line-height: 1.5;
}

.club-dashboard-method strong {
    color: var(--ink);
}

.club-dashboard-method p {
    margin: 0 0 8px;
}

.club-dashboard-method ul {
    display: grid;
    gap: 4px;
    margin: 4px 0 0;
    padding-left: 16px;
}

.statistics-disclaimer {
    margin: 12px 0 0;
    color: var(--text-muted);
    font-size: 0.68rem;
    text-align: center;
}

.club-dashboard-loading {
    display: grid;
    gap: 16px;
}

.club-dashboard-loading-block {
    min-height: 110px;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--radius-card);
    background: var(--bg-soft);
}

.club-dashboard-loading-block:first-child {
    min-height: 210px;
}

.club-dashboard-compare-bar {
    min-width: 0;
    border: 1px solid var(--line);
    border-radius: var(--radius-card);
    background: var(--bg-card);
    box-shadow: var(--shadow-tight);
}

.club-dashboard-compare-bar > summary {
    min-height: var(--target-min);
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: center;
    padding: 12px 16px;
    cursor: pointer;
    list-style: none;
}

.club-dashboard-compare-bar > summary::-webkit-details-marker {
    display: none;
}

.club-dashboard-compare-bar > summary svg {
    width: 20px;
    height: 20px;
    flex: 0 0 20px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.8;
    transition: transform var(--motion);
}

.club-dashboard-compare-bar[open] > summary svg {
    transform: rotate(180deg);
}

.club-dashboard-compare-body {
    border-top: 1px solid var(--line);
    padding: 12px 16px 16px;
}

.club-dashboard-compare-bar .club-dashboard-filter {
    width: min(100%, 320px);
}

.club-dashboard-coverage {
    min-width: 0;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--radius-card);
    background: var(--bg-card);
    box-shadow: var(--shadow-tight);
}

.club-dashboard-coverage .club-dashboard-data-details {
    margin: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
}

.club-dashboard-coverage .club-dashboard-data-details > summary {
    justify-content: space-between;
    gap: 12px;
    padding: 12px 16px;
}

.club-dashboard-coverage .club-dashboard-data-details > summary small {
    color: var(--text-muted);
    font-size: 0.68rem;
    font-weight: 600;
    text-align: right;
}

.club-dashboard-coverage-body {
    border-top: 1px solid var(--line);
    padding: 16px;
}

.club-dashboard-comparison-grid {
    display: grid;
    gap: 1px;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--radius-card);
    background: var(--line);
}

.club-dashboard-comparison-row,
.club-dashboard-comparison-table {
    min-width: 0;
}

.club-dashboard-comparison-row {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) repeat(2, minmax(0, 1fr));
    gap: 12px;
    align-items: center;
    background: var(--bg-card);
    padding: 10px 12px;
    color: var(--text-secondary);
    font-size: 0.72rem;
}

.club-dashboard-comparison-row strong {
    color: var(--ink);
    font-size: inherit;
    text-align: right;
}

.club-dashboard-comparison-row > :last-child {
    min-width: 0;
}

@media (max-width: 1050px) {
    .statistics-controls-card {
        --statistics-filter-columns: repeat(2, minmax(0, 1fr));
    }

    .club-dashboard-kpis {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .club-dashboard-overview-grid,
    .club-dashboard-split-grid,
    .club-dashboard-detail-grid,
    .club-dashboard-prediction-grid {
        grid-template-columns: 1fr;
    }

}

@media (max-width: 720px) {
    .statistics-page {
        --club-dashboard-gap: var(--content-stack-gap-compact);
        --club-dashboard-pad: 16px;
    }

    .statistics-page > .stats-head {
        margin-bottom: var(--club-dashboard-gap);
    }

    .statistics-controls-card .team-filter-pill {
        min-height: var(--filter-control-height);
        aspect-ratio: auto;
        padding: var(--filter-control-padding);
    }

    .statistics-controls-card .team-filter-pill > span {
        display: block;
    }

    .statistics-controls-card .team-filter-pill img {
        width: var(--club-filter-crest-size);
        height: var(--club-filter-crest-size);
    }

    .club-dashboard-segmented {
        grid-column: 1 / -1;
    }

    .club-dashboard-hero {
        grid-template-columns: minmax(104px, 0.72fr) minmax(0, 1.28fr);
        padding: 12px 14px;
    }

    .club-dashboard-standing {
        padding-right: 12px;
    }

    .club-dashboard-next-match {
        padding-right: 0;
        padding-left: 12px;
    }

    .club-dashboard-summary-heading,
    .club-dashboard-panel-head {
        display: grid;
        gap: 8px;
    }

    .club-dashboard-summary-heading > span,
    .club-dashboard-sample {
        text-align: left;
    }

    .club-dashboard-kpis {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .club-dashboard-kpi {
        min-height: 120px;
    }

    .club-dashboard-kpi strong {
        font-size: 2.25rem;
    }

    .club-dashboard-pulse {
        grid-template-columns: repeat(5, minmax(128px, 1fr));
        overflow-x: auto;
        padding-bottom: 8px;
        scroll-snap-type: x proximity;
    }

    .club-dashboard-pulse-item {
        scroll-snap-align: start;
    }

    .club-dashboard-trend-chart {
        min-height: 210px;
        padding: 12px;
    }

    .club-dashboard-trend-chart svg {
        min-width: 600px;
        height: 184px;
    }

    .club-dashboard-trend-chart .trend-grid text {
        font-size: 12px;
    }

    .club-dashboard-trend-chart .trend-current-value {
        font-size: 13px;
    }

    .club-dashboard-metric-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

}

@media (max-width: 380px) {
    .statistics-controls-card {
        --statistics-filter-columns: minmax(0, 1fr);
    }

    .club-dashboard-metric-grid {
        grid-template-columns: 1fr;
    }

    .club-dashboard-compare-bar {
        display: block;
    }

    .club-dashboard-compare-bar .club-dashboard-filter {
        width: 100%;
    }

    .club-dashboard-comparison-row {
        grid-template-columns: minmax(0, 1.1fr) repeat(2, minmax(0, 0.8fr));
        gap: 6px;
    }

    .club-dashboard-segmented {
        grid-column: auto;
    }

    .club-dashboard-hero {
        grid-template-columns: minmax(0, 1fr);
    }

    .club-dashboard-standing {
        padding: 2px 0 12px;
    }

    .club-dashboard-next-match {
        border-top: 1px solid var(--line);
        border-left: 0;
        padding: 12px 0 2px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .club-dashboard *,
    .club-dashboard *::before,
    .club-dashboard *::after {
        animation: none !important;
        scroll-behavior: auto !important;
        transition: none !important;
    }
}

@media print {
    .statistics-controls-card,
    .club-dashboard-section-nav,
    .club-selector-overlay {
        display: none !important;
    }

    .club-dashboard-panel,
    .club-dashboard-kpis {
        box-shadow: none;
        break-inside: avoid;
    }
}
}
