* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, Helvetica, sans-serif;
}

h1,
h2,
h3,
h4 {
    width: 100%;
    text-align: center;
}


body {
    background-color: #0b1220;
    background-image:
        linear-gradient(rgba(7, 14, 26, .62), rgba(7, 14, 26, .78)),
        url("images/backgrounds/football-game-background-v2.png");
    background-repeat: no-repeat;
    background-position: center top;
    background-size: cover;
    background-attachment: fixed;
    min-height: 100vh;

}



/* Шапка */

header {

    position: relative;
    z-index: 1000;
    width: 100%;
    overflow: visible;

    background: rgba(15,23,42,0.95);

    display: flex;
    align-items: center;
    justify-content: space-between;

    border-bottom: 1px solid rgba(255,255,255,0.1);

}



.logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 26px;
    font-weight: bold;

    color: #38bdf8;
    text-decoration: none;

}

html,
body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
    overflow-x: clip;
}

/* Фиферское бинго */

.bingo-page {
    color: var(--site-text);
    height: 100vh;
    height: 100dvh;
    overflow: hidden;
}

.bingo-shell {
    --bingo-board-size: min(448px, calc(100dvh - 336px), calc(100vw - 24px));
    width: min(880px, calc(100% - 24px));
    height: calc(100vh - 72px);
    height: calc(100dvh - 72px);
    margin: 0 auto;
    padding: 7px 0 8px;
    display: grid;
    grid-template-rows: auto auto auto minmax(0, 1fr);
    align-content: stretch;
}

.bingo-visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    border: 0;
    white-space: nowrap;
}

.bingo-intro {
    max-width: 680px;
    margin: 0 auto 6px;
    text-align: center;
}

.bingo-eyebrow,
.bingo-dialog-kicker {
    color: var(--site-accent-light);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .11em;
    text-transform: uppercase;
}

.bingo-intro h1 {
    margin: 0;
    color: #f8fafc;
    font-size: clamp(24px, 3vw, 30px);
    line-height: 1.05;
    letter-spacing: -.03em;
    text-shadow: 0 5px 24px rgba(56, 189, 248, .28);
}

.bingo-intro > p:last-child {
    display: none;
}

.bingo-difficulty-panel {
    display: grid;
    grid-template-columns: auto minmax(138px, 1fr) auto;
    width: var(--bingo-board-size);
    min-height: 36px;
    margin: 0 auto 5px;
    padding: 4px 7px;
    align-items: center;
    column-gap: 7px;
    row-gap: 4px;
    border: 1px solid rgba(125, 211, 252, .2);
    border-radius: 12px;
    background: rgba(15, 23, 42, .9);
}

.bingo-difficulty-panel label,
.bingo-difficulty-panel > span {
    color: var(--site-muted);
    font-size: 10px;
    font-weight: 700;
}

.bingo-difficulty-panel label {
    letter-spacing: .06em;
    text-transform: uppercase;
}

.bingo-difficulty-panel select {
    width: 100%;
    min-width: 0;
    height: 27px;
    padding: 0 28px 0 9px;
    border: 1px solid rgba(56, 189, 248, .38);
    border-radius: 8px;
    background: #111d31;
    color: #f8fafc;
    font: inherit;
    font-size: 11px;
    font-weight: 800;
    cursor: pointer;
}

.bingo-difficulty-panel select:focus-visible {
    border-color: var(--site-accent);
    outline: 2px solid rgba(56, 189, 248, .2);
}

.bingo-difficulty-panel select:disabled {
    cursor: not-allowed;
    opacity: .55;
}

.bingo-difficulty-panel > span {
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
}

.bingo-difficulty-panel > .bingo-best-record {
    grid-column: 1 / -1;
    width: 100%;
    padding-top: 4px;
    border-top: 1px solid rgba(148, 163, 184, .12);
    color: #dbeafe;
    font-size: 11px;
    text-align: center;
}

.bingo-toolbar,
.bingo-help {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 6px 8px;
    border: 1px solid var(--site-border);
    border-radius: var(--site-radius-md);
    background: rgba(15, 23, 42, .92);
    box-shadow: var(--site-shadow);
}

.bingo-toolbar {
    width: var(--bingo-board-size);
    margin: 0 auto;
    min-height: 48px;
    padding: 6px 7px;
    border-color: rgba(125, 211, 252, .25);
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(18, 31, 52, .97), rgba(8, 16, 30, .97));
    box-shadow: 0 12px 30px rgba(2, 6, 23, .32), inset 0 1px rgba(255, 255, 255, .05);
}

.bingo-stat {
    min-width: 62px;
    padding: 2px 7px;
    border-right: 1px solid var(--site-border-soft);
}

.bingo-stat span {
    display: block;
    margin-bottom: 4px;
    color: var(--site-muted);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.bingo-stat strong {
    font-size: 17px;
    font-variant-numeric: tabular-nums;
}

.bingo-score-stat {
    min-width: 70px;
}

.bingo-actions {
    display: flex;
    gap: 5px;
    margin-left: auto;
}

#bingo-lives {
    color: var(--site-accent-light);
    letter-spacing: .08em;
}

#bingo-lives.is-danger {
    color: #f87171;
}

.bingo-button {
    min-height: 34px;
    padding: 0 9px;
    font-size: 10px;
    border: 1px solid rgba(148, 163, 184, .24);
    border-radius: 10px;
    background: linear-gradient(180deg, rgba(51, 65, 85, .92), rgba(30, 41, 59, .96));
    color: var(--site-text);
    cursor: pointer;
    font-weight: 700;
    box-shadow: inset 0 1px rgba(255, 255, 255, .08), 0 5px 14px rgba(2, 6, 23, .2);
    transition: transform var(--site-transition), border-color var(--site-transition), background var(--site-transition), box-shadow var(--site-transition);
}

.bingo-button:hover:not(:disabled),
.bingo-button:focus-visible {
    border-color: var(--site-accent);
    outline: none;
    transform: translateY(-2px);
    box-shadow: inset 0 1px rgba(255, 255, 255, .12), 0 8px 18px rgba(2, 132, 199, .2);
}

.bingo-button-primary {
    border-color: rgba(56, 189, 248, .55);
    background: linear-gradient(135deg, #0ea5e9, #0369a1);
}

.bingo-button:disabled {
    cursor: not-allowed;
    opacity: .42;
    box-shadow: none;
}

.bingo-status {
    display: none;
    font-size: 12px;
    color: #cbd5e1;
    text-align: center;
}

.bingo-status.is-success {
    color: #86efac;
    font-weight: 700;
}

.bingo-draw {
    position: relative;
    display: flex;
    align-items: center;
    width: var(--bingo-board-size);
    min-height: 62px;
    margin: 5px auto 6px;
    padding: 5px 8px;
    border: 1px solid rgba(56, 189, 248, .42);
    border-radius: 17px;
    background:
        radial-gradient(circle at 16% 20%, rgba(14, 165, 233, .2), transparent 34%),
        linear-gradient(135deg, rgba(9, 24, 43, .98), rgba(15, 23, 42, .98));
    box-shadow: 0 12px 30px rgba(2, 6, 23, .34), inset 0 1px rgba(255, 255, 255, .06);
    transition: opacity .25s ease, filter .25s ease, transform .25s ease;
}

.bingo-draw.is-waiting {
    opacity: .46;
    filter: saturate(.45);
}

.bingo-draw.is-changing {
    animation: bingo-player-arrive .16s cubic-bezier(.2, .8, .2, 1);
}

.bingo-start-button {
    border-color: rgba(74, 222, 128, .5);
    background: linear-gradient(135deg, #22c55e, #15803d);
    color: #fff;
}

.bingo-finish-button {
    border-color: rgba(167, 139, 250, .5);
    background: linear-gradient(135deg, rgba(124, 58, 237, .95), rgba(91, 33, 182, .95));
}

.bingo-draw-photo {
    position: absolute;
    z-index: 2;
    top: 50%;
    left: calc(50% - 160px);
    display: grid;
    width: 50px;
    height: 50px;
    place-items: center;
    overflow: hidden;
    border: 1px solid var(--site-border);
    border-radius: 50%;
    background: #111827;
    color: var(--site-accent-light);
    font-size: 26px;
    font-weight: 800;
    box-shadow: 0 6px 18px rgba(2, 6, 23, .35);
    transform: translateY(-50%);
}

.bingo-draw-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
}

.bingo-draw-copy {
    position: absolute;
    z-index: 1;
    top: 50%;
    left: 50%;
    width: 46%;
    text-align: center;
    transform: translate(-50%, -50%);
}

.bingo-draw-copy h2 {
    margin: 0 0 3px;
    font-size: clamp(15px, 1.8vw, 19px);
    line-height: 1.08;
    text-align: center;
}

.bingo-draw-copy > p:last-child {
    color: var(--site-muted);
    max-width: 190px;
    margin: 0 auto;
    overflow: visible;
    font-size: 10px;
    overflow-wrap: anywhere;
    white-space: normal;
    line-height: 1.15;
    text-align: center;
}

.bingo-skip-button {
    z-index: 2;
    min-width: 102px;
    min-height: 40px;
    margin-left: auto;
    border-color: rgba(251, 191, 36, .5);
    border-radius: 12px;
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: #fff;
    font-size: 11px;
    letter-spacing: .01em;
}

#bingo-time.is-danger {
    color: #f87171;
}

.bingo-game {
    width: var(--bingo-board-size);
    min-height: 0;
    max-width: var(--bingo-board-size);
    height: var(--bingo-board-size);
    max-height: 100%;
    margin: 0 auto;
    padding: 1px;
    overflow: hidden;
    aspect-ratio: 1 / 1;
}

.bingo-game-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) var(--bingo-board-size) minmax(0, 1fr);
    grid-template-rows: minmax(0, 1fr);
    gap: 0 10px;
    width: min(880px, 100%);
    min-height: 0;
    height: 100%;
    margin: 0 auto;
    align-items: center;
}

.bingo-game-layout .bingo-game {
    grid-column: 2;
    grid-row: 1;
}

.bingo-game-layout.is-results {
    --bingo-board-size: min(390px, calc(100dvh - 320px), calc(100vw - 24px));
    grid-template-rows: var(--bingo-board-size) 64px;
    align-content: center;
}

.bingo-board {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 5px;
    min-width: 0;
    width: 100%;
    height: 100%;
}

.bingo-category-card {
    position: relative;
    display: flex;
    min-height: 0;
    aspect-ratio: 1 / 1;
    padding: 0;
    overflow: hidden;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(56, 189, 248, .3);
    border-radius: 13px;
    isolation: isolate;
    background:
        radial-gradient(circle at 50% 32%, rgba(56, 189, 248, .14), transparent 48%),
        linear-gradient(160deg, #111b30, #070d19);
    color: var(--site-text);
    cursor: pointer;
    text-align: left;
    box-shadow: inset 0 1px rgba(255, 255, 255, .05), 0 12px 28px rgba(2, 6, 23, .22);
    transition: transform var(--site-transition), border-color var(--site-transition), box-shadow var(--site-transition);
}

.bingo-category-card::before,
.bingo-category-card::after {
    position: absolute;
    inset: 0;
    content: "";
    pointer-events: none;
}

.bingo-category-card::before {
    display: none;
}

.bingo-category-card::after {
    display: none;
}

.bingo-category-card:hover:not(:disabled),
.bingo-category-card:focus-visible:not(:disabled) {
    border-color: var(--site-accent-light);
    outline: 0;
    transform: translateY(-3px);
    box-shadow: 0 16px 34px rgba(2, 132, 199, .18);
}

.bingo-category-card.is-filled {
    border-color: rgba(250, 204, 21, .78);
    background:
        radial-gradient(circle at 50% 20%, rgba(253, 224, 71, .32), transparent 52%),
        linear-gradient(145deg, rgba(202, 138, 4, .58), rgba(113, 63, 18, .82));
    box-shadow: inset 0 0 0 1px rgba(254, 240, 138, .28), 0 8px 20px rgba(2, 6, 23, .2);
}

.bingo-category-card.is-filled::before {
    opacity: 1;
}

.bingo-category-visual {
    position: absolute;
    z-index: 0;
    top: 0;
    right: 0;
    bottom: 28px;
    left: 0;
    display: grid;
    padding: 3px;
    place-items: center;
    pointer-events: none;
}

.bingo-category-visual > .bingo-category-logo {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 88%;
    height: 88%;
    max-width: none;
    max-height: none;
    object-fit: contain;
    object-position: center;
    filter: drop-shadow(0 6px 9px rgba(0, 0, 0, .48));
    pointer-events: none;
    transform: translate(-50%, -50%);
    transition: opacity .2s ease, transform .2s ease;
}

.bingo-category-label {
    position: absolute;
    z-index: 3;
    right: 0;
    bottom: 0;
    left: 0;
    display: grid;
    min-height: 28px;
    padding: 3px 4px;
    place-items: center;
    border-top: 1px solid rgba(125, 211, 252, .18);
    background: rgba(3, 8, 18, .9);
    color: #e2e8f0;
    font-size: 9px;
    font-weight: 800;
    line-height: 1.05;
    text-align: center;
}

.bingo-category-card.is-filled .bingo-category-logo {
    opacity: .12;
}

.bingo-category-card.is-country .bingo-category-visual > .bingo-category-logo {
    width: 64%;
    height: 70%;
    border-radius: 3px;
}

.bingo-placed-photo {
    position: absolute;
    z-index: 1;
    top: 4px;
    bottom: 31px;
    left: 50%;
    width: 82%;
    height: calc(100% - 35px);
    object-fit: contain;
    object-position: center bottom;
    filter: drop-shadow(0 10px 12px rgba(0, 0, 0, .48));
    pointer-events: none;
    transform: translateX(-50%);
}

.bingo-category-card.is-placing {
    animation: bingo-card-place .52s cubic-bezier(.2, .9, .2, 1);
}

.bingo-category-card.is-correct {
    border-color: rgba(74, 222, 128, .72);
    background: radial-gradient(circle at 50% 20%, rgba(74, 222, 128, .3), transparent 52%), linear-gradient(145deg, rgba(21, 128, 61, .72), rgba(20, 83, 45, .92));
}

.bingo-category-card.is-correct .bingo-result-label {
    color: #4ade80;
}

.bingo-category-card.is-incorrect {
    border-color: rgba(248, 113, 113, .72);
    background: radial-gradient(circle at 50% 20%, rgba(248, 113, 113, .3), transparent 52%), linear-gradient(145deg, rgba(185, 28, 28, .72), rgba(69, 10, 10, .94));
}

.bingo-category-card.is-incorrect .bingo-result-label {
    color: #f87171;
}

.bingo-result-label {
    position: absolute;
    top: 3px;
    right: 3px;
    bottom: auto;
    display: grid;
    width: 18px;
    height: 18px;
    padding: 0;
    place-items: center;
    border-radius: 50%;
    border: 1px solid currentColor;
    background: #07101f;
    color: #fff;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0;
}

.bingo-category-card.is-correct .bingo-placed-photo,
.bingo-category-card.is-incorrect .bingo-placed-photo {
    width: 82%;
}

.bingo-inline-score,
.bingo-inline-score-bottom {
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
}

.bingo-game-layout.is-results .bingo-inline-score,
.bingo-game-layout.is-results .bingo-inline-score-bottom {
    visibility: visible;
    opacity: 1;
    transition: opacity .28s ease;
}

.bingo-inline-score {
    align-self: center;
    width: 100%;
    max-width: 188px;
    padding: 8px;
    border: 1px solid rgba(125, 211, 252, .18);
    border-radius: 14px;
    background: rgba(8, 18, 33, .9);
    box-shadow: 0 12px 28px rgba(2, 6, 23, .24);
}

.bingo-inline-score-left {
    grid-column: 1;
    grid-row: 1;
    justify-self: end;
}

.bingo-inline-score-right {
    grid-column: 3;
    grid-row: 1;
    justify-self: start;
}

.bingo-inline-score > header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
    min-height: 26px;
    padding: 0 4px 5px;
    color: #cbd5e1;
    font-size: 10px;
    font-weight: 800;
}

.bingo-inline-score > header strong {
    color: #7dd3fc;
}

.bingo-inline-score .bingo-score-line {
    grid-template-columns: 22px 1fr 23px 34px;
}

.bingo-inline-score-bottom {
    grid-column: 1 / -1;
    grid-row: 2;
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) minmax(245px, 1fr);
    gap: 8px;
    width: min(650px, 100%);
    min-height: 58px;
    margin: 4px auto 0;
    padding: 6px 8px;
    border: 1px solid rgba(125, 211, 252, .18);
    border-radius: 14px;
    background: rgba(8, 18, 33, .94);
}

.bingo-bottom-diagonals {
    display: grid;
    grid-template-columns: 86px repeat(2, minmax(0, 1fr));
    align-items: center;
    gap: 5px;
}

.bingo-bottom-title {
    color: #cbd5e1;
    font-size: 9px;
    font-weight: 800;
    text-align: center;
}

.bingo-bottom-title b {
    display: block;
    margin-top: 3px;
    color: #7dd3fc;
}

.bingo-bottom-diagonals .bingo-score-line {
    grid-template-columns: 20px 1fr 22px 34px;
    border: 1px solid rgba(148, 163, 184, .1);
    border-radius: 8px;
}

.bingo-bottom-totals {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 5px;
}

.bingo-bottom-totals > span {
    display: grid;
    min-width: 0;
    padding: 4px;
    place-content: center;
    border-radius: 8px;
    background: rgba(15, 23, 42, .86);
    text-align: center;
}

.bingo-bottom-totals small {
    color: #94a3b8;
    font-size: 8px;
    text-transform: uppercase;
}

.bingo-bottom-totals b {
    margin-top: 1px;
    font-size: 14px;
}

.bingo-bottom-totals .has-time-bonus b {
    color: #86efac;
}

.bingo-bottom-totals .bingo-grand-total {
    background: rgba(161, 98, 7, .25);
}

.bingo-grand-total b {
    color: #fde047;
    font-size: 17px;
}

.bingo-inline-score-bottom > p {
    grid-column: 1 / -1;
    margin-top: -2px;
    color: #64748b;
    font-size: 8px;
    text-align: center;
}

.bingo-results-dialog {
    width: min(720px, calc(100% - 24px));
    max-height: calc(100dvh - 24px);
    margin: auto;
    overflow: auto;
    border: 1px solid rgba(56, 189, 248, .38);
    border-radius: 20px;
    background: #091425;
    color: var(--site-text);
    box-shadow: 0 28px 80px rgba(2, 6, 23, .72);
}

.bingo-results-dialog::backdrop {
    background: rgba(2, 6, 23, .78);
    backdrop-filter: blur(5px);
}

.bingo-results-card {
    position: relative;
    padding: 20px;
    background:
        radial-gradient(circle at 50% 0, rgba(14, 165, 233, .16), transparent 35%),
        linear-gradient(145deg, rgba(15, 32, 54, .98), rgba(6, 14, 27, .99));
}

.bingo-results-close {
    position: absolute;
    top: 10px;
    right: 12px;
    width: 32px;
    height: 32px;
    border: 1px solid rgba(148, 163, 184, .25);
    border-radius: 50%;
    background: rgba(30, 41, 59, .8);
    color: #cbd5e1;
    font-size: 21px;
    cursor: pointer;
}

.bingo-results-kicker {
    color: #7dd3fc;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .12em;
    text-align: center;
    text-transform: uppercase;
}

.bingo-results-card > h2 {
    margin: 3px 0 14px;
    font-size: 23px;
}

.bingo-score-summary {
    display: grid;
    grid-template-columns: 1.15fr 1fr 1fr;
    gap: 8px;
    margin-bottom: 12px;
}

.bingo-score-summary > div {
    display: grid;
    min-height: 64px;
    padding: 8px;
    place-content: center;
    border: 1px solid rgba(125, 211, 252, .16);
    border-radius: 13px;
    background: rgba(15, 23, 42, .72);
    text-align: center;
}

.bingo-score-summary strong {
    font-size: 20px;
}

.bingo-score-summary span {
    margin-top: 2px;
    color: var(--site-muted);
    font-size: 10px;
}

.bingo-score-summary .bingo-score-total {
    border-color: rgba(250, 204, 21, .35);
    background: linear-gradient(135deg, rgba(161, 98, 7, .28), rgba(15, 23, 42, .8));
}

.bingo-score-total strong {
    color: #fde047;
    font-size: 30px;
    line-height: .9;
}

.bingo-score-groups {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
}

.bingo-score-group {
    padding: 8px;
    border: 1px solid rgba(148, 163, 184, .14);
    border-radius: 13px;
    background: rgba(8, 17, 31, .76);
}

.bingo-score-group header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 6px;
}

.bingo-score-group h3 {
    width: auto;
    color: #cbd5e1;
    font-size: 11px;
    text-align: left;
}

.bingo-score-group header > strong {
    color: #7dd3fc;
    font-size: 11px;
}

.bingo-score-line {
    display: grid;
    grid-template-columns: 24px 1fr 25px 38px;
    align-items: center;
    gap: 4px;
    min-height: 27px;
    padding: 3px 4px;
    border-top: 1px solid rgba(148, 163, 184, .09);
    color: #94a3b8;
    font-size: 9px;
}

.bingo-score-line.is-complete {
    color: #86efac;
}

.bingo-score-line-name,
.bingo-score-line > strong,
.bingo-score-bonus {
    text-align: center;
}

.bingo-score-dots {
    display: flex;
    justify-content: center;
    gap: 3px;
}

.bingo-score-dots i {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #334155;
}

.bingo-score-dots i.is-correct {
    background: #22c55e;
    box-shadow: 0 0 7px rgba(34, 197, 94, .45);
}

.bingo-score-bonus {
    color: #facc15;
    font-weight: 800;
}

.bingo-score-note {
    margin-top: 10px;
    color: var(--site-muted);
    font-size: 10px;
    text-align: center;
}

.bingo-score-note b:first-child {
    color: #22c55e;
}

.bingo-results-done {
    display: block;
    min-width: 150px;
    margin: 13px auto 0;
}

.bingo-corner,
.bingo-criterion,
.bingo-cell {
    border: 1px solid var(--site-border);
    border-radius: var(--site-radius-md);
    background: rgba(15, 23, 42, .94);
}

.bingo-corner,
.bingo-criterion {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px;
    text-align: center;
}

.bingo-corner {
    color: rgba(125, 211, 252, .45);
    font-size: 28px;
}

.bingo-criterion {
    border-color: rgba(56, 189, 248, .35);
    background: linear-gradient(145deg, rgba(30, 64, 175, .36), rgba(15, 23, 42, .98));
    color: #e0f2fe;
    font-size: 15px;
    font-weight: 800;
    line-height: 1.25;
}

.bingo-cell {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px;
    color: var(--site-muted);
    cursor: pointer;
    transition: border-color var(--site-transition), background var(--site-transition), transform var(--site-transition);
}

.bingo-cell:hover:not(.is-filled),
.bingo-cell:focus-visible:not(.is-filled) {
    border-color: var(--site-accent);
    background: rgba(14, 116, 144, .22);
    transform: translateY(-2px);
}

.bingo-cell-plus {
    display: grid;
    width: 38px;
    height: 38px;
    place-items: center;
    border: 1px solid rgba(125, 211, 252, .35);
    border-radius: 50%;
    color: var(--site-accent-light);
    font-size: 24px;
}

.bingo-cell.is-filled {
    border-color: rgba(34, 197, 94, .48);
    background: linear-gradient(145deg, rgba(21, 128, 61, .32), rgba(15, 23, 42, .98));
    cursor: default;
}

.bingo-cell.is-wrong {
    animation: bingo-wrong .35s ease;
    border-color: #ef4444;
    background: rgba(127, 29, 29, .48);
}

@keyframes bingo-wrong {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-7px); }
    75% { transform: translateX(7px); }
}

@keyframes bingo-player-arrive {
    0% { opacity: .68; transform: translateY(-3px) scale(.995); }
    100% { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes bingo-card-place {
    0% { transform: scale(.9); filter: brightness(1.8); }
    55% { transform: scale(1.035); }
    100% { transform: scale(1); filter: brightness(1); }
}

.bingo-player-name {
    color: #f0fdf4;
    font-size: 17px;
    font-weight: 800;
    text-align: center;
}

.bingo-player-meta {
    color: #bbf7d0;
    font-size: 12px;
    line-height: 1.3;
    text-align: center;
}

.bingo-help {
    justify-content: space-between;
    width: min(100%, 760px);
    margin: 3px auto 0;
    padding: 4px 8px;
    justify-content: center;
    text-align: center;
}

.bingo-help h2 {
    margin-bottom: 4px;
    font-size: 14px;
    text-align: left;
}

.bingo-help p {
    max-width: 760px;
    color: var(--site-muted);
    font-size: 11px;
    line-height: 1.25;
}

.bingo-page > footer {
    display: none;
}

.bingo-dialog {
    width: min(560px, calc(100% - 24px));
    max-height: min(720px, calc(100vh - 32px));
    margin: auto;
    border: 1px solid var(--site-border);
    border-radius: var(--site-radius-lg);
    background: #0f172a;
    color: var(--site-text);
    box-shadow: 0 24px 70px rgba(0, 0, 0, .6);
}

.bingo-dialog::backdrop {
    background: rgba(2, 6, 23, .78);
    backdrop-filter: blur(4px);
}

.bingo-dialog-card {
    position: relative;
    padding: 24px;
}

.bingo-dialog-close {
    position: absolute;
    top: 12px;
    right: 14px;
    width: 34px;
    height: 34px;
    border: 0;
    background: transparent;
    color: var(--site-muted);
    cursor: pointer;
    font-size: 28px;
}

.bingo-dialog h2 {
    margin: 6px 0 14px;
    text-align: left;
}

.bingo-selected-criteria {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 18px;
}

.bingo-selected-criteria span {
    padding: 7px 10px;
    border: 1px solid var(--site-border);
    border-radius: 999px;
    background: var(--site-surface-raised);
    color: #e0f2fe;
    font-size: 13px;
    font-weight: 700;
}

.bingo-selected-criteria b {
    color: var(--site-accent);
}

.bingo-search-label {
    display: block;
    margin-bottom: 7px;
    color: #cbd5e1;
    font-size: 13px;
    font-weight: 700;
}

.bingo-player-search {
    width: 100%;
    height: 46px;
    padding: 0 13px;
    border: 1px solid var(--site-border);
    border-radius: var(--site-radius-sm);
    outline: 0;
    background: #111827;
    color: var(--site-text);
    font-size: 16px;
}

.bingo-player-search:focus {
    border-color: var(--site-accent);
    box-shadow: 0 0 0 3px rgba(56, 189, 248, .14);
}

.bingo-suggestions {
    display: grid;
    gap: 6px;
    max-height: 330px;
    margin-top: 10px;
    overflow-y: auto;
}

.bingo-suggestion {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    min-height: 52px;
    padding: 8px 11px;
    border: 1px solid var(--site-border-soft);
    border-radius: var(--site-radius-sm);
    background: #111827;
    color: var(--site-text);
    cursor: pointer;
    text-align: left;
}

.bingo-suggestion:hover,
.bingo-suggestion:focus-visible {
    border-color: var(--site-accent);
    background: #172033;
}

.bingo-suggestion small {
    display: block;
    margin-top: 3px;
    color: var(--site-muted);
}

.bingo-utility {
    flex: 0 0 auto;
    color: var(--site-accent-light);
    font-size: 12px;
}

.bingo-dialog-note,
.bingo-no-results,
.bingo-load-error {
    padding: 12px 2px 0;
    color: var(--site-muted);
    font-size: 13px;
}

.bingo-dialog-note.is-error {
    color: #fca5a5;
}

@media (max-width: 720px) {
    .bingo-shell {
        width: min(100% - 20px, 1120px);
        height: calc(100dvh - 72px);
        padding-top: 5px;
    }

    .bingo-toolbar {
        display: grid;
        grid-template-columns: repeat(4, 1fr);
    }

    .bingo-stat {
        min-width: 0;
        padding: 6px;
        text-align: center;
    }

    .bingo-actions {
        grid-column: 1 / -1;
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        margin-left: 0;
    }

    .bingo-button-primary {
        width: 100%;
        margin-left: 0;
    }

    .bingo-help {
        align-items: stretch;
        flex-direction: column;
    }

    .bingo-draw {
        grid-template-columns: 54px minmax(0, 1fr);
        gap: 9px;
    }

    .bingo-start-button {
        width: 100%;
    }

    .bingo-draw-photo {
        width: 54px;
        height: 54px;
    }

    .bingo-skip-button {
        grid-column: 1 / -1;
        width: 100%;
    }

    .bingo-board {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 4px;
        min-width: 0;
    }

    .bingo-category-card {
        min-height: 0;
    }

    .bingo-criterion {
        padding: 8px;
        font-size: 13px;
    }

    .bingo-dialog-card {
        padding: 20px 16px;
    }
}

:root {
    --site-bg: #0b1220;
    --site-surface: #111827;
    --site-surface-raised: #172033;
    --site-surface-soft: #0f172a;
    --site-border: rgba(125, 211, 252, .22);
    --site-border-soft: rgba(255, 255, 255, .09);
    --site-text: #f8fafc;
    --site-muted: #94a3b8;
    --site-accent: #38bdf8;
    --site-accent-light: #7dd3fc;
    --site-success: #22c55e;
    --site-danger: #ef4444;
    --site-space-1: 4px;
    --site-space-2: 8px;
    --site-space-3: 12px;
    --site-space-4: 16px;
    --site-space-5: 24px;
    --site-space-6: 32px;
    --site-radius-sm: 8px;
    --site-radius-md: 12px;
    --site-radius-lg: 16px;
    --site-container: 1120px;
    --site-container-reading: 860px;
    --site-shadow: 0 8px 22px rgba(0, 0, 0, .18);
    --site-transition: 180ms ease;
}

/* Компактная игровая сцена FIFA-Бинго */
.bingo-shell {
    --bingo-board-size: min(420px, calc(100dvh - 324px));
    --bingo-grid-gap: 5px;
    --bingo-double-cell-size: calc((var(--bingo-board-size) - 2px - var(--bingo-grid-gap)) / 2);
    width: min(960px, calc(100% - 20px));
}

.bingo-game-layout,
.bingo-game-layout.is-results {
    position: relative;
    display: grid;
    grid-template-columns: var(--bingo-board-size);
    grid-template-rows: auto;
    gap: 0;
    width: var(--bingo-board-size);
    height: auto;
    margin-top: 8px;
    align-items: start;
    align-content: start;
    overflow: visible;
}

.bingo-game-layout.is-results {
    --bingo-board-size: inherit;
}

.bingo-player-stack {
    position: absolute;
    top: 49px;
    right: calc(100% + 12px);
    display: grid;
    grid-template-rows: repeat(2, var(--bingo-double-cell-size));
    gap: var(--bingo-grid-gap);
    width: var(--bingo-double-cell-size);
    padding: 0;
}

.bingo-draw,
.bingo-previous-player {
    position: relative;
    display: flex;
    width: 100%;
    min-height: 0;
    height: 100%;
    margin: 0;
    padding: 10px;
    overflow: hidden;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(56, 189, 248, .36);
    border-radius: 14px;
    background: radial-gradient(circle at 50% 25%, rgba(14, 165, 233, .2), transparent 48%), linear-gradient(145deg, #101d32, #070d19);
    box-shadow: 0 10px 24px rgba(2, 6, 23, .28), inset 0 1px rgba(255, 255, 255, .05);
}

.bingo-draw-photo {
    position: relative;
    top: auto;
    left: auto;
    display: grid;
    width: 118px;
    height: 118px;
    flex: 0 1 118px;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    transform: none;
}

.bingo-draw-photo img,
.bingo-previous-player img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center bottom;
}

.bingo-draw-photo img {
    position: absolute;
    inset: 0;
}

.bingo-draw-copy {
    position: relative;
    top: auto;
    left: auto;
    z-index: 2;
    width: 100%;
    transform: none;
}

.bingo-draw-copy h2,
.bingo-previous-player h3 {
    display: flex;
    width: 100%;
    min-height: 35px;
    margin: 1px 0 0;
    padding: 0 2px;
    overflow: visible;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    line-height: 1.05;
    text-align: center;
    text-wrap: balance;
    white-space: normal;
    overflow-wrap: normal;
    word-break: normal;
}

.bingo-draw-copy h2[data-name-size="medium"],
.bingo-previous-player h3[data-name-size="medium"] {
    font-size: 14px;
}

.bingo-draw-copy h2[data-name-size="compact"],
.bingo-previous-player h3[data-name-size="compact"] {
    font-size: 13px;
    letter-spacing: -.015em;
}

.bingo-draw-copy > p:last-child {
    display: none;
}

.bingo-previous-player {
    opacity: .35;
    filter: grayscale(.72) saturate(.45);
}

.bingo-previous-player[hidden] {
    display: none;
}

.bingo-previous-player img {
    width: 110px;
    height: 128px;
    flex: 1 1 auto;
}

.bingo-previous-player p {
    margin-top: 4px;
    color: #cbd5e1;
    font-size: 9px;
    text-align: center;
}

.bingo-previous-player.is-dropping {
    animation: bingo-previous-drop .34s ease-out;
}

.bingo-board-column {
    width: var(--bingo-board-size);
}

.bingo-toolbar {
    width: var(--bingo-board-size);
    max-width: var(--bingo-board-size);
    margin-right: auto;
    margin-left: auto;
}

.bingo-skip-button {
    position: relative;
    z-index: 1;
    top: auto;
    width: 100%;
    min-height: 38px;
    margin: 0 0 10px;
    border-radius: 11px;
    font-size: 13px;
    font-weight: 800;
}

.bingo-board-score-wrap {
    position: relative;
    width: var(--bingo-board-size);
    padding-bottom: 38px;
}

.bingo-game-layout .bingo-game {
    grid-column: auto;
    grid-row: auto;
    overflow: visible;
}

.bingo-category-card:hover:not(:disabled),
.bingo-category-card:focus-visible:not(:disabled) {
    z-index: 3;
}

.bingo-leaderboard {
    position: absolute;
    top: 49px;
    left: calc(100% + 50px);
    display: grid;
    grid-template-rows: auto minmax(0, 1fr) auto;
    width: 250px;
    height: calc(var(--bingo-board-size) - 2px);
    min-height: 0;
    box-sizing: border-box;
    margin-top: 0;
    overflow: hidden;
    border: 1px solid rgba(56, 189, 248, .28);
    border-radius: 14px;
    background: linear-gradient(145deg, rgba(16, 29, 50, .98), rgba(7, 13, 25, .98));
    box-shadow: 0 10px 24px rgba(2, 6, 23, .28), inset 0 1px rgba(255, 255, 255, .05);
}

.bingo-leaderboard-header {
    display: grid;
    gap: 7px;
    justify-items: center;
    padding: 10px 12px;
    border-bottom: 1px solid rgba(148, 163, 184, .14);
    text-align: center;
}

.bingo-leaderboard-header h2 {
    margin: 0;
    color: #f8fafc;
    font-size: 17px;
    line-height: 1.15;
    text-align: center;
}

.bingo-leaderboard-header label {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
}

.bingo-leaderboard-header select {
    width: min(100%, 190px);
    min-height: 32px;
    box-sizing: border-box;
    padding: 5px 28px 5px 10px;
    border: 1px solid rgba(56, 189, 248, .34);
    border-radius: 8px;
    background: #0b1729;
    color: #e2e8f0;
    font: inherit;
    font-size: 11px;
    font-weight: 800;
    text-align: center;
    cursor: pointer;
}

.bingo-leaderboard-header select:focus-visible { outline: 2px solid #38bdf8; outline-offset: 2px; }

.bingo-leaderboard-scroll {
    min-height: 0;
    overflow: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(56, 189, 248, .55) transparent;
}

.bingo-leaderboard table {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
}

.bingo-leaderboard th,
.bingo-leaderboard td {
    padding: 8px 7px;
    border-bottom: 1px solid rgba(148, 163, 184, .1);
    overflow: visible;
    line-height: 1.15;
    text-align: center;
    white-space: normal;
    overflow-wrap: anywhere;
}

.bingo-leaderboard th {
    position: sticky;
    z-index: 1;
    top: 0;
    background: #101d32;
    color: #94a3b8;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: .03em;
    text-transform: uppercase;
}

.bingo-leaderboard td {
    color: #e2e8f0;
    font-size: 11px;
    font-weight: 700;
}

.bingo-leaderboard th:nth-child(1) { width: 68%; }
.bingo-leaderboard th:nth-child(2) { width: 32%; }
.bingo-leaderboard td:nth-child(2) { color: #facc15; font-weight: 900; }

.bingo-leaderboard tbody tr:not(.bingo-leaderboard-empty):hover {
    background: rgba(56, 189, 248, .08);
}

.bingo-leaderboard-empty td {
    padding: 26px 12px;
    color: #94a3b8;
    font-weight: 600;
    line-height: 1.35;
    text-align: center;
}

.bingo-leaderboard > p {
    margin: 0;
    padding: 8px 10px;
    border-top: 1px solid rgba(148, 163, 184, .12);
    color: #94a3b8;
    font-size: 9px;
    line-height: 1.2;
    text-align: center;
}

.bingo-row-scores,
.bingo-column-scores,
.bingo-diagonal-score,
.bingo-total-inline {
    visibility: hidden;
    opacity: 0;
    transition: opacity .25s ease;
}

.bingo-game-layout.is-results .bingo-row-scores,
.bingo-game-layout.is-results .bingo-column-scores,
.bingo-game-layout.is-results .bingo-diagonal-score,
.bingo-game-layout.is-results .bingo-total-inline {
    visibility: visible;
    opacity: 1;
}

.bingo-row-scores {
    position: absolute;
    top: 0;
    left: calc(100% + 6px);
    display: grid;
    grid-template-rows: repeat(4, 1fr);
    width: 38px;
    height: var(--bingo-board-size);
}

.bingo-column-scores {
    position: absolute;
    top: calc(var(--bingo-board-size) + 6px);
    left: 0;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 5px;
    width: var(--bingo-board-size);
    height: 34px;
}

.bingo-row-scores > span,
.bingo-column-scores > span {
    align-self: center;
    justify-self: center;
}

.bingo-attached-score {
    display: inline-flex;
    min-width: 28px;
    height: 27px;
    padding: 0 5px;
    align-items: center;
    justify-content: center;
    gap: 1px;
    border: 1px solid rgba(148, 163, 184, .35);
    border-radius: 9px;
    background: rgba(7, 15, 28, .96);
    color: #e2e8f0;
    font-size: 13px;
    font-weight: 900;
    box-shadow: 0 4px 12px rgba(2, 6, 23, .28);
}

.bingo-attached-score b {
    color: #4ade80;
    font-size: 10px;
}

.bingo-attached-score.is-complete {
    border-color: rgba(74, 222, 128, .6);
}

.bingo-diagonal-score {
    position: absolute;
    left: calc(100% + 6px);
    display: flex;
    width: 38px;
    height: 34px;
    align-items: center;
    justify-content: center;
    gap: 4px;
    color: #7dd3fc;
}

.bingo-diagonal-left {
    top: -40px;
}

.bingo-diagonal-right {
    top: calc(var(--bingo-board-size) + 6px);
}

.bingo-complete-lines {
    position: absolute;
    z-index: 4;
    top: 0;
    left: 0;
    width: var(--bingo-board-size);
    height: var(--bingo-board-size);
    overflow: hidden;
    border-radius: 13px;
    pointer-events: none;
}

.bingo-complete-line {
    position: absolute;
    display: block;
    border-radius: 999px;
    background: #4ade80;
    box-shadow: 0 0 4px #052e16, 0 0 10px rgba(74, 222, 128, .9);
}

.bingo-complete-line.is-row {
    right: 5px;
    left: 5px;
    height: 4px;
    transform: translateY(-50%);
}

.bingo-complete-line.is-column {
    top: 5px;
    bottom: 5px;
    width: 4px;
    transform: translateX(-50%);
}

.bingo-complete-line.is-diagonal-down,
.bingo-complete-line.is-diagonal-up {
    top: 50%;
    left: 50%;
    width: 138%;
    height: 4px;
}

.bingo-complete-line.is-diagonal-down {
    transform: translate(-50%, -50%) rotate(45deg);
}

.bingo-complete-line.is-diagonal-up {
    transform: translate(-50%, -50%) rotate(-45deg);
}

.bingo-total-inline {
    display: none;
}

.bingo-total-inline b {
    color: #e2e8f0;
}

.bingo-total-inline strong {
    padding: 5px 8px;
    border-radius: 8px;
    background: #0ea5e9;
    color: #fff;
    font-size: 11px;
}

@keyframes bingo-previous-drop {
    from { opacity: 0; transform: translateY(-14px); }
    to { opacity: .35; transform: translateY(0); }
}

@media (max-width: 1000px) {
    .bingo-page {
        height: auto;
        min-height: 100vh;
        min-height: 100dvh;
        overflow-y: auto;
    }

    .bingo-shell {
        width: min(680px, calc(100% - 20px));
        height: auto;
        min-height: calc(100vh - 72px);
        min-height: calc(100dvh - 72px);
        grid-template-rows: auto auto auto auto;
    }

    .bingo-game-layout,
    .bingo-game-layout.is-results {
        grid-template-columns: var(--bingo-board-size);
    }

    .bingo-leaderboard {
        position: relative;
        top: auto;
        left: auto;
        width: calc(var(--bingo-board-size) - 2px);
        height: calc(var(--bingo-board-size) - 2px);
        min-height: 0;
        max-height: none;
        margin: 12px 1px 24px;
    }
}

@media (max-width: 860px) {
    .bingo-game-layout,
    .bingo-game-layout.is-results {
        grid-template-rows: auto auto auto auto;
        row-gap: 8px;
    }

    .bingo-board-column {
        display: contents;
    }

    .bingo-skip-button {
        grid-column: 1;
        grid-row: 1;
        margin-bottom: 0;
    }

    .bingo-player-stack {
        position: relative;
        top: auto;
        right: auto;
        grid-column: 1;
        grid-row: 2;
        display: grid;
        grid-template-columns: repeat(2, var(--bingo-double-cell-size));
        grid-template-rows: var(--bingo-double-cell-size);
        gap: var(--bingo-grid-gap);
        width: calc(var(--bingo-board-size) - 2px);
        height: var(--bingo-double-cell-size);
        margin: 0 1px;
    }

    .bingo-draw,
    .bingo-previous-player {
        min-width: 0;
        height: var(--bingo-double-cell-size);
        padding: 8px;
    }

    .bingo-draw-photo {
        width: 104px;
        height: 104px;
        flex-basis: 104px;
    }

    .bingo-previous-player img {
        width: 98px;
        height: 108px;
    }

    .bingo-draw-copy h2,
    .bingo-previous-player h3 {
        min-height: 30px;
        font-size: 14px;
    }

    .bingo-draw-copy h2[data-name-size="medium"],
    .bingo-previous-player h3[data-name-size="medium"] {
        font-size: 13px;
    }

    .bingo-draw-copy h2[data-name-size="compact"],
    .bingo-previous-player h3[data-name-size="compact"] {
        font-size: 12px;
    }

    .bingo-board-score-wrap {
        grid-column: 1;
        grid-row: 3;
    }

    .bingo-leaderboard {
        grid-column: 1;
        grid-row: 4;
    }
}

@media (max-width: 760px) {
    .bingo-shell {
        --bingo-board-size: min(390px, calc(100dvh - 334px), calc(100vw - 24px));
        --bingo-grid-gap: 4px;
    }

    .bingo-game-layout,
    .bingo-game-layout.is-results {
        grid-template-columns: var(--bingo-board-size);
        gap: 8px 0;
        width: var(--bingo-board-size);
    }

    .bingo-leaderboard {
        width: calc(var(--bingo-board-size) - 2px);
    }

    .bingo-row-scores,
    .bingo-diagonal-score {
        display: none;
    }
}

.bingo-card-gallery-dialog {
    position: fixed;
    inset: 0;
    width: min(940px, calc(100vw - 32px));
    max-width: none;
    height: min(720px, calc(100dvh - 32px));
    max-height: none;
    padding: 0;
    margin: auto;
    overflow: hidden;
    border: 1px solid rgba(250, 190, 52, .45);
    border-radius: 18px;
    background: #0d1118;
    color: #f8fafc;
    box-shadow: 0 28px 80px rgba(0, 0, 0, .72), 0 0 0 1px rgba(255, 255, 255, .04) inset;
}

.bingo-card-gallery-dialog::backdrop {
    background: rgba(3, 6, 12, .84);
    backdrop-filter: blur(5px);
}

.bingo-card-gallery-panel {
    display: grid;
    grid-template-rows: auto auto minmax(0, 1fr);
    height: 100%;
    min-height: 0;
}

.bingo-card-gallery-header {
    position: relative;
    display: grid;
    width: auto;
    height: auto;
    min-height: 72px;
    box-sizing: border-box;
    align-content: center;
    justify-content: center;
    place-items: center;
    gap: 0;
    padding: 9px 56px;
    border-bottom: 1px solid rgba(255, 255, 255, .08);
    background: linear-gradient(135deg, rgba(255, 133, 18, .16), rgba(13, 17, 24, .96) 44%);
}

.bingo-card-gallery-heading {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    width: 100%;
    min-width: 0;
    align-items: center;
    gap: 12px;
    text-align: center;
}

.bingo-card-gallery-heading > img {
    grid-column: 1;
    width: 46px;
    height: 46px;
    justify-self: end;
    object-fit: contain;
    flex: 0 0 auto;
}

.bingo-card-gallery-heading > div { grid-column: 2; min-width: 0; text-align: center; }

.bingo-card-gallery-heading span {
    display: block;
    margin-bottom: 1px;
    color: #f6b23b;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .13em;
    text-transform: uppercase;
}

.bingo-card-gallery-heading h2 {
    margin: 0;
    font-size: clamp(21px, 3vw, 29px);
    line-height: 1.05;
}

.bingo-card-gallery-heading p {
    margin: 5px 0 0;
    color: #aeb7c5;
    font-size: 12px;
    text-align: center;
}

.bingo-card-gallery-close {
    position: absolute;
    top: 14px;
    right: 18px;
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    padding: 0 0 3px;
    flex: 0 0 auto;
    border: 1px solid rgba(255, 255, 255, .13);
    border-radius: 10px;
    background: rgba(255, 255, 255, .06);
    color: #fff;
    font: 300 27px/1 Arial, sans-serif;
    cursor: pointer;
}

.bingo-card-gallery-close:hover,
.bingo-card-gallery-close:focus-visible {
    border-color: #f6b23b;
    background: rgba(246, 178, 59, .13);
    outline: none;
}

.bingo-card-gallery-filters {
    display: flex;
    gap: 7px;
    padding: 10px 18px;
    overflow-x: auto;
    border-bottom: 1px solid rgba(255, 255, 255, .07);
    scrollbar-width: thin;
}

.bingo-card-gallery-filters[hidden] {
    display: none;
}

.bingo-card-gallery-filter {
    min-height: 31px;
    padding: 6px 12px;
    flex: 0 0 auto;
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 999px;
    background: #151b25;
    color: #c6ced9;
    font-size: 11px;
    font-weight: 750;
    cursor: pointer;
}

.bingo-card-gallery-filter:hover,
.bingo-card-gallery-filter:focus-visible,
.bingo-card-gallery-filter.is-active {
    border-color: #f6b23b;
    background: #f6b23b;
    color: #18120a;
    outline: none;
}

.bingo-card-gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    grid-auto-rows: max-content;
    align-content: start;
    gap: 12px;
    min-height: 0;
    padding: 13px 18px 18px;
    overflow-y: auto;
    overscroll-behavior: contain;
}

.bingo-gallery-player {
    min-width: 0;
    margin: 0;
    padding: 8px 8px 9px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: 12px;
    background: linear-gradient(180deg, rgba(255, 255, 255, .055), rgba(255, 255, 255, .018));
    text-align: center;
}

.bingo-gallery-card-image {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    aspect-ratio: 2 / 3;
    margin-bottom: 5px;
    overflow: hidden;
    border-radius: 9px;
    background: radial-gradient(circle at 50% 42%, rgba(241, 117, 22, .16), transparent 64%);
    text-decoration: none;
}

.bingo-gallery-custom-profile-card {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
}

.bingo-photo-frame {
    position: relative;
    display: flex;
    flex-direction: column;
    width: 100%;
    aspect-ratio: 2 / 3;
    padding: 8px;
    overflow: hidden;
    border: 1px solid rgba(246, 178, 59, .52);
    border-radius: 16px;
    background:
        radial-gradient(circle at 50% 12%, rgba(246, 178, 59, .2), transparent 38%),
        linear-gradient(155deg, #1b2b46 0%, #101a2d 48%, #080e1b 100%);
    color: #f8fafc;
    text-decoration: none;
    text-align: left;
    box-shadow: 0 12px 24px rgba(1, 5, 16, .36), inset 0 0 0 1px rgba(255, 255, 255, .05);
    transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.bingo-photo-frame::before {
    position: absolute;
    inset: 0;
    pointer-events: none;
    content: "";
    background: linear-gradient(130deg, rgba(255, 255, 255, .08), transparent 32%, transparent 70%, rgba(246, 178, 59, .08));
}

.bingo-photo-frame:hover,
.bingo-photo-frame:focus-visible {
    border-color: #f6b23b;
    box-shadow: 0 16px 30px rgba(1, 5, 16, .48), 0 0 0 2px rgba(246, 178, 59, .16);
    outline: none;
    transform: translateY(-2px);
}

.bingo-gallery-player:has(.bingo-photo-frame) {
    overflow: visible;
    border: 0;
    background: transparent;
}

.bingo-gallery-player.is-targeted {
    position: relative;
    border-color: #f6b23b;
    background: radial-gradient(circle at 50% 42%, rgba(246, 178, 59, .22), transparent 64%), rgba(246, 178, 59, .06);
    box-shadow: 0 0 0 2px rgba(246, 178, 59, .9), 0 0 28px rgba(246, 178, 59, .5);
    outline: none;
    animation: bingo-gallery-target .9s ease-out 2;
}

.bingo-gallery-player.is-targeted .bingo-photo-frame {
    border-color: #f6b23b;
    box-shadow: 0 16px 30px rgba(1, 5, 16, .48), 0 0 0 2px rgba(246, 178, 59, .42);
}

@keyframes bingo-gallery-target {
    0% { transform: scale(.96); }
    55% { transform: scale(1.025); }
    100% { transform: scale(1); }
}

@media (prefers-reduced-motion: reduce) {
    .bingo-gallery-player.is-targeted {
        animation: none;
    }
}

.bingo-photo-frame img {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 0;
    object-fit: contain;
    object-position: center bottom;
    border-radius: 0;
}

.bingo-photo-frame-media {
    position: relative;
    display: block;
    flex: 1 1 auto;
    min-height: 0;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, .1);
    border-radius: 11px 11px 9px 9px;
    background:
        radial-gradient(circle at 50% 35%, rgba(67, 126, 190, .22), transparent 58%),
        linear-gradient(180deg, rgba(255, 255, 255, .05), rgba(3, 8, 18, .22));
}

.bingo-photo-frame-media::after {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    height: 32%;
    pointer-events: none;
    content: "";
    background: linear-gradient(180deg, transparent, rgba(5, 10, 20, .22));
}

.bingo-photo-frame-details {
    position: relative;
    display: grid;
    gap: 4px;
    min-height: 42px;
    padding: 8px 3px 2px;
}

.bingo-photo-frame-flag {
    display: flex;
    width: 100%;
    height: 22px;
    align-items: center;
    justify-content: center;
}

.bingo-photo-frame-flag img {
    display: block;
    width: 34px;
    height: 22px;
    object-fit: contain;
    object-position: center;
}

.bingo-photo-frame-name {
    display: block;
    width: 100%;
    overflow: hidden;
    color: #f8fafc;
    font-size: 11px;
    line-height: 1.1;
    overflow-wrap: anywhere;
    text-align: center;
    white-space: normal;
}

.bingo-gallery-card-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center center;
}

.bingo-gallery-player h3 {
    margin: 0;
    overflow-wrap: anywhere;
    color: #f7f9fc;
    font-size: 11px;
    line-height: 1.15;
}

.bingo-gallery-player > span {
    display: inline-block;
    margin-top: 4px;
    padding: 2px 6px;
    border-radius: 5px;
    background: rgba(246, 178, 59, .12);
    color: #f6b23b;
    font-size: 9px;
    font-weight: 800;
}

.bingo-category-card.has-gallery:not(:disabled) {
    cursor: zoom-in;
}

.bingo-category-card.is-result-link:not(:disabled) {
    box-shadow: inset 0 0 0 1px rgba(187, 247, 208, .28), 0 0 16px rgba(74, 222, 128, .24);
}

.bingo-category-card.has-gallery:not(:disabled)::after {
    opacity: .42;
}

@media (max-width: 640px) {
    .bingo-card-gallery-dialog {
        width: calc(100vw - 16px);
        height: calc(100dvh - 16px);
        border-radius: 14px;
    }

    .bingo-card-gallery-header {
        min-height: 66px;
        padding: 8px 48px;
    }

    .bingo-card-gallery-close {
        top: 12px;
        right: 12px;
    }

    .bingo-card-gallery-heading > img {
        width: 40px;
        height: 40px;
    }

    .bingo-card-gallery-heading p {
        max-width: 68vw;
        font-size: 10px;
    }

    .bingo-card-gallery-filters {
        padding-inline: 12px;
    }

    .bingo-card-gallery-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 7px;
        padding: 10px;
    }

    .bingo-gallery-player {
        padding: 5px;
    }
}

.logo:hover,
.logo:focus-visible {
    color: #7dd3fc;
}




nav {

    display: flex;
    align-items: center;
    gap: 16px;

}


nav a {

    color: white;
    text-decoration: none;

    font-size: 17px;

    transition: 0.3s;

}



nav a:hover {

    color:#38bdf8;

}

.site-search-trigger {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 7px 10px;
    color: #f8fafc;
    font-size: 14px;
    background: rgba(56, 189, 248, .07);
    border: 1px solid rgba(56, 189, 248, .18);
    border-radius: 9px;
    cursor: pointer;
    transition: border-color .2s ease, background .2s ease;
}

.site-search-trigger:hover {
    background: rgba(56, 189, 248, .12);
    border-color: rgba(56, 189, 248, .5);
}

.site-search-trigger img {
    width: 16px;
    height: 16px;
}

.site-search-open { overflow: hidden; }

.site-search-overlay {
    position: fixed;
    z-index: 5000;
    inset: 0;
    display: grid;
    place-items: start center;
    padding: min(12vh, 90px) 20px 30px;
    background: rgba(2, 6, 23, .82);
    backdrop-filter: blur(8px);
}

.site-search-overlay[hidden] { display: none; }

.site-search-dialog {
    width: min(680px, 100%);
    max-height: min(720px, 80vh);
    overflow: hidden;
    background: #10192b;
    border: 1px solid rgba(125, 211, 252, .22);
    border-radius: 17px;
    box-shadow: 0 28px 80px rgba(0, 0, 0, .5);
}

.site-search-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 20px 22px 14px;
}

.site-search-heading span {
    color: #38bdf8;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.site-search-heading h2 {
    margin-top: 4px;
    font-size: 21px;
    text-align: left;
}

.site-search-close {
    width: 36px;
    height: 36px;
    color: #aab7ca;
    font-size: 26px;
    line-height: 1;
    background: rgba(255, 255, 255, .04);
    border: 1px solid rgba(255, 255, 255, .09);
    border-radius: 9px;
    cursor: pointer;
}

.site-search-input-wrap {
    display: grid;
    grid-template-columns: 20px 1fr;
    align-items: center;
    gap: 10px;
    margin: 0 22px 14px;
    padding: 0 13px;
    background: #091221;
    border: 1px solid rgba(148, 163, 184, .24);
    border-radius: 10px;
}

.site-search-input-wrap:focus-within {
    border-color: #38bdf8;
    box-shadow: 0 0 0 3px rgba(56, 189, 248, .1);
}

.site-search-input-wrap img { width: 18px; height: 18px; }
.site-search-input {
    height: 48px;
    color: #f8fafc;
    font-size: 15px;
    background: transparent;
    border: 0;
    outline: 0;
}

.site-search-results {
    max-height: min(520px, 58vh);
    overflow-y: auto;
    padding: 0 14px 16px;
}

.site-search-results > p {
    padding: 28px 10px;
    color: #8391a6;
    text-align: center;
}

.site-search-result {
    display: grid;
    grid-template-columns: 82px 1fr;
    align-items: center;
    gap: 12px;
    min-height: 55px;
    padding: 8px 10px;
    color: #f8fafc;
    text-decoration: none;
    border-bottom: 1px solid rgba(255, 255, 255, .055);
}

.site-search-result:hover { background: rgba(56, 189, 248, .06); }
.site-search-result-type {
    color: #38bdf8;
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
}
.site-search-result strong,
.site-search-result small { display: block; }
.site-search-result strong { font-size: 14px; }
.site-search-result small { margin-top: 3px; color: #8290a5; font-size: 11px; }




/* Выпадающее меню турниров */


.dropdown {

    position: relative;

}

.dropdown-trigger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: 100%;
    padding: 0;
    color: #fff;
    font: inherit;
    font-size: 17px;
    line-height: 1.2;
    background: none;
    border: 0;
    cursor: pointer;
    transition: color .2s ease;
}

.dropdown-trigger:hover,
.dropdown-trigger:focus-visible,
.profiles-dropdown.is-open > .dropdown-trigger {
    color: #38bdf8;
}

.profiles-dropdown {
    width: 156px;
}



.dropdown-menu {


    position: absolute;
    z-index: 1001;

    top: 35px;
    left: 0;


    background:#111827;

    width:220px;


    border-radius:10px;


    padding:10px 0;


    opacity:0;

    visibility:hidden;


    transform:translateY(10px);


    transition:0.3s;


    box-shadow:0 15px 30px rgba(0,0,0,0.5);


}

.profiles-dropdown > .profiles-menu {
    width: 100%;
    min-width: 100%;
    box-sizing: border-box;
    overflow: visible;
}

.dropdown > .dropdown-menu {
    top: calc(100% + 10px);
}

.profiles-menu .dropdown-primary-link,
.dropdown-submenu-trigger {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 11px 16px;
    color: #fff;
    font: inherit;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.2;
    text-align: left;
    text-decoration: none;
    background: transparent;
    border: 0;
    cursor: pointer;
}

.profiles-menu .dropdown-primary-link:hover,
.dropdown-submenu-trigger:hover,
.dropdown-submenu-trigger:focus-visible,
.dropdown-submenu.is-open > .dropdown-submenu-trigger {
    color: #38bdf8;
    background: #1e293b;
}

.dropdown-submenu {
    position: relative;
}

.dropdown-submenu-menu {
    top: 0;
    left: calc(100% + 6px);
    width: 156px;
    min-width: 156px;
    padding: 0;
}

.dropdown-submenu-menu a {
    padding: 11px 16px;
    font-size: 14px;
}



.dropdown-menu a {


    display:block;

    padding:12px 20px;

    font-size:15px;


}



.dropdown-menu a:hover {


    background:#1e293b;

}




.dropdown:hover > .dropdown-menu {


    opacity:1;

    visibility:visible;

    transform:translateY(0);


}

.dropdown-submenu:hover > .dropdown-submenu-menu,
.dropdown-submenu.is-open > .dropdown-submenu-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.profiles-dropdown.is-open > .profiles-menu,
.profiles-dropdown:focus-within > .profiles-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}






/* Главный экран */


.hero {


    height:420px;


    display:flex;

    flex-direction:column;

    align-items:center;

    justify-content:center;


    text-align:center;


    background:

    linear-gradient(
    rgba(0,0,0,0.6),
    rgba(0,0,0,0.7)
    ),

    url("https://images.unsplash.com/photo-1518600506278-4e8ef466b810");



    background-size:cover;

    background-position:center;


}



.hero h1 {


    font-size:48px;

    margin-bottom:20px;


}



.hero p {


    font-size:22px;

    color:#cbd5e1;

    margin-bottom:35px;


}



.hero button {


    padding:15px 35px;


    border:none;


    border-radius:30px;


    background:#38bdf8;


    color:#00111f;


    font-size:18px;


    cursor:pointer;


    transition:0.3s;


}



.hero button:hover {


    transform:scale(1.05);

    background:#7dd3fc;


}






/* Карточки */


.cards {


    width:90%;

    margin:50px auto;


    display:grid;


    grid-template-columns:
    repeat(auto-fit,minmax(250px,1fr));


    gap:25px;


}




.card {


    background:

    linear-gradient(
    145deg,
    #172033,
    #0f172a
    );


    padding:35px;


    border-radius:20px;


    border:1px solid rgba(255,255,255,0.08);


    transition:0.3s;


    cursor:pointer;


}



.card:hover {


    transform:translateY(-10px);


    border-color:#38bdf8;


}




.card h2 {


    margin-bottom:15px;


    font-size:25px;


}



.card p {


    color:#94a3b8;

    line-height:1.5;


}





/* Подвал */


footer {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 54px;
    padding: 16px 20px;
    color: #64748b;
    background: transparent;
    border: 0;
    box-shadow: none;
    margin-top: 36px;
}







/* Мобильная версия */


@media(max-width:900px){


header {


    flex-direction:column;

    height:auto;



}



nav {

    margin-top:20px;

    flex-wrap:wrap;

    justify-content:center;


}

.dropdown-submenu-menu {
    right: auto;
    left: calc(100% + 6px);
}



.hero h1 {

    font-size:34px;

}



.hero p {

    font-size:18px;

}



}
/* Страница участников */


.page-title {

    text-align:center;

}


.page-title h1 {

}


.page-title p {

}





.players {

    margin:auto;


    display:grid;


}





.player-card {


    text-align:center;


}



.player-card:hover {


}




.avatar {


    width:80px;

    height:80px;


    margin:auto;


    display:flex;

    align-items:center;

    justify-content:center;


    border-radius:50%;


    background:#38bdf8;


    color:#00111f;


    font-size:35px;


    font-weight:bold;


    margin-bottom:20px;


}



.player-card h2 {


    margin-bottom:10px;


}


.player-card p {


    color:#94a3b8;


    margin-bottom:15px;


}



.player-card span {


    display:inline-block;


    padding:7px 15px;


    border-radius:20px;


    background:#1e293b;


    color:#38bdf8;


    font-size:14px;


}
/* Профиль игрока */


.profile {

    text-align:center;

}



.profile-avatar {


    width:120px;

    height:120px;


    margin:auto;


    border-radius:50%;


    background:#38bdf8;


    color:#00111f;


    display:flex;

    justify-content:center;

    align-items:center;


    font-size:55px;

    font-weight:bold;


}



.profile h1 {


}



.role {

    color:#94a3b8;

    font-size:20px;

    margin:15px;

}





.stats-box {


    display:grid;


    grid-template-columns:

    repeat(auto-fit,minmax(150px,1fr));


    gap:20px;


    margin:50px 0;


}




.stats-box div {


    background:#172033;


    padding:25px;


    border-radius:15px;


}




.stats-box h2 {

    color:#38bdf8;

    font-size:35px;

}



.stats-box p {

    color:#94a3b8;

}






.history {


    margin-top:50px;


}



.history table {


    width:100%;

    border-collapse:collapse;


    margin-top:25px;


}



.history th,


.history td {


    padding:15px;


    border-bottom:1px solid #334155;


}



.history th {


    color:#38bdf8;

}
/* Статистика */


.statistics-table {


width:90%;

margin:40px auto;


background:#172033;


padding:30px;


border-radius:20px;


}




.statistics-table h2 {


margin-bottom:25px;

color:#38bdf8;


}



.statistics-table table {


width:100%;

border-collapse:collapse;


}



.statistics-table th {


color:#38bdf8;


}



.statistics-table td,
.statistics-table th {


padding:15px;


text-align:center;


border-bottom:1px solid #334155;


}



.statistics-table tr:hover {


background:#1e293b;


}
/* Зал Славы */


.hall-block {


width:90%;

margin:40px auto;


background:#172033;


padding:35px;


border-radius:20px;


}



.hall-block h2 {


color:#38bdf8;

margin-bottom:25px;


}




.hall-block table {


width:100%;

border-collapse:collapse;


}



.hall-block th {


color:#38bdf8;


}



.hall-block td,
.hall-block th {


padding:15px;

text-align:center;


border-bottom:1px solid #334155;


}



.hall-block tr:hover {


background:#1e293b;


}






.legend-grid {


width:90%;


margin:50px auto;


display:grid;


grid-template-columns:

repeat(auto-fit,minmax(250px,1fr));


gap:25px;


}




.legend-card {


background:

linear-gradient(
145deg,
#172033,
#0f172a
);


padding:30px;


border-radius:20px;


border:1px solid rgba(255,255,255,.08);


transition:.3s;


}




.legend-card:hover {


transform:translateY(-10px);


border-color:#38bdf8;


}




.legend-card h2 {


color:#38bdf8;

margin-bottom:15px;


}



.legend-card p {


color:#cbd5e1;

margin-top:10px;


}
/* Навигация сезонов */


.season-navigation {


width:90%;

margin:20px auto;


display:flex;


justify-content:space-between;


}



.season-navigation a {


background:#172033;


padding:15px 25px;

display:flex;

align-items:center;

min-height:52px;

box-sizing:border-box;


border-radius:15px;


color:#38bdf8;


text-decoration:none;


transition:.3s;


}



.season-navigation a:hover {


background:#38bdf8;


color:#00111f;


}





/* Плей-офф */


.playoff {


display:grid;


grid-template-columns:

repeat(auto-fit,minmax(220px,1fr));


gap:25px;


}



.stage {


background:#0f172a;


padding:25px;


border-radius:15px;


}



.stage h3 {


color:#38bdf8;


margin-bottom:15px;


}



.champion-stage {


border:1px solid #38bdf8;


text-align:center;


}
/* Турнирная сетка */


.bracket {

grid-template-columns:

repeat(auto-fit,minmax(220px,1fr));


}




.round {


background:#0f172a;


padding:25px;


border-radius:15px;


}



.round h3 {


color:#38bdf8;


margin-bottom:20px;


}




.round p {


background:#172033;


padding:15px;


border-radius:10px;


line-height:1.6;


margin-bottom:15px;


text-align:center;


}



.round strong {


color:#38bdf8;


font-size:20px;


}
/* Команды турнира */


.team-card {


background:#0f172a;


padding:15px;


border-radius:15px;


text-align:center;


height:140px;


display:flex;


flex-direction:column;


justify-content:center;


transition:.3s;


border:1px solid rgba(255,255,255,0.08);


}


.team-card:hover {


transform:translateY(-7px);


border:1px solid #38bdf8;


}



.team-card h2 {


color:#38bdf8;


font-size:20px;


margin-bottom:10px;


}






.team-card hr {


border-color:#334155;


margin:15px 0;


}



.team-card ul {


padding-left:20px;


color:#94a3b8;


}



.team-card li {


margin:8px 0;


}
.match-card hr {

border:0;

border-top:1px solid #334155;

margin:20px 0;

}
.stat-title {

color:#38bdf8;

margin:30px 0 20px;

font-size:24px;

}
/* Сетка команд турнира */

.teams {

    width:90%;

    max-width:1000px;

    margin:40px auto;


    display:grid;


    grid-template-columns:
    repeat(auto-fit,minmax(220px,1fr));


    gap:20px;

}
.avatar-img {

    width:120px;
    height:120px;
    border-radius:50%;

    object-fit:cover;
    object-position:center 5%;

    border:2px solid #38bdf8;

}
.profile-photo {

    width:160px;
    height:160px;

    border-radius:50%;

    object-fit:cover;
    object-position:center 5%;

    border:3px solid #38bdf8;

}
/* ===== Турнирная сетка ===== */

.bracket {

    width: 95%;
    margin: 50px auto;

    display: flex;
    justify-content: space-between;
    align-items: flex-start;

    gap: 40px;

}

.bracket-column {

    flex: 1 1 0;
    min-width: 0;

}

.bracket-column h2 {

    text-align: center;

    color: #38bdf8;

    margin-bottom: 25px;

    font-size: 24px;

}

.match {

    background: #172033;

    border-radius: 12px;

    padding: 8px;

    margin-bottom: 30px;

    border: 1px solid rgba(255,255,255,.08);

    box-shadow: 0 5px 15px rgba(0,0,0,.25);

    box-sizing: border-box;
    height: 132px;
    display: flex;
    flex-direction: column;
    justify-content: center;

}

.site-inline-icon {
    display: inline-block;
    width: 1.15em;
    height: 1.15em;
    flex: 0 0 auto;
    object-fit: contain;
    vertical-align: -.18em;
}

.logo .site-inline-icon {
    width: 38px;
    height: 38px;
    margin-right: 3px;
    object-fit: contain;
    vertical-align: middle;
}

/* Compact home page */
.home-page {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background-color: #0b1220;
    background-image:
        radial-gradient(circle at 18% 8%, rgba(56, 189, 248, .08), transparent 29rem),
        linear-gradient(rgba(7, 14, 26, .58), rgba(7, 14, 26, .76)),
        url("images/backgrounds/football-game-background-v2.png");
    background-repeat: no-repeat;
    background-position: center top;
    background-size: cover;
    background-attachment: fixed;
}

@media (max-width: 700px) {
    body,
    .home-page {
        background-position: 44% top;
        background-attachment: scroll;
    }
}

.home-shell {
    flex: 0 0 auto;
    width: min(1180px, calc(100% - 40px));
    margin: 0 auto;
    padding: 34px 0 0;
}

.home-shell-classic {
    max-width: 1080px;
    padding-top: 42px;
}

.home-hero-classic {
    display: flex;
    justify-content: center;
    min-height: 410px;
    padding: 54px 30px;
}

.home-hero-classic .home-hero-copy {
    align-items: center;
    max-width: 760px;
    padding: 0;
    text-align: center;
}

.home-hero-classic .home-hero-copy > p {
    max-width: 680px;
}

.home-hero-classic h1 {
    margin-top: 10px;
    font-size: clamp(46px, 7vw, 72px);
    text-align: center;
}

.home-welcome-icon {
    display: grid;
    place-items: center;
    width: 58px;
    height: 58px;
    margin-bottom: 18px;
    background: rgba(56, 189, 248, .1);
    border: 1px solid rgba(56, 189, 248, .24);
    border-radius: 16px;
}

.home-welcome-icon img {
    width: 32px;
    height: 32px;
}

/* ===== Единая визуальная система сайта ===== */
body {
    line-height: 1.45;
}

a,
button,
input,
select,
textarea {
    transition-duration: var(--site-transition);
}

.page-title {
    margin: 0 auto;

}

.page-title h1 {
    font-size: clamp(32px, 4vw, 42px);

}

.page-title p {
    margin: 0 auto;

    font-size: clamp(16px, 2vw, 18px);
}

.players {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));

    padding-bottom: 48px;
}

.player-card {

    border-radius: var(--site-radius-lg);

    box-shadow: var(--site-shadow);

}

.player-card:hover {
    border-color: var(--site-accent);

}

.profile,
.profile-dashboard,
.history,
.statistics-table {
    width: min(calc(100% - 32px), var(--site-container-reading));
}

.profile-dashboard,
.history,
.statistics-table,
.match-scoreboard,
.events-card {
    border-color: var(--site-border-soft);
    border-radius: var(--site-radius-lg);
    background-color: var(--site-surface);
    box-shadow: var(--site-shadow);
}

.profile-tablist {


}

.profile-tab,
.protocol-video-link {
    border-radius: var(--site-radius-sm);
}

.profile-tab.active {

}

.history th,
.statistics-table th {
    color: var(--site-accent-light);
    background: var(--site-surface-raised);
}

.tournament-page .season-navigation,
.tournament-page > .season-overview,
.tournament-page > .bracket,
.tournament-page > .tournament-summary,
.tournament-page .tournament-2018,
.tournament-page .modern-tournament {
    width: min(calc(100% - 32px), var(--site-container));
    margin-right: auto;
    margin-left: auto;
}

.tournament-page .group-card,
.tournament-page .group-card-2019,
.tournament-page .round-card,
.tournament-page .summary-block,
.tournament-page .participant-award,
.tournament-page .participant-item,
.tournament-page .season-participant,
.tournament-page .participant-2019-row,
.tournament-page .swiss-record-group {
    border-color: var(--site-border);
    border-radius: var(--site-radius-md);
    box-shadow: var(--site-shadow);
}

.tournament-page .section-title-2018,
.tournament-page .playoff-title-standalone,
.tournament-page .compact-participants > h2,
.tournament-page .tournament-summary > h2 {
    color: var(--site-accent);
    font-size: clamp(24px, 3vw, 28px);
    line-height: 1.2;
}

.match-scoreboard,
.events-card {
    width: min(calc(100% - 32px), var(--site-container-reading));
    margin-right: auto;
    margin-left: auto;
}

@media (max-width: 700px) {
    .page-title {
        padding: 32px 0 24px;
    }

    .players {
        gap: var(--site-space-3);
    }

    .player-card {
    }

    .tournament-page .season-navigation,
    .tournament-page > .season-overview,
    .tournament-page > .bracket,
    .tournament-page > .tournament-summary,
    .tournament-page .tournament-2018,
    .tournament-page .modern-tournament {
        width: min(calc(100% - 20px), var(--site-container));
    }
}

.home-welcome-icon:has(img[src*="sector-fifers-logo"]) {
    width: 154px;
    height: 154px;
    padding: 0;
    background: transparent;
    border: 0;
    box-shadow: none;
}

.home-welcome-icon img[src*="sector-fifers-logo"] {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.home-shell-classic .home-nav {
}

.home-hero {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1.6fr) minmax(280px, .7fr);
    align-items: stretch;
    gap: 24px;
    min-height: 310px;
    padding: 30px;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(23, 32, 51, .98), rgba(10, 18, 33, .98));
    border: 1px solid rgba(125, 211, 252, .16);
    border-radius: 20px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, .22);
}

.home-hero::after {
    content: "";
    position: absolute;
    inset: auto auto -180px -100px;
    width: 380px;
    height: 380px;
    border: 1px solid rgba(56, 189, 248, .09);
    border-radius: 50%;
    pointer-events: none;
}

.home-hero-copy {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    padding: 6px 12px;
}

.home-kicker,
.home-section-heading span {
    color: #38bdf8;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .09em;
    text-transform: uppercase;
}

.home-hero h1 {
    max-width: 720px;
    margin: 13px 0 14px;
    color: #f8fafc;
    font-size: clamp(34px, 4.2vw, 54px);
    line-height: 1.03;
    letter-spacing: -.035em;
    text-align: left;
}

.home-hero-copy > p {
    max-width: 650px;
    color: #aebbd0;
    font-size: 17px;
    line-height: 1.55;
}

.home-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 24px;
}

.home-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    min-height: 43px;
    padding: 0 18px;
    border: 1px solid transparent;
    border-radius: 10px;
    color: #f8fafc;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    transition: transform .2s ease, border-color .2s ease, background .2s ease;
}

.home-button:hover { transform: translateY(-2px); }
.home-button-primary { background: #38bdf8; color: #07111e; }
.home-button-primary:hover { background: #7dd3fc; }
.home-button-secondary { background: rgba(255, 255, 255, .035); border-color: rgba(255, 255, 255, .13); }
.home-button-secondary:hover { border-color: rgba(56, 189, 248, .55); }

.home-season-card {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 250px;
    padding: 24px;
    text-align: center;
    background: rgba(2, 8, 23, .46);
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: 16px;
}

.home-season-icon {
    display: grid;
    place-items: center;
    width: 52px;
    height: 52px;
    margin-bottom: 14px;
    background: rgba(56, 189, 248, .1);
    border: 1px solid rgba(56, 189, 248, .22);
    border-radius: 14px;
}

.home-season-icon img { width: 29px; height: 29px; }
.home-season-card > span { color: #94a3b8; font-size: 13px; }
.home-season-card strong { margin: 5px 0 7px; font-size: 29px; }
.home-season-card p { max-width: 230px; color: #8290a5; font-size: 13px; line-height: 1.45; }

.home-year-range {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 10px;
    width: 100%;
    margin-top: 20px;
    color: #cbd5e1;
    font-size: 12px;
}

.home-year-range i { height: 1px; background: linear-gradient(90deg, #38bdf8, rgba(56, 189, 248, .18)); }

.home-nav {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin-top: 14px;
}

.home-nav-card {
    display: grid;
    grid-template-columns: 40px minmax(0, 1fr) 18px;
    align-items: center;
    gap: 12px;
    min-height: 82px;
    padding: 14px;
    color: #f8fafc;
    text-decoration: none;
    background: linear-gradient(145deg, #141e31, #101827);
    border: 1px solid rgba(255, 255, 255, .075);
    border-radius: 14px;
    transition: transform .2s ease, border-color .2s ease, background .2s ease;
}

.home-nav-card:hover {
    transform: translateY(-3px);
    background: #162238;
    border-color: rgba(56, 189, 248, .48);
}

.home-nav-icon {
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    background: rgba(56, 189, 248, .08);
    border-radius: 10px;
}

.home-nav-icon img { width: 22px; height: 22px; }
.home-nav-card > span:nth-child(2) { min-width: 0; }
.home-nav-card strong, .home-nav-card small { display: block; }
.home-nav-card strong { margin-bottom: 4px; font-size: 15px; }
.home-nav-card small { overflow: visible; color: #8492a7; font-size: 11px; line-height: 1.35; overflow-wrap: anywhere; }
.home-card-arrow { width: 16px; height: 16px; opacity: .55; transition: transform .2s ease, opacity .2s ease; }
.home-nav-card:hover .home-card-arrow { transform: translateX(3px); opacity: 1; }

.home-overview {
    margin-top: 34px;
    padding: 22px;
    background: rgba(15, 23, 42, .62);
    border: 1px solid rgba(255, 255, 255, .07);
    border-radius: 16px;
}

.home-section-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    padding: 0 3px 16px;
}

.home-section-heading h2 { margin-top: 5px; font-size: 22px; text-align: left; }
.home-section-heading a { color: #8edcff; font-size: 13px; text-decoration: none; }
.home-section-heading a:hover { text-decoration: underline; }

.home-tournament-list { border-top: 1px solid rgba(255, 255, 255, .07); }
.home-tournament-list a {
    display: grid;
    grid-template-columns: 70px 1fr auto 18px;
    align-items: center;
    gap: 16px;
    min-height: 58px;
    padding: 8px 6px;
    color: #e5edf8;
    text-decoration: none;
    border-bottom: 1px solid rgba(255, 255, 255, .06);
    transition: background .2s ease, padding .2s ease;
}

.home-tournament-list a:last-child { border-bottom: 0; }
.home-tournament-list a:hover { padding-left: 12px; background: rgba(56, 189, 248, .045); }
.home-tournament-list b { color: #38bdf8; font-size: 14px; }
.home-tournament-list span { font-size: 14px; font-weight: 700; }
.home-tournament-list em { color: #75849a; font-size: 12px; font-style: normal; }
.home-tournament-list img { width: 15px; height: 15px; opacity: .65; }

.home-page footer {
    min-height: 54px;
    margin: auto 0 0;
    padding: 16px 20px;
    background: transparent;
    border: 0;
}

@media (max-width: 980px) {
    .home-hero { grid-template-columns: 1fr 260px; }
    .home-nav { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 720px) {
    .home-shell { width: min(100% - 24px, 1180px); padding-top: 18px; }
    .home-hero { grid-template-columns: 1fr; padding: 22px; }
    .home-hero-copy { align-items: center; padding: 2px 0; text-align: center; }
    .home-hero h1 { font-size: clamp(31px, 10vw, 42px); text-align: center; }
    .home-season-card { min-height: 168px; padding: 18px; }
    .home-season-icon { width: 44px; height: 44px; margin-bottom: 9px; }
    .home-season-icon img { width: 24px; height: 24px; }
    .home-season-card strong { margin: 3px 0; font-size: 26px; }
    .home-season-card p { display: none; }
    .home-year-range { margin-top: 13px; }
    .home-shell-classic { padding-top: 18px; }
    .home-hero-classic { min-height: 440px; padding: 38px 22px; }
    .home-hero-classic h1 { font-size: clamp(42px, 13vw, 58px); }
    .home-section-heading { align-items: flex-start; flex-direction: column; gap: 8px; }
    .home-tournament-list a { grid-template-columns: 56px 1fr 16px; gap: 10px; }
    .home-tournament-list em { display: none; }
}

@media (max-width: 480px) {
    .home-nav { grid-template-columns: 1fr; }
    .home-actions { width: 100%; }
    .home-button { width: 100%; }
    .home-overview { padding: 17px 14px; }
}

/* Final home alignment: one axis, equal rhythm and predictable proportions. */
.home-shell.home-shell-classic {
    width: min(1120px, calc(100% - 40px));
    max-width: none;
    padding-top: 36px;
}

.home-hero.home-hero-classic {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 370px;
    padding: 44px 32px;
}

.home-hero.home-hero-classic .home-hero-copy {
    width: min(100%, 720px);
    margin: 0 auto;
    padding: 0;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.home-hero.home-hero-classic h1 {
    width: 100%;
    max-width: none;
    margin: 16px 0 14px;
    font-size: clamp(48px, 6vw, 68px);
    line-height: 1;
    letter-spacing: -.04em;
    text-align: center;
}

.home-hero.home-hero-classic .home-hero-copy > p {
    width: min(100%, 660px);
    margin: 0 auto;
    color: #aebbd0;
    font-size: 16px;
    line-height: 1.55;
    text-align: center;
}

.home-hero.home-hero-classic .home-actions {
    justify-content: center;
    margin-top: 24px;
}

.home-hero.home-hero-classic .home-button {
    min-width: 205px;
    min-height: 44px;
    text-align: center;
}

.home-shell-classic .home-nav {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin-top: 12px;
}

.home-shell-classic .home-nav-card {
    min-height: 84px;
    padding: 14px 15px;
}

.home-page footer {
    width: 100%;
    margin-top: auto;
}

@media (max-width: 900px) {
    .home-shell-classic .home-nav {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 620px) {
    .home-shell.home-shell-classic {
        width: calc(100% - 24px);
        padding-top: 18px;
    }

    .home-hero.home-hero-classic {
        min-height: 430px;
        padding: 34px 22px;
    }

    .home-hero.home-hero-classic h1 {
        margin-top: 14px;
        font-size: clamp(42px, 13vw, 54px);
    }

    .home-hero.home-hero-classic .home-actions {
        width: 100%;
    }

    .home-hero.home-hero-classic .home-button {
        width: 100%;
    }

    .home-shell-classic .home-nav {
        grid-template-columns: 1fr;
    }
}

/* Footballer directory and generated profiles */
.footballers-page-title {
    padding-bottom: 28px;
}

.footballers-directory,
.footballer-profile-page {
    width: min(1120px, calc(100% - 40px));
    margin: 0 auto;
}

.footballer-filters {
    display: grid;
    grid-template-columns: minmax(240px, 1.25fr) repeat(3, minmax(170px, .7fr));
    gap: 12px;
    padding: 16px;
    background: rgba(15, 23, 42, .92);
    border: 1px solid rgba(255, 255, 255, .09);
    border-radius: 14px;
}

.footballer-filters label {
    display: grid;
    gap: 7px;
}

.footballer-filters label > span {
    color: #94a3b8;
    font-size: 12px;
    font-weight: 700;
}

.footballer-filters input,
.footballer-filters select {
    width: 100%;
    height: 42px;
    padding: 0 12px;
    color: #f8fafc;
    background: #0b1323;
    border: 1px solid rgba(148, 163, 184, .22);
    border-radius: 9px;
    outline: none;
}

.footballer-filters input:focus,
.footballer-filters select:focus {
    border-color: #38bdf8;
    box-shadow: 0 0 0 3px rgba(56, 189, 248, .1);
}

.footballer-directory-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 48px;
    color: #9aa8bc;
    font-size: 13px;
}

.footballer-directory-meta button {
    padding: 6px 10px;
    color: #7dd3fc;
    background: transparent;
    border: 0;
    cursor: pointer;
}

.footballer-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.footballer-card {
    display: grid;
    grid-template-columns: 54px minmax(0, 1fr);
    align-items: center;
    gap: 12px;
    min-height: 74px;
    padding: 9px 12px;
    color: #f8fafc;
    text-decoration: none;
    background: rgba(15, 23, 42, .9);
    border: 1px solid rgba(255, 255, 255, .075);
    border-radius: 12px;
    transition: transform .18s ease, border-color .18s ease, background .18s ease;
}

.footballer-card:hover {
    transform: translateY(-2px);
    background: #152139;
    border-color: rgba(56, 189, 248, .5);
}

.footballer-card-photo {
    width: 54px;
    height: 54px;
    object-fit: contain;
    object-position: center bottom;
    background: rgba(56, 189, 248, .06);
    border-radius: 9px;
}

.footballer-card-main {
    min-width: 0;
    display: grid;
    align-content: center;
    gap: 3px;
}

.footballer-card-main strong,
.footballer-card-main small {
    display: block;
    overflow: visible;
    overflow-wrap: anywhere;
    white-space: normal;
}

.footballer-card-main strong {
    margin-bottom: 4px;
    font-size: 14px;
}

.footballer-card-main small {
    color: #8d9bb0;
    font-size: 11px;
}

.footballer-card-main small + small { margin-top: 0; }
.footballer-card-country,
.footballer-card-role {
    display: grid;
    grid-template-columns: 20px minmax(0, 1fr);
    align-items: center;
    gap: 6px;
    min-width: 0;
    width: 100%;
    line-height: 16px;
}
.footballer-card-country img { width: 20px; height: 14px; object-fit: contain; flex: 0 0 auto; }
.footballer-card-role img { width: 16px; height: 16px; object-fit: contain; justify-self: center; }
.footballer-card-country { grid-template-columns: 20px minmax(0, 1fr); }
.footballer-card-country:not(:has(img)) { grid-template-columns: minmax(0, 1fr); }
.footballer-card-country,
.footballer-card-role span {
    overflow: visible;
    overflow-wrap: break-word;
    white-space: normal;
}

/* Единый мультивыбор для всех фильтров сайта. */
.multi-filter-source {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    overflow: hidden !important;
    clip: rect(0 0 0 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

.multi-filter {
    position: relative;
    min-width: 0;
    width: 100%;
    color: #dce6f5;
    font: inherit;
}

.multi-filter summary {
    display: flex;
    align-items: center;
    min-width: 0;
    height: 42px;
    padding: 0 38px 0 12px;
    color: #cbd5e1;
    background: #0b1323;
    border: 1px solid rgba(255, 255, 255, .09);
    border-radius: 9px;
    cursor: pointer;
    list-style: none;
    transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
}

.multi-filter summary::-webkit-details-marker { display: none; }
.multi-filter summary::after {
    content: "";
    position: absolute;
    right: 14px;
    width: 7px;
    height: 7px;
    border-right: 2px solid #7dd3fc;
    border-bottom: 2px solid #7dd3fc;
    transform: translateY(-2px) rotate(45deg);
    transition: transform .18s ease;
}
.multi-filter[open] summary::after { transform: translateY(2px) rotate(225deg); }
.multi-filter[open] summary,
.multi-filter summary:focus-visible {
    border-color: #38bdf8;
    box-shadow: 0 0 0 3px rgba(56, 189, 248, .12);
    outline: none;
}
.multi-filter.has-selection summary {
    color: #f8fafc;
    border-color: rgba(56, 189, 248, .38);
}
.multi-filter summary span {
    min-width: 0;
    overflow: visible;
    overflow-wrap: break-word;
    white-space: normal;
}
.multi-filter-menu {
    position: absolute;
    z-index: 120;
    top: calc(100% + 6px);
    left: 0;
    width: max(100%, 230px);
    padding: 7px;
    background: #101a2d;
    border: 1px solid rgba(125, 211, 252, .22);
    border-radius: 10px;
    box-shadow: 0 18px 38px rgba(0, 0, 0, .38);
}
.multi-filter-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5px;
    margin-bottom: 6px;
}
.multi-filter-actions button {
    min-width: 0;
    padding: 6px 8px;
    color: #7dd3fc;
    font: inherit;
    font-size: 11px;
    background: rgba(56, 189, 248, .07);
    border: 1px solid rgba(56, 189, 248, .14);
    border-radius: 7px;
    cursor: pointer;
}
.multi-filter-options {
    display: grid;
    gap: 2px;
    max-height: 258px;
    overflow: auto;
    scrollbar-width: thin;
}
.multi-filter-options label {
    display: grid !important;
    grid-template-columns: 18px 26px minmax(0, 1fr);
    align-items: center;
    gap: 7px;
    min-width: 0;
    min-height: 34px;
    padding: 5px 7px;
    color: #cbd5e1;
    cursor: pointer;
    border-radius: 7px;
}
.multi-filter-options label:not(:has(img)) { grid-template-columns: 18px minmax(0, 1fr); }
.multi-filter-options label:hover { color: #fff; background: rgba(56, 189, 248, .09); }
.multi-filter-options input {
    width: 15px !important;
    height: 15px !important;
    margin: 0 !important;
    accent-color: #38bdf8;
}
.multi-filter-options img { width: 24px; height: 18px; object-fit: contain; }
.multi-filter-options span { min-width: 0; overflow: visible; overflow-wrap: break-word; white-space: normal; }

.admin-page .multi-filter summary {
    height: 40px;
    color: #334155;
    background: #fff;
    border-color: #d8e1ec;
}
.admin-page .multi-filter.has-selection summary { border-color: #2563eb; color: #0f172a; }
.admin-page .multi-filter-menu { color: #334155; background: #fff; border-color: #d8e1ec; box-shadow: 0 14px 32px rgba(15, 23, 42, .18); }
.admin-page .multi-filter-options label { color: #334155; }
.admin-page .multi-filter-options label:hover { color: #0f172a; background: #eff6ff; }
.admin-page .multi-filter-actions button { color: #2563eb; background: #eff6ff; border-color: #dbeafe; }

/* Final shared geometry: filter labels are always complete and card metadata never overlaps its icon. */
.multi-filter {
    min-height: 42px;
}

.multi-filter summary {
    position: relative;
    box-sizing: border-box;
    height: auto;
    min-height: 42px;
    padding-top: 8px;
    padding-bottom: 8px;
    line-height: 1.2;
}

.multi-filter summary::after {
    top: 50%;
    transform: translateY(-65%) rotate(45deg);
}

.multi-filter[open] summary::after {
    transform: translateY(-35%) rotate(225deg);
}

.multi-filter summary span,
.multi-filter-options span {
    overflow: visible;
    text-overflow: clip;
    white-space: normal;
    overflow-wrap: break-word;
}

/* Stable tournament participant cards and centered profile match metadata. */
.tournament-page .participant-item {
    height: 58px;
    min-height: 58px;
    box-sizing: border-box;
    overflow: hidden;
}

.tournament-page .participant-item strong,
.tournament-page .participant-item small,
.tournament-page .season-participant > strong,
.tournament-page .participant-2019-row > strong {
    overflow: visible;
    text-overflow: clip;
    line-height: 1.1;
    overflow-wrap: normal;
    white-space: nowrap;
}

.tournament-page .season-participant {
    height: 82px;
    min-height: 82px;
    box-sizing: border-box;
    overflow: hidden;
}

.tournament-page .participant-2019-row {
    height: 66px;
    min-height: 66px;
    box-sizing: border-box;
    overflow: hidden;
}

.profile-match-link > .profile-match-center {
    position: relative;
    display: grid;
    height: 37px;
    min-width: 0;
    place-items: center;
    align-self: center;
    white-space: normal;
}

.profile-match-link > .profile-match-center .profile-match-stage {
    position: absolute;
    top: -7.5px;
    left: 50%;
    display: block;
    width: 108px;
    max-width: 108px;
    margin: 0;
    transform: translateX(-50%);
    font-size: 8.5px;
    line-height: 1;
}

.profile-match-link > span:not(.profile-match-center) {
    display: flex;
    height: 28px;
    align-items: center;
    justify-content: center;
    gap: 7px;
    min-width: 0;
    text-align: center;
    white-space: nowrap;
}

.profile-matches-compact tbody td {
    padding-top: 9.5px;
    padding-bottom: 9.5px;
}

.profile-matches-compact .profile-match-link {
    display: grid;
}

.profile-matches-compact .profile-match-center > .profile-score-link,
.profile-matches-compact .profile-match-center > b {
    font-size: 13px;
}

.profile-tournaments-panel .profile-matches-section {
    overflow: visible;
}

.profile-tournaments-panel .profile-matches {
    min-width: 0;
}

@media (max-width: 700px) {
    .profile-matches-compact .profile-match-link,
    .profile-matches-compact .profile-match-columns-header {
        grid-template-columns: minmax(0, 1fr) 82px minmax(0, 1fr);
    }

    .profile-match-link > .profile-match-center .profile-match-stage {
        width: 96px;
        max-width: 96px;
    }
}

@media (max-width: 760px) {
    .bingo-row-scores,
    .bingo-diagonal-score {
        display: none;
    }
}

.multi-filter-options label {
    height: auto;
    line-height: 1.2;
}

.admin-page .multi-filter summary {
    height: auto;
    min-height: 42px;
}

.footballer-card {
    min-height: 86px;
}

.footballer-card-main small.footballer-card-country,
.footballer-card-main small.footballer-card-role {
    display: grid;
    grid-template-columns: 22px minmax(0, 1fr);
    align-items: center;
    gap: 7px;
    width: 100%;
    min-width: 0;
    overflow: visible;
    line-height: 1.15;
    text-overflow: clip;
    white-space: normal;
}

.footballer-card-country img,
.footballer-card-role img {
    grid-column: 1;
    justify-self: center;
    margin: 0;
}

.footballer-card-country span,
.footballer-card-role span {
    grid-column: 2;
    min-width: 0;
    overflow: visible;
    line-height: 1.15;
    text-overflow: clip;
    white-space: normal;
    overflow-wrap: break-word;
}


.footballer-empty {
    padding: 44px 20px;
    color: #94a3b8;
    text-align: center;
}

.footballer-profile-page {
    padding-top: 34px;
}

.footballer-profile-hero {
    display: grid;
    grid-template-columns: 230px minmax(280px, 1fr) 230px;
    align-items: center;
    gap: 28px;
    min-height: 250px;
    padding: 24px 34px;
    background: rgba(15, 23, 42, .94);
    border: 1px solid rgba(255, 255, 255, .09);
    border-radius: 18px;
}

.footballer-profile-portrait,
.footballer-profile-identity {
    display: grid;
    justify-items: center;
    text-align: center;
}

.footballer-profile-portrait {
    width: 200px;
}

.footballer-profile-photo-frame {
    width: 200px;
    height: 220px;
    padding: 4px;
    overflow: hidden;
    background: linear-gradient(145deg, rgba(56, 189, 248, .09), rgba(2, 6, 23, .3));
    border-radius: 14px;
}

.footballer-profile-photo {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    border-radius: 10px;
}

.footballer-awards-showcase {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    width: 100%;
    margin-top: 12px;
}

.footballer-showcase-award {
    display: flex;
    flex: 0 0 64px;
    width: 64px;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 5px;
    color: #dbeafe;
    text-align: center;
    text-decoration: none;
}

.footballer-showcase-award img {
    display: block;
    width: 60px;
    height: 60px;
    object-fit: contain;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, .35));
}

.footballer-showcase-award span {
    color: #dbeafe;
    font-size: 12px;
    font-weight: 800;
    line-height: 1;
}

.footballer-showcase-award:hover span {
    color: #38bdf8;
}

.footballer-profile-identity > span,
.footballer-section-title > span {
    color: #38bdf8;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.footballer-profile-identity h1 {
    margin: 0 0 20px;
    font-size: clamp(34px, 5vw, 52px);
    line-height: 1;
    text-align: center;
    max-width: 100%;
    white-space: nowrap;
    overflow-wrap: normal;
    word-break: normal;
}
.footballer-profile-photo.is-bingo-fallback{object-fit:contain;padding:5px;box-sizing:border-box}

.footballer-profile-identity dl {
    display: grid;
    grid-template-columns: repeat(3, minmax(110px, 1fr));
    width: 100%;
    gap: 10px;
    margin-bottom: 16px;
}

.footballer-profile-identity dl div {
    display: grid;
    align-content: center;
    justify-items: center;
    min-height: 60px;
    padding: 10px 12px;
    background: rgba(2, 6, 23, .3);
    border: 1px solid rgba(255, 255, 255, .06);
    border-radius: 9px;
}

.footballer-profile-identity dt {
    margin-bottom: 4px;
    color: #7d8ba0;
    font-size: 10px;
    text-transform: uppercase;
}

.footballer-profile-identity dd {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    margin: 0;
    font-size: 13px;
    font-weight: 700;
}

.footballer-country-flag {
    width: 24px;
    height: 16px;
    object-fit: cover;
    border-radius: 3px;
    box-shadow: 0 0 0 1px rgba(255, 255, 255, .2);
}

.footballer-position-card {
    display: grid;
    justify-items: center;
    gap: 8px;
    text-align: center;
}

.footballer-position-kicker {
    color: #7d8ba0;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.footballer-position-card > strong { font-size: 12px; }

.footballer-pitch {
    position: relative;
    overflow: hidden;
    background: repeating-linear-gradient(90deg, #226c48 0 26px, #287650 26px 52px);
    border: 2px solid rgba(255, 255, 255, .72);
    border-radius: 8px;
    box-shadow: inset 0 0 22px rgba(0, 0, 0, .18), 0 8px 22px rgba(0, 0, 0, .22);
}

.pitch-halfway,
.pitch-circle,
.pitch-box { position: absolute; pointer-events: none; }
.pitch-halfway { top: 50%; left: 0; width: 100%; border-top: 1px solid rgba(255, 255, 255, .7); }
.pitch-circle { top: 50%; left: 50%; width: 38px; height: 38px; border: 1px solid rgba(255, 255, 255, .7); border-radius: 50%; transform: translate(-50%, -50%); }
.pitch-box { left: 25%; width: 50%; height: 17%; border: 1px solid rgba(255, 255, 255, .7); }
.pitch-box-top { top: -1px; }
.pitch-box-bottom { bottom: -1px; }

.pitch-marker {
    position: absolute;
    z-index: 2;
    box-sizing: border-box;
    width: 9px;
    height: 9px;
    border: 1px solid rgba(255, 255, 255, .9);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    opacity: .72;
    box-shadow: 0 1px 4px rgba(0, 0, 0, .45);
}
.pitch-marker.is-active { width: 17px; height: 17px; z-index: 3; opacity: 1; box-shadow: 0 0 0 4px rgba(255, 255, 255, .22), 0 2px 8px rgba(0, 0, 0, .55); }
.pitch-gk { left: 50%; top: 89%; background: #38bdf8; }
.pitch-lb { left: 20%; top: 76%; background: #fb7185; }
.pitch-cb { left: 50%; top: 76%; background: #dc2626; }
.pitch-rb { left: 80%; top: 76%; background: #fb7185; }
.pitch-dm { left: 50%; top: 63%; background: #f97316; }
.pitch-lm { left: 20%; top: 50%; background: #86efac; }
.pitch-cm { left: 50%; top: 50%; background: #facc15; }
.pitch-rm { left: 80%; top: 50%; background: #86efac; }
.pitch-am { left: 50%; top: 37%; background: #a3e635; }
.pitch-lw { left: 20%; top: 24%; background: #22c55e; }
.pitch-rw { left: 80%; top: 24%; background: #22c55e; }
.pitch-cf { left: 50%; top: 11%; background: #14532d; }

.footballer-source-link,
.footballer-verification-note {
    display: flex;
    align-items: center;
    justify-content: center;
    justify-self: center;
    text-align: center;
    color: #7dd3fc;
    font-size: 14px;
    font-weight: 800;
    line-height: 1.2;
}

.footballer-source-link {
    box-sizing: border-box;
    width: min(100%, 260px);
    padding: 9px 16px;
    background: rgba(14, 165, 233, .08);
    border: 1px solid rgba(125, 211, 252, .24);
    border-radius: 9px;
    text-decoration: none;
    white-space: nowrap;
}

.footballer-source-link:hover {
    background: rgba(14, 165, 233, .14);
    border-color: rgba(125, 211, 252, .46);
}

/* Каталог и профили команд */
.teams-directory,
.team-profile-page {
    width: min(1120px, calc(100% - 40px));
    margin: 0 auto;
    padding: 34px 0 54px;
}

.team-filters {
    grid-template-columns: minmax(280px, 1.4fr) repeat(2, minmax(210px, .8fr));
    margin-top: 20px;
}

.team-directory-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 10px;
}

.team-directory-card {
    display: grid;
    height: 200px;
    box-sizing: border-box;
    grid-template-rows: 72px 40px 44px;
    align-content: center;
    justify-items: center;
    gap: 6px;
    padding: 14px 10px;
    color: #f8fafc;
    text-align: center;
    text-decoration: none;
    background: rgba(15, 23, 42, .91);
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: 12px;
    transition: border-color .16s ease, transform .16s ease, background .16s ease;
}

.team-directory-card:hover {
    transform: translateY(-2px);
    background: rgba(18, 31, 52, .96);
    border-color: rgba(56, 189, 248, .38);
}

.team-directory-logo {
    display: grid;
    width: 72px;
    height: 72px;
    place-items: center;
    background: radial-gradient(circle, rgba(248, 250, 252, .16), rgba(248, 250, 252, .04) 62%, transparent 73%);
}

.team-directory-logo img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 1px 2px rgba(248, 250, 252, .28));
}

.team-directory-card strong {
    display: grid;
    width: 100%;
    height: 40px;
    align-items: center;
    justify-items: center;
    font-size: 14px;
    line-height: 1.18;
}

.team-directory-country {
    display: grid;
    width: 44px;
    height: 44px;
    place-items: center;
}

.team-directory-country img {
    width: 40px;
    height: 28px;
    object-fit: contain;
}

.team-directory-federation {
    width: 44px;
    height: 44px;
}

.team-directory-federation img {
    width: 44px;
    height: 44px;
}

.team-directory-empty {
    grid-column: 1 / -1;
    padding: 40px;
    color: #94a3b8;
    text-align: center;
}

.team-profile-emblem {
    display: grid;
    width: 200px;
    place-items: center;
    justify-self: start;
}

.team-profile-hero { grid-template-columns: 230px minmax(280px, 1fr) 230px; }

.team-profile-emblem-frame {
    display: grid;
    place-items: center;
    background: radial-gradient(circle, rgba(248, 250, 252, .14), rgba(248, 250, 252, .03) 64%, transparent 74%);
}

.team-profile-emblem-frame img {
    display: block;
    width: 184px;
    height: 204px;
    object-fit: contain;
    filter: drop-shadow(0 2px 3px rgba(248, 250, 252, .24));
}

.team-profile-identity {
    display: grid;
    justify-items: center;
    text-align: center;
}

.team-profile-identity h1 {
    margin: 0 0 20px;
    font-size: clamp(34px, 5vw, 52px);
    line-height: 1;
}

.team-profile-origin {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: #dbeafe;
    font-size: 14px;
    font-weight: 800;
}

.team-profile-origin img {
    width: 26px;
    height: 18px;
    object-fit: contain;
}

.team-profile-totals {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
    gap: 8px;
    margin-top: 0;
}

.team-profile-totals div {
    display: grid;
    min-height: 58px;
    place-content: center;
    gap: 3px;
    background: rgba(2, 6, 23, .3);
    border: 1px solid rgba(255, 255, 255, .06);
    border-radius: 9px;
}

.team-profile-totals strong { color: #f8fafc; font-size: 20px; }
.team-profile-totals small { color: #8493a9; font-size: 9px; text-transform: uppercase; }

.team-profile-awards {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-content: flex-start;
    min-height: 0;
}

.team-profile-award {
    width: 64px;
}

.team-profile-award img {
    width: 60px;
    height: 60px;
}

.team-profile-no-awards {
    display: grid;
    min-height: 54px;
    place-items: center;
    color: #64748b;
    font-size: 11px;
}

.team-profile-history { margin-top: 18px; }
.team-season-list { display: grid; gap: 9px; }
.team-season { overflow: hidden; background: rgba(15, 23, 42, .92); border: 1px solid rgba(255, 255, 255, .08); border-radius: 12px; }
.team-season summary { display: grid; grid-template-columns: 1fr auto; align-items: center; min-height: 50px; padding: 0 16px; cursor: pointer; list-style: none; }
.team-season summary::-webkit-details-marker { display: none; }
.team-season summary span { font-size: 13px; font-weight: 800; }
.team-season summary b { color: #7dd3fc; font-size: 11px; }
.team-season-participants { display: grid; gap: 8px; padding: 0 10px 10px; }
.team-season-participant { display: grid; grid-template-columns: minmax(150px, 1fr) minmax(280px, 1.4fr); align-items: center; gap: 12px; min-height: 64px; padding: 8px 12px; background: rgba(2, 6, 23, .28); border: 1px solid rgba(255, 255, 255, .05); border-radius: 9px; }
.team-season-participant > a { color: #f8fafc; font-size: 14px; font-weight: 800; text-align: center; text-decoration: none; }
.team-season-participant > a:hover { color: #7dd3fc; }
.team-season-participant dl { display: grid; grid-template-columns: repeat(3, 1fr); gap: 7px; margin: 0; }
.team-season-participant dl div { display: grid; justify-items: center; gap: 3px; }
.team-season-participant dt { color: #718096; font-size: 9px; text-transform: uppercase; }
.team-season-participant dd { margin: 0; color: #dbeafe; font-size: 12px; font-weight: 800; }

@media (max-width: 980px) {
    .team-directory-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .team-profile-hero { grid-template-columns: 190px minmax(300px, 1fr); }
}

@media (max-width: 700px) {
    .teams-directory,
    .team-profile-page { width: calc(100% - 24px); }
    .team-filters { grid-template-columns: 1fr; }
    .team-directory-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .team-profile-hero { grid-template-columns: 1fr; justify-items: center; padding: 22px 14px; }
    .team-profile-totals { grid-template-columns: repeat(2, minmax(88px, 1fr)); }
    .team-season-participant { grid-template-columns: 1fr; }
}

.footballer-total-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
    gap: 10px;
    margin: 12px 0 28px;
}

.footballer-total-stats-compact {
    width: 100%;
    grid-template-columns: repeat(auto-fit, minmax(115px, 1fr));
    gap: 6px;
    margin: 0 0 12px;
}

.footballer-total-stats-compact > div {
    justify-content: center;
    min-height: 44px;
    padding: 8px 10px;
}
.footballer-total-stats-compact img { width: 20px; height: 20px; }
.footballer-total-stats-compact span { font-size: 10px; }
.footballer-total-stats-compact strong { font-size: 17px; }

.footballer-total-stats > div {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 14px 16px;
    background: rgba(15, 23, 42, .9);
    border: 1px solid rgba(255, 255, 255, .075);
    border-radius: 11px;
}

.footballer-total-stats img {
    width: 24px;
    height: 24px;
    object-fit: contain;
}

.footballer-total-stats span {
    color: #8f9db1;
    font-size: 12px;
}

.footballer-total-stats strong {
    color: #f8fafc;
    font-size: 21px;
}

.footballer-section-title {
    margin-bottom: 13px;
}

.footballer-section-title h2 {
    margin-top: 5px;
    font-size: 23px;
    text-align: center;
}

.footballer-section-title { text-align: center; }

.stats-footballer-identity {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    align-items: center;
    justify-content: center;
    width: min(100%, 310px);
    min-height: 64px;
    min-width: 0;
    margin: 0 auto;
    padding: 0 64px;
    text-align: center;
}

.stats-footballer-photo-frame {
    position: absolute;
    top: 50%;
    left: 0;
    display: grid;
    place-items: center;
    width: 64px;
    height: 64px;
    overflow: visible;
    border-radius: 0;
    background: transparent;
    transform: translateY(-50%);
}

.site-main-nav {
}

.site-main-nav > a,
.site-main-nav > .dropdown > a,
.site-main-nav .dropdown-trigger,
.site-main-nav .dropdown-menu a,
.site-main-nav .dropdown-submenu-trigger,
.site-main-nav .site-search-trigger {
    font-family: inherit;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.15;
}

.site-main-nav > a,
.site-main-nav > .dropdown > a,
.site-main-nav .dropdown-trigger,
.site-main-nav .site-search-trigger {
}

.site-main-nav .dropdown-menu a,
.site-main-nav .dropdown-submenu-trigger {
}

.site-main-nav .profiles-dropdown,
.site-main-nav .profiles-dropdown > .profiles-menu,
.site-main-nav .dropdown-submenu-menu {
    width: 142px;
    min-width: 142px;
}

.site-main-nav > .dropdown:not(.profiles-dropdown) > .dropdown-menu {
    top: calc(100% + 7px);
}

.footballer-filters .stats-visual-filter summary {
    height: 42px;
    background: #0b1323;
    border-radius: 9px;
}

.footballer-filters .stats-visual-filter-menu {
    width: max(100%, 230px);
}

.footballer-filters .stats-visual-filter summary img,
.footballer-filters .stats-visual-filter-menu img {
    width: 25px;
    height: 18px;
    object-fit: contain;
}

.footballer-card-role span {
    overflow: visible;
    overflow-wrap: break-word;
    white-space: normal;
}

/* The server HTML must never flash before shared components are initialized. */
html:has(script[src*="site-navigation.js"]):not(.site-ready) body {
    visibility: hidden;
}

html:has(script[src*="profile-tabs.js"]):not(.participant-profile-ready) body {
    visibility: hidden;
}

html:not(.participant-profile-data-ready) .profile-dashboard {
    display: none;
}

html:not(.participant-profile-data-ready) .participant-profile-summary-card {
    visibility: hidden;
}

html:not(.participant-profile-data-ready) .participant-profile-identity .profile-awards-showcase {
    visibility: hidden;
}

.participant-profile-loading {
    box-sizing: border-box;
    width: min(calc(100% - 40px), 1120px);
    margin: 18px auto 55px;
    padding: 26px;
    border: 1px solid var(--site-border-soft);
    border-radius: var(--site-radius-lg);
    background: var(--site-surface);
    color: var(--site-text-muted, #b8c2d2);
    text-align: center;
}

@media (max-width: 860px) {
    .participant-profile-loading {
        width: min(calc(100% - 24px), 1120px);
    }
}

html:has(script[src*="participants-modern.js"]):not(.participants-ready) body,
html:has(script[src^="statistics.js?"]):not(.statistics-ready) body,
html:has(body.tournament-page):not(.tournament-enhancements-ready) body {
    visibility: hidden;
}

/* Final single-line navigation geometry. */
header {
    height: 72px;
    gap: clamp(18px, 2.5vw, 38px);
    padding: 0 clamp(18px, 3.5vw, 54px);
}

header .logo {
    flex: 0 0 auto;
    min-width: max-content;
    font-size: clamp(20px, 1.7vw, 25px);
    white-space: nowrap;
}

.site-main-nav {
    display: flex;
    flex: 0 1 auto;
    flex-wrap: nowrap;
    justify-content: flex-end;
    gap: 5px;
    min-width: 0;
    margin: 0;
    white-space: nowrap;
}

.site-main-nav > a,
.site-main-nav > .dropdown,
.site-main-nav > .site-search-trigger {
    flex: 0 0 auto;
    width: 126px;
}

.site-main-nav > a,
.site-main-nav > .dropdown > a,
.site-main-nav .dropdown-trigger,
.site-main-nav .site-search-trigger {
    height: 38px;
    min-height: 38px;
    padding: 0 9px;
    border-radius: 8px;
}

.site-main-nav > a,
.site-main-nav > .dropdown > a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.site-main-nav > .dropdown > a {
    width: 100%;
}

.site-main-nav .profiles-dropdown,
.site-main-nav > .dropdown > .dropdown-menu,
.site-main-nav .dropdown-submenu-menu {
    width: 126px;
    min-width: 126px;
}

.site-main-nav .profiles-dropdown > .dropdown-trigger {
    width: 100%;
}

.site-main-nav .profiles-dropdown > .profiles-menu,
.site-main-nav .dropdown-submenu-menu {
    width: 126px;
    min-width: 126px;
}

.site-main-nav .dropdown-menu {
    padding: 0;
}

.site-main-nav .dropdown-menu a,
.site-main-nav .dropdown-submenu-trigger {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 38px;
    padding: 0 9px;
    text-align: center;
}

.site-main-nav .dropdown-submenu-trigger {
    position: relative;
    justify-content: center;
}

.site-main-nav .dropdown-trigger,
.site-main-nav > .dropdown > a,
.site-main-nav .site-search-trigger {
    position: relative;
    justify-content: center;
}

.site-main-nav .dropdown-trigger > span,
.site-main-nav .dropdown-submenu-trigger > span,
.site-main-nav .nav-edge-icon {
    position: absolute;
    right: 10px;
    margin: 0;
}

.site-main-nav .site-search-trigger > img {
    position: absolute;
    left: 10px;
    margin: 0;
}

@media (max-width: 1120px) and (min-width: 901px) {
    header {
        gap: 12px;
        padding: 0 16px;
    }

    header .logo {
        font-size: 19px;
    }

    .site-main-nav {
        gap: 3px;
    }

    .site-main-nav > a,
    .site-main-nav > .dropdown > a,
    .site-main-nav .dropdown-trigger,
    .site-main-nav .site-search-trigger {
        padding-right: 7px;
        padding-left: 7px;
        font-size: 13px;
    }

    .site-main-nav .profiles-dropdown,
    .site-main-nav > a,
    .site-main-nav > .dropdown,
    .site-main-nav > .site-search-trigger,
    .site-main-nav > .dropdown > .dropdown-menu,
    .site-main-nav .profiles-dropdown > .profiles-menu,
    .site-main-nav .dropdown-submenu-menu {
        width: 116px;
        min-width: 116px;
    }
}

.stats-footballer-photo {
    display: block;
    width: 64px;
    height: 64px;
    object-fit: contain;
    object-position: 50% 50%;
}

.stats-footballer-copy {
    display: grid;
    align-content: center;
    justify-items: center;
    gap: 6px;
    min-width: 0;
}

.stats-footballer-copy > a {
    display: block;
    width: 100%;
    overflow: visible;
    font-size: 14px;
    font-weight: 800;
    line-height: 1.2;
    overflow-wrap: anywhere;
    text-align: center;
    white-space: normal;
}

.stats-footballer-copy small {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: 100%;
    min-height: 16px;
    color: var(--text-muted, #aeb9c7);
    font-size: 12px;
    font-style: normal;
    line-height: 1;
    white-space: nowrap;
}

.stats-footballer-copy small i {
    color: #526175;
    font-style: normal;
}

.stats-footballer-flag {
    flex: 0 0 22px;
    width: 22px;
    height: 15px;
    object-fit: cover;
    border-radius: 2px;
}

.footballer-ranking-table {
    padding: 24px;
}

.footballer-ranking-table > h2 {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    margin: 0 0 18px;
    font-size: 22px;
    line-height: 1.2;
    text-align: center;
}

.footballer-ranking-table table {
    table-layout: fixed;
}

.footballer-ranking-table .rank-col,
.footballer-ranking-table .value-col {
    width: 112px;
}

.footballer-ranking-table th {
    height: 48px;
    padding: 10px 14px;
    vertical-align: middle;
    font-size: 12px;
    line-height: 1.15;
    letter-spacing: .055em;
    text-align: center;
    text-transform: uppercase;
}

.footballer-ranking-table td {
    height: 82px;
    padding: 9px 14px;
    vertical-align: middle;
    text-align: center;
}

.footballer-ranking-table td:first-child,
.footballer-ranking-table td:last-child {
    font-variant-numeric: tabular-nums;
    font-weight: 800;
}

.participant-ranking-table,
.team-ranking-table {
    padding: 24px;
}

.participant-ranking-table > h2,
.team-ranking-table > h2 {
    display: grid;
    place-items: center;
    min-height: 34px;
    margin: 0 0 18px;
    font-size: 22px;
    line-height: 1.2;
    text-align: center;
}

.participant-ranking-table table,
.team-ranking-table table {
    table-layout: fixed;
}

.participant-ranking-table .rank-col,
.participant-ranking-table .value-col {
    width: 112px;
}

.participant-ranking-table th,
.team-ranking-table th {
    height: 48px;
    padding: 10px 14px;
    vertical-align: middle;
    font-size: 12px;
    line-height: 1.15;
    letter-spacing: .055em;
    text-align: center;
    text-transform: uppercase;
}

.participant-ranking-table td,
.team-ranking-table td {
    min-height: 82px;
    padding: 9px 14px;
    vertical-align: middle;
    text-align: center;
}

.participant-ranking-table td:first-child,
.participant-ranking-table td:last-child {
    font-variant-numeric: tabular-nums;
    font-weight: 800;
}

.ranked-stats tr.rank-gold > td:first-child { color: #facc15; }
.ranked-stats tr.rank-silver > td:first-child { color: #d8e1ec; }
.ranked-stats tr.rank-bronze > td:first-child { color: #d99058; }
.ranked-stats tr.rank-gold { background: linear-gradient(90deg, rgba(250, 204, 21, .075), transparent 30%); }
.ranked-stats tr.rank-silver { background: linear-gradient(90deg, rgba(216, 225, 236, .06), transparent 30%); }
.ranked-stats tr.rank-bronze { background: linear-gradient(90deg, rgba(217, 144, 88, .065), transparent 30%); }

.stats-participant-identity .stats-footballer-photo {
    border-radius: 50%;
    object-fit: cover;
}

.stats-team-logo-frame {
    display: grid;
    place-items: center;
    width: 64px;
    height: 64px;
}

.stats-team-logo-frame img {
    display: block;
    width: 58px;
    height: 58px;
    object-fit: contain;
}

.stats-team-identity {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto auto;
    justify-items: center;
    width: 100%;
    padding: 0;
    gap: 5px;
}

.stats-team-identity::after {
    display: none;
}

.stats-team-identity .stats-team-logo-frame {
    grid-column: 1;
    grid-row: 1;
    justify-self: center;
}

.stats-team-identity .stats-footballer-copy {
    grid-column: 1;
    grid-row: 2;
    justify-self: stretch;
}

.team-ranking-table .team-identity-col { width: 42%; }
.team-ranking-table .team-participants-col { width: 58%; }

.stats-team-participants {
    display: grid;
    grid-template-columns: repeat(var(--participant-columns, 1), minmax(0, 1fr));
    align-items: stretch;
    justify-content: center;
    width: min(100%, calc(var(--participant-columns, 1) * 170px));
    margin: 0 auto;
    gap: 7px;
}

.stats-participant-chip {
    display: grid;
    grid-template-columns: 30px minmax(0, 1fr);
    align-items: center;
    align-self: stretch;
    gap: 5px;
    width: 100%;
    min-width: 0;
    min-height: 42px;
    padding: 4px 5px 4px 3px;
    color: inherit;
    text-decoration: none;
}

.stats-participant-chip img {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    object-fit: cover;
}

.stats-participant-chip-copy {
    display: grid;
    justify-items: center;
    gap: 2px;
    min-width: 0;
}

.stats-participant-chip-copy strong {
    display: block;
    width: 100%;
    font-size: 11px;
    font-weight: 700;
    line-height: 1.08;
    text-align: center;
    overflow: visible;
    text-overflow: clip;
    white-space: normal;
    overflow-wrap: normal;
    word-break: normal;
    hyphens: none;
}

.stats-participant-chip-copy small {
    color: #8f9db1;
    font-size: 10px;
    font-variant-numeric: tabular-nums;
    line-height: 1.15;
    text-align: center;
}

.stats-team-filters {
    grid-template-columns: repeat(3, minmax(170px, 1fr)) auto;
}

.stats-participant-chip:hover,
.stats-participant-chip:focus-visible {
    color: #7dd3fc;
}

.stats-primary-panel[data-stats-panel="fifers"] > .stats-subtabs {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    width: 100%;
    gap: 8px;
}

.stats-primary-panel[data-stats-panel="fifers"] > .stats-subtabs button {
    display: grid;
    place-items: center;
    min-height: 40px;
    padding: 8px 10px;
    line-height: 1.15;
    text-align: center;
}

.stats-primary-panel[data-stats-panel="teams"] .stats-result,
.stats-primary-panel[data-stats-panel="fifers"] .stats-result,
.stats-primary-panel[data-stats-panel="footballers"] .stats-result {
    border-radius: 16px;
}

.stats-primary-panel h2,
.stats-primary-panel th,
.stats-primary-panel td,
.stats-primary-panel small {
    text-align: center;
}

.stats-primary-panel[data-stats-panel="footballers"] > .stats-subtabs {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    width: 100%;
    gap: 8px;
}

.stats-primary-panel[data-stats-panel="footballers"] > .stats-subtabs button {
    display: grid;
    grid-template-rows: 20px auto;
    place-items: center;
    min-height: 58px;
    padding: 8px 10px;
    line-height: 1.15;
    text-align: center;
}

.stats-primary-panel[data-stats-panel="footballers"] .stats-footballer-filters label > span {
    min-height: 14px;
    text-align: center;
}

.stats-primary-panel[data-stats-panel="footballers"] .stats-footballer-filters > a {
    display: grid;
    place-items: center;
    min-height: 40px;
    padding-block: 7px;
    line-height: 1.15;
    text-align: center;
}

@media (max-width: 650px) {
    .footballer-ranking-table table,
    .participant-ranking-table table,
    .team-ranking-table table { min-width: 620px; }
    .stats-primary-panel[data-stats-panel="footballers"] > .stats-subtabs {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .stats-primary-panel[data-stats-panel="fifers"] > .stats-subtabs {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.footballer-protocol-link {
    color: inherit;
    font-weight: inherit;
    text-decoration: none;
}

.footballer-protocol-link:hover,
.footballer-protocol-link:focus-visible {
    color: var(--accent, #41d9ff);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.entity-profile-link,
.entity-profile-link:visited {
    color: inherit;
    font-weight: inherit;
    text-decoration: none;
}

.entity-profile-link:hover,
.entity-profile-link:focus-visible {
    color: var(--accent, #38bdf8);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.footballer-season-list {
    display: grid;
    gap: 8px;
}

.footballer-season {
    overflow: hidden;
    background: rgba(15, 23, 42, .92);
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: 11px;
}

.footballer-season summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 52px;
    padding: 10px 16px;
    cursor: pointer;
    list-style: none;
}

.footballer-season summary::-webkit-details-marker { display: none; }
.footballer-season summary > span { font-size: 14px; font-weight: 700; }
.footballer-season summary > b { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 5px 10px; color: #7dd3fc; font-size: 11px; }
.footballer-season-fact { display: inline-flex; align-items: center; gap: 4px; white-space: nowrap; }
.footballer-season-fact img { width: 15px; height: 15px; object-fit: contain; }
.footballer-season-fact strong { color: #f8fafc; }
.footballer-participant-link { color: inherit; font-weight: 700; text-decoration: none; }
.footballer-participant-link:hover,
.footballer-participant-link:focus-visible { color: #7dd3fc; text-decoration: underline; text-underline-offset: 3px; }
.footballer-season[open] { border-color: rgba(56, 189, 248, .35); }

.footballer-event-list {
    display: grid;
    gap: 7px;
    padding: 0 12px 12px;
}

.footballer-event {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
    padding: 12px 14px;
    color: #dbeafe;
    text-decoration: none;
    text-align: center;
    background: rgba(2, 6, 23, .34);
    border: 1px solid rgba(255, 255, 255, .065);
    border-radius: 9px;
}
.footballer-event:has(.footballer-event-score:hover) { border-color: rgba(56, 189, 248, .42); background: rgba(14, 116, 144, .12); }
.footballer-event-stage { grid-column: 1 / -1; color: #7dd3fc; font-size: 10px; font-weight: 800; letter-spacing: .07em; text-align: center; text-transform: uppercase; }
.footballer-event-scoreboard { display: grid; grid-template-columns: minmax(0, 1fr) 68px minmax(0, 1fr); align-items: center; gap: 10px; }
.footballer-event-scoreboard > span { display: flex; align-items: center; gap: 8px; min-width: 0; }
.footballer-event-scoreboard > span > span { display: grid; gap: 3px; min-width: 0; }
.footballer-event-scoreboard > span:first-child { justify-content: flex-end; text-align: right; }
.footballer-event-scoreboard > span:last-child { justify-content: flex-start; text-align: left; }
.footballer-event-scoreboard strong { overflow-wrap: anywhere; font-size: 12px; }
.footballer-event-scoreboard small { color: #94a3b8; font-size: 10px; }
.footballer-event-logo { width: 34px; height: 34px; flex: 0 0 34px; object-fit: contain; }
.footballer-event-score { display: grid; place-items: center; min-height: 34px; padding: 4px 8px; color: #f8fafc; font-size: 18px; font-weight: 900; line-height: 1; text-align: center; text-decoration: none; white-space: nowrap; background: rgba(56, 189, 248, .08); border: 1px solid rgba(56, 189, 248, .2); border-radius: 8px; }
.footballer-event-score:hover { color: #7dd3fc; border-color: rgba(56, 189, 248, .55); }
.footballer-event-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 5px 12px; min-height: 27px; padding-top: 6px; border-top: 1px solid rgba(255, 255, 255, .055); }
.footballer-event-action { display: flex; align-items: center; justify-content: center; gap: 6px; color: #f8fafc; font-size: 11px; }
.footballer-event-action > b { font-size: 11px; }
.footballer-event-action img { width: 21px; height: 21px; object-fit: contain; }
.footballer-event-minutes { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px; }
.footballer-event-minute { display: inline-grid; place-items: center; min-width: 28px; padding: 2px 5px; color: #07111f; font-size: 10px; font-weight: 900; background: #7dd3fc; border-radius: 999px; }

.footballer-profile-error {
    min-height: 430px;
    display: grid;
    place-content: center;
    justify-items: center;
    gap: 20px;
}

.stats-footballer-filters {
    display: grid;
    grid-template-columns: repeat(3, minmax(170px, 1fr)) auto;
    align-items: end;
    margin-bottom: 14px;
    border: 1px solid rgba(255, 255, 255, .08);
}

.stats-footballer-filters label {
    display: grid;
    gap: 6px;
}

.stats-footballer-filters > label > span {
    color: #8f9db1;
    font-size: 11px;
    font-weight: 700;
}

.stats-footballer-filters select {
    height: 40px;
    padding: 0 10px;
    color: #f8fafc;
    background: #0a1322;
    border: 1px solid rgba(148, 163, 184, .22);
    border-radius: 8px;
}

.stats-native-filter {
    position: absolute;
    width: 1px !important;
    max-width: 1px;
    height: 1px;
    padding: 0 !important;
    border: 0 !important;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
}

.stats-visual-filter { position: relative; }
.stats-visual-filter summary {
    display: flex;
    align-items: center;
    gap: 9px;
    height: 40px;
    padding: 0 32px 0 11px;
    color: #f8fafc;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.2;
    text-align: center;
    background: #0a1322;
    border: 1px solid rgba(148, 163, 184, .22);
    border-radius: 8px;
    cursor: pointer;
    list-style: none;
}
.stats-visual-filter summary::after { content: ""; position: absolute; right: 12px; width: 7px; height: 7px; border-right: 1px solid #7dd3fc; border-bottom: 1px solid #7dd3fc; transform: rotate(45deg) translateY(-2px); }
.stats-visual-filter summary::-webkit-details-marker { display: none; }
.stats-visual-filter summary img,
.stats-visual-filter-menu img { width: 25px; height: 17px; flex: 0 0 auto; object-fit: contain; }
.stats-visual-filter-menu {
    position: absolute;
    z-index: 30;
    top: calc(100% + 5px);
    left: 0;
    display: grid;
    width: max(100%, 220px);
    max-height: 280px;
    padding: 5px;
    overflow-y: auto;
    background: #0a1322;
    border: 1px solid rgba(56, 189, 248, .28);
    border-radius: 9px;
    box-shadow: 0 16px 35px rgba(0, 0, 0, .38);
}
.stats-visual-filter-menu button { display: flex; align-items: center; gap: 9px; min-height: 35px; padding: 6px 8px; color: #dbeafe; font: inherit; font-size: 12px; font-weight: 600; line-height: 1.2; text-align: left; background: transparent; border: 0; border-radius: 6px; cursor: pointer; }
.stats-visual-filter-menu button:hover,
.stats-visual-filter-menu button.active { color: #fff; background: rgba(56, 189, 248, .12); }

.stats-footballer-filters > a {
    justify-self: end;
    padding: 11px 14px;
    color: #7dd3fc;
    font-size: 12px;
    text-decoration: none;
    background: rgba(56, 189, 248, .07);
    border: 1px solid rgba(56, 189, 248, .18);
    border-radius: 8px;
}

@media (max-width: 900px) {
    .footballer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .footballer-profile-hero { grid-template-columns: 190px minmax(0, 1fr); }
    .footballer-position-card { grid-column: 1 / -1; }
    .footballer-event { grid-template-columns: 1fr; }
}

@media (max-width: 700px) {
    .footballers-directory,
    .footballer-profile-page { width: calc(100% - 24px); }
    .footballer-filters { grid-template-columns: 1fr; }
    .footballer-grid { grid-template-columns: 1fr; }
    .footballer-profile-hero { grid-template-columns: 1fr; justify-items: center; padding: 22px; text-align: center; }
    .footballer-profile-identity h1 { text-align: center; }
    .footballer-profile-identity dl { grid-template-columns: 1fr; }
    .footballer-total-stats { grid-template-columns: 1fr 1fr; }
    .footballer-event { grid-template-columns: 1fr; gap: 6px; }
    .stats-footballer-filters { grid-template-columns: 1fr; }
    .stats-footballer-filters > a { justify-self: stretch; text-align: center; }
}

@media (max-width: 620px) {
    nav .dropdown + .dropdown .dropdown-menu {
        right: 0;
        left: auto;
    }
}

/* Medal finishes for the decisive playoff results. */
.bracket .final-2017:not(.finals-2022) .match .team.winner,
.bracket-2019 .round-2019-3 .match .team.winner,
.bracket .final-placement .match .team.winner {
}

.bracket .final-2017:not(.finals-2022) .match .team:not(.winner),
.bracket-2019 .round-2019-3 .match .team:not(.winner),
.bracket .final-placement .match .team:not(.winner) {
}

.bracket .bronze-placement .match .team.winner,
.bracket:not(:has(.bronze-placement)) .semifinals-2017 .match .team:not(.winner),
.bracket-2019:not(:has(.bronze-placement)) .round-2019-2 .match .team:not(.winner) {
}

/* Final participant-award template, matching the 2021–2022 cards. */
.tournament-summary .participant-awards {
}

.tournament-summary .participant-award {
}

.tournament-summary .participant-award > span,
.tournament-summary .participant-award > strong,
.tournament-summary .participant-award > p {
}

.tournament-summary .participant-award > strong {
    text-align: center;
}

.tournament-summary .participant-award:has(strong a:nth-of-type(2)) > strong {
}

.tournament-summary .participant-award:has(strong a:nth-of-type(3)) > strong {
}

.tournament-summary .participant-award > p {
}

@media (max-width: 620px) {
    .tournament-summary .participant-award {
    }
}

.double-elimination-2023 {
    margin-top: 28px;
}

.double-bracket-2023 {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 18px;
    padding: 16px;
    border: 1px solid rgba(56, 189, 248, 0.35);
    border-radius: 16px;
    background: rgba(15, 23, 42, 0.68);
}

.double-division-2023 {
    min-width: 0;
    padding: 12px;
    border: 1px solid rgba(148, 163, 184, 0.24);
    border-radius: 14px;
    background: rgba(15, 23, 42, 0.78);
}

.division-title-2023,
.double-path-label-2023 {
    margin: 0 0 10px;
    text-align: center;
    color: #f8fafc;
}

.winner-path-label-2023 {
    margin-top: 0;
    color: #2dd4bf;
    border-top: 0;
}

.double-path-label-2023 {
    margin-top: 14px;
    padding-top: 10px;
    color: #38bdf8;
    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;
    border-top: 1px solid rgba(56, 189, 248, 0.24);
}

.double-path-2023 {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.double-column-2023 {
    display: flex;
    flex-direction: column;
    gap: 12px;
    min-width: 0;
}

.double-column-2023 h3 {
    margin: 0;
    padding: 8px 10px;
    text-align: center;
    color: #f8fafc;
    border: 1px solid rgba(148, 163, 184, 0.28);
    border-radius: 10px;
    background: #172033;
}

.double-column-2023 .match {
    height: 112px;
    margin: 0;
}

@media (max-width: 900px) {
    .double-path-2023 {
        grid-template-columns: repeat(3, 220px);
    }

    .double-division-2023 {
        overflow-x: auto;
    }
}

.profile-avatar-fallback {
    width:160px;
    height:160px;
    border:2px solid #38bdf8;
    border-radius:50%;
    display:flex;
    align-items:center;
    justify-content:center;
    background:linear-gradient(145deg,#172033,#0f172a);
    color:#38bdf8;
    font-size:54px;
    font-weight:800;
}


/* Final archive color override. */
.modern-tournament .modern-stage,
.modern-tournament .modern-season-card,
.modern-tournament .modern-format-note {
}

.modern-tournament .modern-stage-nav {
}

.modern-tournament .modern-stage-nav a {
}

.bracket-2016 {
    width: min(94%, 1180px);
    margin: 30px auto;
}

.profile-tournament-link {
    color: inherit;
    font-weight: inherit;
    text-decoration: none;
    border-bottom: 0;
    transition: color .2s ease;
}

.profile-tournament-link:hover {
    color: #ffd54a;
}

.statistics-table a,
.history a {
    color: #7dd3fc;
    text-decoration: none;
}

.statistics-table a:hover,
.history a:hover {
    text-decoration: underline;
}

.empty-profile-state {
    padding: 18px;
    border-radius: 10px;
    background: rgba(255,255,255,.04);
    color: #94a3b8;
    text-align: center;
}

.match-link {
    display: block;
    color: inherit;
    text-decoration: none;
    cursor: pointer;
    transition: transform .2s, border-color .2s, box-shadow .2s;
}

.match-link:hover,
.match-link:focus-visible {
    transform: translateY(-3px);
    border-color: rgba(56,189,248,.65);
    box-shadow: 0 10px 24px rgba(0,0,0,.38);
    outline: none;
}

.team {

    display: flex;

    align-items: center;

    padding: 8px 10px;

    border-radius: 8px;

    transition: .25s;

}

.team:hover {

    background: #22304d;

}

.team.winner {

    background: rgba(56,189,248,.18);

}

.team img {

    width: 28px;

    height: 28px;

    object-fit: contain;

    margin-right: 10px;

}

.club {

    width: 130px;

    font-weight: bold;

}

.player {

    flex: 1;

    color: #cbd5e1;

}

.score {

    width: 30px;

    text-align: right;

    font-size: 20px;

    font-weight: bold;

    color: #38bdf8;

}

.separator {

    height: 1px;

    background: #334155;

    margin: 6px 0;

}

.bracket-column.semifinals {
    padding-top: 81px;
}

.bracket-column.semifinals .match {
    margin-bottom: 192px;
}

.bracket-column.final-column {
    padding-top: 243px;
}

.final-bracket-match {
    border-color: rgba(250, 204, 21, .5);
    box-shadow: 0 8px 24px rgba(250, 204, 21, .12);
}

.bracket-champion {
    margin-top: 18px;
    padding: 14px;
    border-radius: 10px;
    background: rgba(250, 204, 21, .14);
    color: #fde047;
    text-align: center;
    font-size: 18px;
    font-weight: bold;
}

.protocol-card {
    width: min(90%, 760px);
    margin: 45px auto;
    padding: 30px;
    border: 1px solid rgba(255,255,255,.1);
    border-radius: 16px;
    background: #172033;
}

.protocol-card h2 {
    margin-bottom: 18px;
    color: #38bdf8;
}

.protocol-card p {
    margin-bottom: 28px;
    color: #cbd5e1;
}

.protocol-card a {
    color: #38bdf8;
    text-decoration: none;
}

/* ===== Протокол матча ===== */
.match-page {
    width: min(92%, 860px);
    margin: 35px auto 70px;
}

.back-to-bracket {
    display: inline-block;
    margin-bottom: 22px;
    color: #7dd3fc;
    text-decoration: none;
}

.protocol-breadcrumbs {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 14px;
    width: 100%;
    min-height: 48px;
    margin: 0 auto 14px;
    padding: 10px 16px;
    box-sizing: border-box;
    border: 1px solid rgba(125, 211, 252, 0.2);
    border-radius: 12px;
    background: rgba(9, 25, 43, 0.72);
    color: #94a3b8;
    font-size: 13px;
    line-height: 1.3;
    text-align: center;
}

.stats-primary-panel[data-stats-panel="footballers"] > .stats-subtabs button::before {
    content: "";
    display: block;
    width: 18px;
    height: 18px;
    background: center / contain no-repeat;
    filter: brightness(0) invert(1);
    opacity: .72;
}

.stats-primary-panel[data-stats-panel="footballers"] > .stats-subtabs button[data-subtarget="goals"]::before { background-image: url("images/match-icons/goal.png"); }
.stats-primary-panel[data-stats-panel="footballers"] > .stats-subtabs button[data-subtarget="cleanSheets"]::before { background-image: url("images/match-icons/clean-sheet.png"); }
.stats-primary-panel[data-stats-panel="footballers"] > .stats-subtabs button[data-subtarget="ownGoals"]::before { background-image: url("images/match-icons/own-goal.png"); }
.stats-primary-panel[data-stats-panel="footballers"] > .stats-subtabs button[data-subtarget="redCards"]::before { background-image: url("images/match-icons/red-card.png"); }

.stats-primary-panel[data-stats-panel="footballers"] > .stats-subtabs button.active::before {
    opacity: 1;
}

.stats-primary-panel[data-stats-panel="footballers"] .stats-footballer-filters,
.stats-primary-panel[data-stats-panel="teams"] .stats-footballer-filters {
}

.stats-primary-panel[data-stats-panel="footballers"] .stats-fifer-selection,
.stats-primary-panel[data-stats-panel="teams"] .stats-fifer-selection {
    grid-column: 1 / -1;
}

/* Unified participant statistics: filters and values share one compact grid. */
.stats-fifer-toolbar {
    display: grid;
    grid-template-columns: minmax(220px, 280px);
    justify-content: center;
    align-items: center;
    gap: 10px;
    width: 100%;
    margin-bottom: 14px;
}

.stats-fifer-multi-field {
    display: grid;
    gap: 6px;
    min-width: 0;
}

.stats-fifer-multi-field > span {
    color: #8f9db1;
    font-size: 11px;
    font-weight: 700;
    text-align: center;
}

.stats-fifer-multi-filter summary {
    justify-content: center;
}

.stats-fifer-multi-filter .stats-visual-filter-menu {
    width: max(100%, 270px);
    max-height: 340px;
}

.stats-fifer-multi-filter .stats-visual-filter-menu label {
    display: grid;
    grid-template-columns: 18px 28px minmax(0, 1fr);
    align-items: center;
    gap: 7px;
    min-height: 38px;
    padding: 4px 7px;
    border-radius: 7px;
    color: #dbeafe;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.2;
    cursor: pointer;
}

.stats-fifer-multi-filter .stats-visual-filter-menu label:hover,
.stats-fifer-multi-filter .stats-visual-filter-menu label:has(input:checked) {
    background: rgba(56, 189, 248, .12);
    color: #fff;
}

.stats-fifer-multi-filter .stats-visual-filter-menu label input {
    width: 15px;
    height: 15px;
    margin: 0;
    accent-color: #38bdf8;
}

.stats-fifer-multi-filter .stats-visual-filter-menu label img {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    object-fit: cover;
}

.stats-fifer-multi-filter .stats-visual-filter-menu label span {
    min-width: 0;
    color: inherit;
    font-size: inherit;
    font-weight: inherit;
    line-height: inherit;
    text-align: left;
}

.stats-fifer-filter-reset {
    justify-content: center;
    width: 100%;
    margin-bottom: 3px;
    border-bottom: 1px solid rgba(148, 163, 184, .14);
    color: #7dd3fc;
}

.stats-fifer-selection {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 5px;
}

.stats-fifer-selection:empty {
    display: none;
}

.stats-fifer-selection > button {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    min-height: 25px;
    padding: 3px 7px;
    border: 1px solid rgba(56, 189, 248, .25);
    border-radius: 999px;
    background: rgba(56, 189, 248, .09);
    color: #dbeafe;
    font: inherit;
    font-size: 10px;
    font-weight: 700;
    cursor: pointer;
}

.stats-fifer-selection > button span {
    color: #7dd3fc;
    font-size: 14px;
    line-height: 1;
}

.stats-fifer-search {
    display: grid;
    align-content: center;
    gap: 5px;
    min-width: 0;
    padding: 8px 11px;
    border: 1px solid rgba(148, 163, 184, .18);
    border-radius: 12px;
    background: #111827;
}

.stats-fifer-search span {
    color: #94a3b8;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .05em;
    text-align: center;
    text-transform: uppercase;
}

.stats-fifer-search input {
    box-sizing: border-box;
    width: 100%;
    height: 34px;
    padding: 0 10px;
    border: 1px solid rgba(148, 163, 184, .2);
    border-radius: 8px;
    outline: none;
    background: #172033;
    color: #f8fafc;
    font: inherit;
    font-size: 12px;
    text-align: center;
}

.stats-fifer-search input:focus {
    border-color: #38bdf8;
    box-shadow: 0 0 0 2px rgba(56, 189, 248, .13);
}

.stats-fifer-metrics {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 6px;
    min-width: 0;
    padding: 7px;
    border: 1px solid rgba(148, 163, 184, .18);
    border-radius: 12px;
    background: #111827;
}

.stats-fifer-metrics button {
    display: grid;
    grid-template-columns: minmax(0, auto) 12px;
    place-content: center;
    align-items: center;
    gap: 3px;
    min-width: 0;
    min-height: 46px;
    padding: 6px 4px;
    border: 0;
    border-radius: 8px;
    background: #172033;
    color: #94a3b8;
    font: inherit;
    font-size: 11px;
    font-weight: 800;
    line-height: 1.1;
    cursor: pointer;
}

.stats-fifer-metrics button:hover,
.stats-fifer-metrics button.active {
    background: #24324c;
    color: #7dd3fc;
}

.stats-fifer-overview {
    padding: 20px;
}

.stats-fifer-overview > h2 {
    margin: 0 0 16px;
}

.stats-fifer-overview table {
    table-layout: fixed;
}

.stats-fifer-overview .fifer-name-col {
    width: 18%;
}

.stats-fifer-overview .fifer-value-col {
    width: 6.833%;
}

.stats-fifer-overview th {
    height: 76px;
    padding: 0;
}

.stats-fifer-overview th.sorted-column {
    background: rgba(56, 189, 248, .13);
    box-shadow: inset 1px 0 rgba(56, 189, 248, .2), inset -1px 0 rgba(56, 189, 248, .2);
}

.stats-fifer-overview th + th {
    border-left: 1px solid rgba(148, 163, 184, .09);
}

.stats-fifer-overview th button {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1px;
    width: 100%;
    height: 76px;
    padding: 5px 4px;
    border: 0;
    background: transparent;
    color: inherit;
    font: inherit;
    font-size: 8.5px;
    font-weight: 800;
    letter-spacing: 0;
    text-transform: uppercase;
    cursor: pointer;
}

.stats-fifer-metric-icon {
    position: relative;
    display: block;
    width: 18px;
    height: 18px;
    margin: 0 auto 1px;
}

.stats-fifer-metric-icon img {
    display: block;
    width: 18px;
    height: 18px;
    object-fit: contain;
    filter: brightness(0) invert(1);
    opacity: .72;
}

.stats-fifer-metric-icon.keep-original-color img {
    filter: none;
    opacity: 1;
}

.stats-unified-overview {
    padding: 20px;
}

.stats-unified-overview > h2 {
    margin: 0 0 16px;
}

.stats-unified-overview table {
    width: 100%;
    table-layout: fixed;
}

.stats-unified-overview th {
    height: 76px;
    padding: 0;
    border-left: 1px solid rgba(148, 163, 184, .09);
}

.stats-unified-overview th:first-child {
    border-left: 0;
}

.stats-unified-overview th button {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    width: 100%;
    height: 76px;
    padding: 4px;
    border: 0;
    background: transparent;
    color: #fff;
    font: inherit;
    font-size: 9px;
    font-weight: 800;
    line-height: 1.08;
    text-align: center;
    text-transform: uppercase;
    cursor: pointer;
}

.stats-unified-overview th button > span {
    display: grid;
    place-items: center;
    min-height: 20px;
}

.stats-unified-overview th button > i {
    display: grid;
    place-items: center;
    width: 100%;
    height: 10px;
    color: #64748b;
    font-size: 10px;
    font-style: normal;
}

.stats-unified-overview th.sorted-column {
    background: rgba(56, 189, 248, .13);
    box-shadow: inset 1px 0 rgba(56, 189, 248, .2), inset -1px 0 rgba(56, 189, 248, .2);
}

.stats-unified-overview td {
    height: 72px;
    padding: 7px 8px;
    vertical-align: middle;
    font-size: 12px;
    font-variant-numeric: tabular-nums;
    font-weight: 700;
    text-align: center;
    color: #fff;
}

.stats-unified-overview td a,
.stats-unified-overview td a:visited,
.stats-unified-overview .stats-text-identity,
.stats-unified-overview .stats-text-identity span {
    color: #fff;
}

.stats-footballer-overview .stats-unified-person-identity > a,
.stats-footballer-overview .stats-unified-person-identity > a:visited {
    color: #7dd3fc;
}

.stats-unified-overview td.sorted-column {
    background: rgba(56, 189, 248, .055);
    box-shadow: inset 1px 0 rgba(56, 189, 248, .11), inset -1px 0 rgba(56, 189, 248, .11);
}

.stats-footballer-overview th:first-child,
.stats-footballer-overview td:first-child { width: 27%; }
.stats-footballer-overview th:nth-child(2),
.stats-footballer-overview td:nth-child(2) { width: 13%; }
.stats-footballer-overview th:nth-child(3),
.stats-footballer-overview td:nth-child(3) { width: 12%; }
.stats-footballer-overview th:nth-child(4),
.stats-footballer-overview td:nth-child(4) { width: 17%; }

.stats-footballer-overview td:first-child .stats-footballer-identity {
    width: 100%;
    padding-right: 8px;
}

.stats-team-overview th:first-child,
.stats-team-overview td:first-child { width: 25%; }
.stats-team-overview th:nth-child(2),
.stats-team-overview td:nth-child(2) { width: 15%; }
.stats-team-overview th:nth-child(3),
.stats-team-overview td:nth-child(3) { width: 11%; }
.stats-team-overview th:nth-child(4),
.stats-team-overview td:nth-child(4) { width: 10%; }
.stats-team-overview th:nth-child(5),
.stats-team-overview td:nth-child(5) { width: 39%; }

.stats-text-identity {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
}

.stats-text-identity img {
    width: 25px;
    height: 17px;
    object-fit: contain;
}

.stats-unified-person-identity {
    display: grid;
    grid-template-columns: 58px minmax(0, 1fr);
    align-items: center;
    justify-content: start;
    gap: 10px;
    width: 100%;
    min-height: 64px;
    text-align: left;
}

.stats-unified-person-identity .stats-footballer-photo-frame {
    position: static;
    width: 58px;
    height: 58px;
    transform: none;
}

.stats-unified-person-identity .stats-footballer-photo {
    width: 58px;
    height: 58px;
}

.stats-unified-person-identity > a {
    display: flex;
    align-items: center;
    align-self: stretch;
    min-width: 0;
    font-size: 13px;
    font-weight: 800;
    line-height: 1.18;
    text-align: left;
    white-space: normal;
}

.stats-unified-team-logo {
    display: grid;
    grid-template-columns: 58px minmax(0, 1fr);
    align-items: center;
    gap: 9px;
    place-items: center;
    width: 100%;
    height: 72px;
    padding: 4px 8px;
    text-align: left;
    text-decoration: none;
}

.stats-unified-team-logo img {
    display: block;
    width: 62px;
    height: 62px;
    object-fit: contain;
}

.stats-unified-team-logo span {
    justify-self: start;
    min-width: 0;
    color: #7dd3fc;
    font-size: 12px;
    font-weight: 800;
    line-height: 1.15;
}

/* One underline color for every entity link in general statistics. */
.stats-fifer-overview .stats-participant-identity .stats-footballer-copy > a,
.stats-footballer-overview .stats-unified-person-identity > a,
.stats-team-overview .stats-unified-team-logo {
    text-decoration-line: underline;
    text-decoration-color: transparent;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
    transition: text-decoration-color .16s ease;
}

.stats-fifer-overview .stats-participant-identity .stats-footballer-copy > a:hover,
.stats-fifer-overview .stats-participant-identity .stats-footballer-copy > a:focus-visible,
.stats-footballer-overview .stats-unified-person-identity > a:hover,
.stats-footballer-overview .stats-unified-person-identity > a:focus-visible,
.stats-team-overview .stats-unified-team-logo:hover,
.stats-team-overview .stats-unified-team-logo:focus-visible {
    color: #38bdf8;
    text-decoration-color: #38bdf8;
}

.stats-team-overview .stats-unified-team-logo:hover > span,
.stats-team-overview .stats-unified-team-logo:focus-visible > span,
.stats-team-overview .stats-participant-chip:hover,
.stats-team-overview .stats-participant-chip:focus-visible,
.stats-team-overview .stats-participant-chip:hover strong,
.stats-team-overview .stats-participant-chip:focus-visible strong {
    color: #38bdf8;
}

.stats-catalog-link {
    display: grid;
    place-items: center;
    box-sizing: border-box;
    align-self: center;
    min-width: 190px;
    height: 42px;
    min-height: 42px;
    padding: 7px 14px;
    border: 1px solid rgba(56, 189, 248, .22);
    border-radius: 9px;
    background: rgba(56, 189, 248, .08);
    color: #7dd3fc;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.2;
    text-align: center;
    text-decoration: none;
}

.stats-primary-panel[data-stats-panel="footballers"] .stats-footballer-filters > label,
.stats-primary-panel[data-stats-panel="teams"] .stats-footballer-filters > label,
.stats-primary-panel[data-stats-panel="fifers"] .stats-fifer-multi-field {
    display: grid;
    grid-template-rows: 14px 42px auto;
    align-content: start;
    gap: 6px;
    min-width: 0;
}

.stats-primary-panel[data-stats-panel="teams"] .stats-footballer-filters > label > span {
    display: grid;
    height: 14px;
    place-items: center;
    margin: 0;
    line-height: 14px;
    text-align: center;
}

.stats-filter-clear {
    box-sizing: border-box;
    width: 100%;
    min-height: 26px;
    padding: 3px 8px;
    border: 1px solid rgba(56, 189, 248, .22);
    border-radius: 7px;
    background: rgba(56, 189, 248, .08);
    color: #7dd3fc;
    font: inherit;
    font-size: 10px;
    font-weight: 750;
    cursor: pointer;
}

.stats-filter-clear[hidden] {
    visibility: hidden;
    display: block;
}

.stats-primary-panel .stats-visual-filter summary {
    justify-content: center;
    box-sizing: border-box;
    height: 42px;
    min-height: 42px;
}

.stats-primary-panel .stats-fifer-selection {
    min-height: 0;
}

.stats-primary-panel .stats-catalog-link {
    align-self: start;
    width: 100%;
    margin: 20px 0 0;
}

.stats-primary-panel[data-stats-panel="footballers"] .stats-footballer-filters,
.stats-primary-panel[data-stats-panel="teams"] .stats-footballer-filters {
    grid-template-columns: repeat(3, minmax(150px, 220px)) minmax(180px, 210px);
    justify-content: center;
    align-items: center;
}

.stats-catalog-link:hover,
.stats-catalog-link:focus-visible {
    background: rgba(56, 189, 248, .15);
    border-color: rgba(56, 189, 248, .4);
}

.stats-primary-panel[data-stats-panel="fifers"] .stats-fifer-toolbar {
    grid-template-columns: minmax(220px, 280px) 210px;
}

@media (max-width: 850px) {
    .stats-unified-table-scroll { overflow-x: auto; }
    .stats-footballer-overview table { min-width: 980px; }
    .stats-team-overview table { min-width: 850px; }
    .stats-primary-panel[data-stats-panel="footballers"] .stats-footballer-filters,
    .stats-primary-panel[data-stats-panel="teams"] .stats-footballer-filters,
    .stats-primary-panel[data-stats-panel="fifers"] .stats-fifer-toolbar { grid-template-columns: 1fr; }
    .stats-catalog-link { width: 100%; margin-top: 0; }
}

.stats-fifer-metric-icon.is-crossed::after {
    content: "";
    position: absolute;
    top: 8px;
    left: -2px;
    width: 22px;
    height: 1.5px;
    border-radius: 2px;
    background: #fff;
    box-shadow: 0 0 0 1px rgba(15, 23, 42, .45);
    opacity: .86;
    transform: rotate(-45deg);
    transform-origin: center;
}

.stats-fifer-overview th button span {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 24px;
    min-height: 24px;
    min-width: 0;
    line-height: 1.08;
    text-align: center;
    white-space: normal;
}

.stats-fifer-overview th button i {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 10px;
    min-height: 10px;
    color: #64748b;
    font-size: 10px;
    font-style: normal;
    line-height: 1;
}

.stats-fifer-overview th button.active,
.stats-fifer-overview th button.active i,
.stats-fifer-overview th button:hover {
    color: #7dd3fc;
}

.stats-fifer-overview td {
    height: 72px;
    padding: 6px 4px;
    font-variant-numeric: tabular-nums;
    font-weight: 800;
    text-align: center;
    vertical-align: middle;
}

.stats-fifer-overview td.sorted-column {
    background: rgba(56, 189, 248, .055);
    box-shadow: inset 1px 0 rgba(56, 189, 248, .11), inset -1px 0 rgba(56, 189, 248, .11);
    color: #e7f8ff;
}

.stats-fifer-overview td:first-child {
    font-weight: 400;
    text-align: left;
}

.stats-fifer-overview .stats-participant-identity {
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr);
    align-items: center;
    gap: 7px;
    width: 100%;
    min-height: 52px;
    padding: 0 8px;
}

.stats-fifer-overview .stats-participant-identity .stats-footballer-photo-frame {
    position: static;
    grid-column: 1;
    width: 48px;
    height: 48px;
    transform: none;
}

.stats-fifer-overview .stats-participant-identity .stats-footballer-copy {
    grid-column: 2;
    justify-items: start;
    width: 100%;
    max-width: none;
    min-width: 0;
}

.stats-fifer-overview .stats-participant-identity .stats-footballer-copy > a {
    overflow: visible;
    width: 100%;
    max-width: none;
    font-size: 12px;
    line-height: 1.15;
    text-align: left;
    text-overflow: clip;
    white-space: normal;
    overflow-wrap: normal;
    word-break: normal;
    hyphens: none;
}

.stats-fifer-overview .stats-footballer-photo-frame {
    width: 48px;
    height: 48px;
}

.stats-fifer-overview .stats-footballer-photo {
    width: 44px;
    height: 44px;
}

.stats-fifer-count {
    margin: 12px 0 0;
    color: #94a3b8;
    font-size: 11px;
    text-align: center;
}

@media (max-width: 850px) {
    .stats-fifer-toolbar { grid-template-columns: 1fr; }
    .stats-fifer-metrics { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .stats-fifer-table-scroll { overflow-x: auto; }
    .stats-fifer-overview table { min-width: 1120px; }
}

@media (max-width: 520px) {
    .stats-fifer-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .stats-fifer-overview { padding: 12px; }
}
.protocol-breadcrumbs a { color: #38bdf8; text-decoration: none; }
.protocol-breadcrumbs a:hover { text-decoration: underline; }
.protocol-breadcrumbs strong { color: #e2e8f0; font-weight: 600; }

.protocol-match-navigation {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 280px minmax(0, 1fr);
    align-items: stretch;
    gap: var(--site-space-3);
    margin: 0 0 var(--site-space-4);
}
.protocol-match-step,
.protocol-match-context {
    display: flex;
    min-width: 0;
    min-height: 74px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 10px 12px;
    box-sizing: border-box;
    border: 1px solid var(--site-border);
    border-radius: var(--site-radius-md);
    background: var(--site-surface);
    text-align: center;
}
.protocol-match-step {
    color: #e2e8f0;
    text-decoration: none;
    transition: border-color var(--site-transition), background var(--site-transition);
}
.protocol-match-step.next { text-align: center; }
.protocol-match-step:hover,
.protocol-match-step:focus-visible {
    border-color: var(--site-accent);
    background: var(--site-surface-raised);
    outline: none;
}
.protocol-match-step small,
.protocol-match-context small {
    width: 100%;
    color: var(--site-accent-light);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .04em;
    text-transform: uppercase;
}
.protocol-match-step strong {
    width: 100%;
    margin-top: 4px;
    overflow: visible;
    font-size: 12px;
    line-height: 1.2;
    overflow-wrap: anywhere;
    white-space: normal;
}
.protocol-match-step span {
    width: 100%;
    margin-top: 3px;
    overflow: visible;
    color: #94a3b8;
    font-size: 10px;
    overflow-wrap: anywhere;
    white-space: normal;
}
.protocol-match-step.is-empty {
    visibility: hidden;
}
.protocol-match-context {
    align-items: center;
    height: 74px;
    overflow: hidden;
    text-align: center;
}
.protocol-match-context small {
    flex: 0 0 12px;
    height: 12px;
    line-height: 12px;
    white-space: nowrap;
}
.protocol-match-context strong {
    display: grid;
    flex: 0 0 15px;
    width: 100%;
    height: 15px;
    margin-top: 4px;
    overflow: hidden;
    color: #f8fafc;
    font-size: 12px;
    line-height: 15px;
    place-items: center;
    white-space: nowrap;
}
@media (max-width: 620px) {
    .protocol-match-navigation {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: var(--site-space-2);
    }
    .protocol-match-context {
        grid-column: 1 / -1;
        grid-row: 1;
        height: 64px;
        min-height: 64px;
    }
    .protocol-match-step {
        grid-row: 2;
        min-height: 70px;
        padding: 9px;
    }
    .protocol-match-step strong,
    .protocol-match-step span {
        white-space: normal;
    }
}

.dropdown-menu .tournament-link-disabled {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 10px 14px;
    color: #64748b;
    cursor: default;
    white-space: nowrap;
}
.dropdown-menu .tournament-link-disabled small {
    color: #475569;
    font-size: 9px;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.match-scoreboard {
    padding: 28px;
    border: 1px solid rgba(255,255,255,.1);
    border-radius: 18px;
    background: linear-gradient(145deg,#172033,#0f172a);
    box-shadow: 0 14px 35px rgba(0,0,0,.25);
}

.match-meta {
    margin-bottom: 26px;
    color: #94a3b8;
    text-align: center;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: .08em;
}

.scoreboard-row {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 28px;
}

.scoreboard-team {
    text-align: center;
}

.scoreboard-team img {
    width: 72px;
    height: 72px;
    margin-bottom: 12px;
    object-fit: contain;
}

.scoreboard-team h2 {
    margin-bottom: 5px;
    font-size: 20px;
}

.scoreboard-team p {
    color: #94a3b8;
}

.scoreboard-score {
    color: #fff;
    font-size: 46px;
    font-weight: 800;
    white-space: nowrap;
}

.events-card {
    margin-top: 24px;
    padding: 26px;
    border: 1px solid rgba(255,255,255,.1);
    border-radius: 18px;
    background: #111827;
}

.events-card h2 {
    margin-bottom: 22px;
    color: #38bdf8;
    text-align: center;
}

.match-events {
    list-style: none;
}

.period-divider {
    display: flex;
    align-items: center;
    gap: 14px;
    margin: 15px 0 5px;
    color: #94a3b8;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.period-divider::before,
.period-divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background: rgba(255,255,255,.1);
}

.period-empty {
    padding: 13px 0 18px;
    color: #64748b;
    text-align: center;
    font-size: 13px;
}

.match-event {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 72px minmax(0, 1fr);
    align-items: center;
    gap: 20px;
    min-height: 58px;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255,255,255,.08);
}

.match-event:last-child {
    border-bottom: 0;
}

.event-minute {
    grid-column: 2;
    color: #7dd3fc;
    font-size: 17px;
    font-weight: 700;
    text-align: center;
}

.event-side {
    min-width: 0;
}

.event-home {
    grid-column: 1;
    grid-row: 1;
    text-align: right;
}

.event-away {
    grid-column: 3;
    grid-row: 1;
    text-align: left;
}

.event-player {
    font-weight: 700;
}

.event-player::before {
    content: "";
    display: inline-block;
    margin-right: 7px;
    font-size: 15px;
}

.event-home .event-player::before {
    float: right;
    margin-right: 0;
    margin-left: 7px;
}

.penalty-goal .event-player::after {
    content: "П";
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 17px;
    height: 17px;
    margin-left: 6px;
    border-radius: 50%;
    background: #f97316;
    color: #fff;
    font-size: 10px;
    font-weight: 900;
    vertical-align: 1px;
}

.penalty-goal .event-home .event-player::after {
    margin-right: 0;
    margin-left: 6px;
}

.corner-goal .event-player::after {
    content: "У";
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 17px;
    height: 17px;
    margin-left: 6px;
    border-radius: 50%;
    background: #8b5cf6;
    color: #fff;
    font-size: 10px;
    font-weight: 900;
    vertical-align: 1px;
}

.corner-goal .event-home .event-player::after {
    margin-right: 0;
    margin-left: 6px;
}

.free-kick-goal .event-player::after,
.own-goal .event-player::after {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 17px;
    height: 17px;
    margin-left: 6px;
    border-radius: 50%;
    color: #fff;
    font-size: 10px;
    font-weight: 900;
}

.free-kick-goal .event-player::after {
    content: "Ш";
    background: #0ea5e9;
}

.own-goal .event-player::after {
    content: "АГ";
    width: 22px;
    background: #ef4444;
}

.own-goal .event-player::before,
.red-card-event .event-player::before {
    content: none;
}

.red-card-event .event-player::after {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-left: 6px;
    font-size: 16px;
}

.event-assist {
    margin-top: 4px;
    color: #64748b;
    font-size: 12px;
}

.event-home .event-assist {
    text-align: right;
}

.protocol-loading {
    padding: 50px;
    color: #94a3b8;
    text-align: center;
}

/* Reveal protocols only after live data and navigation are assembled. */
body[data-match] .match-page {
    visibility: hidden;
}

body[data-match].protocol-ready .match-page,
body[data-match].protocol-load-error .match-page {
    visibility: visible;
}

.profile-fatal-error {
    display: grid;
    width: min(calc(100% - 32px), var(--site-container-reading));
    min-height: 160px;
    margin: 64px auto;
    padding: var(--site-space-5);
    place-items: center;
    border: 1px solid var(--site-border);
    border-radius: var(--site-radius-lg);
    background: var(--site-surface);
    color: var(--site-muted);
    text-align: center;
}

.participant-avatar-initials {
    display: grid;
    place-items: center;
    border: 1px solid var(--site-border);
    background: var(--site-surface-raised);
    color: var(--site-accent-light);
    font-weight: 800;
}

.scoreboard-result {
    min-width: 120px;
    text-align: center;
}

.scoreboard-shootout {
    margin-top: 5px;
    color: #facc15;
    font-size: 13px;
    font-weight: 700;
    white-space: nowrap;
}

.protocol-note {
    display: flex;
    align-items: center;
    gap: 13px;
    margin: 18px auto 0;
    max-width: 650px;
    padding: 14px 17px;
    border: 1px solid #dce5f0;
    border-left: 4px solid #3c78c5;
    border-radius: 12px;
    background: linear-gradient(135deg, #f8fbff, #f1f5fa);
    color: #596273;
    font-size: 13px;
    line-height: 1.45;
    text-align: left;
}

.protocol-note-icon {
    flex: 0 0 auto;
    width: 24px;
    height: 24px;
    object-fit: contain;
    font-size: 24px;
}

.protocol-note strong {
    display: block;
    margin-bottom: 2px;
    color: #28384d;
    font-size: 14px;
}

.protocol-note p {
    margin: 0;
}

.event-note {
    margin-top: 5px;
}

.event-score {
    min-width: 52px;
    padding: 6px 10px;
    border-radius: 8px;
    background: #1e293b;
    text-align: center;
    font-weight: 800;
}

.goal-badge {
    display: inline-block;
    margin-right: 6px;
    padding: 3px 8px;
    border-radius: 999px;
    background: rgba(34,197,94,.15);
    color: #86efac;
    font-size: 12px;
    font-weight: 700;
}

.goal-badge.penalty {
    background: rgba(249,115,22,.17);
    color: #fdba74;
}

.goal-badge.corner {
    background: rgba(168,85,247,.17);
    color: #d8b4fe;
}

.goal-badge.golden {
    background: rgba(250,204,21,.17);
    color: #fde047;
}

.clean-sheet {
    margin-top: 20px;
    padding: 14px 16px;
    border-left: 3px solid #38bdf8;
    border-radius: 8px;
    background: rgba(56,189,248,.1);
    color: #bae6fd;
}

.clean-sheets-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 72px minmax(0, 1fr);
    gap: 20px;
    align-items: stretch;
    margin-top: 20px;
}

.clean-sheet.clean-sheet-side {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
    min-height: 72px;
    margin-top: 0;
    padding: 13px 17px;
    overflow: hidden;
    border: 1px solid rgba(125, 211, 252, .28);
    border-radius: 12px;
    background: linear-gradient(145deg, rgba(56, 189, 248, .13), rgba(14, 116, 144, .07));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .04), 0 8px 20px rgba(0, 0, 0, .14);
}

.clean-sheet-side.home {
    grid-column: 1;
    align-items: flex-end;
    border-right: 3px solid #38bdf8;
    text-align: right;
}

.clean-sheet-side.away {
    grid-column: 3;
    align-items: flex-start;
    border-left: 3px solid #38bdf8;
    text-align: left;
}

.clean-sheet-side::after {
    content: "";
    display: none;
    position: absolute;
    top: 12px;
    bottom: 12px;
    width: 3px;
    border-radius: 3px;
    background: #38bdf8;
    box-shadow: 0 0 12px rgba(56, 189, 248, .45);
}

.clean-sheets-row.double .clean-sheet-side {
    align-items: center;
    border: 1px solid rgba(125, 211, 252, .28);
    text-align: center;
}

.clean-sheets-row.double .clean-sheet-side::after {
    display: block;
    top: auto;
    right: 12px;
    bottom: 0;
    left: 12px;
    width: auto;
    height: 3px;
}

.clean-sheet-side span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-bottom: 4px;
    color: #7dd3fc;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .04em;
}

.clean-sheet-icon {
    width: 20px;
    height: 20px;
    flex: 0 0 20px;
    object-fit: contain;
}

.clean-sheet-side strong {
    color: #fff;
    font-size: 15px;
    line-height: 1.25;
    overflow-wrap: anywhere;
}

.shootout-result {
    margin-top: 20px;
    padding: 15px;
    border-radius: 10px;
    background: rgba(249,115,22,.12);
    color: #fed7aa;
    text-align: center;
    font-weight: 700;
}

/* ===== Итоги турнира ===== */
.season-overview {
    width: min(92%, 1000px);
    margin: 35px auto 10px;
}

.compact-participants {
    margin-top: 26px;
    padding: 20px;
    border: 1px solid rgba(255,255,255,.1);
    border-radius: 16px;
    background: #111827;
}

.compact-participants h2 {
    margin-bottom: 16px;
    color: #38bdf8;
    text-align: center;
    font-size: 20px;
}

.participant-list {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
}

.participant-item {
    min-width: 0;
    padding: 10px;
    border-radius: 10px;
    background: #172033;
    color: #fff;
    text-decoration: none;
    transition: background .2s, transform .2s;
}

.participant-item:hover {
    background: #22304d;
    transform: translateY(-2px);
}

.participant-item img {
    flex: 0 0 auto;
    width: 32px;
    height: 32px;
    object-fit: contain;
}

.participant-item span,
.participant-item strong,
.participant-item small {
    display: block;
    min-width: 0;
}

.participant-item strong {
    overflow: visible;
    font-size: 14px;
    overflow-wrap: anywhere;
    white-space: normal;
}

.participant-item small {
    margin-top: 3px;
    overflow: visible;
    color: #94a3b8;
    font-size: 12px;
    overflow-wrap: anywhere;
    white-space: normal;
}

.tournament-summary {
    width: min(92%, 1000px);
    margin: 35px auto 65px;
}

.tournament-summary > h2 {
    margin-bottom: 28px;
    color: #38bdf8;
    text-align: center;
    font-size: 28px;
}

.podium {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: end;
    gap: 18px;
    margin: 0 0 30px;
}

.podium-place {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 24px 18px;
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 18px 18px 8px 8px;
    background: linear-gradient(145deg,#172033,#0f172a);
    text-align: center;
}

.podium-place.gold {
    min-height: 235px;
    border-color: rgba(250,204,21,.55);
    box-shadow: 0 12px 30px rgba(250,204,21,.1);
}

.podium-place.silver {
    min-height: 205px;
    border-color: rgba(203,213,225,.45);
}

.podium-place.bronze {
    min-height: 180px;
    border-color: rgba(251,146,60,.45);
}

.podium-medal {
    display: block;
    margin-bottom: 10px;
    font-size: 32px;
}

.podium-place img {
    flex: 0 0 auto;
    width: 54px;
    height: 54px;
    margin-bottom: 10px;
    object-fit: contain;
}

.podium-place h3 {
    margin-bottom: 6px;
    color: #fff;
}

.podium-place p {
    color: #94a3b8;
    font-size: 14px;
}

.bronze-teams {
    display: flex;
    width: 100%;
    align-items: flex-start;
    justify-content: center;
    gap: 15px;
}

.bronze-team {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
    min-width: 0;
}

.bronze-team img {
    width: 42px;
    height: 42px;
}

.bronze-team strong {
    display: block;
    font-size: 13px;
    line-height: 1.25;
}

.summary-tables {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
}

.summary-block {
    padding: 24px;
    border: 1px solid rgba(255,255,255,.1);
    border-radius: 16px;
    background: #111827;
}

.summary-block h3 {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 18px;
    text-align: center;
}

.summary-heading-icon {
    width: 22px;
    height: 22px;
    flex: 0 0 22px;
    object-fit: contain;
}

.summary-block table {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
}

.summary-block th,
.summary-block td {
    padding: 11px 9px;
    border-bottom: 1px solid rgba(255,255,255,.08);
    text-align: left;
}

.summary-block th:last-child,
.summary-block td:last-child {
    text-align: right;
}

.summary-block th {
    color: #94a3b8;
    font-size: 13px;
}

/* Единое центрирование таблиц статистики всех Кубков Фиферов. */
.tournament-summary .summary-block th,
.tournament-summary .summary-block td,
.tournament-summary .summary-block th:last-child,
.tournament-summary .summary-block td:last-child {
    text-align: center;
    vertical-align: middle;
}

.tournament-summary .summary-block th:nth-child(1),
.tournament-summary .summary-block td:nth-child(1),
.tournament-summary .summary-block th:nth-child(2),
.tournament-summary .summary-block td:nth-child(2),
.tournament-summary .summary-block th:nth-child(3),
.tournament-summary .summary-block td:nth-child(3) {
    width: 33.333%;
}

.participant-awards {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    margin-top: 24px;
}

.participant-award {
    padding: 22px;
    border: 1px solid rgba(255,255,255,.1);
    border-radius: 16px;
    background: linear-gradient(145deg,#172033,#0f172a);
    text-align: center;
}

.participant-award span {
    display: block;
    margin-bottom: 10px;
    color: #94a3b8;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: .06em;
}

.participant-award strong {
    display: block;
    margin-bottom: 8px;
    color: #fff;
    font-size: 20px;
}

.participant-award p {
    color: #cbd5e1;
    font-size: 14px;
}

@media (max-width: 620px) {
    .scoreboard-row { gap: 10px; }
    .scoreboard-team img { width: 52px; height: 52px; }
    .scoreboard-team h2 { font-size: 16px; }
    .scoreboard-team p { font-size: 13px; }
    .scoreboard-score { font-size: 34px; }
    .match-event { grid-template-columns: minmax(0,1fr) 52px minmax(0,1fr); gap: 8px; }
    .event-player { font-size: 13px; }
    .event-minute { font-size: 15px; }
    .events-card { padding: 20px 16px; }
    .clean-sheets-row { grid-template-columns: minmax(0,1fr) 52px minmax(0,1fr); gap: 8px; }
    .clean-sheet.clean-sheet-side { min-height: 66px; padding: 10px 9px; font-size: 12px; }
    .clean-sheet-side span { font-size: 10px; }
    .clean-sheet-side strong { font-size: 12px; }
    .summary-tables,
    .participant-awards { grid-template-columns: 1fr; }
    .podium { grid-template-columns: 1fr; align-items: stretch; }
    .podium-place.gold { order: 1; }
    .podium-place.silver { order: 2; }
    .podium-place.bronze { order: 3; }
    .podium-place.gold,
    .podium-place.silver,
    .podium-place.bronze { min-height: 0; }
    .participant-list { grid-template-columns: repeat(2, minmax(0,1fr)); }
}

/* ===== Кубок Фиферов 2018 ===== */
.tournament-2018 { width:min(94%,1180px); margin:0 auto 70px; }
.podium-2018 { width:min(92vw,1000px); margin:35px auto 30px; }
.season-participants { margin-bottom:26px; }
.season-participants > div { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:9px; }
.season-participant { display:flex; flex-direction:column; gap:8px; padding:12px 13px; border:1px solid rgba(255,255,255,.08); border-radius:10px; background:#111827; color:#7dd3fc; text-decoration:none; }
.season-participant:visited { color:#7dd3fc; }
.season-participant > strong { color:#fff; text-align:center; }
.participant-meta { display:grid; grid-template-columns:minmax(0,1.45fr) minmax(0,1fr); gap:8px; color:#94a3b8; font-size:11px; }
.participant-meta > span { display:flex; align-items:center; min-width:0; gap:7px; line-height:1.2; }
.participant-meta img { flex:0 0 auto; padding:0; background:transparent; object-fit:contain; }
.participant-meta img.league-logo { width:30px; height:30px; }
.participant-meta img.country-flag { width:30px; height:30px; padding:0; border-radius:0; background:transparent; object-fit:contain; box-shadow:none; }
.tournament-summary-2018 { width:100%; margin-bottom:0; }
.section-title-2018 { margin:30px 0 6px; color:#38bdf8; text-align:center; font-size:28px; }
.section-note-2018 { margin:0 0 20px; color:#94a3b8; text-align:center; }
.groups-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:18px; margin-bottom:24px; }
.group-card,.round-card,.playoff-2018 { border:1px solid rgba(255,255,255,.09); border-radius:15px; background:#111827; box-shadow:0 10px 25px rgba(0,0,0,.2); }
.group-card { overflow:hidden; }
.group-card h2 { padding:15px; background:#172033; color:#7dd3fc; text-align:center; }
.group-table { width:100%; border-collapse:collapse; }
.group-table th,.group-table td { padding:9px 7px; border-bottom:1px solid rgba(255,255,255,.06); text-align:center; font-size:13px; }
.group-table th:nth-child(2),.group-table td:nth-child(2) { text-align:left; }
.group-table a,.group-table a:visited { color:inherit; text-decoration:none; }
.group-table a:hover { text-decoration:underline; text-underline-offset:3px; }
.group-table tr.qualified { background:rgba(34,197,94,.07); }
.group-table tr.qualified td:first-child { border-left:3px solid #22c55e; }
.round-card { margin:0 0 16px; padding:18px; }
.round-heading { display:flex; align-items:center; gap:12px; margin-bottom:14px; }
.round-heading span { padding:6px 10px; border-radius:8px; background:#38bdf8; color:#082f49; font-weight:800; }
.round-heading h2 { font-size:19px; }
.round-groups { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:14px; }
.round-group { min-width:0; padding:12px; border:1px solid rgba(255,255,255,.07); border-radius:12px; background:rgba(15,23,42,.48); }
.round-group h3 { margin-bottom:10px; color:#7dd3fc; text-align:center; font-size:16px; }
.group-matches { display:grid; grid-template-columns:1fr; gap:9px; }
.group-match { display:grid; grid-template-columns:minmax(0,1fr) 62px minmax(0,1fr); align-items:center; gap:8px; padding:11px; border-radius:10px; background:#172033; }
.group-match > div { display:flex; flex-direction:column; gap:3px; min-width:0; }
.group-match > div:last-child { text-align:right; }
.group-match strong { overflow:visible; font-size:13px; overflow-wrap:anywhere; white-space:normal; }
.group-match small { color:#94a3b8; font-size:11px; }
.group-score { padding:6px 4px; border-radius:7px; background:#0f172a; color:#7dd3fc; text-align:center; text-decoration:none; font-weight:800; }
.group-score:visited { color:#7dd3fc; }
.group-score:hover { background:#334155; }
.abstract-squad .squad-mark { display:grid; place-items:center; width:76px; height:76px; margin:0 auto 10px; border:2px solid #38bdf8; border-radius:50%; background:linear-gradient(145deg,#24324c,#0f172a); color:#7dd3fc; font-size:30px; font-weight:900; }
.playoff-2018 { margin-top:28px; padding:0; border:0; background:transparent; box-shadow:none; }
.playoff-2018 > .section-title-2018 { margin-top:2px; }
.bracket-2018 { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:34px; align-items:start; }
.bracket-2018 h3 { margin-bottom:12px; color:#7dd3fc; text-align:center; }
.bracket-2018 .semis { padding-top:50px; }
.bracket-2018 .final { padding-top:151px; }
.bracket-2018-match { margin-bottom:15px; overflow:hidden; border:1px solid rgba(255,255,255,.1); border-radius:10px; background:#172033; }
.bracket-2018-match > div { display:grid; grid-template-columns:minmax(0,1fr) 52px; align-items:center; min-height:42px; padding-left:11px; border-bottom:1px solid rgba(255,255,255,.07); font-size:13px; }
.bracket-2018-match > div:last-child { border-bottom:0; }
.bracket-2018-match > div.winner { color:#fff; font-weight:800; }
.bracket-2018-match > div > a:last-child { align-self:stretch; display:grid; place-items:center; background:#0f172a; color:#7dd3fc; text-decoration:none; font-size:16px; }
.bracket-2018 .semis .bracket-2018-match { margin-bottom:116px; }
.champion-label { margin-top:12px; padding:10px; border-radius:9px; background:rgba(250,204,21,.12); color:#facc15; text-align:center; font-weight:800; }
@media(max-width:820px){.season-participants>div,.groups-grid,.round-groups,.group-matches{grid-template-columns:1fr}.bracket-2018{overflow-x:auto;grid-template-columns:repeat(3,280px)}}

.bracket-2018-classic { width:100%; margin:34px auto 24px; }
.bracket-2018-classic .club { width:112px; }
.bracket-2018-classic .player { min-width:0; overflow:visible; text-overflow:clip; white-space:nowrap; }
.bracket-2018-classic .player a,
.bracket-2018-classic .player a:visited,
.bracket-2018-classic .bracket-champion a,
.bracket-2018-classic .bracket-champion a:visited { color:inherit; text-decoration:none; }
.bracket-2018-classic .player a:hover,
.bracket-2018-classic .bracket-champion a:hover { color:#38bdf8; text-decoration:underline; text-underline-offset:3px; }
.bracket-2018-classic .score { width:auto; min-width:40px; }
.bracket-2018-classic .score a { display:block; }

@media(max-width:700px){
    .bracket-2018-classic { flex-direction:column; overflow:visible; }
    .bracket-2018-classic .bracket-column { width:100%; flex-basis:auto; padding-top:0; }
    .bracket-2018-classic .bracket-column.semifinals .match { margin-bottom:30px; }
}

/* ===== Компактный профиль с вкладками ===== */
.profile {
    width: min(92%, 860px);
    margin: 30px auto 18px;
}

.profile h1 {
    margin-top: 14px;
    font-size: 34px;
}

.profile .role {
    margin: 9px;
    font-size: 17px;
}

.profile-dashboard {
    margin: 0 auto 55px;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,.1);
    border-radius: 16px;
    background: #111827;
    box-shadow: 0 12px 30px rgba(0,0,0,.2);
}

.profile-tablist {
    display: grid;
    grid-template-columns: repeat(2, minmax(0,1fr));
    border-bottom: 1px solid rgba(255,255,255,.08);
}

.profile-tab {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 46px;
    padding: 12px 8px;
    border: 0;
    border-radius: 9px;
    background: transparent;
    color: #94a3b8;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: color .2s, background .2s;
}

.profile-tab-icon {
    width: 22px;
    height: 22px;
    object-fit: contain;
    flex: 0 0 22px;
}

.profile-tab:hover {
    color: #e2e8f0;
}

.profile-dashboard .profile-tab-panel[data-panel="achievements"] {
    width: 100%;
    margin: 0;
    padding: 18px;
}

.protocol-video-source { display: grid; justify-items: center; align-content: start; width: min(156px, 100%); min-height: 58px; margin: 10px auto 0; }
.protocol-video-link { position: relative; box-sizing: border-box; display: grid; place-items: center; width: 100%; height: 32px; min-height: 32px; margin: 0; padding: 0; border: 1px solid rgba(56, 189, 248, .3); border-radius: 8px; color: #7dd3fc; background: rgba(14, 116, 144, .12); font-size: 12px; font-weight: 800; line-height: 1; text-align: center; text-decoration: none; white-space: nowrap; }
.protocol-video-link > span { display: block; line-height: 1; text-align: center; }
.scoreboard-team .protocol-video-service-icon { display: block; width: 16px; height: 16px; margin: 6px 0 0; border-radius: 4px; object-fit: contain; }
.protocol-video-link:hover, .protocol-video-link:focus-visible { color: #fff; border-color: #38bdf8; background: rgba(14, 116, 144, .28); }
.protocol-video-unavailable { color: #64748b; border-color: rgba(148, 163, 184, .18); background: rgba(15, 23, 42, .34); cursor: default; }

/* Optical balance: the crest makes each participant column look top-heavy. */
.match-scoreboard .scoreboard-team { transform: translateY(14px); }

.profile-dashboard .profile-tab-panel[data-panel="achievements"] > h2 {
    display: none;
}

.profile-tab:focus-visible {
    outline: none;
    box-shadow: inset 0 0 0 2px #38bdf8;
}

.profile-achievements-table {
    display: block;
    width: 100%;
    border: 0;
}

.profile-achievements-table tbody {
    display: grid;
    gap: 8px;
}

.profile-achievements-table tr:first-child {
    display: none;
}

.profile-achievements-table tr:not(:first-child) {
    display: grid;
    grid-template-columns: 170px minmax(0, 1fr);
    align-items: stretch;
    overflow: hidden;
    border: 1px solid rgba(125, 211, 252, .24);
    border-radius: 9px;
    background: #131d2e;
    box-shadow: 0 7px 18px rgba(0, 0, 0, .14);
}

.profile-achievements-table tr:not(:first-child):hover {
    border-color: rgba(56, 189, 248, .55);
    background: #162338;
}

.profile-achievements-table td,
.profile-achievements-table th {
    width: auto;
    padding: 9px 10px;
    border: 0;
}

.profile-achievements-table td:first-child {
    display: flex;
    align-items: center;
    justify-content: center;
    border-right: 1px solid rgba(125, 211, 252, .18);
    background: rgba(14, 116, 144, .09);
}

.profile-achievements-table .profile-tournament-link {
    color: #7dd3fc;
    font-size: 12px;
    font-weight: 800;
    line-height: 1.25;
    text-align: center;
}

.profile-achievements-table .achievement-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(210px, 100%), 1fr));
    align-items: stretch;
    justify-content: center;
    gap: 6px;
    height: auto;
}

.profile-achievements-table[hidden] {
    display: none;
}

.profile-tournaments-panel.is-empty {
    min-height: 270px;
    place-items: center;
}

.profile-achievements-empty {
    display: grid;
    width: 100%;
    min-height: 230px;
    place-items: center;
    margin: 0;
}

.profile-achievement-section {
    overflow: visible;
}

.profile-achievement-section .achievement-list {
    display: grid;
    width: 100%;
    gap: 7px;
}

.profile-achievement-section .achievement-list span {
    display: grid;
    min-height: 38px;
    place-items: center;
    padding: 9px 12px;
    border-bottom: 1px solid #334155;
    color: #f8fafc;
    line-height: 1.3;
    text-align: center;
    white-space: normal;
    overflow-wrap: anywhere;
}

.profile-achievements-table .achievement-list span {
    position: relative;
    display: flex;
    min-height: 30px;
    align-items: center;
    justify-content: center;
    padding: 6px 9px 6px 28px;
    border: 1px solid rgba(250, 204, 21, .2);
    border-radius: 7px;
    background: rgba(250, 204, 21, .08);
    color: #f8fafc;
    line-height: 1.3;
    text-align: center;
    white-space: normal;
    overflow-wrap: anywhere;
}

.profile-achievements-table .achievement-list span::before {
    content: "";
    position: absolute;
    left: 9px;
    color: #facc15;
    font-size: 13px;
}

.profile-tab-panel.statistics-table,
.profile-tab-panel.history {
    width: 100%;
    margin: 0;
    padding: 24px;
}

.profile-tab-panel[hidden] {
    display: none;
}

.profile-tournaments-panel {
    display: grid;
    gap: 10px;
    padding: 18px;
}

.profile-tournaments-panel[hidden] {
    display: none;
}

.profile-season-accordion {
    overflow: hidden;
    border: 1px solid rgba(125, 211, 252, .3);
    border-radius: 11px;
    background: #131d2e;
}

.profile-season-toggle {
    display: grid;
    width: 100%;
    grid-template-columns: minmax(0, 1fr) 18px;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    border: 0;
    background: transparent;
    color: #eaf7ff;
    font-size: 16px;
    font-weight: 800;
    text-align: center;
    cursor: pointer;
    transition: background .2s, color .2s;
}

.profile-season-toggle > span:first-child {
    padding-left: 30px;
}

.profile-season-toggle:hover,
.profile-season-toggle:focus-visible,
.profile-season-toggle[aria-expanded="true"] {
    background: #1b2a40;
    color: #7dd3fc;
    outline: none;
}

.profile-season-toggle:focus-visible {
    box-shadow: inset 0 0 0 2px #38bdf8;
}

.profile-season-chevron {
    width: 10px;
    height: 10px;
    justify-self: center;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg) translate(-2px, -2px);
    transition: transform .2s;
}

.profile-season-toggle[aria-expanded="true"] .profile-season-chevron {
    transform: rotate(225deg) translate(-1px, -1px);
}

.profile-season-content {
    display: grid;
    gap: 16px;
    border-top: 1px solid rgba(125, 211, 252, .2);
    background: #0f172a;
}

.profile-season-content[hidden] {
    display: none;
}

.profile-season-section {
    min-width: 0;
    overflow-x: auto;
}

.profile-season-section h3 {
    margin-bottom: 9px;
    color: #9fc9e6;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: .04em;
}

.profile-season-section table {
    width: 100%;
    margin: 0;
    border-collapse: collapse;
    table-layout: fixed;
}

.profile-season-section table:not(.profile-matches) {
    min-width: 620px;
}

.profile-season-section .profile-matches {
    min-width: 540px;
}

.profile-season-section th,
.profile-season-section td {
    padding: 10px 8px;
    border-bottom: 1px solid #334155;
    text-align: center;
}

.profile-season-empty {
    padding: 12px;
    color: #94a3b8;
    text-align: center;
}

@media (max-width: 620px) {
    .profile-tournaments-panel {
        padding: 12px;
    }

    .profile-season-toggle {
        padding: 13px 12px;
        font-size: 14px;
    }

    .profile-season-content {
        padding: 12px;
    }

    .profile-dashboard .profile-tab-panel[data-panel="achievements"] {
        padding: 12px;
    }

    .profile-achievements-table tr:not(:first-child) {
        grid-template-columns: 1fr;
    }

    .profile-achievements-table td:first-child {
        border-right: 0;
        border-bottom: 1px solid rgba(125, 211, 252, .18);
    }

    .profile-achievements-table .achievement-list {
        grid-template-columns: 1fr;
    }
}

.profile-tab-panel h2 {
    margin-bottom: 18px;
    font-size: 20px;
    text-align: center;
}

.profile-tab-panel .profile-season-title {
    margin: 0 0 14px;
    padding: 0;
    color: #e2e8f0;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.3;
    text-align: center;
}

.profile-tab-panel table + .profile-season-title {
    margin-top: 24px;
}

.profile-total-title {
    margin: 26px 0 14px;
    padding-top: 20px;
    border-top: 1px solid rgba(56, 189, 248, .28);
    color: #38bdf8;
    font-size: 18px;
    font-weight: 800;
    text-align: center;
}

.profile-total-table {
    border: 1px solid rgba(56, 189, 248, .42);
    background: rgba(14, 116, 144, .08);
}

.profile-representations {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    width: fit-content;
    max-width: min(100%, 680px);
    min-height: 34px;
    gap: 7px 12px;
    margin: 8px auto 0;
    padding: 7px 12px;
    border: 1px solid rgba(56, 189, 248, .24);
    border-radius: 10px;
    background: rgba(15, 23, 42, .56);
    color: #94a3b8;
    font-size: 14px;
    line-height: 1.2;
}

.profile-representations-label {
    font-weight: 700;
}

.profile-representations-list {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 7px 10px;
}

.profile-representation-item {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    white-space: nowrap;
}

.profile-representations a {
    position: relative;
    z-index: 2;
    pointer-events: auto;
    color: #f8fafc;
    font-weight: 800;
    text-decoration: none;
}

.profile-representations a:hover {
    color: #38bdf8;
    text-decoration: underline;
}

.profile-representations small {
    padding: 2px 7px;
    border: 1px solid rgba(56, 189, 248, .3);
    border-radius: 999px;
    color: #7dd3fc;
    font-size: 11px;
    font-weight: 800;
}

.profile-representations small a {
    color: inherit;
    font-size: inherit;
    font-weight: inherit;
}

.profile-tab-panel.history table {
    margin-top: 0;
}

.profile-matches {
    table-layout: fixed;
}

.profile-matches th,
.profile-matches td {
    padding: 10px 8px;
    text-align: left;
    vertical-align: middle;
}

.profile-matches th:first-child,
.profile-matches td:first-child {
    width: 125px;
}

.profile-matches.profile-matches-compact th:first-child,
.profile-matches.profile-matches-compact td:first-child {
    width: auto;
}

.profile-stage-cell {
    line-height: 1.35;
    text-align: center;
    white-space: pre-line;
}

.profile-match-link {
    display: inline-grid;
    grid-template-columns: minmax(0, 1fr) 112px minmax(0, 1fr);
    align-items: center;
    gap: 6px;
    width: 100%;
    max-width: 100%;
    color: #e2e8f0;
    text-decoration: none;
}

.profile-match-columns-header {
    display: grid;
    width: 100%;
    grid-template-columns: minmax(0, 1fr) 112px minmax(0, 1fr);
    align-items: center;
    gap: 6px;
    color: #9fc9e6;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .04em;
    text-align: center;
    text-transform: uppercase;
}

.profile-match-center {
    display: grid;
    grid-template-columns: 1fr;
    justify-items: center;
    gap: 4px;
    min-width: 0;
    white-space: normal;
}

.profile-match-stage {
    display: block;
    max-width: 108px;
    overflow: visible;
    color: #94a3b8;
    font-size: 9px;
    font-weight: 800;
    line-height: 1.15;
    overflow-wrap: anywhere;
    text-align: center;
    text-transform: uppercase;
}

.profile-match-link > span {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    min-width: 0;
    text-align: center;
    white-space: nowrap;
}

.profile-match-link > span:last-child {
    justify-content: center;
}

.profile-match-link > span > .participant-profile-link {
    position: relative;
    z-index: 2;
    pointer-events: auto;
    min-width: 0;
    overflow: visible;
    overflow-wrap: anywhere;
    text-align: center;
    white-space: normal;
}

.profile-match-link img {
    flex: 0 0 auto;
    width: 28px;
    height: 28px;
    object-fit: contain;
}

.profile-match-link .profile-country-flag {
    width: 28px;
    height: 28px;
    border-radius: 0;
    object-fit: contain;
    box-shadow: none;
}

.profile-award-rank.champion { color: #facc15; font-weight: 800; }
.profile-award-rank.second { color: #d1d5db; font-weight: 800; }
.profile-award-rank.third { color: #d99a5e; font-weight: 800; }

.profile-match-link .profile-league-logo {
    width: 28px;
    height: 28px;
    padding: 0;
    background: transparent;
    object-fit: contain;
}

.profile-fut-logo {
    display: grid;
    place-items: center;
    flex: 0 0 27px;
    width: 27px;
    height: 27px;
    border-radius: 0;
    background: transparent;
}

.profile-fut-logo img { width: 27px; height: 27px; margin: 0; object-fit: contain; }
.profile-fut-logo.playoff {
    background: url("squad-logos/squad-182.png?v=3") center center / 27px 27px no-repeat;
}

.squad-visual {
    display: grid;
    place-items: center;
    width: 82px;
    height: 82px;
    margin: 0 auto 12px;
}

.squad-visual img { width: 72px; height: 72px; object-fit: contain; }
.squad-visual.club-team { padding:0; background:transparent; }
.squad-visual.club-team img { display:block; width:82px; height:82px; margin:0; object-fit:contain; }
.squad-visual.league { padding:0; background:transparent; }
.squad-visual.league img { width:76px; height:76px; margin:0; object-fit:contain; }
.squad-visual.country img { width:82px; height:82px; margin:0; border-radius:0; object-fit:contain; box-shadow:none; }
.league-logo,
.profile-league-logo,
.squad-visual.league img {
    filter: none;
}
.squad-visual.fut { background:transparent; }
.squad-visual.fut img { display:block; width:78px; height:78px; margin:0; object-fit:contain; }
.squad-visual.fut.playoff {
    background: url("squad-logos/squad-182.png?v=2") center center / 78px 78px no-repeat;
}

.profile-match-link b {
    padding: 4px 5px;
    border-radius: 6px;
    background: #1e293b;
    color: #7dd3fc;
    text-align: center;
}

.profile-score-link,
.bracket-score-link {
    display: inline-block;
    padding: 4px 5px;
    border-radius: 6px;
    background: #1e293b;
    color: #7dd3fc;
    text-align: center;
    text-decoration: none;
    font-weight: 800;
}

.profile-score-link,
.profile-match-link > b {
    display: inline-flex;
    min-width: 42px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    line-height: 1.05;
}

.profile-main-score {
    display: block;
    color: #7dd3fc;
}

.profile-penalty-score {
    display: block;
    color: #facc15;
    font-size: 10px;
    font-weight: 800;
    line-height: 1;
    white-space: nowrap;
}

.profile-score-link:hover,
.bracket-score-link:hover {
    background: #334155;
    color: #fff;
}

.tournament-page .bracket .score > .bracket-score-link,
.tournament-page .bracket .score.bracket-score-proxy,
.double-elimination-2023 .schedule-score-link.playoff-score-link {
    border: 1px solid rgba(56, 189, 248, .42);
    box-shadow: inset 0 0 0 1px rgba(15, 23, 42, .35);
    transition: background-color .16s ease, border-color .16s ease, color .16s ease, box-shadow .16s ease;
}

.tournament-page .bracket .score > .bracket-score-link:hover,
.tournament-page .bracket a.match-link:hover .score.bracket-score-proxy,
.double-elimination-2023 .schedule-score-link.playoff-score-link:hover {
    border-color: #38bdf8;
    background: #334155;
    box-shadow: 0 0 0 2px rgba(56, 189, 248, .14);
    color: #fff;
}

.bracket-score-link {
    min-width: 30px;
    padding: 2px 5px;
    font-size: 20px;
}

.participant-profile-link {
    color: inherit;
    text-decoration: none;
}

.participant-profile-link:hover {
    color: #38bdf8;
    text-decoration: underline;
}

/* Единое оформление ссылок на профили участников */
.player-card h2 a,
.player-card h2 a:visited,
.participant-profile-link,
.participant-profile-link:visited,
.bracket-2017 .player a,
.bracket-2017 .player a:visited,
.bracket-2017 .bracket-champion a,
.bracket-2017 .bracket-champion a:visited,
.podium-place a,
.podium-place a:visited,
.participant-award a,
.participant-award a:visited,
.ranked-stats td a,
.ranked-stats td a:visited {
    color: inherit;
    text-decoration: none;
}

.player-card h2 a:hover,
.participant-profile-link:hover,
.bracket-2017 .player a:hover,
.bracket-2017 .bracket-champion a:hover,
.podium-place a:hover,
.participant-award a:hover,
.ranked-stats td a:hover {
    color: #38bdf8;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.participant-item,
.participant-item:visited {
    color: inherit;
    text-decoration: none;
}

/* Никнеймы на общей странице участников — как ссылки в таблице «Команды». */
.players .player-card h2 a,
.players .player-card h2 a:visited,
.players .player-card h2 a:hover {
    color: #7dd3fc;
}

.players .player-card h2 a:hover {
    text-decoration: underline;
    text-underline-offset: 3px;
}

.match-card-static {
    cursor: default;
}

/* ===== Сетка Кубка Фиферов 2017 ===== */
.bracket-2017 {
    width: min(94%, 1120px);
    gap: 18px;
    margin-top: 30px;
    margin-bottom: 15px;
}

.bracket-2017 .match {
    height: 112px;
    padding: 6px;
    margin-bottom: 22px;
}

.bracket-2017 .team {
    min-height: 40px;
    padding: 5px 7px;
}

.bracket-2017 .separator {
    margin: 4px 0;
}

.bracket-2017 .club {
    flex: 0 0 82px;
    width: 82px;
    font-size: 10px;
    line-height: 1.08;
    overflow-wrap: normal;
    word-break: normal;
}

.bracket-2017 .player {
    min-width: 0;
    overflow: visible;
    font-size: 10.5px;
    line-height: 1.08;
    text-align: center;
    text-overflow: clip;
    white-space: normal;
}

.bracket-2017 .player a,
.bracket-2017 .score a,
.bracket-2017 .bracket-champion a,
.podium-place a,
.participant-award a {
    color: inherit;
    text-decoration: none;
}

.bracket-2017 .player a {
    display: block;
    max-width: 100%;
    white-space: normal;
}

.bracket-2017 .score {
    width: auto;
    min-width: 30px;
}

.bracket-2017 .score a {
    display: block;
    padding: 3px 5px;
    border-radius: 6px;
    background: #1e293b;
    text-align: center;
}

.bracket-2017 .quarterfinals {
    padding-top: 67px;
}

.bracket-2017 .quarterfinals .match {
    margin-bottom: 156px;
}

.bracket-2017 .quarterfinals .match:last-child {
    margin-bottom: 0;
}

.bracket-2017 .semifinals-2017 {
    padding-top: 201px;
}

.bracket-2017 .semifinals-2017 .match {
    margin-bottom: 424px;
}

.bracket-2017 .semifinals-2017 .match:last-child {
    margin-bottom: 0;
}

.bracket-2017 .final-2017 {
    padding-top: 469px;
}

.bracket-2017 + .tournament-summary {
    margin-top: 10px;
}

/* ===== Общая статистика ===== */
.stats-hub { }
.stats-primary-tabs,.stats-subtabs { display:flex; justify-content:center; gap:9px; flex-wrap:wrap; }
.stats-primary-tabs { margin-bottom:18px; padding:7px; }
.stats-tab,.stats-subtabs button { border:0; border-radius:10px; background:transparent; color:#94a3b8; font:inherit; font-weight:700; cursor:pointer; transition:.2s; }
.stats-tab { display:inline-flex; align-items:center; justify-content:center; gap:9px; flex:1; font-size:16px; text-align:center; }
.stats-tab-icon { width:26px; height:26px; flex:0 0 26px; object-fit:contain; }
.stats-tab:hover,.stats-tab.active,.stats-subtabs button:hover,.stats-subtabs button.active { background:#24324c; color:#7dd3fc; }
.stats-primary-panel,.stats-table-panel { display:none; }
.stats-primary-panel.active,.stats-table-panel.active { display:block; }
.stats-subtabs { margin:0 auto 16px; }
.stats-subtabs button { padding:9px 14px; background:#172033; font-size:13px; }
.stats-result { width:100%; margin:0; }
.stats-result h2 { text-align:center; }
.stats-result table { width:100%; }
.ranked-stats tbody tr.rank-gold td:first-child { color:#facc15; font-weight:800; }
@media(max-width:650px){.stats-tab{min-width:calc(50% - 8px);flex-direction:column;gap:3px}.stats-tab-icon{width:23px;height:23px;flex-basis:23px}.stats-result{overflow-x:auto}.stats-result table{min-width:520px}}

@media (max-width: 1100px) {
    .bracket-2017 {
        overflow-x: auto;
        align-items: flex-start;
    }
    .bracket-2017 .bracket-column {
        flex: 0 0 310px;
    }
}

@media (max-width: 700px) {
    .bracket-2017 { flex-direction: column; overflow: visible; }
    .bracket-2017 .bracket-column { width: 100%; flex-basis: auto; padding-top: 0; }
    .bracket .match { height: auto; min-height: 132px; }
    .bracket-2017 .quarterfinals .match,
    .bracket-2017 .semifinals-2017 .match { margin-bottom: 30px; }
}

/* Locked podium geometry shared by every tournament year. */
.tournament-page .podium {
}

.tournament-page .podium-place.gold {
    box-sizing: border-box;
}

.tournament-page .podium-place.silver {
    box-sizing: border-box;
}

.tournament-page .podium-place.bronze {
    box-sizing: border-box;
}

/* A denser but still Swiss-style Double Elimination layout. */
#tournament-2023 .double-division-2023 {
}

#tournament-2023 .de-path-2023 {
}

#tournament-2023 .de-path-2023 + .de-path-2023 {
}

#tournament-2023 .de-stage-2023 h5 {
}

#tournament-2023 .de-stage-matches-2023 {
}

#tournament-2023 .de-stage-matches-2023 .swiss-match-2020-compact {
}

#tournament-2023 .de-stage-matches-2023 .swiss-team-2020-compact > img {
}

#tournament-2023 .de-stage-matches-2023 .swiss-team-2020-compact > strong {
}

#tournament-2023 .de-stage-matches-2023 .swiss-team-2020-compact > strong.nickname-long,
#tournament-2023 .de-stage-matches-2023 .swiss-team-2020-compact > strong.nickname-extra-long {
}

#tournament-2023 .de-stage-matches-2023 .swiss-team-2020-compact > small {
}

#tournament-2023 .de-stage-matches-2023 .schedule-score-link {
}

/* Bring the paired playoff matches closer while retaining exact alignment. */
#tournament-2023 .fifer-playoff-2023 > .quarterfinals .match + .match,
#tournament-2023 .fifer-playoff-2023 > .semifinals-2017 .match + .match {
}

#tournament-2023 .fifer-playoff-2023 .finals-2022 {
}

#tournament-2023 .fifer-playoff-2023 .placement-block + .placement-block {
}

.tournament-summary .participant-award > strong {
}

.tournament-summary .participant-award > strong br {
    display: block;
    content: "";
}

@media (max-width: 620px) {
    .tournament-page .podium {
    }

    .tournament-page .podium-place.gold,
    .tournament-page .podium-place.silver,
    .tournament-page .podium-place.bronze {
    }
}

/* Final medal-color override for every playoff bracket. */
.bracket .final-2017:not(.finals-2022) .match .team.winner,
.bracket-2019 .round-2019-3 .match .team.winner,
.bracket .final-placement .match .team.winner {
}

.bracket .final-2017:not(.finals-2022) .match .team:not(.winner),
.bracket-2019 .round-2019-3 .match .team:not(.winner),
.bracket .final-placement .match .team:not(.winner) {
}

.bracket .bronze-placement .match .team.winner,
.bracket:not(:has(.bronze-placement)) .semifinals-2017 .match .team:not(.winner),
.bracket-2019:not(:has(.bronze-placement)) .round-2019-2 .match .team:not(.winner) {
}

/* Definitive 2021–2022 participant-award geometry and normal text flow. */
.tournament-summary .participant-awards {
}

.tournament-summary .participant-award {
}

.tournament-summary .participant-award > span,
.tournament-summary .participant-award > strong,
.tournament-summary .participant-award > p {
}

.tournament-summary .participant-award > strong {
}

.tournament-summary .participant-award:has(strong a:nth-of-type(2)) > strong {
}

.tournament-summary .participant-award:has(strong a:nth-of-type(3)) > strong {
}

.tournament-summary .participant-award > p {
}

@media (max-width: 620px) {
    .tournament-summary .participant-award {
        height: auto;
        min-height: 116px;
    }
}

/* Единый шаблон лучших бомбардиров и вратарей во всех турнирах. */
.tournament-page .tournament-summary,
.tournament-page .tournament-summary-2018,
.tournament-page .tournament-summary-2020 {
    width: min(92%, 1000px);
    margin-right: auto;
    margin-left: auto;
}

.tournament-page .summary-tables {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: stretch;
    gap: 24px;
}

.tournament-page .summary-block {
    display: flex;
    max-height: none;
    padding: 24px;
    flex-direction: column;
    overflow: visible;
}

.tournament-page .summary-block h3 {
    margin: 0 0 18px;
    text-align: center;
}

.tournament-page .summary-block table {
    width: 100%;
    margin: 0 auto;
}

.tournament-page .summary-block th,
.tournament-page .summary-block td,
.tournament-page .summary-block th:last-child,
.tournament-page .summary-block td:last-child {
    padding: 11px 9px;
    text-align: center;
    vertical-align: middle;
}

@media (max-width: 700px) {
    .tournament-page .summary-tables {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .tournament-page .summary-block {
        padding: 18px;
    }
}

/* Единая цветовая палитра всех турнирных сеток. */
.tournament-page .bracket .club {
}

.tournament-page .bracket .player,
.tournament-page .bracket .player a,
.tournament-page .bracket .player a:visited {
}

.tournament-page .bracket .player a:hover,
.tournament-page .bracket .player a:focus-visible {
}

.tournament-page .bracket .score,
.tournament-page .bracket .score a,
.tournament-page .bracket .score a:visited {
    color: #38bdf8;
}

.tournament-page .bracket .penalty-score,
.tournament-page .bracket .bracket-penalty-score,
.tournament-page .bracket .score small {
}

.modern-format-note, .modern-season-card {
    margin-bottom: 14px;
    padding: 12px;
    border: 1px solid #e1e6ed;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 5px 18px rgba(23, 43, 77, .05);
}
.modern-format-note { display:flex; justify-content:space-between; gap:12px; font-size:13px; }
.modern-season-card h2 { margin:0 0 10px; font-size:18px; }
.modern-participant-grid { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:6px; }
.modern-participant-grid article { display:grid; grid-template-columns:34px minmax(0,1fr) auto; align-items:center; gap:7px; padding:6px; border-radius:8px; background:#f7f9fb; }
.modern-participant-grid img { width:30px; height:30px; object-fit:contain; }
.modern-participant-grid small { display:block; overflow:visible; color:#69788a; overflow-wrap:anywhere; white-space:normal; }
.modern-round-grid { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:8px; }
.modern-round-card, .modern-playoff-grid > article { padding:8px; border:1px solid #e5e9ee; border-radius:9px; }
.modern-round-card h3, .modern-playoff-grid h3 { margin:0 0 6px; font-size:14px; }
.modern-match-row { display:grid; grid-template-columns:minmax(0,1fr) 42px minmax(0,1fr); align-items:center; gap:4px; padding:5px 3px; border-top:1px solid #edf0f3; font-size:11px; text-decoration:none; }
.modern-match-row span { overflow:visible; overflow-wrap:anywhere; white-space:normal; }
.modern-match-row span:last-child { text-align:right; }
.modern-match-row b { text-align:center; }
.modern-playoff-grid { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:8px; }
.modern-stat-grid { display:grid; grid-template-columns:1fr 1fr; gap:12px; }
.modern-stat-grid h3 { margin:0 0 6px; font-size:14px; }
.modern-stat-grid table { width:100%; border-collapse:collapse; font-size:11px; }
.modern-stat-grid th,.modern-stat-grid td { padding:5px 6px; border:1px solid #e4e8ed; text-align:left; }
.modern-raw-protocol { margin:0; padding:12px; border-radius:8px; background:#f7f9fb; line-height:1.55; }
@media (max-width:900px) { .modern-participant-grid,.modern-round-grid { grid-template-columns:repeat(2,minmax(0,1fr)); } .modern-playoff-grid { grid-template-columns:repeat(2,minmax(0,1fr)); } }
@media (max-width:560px) { .modern-format-note { flex-direction:column; } .modern-participant-grid,.modern-round-grid,.modern-playoff-grid,.modern-stat-grid { grid-template-columns:1fr; } }

/* Dark archive theme: seasons 2020–2026. */
.modern-format-note,
.modern-season-card,
.modern-stage {
    border-color: rgba(255, 255, 255, .09);
    background: #111827;
    color: #f8fafc;
    box-shadow: 0 10px 25px rgba(0, 0, 0, .2);
}

.modern-format-note span,
.modern-participant-grid small {
    color: #94a3b8;
}

.modern-participant-grid article,
.modern-round-card,
.modern-playoff-grid > article,
.modern-raw-protocol {
    border-color: rgba(255, 255, 255, .08);
    background: #172033;
}

.modern-match-row {
    border-color: rgba(255, 255, 255, .08);
    color: #e2e8f0;
}

.modern-match-row:hover,
.modern-stage-nav a:hover {
    background: #24324c;
    color: #7dd3fc;
}

.modern-stat-grid th,
.modern-stat-grid td {
    border-color: rgba(255, 255, 255, .09);
}

.modern-stat-grid th {
    background: #172033;
    color: #7dd3fc;
}

.modern-stage-nav {
    border-color: rgba(255, 255, 255, .09);
}

.modern-stage-nav a {
}

/* ===== Кубок Фиферов 2019: те же компоненты, что в сезонах 2016–2018 ===== */
.tournament-2019 { width:min(96%,1280px); }
.groups-2019 { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:18px; margin-bottom:28px; }
.group-participants-2019,.group-card-2019 { overflow:hidden; border:1px solid rgba(255,255,255,.09); border-radius:15px; background:#111827; box-shadow:0 10px 25px rgba(0,0,0,.2); }
.participants-2019-list { display:grid; grid-template-columns:1fr; gap:8px; }
.group-participants-2019 h3,.group-card-2019 h3 { padding:13px; background:#172033; color:#7dd3fc; text-align:center; }
.participant-2019-row { display:grid; grid-template-columns:155px minmax(0,1fr); align-items:center; gap:14px; min-height:62px; padding:9px 14px; border:1px solid rgba(255,255,255,.08); border-radius:10px; background:#111827; }
.participant-2019-row>strong { min-width:0; text-align:center; font-size:13px; }
.participant-2019-row>strong a { color:#fff; text-decoration:none; }
.participant-2019-row>strong a:hover { text-decoration:underline; text-underline-offset:3px; }
.participant-2019-row>div { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:10px; min-width:0; }
.participant-2019-club { display:grid; grid-template-columns:46px minmax(0,1fr); align-items:center; min-width:0; gap:9px; color:#94a3b8; font-size:12px; }
.participant-2019-club img { display:block; width:46px; height:46px; object-fit:contain; }
.participant-2019-club small { min-width:0; overflow-wrap:anywhere; line-height:1.22; }
.group-card-2019 table { width:100%; border-collapse:collapse; }
.group-card-2019 th,.group-card-2019 td { padding:8px 6px; border-bottom:1px solid rgba(255,255,255,.06); text-align:center; font-size:12px; }
.group-card-2019 th:nth-child(2),.group-card-2019 td:nth-child(2) { text-align:left; }
.group-card-2019 td a { color:inherit; text-decoration:none; }
.group-card-2019 td a:hover { text-decoration:underline; text-underline-offset:3px; }
.group-card-2019 tr.qualified { background:rgba(34,197,94,.07); }
.group-card-2019 tr.qualified td:first-child { border-left:3px solid #22c55e; }
.group-matches-2019 { display:grid; gap:8px; padding:14px; }
.group-matches-2019>div { display:grid; grid-template-columns:58px minmax(0,1fr); align-items:center; gap:10px; min-height:46px; padding:9px 11px; border-radius:9px; background:#172033; font-size:13px; }
.group-matches-2019>div:nth-child(odd) { background:#172033; }
.group-matches-2019 span { color:#7dd3fc; text-align:center; font-weight:800; }
.group-matches-2019 .schedule-match-2019 { color:#fff; }
.bracket-2019 { width:100%; gap:16px; margin:28px auto 16px; }
.bracket-2019 .bracket-column { flex:1 1 0; min-width:0; }
.bracket-2019 .round-2019-1 { padding-top:0; }
.bracket-2019 .round-2019-2 { padding-top:67px; }
.bracket-2019 .round-2019-2 .match { margin-bottom:156px; }
.bracket-2019 .round-2019-3 { padding-top:201px; }
.bracket-2019 .team>img { flex:0 0 42px; width:42px; height:28px; border-radius:0; object-fit:contain; }
.bracket .team { gap:8px; }
.bracket .team>img { margin-right:0; }
.bracket .club { line-height:1.15; }
.bracket .player { }
.bracket-2019 .club { flex:0 0 82px; width:82px; font-size:12px; }
.bracket-2019 .player { font-size:11px; }
.season-link-disabled { color:#64748b; }
.participant-letter-avatar { display:grid; place-items:center; border:2px solid #38bdf8; border-radius:50%; background:linear-gradient(145deg,#24324c,#0f172a); color:#7dd3fc; font-size:36px; font-weight:900; }
@media(max-width:900px){.groups-2019{grid-template-columns:1fr}.participant-2019-row{grid-template-columns:125px minmax(0,1fr)}.participant-2019-row>div{grid-template-columns:repeat(2,minmax(0,1fr))}.bracket-2019{overflow-x:auto}.bracket-2019 .bracket-column{flex:0 0 280px}}
@media(max-width:700px){.participant-2019-row{grid-template-columns:1fr}.participant-2019-row>div{grid-template-columns:repeat(2,minmax(0,1fr))}.participant-2019-club{grid-template-columns:40px minmax(0,1fr)}.participant-2019-club img{width:40px;height:40px}.bracket-2019{flex-direction:column;overflow:visible}.bracket-2019 .bracket-column{width:100%;flex-basis:auto;padding-top:0}.bracket-2019 .match{margin-bottom:24px}}

.achievement-list,
.profile-award-list {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 7px;
}

.achievement-list span,
.profile-award-list span {
    display: inline-block;
    padding: 5px 9px;
    border-radius: 7px;
    background: rgba(56,189,248,.1);
    color: #bae6fd;
    white-space: nowrap;
}

.profile-awards-table th:first-child,
.profile-awards-table td:first-child,
.profile-achievements-table th:first-child,
.profile-achievements-table td:first-child {
    width: 215px;
}

.profile-awards-table td,
.profile-achievements-table td {
    vertical-align: middle;
}

.profile-awards-table th,
.profile-awards-table td,
.profile-achievements-table th,
.profile-achievements-table td {
    text-align: center;
}

@media (max-width: 620px) {
    .profile { margin-top: 22px; }
    .profile h1 { font-size: 28px; }
    .profile-tab { padding: 10px 4px; font-size: 12px; }
    .profile-tab { flex-direction: column; gap: 3px; }
    .profile-tab-icon { width: 20px; height: 20px; flex-basis: 20px; }
    .profile-tab-panel.statistics-table,
    .profile-tab-panel.history { padding: 18px 12px; overflow-x: auto; }
    .profile-matches th:first-child,
    .profile-matches td:first-child { width: 86px; }
    .profile-match-link,
    .profile-match-columns-header { grid-template-columns: minmax(0,1fr) 100px minmax(0,1fr); gap: 4px; font-size: 12px; }
    .profile-match-link img { width: 20px; height: 20px; }
    .profile-awards-table th:first-child,
    .profile-awards-table td:first-child,
    .profile-achievements-table th:first-child,
    .profile-achievements-table td:first-child { width: 155px; }
}

@media (max-width: 900px) {
    .bracket {
        flex-direction: column;
    }

    .bracket-column {
        width: 100%;
    }

    .bracket-column.semifinals,
    .bracket-column.final-column {
        padding-top: 0;
    }

    .bracket-column.semifinals .match {
        margin-bottom: 30px;
    }
}
/* Unified compact layout for the 2020–2026 tournament archive. */
.modern-tournament {
    width: min(1500px, calc(100% - 24px));
    margin: 18px auto 40px;
}

.modern-stage-nav {
    position: sticky;
    top: 58px;
    z-index: 20;
    display: flex;
    gap: 6px;
    overflow-x: auto;
    padding: 8px;
    margin-bottom: 14px;
    border: 1px solid #dfe5ec;
    border-radius: 10px;
    background: rgba(255, 255, 255, .96);
    box-shadow: 0 4px 14px rgba(18, 38, 63, .06);
}

.modern-stage-nav a {
    flex: 0 0 auto;
    padding: 7px 10px;
    border-radius: 7px;
    background: #f1f4f8;
    color: #24364b;
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
}

.modern-stage {
    scroll-margin-top: 120px;
    margin-bottom: 16px;
    padding: 12px;
    border: 1px solid #e1e6ed;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 5px 18px rgba(23, 43, 77, .05);
}

.modern-stage h2 {
    margin: 0 0 10px;
    font-size: 18px;
}

.modern-table-wrap {
    overflow: auto;
    max-height: 720px;
    border: 1px solid #e8ebef;
    border-radius: 8px;
}

.modern-data {
    width: max-content;
    min-width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    font-size: 11px;
    line-height: 1.25;
}

.modern-data th,
.modern-data td {
    max-width: 260px;
    padding: 6px 8px;
    border-right: 1px solid #edf0f3;
    border-bottom: 1px solid #edf0f3;
    vertical-align: top;
    white-space: normal;
    overflow-wrap: anywhere;
}

.modern-data th {
    position: sticky;
    top: 0;
    z-index: 2;
    background: #27384d;
    color: #fff;
    text-align: left;
}

.modern-data tbody tr:nth-child(even) td { background: #f8fafc; }
.modern-data tbody tr:hover td { background: #fff8dc; }

@media (max-width: 700px) {
    .modern-tournament { width: calc(100% - 12px); margin-top: 10px; }
    .modern-stage { padding: 8px; border-radius: 9px; }
    .modern-stage-nav { top: 50px; }
    .modern-data { font-size: 10px; }
    .modern-data th, .modern-data td { max-width: 190px; padding: 5px 6px; }
}

/* Final archive color override. */
.modern-tournament .modern-stage,
.modern-tournament .modern-season-card,
.modern-tournament .modern-format-note {
    border-color: rgba(255, 255, 255, .09);
    background: #111827;
    color: #f8fafc;
}

.modern-tournament .modern-stage-nav {
    border-color: rgba(255, 255, 255, .09);
    background: rgba(15, 23, 42, .96);
}

.modern-tournament .modern-stage-nav a {
    background: #172033;
    color: #e2e8f0;
}

.modern-tournament .modern-data td {
    border-color: rgba(255, 255, 255, .08);
    background: #172033;
    color: #e2e8f0;
}

.modern-tournament .modern-data tbody tr:nth-child(even) td {
    background: #131d30;
}

.modern-tournament .modern-data tbody tr:hover td {
    background: #24324c;
}

/* ===== Кубок Фиферов 2020: шаблон сезонов 2018–2019 ===== */
.tournament-2020 {
    width: min(94%, 1280px);
    margin: 0 auto 70px;
}

.participants-2020 > div {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.participant-2020 {
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr);
    grid-template-rows: auto auto;
    align-items: center;
    column-gap: 10px;
    min-height: 70px;
    padding: 9px 11px;
}

.participant-2020-logo {
    grid-row: 1 / 3;
    display: grid;
    place-items: center;
}

.participant-2020-logo img {
    width: 44px;
    height: 44px;
    object-fit: contain;
}

.participant-2020 > strong {
    overflow: visible;
    overflow-wrap: anywhere;
    text-align: left;
    white-space: normal;
}

.participant-2020-club {
    overflow: visible;
    color: #94a3b8;
    font-size: 11px;
    overflow-wrap: anywhere;
    white-space: normal;
}

.round-card-2020 {
    padding: 15px;
}

.swiss-matches-2020 {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px;
}

.swiss-match-2020 {
    min-height: 72px;
    padding: 8px 10px;
}

.swiss-team-2020 {
    display: grid;
    grid-template-columns: 38px minmax(0, 1fr);
    align-items: center;
    gap: 8px;
}

.swiss-team-2020.away {
    grid-template-columns: minmax(0, 1fr) 38px;
}

.swiss-team-2020.away img {
    grid-column: 2;
    grid-row: 1;
}

.swiss-team-2020.away span {
    grid-column: 1;
    grid-row: 1;
}

.swiss-team-2020 img {
    width: 36px;
    height: 36px;
    object-fit: contain;
}

.swiss-team-2020 span {
    display: flex;
    min-width: 0;
    flex-direction: column;
}

.swiss-team-2020 strong a {
    color: #f8fafc;
    text-decoration: none;
}

.bracket-2020 {
    width: min(100%, 1120px);
    gap: 18px;
    margin-bottom: 15px;
}

.bracket-2020 .bracket-column {
    flex: 1 1 0;
    min-width: 0;
}

.bracket-2020 .quarterfinals {
    padding-top: 67px;
}

.bracket-2020 .quarterfinals .match {
    margin-bottom: 156px;
}

.bracket-2020 .semifinals-2017 {
    padding-top: 201px;
}

.bracket-2020 .semifinals-2017 .match {
    margin-bottom: 424px;
}

.bracket-2020 .final-2017 {
    padding-top: 469px;
}

.bracket-2020 .team > img {
    flex: 0 0 28px;
    width: 28px;
    height: 28px;
    object-fit: contain;
}

.bracket-2020 .club {
    flex: 0 0 82px;
    width: 82px;
    font-size: 10px;
    line-height: 1.15;
    overflow-wrap: normal;
    word-break: normal;
    hyphens: none;
    white-space: normal;
}

.bracket-2020 .player {
    min-width: 0;
    overflow: visible;
    font-size: 10.5px;
    line-height: 1.08;
    text-align: center;
    text-overflow: clip;
    white-space: normal;
}

.bracket-2020 .score a small {
    margin-left: 2px;
    color: #facc15;
    font-size: 9px;
    text-transform: uppercase;
}

.bracket-2020 .score a .penalty-score {
    display: inline-block;
    margin-left: 2px;
    color: #facc15;
    font-size: 12px;
    font-weight: 800;
    line-height: 1;
}

.bracket-2017 .score a .penalty-score {
    display: inline-block;
    margin-left: 2px;
    color: #facc15;
    font-size: 12px;
    font-weight: 800;
    line-height: 1;
}

.tournament-summary-2020 {
    width: 100%;
}

.tournament-summary-2020 .summary-block {
    max-height: 620px;
    overflow: auto;
}

.swiss-record-groups {
    grid-template-columns: repeat(var(--record-columns), minmax(0, 1fr));
}

.group-score {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.penalty-result {
    display: block;
    margin-top: 2px;
    color: #facc15;
    font-size: 9px;
    line-height: 1;
    white-space: nowrap;
}

.bracket-2020 .match > .penalty-result {
    position: absolute;
    right: 8px;
    bottom: -13px;
}

/* 2020 follows the compact 2019 component geometry. */
.participants-2020-compact .participant-2019-row > div {
    grid-template-columns: 1fr;
}

.participants-2020-compact .participant-2019-club {
    grid-template-columns: 46px minmax(0, 1fr);
}

.round-card-2020-compact {
    padding: 14px;
}

.round-card-2020-compact .round-heading {
    margin-bottom: 10px;
}

.round-heading-2020 {
    position: relative;
}
.round-heading-2020 > span {
    position: absolute;
    z-index: 1;
    left: 0;
    flex: 0 0 auto;
}
.round-heading-2020 > h2 {
    display: grid;
    width: 100%;
    grid-template-columns: repeat(var(--record-columns), minmax(0, 1fr));
    align-items: center;
    gap: 14px;
    color: #7dd3fc;
    text-align: center;
    font-size: 15px;
}
.round-heading-2020 > h2 b { min-width: 0; }

.round-card-2020-compact .round-group {
    padding: 0;
    overflow: hidden;
}

.round-card-2020-compact .round-group h3 {
    margin: 0;
    padding: 9px;
    background: #172033;
    font-size: 14px;
}

.swiss-matches-2019 {
}

.swiss-matches-2019 > div {
    grid-template-columns: minmax(0, 1fr);
    min-height: 42px;
    padding: 7px 9px;
}

.swiss-stage-2020 {
    width: min(100%, 1060px);
    margin-inline: auto;
}

.swiss-matches-2019 {
    gap: 6px;
    padding: 6px;
}

.swiss-team-2020-compact,
.schedule-team-2019,
.schedule-team-2018 {
    display: flex;
    min-width: 0;
    height: 100%;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    color: #fff;
    text-align: center;
    text-decoration: none;
}

.swiss-team-2020-compact {
    grid-template-columns: 26px minmax(0, 1fr);
    grid-template-rows: auto auto;
    column-gap: 6px;
    row-gap: 1px;
    align-content: center;
}

.swiss-team-2020-compact > img {
    grid-column: 1;
    grid-row: 1 / 3;
    align-self: center;
    width: 26px;
    height: 26px;
}

.swiss-team-2020-compact > strong,
.swiss-team-2020-compact > small {
    grid-column: 2;
    min-width: 0;
}

.swiss-team-2020-compact > strong {
}

.swiss-team-2020-compact > img,
.schedule-team-2019 > img,
.schedule-team-2018 > img {
    width: 28px;
    height: 28px;
    object-fit: contain;
}

.swiss-team-2020-compact strong,
.schedule-team-2019 strong,
.schedule-team-2018 strong,
.swiss-team-2020-compact small,
.schedule-team-2019 small,
.schedule-team-2018 small {
    max-width: 100%;
    line-height: 1.08;
    overflow-wrap: anywhere;
    white-space: normal;
}

.swiss-team-2020-compact small,
.schedule-team-2019 small,
.schedule-team-2018 small {
    margin-top: 2px;
    color: #94a3b8;
    font-size: 8.5px;
}

.swiss-team-2020-compact > strong {
    overflow-wrap: normal;
    white-space: nowrap;
}

.swiss-team-2020-compact > strong.nickname-long {
    font-size: 10px;
}

.swiss-team-2020-compact > strong.nickname-extra-long {
    font-size: 8px;
}

#tournament-2024 .swiss-team-2020-compact > strong.nickname-ultra-long {
    font-size: 7.5px;
    letter-spacing: -0.08px;
}

#tournament-2025 .swiss-team-2020-compact > strong.nickname-ultra-long {
    font-size: 9.5px;
    letter-spacing: -0.08px;
}

.group-match-with-logos {
    min-height: 82px;
    padding: 7px;
}

.group-matches-2019 > div {
    min-height: 52px;
    padding: 7px 9px;
}

.schedule-match-2019,
.swiss-match-2020-compact {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 52px minmax(0, 1fr);
    align-items: stretch;
    gap: 7px;
}

.swiss-matches-2019 > .swiss-match-2020-compact {
    padding: 6px 7px;
    grid-template-columns: minmax(0, 1fr) 64px minmax(0, 1fr);
    align-items: center;
}

.record-count-1 .swiss-matches-2019 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.record-count-4 .swiss-matches-2019 > .swiss-match-2020-compact {
    grid-template-columns: minmax(0, 1fr) 50px minmax(0, 1fr);
    gap: 4px;
    padding-inline: 5px;
}

.record-count-4 .swiss-team-2020-compact {
    grid-template-columns: 20px minmax(0, 1fr);
    column-gap: 4px;
}

.record-count-4 .swiss-team-2020-compact > img {
    width: 20px;
    height: 20px;
}

.record-count-4 .swiss-team-2020-compact > strong {
    font-size: 9px;
}

.record-count-4 .swiss-team-2020-compact > strong.nickname-long {
    font-size: 8px;
}

.record-count-4 .swiss-team-2020-compact > strong.nickname-extra-long {
    font-size: 8px;
}

#tournament-2024 .record-count-4 .swiss-team-2020-compact > strong.nickname-ultra-long {
    font-size: 7px;
    letter-spacing: -0.08px;
}

#tournament-2025 .record-count-4 .swiss-team-2020-compact > strong.nickname-ultra-long {
    font-size: 7px;
    letter-spacing: -0.08px;
}

.record-count-4 .swiss-team-2020-compact > small {
    font-size: 7px;
}

.record-count-4 .schedule-score-link {
    font-size: 10px;
}

.schedule-score-link {
    align-self: center;
    padding: 6px 3px;
    border-radius: 7px;
    background: #0f172a;
    color: #7dd3fc;
    text-align: center;
    text-decoration: none;
    font-size: 12px;
    font-weight: 800;
    white-space: nowrap;
}


.swiss-match-2020-compact > .schedule-score-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    line-height: 1.05;
}

.swiss-match-2020-compact > .schedule-score-link small {
    margin-top: 3px;
    color: #facc15;
    font-size: 9px;
}

.penalty-score,
.profile-score-link small {
    color: #facc15;
}

/* Единая вертикальная карточка команды для групп и швейцарки. */
.swiss-team-2020-compact {
    display: flex;
    min-width: 0;
    height: 100%;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    color: #fff;
    text-align: center;
}

.swiss-team-2020-compact > img,
.record-count-4 .swiss-team-2020-compact > img {
    width: 26px;
    height: 26px;
}

.swiss-team-2020-compact > strong,
.swiss-team-2020-compact > small {
    max-width: 100%;
    text-align: center;
}

.swiss-matches-2019 > .swiss-match-2020-compact {
    min-height: 78px;
}

.schedule-score-link:hover {
    background: #334155;
    color: #fff;
}

.swiss-matches-2019 .penalty-result {
    color: #facc15;
    font-size: 8px;
}

.bracket-2019 .bracket-penalty-score {
    display: block;
    margin-top: 1px;
    color: #facc15;
    font-size: 8px;
    line-height: 1;
}

.participants-2020-grid {
    width: 100%;
    margin: 26px 0;
    padding: 20px;
}
.participants-2020-grid .participant-list { gap: 8px; }
.participants-2020-grid .participant-item { min-height: 50px; padding: 8px; }
.participants-2020-grid .participant-item small {
    overflow: visible;
    margin-top: 2px;
    font-size: 10px;
    overflow-wrap: anywhere;
    white-space: normal;
}
.participant-awards-2020 {
    margin-top: 18px;
}
.participant-awards-2020 .participant-award {
    min-height: 88px;
    padding: 12px;
}

/* Единый цвет и наведение для никнеймов участников на всех страницах. */
a[href*="/players/"],
a[href*="/players/"]:visited {
    color: #fff;
    text-decoration: none;
}

a[href*="/players/"]:hover {
    color: #38bdf8;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.schedule-team-2018:hover,
.schedule-team-2019:hover,
.swiss-team-2020-compact:hover {
    text-decoration: none;
}

@media (max-width: 900px) {
    .participants-2020-grid .participant-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .round-card-2020-compact { overflow-x: auto; }
    .round-card-2020-compact .round-heading-2020,
    .round-card-2020-compact .swiss-record-groups { min-width: calc(var(--record-columns) * 300px); }
    .record-count-1 .swiss-matches-2019 { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
    .participants-2020-grid .participant-list { grid-template-columns: 1fr; }
}

@media (max-width: 1000px) {
    .participants-2020 > div { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .bracket-2020 { overflow-x: auto; }
    .bracket-2020 .bracket-column { flex: 0 0 290px; }
}

@media (max-width: 760px) {
    .participants-2020 > div,
    .swiss-matches-2020 { grid-template-columns: 1fr; }
    .bracket-2020 { flex-direction: column; overflow: visible; }
    .bracket-2020 .bracket-column { width: 100%; flex-basis: auto; padding-top: 0; }
    .bracket-2020 .match { margin-bottom: 22px; }
}

/* Единое правило читаемости для всех сеток плей-офф. */
.bracket .player {
    min-width: 0;
    overflow: visible;
    text-align: center;
    text-overflow: clip;
    white-space: normal;
    overflow-wrap: normal;
    word-break: normal;
    hyphens: none;
}

.bracket .player a {
    display: block;
    max-width: 100%;
    white-space: normal;
    overflow-wrap: normal;
    word-break: normal;
}

.bracket .club {
    min-width: 0;
    overflow: visible;
    text-align: center;
    text-overflow: clip;
    white-space: normal;
    overflow-wrap: normal;
    word-break: normal;
    hyphens: none;
}

/* Единый компактный вертикальный ритм всех страниц Кубка Фиферов. */
.tournament-page .season-navigation {
    margin: 24px auto 0;
}

.tournament-page > .season-overview,
.tournament-page > .bracket,
.tournament-page > .tournament-summary {
    margin-top: 24px;
    margin-bottom: 0;
}

.tournament-page > .tournament-summary {
    margin-bottom: 48px;
}

/* Пьедестал и участники начинаются на одной высоте во всех сезонах. */
.tournament-page .season-overview > .podium {
    margin-bottom: 0;
}

.tournament-page .season-overview > .compact-participants {
    margin-top: 24px;
}

.tournament-page .tournament-2018,
.tournament-page .modern-tournament {
    margin-top: 0;
    margin-bottom: 48px;
}

.tournament-page .tournament-2018 > *,
.tournament-page .modern-tournament > * {
    margin-top: 0;
    margin-bottom: 0;
}

.tournament-page .tournament-2018 > :first-child,
.tournament-page .modern-tournament > :first-child,
.tournament-page .tournament-2018 > * + *,
.tournament-page .modern-tournament > * + * {
    margin-top: 24px;
}

/* Внутренние отступы секций не должны менять расстояние между блоками. */
.tournament-page .tournament-2018 > .season-overview,
.tournament-page .tournament-2018 > .compact-participants,
.tournament-page .tournament-2018 > .group-stage,
.tournament-page .tournament-2018 > .group-stage-2019,
.tournament-page .tournament-2018 > .swiss-stage-2020,
.tournament-page .tournament-2018 > .playoff-2018,
.tournament-page .tournament-2018 > .tournament-summary {
    display: flow-root;
}

/* Единый интервал между последним рядом плей-офф и статистикой турнира. */
.tournament-page > .bracket + .tournament-summary,
.tournament-page .tournament-2018 > .bracket + .tournament-summary,
.tournament-page .tournament-2018 > .playoff-2018 + .tournament-summary {
    margin-top: 24px;
}

.tournament-page .tournament-2018 > .playoff-2018 > .bracket {
    margin-bottom: 0;
}

.tournament-page > .playoff-title-standalone {
    margin: 24px 0 0;
}

.tournament-page > .playoff-title-standalone + .bracket {
    margin-top: 24px;
}

.tournament-2016-page > .bracket + .tournament-summary,
.tournament-page #tournament-2018 > .playoff-2018 + .tournament-summary {
    margin-top: 10px;
}

/* Контрастные, но спокойные границы карточек на тёмном фоне. */
.tournament-page .bracket .match,
.tournament-page .group-card,
.tournament-page .group-card-2019,
.tournament-page .round-card,
.tournament-page .summary-block,
.tournament-page .participant-award,
.tournament-page .participant-item,
.tournament-page .season-participant,
.tournament-page .participant-2019-row,
.tournament-page .swiss-record-group {
    border-color: rgba(125, 211, 252, .24);
    box-shadow: 0 0 0 1px rgba(15, 23, 42, .45), 0 8px 22px rgba(0, 0, 0, .18);
}

@media (max-width: 700px) {
    .tournament-page .season-navigation,
    .tournament-page > .season-overview,
    .tournament-page > .bracket,
    .tournament-page > .tournament-summary,
    .tournament-page .tournament-2018 > :first-child,
    .tournament-page .modern-tournament > :first-child,
    .tournament-page .tournament-2018 > * + *,
    .tournament-page .modern-tournament > * + * {
        margin-top: 18px;
    }

    .tournament-page > .bracket + .tournament-summary,
    .tournament-page .tournament-2018 > .bracket + .tournament-summary,
    .tournament-page .tournament-2018 > .playoff-2018 + .tournament-summary {
        margin-top: 18px;
    }

    .tournament-page > .playoff-title-standalone,
    .tournament-page > .playoff-title-standalone + .bracket {
        margin-top: 18px;
    }

    .tournament-2016-page > .bracket + .tournament-summary,
    .tournament-page #tournament-2018 > .playoff-2018 + .tournament-summary {
        margin-top: 8px;
    }

}

/* Unified protocol event icons */
.match-event .event-player::before {
    content: "";
    display: inline-block;
    width: 21px;
    height: 21px;
    margin-right: 7px;
    background: url("images/match-icons/goal.png?v=1") center / contain no-repeat;
    vertical-align: -5px;
}

.match-event.excluded-scorer .event-player {
    color: #ef4444;
    font-weight: 800;
}

.match-event .event-home .event-player::before {
    float: right;
    margin-right: 0;
    margin-left: 7px;
}

.match-event.penalty-goal .event-player::before {
    background-image: url("images/match-icons/penalty.png?v=1");
}

.match-event.corner-goal .event-player::before {
    background-image: url("images/match-icons/corner.png?v=1");
}

.match-event.free-kick-goal .event-player::before {
    background-image: url("images/match-icons/free-kick.png?v=1");
}

.match-event.own-goal .event-player::before {
    content: "";
    background-image: url("images/match-icons/own-goal.png?v=1");
}

.match-event.red-card-event .event-player::before {
    content: "";
    background-image: url("images/match-icons/red-card.png?v=1");
}

.match-event.penalty-goal .event-player::after,
.match-event.corner-goal .event-player::after,
.match-event.free-kick-goal .event-player::after,
.match-event.own-goal .event-player::after,
.match-event.red-card-event .event-player::after {
    content: none;
}
/* Кубок Фиферов 2022: компактный групповой этап */
.groups-2022-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.group-stage-card {
    min-width: 0;
    padding: 14px;
    border: 1px solid rgba(86, 203, 255, .34);
    border-radius: 12px;
    background: rgba(16, 35, 52, .72);
}

.group-stage-card > h2,
.group-tour > h3 {
    margin: 0 0 10px;
    text-align: center;
}

.group-standings {
    width: 100%;
    margin-bottom: 12px;
    border-collapse: collapse;
    font-size: .88rem;
}

.group-standings th,
.group-standings td {
    padding: 6px 7px;
    border: 1px solid rgba(86, 203, 255, .2);
    text-align: center;
}

.group-standings th:nth-child(2),
.group-standings td:nth-child(2) {
    text-align: left;
}

.group-standings tr.qualified {
    background: rgba(42, 176, 255, .09);
}

.group-tour + .group-tour {
    margin-top: 12px;
}

.third-place-title {
    margin-top: 18px;
}

#tournament-2022 .bracket-2022 .quarterfinals {
    padding-top:0;
}

#tournament-2022 .bracket-2022 .quarterfinals .match {
    margin-bottom:22px;
}

#tournament-2022 .bracket-2022 .semifinals-2017 {
    padding-top:67px;
}

#tournament-2022 .bracket-2022 .semifinals-2017 .match {
    margin-bottom:156px;
}

#tournament-2022 .bracket-2022 .finals-2022 {
    display:flex;
    flex-direction:column;
}

#tournament-2022 .placement-block {
    width:100%;
}

#tournament-2022 .placement-block > h2 {
    margin:0 0 12px;
}

#tournament-2022 .placement-block > .match {
    margin-bottom:0;
}

#tournament-2022 .final-placement .bracket-champion {
    margin-top:8px;
}

@media (max-width: 900px) {
    .groups-2022-grid {
        grid-template-columns: 1fr;
    }
}
.profile-alternate-nickname {
    margin: -5px 0 10px;
    color: #a9b9c8;
    text-align: center;
    font-size: .9rem;
}

.profile-alternate-nickname strong {
    color: #fff;
}

/* Единая геометрия сеток, которые начинаются с четвертьфинала. */
.quarter-start-bracket {
    width: min(100%, 1180px);
    gap: 20px;
    margin: 28px auto 16px;
}

.quarter-start-bracket > .bracket-column {
    flex: 1 1 0;
    min-width: 0;
}

.quarter-start-bracket .match {
    box-sizing: border-box;
    height: 112px;
    padding: 6px;
}

.quarter-start-bracket .team {
    box-sizing: border-box;
    min-height: 40px;
    padding: 5px 7px;
}

.quarter-start-bracket .separator {
    margin: 4px 0;
}

.quarter-start-bracket .team > img {
    flex: 0 0 28px;
    width: 28px;
    height: 28px;
    object-fit: contain;
}

.quarter-start-bracket .club {
    flex: 0 0 100px;
    width: 100px;
    min-width: 0;
    font-size: 11.5px;
    line-height: 1.1;
    overflow-wrap: normal;
    word-break: normal;
    hyphens: none;
    white-space: normal;
}

.quarter-start-bracket .player {
    min-width: 0;
    overflow: hidden;
    font-size: 12px;
    line-height: 1.1;
    text-align: center;
    text-overflow: clip;
    overflow-wrap: anywhere;
    white-space: normal;
}

.quarter-start-bracket .score {
    width: auto;
    min-width: 30px;
    font-size: 17px;
}

.quarter-start-bracket .quarterfinals {
    padding-top: 0;
}

.quarter-start-bracket .quarterfinals .match {
    margin-bottom: 22px;
}

.quarter-start-bracket .semifinals-2017 {
    padding-top: 67px;
}

.quarter-start-bracket .semifinals-2017 .match {
    margin-bottom: 156px;
}

.quarter-start-bracket .final-2017:not(.finals-2022) {
    padding-top: 201px;
}

#tournament-2022 .bracket-2022 .finals-2022 {
    padding-top: 124.4px;
    justify-content: flex-start;
    gap: 28px;
}

@media (max-width: 900px) {
    .quarter-start-bracket {
        overflow-x: auto;
    }

    .quarter-start-bracket > .bracket-column {
        flex: 0 0 290px;
    }
}

@media (max-width: 700px) {
    .quarter-start-bracket {
        flex-direction: column;
        overflow: visible;
    }

    .quarter-start-bracket > .bracket-column {
        width: 100%;
        flex-basis: auto;
        padding-top: 0;
    }

    .quarter-start-bracket .match {
        margin-bottom: 22px;
    }
}

/* Итоговая единая палитра текста во всех сетках плей-офф. */
.tournament-page .bracket .club {
    color: #fff;
}

.tournament-page .bracket .player,
.tournament-page .bracket .player a,
.tournament-page .bracket .player a:visited {
    color: #fff;
}

.tournament-page .bracket .player a:hover,
.tournament-page .bracket .player a:focus-visible {
    color: #38bdf8;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.tournament-page .bracket .score,
.tournament-page .bracket .score a,
.tournament-page .bracket .score a:visited,
.tournament-page .bracket .bracket-score-link,
.tournament-page .bracket .bracket-score-link:visited {
    color: #38bdf8;
}

.tournament-page .bracket .penalty-score,
.tournament-page .bracket .bracket-penalty-score,
.tournament-page .bracket .score small {
    color: #facc15;
}
/* Technical defeats */
.technical-loss-badge,
.technical-score,
.profile-technical-score {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-left: 5px;
    color: #ffcf4a;
    font-size: 0.72em;
    font-style: normal;
    font-weight: 800;
    line-height: 1;
    white-space: nowrap;
}

.technical-score,
.profile-technical-score {
    display: block;
    width: 100%;
    margin: 3px 0 0;
    text-align: center;
}

.scoreboard-technical {
    margin-top: 5px;
    color: #ffcf4a;
    font-size: 0.76rem;
    font-weight: 800;
    text-align: center;
}

.scoreboard-technical span,
.scoreboard-technical strong {
    display: block;
}

.scoreboard-technical strong {
    margin-top: 3px;
    color: #fff;
    font-size: 0.9rem;
}

/* Compact 2023 Double Elimination cards and the aligned final playoff. */
#tournament-2023 .double-bracket-2023 {
    grid-template-columns: minmax(0, 1fr);
    gap: 18px;
    padding: 0;
    border: 0;
    background: transparent;
}

#tournament-2023 .double-division-2023 {
    overflow: visible;
    border-color: rgba(56, 189, 248, .32);
    border-radius: 16px;
    background: #111827;
}

#tournament-2023 .division-title-2023 {
    margin: 0 0 12px;
    text-align: center;
    color: #f8fafc;
    font-size: 18px;
}

#tournament-2023 .de-path-2023 {
    display: grid;
    align-items: start;
    border: 1px solid rgba(148, 163, 184, .22);
    border-radius: 12px;
    background: rgba(15, 23, 42, .72);
}

#tournament-2023 .de-path-2023 + .de-path-2023 {
}

#tournament-2023 .de-path-2023 > h4 {
    align-self: stretch;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    padding: 8px;
    color: #38bdf8;
    text-align: center;
    font-size: 12px;
    line-height: 1.25;
    text-transform: uppercase;
}

#tournament-2023 .winner-path-2023 > h4 {
    color: #2dd4bf;
}

#tournament-2023 .de-stage-2023 {
    min-width: 0;
}

#tournament-2023 .de-stage-2023 h5 {
    margin: 0 0 7px;
    color: #f8fafc;
    text-align: center;
    font-size: 12px;
    border: 1px solid rgba(148, 163, 184, .22);
    border-radius: 8px;
    background: #172033;
}

#tournament-2023 .de-stage-matches-2023 {
    display: grid;
}

#tournament-2023 .de-match-2023 {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 48px minmax(0, 1fr);
    align-items: stretch;
    min-height: 58px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, .13);
    border-radius: 9px;
    background: #172033;
}

#tournament-2023 .de-team-2023 {
    display: grid;
    grid-template-columns: 24px minmax(0, 1fr);
    gap: 6px;
    align-items: center;
    min-width: 0;
    padding: 6px;
}

#tournament-2023 .de-team-2023.winner {
    background: rgba(45, 212, 191, .08);
}

#tournament-2023 .de-team-2023 img {
    width: 24px;
    height: 24px;
    object-fit: contain;
}

#tournament-2023 .de-team-2023 span,
#tournament-2023 .de-team-2023 strong,
#tournament-2023 .de-team-2023 small {
    display: block;
    min-width: 0;
    text-align: center;
}

#tournament-2023 .de-team-2023 strong {
    font-size: 11px;
    line-height: 1.1;
    overflow-wrap: anywhere;
}

#tournament-2023 .de-team-2023 small {
    margin-top: 3px;
    color: #94a3b8;
    font-size: 9px;
    line-height: 1.1;
}

#tournament-2023 .de-score-2023 {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 16px;
    font-weight: 800;
    text-decoration: none;
    border-right: 1px solid rgba(255, 255, 255, .1);
    border-left: 1px solid rgba(255, 255, 255, .1);
}

#tournament-2023 .de-score-2023 small {
    color: #facc15;
    font-size: 11px;
}

#tournament-2023 .fifer-playoff-2023 {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: start;
    gap: 20px;
}

#tournament-2023 .fifer-playoff-2023 > .bracket-column {
    display: flex;
    flex-direction: column;
    width: auto;
    min-width: 0;
    padding-top: 0;
}

#tournament-2023 .fifer-playoff-2023 > .bracket-column > h2 {
}

#tournament-2023 .fifer-playoff-2023 .match {
    margin: 0;
}

#tournament-2023 .fifer-playoff-2023 .finals-2022 {
    justify-content: flex-start;
}

#tournament-2023 .fifer-playoff-2023 .placement-block,
#tournament-2023 .fifer-playoff-2023 .placement-block > .match {
    width: 100%;
    margin: 0;
}

#tournament-2023 .fifer-playoff-2023 .placement-block > h2 {
    margin: 0 0 12px;
}

@media (max-width: 900px) {
    #tournament-2023 .de-path-2023 {
    }

    #tournament-2023 .de-path-2023 > h4 {
        min-height: 36px;
        border-right: 0;
        border-bottom: 1px solid rgba(56, 189, 248, .22);
    }
}

@media (max-width: 700px) {
    #tournament-2023 .fifer-playoff-2023 {
        grid-template-columns: 1fr;
    }
}

/* Double Elimination 2023 uses the same match-card geometry as Swiss rounds. */
#tournament-2023 .de-path-2023 {
}

#tournament-2023 .de-path-2023 > h4 {
}

#tournament-2023 .de-stage-2023 + .de-stage-2023 {
}

#tournament-2023 .de-stage-matches-2023 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

#tournament-2023 .de-stage-matches-2023 .swiss-match-2020-compact {
    min-width: 0;
    margin: 0;
}

@media (max-width: 900px) {
    #tournament-2023 .de-stage-matches-2023 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 560px) {
    #tournament-2023 .de-stage-matches-2023 {
        grid-template-columns: minmax(0, 1fr);
    }
}

/* 2023 Double Elimination progresses from left to right. */
#tournament-2023 .de-path-2023 {
    grid-template-columns: 110px minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1fr);
    overflow-x: auto;
}

#tournament-2023 .de-path-2023 > h4 {
    min-height: 0;
    border-right: 1px solid rgba(56, 189, 248, .22);
    border-bottom: 0;
}

#tournament-2023 .de-stage-2023 + .de-stage-2023 {
    margin-top: 0;
}

#tournament-2023 .de-stage-matches-2023,
#tournament-2023 .de-stage-2023:first-of-type .de-stage-matches-2023 {
    grid-template-columns: minmax(0, 1fr);
}

#tournament-2023 .de-stage-2023:first-of-type .de-stage-matches-2023 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

/* Equal vertical rhythm for the two 2023 playoff matches in every column. */
#tournament-2023 .fifer-playoff-2023 > .bracket-column {
    gap: 0;
}

#tournament-2023 .fifer-playoff-2023 > .bracket-column > h2 {
    margin: 0 0 12px;
}

#tournament-2023 .fifer-playoff-2023 > .quarterfinals .match + .match,
#tournament-2023 .fifer-playoff-2023 > .semifinals-2017 .match + .match {
}

#tournament-2023 .fifer-playoff-2023 .finals-2022 {
    gap: 0;
}

#tournament-2023 .fifer-playoff-2023 .placement-block + .placement-block {
}

/* Identical centering for participant-statistic cards in every tournament. */
.tournament-summary .participant-award {
    align-items: center;
    justify-items: center;
}

.tournament-summary .participant-award > span,
.tournament-summary .participant-award > strong,
.tournament-summary .participant-award > p {
}

.tournament-summary .participant-award > strong {
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    margin: 0;
}

.tournament-summary .participant-award > p {
    margin: 8px 0 0;
}

@media (max-width: 900px) {
    #tournament-2023 .de-path-2023 {
        grid-template-columns: 100px minmax(480px, 2fr) minmax(240px, 1fr) minmax(240px, 1fr);
    }
}

@media (max-width: 700px) {
    #tournament-2023 .fifer-playoff-2023 > .quarterfinals .match + .match,
    #tournament-2023 .fifer-playoff-2023 > .semifinals-2017 .match + .match,
    #tournament-2023 .fifer-playoff-2023 .placement-block + .placement-block {
    }
}

/* Final geometry lock: podiums, compact 2023 DE and paired playoff matches. */
/* Definitive 2021–2022 participant-award geometry and normal text flow. */
.tournament-summary .participant-awards {
    align-items: stretch;
}

.tournament-summary .participant-award {
    box-sizing: border-box;
    display: grid;
    grid-template-rows: 18px 1fr 17px;
    row-gap: 6px;
    width: 100%;
    height: 130px;
    min-height: 130px;
    padding: 12px;
    overflow: hidden;
    text-align: center;
}

.tournament-summary .participant-award > span,
.tournament-summary .participant-award > strong,
.tournament-summary .participant-award > p {
    width: 100%;
    margin: 0;
    line-height: 1.2;
    text-align: center;
}

.tournament-summary .participant-award > strong {
    align-self: center;
    display: block;
    min-width: 0;
    font-size: 20px;
    white-space: normal;
    overflow-wrap: anywhere;
}

.tournament-summary .participant-award:has(strong a:nth-of-type(2)) > strong {
    font-size: 17px;
}

.tournament-summary .participant-award:has(strong a:nth-of-type(3)) > strong {
    font-size: 14px;
}

.tournament-summary .participant-award > p {
    align-self: end;
    font-size: 14px;
}

.tournament-page .podium {
    width: 100%;
    max-width: 1000px;
    height: 235px;
    margin-right: auto;
    margin-left: auto;
}

.tournament-page .podium-place.gold {
    height: 235px;
    min-height: 235px;
}

.tournament-page .podium-place.silver {
    height: 215px;
    min-height: 215px;
}

.tournament-page .podium-place.bronze {
    height: 192px;
    min-height: 192px;
}

#tournament-2023 .double-division-2023 {
    padding: 8px;
}

#tournament-2023 .de-path-2023 {
    gap: 7px;
    padding: 8px;
}

#tournament-2023 .de-path-2023 + .de-path-2023 {
    margin-top: 8px;
}

#tournament-2023 .de-stage-2023 h5 {
    margin-bottom: 5px;
    padding: 4px 7px;
}

#tournament-2023 .de-stage-matches-2023 {
    gap: 5px;
}

#tournament-2023 .de-stage-matches-2023 .swiss-match-2020-compact {
    grid-template-columns: minmax(0, 1fr) 44px minmax(0, 1fr);
    gap: 4px;
    min-height: 48px;
}

#tournament-2023 .de-stage-matches-2023 .swiss-team-2020-compact > img {
    width: 22px;
    height: 22px;
}

#tournament-2023 .de-stage-matches-2023 .swiss-team-2020-compact > strong {
    font-size: 10px;
}

#tournament-2023 .de-stage-matches-2023 .swiss-team-2020-compact > strong.nickname-long,
#tournament-2023 .de-stage-matches-2023 .swiss-team-2020-compact > strong.nickname-extra-long {
    font-size: 8px;
}

#tournament-2023 .de-stage-matches-2023 .swiss-team-2020-compact > small {
    font-size: 7.5px;
}

#tournament-2023 .de-stage-matches-2023 .schedule-score-link {
    padding: 4px 2px;
    font-size: 11px;
}

#tournament-2023 .fifer-playoff-2023 .finals-2022 {
    padding-top: 44.4px;
}

.tournament-summary .participant-award > strong {
    line-height: 1.12;
}

@media (max-width: 700px) {
    #tournament-2023 .fifer-playoff-2023 > .quarterfinals .match + .match,
    #tournament-2023 .fifer-playoff-2023 > .semifinals-2017 .match + .match,
    #tournament-2023 .fifer-playoff-2023 .placement-block + .placement-block {
        margin-top: 28px;
    }
}

@media (max-width: 620px) {
    .tournament-page .podium {
        height: auto;
    }

    .tournament-page .podium-place.gold,
    .tournament-page .podium-place.silver,
    .tournament-page .podium-place.bronze {
        height: auto;
        min-height: 0;
    }
}

/* Definitive medal finishes, kept last so legacy winner colors cannot override them. */
.bracket .final-2017:not(.finals-2022) .match .team.winner,
.bracket-2019 .round-2019-3 .match .team.winner,
.bracket .final-placement .match .team.winner {
    background: linear-gradient(90deg, rgba(245, 190, 52, .24), rgba(245, 190, 52, .11));
    box-shadow: inset 0 0 0 1px rgba(250, 204, 21, .58);
}

.bracket .final-2017:not(.finals-2022) .match .team:not(.winner),
.bracket-2019 .round-2019-3 .match .team:not(.winner),
.bracket .final-placement .match .team:not(.winner) {
    background: linear-gradient(90deg, rgba(203, 213, 225, .22), rgba(148, 163, 184, .1));
    box-shadow: inset 0 0 0 1px rgba(203, 213, 225, .48);
}

.bracket .bronze-placement .match .team.winner,
.bracket:not(:has(.bronze-placement)) .semifinals-2017 .match .team:not(.winner),
.bracket-2019:not(:has(.bronze-placement)) .round-2019-2 .match .team:not(.winner) {
    background: linear-gradient(90deg, rgba(194, 112, 58, .25), rgba(161, 98, 47, .11));
    box-shadow: inset 0 0 0 1px rgba(205, 127, 50, .58);
}
/* Кубок Фиферов 2024: структура сетки совпадает с четырёхколоночным шаблоном 2021 года. */
.bracket-2024 .finals-2024 {
    display: flex;
    padding-top: 352px;
    flex-direction: column;
    justify-content: flex-start;
    gap: 28px;
}

.bracket-2024 .finals-2024 > div {
    width: 100%;
}

.bracket-2024 .finals-2024 h2 {
    margin: 0 0 12px;
    text-align: center;
}

.bracket-2024 .finals-2024 .match {
    margin-bottom: 0;
}

.playoff-series-scores {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 4px;
}

.playoff-series-scores a {
    display: block;
    min-width: 24px;
    border-radius: 4px;
    color: #38bdf8;
    line-height: 20px;
    text-align: center;
    text-decoration: none;
}

.playoff-series-scores a + a {
    border-left: 1px solid rgba(148, 163, 184, .35);
}

.playoff-series-scores a:hover {
    background: rgba(56, 189, 248, .16);
}

/* Кубок Фиферов 2025: четыре стыковых матча 1/8 без пустых слотов сетки. */
#tournament-2019 .group-card-2019 tr.play-in td:first-child,
#tournament-2025 .group-card-2019 tr.play-in td:first-child,
#tournament-2026 .group-card-2019 tr.play-in td:first-child {
    border-left: 3px solid #fbbf24;
}

#tournament-2019 .group-card-2019 tr.play-in,
#tournament-2025 .group-card-2019 tr.play-in,
#tournament-2026 .group-card-2019 tr.play-in {
    background: rgba(251, 191, 36, .07);
}


#tournament-2025 .semifinals-2017 .match:has(.playoff-series-scores a:nth-child(3)) .club {
    font-size: 10px;
    line-height: 1.05;
}

#tournament-2025 .semifinals-2017 .match:has(.playoff-series-scores a:nth-child(3)) .player {
    font-size: 11px;
    line-height: 1.05;
}

#tournament-2025 .semifinals-2017 .match:has(.playoff-series-scores a:nth-child(3)) .playoff-series-scores {
    gap: 2px;
}

#tournament-2025 .semifinals-2017 .match:has(.playoff-series-scores a:nth-child(3)) .playoff-series-scores a,
#tournament-2026 .semifinals-2017 .match:has(.playoff-series-scores a:nth-child(3)) .playoff-series-scores a {
    min-width: 20px;
    padding: 0 1px;
    font-size: 12px;
}

#tournament-2025 .bracket-2025,
#tournament-2026 .bracket-2025 {
    min-height: 650px;
    align-items: flex-start;
}

#tournament-2025 .bracket-2025 > .bracket-column,
#tournament-2026 .bracket-2025 > .bracket-column {
    padding-top: 0;
}

#tournament-2025 .bracket-2025 > .round-of-16-2020 .match,
#tournament-2025 .bracket-2025 > .quarterfinals .match,
#tournament-2026 .bracket-2025 > .round-of-16-2020 .match,
#tournament-2026 .bracket-2025 > .quarterfinals .match {
    margin-bottom: 24px;
}

#tournament-2025 .bracket-2025 > .semifinals-2017,
#tournament-2026 .bracket-2025 > .semifinals-2017 {
    padding-top: 92px;
}

#tournament-2025 .bracket-2025 > .semifinals-2017 .match,
#tournament-2026 .bracket-2025 > .semifinals-2017 .match {
    margin-bottom: 176px;
}

#tournament-2025 .bracket-2025 > .finals-2024,
#tournament-2026 .bracket-2025 > .finals-2024 {
    padding-top: 152px;
    gap: 28px;
}

@media (max-width: 900px) {
    #tournament-2025 .bracket-2025,
    #tournament-2026 .bracket-2025 {
        min-height: 0;
    }

    #tournament-2025 .bracket-2025 > .bracket-column,
    #tournament-2025 .bracket-2025 > .semifinals-2017,
    #tournament-2025 .bracket-2025 > .finals-2024,
    #tournament-2026 .bracket-2025 > .bracket-column,
    #tournament-2026 .bracket-2025 > .semifinals-2017,
    #tournament-2026 .bracket-2025 > .finals-2024 {
        padding-top: 0;
    }

    #tournament-2025 .bracket-2025 .match,
    #tournament-2026 .bracket-2025 .match {
        margin-bottom: 24px;
    }
}
.participant-avatar-fallback {
    display: grid;
    place-items: center;
    background: linear-gradient(145deg, #18324a, #102033);
    color: #58c8ff;
    font-size: 24px;
    font-weight: 800;
}

/* 2024–2026: reserve readable space for nicknames beside multi-match scores. */
#tournament-2024 .bracket .team,
#tournament-2025 .bracket .team,
#tournament-2026 .bracket .team {
    gap: 5px;
    padding-right: 5px;
    padding-left: 5px;
}

#tournament-2024 .bracket .team > img,
#tournament-2025 .bracket .team > img,
#tournament-2026 .bracket .team > img {
    flex-basis: 24px;
    width: 24px;
    height: 24px;
}

#tournament-2024 .bracket .club,
#tournament-2025 .bracket .club,
#tournament-2026 .bracket .club {
    flex-basis: 58px;
    width: 58px;
    font-size: 9px;
}

#tournament-2024 .bracket .player,
#tournament-2025 .bracket .player,
#tournament-2026 .bracket .player {
    font-size: 9.5px;
    line-height: 1.05;
}

#tournament-2024 .bracket .score,
#tournament-2025 .bracket .score,
#tournament-2026 .bracket .score {
    flex: 0 0 auto;
    min-width: 0;
}

#tournament-2024 .bracket .bracket-score-link,
#tournament-2025 .bracket .bracket-score-link,
#tournament-2026 .bracket .bracket-score-link {
    min-width: 22px;
    padding: 2px 3px;
    font-size: 16px;
}
.dropdown:last-of-type .dropdown-menu {
    right: 0;
    left: auto;
}

/* Modern Hall of Fame */
.hall-page {
    width: min(1160px, 94%);
    margin: 0 auto 30px;
}

.hall-title {
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    margin: 24px 0 12px;
    min-height: 84px;
    padding: 0 22px;
    border: 0;
    border-radius: 0;
    background: transparent;
    text-align: center;
}

.hall-title h1 {
    margin: 0;
    font-size: 30px;
    line-height: 1.15;
}
.hall-title p { margin-top: 5px; font-size: 14px; }
.hall-page .hall-title p { color: #b6c7d8; }

.hall-year-nav {
    display: grid;
    grid-template-columns: repeat(11, 1fr);
    gap: 5px;
    margin-bottom: 10px;
}

.hall-section-nav {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 180px));
    justify-content: center;
    gap: 6px;
    margin-bottom: 10px;
}

.hall-section-nav a {
    padding: 8px 18px;
    color: #b6c7d8;
    font-size: 13px;
    font-weight: 800;
    text-align: center;
    text-decoration: none;
    background: #131d2e;
    border: 1px solid #263449;
    border-radius: 6px;
}

.hall-section-nav a:hover,
.hall-section-nav a.active {
    color: #f4f8fc;
    background: #1b2a40;
    border-color: #4d7898;
}

.records-header {
    display: grid;
    grid-template-columns: 250px minmax(0, 1fr) 250px;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    padding: 14px 16px;
    background: #131d2e;
    border: 1px solid #263449;
    border-radius: 10px;
}

.records-header h2 {
    grid-column: 2;
    margin: 0;
    color: #f4f8fc;
    font-size: 20px;
    text-align: center;
}

.records-header .record-total {
    grid-column: 3;
}

.record-total {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 8px 12px;
    background: rgba(56, 189, 248, .08);
    border: 1px solid rgba(56, 189, 248, .25);
    border-radius: 7px;
}

.record-total span {
    color: #b6c7d8;
    font-size: 11px;
    line-height: 1.2;
}

.record-total strong {
    color: #f4d875;
    font-size: 22px;
    white-space: nowrap;
}

.records-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

.record-card {
    position: relative;
    display: flex;
    min-height: 148px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 42px 14px 11px;
    text-align: center;
    background: #131d2e;
    border: 1px solid #263449;
    border-radius: 9px;
}

.record-card h3 {
    position: absolute;
    top: 10px;
    right: 14px;
    left: 14px;
    width: auto;
    margin: 0;
    padding-bottom: 6px;
    color: #9fc9e6;
    font-size: 12px;
    letter-spacing: .025em;
    overflow-wrap: normal;
    word-break: normal;
    hyphens: none;
    text-wrap: balance;
    border-bottom: 1px solid #263449;
}

.record-fastest { order: 1; }
.record-latest { order: 2; }
.record-footballer-total { order: 3; }
.record-keeper-total { order: 4; }
.record-footballer-season { order: 5; }
.record-keeper-season { order: 6; }
.record-participant-goals { order: 7; }
.record-participant-conceded { order: 8; }
.record-participant-goals-season { order: 9; }
.record-participant-conceded-season { order: 10; }
.record-participant-matches { order: 11; }
.record-player-match { order: 12; }
.record-biggest-score { order: 13; }
.record-biggest-win { order: 14; }

.record-card > strong,
.record-card strong a {
    color: #f4f8fc;
    font-size: 16px;
    text-decoration: none;
}

.record-number {
    margin-top: 4px;
    color: #f4d875;
    font-size: 14px;
    font-weight: 800;
}

.record-card p {
    margin: 7px 0 0;
    color: #d8e3ed;
    font-size: 12px;
}

.record-match {
    display: grid;
    width: min(100%, 390px);
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    align-items: center;
    gap: 10px;
    margin-top: 7px;
}

.record-match > a:not(.record-score) {
    min-width: 0;
    color: #f4f8fc;
    font-size: 12px;
    font-weight: 800;
    text-decoration: none;
    overflow-wrap: normal;
    word-break: normal;
    hyphens: none;
    text-wrap: balance;
}

.record-match > a:first-child { text-align: right; }
.record-match > a:last-child { text-align: left; }
.record-score {
    min-width: 46px;
    padding: 5px 8px;
    color: #f4d875;
    font-size: 13px;
    font-weight: 900;
    text-align: center;
    text-decoration: none;
    background: #0d1625;
    border: 1px solid #38536c;
    border-radius: 6px;
}

.record-score:hover {
    color: #7dd3fc;
    border-color: #38bdf8;
}

.record-card small {
    margin-top: 3px;
    color: #b6c7d8;
    font-size: 11px;
}

.record-card p a,
.record-card small a,
.record-shared a {
    color: #f4f8fc;
    font-weight: 700;
    text-decoration: none;
}

.record-card a:hover { color: #38bdf8; }
.record-source,
.record-links a {
    margin-top: 9px;
    color: #7dd3fc;
    font-size: 11px;
    font-weight: 800;
    text-decoration: none;
}

.record-links {
    display: flex;
    gap: 16px;
}

.record-shared {
    display: grid;
    width: 100%;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

.record-shared > div {
    display: grid;
    gap: 3px;
    padding: 6px;
}

.record-shared > div + div {
    border-left: 1px solid #263449;
}

.record-shared strong { color: #f4f8fc; font-size: 13px; }
.record-shared span { color: #f4d875; font-size: 12px; font-weight: 800; }
.record-note { color: #b6c7d8; }

.hall-year-nav a {
    padding: 7px 4px;
    color: #b6c7d8;
    font-size: 13px;
    font-weight: 800;
    text-align: center;
    background: #131d2e;
    border: 1px solid #263449;
    border-radius: 6px;
}

.hall-year-nav a:hover { color: #38bdf8; border-color: #38bdf8; }
.hall-years { display: grid; gap: 10px; }
.hall-year-card {
    padding: 14px 16px;
    scroll-margin-top: 18px;
    background: #131d2e;
    border: 1px solid #263449;
    border-radius: 10px;
}

.hall-year-header {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 9px;
    padding-bottom: 9px;
    border-bottom: 1px solid #263449;
    text-align: center;
}

.hall-year-header h2 { margin: 0; color: #f8fafc; font-size: 19px; }
.hall-year-header h2 a { color: #f8fafc; text-decoration: none; }
.hall-year-header h2 a:hover { color: #38bdf8; text-decoration: none; }

.hall-podium-grid, .hall-stat-grid, .hall-record-grid, .hall-detail-grid { display: grid; gap: 7px; }
.hall-podium-grid, .hall-record-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.hall-stat-grid, .hall-detail-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 7px; }
.hall-podium-place, .hall-stat-card, .hall-record-card, .hall-detail-card {
    min-width: 0;
    border: 1px solid #263449;
    border-radius: 7px;
    background: #101827;
}

.hall-podium-place { padding: 8px 10px; }
.hall-gold {
    border-color: rgba(214, 170, 50, .45);
    background: linear-gradient(135deg, rgba(214, 170, 50, .18), rgba(214, 170, 50, .06));
}
.hall-silver {
    border-color: rgba(180, 192, 205, .42);
    background: linear-gradient(135deg, rgba(180, 192, 205, .16), rgba(180, 192, 205, .05));
}
.hall-bronze {
    border-color: rgba(168, 109, 61, .48);
    background: linear-gradient(135deg, rgba(168, 109, 61, .2), rgba(168, 109, 61, .06));
}
.hall-place-title {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    margin-bottom: 6px;
    color: #dbe8f4;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: .05em;
    text-transform: uppercase;
}

.hall-podium-place {
    position: relative;
    display: flex;
    min-height: 94px;
    flex-direction: column;
    align-items: stretch;
    justify-content: center;
}

.hall-gold .hall-place-title { color: #f4d875; }
.hall-silver .hall-place-title { color: #dce6ef; }
.hall-bronze .hall-place-title { color: #e2ad7c; }

.hall-podium-people {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}
.hall-podium-person {
    display: grid;
    grid-template-columns: 28px minmax(0, 1fr) 30px;
    align-items: center;
    gap: 4px;
    flex: 1 1 0;
    min-height: 32px;
    max-width: 220px;
    text-align: center;
}

.hall-podium-person .hall-team-logo {
    width: 28px;
    height: 28px;
    object-fit: contain;
}
.hall-podium-person span { display: grid; min-width: 0; text-align: center; }
.hall-podium-person a, .hall-podium-person strong {
    color: #f4f8fc;
    font-size: 13px;
    line-height: 1.2;
    overflow-wrap: normal;
    word-break: normal;
    hyphens: none;
    text-wrap: balance;
}

.hall-podium-person a, .hall-record-card a { text-decoration: none; }
.hall-podium-person a:hover, .hall-record-card a:hover { color: #38bdf8; text-decoration: none; }
.hall-podium-person small {
    display: block;
    width: 100%;
    min-width: 0;
    margin-top: 3px;
    color: #f4f8fc;
    font-size: 13px;
    line-height: 1.2;
    text-align: center;
    overflow-wrap: normal;
    word-break: normal;
    hyphens: none;
    text-wrap: wrap;
}

.hall-podium-person span > a,
.hall-podium-person small > a {
    display: block;
    width: 100%;
    min-width: 0;
}

.hall-podium-person small > .entity-profile-link {
    text-wrap: wrap;
}
.hall-stat-card {
    display: grid;
    grid-template-rows: auto minmax(0, 1fr);
    min-height: 74px;
    padding: 8px 11px;
}

.hall-stat-entries {
    display: flex;
    min-height: 0;
    flex-direction: column;
    justify-content: center;
    border-top: 1px solid rgba(51, 65, 85, .72);
}
.hall-stat-card h3, .hall-detail-card h3 {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin: 0 0 5px;
    color: #9fb2c8;
    font-size: 12px;
}

.hall-stat-card h3 {
    justify-content: center;
    text-align: center;
}

.hall-stat-card h3 img { width: 16px; height: 16px; object-fit: contain; }
.hall-stat-row {
    display: grid;
    grid-template-columns: 1fr;
    justify-items: center;
    gap: 2px;
    padding: 4px 0;
    color: #f8fafc;
    font-size: 13px;
    text-align: center;
}

.hall-stat-row + .hall-stat-row {
    border-top: 1px solid rgba(51, 65, 85, .45);
}

.hall-stat-row strong { color: #facc15; white-space: nowrap; }
.hall-record-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    align-content: center;
    justify-items: center;
    padding: 8px 10px;
    min-height: 74px;
    text-align: center;
}

.hall-record-card small { color: #9fc9e6; font-size: 10px; font-weight: 900; letter-spacing: .04em; text-transform: uppercase; }
.hall-record-card strong { margin-top: 3px; color: #f4f8fc; font-size: 13px; line-height: 1.25; }
.hall-record-card a { color: inherit; }
.hall-record-card p { margin: 2px 0 0; color: #b6c7d8; font-size: 11px; }
.hall-detail-card { padding: 9px 11px; }
.hall-detail-card > strong { color: #f4f8fc; font-size: 14px; }
.hall-detail-card p { margin: 4px 0; color: #b6c7d8; font-size: 12px; }
.hall-best-goal {
    display: flex;
    min-height: 88px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.hall-best-goal h3 { justify-content: center; color: #9fc9e6; }
.podium-award-icon,
.hall-award-icon,
.profile-award-icon,
.hall-best-goal-icon {
    object-fit: contain;
}

.podium-award-icon {
    display: block;
    flex: 0 0 auto;
    width: 38px;
    height: 38px;
    margin-right: auto;
    margin-left: auto;
}

.hall-award-icon {
    width: 30px;
    height: 30px;
}

.hall-best-goal-icon {
    width: 25px;
    height: 25px;
    margin-right: 7px;
}

.profile-award-list {
    align-items: center;
}

.profile-award-rank {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.profile-award-icon {
    flex: 0 0 auto;
    width: 34px;
    height: 34px;
}

.profile-award-source {
    display: none;
}

.profile.has-profile-awards {
    position: relative;
}

.profile.has-profile-awards > .profile-photo,
.profile.has-profile-awards > .profile-avatar {
    display: block;
    margin-right: auto;
    margin-left: auto;
}

.profile-awards-showcase {
    position: absolute;
    top: 20px;
    left: calc(50% + 98px);
    display: flex;
    width: calc(50% - 98px);
    align-items: flex-start;
    justify-content: flex-start;
    gap: 5px;
    flex-wrap: wrap;
}

.profile-showcase-award {
    display: flex;
    flex: 0 0 44px;
    min-width: 44px;
    max-width: 44px;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    color: #dbeafe;
    text-decoration: none;
}

.profile-showcase-award img {
    width: 44px;
    height: 54px;
    object-fit: contain;
}

.profile-showcase-award span {
    color: #dbeafe;
    font-size: 12px;
    font-weight: 800;
    line-height: 1;
}

.profile-showcase-award:hover span {
    color: #38bdf8;
}

/* Participant profiles share the exact hero geometry of footballer profiles. */
.profile.participant-profile-hero {
    width: min(calc(100% - 40px), 1120px);
    grid-template-columns: 200px minmax(280px, 1fr) 280px;
    height: 328px;
    min-height: 328px;
    margin: 34px auto 10px;
    text-align: center;
}

.footballer-profile-hero,
.team-profile-hero {
    box-sizing: border-box;
    width: 100%;
    height: 328px;
    min-height: 328px;
}

.footballer-profile-page .footballer-profile-hero {
    height: auto;
    min-height: 328px;
}

.participant-profile-photo-frame {
    width: 200px;
    height: 220px;
}

.participant-profile-photo {
    display: block;
    width: 100%;
    height: 100%;
    margin: 0;
    border: 0;
    border-radius: 10px;
    object-fit: cover;
    object-position: center;
}

.participant-profile-identity h1 {
    margin: 0 0 16px;
    font-size: clamp(34px, 5vw, 52px);
    line-height: 1;
    text-align: center;
}

.participant-profile-meta {
    grid-template-columns: repeat(3, minmax(110px, 1fr));
    margin: 0;
}

.participant-profile-meta:empty {
    display: none;
}

.participant-profile-summary-card {
    display: grid;
    justify-items: center;
    align-content: center;
    gap: 8px;
    width: 280px;
    height: 220px;
    min-height: 220px;
    box-sizing: border-box;
    padding: 11px;
    text-align: center;
    background: rgba(2, 6, 23, .3);
    border: 1px solid rgba(255, 255, 255, .06);
    border-radius: 12px;
}

.participant-profile-summary-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    width: 100%;
    gap: 6px;
}

.participant-profile-summary-grid .summary-span-3 { grid-column: span 3; }
.participant-profile-summary-grid .summary-span-2 { grid-column: span 2; }

.participant-profile-summary-grid > div {
    display: grid;
    place-items: center;
    min-height: 36px;
    padding: 4px;
    background: rgba(15, 23, 42, .72);
    border: 1px solid rgba(255, 255, 255, .06);
    border-radius: 8px;
    overflow: hidden;
    text-align: center;
}

.participant-profile-summary-grid span {
    display: block;
    width: 100%;
    color: #7d8ba0;
    font-size: 9px;
    line-height: 1.15;
    text-align: center;
    text-transform: uppercase;
    white-space: normal;
    overflow-wrap: anywhere;
}

.participant-profile-summary-grid strong {
    display: block;
    width: 100%;
    font-size: 16px;
    font-variant-numeric: tabular-nums;
    line-height: 1.1;
    text-align: center;
}

.team-profile-totals {
    margin: 0;
}

.team-profile-totals > div {
    min-height: 54px;
    padding: 5px 2px;
}

.team-profile-totals small {
    order: 0;
}

.team-profile-totals strong {
    order: 1;
}

.entity-team-logo-link {
    display: contents;
}

.participant-profile-difference { grid-column: auto; }

.participant-profile-identity .profile-awards-showcase,
.team-profile-identity .profile-awards-showcase {
    position: static;
    display: flex;
    width: min(100%, 520px);
    min-height: 76px;
    max-height: 76px;
    margin: 0 auto;
    padding: 0 4px;
    align-items: flex-start;
    justify-content: center;
    gap: 8px;
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: none;
}

.participant-profile-identity .profile-awards-showcase::-webkit-scrollbar,
.team-profile-identity .profile-awards-showcase::-webkit-scrollbar {
    display: none;
}

.team-profile-identity .profile-awards-showcase {
    margin-top: 14px;
}

.team-profile-identity .team-profile-award {
    flex: 0 0 56px;
    width: 56px;
    min-width: 56px;
    max-width: 56px;
    min-height: 71px;
    justify-content: flex-start;
}

.team-profile-identity .team-profile-award img {
    display: block;
    flex: 0 0 54px;
    width: 54px;
    height: 54px;
}

.team-profile-identity .team-profile-award span {
    display: block;
    flex: 0 0 12px;
    min-height: 12px;
    line-height: 12px;
}

.participant-profile-identity .profile-showcase-award {
    flex: 0 0 56px;
    width: 56px;
    min-width: 56px;
    max-width: 56px;
    min-height: 71px;
    justify-content: flex-start;
}

.participant-profile-identity .profile-showcase-award img {
    display: block;
    flex: 0 0 54px;
    width: 54px;
    height: 54px;
}

.participant-profile-identity .profile-showcase-award span {
    display: block;
    flex: 0 0 12px;
    min-height: 12px;
    line-height: 12px;
}

.participant-profile-hero .profile-representations {
    width: 100%;
    margin: 0 0 16px;
}

.profile-dashboard {
    width: min(calc(100% - 32px), 1108px);
}

@media (max-width: 860px) {
    .profile.participant-profile-hero {
        grid-template-columns: 1fr;
        height: auto;
        min-height: 0;
        justify-items: center;
    }

    .participant-profile-identity {
        width: min(100%, 560px);
    }

    .team-profile-hero {
        height: auto;
        min-height: 0;
        gap: 18px;
    }

    .team-profile-identity {
        width: min(100%, 560px);
    }
}

@media (max-width: 620px) {
    .profile.has-profile-awards {
        display: block;
    }

    .profile-awards-showcase {
        position: static;
        width: 100%;
        justify-content: center;
        gap: 7px;
        margin: 10px auto 0;
        padding: 0;
    }

    .profile-showcase-award {
        flex-basis: 48px;
        min-width: 48px;
        max-width: 48px;
    }

    .profile-showcase-award img {
        width: 48px;
        height: 58px;
    }
}

.team-award-icon {
    width: 34px;
    height: 34px;
    object-fit: contain;
    vertical-align: middle;
}
.hall-best-goal .record-match .hall-best-goal-author {
    color: #f2c96d;
    font-weight: 800;
    text-shadow: 0 0 10px rgba(242, 201, 109, 0.24);
}
.hall-match-link { display: inline-block; margin-top: 3px; color: #38bdf8; font-size: 12px; font-weight: 800; }
.hall-prizes ul { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 5px 12px; margin: 0; padding: 0; list-style: none; }
.hall-prizes {
    display: flex;
    min-height: 88px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}
.hall-prizes h3 { justify-content: center; color: #9fc9e6; }
.hall-prizes ul { width: min(100%, 470px); }
.hall-prizes li { display: grid; justify-items: center; gap: 1px; color: #b6c7d8; font-size: 11px; }
.hall-prizes li strong { color: #f4f8fc; text-align: center; }
.hall-muted { color: #9dafc1; }

.hall-page .hall-year-header span,
.hall-page .hall-record-card p,
.hall-page .hall-detail-card p,
.hall-page .hall-prizes li,
.hall-page .hall-muted {
    color: #b6c7d8;
}

/* Unified local icons replace platform-dependent emoji glyphs. */
.event-player::before {
    width: 16px;
    height: 16px;
    background: url("images/site-icons/football.png") center / contain no-repeat;
    vertical-align: -.2em;
}

.red-card-event .event-player::after {
    content: "";
    width: 16px;
    height: 16px;
    background: url("images/site-icons/book.png") center / contain no-repeat;
}

.profile-achievements-table .achievement-list span::before {
    width: 14px;
    height: 14px;
    background: url("images/site-icons/medal.png") center / contain no-repeat;
}

@media (max-width: 760px) {
    .hall-year-nav { grid-template-columns: repeat(6, 1fr); }
    .hall-podium-grid, .hall-record-grid, .hall-stat-grid, .hall-detail-grid { grid-template-columns: 1fr; }
    .hall-podium-people { flex-wrap: wrap; }
    .hall-year-header { align-items: flex-start; }
    .hall-year-header h2 { margin-top: 2px; font-size: 19px; }
    .records-header { grid-template-columns: 1fr; }
    .records-header h2,
    .records-header .record-total { grid-column: 1; }
    .records-grid { grid-template-columns: 1fr; }
    .record-card { min-height: 142px; }
}

/* Keep linked flags and logos from changing the visual center of labels. */
.participant-item {
    display: grid;
    grid-template-columns: 32px minmax(0, 1fr) 32px;
    align-items: center;
    gap: 10px;
}

.participant-item::after {
    content: "";
    width: 32px;
    height: 1px;
}

.participant-item > span {
    grid-column: 2;
    width: 100%;
    text-align: center;
}

.participant-item img {
    display: block;
    grid-column: 1;
    margin: 0 auto;
}

.swiss-team-2020-compact > img,
.swiss-team-2020-compact > .entity-team-logo-link > img,
.schedule-team-2019 > img,
.schedule-team-2019 > .entity-team-logo-link > img,
.schedule-team-2018 > img,
.schedule-team-2018 > .entity-team-logo-link > img {
    display: block;
    flex: 0 0 26px;
    width: 26px;
    height: 26px;
    margin: 0 auto;
    object-fit: contain;
}

.swiss-team-2020-compact > strong,
.swiss-team-2020-compact > small,
.schedule-team-2019 > strong,
.schedule-team-2019 > small,
.schedule-team-2018 > strong,
.schedule-team-2018 > small {
    width: 100%;
    text-align: center;
}

.bracket-2019 .team > .entity-team-logo-link > img {
    flex: 0 0 42px;
    width: 42px;
    height: 28px;
    margin-right: 0;
    border-radius: 0;
    object-fit: contain;
}

.bracket-2020 .team > .entity-team-logo-link > img,
.quarter-start-bracket .team > .entity-team-logo-link > img {
    flex: 0 0 28px;
    width: 28px;
    height: 28px;
    margin-right: 0;
    object-fit: contain;
}

#tournament-2024 .bracket .team > .entity-team-logo-link > img,
#tournament-2025 .bracket .team > .entity-team-logo-link > img,
#tournament-2026 .bracket .team > .entity-team-logo-link > img {
    flex: 0 0 24px;
    width: 24px;
    height: 24px;
    margin-right: 0;
    object-fit: contain;
}

#tournament-2023 .de-stage-matches-2023 .swiss-team-2020-compact > img,
#tournament-2023 .de-stage-matches-2023 .swiss-team-2020-compact > .entity-team-logo-link > img {
    flex-basis: 22px;
    width: 22px;
    height: 22px;
}

/* Playoff labels share one central axis: participant above team. */
.tournament-page .bracket .team {
    display: grid;


    align-items: center;


}

.tournament-page .bracket .team img {
    grid-column: 1;
    grid-row: 1 / 3;

    margin: 0;
}

.tournament-page .bracket .team .club,
.tournament-page .bracket .team .player {
    width: 100%;
    max-width: none;
    min-width: 0;
    flex-basis: auto;
    justify-self: stretch;
    text-align: center;
}

.tournament-page .bracket .team .club {
    grid-column: 2;
    grid-row: 2;
}

.tournament-page .bracket .team .player {
    grid-column: 2;
    grid-row: 1;
}

.tournament-page .bracket .team .score {
    grid-column: 3;
    grid-row: 1 / 3;
    align-self: center;
    justify-self: end;
    width: auto;

    text-align: right;
}

.tournament-page .bracket .team .score.playoff-series-scores {
    justify-content: flex-end;
}

/* Unified compact playoff team card for every season and bracket variant. */
.tournament-page .bracket .team {
    box-sizing: border-box;
    grid-template-columns: 32px minmax(0, 1fr) max-content;
    grid-template-rows: 18px 14px;
    min-height: 44px;
    padding: 6px 8px;
    column-gap: 7px;
    row-gap: 0;
}

.tournament-page .bracket .team img {
    width: 28px;
    height: 28px;
    justify-self: start;
}

.tournament-page .bracket .team .player,
.tournament-page .bracket .team .club {
    overflow: visible;
    line-height: 1.1;
    text-align: left;
    text-overflow: clip;
    overflow-wrap: normal;
    word-break: normal;
    white-space: nowrap;
}

.tournament-page .bracket .team .player {
    align-self: end;
    font-size: 11px;
    font-weight: 700;
}

.tournament-page .bracket .team .club {
    align-self: start;
    color: #94a3b8;
    font-size: 9px;
    font-weight: 600;
}

.tournament-page .bracket .team .score {
    min-width: 30px;
    padding: 0;
    font-size: 18px;
    line-height: 1;
}

.tournament-page .bracket .team .bracket-score-link {
    box-sizing: border-box;
    min-width: 26px;
    padding: 3px 4px;
}

.tournament-page .bracket .team .playoff-series-scores {
    min-width: auto;
    gap: 3px;
}

.tournament-page .bracket .team .playoff-series-scores a {
    min-width: 22px;
    padding: 2px 3px;
    line-height: 20px;
}

/* Every playoff round uses the same compact frame instead of stretching to fill the page. */
@media (min-width: 701px) {
    .tournament-page .bracket {
        box-sizing: border-box;
        width: min(100%, 1128px);
        gap: 16px;
        justify-content: center;
    }

    .tournament-page .bracket > .bracket-column {
        box-sizing: border-box;
        flex: 0 0 270px;
        width: 270px;
        min-width: 270px;
        max-width: 270px;
    }

    .tournament-page .bracket .match {
        box-sizing: border-box;
        width: 100%;
        height: 104px;
        padding: 5px;
        border-radius: 9px;
    }

    .tournament-page .bracket .separator {
        margin: 3px 0;
    }

    /* Symmetric 16 → 8 → 4 → 2 bracket: every card is the midpoint of its feeders. */
    .tournament-page .bracket > .round-16 + .quarterfinals,
    .tournament-page .bracket > .round-of-16-2020 + .quarterfinals,
    .tournament-page .bracket > .round-2019-1 + .round-2019-2,
    .tournament-page .bracket-2020 > .quarterfinals {
        padding-top: 63px;
    }

    .tournament-page .bracket > .quarterfinals .match,
    .tournament-page .bracket > .round-2019-2 .match {
        margin-bottom: 148px;
    }

    .tournament-page .bracket > .quarterfinals .match:last-child,
    .tournament-page .bracket > .round-2019-2 .match:last-child {
        margin-bottom: 0;
    }

    .tournament-page .bracket > .semifinals-2017,
    .tournament-page .bracket > .round-2019-3 {
        padding-top: 189px;
    }

    .tournament-page .bracket > .semifinals-2017 .match {
        margin-bottom: 400px;
    }

    .tournament-page .bracket > .semifinals-2017 .match:last-child {
        margin-bottom: 0;
    }

    .tournament-page .bracket > .final-2017:not(.finals-2022) {
        padding-top: 441px;
    }

    /* Symmetric 8 → 4 → 2 bracket. */
    .tournament-page .quarter-start-bracket > .quarterfinals,
    #tournament-2023 .fifer-playoff-2023 > .quarterfinals {
        padding-top: 0;
    }

    .tournament-page .quarter-start-bracket > .quarterfinals .match,
    #tournament-2023 .fifer-playoff-2023 > .quarterfinals .match {
        margin: 0;
    }

    .tournament-page .quarter-start-bracket > .semifinals-2017,
    #tournament-2023 .fifer-playoff-2023 > .semifinals-2017 {
        padding-top: 0;
    }

    .tournament-page .quarter-start-bracket > .semifinals-2017 .match,
    #tournament-2023 .fifer-playoff-2023 > .semifinals-2017 .match {
        margin: 0;
    }

    #tournament-2023 .fifer-playoff-2023 > .quarterfinals,
    #tournament-2023 .fifer-playoff-2023 > .semifinals-2017 {
        display: grid;
        grid-template-rows: auto 104px 104px;
        align-content: start;
        row-gap: 198px;
    }

    #tournament-2023 .fifer-playoff-2023 > .quarterfinals > h2,
    #tournament-2023 .fifer-playoff-2023 > .semifinals-2017 > h2 {
        margin: 0 0 -186px;
    }

    .tournament-page .quarter-start-bracket > .finals-2022,
    #tournament-2023 .fifer-playoff-2023 > .finals-2022 {
        padding-top: 0;
    }

    .tournament-page .quarter-start-bracket > .final-2017:not(.finals-2022) {
        padding-top: 189px;
    }

    /* The bronze match is supplementary; only the final participates in the bracket axis. */

    /* 2025–2026 contain a visual play-in column; the main playoff remains symmetric. */
    #tournament-2025 .bracket-2025 > .quarterfinals,
    #tournament-2026 .bracket-2025 > .quarterfinals {
        padding-top: 0;
    }

    #tournament-2025 .bracket-2025 > .quarterfinals .match,
    #tournament-2026 .bracket-2025 > .quarterfinals .match {
        margin-bottom: 24px;
    }

    #tournament-2025 .bracket-2025 > .semifinals-2017,
    #tournament-2026 .bracket-2025 > .semifinals-2017 {
        padding-top: 64px;
    }

    #tournament-2025 .bracket-2025 > .semifinals-2017 .match,
    #tournament-2026 .bracket-2025 > .semifinals-2017 .match {
        margin-bottom: 152px;
    }

    #tournament-2025 .bracket-2025 > .finals-2024,
    #tournament-2026 .bracket-2025 > .finals-2024 {
        padding-top: 120px;
    }

}

/* Universal runtime geometry for every playoff from 2016 onward. */
@media (min-width: 701px) {
    .tournament-page .bracket.playoff-layout-unified {
        position: relative;
        display: flex;
        width: min(100%, 1128px);
        gap: 16px;
        margin: 28px auto 20px;
        align-items: flex-start;
        justify-content: center;
    }

    .tournament-page .bracket.playoff-layout-unified > .bracket-column {
        position: relative;
        display: block;
        flex: 0 0 270px;
        width: 270px;
        min-width: 270px;
        max-width: 270px;
        padding: 0;
    }

    .tournament-page .bracket.playoff-layout-unified > .bracket-column > h2,
    .tournament-page .bracket.playoff-layout-unified .playoff-final-heading {
        position: absolute;
        top: 0;
        right: 0;
        left: 0;
        height: 28px;
        margin: 0;
        font-size: 18px;
        line-height: 28px;
        text-align: center;
    }

    .tournament-page .bracket.playoff-layout-unified > .bracket-column > .match,
    .tournament-page .bracket.playoff-layout-unified > .bracket-column > .placement-block {
        position: absolute;
        right: 0;
        left: 0;
        width: 270px;
        margin: 0;
        transform: none;
    }

    .tournament-page .bracket.playoff-layout-unified > .bracket-column > .placement-block > .match {
        width: 270px;
        height: 104px;
        margin: 0;
    }
}

/* 2022–2026: one canonical playoff geometry, based on the correct 2024 bracket. */
@media (min-width: 701px) {
    #tournament-2022 .bracket-2022,
    #tournament-2023 .fifer-playoff-2023,
    #tournament-2024 .bracket-2024,
    #tournament-2025 .bracket-2025,
    #tournament-2026 .bracket-2025 {
        position: relative;



    }

    #tournament-2022 .bracket-2022 > .bracket-column,
    #tournament-2023 .fifer-playoff-2023 > .bracket-column,
    #tournament-2024 .bracket-2024 > .bracket-column,
    #tournament-2025 .bracket-2025 > .bracket-column,
    #tournament-2026 .bracket-2025 > .bracket-column {



        padding-top: 0;
    }

    #tournament-2022 .bracket-2022 > .bracket-column > h2,
    #tournament-2023 .fifer-playoff-2023 > .bracket-column > h2,
    #tournament-2024 .bracket-2024 > .bracket-column > h2,
    #tournament-2025 .bracket-2025 > .bracket-column > h2,
    #tournament-2026 .bracket-2025 > .bracket-column > h2 {
        position: absolute;
        top: 0;
        right: 0;
        left: 0;
        height: 32px;
        margin: 0;
    }

    #tournament-2022 .bracket-2022 > .quarterfinals > .match,
    #tournament-2024 .bracket-2024 > .quarterfinals > .match,
    #tournament-2025 .bracket-2025 > .quarterfinals > .match,
    #tournament-2026 .bracket-2025 > .quarterfinals > .match {
        position: absolute;
        right: 0;
        left: 0;
        margin: 0;
    }

    #tournament-2022 .quarterfinals > .match:nth-of-type(1), #tournament-2024 .quarterfinals > .match:nth-of-type(1), #tournament-2025 .quarterfinals > .match:nth-of-type(1), #tournament-2026 .quarterfinals > .match:nth-of-type(1) { top: 115px; }
    #tournament-2022 .quarterfinals > .match:nth-of-type(2), #tournament-2024 .quarterfinals > .match:nth-of-type(2), #tournament-2025 .quarterfinals > .match:nth-of-type(2), #tournament-2026 .quarterfinals > .match:nth-of-type(2) { top: 367px; }
    #tournament-2022 .quarterfinals > .match:nth-of-type(3), #tournament-2024 .quarterfinals > .match:nth-of-type(3), #tournament-2025 .quarterfinals > .match:nth-of-type(3), #tournament-2026 .quarterfinals > .match:nth-of-type(3) { top: 619px; }
    #tournament-2022 .quarterfinals > .match:nth-of-type(4), #tournament-2024 .quarterfinals > .match:nth-of-type(4), #tournament-2025 .quarterfinals > .match:nth-of-type(4), #tournament-2026 .quarterfinals > .match:nth-of-type(4) { top: 871px; }

    #tournament-2022 .bracket-2022 > .semifinals-2017 > .match,
    #tournament-2023 .fifer-playoff-2023 > .semifinals-2017 > .match,
    #tournament-2024 .bracket-2024 > .semifinals-2017 > .match,
    #tournament-2025 .bracket-2025 > .semifinals-2017 > .match,
    #tournament-2026 .bracket-2025 > .semifinals-2017 > .match {
        position: absolute;
        right: 0;
        left: 0;
        margin: 0;
    }

    #tournament-2022 .semifinals-2017 > .match:nth-of-type(1), #tournament-2023 .semifinals-2017 > .match:nth-of-type(1), #tournament-2024 .semifinals-2017 > .match:nth-of-type(1), #tournament-2025 .semifinals-2017 > .match:nth-of-type(1), #tournament-2026 .semifinals-2017 > .match:nth-of-type(1) { }
    #tournament-2022 .semifinals-2017 > .match:nth-of-type(2), #tournament-2023 .semifinals-2017 > .match:nth-of-type(2), #tournament-2024 .semifinals-2017 > .match:nth-of-type(2), #tournament-2025 .semifinals-2017 > .match:nth-of-type(2), #tournament-2026 .semifinals-2017 > .match:nth-of-type(2) { }

    /* 2023 has two displayed quarterfinals: align them with the same feeder axes. */
    #tournament-2023 .fifer-playoff-2023 > .quarterfinals > .match {
        position: absolute;
        right: 0;
        left: 0;
        margin: 0;
    }
    #tournament-2023 .quarterfinals > .match:nth-of-type(1) { }
    #tournament-2023 .quarterfinals > .match:nth-of-type(2) { }

    #tournament-2022 .finals-2022,
    #tournament-2023 .finals-2022,
    #tournament-2024 .finals-2022,
    #tournament-2025 .finals-2022,
    #tournament-2026 .finals-2022 {

    }
}

@media (min-width: 701px) {
    .tournament-page .bracket > .finals-2022.is-geometrically-aligned {
        position: relative;
        display: block;
        height: var(--final-column-height);
        min-height: var(--final-column-height);
        padding-top: 0;
    }

    .tournament-page .bracket > .finals-2022.is-geometrically-aligned > .placement-block {
        position: absolute;
        right: 0;
        left: 0;
        width: 100%;
        margin: 0;
        transform: none;
    }

    .tournament-page .bracket > .finals-2022.is-geometrically-aligned > .final-placement {
        top: var(--final-placement-top);
    }

    .tournament-page .bracket > .finals-2022.is-geometrically-aligned > .bronze-placement {
        top: var(--bronze-placement-top);
    }
}

@media (max-width: 480px) {
    .tournament-page .bracket .team {
        grid-template-columns: 28px minmax(0, 1fr) max-content;
        padding-right: 6px;
        padding-left: 6px;
        column-gap: 5px;
    }

    .tournament-page .bracket .team img {
        width: 24px;
        height: 24px;
    }

    .tournament-page .bracket .playoff-series-scores {
        gap: 2px;
    }

    .tournament-page .bracket .playoff-series-scores a {
        min-width: 18px;
        padding-right: 1px;
        padding-left: 1px;
    }
}

/* Canonical compact playoff layout for 2022–2026. This final layer intentionally
   replaces all historical per-season spacing rules above. */
@media (min-width: 701px) {
    #tournament-2022 .bracket-2022,
    #tournament-2023 .fifer-playoff-2023,
    #tournament-2024 .bracket-2024,
    #tournament-2025 .bracket-2025,
    #tournament-2026 .bracket-2025 {
        display: flex;
        width: min(100%, 1128px);
        height: 540px;
        min-height: 540px;
        gap: 16px;
        margin: 28px auto 20px;
        align-items: flex-start;
        justify-content: center;
    }

    #tournament-2022 .bracket-2022 > .bracket-column,
    #tournament-2023 .fifer-playoff-2023 > .bracket-column,
    #tournament-2024 .bracket-2024 > .bracket-column,
    #tournament-2025 .bracket-2025 > .bracket-column,
    #tournament-2026 .bracket-2025 > .bracket-column {
        position: relative;
        display: block;
        flex: 0 0 270px;
        width: 270px;
        min-width: 270px;
        max-width: 270px;
        height: 540px;
        min-height: 540px;
        padding: 0;
    }

    #tournament-2022 .bracket-column > h2,
    #tournament-2023 .fifer-playoff-2023 .bracket-column > h2,
    #tournament-2024 .bracket-column > h2,
    #tournament-2025 .bracket-column > h2,
    #tournament-2026 .bracket-column > h2 {
        position: absolute;
        top: 0;
        right: 0;
        left: 0;
        height: 28px;
        margin: 0;
        font-size: 18px;
        line-height: 28px;
    }

    #tournament-2022 .bracket-column > .match,
    #tournament-2023 .fifer-playoff-2023 .bracket-column > .match,
    #tournament-2024 .bracket-column > .match,
    #tournament-2025 .bracket-column > .match,
    #tournament-2026 .bracket-column > .match {
        position: absolute;
        right: 0;
        left: 0;
        width: 270px;
        height: 104px;
        margin: 0;
    }

    /* Four compact feeder rows. */
    #tournament-2022 .quarterfinals > .match:nth-of-type(1), #tournament-2024 .quarterfinals > .match:nth-of-type(1), #tournament-2025 .quarterfinals > .match:nth-of-type(1), #tournament-2026 .quarterfinals > .match:nth-of-type(1),
    #tournament-2025 .round-of-16-2020 > .match:nth-of-type(1), #tournament-2026 .round-of-16-2020 > .match:nth-of-type(1) { top: 36px; }
    #tournament-2022 .quarterfinals > .match:nth-of-type(2), #tournament-2024 .quarterfinals > .match:nth-of-type(2), #tournament-2025 .quarterfinals > .match:nth-of-type(2), #tournament-2026 .quarterfinals > .match:nth-of-type(2),
    #tournament-2025 .round-of-16-2020 > .match:nth-of-type(2), #tournament-2026 .round-of-16-2020 > .match:nth-of-type(2) { top: 160px; }
    #tournament-2022 .quarterfinals > .match:nth-of-type(3), #tournament-2024 .quarterfinals > .match:nth-of-type(3), #tournament-2025 .quarterfinals > .match:nth-of-type(3), #tournament-2026 .quarterfinals > .match:nth-of-type(3),
    #tournament-2025 .round-of-16-2020 > .match:nth-of-type(3), #tournament-2026 .round-of-16-2020 > .match:nth-of-type(3) { top: 284px; }
    #tournament-2022 .quarterfinals > .match:nth-of-type(4), #tournament-2024 .quarterfinals > .match:nth-of-type(4), #tournament-2025 .quarterfinals > .match:nth-of-type(4), #tournament-2026 .quarterfinals > .match:nth-of-type(4),
    #tournament-2025 .round-of-16-2020 > .match:nth-of-type(4), #tournament-2026 .round-of-16-2020 > .match:nth-of-type(4) { top: 408px; }

    /* Two semifinal axes, centered between feeder pairs. */
    #tournament-2022 .semifinals-2017 > .match:nth-of-type(1), #tournament-2023 .semifinals-2017 > .match:nth-of-type(1), #tournament-2024 .semifinals-2017 > .match:nth-of-type(1), #tournament-2025 .semifinals-2017 > .match:nth-of-type(1), #tournament-2026 .semifinals-2017 > .match:nth-of-type(1) { top: 98px; }
    #tournament-2022 .semifinals-2017 > .match:nth-of-type(2), #tournament-2023 .semifinals-2017 > .match:nth-of-type(2), #tournament-2024 .semifinals-2017 > .match:nth-of-type(2), #tournament-2025 .semifinals-2017 > .match:nth-of-type(2), #tournament-2026 .semifinals-2017 > .match:nth-of-type(2) { top: 346px; }

    /* 2023 displays two preceding matches: use the same two visual axes. */
    #tournament-2023 .quarterfinals > .match:nth-of-type(1) { top: 98px; }
    #tournament-2023 .quarterfinals > .match:nth-of-type(2) { top: 346px; }

    /* The complete final/bronze group is compact and centered between semifinals. */
    #tournament-2022 .finals-2022,
    #tournament-2023 .finals-2022,
    #tournament-2024 .finals-2022,
    #tournament-2025 .finals-2022,
    #tournament-2026 .finals-2022 {
        height: 540px;
        min-height: 540px;
    }

    #tournament-2022 .finals-2022 > .placement-block,
    #tournament-2023 .finals-2022 > .placement-block,
    #tournament-2024 .finals-2022 > .placement-block,
    #tournament-2025 .finals-2022 > .placement-block,
    #tournament-2026 .finals-2022 > .placement-block {
        position: absolute;
        right: 0;
        left: 0;
        width: 270px;

        margin: 0;
        transform: none;
    }

    #tournament-2022 .finals-2022 > .final-placement, #tournament-2023 .finals-2022 > .final-placement, #tournament-2025 .finals-2022 > .final-placement, #tournament-2026 .finals-2022 > .final-placement { }
    #tournament-2022 .finals-2022 > .bronze-placement, #tournament-2023 .finals-2022 > .bronze-placement, #tournament-2025 .finals-2022 > .bronze-placement, #tournament-2026 .finals-2022 > .bronze-placement { }

    /* 2024 has a complete round of 16, so it needs eight compact feeder rows. */
    #tournament-2024 .bracket-2024,
    #tournament-2024 .bracket-2024 > .bracket-column,
    #tournament-2024 .bracket-2024 > .finals-2022 {
        height: 1016px;
        min-height: 1016px;
    }

    #tournament-2024 .round-of-16-2020 > .match {
        position: absolute;
        right: 0;
        left: 0;
        width: 270px;
        height: 104px;
        margin: 0;
    }

    #tournament-2024 .round-of-16-2020 > .match:nth-of-type(1) { top: 36px; }
    #tournament-2024 .round-of-16-2020 > .match:nth-of-type(2) { top: 156px; }
    #tournament-2024 .round-of-16-2020 > .match:nth-of-type(3) { top: 276px; }
    #tournament-2024 .round-of-16-2020 > .match:nth-of-type(4) { top: 396px; }
    #tournament-2024 .round-of-16-2020 > .match:nth-of-type(5) { top: 516px; }
    #tournament-2024 .round-of-16-2020 > .match:nth-of-type(6) { top: 636px; }
    #tournament-2024 .round-of-16-2020 > .match:nth-of-type(7) { top: 756px; }
    #tournament-2024 .round-of-16-2020 > .match:nth-of-type(8) { top: 876px; }

    #tournament-2024 .quarterfinals > .match:nth-of-type(1) { top: 96px; }
    #tournament-2024 .quarterfinals > .match:nth-of-type(2) { top: 336px; }
    #tournament-2024 .quarterfinals > .match:nth-of-type(3) { top: 576px; }
    #tournament-2024 .quarterfinals > .match:nth-of-type(4) { top: 816px; }
    #tournament-2024 .semifinals-2017 > .match:nth-of-type(1) { top: 216px; }
    #tournament-2024 .semifinals-2017 > .match:nth-of-type(2) { top: 696px; }
    #tournament-2024 .finals-2022 > .final-placement { }
    #tournament-2024 .finals-2022 > .bronze-placement { }
}

/* Final column title and frame-only symmetry for all modern playoffs. */
.tournament-page .bracket .playoff-final-heading {
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    height: 28px;
    margin: 0;
    color: #38bdf8;
    font-size: 18px;
    line-height: 28px;
    text-align: center;
    white-space: nowrap;
}

.tournament-page .bracket .finals-2022 > .placement-block > h2[hidden] {
    display: none;
}

@media (min-width: 701px) {
    #tournament-2022 .finals-2022 > .placement-block,
    #tournament-2023 .finals-2022 > .placement-block,
    #tournament-2024 .finals-2022 > .placement-block,
    #tournament-2025 .finals-2022 > .placement-block,
    #tournament-2026 .finals-2022 > .placement-block {
        height: 104px;
    }

    #tournament-2022 .finals-2022 > .final-placement,
    #tournament-2023 .finals-2022 > .final-placement,
    #tournament-2025 .finals-2022 > .final-placement,
    #tournament-2026 .finals-2022 > .final-placement {
        top: 162px;
    }

    #tournament-2022 .finals-2022 > .bronze-placement,
    #tournament-2023 .finals-2022 > .bronze-placement,
    #tournament-2025 .finals-2022 > .bronze-placement,
    #tournament-2026 .finals-2022 > .bronze-placement {
        top: 282px;
    }

    #tournament-2024 .finals-2022 > .final-placement {
        top: 396px;
    }

    #tournament-2024 .finals-2022 > .bronze-placement {
        top: 516px;
    }
}

/* Compact shared navigation without page-wide overflow on narrow screens. */
@media (max-width: 900px) {
    header {
        height: auto;
        min-height: 0;
        gap: 14px;
        padding: 18px 16px;
    }

    .site-main-nav {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 5px;
        width: 100%;
        margin: 0;
        white-space: normal;
    }

    .site-main-nav > a,
    .site-main-nav > .dropdown,
    .site-main-nav > .site-search-trigger,
    .site-main-nav .profiles-dropdown,
    .site-main-nav > .dropdown > .dropdown-menu,
    .site-main-nav .profiles-dropdown > .profiles-menu,
    .site-main-nav .dropdown-submenu-menu {
        width: 100%;
        min-width: 0;
    }

    .site-main-nav > a,
    .site-main-nav > .dropdown > a,
    .site-main-nav .dropdown-trigger,
    .site-main-nav .site-search-trigger {
        padding-right: 7px;
        padding-left: 7px;
        font-size: 13px;
    }

    nav.site-main-nav > .profiles-dropdown .dropdown-submenu-menu {
        right: calc(100% + 6px);
        left: auto;
    }

    .site-main-nav .dropdown-submenu:not(.is-open) > .dropdown-submenu-menu {
        opacity: 0;
        visibility: hidden;
        transform: translateY(10px);
    }

    .site-main-nav .dropdown-submenu.is-open > .dropdown-submenu-menu {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }
}

/* Unified group-stage match cards for 2018–2026. */
.tournament-page .group-stage > .round-card {
    width: 100%;
    margin: 0 0 var(--site-space-4);
    padding: var(--site-space-4);
}
.tournament-page .group-stage > .round-card > .round-heading {
    display: grid;
    grid-template-columns: 96px minmax(0, 1fr) 96px;
    align-items: center;
    gap: var(--site-space-3);
    min-height: 42px;
    margin-bottom: var(--site-space-3);
}
.tournament-page .group-stage > .round-card > .round-heading::after {
    content: "";
}
.tournament-page .group-stage > .round-card > .round-heading > span {
    display: grid;
    min-height: 34px;
    place-items: center;
    padding: 6px 10px;
    border-radius: var(--site-radius-sm);
}
.tournament-page .group-stage > .round-card > .round-heading > h2 {
    margin: 0;
    font-size: 19px;
    line-height: 1.2;
}
.tournament-page .group-stage .round-groups {
    align-items: stretch;
    gap: 18px;
}
.tournament-page .group-stage .round-group {
    padding: var(--site-space-3);
    border-color: var(--site-border-soft);
    border-radius: var(--site-radius-md);
}
.tournament-page .group-stage .round-group > h3 {
    min-height: 24px;
    margin: 0 0 var(--site-space-2);
    color: var(--site-accent-light);
    font-size: 16px;
    line-height: 24px;
}
.tournament-page .group-stage .group-matches,
.tournament-page .group-stage-2019 .group-matches-2019 {
    gap: var(--site-space-2);
}
.tournament-page .group-stage .group-match-with-logos,
.tournament-page .group-stage-2019 .group-matches-2019 > div {
    min-height: 78px;
    padding: 7px 9px;
    border-radius: 9px;
    background: var(--site-surface-raised);
}
.tournament-page .group-stage .group-match-with-logos {
    grid-template-columns: minmax(0, 1fr) 58px minmax(0, 1fr);
    gap: 7px;
}
.tournament-page .group-stage-2019 .group-matches-2019 > div {
    grid-template-columns: 58px minmax(0, 1fr);
    gap: 10px;
}
.tournament-page .group-stage-2019 .schedule-match-2019 {
    grid-template-columns: minmax(0, 1fr) 58px minmax(0, 1fr);
    gap: 7px;
}
.tournament-page .group-stage-2019 .swiss-match-2020-compact {
    grid-template-columns: minmax(0, 1fr) 58px minmax(0, 1fr);
    gap: 7px;
}
.tournament-page .group-stage .schedule-team-2018,
.tournament-page .group-stage-2019 .schedule-team-2019 {
    min-width: 0;
    height: 62px;
}
.tournament-page .group-stage .schedule-team-2018 > img,
.tournament-page .group-stage .schedule-team-2018 > .entity-team-logo-link > img,
.tournament-page .group-stage-2019 .schedule-team-2019 > img,
.tournament-page .group-stage-2019 .schedule-team-2019 > .entity-team-logo-link > img {
    width: 28px;
    height: 28px;
}
.tournament-page .group-stage .schedule-team-2018 > strong,
.tournament-page .group-stage-2019 .schedule-team-2019 > strong {
    font-size: 12px;
    line-height: 1.1;
}
.tournament-page .group-stage .schedule-team-2018 > small,
.tournament-page .group-stage-2019 .schedule-team-2019 > small {
    font-size: 9px;
    line-height: 1.1;
}
.tournament-page .group-stage .group-score,
.tournament-page .group-stage-2019 .schedule-score-link {
    display: grid;
    width: 58px;
    min-height: 34px;
    align-self: center;
    place-items: center;
    padding: 5px 3px;
    border-radius: 7px;
    font-size: 12px;
    font-variant-numeric: tabular-nums;
}
@media (max-width: 820px) {
    .tournament-page .group-stage > .round-card > .round-heading {
        grid-template-columns: 1fr;
    }
    .tournament-page .group-stage > .round-card > .round-heading::after {
        display: none;
    }
    .tournament-page .group-stage > .round-card > .round-heading > span {
        justify-self: center;
    }
    .tournament-page .group-stage-2019 .group-matches-2019 > div {
        height: 78px;
        min-height: 78px;
    }
    .tournament-page .group-stage-2019 .swiss-match-2020-compact {
        height: 62px;
        min-height: 62px;
    }
    .tournament-page .group-stage-2019 .swiss-team-2020-compact > strong {
        font-size: 10.5px;
        line-height: 1.1;
    }
    .tournament-page .group-stage-2019 .swiss-team-2020-compact > small {
        font-size: 8.5px;
        line-height: 1.05;
    }
}

/* One header template for every tournament round. */
.tournament-page .round-card > .round-heading,
.tournament-page .round-card-2020-compact > .round-heading-2020 {
    position: static;
    display: grid;
    grid-template-columns: 96px minmax(0, 1fr) 96px;
    align-items: center;
    gap: var(--site-space-3);
    width: 100%;
    min-height: 42px;
    margin-bottom: var(--site-space-3);
}

/* Swiss rounds: keep the tour badge separate and align every record label
   with the match group directly below it. */
.tournament-page .round-card-2020-compact > .round-heading-2020 {



}
.tournament-page .round-card-2020-compact > .round-heading-2020::after {
}
.tournament-page .round-card-2020-compact > .round-heading-2020 > span {


}
.tournament-page .round-card-2020-compact > .round-heading-2020 > h2 {




}
.tournament-page .round-card-2020-compact > .round-heading-2020 > h2 > b {







}

/* Keep the record row in the only content column; the shared header rule uses
   column 2 for ordinary round titles. */
.tournament-page .round-card-2020-compact > .round-heading-2020 > h2 {
    grid-column: 1;
}
.tournament-page .round-card > .round-heading::after,
.tournament-page .round-card-2020-compact > .round-heading-2020::after {
    content: "";
    width: 96px;
}
.tournament-page .round-card > .round-heading > span,
.tournament-page .round-card-2020-compact > .round-heading-2020 > span {
    position: static;
    z-index: auto;
    display: grid;
    width: 96px;
    min-width: 96px;
    min-height: 35px;
    place-items: center;
    justify-self: start;
    padding: 6px 10px;
    border-radius: var(--site-radius-sm);
    background: var(--site-accent);
    color: #082f49;
    font-size: 16px;
    font-weight: 800;
    line-height: 1.1;
    text-align: center;
}
.tournament-page .round-card > .round-heading > h2,
.tournament-page .round-card-2020-compact > .round-heading-2020 > h2 {
    grid-column: 2;
    width: 100%;
    min-height: 23px;
    margin: 0;
    color: var(--site-accent-light);
    font-size: 19px;
    line-height: 1.2;
    text-align: center;
}
.tournament-page .round-card-2020-compact > .round-heading-2020 > h2 {
    display: grid;

    align-items: center;

    font-size: 15px;
}
@media (max-width: 620px) {
    .tournament-page .round-card > .round-heading,
    .tournament-page .round-card-2020-compact > .round-heading-2020 {
        grid-template-columns: 1fr;
        gap: var(--site-space-2);
        min-height: 0;
    }
    .tournament-page .round-card > .round-heading::after,
    .tournament-page .round-card-2020-compact > .round-heading-2020::after {
        display: none;
    }
    .tournament-page .round-card > .round-heading > span,
    .tournament-page .round-card-2020-compact > .round-heading-2020 > span {
        justify-self: center;
    }
    .tournament-page .round-card > .round-heading > h2,
    .tournament-page .round-card-2020-compact > .round-heading-2020 > h2 {
        grid-column: 1;
    }

    .tournament-page .round-card-2020-compact > .round-heading-2020 > span {
        grid-row: 1;
    }

    .tournament-page .round-card-2020-compact > .round-heading-2020 > h2 {
        grid-row: 2;
    }
}

/* Final mobile pass: readable single-column stages and unclipped profile content. */
@media (max-width: 620px) {
    header {
        gap: 10px;
        padding: 12px;
    }

    .site-main-nav {
        gap: 4px;
    }

    .site-main-nav > a,
    .site-main-nav > .dropdown > a,
    .site-main-nav .dropdown-trigger,
    .site-main-nav .site-search-trigger {
        min-height: 42px;
        padding: 8px 5px;
        line-height: 1.15;
    }

    .round-card-2020-compact {
        padding: 10px;
        overflow-x: visible;
    }

    .round-card-2020-compact .round-heading-2020,
    .round-card-2020-compact .swiss-record-groups {
        width: 100%;
        min-width: 0;
    }

    .round-heading-2020 {
        display: grid;
        gap: 8px;
    }

    .round-heading-2020 > span {
        position: static;
        justify-self: center;
    }

    .round-heading-2020 > h2,
    .swiss-record-groups {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .round-heading-2020 > h2 {
        font-size: 15px;
    }

    .round-card-2020-compact .round-group {
        min-width: 0;
    }

    .swiss-matches-2019,
    .record-count-1 .swiss-matches-2019 {
        grid-template-columns: 1fr;
    }

    .swiss-team-2020-compact > strong,
    .schedule-team-2019 > strong,
    .schedule-team-2018 > strong {
        font-size: 11.5px;
        line-height: 1.2;
        white-space: normal;
    }

    .swiss-team-2020-compact > small,
    .schedule-team-2019 > small,
    .schedule-team-2018 > small {
        font-size: 10px;
        line-height: 1.15;
        white-space: normal;
    }

    .schedule-score-link small {
        font-size: 10px;
    }

    .tournament-page .bracket .team .player {
        color: #f8fafc;
        font-size: 12px;
        font-weight: 800;
        line-height: 1.2;
    }

    .tournament-page .bracket .team .club,
    .tournament-page .bracket .team .club a {
        color: #aebbd0;
        font-size: 10.5px;
        font-weight: 500;
        line-height: 1.2;
    }

    .participant-profile-summary-card {
        width: min(100%, 290px);
        height: auto;
        min-height: 190px;
        padding: 14px;
    }

    .participant-profile-summary-grid {
        gap: 6px;
    }

    .participant-profile-summary-grid > div {
        min-height: 44px;
        padding: 6px 3px;
    }

    .participant-profile-summary-grid span,
    .team-profile-totals small {
        font-size: 10px;
        line-height: 1.15;
    }

    .participant-profile-identity .profile-awards-showcase,
    .team-profile-identity .profile-awards-showcase {
        width: 100%;
        height: auto;
        min-height: 0;
        max-height: none;
        padding: 0;
        flex-wrap: wrap;
        overflow: visible;
    }

    .hall-place-title,
    .hall-record-card small {
        font-size: 11px;
        line-height: 1.2;
    }
}

/* Deep narrow-screen pass for protocols, tables and long entity names. */
@media (max-width: 480px) {
    .site-main-nav .dropdown-menu a,
    .site-main-nav .dropdown-submenu-trigger {
        min-height: 44px;
        padding-top: 10px;
        padding-bottom: 10px;
    }

    .match-page {
        width: calc(100% - 20px);
        margin-top: 24px;
        margin-bottom: 48px;
    }

    .protocol-breadcrumbs {
        gap: 8px;
        min-height: 48px;
        padding: 9px 12px;
        font-size: 12px;
        line-height: 1.35;
    }

    .back-to-bracket {
        margin-bottom: 16px;
        font-size: 14px;
    }

    .match-scoreboard {
        padding: 18px 10px;
        border-radius: 14px;
    }

    .match-meta {
        margin-bottom: 18px;
        font-size: 12px;
        line-height: 1.3;
        letter-spacing: .04em;
    }

    .scoreboard-row {
        grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
        gap: 5px;
    }

    .scoreboard-team,
    .scoreboard-team h2,
    .scoreboard-team p {
        min-width: 0;
    }

    .scoreboard-team .squad-visual {
        width: 100%;
        min-width: 0;
    }

    .scoreboard-team img,
    .scoreboard-team .squad-visual img {
        width: 46px;
        height: 46px;
        margin-bottom: 8px;
    }

    .scoreboard-team h2 {
        margin-bottom: 4px;
        font-size: 13px;
        line-height: 1.15;
        overflow-wrap: anywhere;
    }

    .scoreboard-team p {
        font-size: 11px;
        line-height: 1.2;
        overflow-wrap: anywhere;
    }

    .scoreboard-score {
        font-size: 28px;
    }

    .scoreboard-result {
        width: min(84px, 26vw);
        min-width: 0;
        text-align: center;
    }

    .scoreboard-technical,
    .scoreboard-technical span,
    .scoreboard-technical strong,
    .scoreboard-technical a {
        min-width: 0;
        white-space: normal;
        overflow-wrap: anywhere;
    }

    .scoreboard-technical {
        font-size: 10px;
        line-height: 1.15;
    }

    .events-card {
        margin-top: 18px;
        padding: 18px 10px;
        border-radius: 14px;
    }

    .events-card h2 {
        margin-bottom: 16px;
        font-size: 24px;
    }

    .match-event {
        grid-template-columns: minmax(0, 1fr) 44px minmax(0, 1fr);
        gap: 5px;
    }

    .event-player {
        font-size: 12px;
        line-height: 1.2;
        overflow-wrap: anywhere;
    }

    .event-minute {
        font-size: 14px;
    }

    .participant-list {
        grid-template-columns: 1fr;
    }

    .participant-item {
        grid-template-columns: 32px minmax(0, 1fr) 32px;
        min-height: 56px;
    }

    .participant-item strong,
    .participant-item small,
    .participant-item strong a,
    .participant-item small a {
        overflow: visible;
        text-overflow: clip;
        white-space: normal;
        overflow-wrap: anywhere;
        line-height: 1.2;
    }

    .group-card,
    .group-card-2019 {
        overflow-x: visible;
    }

    .group-table,
    .group-card-2019 table {
        width: 100%;
        table-layout: auto;
    }

    .group-table th,
    .group-table td,
    .group-card-2019 th,
    .group-card-2019 td {
        padding: 6px 2px;
        font-size: 10.5px;
        line-height: 1.15;
    }

    .group-table th:nth-child(2),
    .group-table td:nth-child(2),
    .group-card-2019 th:nth-child(2),
    .group-card-2019 td:nth-child(2) {
        min-width: 54px;
        overflow-wrap: anywhere;
    }

    .footballer-card-main strong {
        overflow: visible;
        text-overflow: clip;
        white-space: normal;
        overflow-wrap: anywhere;
        line-height: 1.2;
    }

    .participant-profile-identity,
    .footballer-profile-identity {
        width: 100%;
        min-width: 0;
    }

    .participant-profile-identity h1,
    .footballer-profile-identity h1,
    .participant-profile-identity .profile-representations,
    .footballer-profile-identity .profile-representations,
    .participant-profile-identity .profile-awards-showcase,
    .footballer-profile-identity .profile-awards-showcase {
        width: 100%;
        max-width: 100%;
        min-width: 0;
        box-sizing: border-box;
    }

    .participant-profile-identity h1,
    .footballer-profile-identity h1 {
        font-size: 30px;
        overflow-wrap: anywhere;
    }
}

/* Shared geometry must remain last so season-specific legacy rules cannot override it. */
body { color:var(--site-text); line-height:1.45; }
.page-title:not(.hall-title) { width:min(calc(100% - 32px),var(--site-container)); margin:0 auto; padding:48px 0 32px; }
.page-title h1 { margin-bottom:var(--site-space-2); font-size:clamp(32px,4vw,42px); line-height:1.15; }
.page-title p { max-width:720px; margin:0 auto; color:var(--site-muted); font-size:clamp(16px,2vw,18px); }
.players { width:min(calc(100% - 32px),var(--site-container)); grid-template-columns:repeat(auto-fit,minmax(220px,1fr)); gap:var(--site-space-4); padding-bottom:48px; }
.player-card { display:grid; grid-template-rows:120px 56px; align-content:center; justify-items:center; gap:var(--site-space-2); height:228px; min-height:228px; padding:20px var(--site-space-4); border:1px solid var(--site-border-soft); border-radius:var(--site-radius-lg); background:linear-gradient(145deg,var(--site-surface-raised),var(--site-surface-soft)); box-shadow:var(--site-shadow); transition:transform var(--site-transition),border-color var(--site-transition),box-shadow var(--site-transition); }
.players .player-card h2 { display:grid; align-items:center; min-height:56px; margin:0; font-size:clamp(20px,2vw,24px); line-height:1.15; }
.player-card:hover { transform:translateY(-4px); border-color:var(--site-accent); box-shadow:0 12px 28px rgba(0,0,0,.24); }
.profile,.profile-dashboard,.history,.statistics-table { width:min(calc(100% - 32px),var(--site-container-reading)); }
.profile-dashboard,.history,.statistics-table,.match-scoreboard,.events-card { border-color:var(--site-border-soft); border-radius:var(--site-radius-lg); background-color:var(--site-surface); box-shadow:var(--site-shadow); }
.profile-tablist { gap:var(--site-space-2); padding:var(--site-space-2); background:var(--site-surface-soft); }
.profile-tab,.protocol-video-link { border-radius:var(--site-radius-sm); }
.profile-tab.active { color:var(--site-accent); background:rgba(56,189,248,.12); }
.history th,.statistics-table th { color:var(--site-accent-light); background:var(--site-surface-raised); }
.tournament-page .season-navigation,.tournament-page>.season-overview,.tournament-page>.bracket,.tournament-page>.tournament-summary,.tournament-page .tournament-2018,.tournament-page .modern-tournament { width:min(calc(100% - 32px),var(--site-container)); margin-right:auto; margin-left:auto; }
.tournament-page .season-overview,
.tournament-page .compact-participants,
.tournament-page .group-stage,
.tournament-page .group-stage-2019,
.tournament-page .swiss-stage-2020,
.tournament-page .playoff-2018,
.tournament-page .tournament-summary,
.tournament-page .tournament-summary-2018,
.tournament-page .tournament-summary-2020 {
    width: 100%;
    max-width: var(--site-container);
    margin-right: auto;
    margin-left: auto;
}
.tournament-page .tournament-2018 > :first-child,
.tournament-page .modern-tournament > :first-child,
.tournament-page .tournament-2018 > * + *,
.tournament-page .modern-tournament > * + *,
.tournament-page > .bracket + .tournament-summary,
.tournament-page .tournament-2018 > .bracket + .tournament-summary,
.tournament-page .tournament-2018 > .playoff-2018 + .tournament-summary,
.tournament-2016-page > .bracket + .tournament-summary,
.tournament-page #tournament-2018 > .playoff-2018 + .tournament-summary {
    margin-top: var(--site-space-5);
}
.tournament-page .section-title-2018 {
    margin: 0 0 var(--site-space-2);
}
.tournament-page .section-note-2018 {
    margin: 0 auto var(--site-space-4);
}
.tournament-page .compact-participants,
.tournament-page .round-card,
.tournament-page .group-card,
.tournament-page .group-card-2019 {
    border-radius: var(--site-radius-lg);
}
.tournament-page .compact-participants {
    padding: var(--site-space-5);
}
.tournament-page .compact-participants > h2 {
    margin-bottom: var(--site-space-4);
}
.tournament-page .group-card,.tournament-page .group-card-2019,.tournament-page .round-card,.tournament-page .summary-block,.tournament-page .participant-award,.tournament-page .participant-item,.tournament-page .season-participant,.tournament-page .participant-2019-row,.tournament-page .swiss-record-group { border-color:var(--site-border); border-radius:var(--site-radius-md); box-shadow:var(--site-shadow); }
.tournament-page .section-title-2018,.tournament-page .playoff-title-standalone,.tournament-page .compact-participants>h2,.tournament-page .tournament-summary>h2 { color:var(--site-accent); font-size:clamp(24px,3vw,28px); line-height:1.2; }
.protocol-breadcrumbs,
.back-to-bracket,
.protocol-match-navigation,
.match-scoreboard,
.events-card {
    box-sizing: border-box;
    width: min(calc(100% - 32px), var(--site-container-reading));
    margin-right: auto;
    margin-left: auto;
}

.match-page > .back-to-bracket {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    margin-top: 0;
    margin-bottom: var(--site-space-4);
    padding: 10px 16px;
    border: 1px solid var(--site-border);
    border-radius: var(--site-radius-md);
    background: var(--site-surface);
    color: var(--site-accent-light);
    font-size: 13px;
    font-weight: 700;
    line-height: 1.3;
    text-align: center;
    text-decoration: none;
    transition: border-color var(--site-transition), background var(--site-transition), color var(--site-transition);
}

.match-page > .back-to-bracket:hover,
.match-page > .back-to-bracket:focus-visible {
    border-color: var(--site-accent);
    background: var(--site-surface-raised);
    color: #fff;
    outline: none;
}
@media(max-width:700px){.page-title:not(.hall-title){padding:32px 0 24px}.players{gap:var(--site-space-3)}.player-card{height:220px;min-height:220px;padding:16px}.tournament-page .season-navigation,.tournament-page>.season-overview,.tournament-page>.bracket,.tournament-page>.tournament-summary,.tournament-page .tournament-2018,.tournament-page .modern-tournament{width:min(calc(100% - 20px),var(--site-container))}}

/* Final entity-profile contract. Keep this after all legacy profile rules. */
.profile.participant-profile-hero,
.team-profile-hero,
.footballer-profile-page .footballer-profile-hero {
    box-sizing: border-box;
    width: min(calc(100% - 40px), 1120px);
    height: 328px;
    min-height: 328px;
    margin-right: auto;
    margin-left: auto;
    padding: 24px 34px;
    grid-template-columns: 230px minmax(0, 1fr) 280px;
    align-items: center;
    gap: 28px;
    overflow: hidden;
}
.footballer-profile-page,.team-profile-page{width:100%;padding-top:34px}
.profile.participant-profile-hero{margin-top:34px;margin-bottom:10px}
.footballer-profile-portrait,.team-profile-emblem,.participant-profile-portrait{width:200px;justify-self:center}
.footballer-profile-photo-frame,.team-profile-emblem-frame,.participant-profile-photo-frame{box-sizing:border-box;width:200px;height:220px}
.footballer-profile-page .footballer-profile-photo-frame{height:180px}
.footballer-profile-page .footballer-awards-showcase{margin-top:8px}
.participant-profile-identity,.team-profile-identity,.footballer-profile-identity{width:100%;min-width:0;align-content:center;justify-items:center;text-align:center}
.participant-profile-identity h1,.team-profile-identity h1,.footballer-profile-identity h1{display:grid;min-height:54px;margin:0 0 14px;place-items:center;font-size:clamp(32px,4vw,48px);line-height:1.05;text-align:center}
.footballer-profile-identity{min-width:0;overflow:hidden}
.footballer-profile-identity h1{display:flex;box-sizing:border-box;width:100%;min-width:0;max-width:100%;overflow:hidden;align-items:center;justify-content:center;white-space:nowrap;overflow-wrap:normal;word-break:normal}
.participant-profile-summary-card,.team-profile-summary-card{width:280px;height:220px;min-height:220px}
.footballer-position-card{width:280px;height:220px;align-content:center;overflow:hidden}
.footballer-pitch{width:130px;height:180px;aspect-ratio:auto}
.footballer-source-link{min-height:38px;transform:none}
.profile-dashboard,.team-profile-history,.footballer-cup-history{box-sizing:border-box;width:min(calc(100% - 40px),1120px);margin:18px auto 0}
.profile-dashboard{min-height:0;margin-bottom:55px}
.team-profile-history,.footballer-cup-history{padding:18px;border:1px solid var(--site-border-soft);border-radius:var(--site-radius-lg);background:var(--site-surface);box-shadow:var(--site-shadow)}
.profile-season-accordion,.team-season,.footballer-season{box-sizing:border-box;overflow:hidden;border:1px solid var(--site-border);border-radius:var(--site-radius-md);background:var(--site-surface-soft);box-shadow:none}
.profile-season-toggle,.team-season>summary,.footballer-season>summary{box-sizing:border-box;min-height:52px;padding:10px 16px}
.profile-season-toggle>span:first-child,.team-season>summary>span,.footballer-season>summary>span{font-size:14px;font-weight:800;line-height:1.2}
.profile-season-content{padding:12px}
.team-season-participants,.footballer-event-list{padding:0 12px 12px}
.profile-season-section,.team-season-participant,.footballer-event{border-radius:var(--site-radius-sm);background:rgba(2,6,23,.28)}
.footballer-section-title{min-height:34px;margin:0 0 12px}.footballer-section-title h2{margin:0;font-size:23px;line-height:34px}
.footballer-bingo-section{box-sizing:border-box;width:min(calc(100% - 40px),1120px);margin:18px auto 0;padding:18px;border:1px solid var(--site-border-soft);border-radius:var(--site-radius-lg);background:var(--site-surface);box-shadow:var(--site-shadow)}
.footballer-bingo-title{display:flex;align-items:center;justify-content:space-between;gap:14px}
.footballer-bingo-open{display:inline-flex;min-height:34px;align-items:center;padding:0 14px;border-radius:999px;background:var(--site-accent);color:#fff;font-size:13px;font-weight:800;text-decoration:none}
.footballer-bingo-criteria{display:flex;flex-wrap:wrap;justify-content:center;gap:7px;margin:0 0 15px}
.footballer-bingo-criteria a{padding:6px 10px;border:1px solid var(--site-border-soft);border-radius:999px;background:var(--site-surface-soft);color:var(--site-text);font-size:12px;font-weight:750;text-decoration:none}
.footballer-bingo-cards{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:12px}
.footballer-bingo-card{display:grid;box-sizing:border-box;width:100%;min-width:0;justify-items:center;align-content:start;gap:6px;padding:10px;border:1px solid var(--site-border-soft);border-radius:14px;background:var(--site-surface-soft);color:var(--site-text);text-align:center;text-decoration:none;transition:transform .16s ease,border-color .16s ease}
.footballer-bingo-card:hover{transform:translateY(-2px);border-color:var(--site-accent)}
.footballer-bingo-card img{display:block;width:120px;height:180px;object-fit:contain}
.footballer-bingo-card > span:last-child{display:grid;gap:2px}.footballer-bingo-card small{color:var(--site-text-muted)}
.footballer-bingo-card.footballer-bingo-photo-frame {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 0;
    width: 100%;
    aspect-ratio: 2 / 3;
    padding: 8px;
    overflow: hidden;
    border: 1px solid rgba(246, 178, 59, .52);
    border-radius: 16px;
    background:
        radial-gradient(circle at 50% 12%, rgba(246, 178, 59, .2), transparent 38%),
        linear-gradient(155deg, #1b2b46 0%, #101a2d 48%, #080e1b 100%);
    color: #f8fafc;
    max-width: 240px;
    justify-self: start;
    box-shadow: 0 12px 24px rgba(1, 5, 16, .36), inset 0 0 0 1px rgba(255, 255, 255, .05);
}

.footballer-bingo-card.footballer-bingo-photo-frame::before {
    position: absolute;
    inset: 0;
    pointer-events: none;
    content: "";
    background: linear-gradient(130deg, rgba(255, 255, 255, .08), transparent 32%, transparent 70%, rgba(246, 178, 59, .08));
}

.footballer-bingo-card.footballer-bingo-photo-frame:hover,
.footballer-bingo-card.footballer-bingo-photo-frame:focus-visible {
    border-color: #f6b23b;
    box-shadow: 0 16px 30px rgba(1, 5, 16, .48), 0 0 0 2px rgba(246, 178, 59, .16);
    outline: none;
    transform: translateY(-2px);
}

.footballer-bingo-photo-frame .bingo-photo-frame-media {
    position: relative;
    display: block;
    flex: 1 1 auto;
    width: 100%;
    min-height: 0;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, .1);
    border-radius: 11px 11px 9px 9px;
    background:
        radial-gradient(circle at 50% 35%, rgba(67, 126, 190, .22), transparent 58%),
        linear-gradient(180deg, rgba(255, 255, 255, .05), rgba(3, 8, 18, .22));
}

.footballer-bingo-photo-frame .bingo-photo-frame-media::after {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    height: 32%;
    pointer-events: none;
    content: "";
    background: linear-gradient(180deg, transparent, rgba(5, 10, 20, .22));
}

.footballer-bingo-photo-frame .bingo-photo-frame-details {
    position: relative;
    display: grid;
    gap: 4px;
    width: 100%;
    min-height: 42px;
    padding: 8px 3px 2px;
}
.footballer-bingo-photo-frame img {
    width: 100%;
    height: 100%;
    min-height: 0;
    object-fit: contain;
    object-position: center bottom;
    border-radius: 0;
}
.footballer-bingo-photo-frame .bingo-photo-frame-flag,
.footballer-bingo-photo-frame .bingo-photo-frame-name {
    width: 100%;
}
.footballer-bingo-photo-frame .bingo-photo-frame-flag img {
    width: 34px;
    height: 22px;
    object-fit: contain;
}
.footballer-bingo-card-photo .bingo-photo-frame {
    width: 120px;
    height: 180px;
    box-sizing: border-box;
    aspect-ratio: auto;
    flex: none;
}
.footballer-bingo-card-photo .bingo-photo-frame:hover {
    border-color: rgba(246, 178, 59, .52);
    box-shadow: 0 12px 24px rgba(1, 5, 16, .36), inset 0 0 0 1px rgba(255, 255, 255, .05);
    transform: none;
}
.footballer-bingo-card-photo .bingo-photo-frame-media {
    display: block;
    width: 100%;
    min-height: 0;
}
.footballer-bingo-card-photo .bingo-photo-frame-media > img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center bottom;
}
.footballer-bingo-card-photo .bingo-photo-frame-details {
    display: grid;
    width: 100%;
    min-height: 42px;
}
.footballer-bingo-card-photo .bingo-photo-frame-flag {
    display: flex;
    width: 100%;
    height: 22px;
}
.footballer-bingo-card-photo .bingo-photo-frame-flag > img {
    width: 34px;
    height: 22px;
    object-fit: contain;
}
.footballer-bingo-card-caption {
    width: 100%;
    min-height: 42px;
    justify-items: center;
    align-content: start;
}
.footballer-bingo-category-logo {
    display: grid;
    width: 100%;
    min-height: 27px;
    place-items: center;
}
.footballer-bingo-card .footballer-bingo-category-logo > img {
    width: 27px;
    height: 27px;
    object-fit: contain;
}
.bingo-photo-frame.is-custom-profile-card {
    padding: 0;
    overflow: visible;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}
.bingo-photo-frame.is-custom-profile-card::before {
    display: none;
}
.bingo-photo-frame.is-custom-profile-card:hover,
.bingo-photo-frame.is-custom-profile-card:focus-visible,
.bingo-gallery-player.is-targeted .bingo-photo-frame.is-custom-profile-card {
    border: 0;
    background: transparent;
    box-shadow: none;
}
.bingo-photo-frame.is-custom-profile-card > img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
}
.footballer-bingo-card-photo .footballer-bingo-custom-profile-card {
    width: 120px;
    height: 180px;
    object-fit: contain;
    object-position: center;
}
@media(max-width:1000px) and (min-width:701px){.footballer-bingo-cards{grid-template-columns:repeat(4,minmax(0,1fr))}}
.footballer-profile-switcher{box-sizing:border-box;display:grid;width:min(calc(100% - 40px),1120px);grid-template-columns:repeat(2,minmax(0,1fr));gap:6px;margin:18px auto 0;padding:6px;border:1px solid var(--site-border-soft);border-radius:var(--site-radius-lg);background:var(--site-surface);box-shadow:var(--site-shadow)}
.footballer-profile-switcher button{min-height:46px;padding:9px 16px;border:0;border-radius:calc(var(--site-radius-lg) - 5px);background:transparent;color:var(--site-text-muted);font:inherit;font-size:14px;font-weight:800;cursor:pointer;transition:background .16s ease,color .16s ease}
.footballer-profile-switcher button:hover{color:var(--site-text);background:var(--site-surface-soft)}
.footballer-profile-switcher button.active{color:var(--site-accent);background:rgba(56,189,248,.12)}
.footballer-profile-switcher button:focus-visible{outline:2px solid var(--site-accent);outline-offset:2px}
.footballer-profile-panel[hidden]{display:none}
.footballer-profile-panel .footballer-bingo-section,.footballer-profile-panel .footballer-cup-history{margin-top:12px}
.footballer-profile-empty{min-height:92px;display:grid;place-items:center;text-align:center;color:var(--site-text-muted)}
.footballer-profile-empty p{margin:0}
@media(max-width:700px){.footballer-bingo-section{width:min(calc(100% - 24px),1120px);padding:14px}.footballer-bingo-title{align-items:stretch;flex-direction:column;text-align:center}.footballer-bingo-open{justify-content:center}.footballer-bingo-cards{grid-template-columns:repeat(2,minmax(0,1fr))}.footballer-bingo-card img{width:110px;height:165px}.footballer-bingo-card-photo .bingo-photo-frame{width:110px;height:165px}}
@media(max-width:700px){.footballer-profile-switcher{width:min(calc(100% - 24px),1120px);grid-template-columns:1fr;padding:5px}.footballer-profile-switcher button{min-height:42px;font-size:13px}}
@media(max-width:860px){.profile.participant-profile-hero,.team-profile-hero,.footballer-profile-page .footballer-profile-hero{display:grid;width:min(calc(100% - 24px),1120px);height:auto;min-height:0;grid-template-columns:1fr;gap:18px;padding:22px 14px;overflow:visible}.profile-dashboard,.team-profile-history,.footballer-cup-history{width:min(calc(100% - 24px),1120px)}.footballer-position-card{height:auto;min-height:220px}}

/* One compact seven-column statistics grid for every participant season. */
.profile-season-section table.profile-season-statistics {
    width: 100%;
    min-width: 0;
    border-collapse: separate;
    border-spacing: 6px 0;
    table-layout: fixed;
}
.profile-season-statistics th,
.profile-season-statistics td {
    box-sizing: border-box;
    height: 42px;
    padding: 6px 4px;
    border: 1px solid var(--site-border-soft);
    text-align: center;
    vertical-align: middle;
}
.profile-season-statistics th {
    border-bottom: 0;
    border-radius: var(--site-radius-sm) var(--site-radius-sm) 0 0;
    background: rgba(15,23,42,.82);
    color: var(--site-muted);
    font-size: 10px;
    font-weight: 800;
    line-height: 1.15;
    text-transform: uppercase;
    overflow-wrap: anywhere;
}
.profile-season-statistics td {
    border-radius: 0 0 var(--site-radius-sm) var(--site-radius-sm);
    background: var(--site-surface-raised);
    color: var(--site-text);
    font-size: 16px;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
    line-height: 1;
}
@media(max-width:620px){
    .profile-season-section .profile-season-statistics{border-spacing:3px 0}
    .profile-season-statistics th{height:46px;padding:4px 2px;font-size:8px;line-height:1.1}
    .profile-season-statistics td{height:38px;padding:4px 2px;font-size:14px}
}

/* Final statistics-page geometry. Every tab, filter and result shares the
   same 1120px track and the ranking tables use fixed, symmetric columns. */
.stats-hub {
    box-sizing: border-box;
    width: min(calc(100% - 40px), 1120px);
    margin: 0 auto 65px;
}
.stats-primary-tabs {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    min-height: 66px;
    margin: 0 0 16px;
    padding: 7px;
    border: 1px solid var(--site-border-soft);
    border-radius: var(--site-radius-lg);
    background: var(--site-surface);
    box-shadow: var(--site-shadow);
}
.stats-tab {
    box-sizing: border-box;
    width: 100%;
    min-width: 0;
    min-height: 50px;
    padding: 10px 14px;
    border-radius: var(--site-radius-md);
}
.stats-primary-panel.active {
    width: 100%;
}
.stats-primary-panel > .stats-subtabs {
    box-sizing: border-box;
    width: 100%;
    min-height: 52px;
    margin: 0 0 16px;
    padding: 6px;
    gap: 6px;
    border: 1px solid var(--site-border-soft);
    border-radius: var(--site-radius-md);
    background: var(--site-surface-soft);
}
.stats-primary-panel > .stats-subtabs button {
    box-sizing: border-box;
    width: 100%;
    min-height: 40px;
    padding: 8px 10px;
    border-radius: var(--site-radius-sm);
}
.stats-footballer-filters {
    box-sizing: border-box;
    width: 100%;
    min-height: 84px;
    margin: 0 0 16px;
    padding: 12px;
    gap: 10px;
    border-color: var(--site-border-soft);
    border-radius: var(--site-radius-md);
    background: var(--site-surface-soft);
}
.stats-footballer-filters label,
.stats-footballer-filters > a {
    min-width: 0;
}
.stats-visual-filter summary,
.stats-footballer-filters > a {
    box-sizing: border-box;
    width: 100%;
    min-height: 42px;
}
.stats-primary-panel .stats-footballer-filters > a {
    place-items: center;
}
.stats-table-panel.active,
.stats-result,
.statistics-table.stats-result {
    box-sizing: border-box;
    width: 100%;
    max-width: none;
    margin: 0;
}
.statistics-table.stats-result {
    padding: 20px;
    overflow: hidden;
    border: 1px solid var(--site-border-soft);
    border-radius: var(--site-radius-lg);
    background: var(--site-surface);
    box-shadow: var(--site-shadow);
}
.statistics-table.stats-result > h2 {
    display: grid;
    min-height: 38px;
    margin: 0 0 14px;
    place-items: center;
    color: var(--site-accent);
    font-size: 22px;
    line-height: 1.2;
}
.statistics-table.stats-result table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    table-layout: fixed;
}
.participant-ranking-table .rank-col,
.participant-ranking-table .value-col,
.footballer-ranking-table .rank-col,
.footballer-ranking-table .value-col {
    width: 110px;
}
.statistics-table.stats-result th {
    box-sizing: border-box;
    height: 46px;
    padding: 8px 12px;
    vertical-align: middle;
    background: var(--site-surface-raised);
    color: var(--site-accent-light);
    font-size: 11px;
    line-height: 1.15;
    text-align: center;
    text-transform: uppercase;
}
.participant-ranking-table td,
.footballer-ranking-table td {
    box-sizing: border-box;
    height: 76px;
    padding: 6px 12px;
    vertical-align: middle;
    text-align: center;
}
.statistics-table.stats-result tbody tr:last-child td {
    border-bottom: 0;
}
.statistics-table.stats-result tbody tr:hover {
    background-color: rgba(56,189,248,.06);
}
@media(max-width:700px){
    .stats-hub{width:min(calc(100% - 20px),1120px)}
    .stats-primary-tabs{grid-template-columns:repeat(3,minmax(0,1fr));min-height:58px}
    .stats-tab{min-height:44px;padding:6px 4px;font-size:11px}
    .stats-tab-icon{width:20px;height:20px;flex-basis:20px}
    .statistics-table.stats-result{padding:10px}
    .stats-result{overflow-x:auto}
    .stats-fifer-overview table{min-width:1120px}
    .participant-ranking-table table,.footballer-ranking-table table,.team-ranking-table table{min-width:620px}
}

/* Final Swiss-header geometry: the record counters share exactly the same
   full-width column track as the match groups below them. */
.tournament-page .round-card-2020-compact > .round-heading-2020 {
    grid-template-columns: 1fr;
    grid-template-rows: 35px auto;
    gap: var(--site-space-2);
    min-height: 0;
}

/* Compact navigation through long tournament pages. */
.tournament-section-nav {
    position: sticky;
    z-index: 24;
    top: 8px;
    width: min(calc(100% - 32px), var(--site-container));
    margin: var(--site-space-4) auto var(--site-space-5);
    padding: 6px;
    overflow-x: auto;
    border: 1px solid var(--site-border);
    border-radius: var(--site-radius-md);
    background: rgba(15, 23, 42, .94);
    box-shadow: 0 8px 24px rgba(0, 0, 0, .22);
    scrollbar-width: none;
    backdrop-filter: blur(12px);
}
.tournament-section-nav::-webkit-scrollbar {
    display: none;
}
.tournament-section-nav > div {
    display: flex;
    width: max-content;
    min-width: 100%;
    justify-content: center;
    gap: 4px;
}
.tournament-section-nav a {
    display: grid;
    min-height: 34px;
    place-items: center;
    padding: 7px 12px;
    border-radius: 8px;
    color: #cbd5e1;
    font-size: 12px;
    font-weight: 750;
    line-height: 1.1;
    text-decoration: none;
    white-space: nowrap;
    transition: background .18s ease, color .18s ease;
}
.tournament-section-nav a:hover,
.tournament-section-nav a:focus-visible,
.tournament-section-nav a.is-active {
    background: rgba(56, 189, 248, .14);
    color: var(--site-accent-light);
    outline: none;
}
.tournament-scroll-target {
    scroll-margin-top: 64px;
}
.tournament-podium-title {
    width: 100%;
    margin: 0 0 var(--site-space-4);
    text-align: center;
}

/* One vertical rhythm for every top-level tournament section. */
.tournament-page .tournament-layout-section {
    margin-top: 0;
    margin-bottom: 0;
}
.tournament-page .tournament-layout-section + .tournament-layout-section {
    margin-top: var(--site-space-5);
}
.tournament-page > .season-overview:has(> .podium.tournament-layout-section)
    + .compact-participants.tournament-layout-section {
    margin-top: var(--site-space-5);
}
.tournament-page .tournament-section-nav + .tournament-layout-section,
.tournament-page .tournament-section-nav + main > .tournament-layout-section:first-child {
    margin-top: 0;
}
.tournament-page .tournament-legacy-playoff {
    width: min(calc(100% - 32px), var(--site-container));
    margin-right: auto;
    margin-left: auto;
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
}
.tournament-page .tournament-legacy-playoff > .bracket {
    margin-top: var(--site-space-4);
    margin-bottom: 0;
}
@media (max-width: 700px) {
    .tournament-page .tournament-layout-section + .tournament-layout-section {
        margin-top: var(--site-space-4);
    }
    .tournament-page > .season-overview:has(> .podium.tournament-layout-section)
        + .compact-participants.tournament-layout-section {
        margin-top: var(--site-space-4);
    }
    .tournament-page .tournament-legacy-playoff {
        width: min(calc(100% - 20px), var(--site-container));
    }
}
@media (max-width: 700px) {
    .tournament-section-nav {
        top: 4px;
        width: min(calc(100% - 20px), var(--site-container));
        margin-block: var(--site-space-3) var(--site-space-4);
    }
    .tournament-section-nav > div {
        justify-content: flex-start;
    }
    .tournament-section-nav a {
        min-height: 32px;
        padding-inline: 10px;
        font-size: 11px;
    }
}
.tournament-page .round-card-2020-compact > .round-heading-2020::after {
    display: none;
}
.tournament-page .round-card-2020-compact > .round-heading-2020 > span {
    grid-column: 1;
    grid-row: 1;
    justify-self: start;
}
.tournament-page .round-card-2020-compact > .round-heading-2020 > h2 {
    grid-column: 1;
    grid-row: 2;
    grid-template-columns: repeat(var(--record-columns), minmax(0, 1fr));
    gap: 14px;
    min-height: 18px;
}
.tournament-page .round-card-2020-compact > .round-heading-2020 > h2 > b {
    display: grid;
    min-width: 0;
    min-height: 24px;
    place-items: center;
    border-radius: var(--site-radius-sm);
    background: rgba(56, 189, 248, .08);
    font-variant-numeric: tabular-nums;
    line-height: 1;
}

/* Unified group-stage geometry for 2018–2026. */
.tournament-page .group-stage .groups-grid,
.tournament-page .group-stage-2019 .groups-2019,
.tournament-page .group-stage .groups-2022-grid,
.tournament-page .group-stage-2019 .groups-2022-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: stretch;
    gap: 18px;
    margin-bottom: 28px;
}
.tournament-page .group-card,
.tournament-page .group-card-2019,
.tournament-page .group-stage-card {
    min-width: 0;
    height: 100%;
    overflow: hidden;
    padding: 0;
    border: 1px solid var(--site-border);
    border-radius: var(--site-radius-md);
    background: var(--site-surface);
    box-shadow: var(--site-shadow);
}
.tournament-page .group-card > h2,
.tournament-page .group-card-2019 > h3,
.tournament-page .group-stage-card > h2 {
    display: grid;
    min-height: 53px;
    place-items: center;
    margin: 0;
    padding: 13px;
    color: var(--site-accent-light);
    background: var(--site-surface-raised);
    font-size: 19px;
    line-height: 1.2;
}
.tournament-page .group-table,
.tournament-page .group-card-2019 table,
.tournament-page .group-standings {
    width: 100%;
    margin: 0;
    border-collapse: collapse;
    table-layout: auto;
}
.tournament-page .group-table th,
.tournament-page .group-table td,
.tournament-page .group-card-2019 th,
.tournament-page .group-card-2019 td,
.tournament-page .group-standings th,
.tournament-page .group-standings td {
    height: 39px;
    padding: 8px 6px;
    border-width: 0 0 1px;
    border-style: solid;
    border-color: rgba(255, 255, 255, .06);
    font-size: 12px;
    line-height: 1.2;
    text-align: center;
}
.tournament-page .group-table th:nth-child(2),
.tournament-page .group-table td:nth-child(2),
.tournament-page .group-card-2019 th:nth-child(2),
.tournament-page .group-card-2019 td:nth-child(2),
.tournament-page .group-standings th:nth-child(2),
.tournament-page .group-standings td:nth-child(2) {
    text-align: left;
}
@media (max-width: 900px) {
    .tournament-page .group-stage .groups-grid,
    .tournament-page .group-stage-2019 .groups-2019,
    .tournament-page .group-stage .groups-2022-grid,
    .tournament-page .group-stage-2019 .groups-2022-grid {
        grid-template-columns: 1fr;
        gap: var(--site-space-4);
    }
}
.playoff-series-scores.is-bo3{position:relative}.playoff-series-scores.is-bo3::before{content:none}.playoff-series-scores.is-bo3>a{min-width:18px;text-align:center}
.tournament-page .bracket article.match>.separator:has(.series-summary){overflow:visible;position:relative}.series-summary{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);z-index:2;min-width:30px;padding:3px 6px;border:1px solid rgba(143,215,255,.42);border-radius:999px;background:#081a2d;color:#fff;font-size:11px;font-weight:800;line-height:1;text-align:center;box-shadow:0 2px 8px rgba(0,0,0,.28)}.tournament-page .bracket .team:is(.winner,.series-winner) .player,.tournament-page .bracket .team:is(.winner,.series-winner) .player a{color:#8fe7bd}.tournament-page .bracket .team:is(.winner,.series-winner) .player a:hover,.tournament-page .bracket .team:is(.winner,.series-winner) .player a:focus-visible{color:#38bdf8}
.tournament-page a[id^="match-"]:target{position:relative;z-index:4;outline:2px solid rgba(143,215,255,.92);outline-offset:4px;border-radius:6px;animation:match-target-pulse 1.8s ease-out 1}@keyframes match-target-pulse{0%{box-shadow:0 0 0 0 rgba(64,190,255,.6)}70%{box-shadow:0 0 0 12px rgba(64,190,255,0)}100%{box-shadow:none}}@media(prefers-reduced-motion:reduce){.tournament-page a[id^="match-"]:target{animation:none}}

/* Keep every top-level navigation section on the same visual rhythm. */
.site-main-nav {
    column-gap: 6px;
    row-gap: 6px;
}

.site-main-nav > a,
.site-main-nav > .dropdown,
.site-main-nav > .site-search-trigger {
    box-sizing: border-box;
    margin: 0;
}

@media (min-width: 901px) {
    .site-main-nav {
        display: grid;
        grid-auto-flow: column;
        grid-auto-columns: minmax(0, 1fr);
        width: 100%;
        max-width: 1050px;
        flex: 1 1 0;
    }

    .site-main-nav > a,
    .site-main-nav > .dropdown,
    .site-main-nav > .site-search-trigger {
        width: 100%;
        min-width: 0;
        max-width: none;
        justify-self: stretch;
    }
}

/* Canonical final overrides for directory metadata and every shared filter. */
.footballer-card-main small.footballer-card-country,
.footballer-card-main small.footballer-card-role,
.footballer-card-country span,
.footballer-card-role span {
    overflow: visible;
    text-overflow: clip;
    white-space: normal;
    overflow-wrap: break-word;
}

.multi-filter summary span,
.multi-filter-options span {
    overflow: visible;
    text-overflow: clip;
    white-space: normal;
    overflow-wrap: break-word;
}
