.matchday-heading {
    justify-content: space-between;
    gap: 20px;
}

.matchday-heading__action {
    min-height: 38px;
    padding: 0 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #162b6f;
    border: 1px solid #36516f;
    color: #ffffff;
    font-size: 12px;
    font-weight: 800;
    line-height: 1;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.matchday-heading__action:hover,
.matchday-heading__action:focus-visible {
    background: #1c3689;
    border-color: #4a6d93;
    color: #ffffff;
}

.leaderboard-intro {
    min-height: 78px;
    padding: 18px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    background: #0d1a2c;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.leaderboard-intro span,
.leaderboard-summary span {
    color: #91a0b4;
    font-size: 10px;
    font-weight: 800;
    line-height: 1;
    text-transform: uppercase;
    letter-spacing: 0.09em;
}

.leaderboard-intro h2 {
    margin: 6px 0 0;
    color: var(--ffo-gold);
    font-size: 24px;
    font-weight: 900;
    line-height: 1;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.leaderboard-groups {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    background: #081321;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.leaderboard-groups__item {
    position: relative;
    min-height: 60px;
    padding: 0 14px;
    appearance: none;
    background: transparent;
    border: 0;
    color: #94a1b2;
    font: inherit;
    font-size: 14px;
    font-weight: 800;
    line-height: 1;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    cursor: pointer;
}

.leaderboard-groups__item::after {
    content: "";
    position: absolute;
    right: 45px;
    bottom: 0;
    left: 45px;
    height: 3px;
    background: transparent;
}

.leaderboard-groups__item:hover,
.leaderboard-groups__item--selected {
    color: #ffffff;
}

.leaderboard-groups__item--selected::after {
    background: var(--ffo-gold);
}

.leaderboard-content {
    min-height: 420px;
    background: #07111f;
}

.leaderboard-summary {
    min-height: 72px;
    padding: 12px 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    background: #0b1728;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.leaderboard-summary > div {
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.leaderboard-summary strong {
    color: #ffffff;
    font-size: 16px;
    font-weight: 800;
    line-height: 1;
}

.leaderboard-summary p {
    max-width: 650px;
    margin: 0;
    color: #8998ac;
    font-size: 11px;
    font-weight: 600;
    line-height: 1.4;
    text-align: right;
}

.leaderboard-grid {
    padding: 18px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.leaderboard-card {
    min-width: 0;
    background: #081321;
    border: 1px solid #1c3149;
}

.leaderboard-card h3 {
    min-height: 50px;
    margin: 0;
    padding: 0 14px;
    display: flex;
    align-items: center;
    background: #0d1a2c;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--ffo-gold);
    font-size: 14px;
    font-weight: 800;
    line-height: 1;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.leaderboard-card__list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.leaderboard-player {
    min-width: 0;
    min-height: 62px;
    padding: 6px 10px;
    display: grid;
    grid-template-columns: 26px 48px minmax(0, 1fr) 34px 105px;
    align-items: center;
    gap: 8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.leaderboard-player:nth-child(even) {
    background: #0a1626;
}

.leaderboard-player:last-child {
    border-bottom: 0;
}

.leaderboard-player__rank {
    color: #76869b;
    font-size: 12px;
    font-weight: 800;
    text-align: center;
}

.leaderboard-player__image-wrap {
    width: 46px;
    height: 46px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #101f33;
    border: 1px solid #233b57;
}

.leaderboard-player__image {
    width: 46px;
    height: 46px;
    display: block;
    object-fit: cover;
}

.leaderboard-player__identity,
.leaderboard-player__numbers {
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.leaderboard-player__identity {
    gap: 4px;
}

.leaderboard-player__identity strong {
    overflow: hidden;
    color: #ffffff;
    font-size: 12px;
    font-weight: 800;
    line-height: 1.05;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.leaderboard-player__identity span {
    overflow: hidden;
    color: #8190a3;
    font-size: 9px;
    font-weight: 600;
    line-height: 1;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.leaderboard-player__club {
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.leaderboard-player__club-logo {
    width: 31px;
    height: 31px;
    display: block;
    object-fit: contain;
}

.leaderboard-player__numbers {
    align-items: flex-end;
    gap: 4px;
    text-align: right;
}

.leaderboard-player__numbers strong {
    color: var(--ffo-gold);
    font-size: 18px;
    font-weight: 900;
    line-height: 1;
}

.leaderboard-player__numbers span {
    color: #8b99ac;
    font-size: 9px;
    font-weight: 700;
    line-height: 1;
    white-space: nowrap;
}

.leaderboard-player--empty {
    min-height: 62px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #718095;
    font-size: 12px;
    font-weight: 700;
}

.leaderboard-groups__item:focus-visible,
.matchday-heading__action:focus-visible {
    outline: 2px solid var(--ffo-gold);
    outline-offset: -3px;
}
