:host,:root,[data-bs-theme=light], [data-bs-theme=dark] {
    --tblr-primary: #f36d23;
    --tblr-primary-rgb: 243,109,35;
}

html {
    scroll-behavior: smooth;
}

@media (min-width: 1200px) {
    .navbar-brand-image {
        height: 100%;
        max-height: 15rem;
    }
}

.ranking-card {
    max-width: 720px;
}

.rank-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    font-weight: 600;
    color: #fff;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.15);
}

.rank-badge--first  { background: linear-gradient(135deg, #f5c453, #d4a017); }
.rank-badge--second { background: linear-gradient(135deg, #d6dae0, #9aa1ad); }
.rank-badge--third  { background: linear-gradient(135deg, #d99a6c, #a36a3d); }

.rank-position {
    color: var(--tblr-secondary, #6c757d);
    font-variant-numeric: tabular-nums;
}

.ranking-tie {
    color: var(--tblr-secondary, #6c757d);
    font-size: 1.25rem;
    line-height: 1;
}

.ranking-points {
    font-variant-numeric: tabular-nums;
    font-size: 0.95rem;
}

.ranking-row--leader {
    background-color: rgba(245, 196, 83, 0.08);
}

.rank-movement {
    display: inline-block;
    margin-left: 0.4rem;
    font-size: 0.75rem;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
    letter-spacing: 0.02em;
}

.rank-movement--up   { color: #2fb344; }
.rank-movement--down { color: #d63939; }
.rank-movement--same { color: var(--tblr-secondary, #6c757d); }

.ranking-heading {
    font-size: 1rem;
    font-weight: 600;
    color: var(--tblr-secondary, #6c757d);
    margin-bottom: 0.5rem;
}

/* Denser ranking rows so a large roster stays compact. */
.ranking-table td,
.ranking-table th {
    font-size: 0.875rem;
}

/* -------------------------------------------------------------------------
 * Sporty motion layer
 * Subtle entrance + interaction animations. All keyframes are disabled
 * when the user prefers reduced motion (block at the bottom of this file).
 * ----------------------------------------------------------------------- */

@keyframes wk-backdrop-in {
    from { opacity: 0; backdrop-filter: blur(0); -webkit-backdrop-filter: blur(0); }
    to   { opacity: 1; backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px); }
}

@keyframes wk-pop {
    0%   { opacity: 0; transform: scale(0.85); }
    60%  { opacity: 1; transform: scale(1.06); }
    100% { transform: scale(1); }
}

@keyframes wk-nl-pulse {
    0%, 100% { background-color: #ffedd5; }
    50%      { background-color: #fed7aa; }
}

/* Netherlands row gets a pulsing orange background with a steady left stripe. */
.wk-nl-row {
    position: relative;
    background-color: #ffedd5;
    box-shadow: inset 4px 0 0 0 #f97316;
    animation: wk-nl-pulse 3.6s ease-in-out infinite;
}
.wk-nl-row:hover {
    background-color: #fed7aa;
}

/* Lift on hover for predictable, snappy feedback. */
.wk-card {
    transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1),
                box-shadow 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}
.wk-card:hover {
    transform: translate3d(0, -2px, 0);
    box-shadow:
        0 25px 50px -12px rgba(15, 23, 42, 0.18),
        0 8px 16px -8px rgba(15, 23, 42, 0.12);
}

/* Tab underline gets a sliding feel via background-size trick. */
.wk-tab {
    position: relative;
}
.wk-tab::after {
    content: '';
    position: absolute;
    left: 12px;
    right: 12px;
    bottom: -2px;
    height: 2px;
    background: linear-gradient(90deg, #f97316, #fb923c);
    border-radius: 9999px;
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}
.wk-tab.is-active::after,
.wk-tab:hover::after {
    transform: scaleX(1);
}

/* Mobile section tabs — full-width, icon over label (suggestion #5). The scrollspy
   controller toggles `is-active` (plus the `text-gray-*` utilities the desktop tabs
   use); the rules below win on specificity so the active item reads in brand orange. */
.wk-tabbar {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.1875rem;
    min-height: 3.25rem;
    padding: 0.4375rem 0.25rem;
    color: #6b7280;
    font-size: 0.6875rem;
    font-weight: 600;
    line-height: 1;
    transition: color 0.15s ease;
}
.wk-tabbar > span {
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.wk-tabbar.is-active {
    color: #ea580c;
}
.wk-tabbar.is-active::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    width: 2rem;
    height: 2px;
    transform: translateX(-50%);
    border-radius: 9999px;
    background: linear-gradient(90deg, #f97316, #fb923c);
}
.wk-tabbar:active {
    background-color: rgba(15, 23, 42, 0.04);
}

/* AI overlay — a slightly more theatrical spinner backdrop. */
@keyframes wk-overlay-in {
    from { opacity: 0; backdrop-filter: blur(0); }
    to   { opacity: 1; backdrop-filter: blur(3px); }
}
#ai-overlay:not(.hidden) {
    animation: wk-overlay-in 0.35s ease-out both;
}

/* Modal dialog open animation (browsers that support ::backdrop transitions). */
dialog[open] {
    animation: wk-pop 0.35s cubic-bezier(0.22, 1, 0.36, 1) both;
}
dialog[open]::backdrop {
    animation: wk-backdrop-in 0.3s ease both;
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
}

/* Swipe/arrow navigation drives its own slide-in from JS. Suppress the open
   "pop" (and backdrop re-fade) for that case so the wk-pop scale-overshoot
   doesn't fight the slide and read as a scale jump when the card lands. Placed
   after dialog[open] so it wins at equal specificity. */
dialog.wk-sliding,
dialog.wk-sliding::backdrop {
    animation: none;
}

/* Score input — soft focus ring with a sporty glow. */
input[type="number"]:focus {
    box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.18);
}

/* Reduced motion: kill every animation/transition the polish layer added. */
@media (prefers-reduced-motion: reduce) {
    .wk-nl-row,
    #ai-overlay:not(.hidden),
    dialog[open],
    dialog[open]::backdrop {
        animation: none !important;
    }
    .wk-card:hover {
        transform: none;
    }
}

/* Score distribution (ranglijst – verdeling). Segment colours mirror the score
   scale used by the Score component / admin score badges: groen = goed → rood = mis. */
.score-bar {
    display: flex;
    height: 22px;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.05);
}
.score-seg {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    font-size: 0.625rem;
    font-weight: 600;
    line-height: 1;
    overflow: hidden;
    color: #fff;
}
.score-dot {
    display: inline-block;
    width: 12px;
    height: 12px;
    border-radius: 3px;
}
.score-seg--200 { background: #047857; }
.score-seg--100 { background: #059669; }
.score-seg--95  { background: #34d399; color: #1f2937; }
.score-seg--75  { background: #facc15; color: #1f2937; }
.score-seg--20  { background: #f59e0b; color: #1f2937; }
.score-seg--0   { background: #dc2626; }

/* Upcoming-predictions matrix — cells tinted by predicted outcome (home win / draw /
   away win). The chip also carries `.score-seg`, so the form-matrix sort/highlight
   machinery and the `.form-matrix__cell .score-seg` sizing apply unchanged. */
.pred-seg--home { background: #16a34a; color: #fff; }
.pred-seg--draw { background: #6b7280; color: #fff; }
.pred-seg--away { background: #dc2626; color: #fff; }
/* Placeholder for a player who has not predicted this match yet: a muted, outlined "?–?"
   chip (no data-score/highlight), visually distinct from a real prediction. */
.pred-seg--none {
    background: transparent;
    color: var(--tblr-secondary-color, #9aa1ad);
    box-shadow: inset 0 0 0 1px var(--tblr-border-color, #e6e7e9);
    cursor: default;
}

/* Narrow, centred columns for the per-bucket counts. */
.score-count-col {
    width: 2.5rem;
    padding-left: 0.3rem;
    padding-right: 0.3rem;
    text-align: center;
}

/* Player-form matrix */
/* Rank + player are frozen to the left while the score columns scroll under them.
   The player column's `left` must equal the rank column's rendered width, so the
   rank column gets a fixed width and the player `left` mirrors it exactly. */
.form-matrix__rank {
    position: sticky;
    left: 0;
    z-index: 2;
    width: 4.75rem;
    min-width: 4.75rem;
}
.form-matrix__player {
    position: sticky;
    left: 4.75rem;
    z-index: 1;
    white-space: nowrap;
}
/* Body cells need an opaque background so scrolled score columns can't bleed
   through the frozen columns. Tabler's `.table > :not(caption) > * > *` resets
   every cell to a transparent `--tblr-table-bg` at a higher specificity than a
   bare `.form-matrix__rank`, so qualify with `.form-matrix td` to out-specify it.
   Header cells (thead th) are already opaque via Tabler and are left untouched. */
.form-matrix td.form-matrix__rank,
.form-matrix td.form-matrix__player {
    background-color: var(--tblr-bg-surface, #fff);
}
/* Keep the leader-row tint seamless across the now-opaque frozen cells. */
.form-matrix tr.ranking-row--leader td.form-matrix__rank,
.form-matrix tr.ranking-row--leader td.form-matrix__player {
    background-image: linear-gradient(rgba(245, 196, 83, 0.08), rgba(245, 196, 83, 0.08));
}
.form-matrix thead th {
    cursor: pointer;
    user-select: none;
    vertical-align: bottom;
    white-space: nowrap;
}
.form-matrix th.is-sorted-asc,
.form-matrix th.is-sorted-desc {
    color: var(--tblr-primary, #066fd1);
}
.form-matrix th.form-matrix__sortable.is-sorted-asc::after {
    content: " ▲";
    font-size: 0.7em;
}
.form-matrix th.form-matrix__sortable.is-sorted-desc::after {
    content: " ▼";
    font-size: 0.7em;
}
.form-matrix th.form-matrix__game {
    padding: 0.35rem 0.5rem;
}
.form-matrix__flags {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 2px;
}
.form-matrix__flag {
    width: 21px;
    height: 15px;
    object-fit: cover;
    border: 1px solid var(--tblr-border-color, #e6e7e9);
    border-radius: 2px;
}
.form-matrix__cell {
    padding: 2px 0.5rem;
}
.form-matrix__cell .score-seg {
    min-width: 2.25rem;
    height: 1.5rem;
    border-radius: 0.25rem;
    padding: 0 0.35rem;
    margin: 0 auto;
    cursor: pointer;
}
/* Click a score chip to spotlight every cell with that same score. */
.form-matrix.is-highlighting .form-matrix__cell .score-seg {
    opacity: 0.25;
    transition: opacity 0.1s ease;
}
.form-matrix.is-highlighting .form-matrix__cell .score-seg.is-highlighted {
    opacity: 1;
    outline: 2px solid var(--tblr-body-color, #1f2937);
    outline-offset: -2px;
}
/* On phone-portrait nothing is frozen: two sticky columns would leave only a
   thin sliver for the score columns and an awkward scroll target. Dropping the
   sticky positioning turns the whole table into one swipe surface. Rotate to
   landscape (≥ sm, 576px) to get the frozen-column matrix back — there's room
   for it there. */
@media (max-width: 575.98px) {
    .form-matrix__rank,
    .form-matrix__player {
        position: static;
        left: auto;
    }
}

/* Statistics — match-difficulty strip (one bar per played match, coloured by the
   pool's average score tier; dashed line marks the overall pool average). */
.difficulty {
    display: flex;
    gap: 0.5rem;
    align-items: stretch;
}
.difficulty-axis {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 120px;
    font-size: 10px;
    line-height: 1;
    text-align: right;
    color: var(--tblr-secondary, #6c757d);
    font-variant-numeric: tabular-nums;
}
.difficulty-timeline {
    /* line the captions up with the strip, past the y-axis column */
    padding-left: calc(1.75rem + 0.5rem);
}
.difficulty-strip {
    position: relative;
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    align-items: flex-end;
    gap: 2px;
    height: 120px;
}
.difficulty-avg-label {
    position: absolute;
    right: 0;
    transform: translateY(50%);
    padding: 0 0.25rem;
    font-size: 10px;
    color: var(--tblr-secondary, #6c757d);
    background: var(--tblr-bg-surface, #fff);
    pointer-events: none;
    font-variant-numeric: tabular-nums;
}
.difficulty-bar:hover {
    opacity: 1;
    outline: 1px solid rgba(19, 32, 26, 0.35);
}
/* Floating chart tooltip (follows the pointer over the difficulty strip). */
.chart-tip {
    position: absolute;
    z-index: 5;
    transform: translate(-50%, -130%);
    max-width: 16rem;
    padding: 0.35rem 0.55rem;
    border-radius: 6px;
    background: var(--tblr-body-color, #1f2937);
    color: #fff;
    font-size: 11px;
    line-height: 1.4;
    white-space: nowrap;
    pointer-events: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}
.chart-tip strong {
    font-weight: 600;
}
.difficulty-bar {
    flex: 1 1 0;
    min-width: 2px;
    border-radius: 2px 2px 0 0;
    opacity: 0.9;
}
.difficulty-bar--t200 { background: #047857; }
.difficulty-bar--t100 { background: #059669; }
.difficulty-bar--t95  { background: #34d399; }
.difficulty-bar--t75  { background: #facc15; }
.difficulty-bar--t20  { background: #f59e0b; }
.difficulty-bar--t0   { background: #dc2626; }
.difficulty-strip::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: var(--avg, 0);
    border-top: 1px dashed var(--tblr-secondary, #6c757d);
    pointer-events: none;
}

/* Statistics — shared ranked-bar primitive (quiet grey bars, pine leader). */
.statbar {
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.statbar-track {
    display: flex;
    height: 14px;
    background: var(--tblr-bg-surface-secondary, #f1f3f5);
    border-radius: 3px;
    overflow: hidden;
}
.statbar-fill {
    height: 100%;
    min-width: 3px;
    border-radius: 3px;
    background: rgba(var(--tblr-primary-rgb, 243, 109, 35), 0.28);
}
.statbar-fill--lead { background: var(--tblr-primary, #f36d23); }
.statbar-fill--goals { background: rgba(var(--tblr-primary-rgb, 243, 109, 35), 0.62); }
.statbar-value {
    font-size: 0.8rem;
    color: var(--tblr-secondary, #6c757d);
    text-align: right;
    font-variant-numeric: tabular-nums;
}

/* Meest voorspelde uitslag — ranked bars with a scoreboard tile per uitslag. */
.scoreline-row {
    display: grid;
    grid-template-columns: 1.4rem 2.9rem 1fr 2.6rem;
    align-items: center;
    column-gap: 0.6rem;
}
.scoreline-rank {
    text-align: right;
    font-size: 0.8rem;
    color: var(--tblr-secondary, #6c757d);
    font-variant-numeric: tabular-nums;
}
.scoreline-tile {
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-weight: 600;
    font-size: 0.85rem;
    text-align: center;
    padding: 2px 4px;
    border: 1px solid var(--tblr-border-color, #e6e7e9);
    border-radius: 4px;
    background: var(--tblr-bg-surface, #fff);
    letter-spacing: 0.03em;
}

/* Opvallend — goal bars. */
.crowd-row {
    display: grid;
    grid-template-columns: minmax(5rem, 42%) 1fr 2.4rem;
    align-items: center;
    column-gap: 0.6rem;
}
.crowd-name {
    font-size: 0.9rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Reeksen & strijd — one pip per consecutive match, tied to the score palette. */
.streaks {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.streak-item {
    display: grid;
    grid-template-columns: 1.75rem 1fr;
    align-items: start;
    column-gap: 0.6rem;
}
.streak-len {
    text-align: right;
    font-weight: 700;
    font-size: 0.95rem;
    font-variant-numeric: tabular-nums;
    padding-top: 1px;
}
.streak-len--points { color: #059669; }
.streak-len--exact  { color: #047857; }
.streak-body {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 0.3rem 0.5rem;
    min-width: 0;
}
.streak-pips {
    display: flex;
    gap: 2px;
    align-items: center;
    height: 1.4rem;
}
.streak-pip {
    width: 7px;
    height: 15px;
    border-radius: 2px;
}
.streak-pip--points { background: #34d399; }
.streak-pip--exact  { background: #047857; }
.streak-more {
    font-size: 0.7rem;
    color: var(--tblr-secondary, #6c757d);
    margin-left: 2px;
}
.streak-count {
    flex: none;
    font-size: 0.72rem;
    font-variant-numeric: tabular-nums;
    color: var(--tblr-secondary, #6c757d);
    background: var(--tblr-bg-surface-secondary, #f1f3f5);
    border-radius: 999px;
    padding: 0 0.45rem;
    line-height: 1.5;
}
.streak-names {
    flex: 1 1 8rem;
    min-width: 0;
    font-size: 0.9rem;
    overflow-wrap: anywhere;
}

/* Statistics — predicted vs. actual scoreline matrices */
.matrix-pair {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
}
.matrix-cell[data-tip-content] { cursor: default; }
.matrix-cell[data-tip-content]:hover { outline: 2px solid var(--tblr-body-color, #13201a); outline-offset: -2px; }
.matrix {
    flex: 1 1 280px;
    min-width: 0;
}
.matrix-title {
    font-size: 0.85rem;
    font-weight: 600;
    text-align: center;
    margin-bottom: 6px;
}
.matrix-grid {
    display: grid;
    gap: 2px;
    align-items: center;
}
.matrix-cell {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 3px;
    font-size: 10px;
    font-variant-numeric: tabular-nums;
}
.matrix-axis {
    font-size: 9px;
    color: var(--tblr-secondary, #6c757d);
    text-align: right;
    padding-right: 3px;
}
.matrix-axis--col {
    text-align: center;
    padding-right: 0;
}
.matrix-caption {
    font-size: 9px;
    color: var(--tblr-secondary, #6c757d);
    text-align: center;
    margin-top: 3px;
}

/* Statistics — grouped predicted/actual bars (outcome split) */
.ogroup-item { margin-bottom: 0.6rem; }
.ogroup-bar {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    margin-top: 3px;
}
.ogroup-track {
    flex: 1;
    height: 15px;
    background: var(--tblr-bg-surface-secondary, #f1f3f5);
    border-radius: 3px;
    overflow: hidden;
}
.ogroup-fill {
    display: block;
    height: 100%;
    border-radius: 3px;
    min-width: 3px;
}
.ogroup-val {
    width: 2.8rem;
    text-align: right;
    font-size: 0.8rem;
    font-variant-numeric: tabular-nums;
    color: var(--tblr-secondary, #6c757d);
}
.ogroup-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 6px;
    font-size: 11px;
    color: var(--tblr-secondary, #6c757d);
}
.ogroup-legend i {
    display: inline-block;
    width: 11px;
    height: 11px;
    border-radius: 3px;
    margin-right: 5px;
    vertical-align: -1px;
}

/* Statistics — per-round stacked score-tier bars */
.roundbars { position: relative; }
.roundbar-seg { transition: filter 0.1s ease; }
.roundbar-seg[data-tip-content]:hover { filter: brightness(1.12); }
.roundbar-row {
    display: grid;
    grid-template-columns: 5.5rem 1fr;
    align-items: center;
    column-gap: 0.6rem;
    margin-bottom: 6px;
}
.roundbar-label {
    text-align: right;
    font-size: 0.85rem;
}
.roundbar-track {
    display: flex;
    height: 18px;
    border-radius: 3px;
    overflow: hidden;
}
.roundbar-seg { height: 100%; }
.legend-tiers {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 8px;
    font-size: 11px;
    color: var(--tblr-secondary, #6c757d);
    font-variant-numeric: tabular-nums;
}
.legend-tiers i {
    display: inline-block;
    width: 11px;
    height: 11px;
    border-radius: 3px;
    margin-right: 4px;
    vertical-align: -1px;
}

/* Statistics — goal-deviation histogram (fills the card so bars anchor to the bottom) */
.histo {
    display: flex;
    align-items: flex-end;
    gap: 10px;
    flex: 1 1 auto;
    min-height: 160px;
}
.histo-col {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    height: 100%;
}
.histo-val {
    font-size: 11px;
    font-weight: 600;
    margin-bottom: 3px;
}
.histo-bar {
    width: 60%;
    min-height: 2px;
    border-radius: 3px 3px 0 0;
}
.histo-x {
    margin-top: 5px;
    font-size: 11px;
    color: var(--tblr-secondary, #6c757d);
}

/* Statistics — dual-line chart (optimism) */
.linechart-box {
    display: flex;
    align-items: stretch;
    gap: 0.4rem;
}
.axis-y-title {
    writing-mode: vertical-rl;
    transform: rotate(180deg);
    text-align: center;
    font-size: 10px;
    color: var(--tblr-secondary, #6c757d);
    align-self: center;
}
.linechart-yaxis {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 200px;
    font-size: 10px;
    text-align: right;
    color: var(--tblr-secondary, #6c757d);
    font-variant-numeric: tabular-nums;
}
.linechart-plot {
    position: relative;
    flex: 1;
    min-width: 0;
}
.linechart {
    display: block;
    width: 100%;
    height: 200px;
}
.linechart-hover {
    position: absolute;
    inset: 0;
    display: flex;
}
.linechart-slot { flex: 1; }
.linechart-slot:hover { background: rgba(15, 40, 30, 0.05); }
.axis-x-title {
    text-align: center;
    font-size: 10px;
    color: var(--tblr-secondary, #6c757d);
    margin-top: 4px;
}

/* Statistics — exact-per-match strip reuses the difficulty strip, minus the average line */
.difficulty-strip.is-plain::after { content: none; }
.exact-bar { background: var(--tblr-primary, #f36d23); }

/* Light zebra striping for content tables — set on the row so it shows through the
   transparent cells (like the leader-row tint), without fighting table-hover. */
.table-zebra > tbody > tr:nth-of-type(odd) {
    background-color: rgba(15, 40, 30, 0.03);
}

/* Sortable tables (driven by the shared matrix controller). */
.table-sortable thead th[data-sort-type] {
    cursor: pointer;
    user-select: none;
}
.table-sortable thead th.is-sorted-asc,
.table-sortable thead th.is-sorted-desc {
    color: var(--tblr-primary, #f36d23);
}
.table-sortable thead th.is-sorted-asc::after { content: " ▲"; font-size: 0.7em; }
.table-sortable thead th.is-sorted-desc::after { content: " ▼"; font-size: 0.7em; }

/* Spelers table — per-player score-mix bar and form chip */
.scoremix {
    display: flex;
    height: 12px;
    width: 100%;
    min-width: 7rem;
    border-radius: 3px;
    overflow: hidden;
    cursor: default;
    transition: box-shadow 0.1s ease, transform 0.1s ease;
}
.scoremix:hover {
    box-shadow: 0 0 0 2px var(--tblr-body-color, #13201a);
    transform: scaleY(1.25);
}
.scoremix-seg { height: 100%; }
.form-chip {
    display: inline-block;
    font-size: 0.78rem;
    font-variant-numeric: tabular-nums;
    padding: 1px 6px;
    border-radius: 999px;
    white-space: nowrap;
}
.form-chip--up   { color: #047857; background: rgba(5, 150, 105, 0.12); }
.form-chip--down { color: #b42318; background: rgba(220, 38, 38, 0.12); }
.form-chip--flat { color: var(--tblr-secondary, #6c757d); background: var(--tblr-bg-surface-secondary, #f1f3f5); }
