.kf-bracket-page {
    padding: 32px 0 48px;
    width: 100%;
}

.kf-bracket-page .kf-inner-shell {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.kf-bracket-page__header {
    margin-bottom: 20px;
}

.kf-bracket-page .kf-page-header h1 {
    margin-bottom: 10px;
}

.kf-bracket-page .kf-page-header p:last-child {
    max-width: 980px;
    color: #5f6b66;
}

.kf-bracket-page .kf-tabs {
    background: #0b2e1f;
    border-radius: 10px;
    padding: 6px;
    display: flex;
    gap: 2px;
    margin-bottom: 16px;
    position: sticky;
    top: 16px;
    z-index: 5;
}

.kf-bracket-page .kf-tab {
    flex: 1;
    padding: 10px 4px;
    text-align: center;
    font-size: 13px;
    font-weight: 700;
    border-radius: 7px;
    cursor: pointer;
    color: #9fc7ad;
    background: transparent;
    border: none;
    font-family: inherit;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.kf-bracket-page .kf-tab.active,
.kf-bracket-page .kf-tab:focus-visible {
    background: #1a6b55;
    color: #fff;
    outline: none;
}

.kf-bracket-page .kf-scroll {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x proximity;
    padding-bottom: 8px;
}

.kf-bracket-page .kf-row {
    display: inline-flex;
    gap: 24px;
    align-items: flex-start;
    min-width: max-content;
    padding-bottom: 6px;
}

.kf-bracket-page .kf-box-link {
    display: block;
    text-decoration: none;
}

.kf-bracket-page .kf-box {
    width: 102px;
    border: 1px solid #e2e2e0;
    border-radius: 10px;
    background: #fff;
    padding: 7px 9px;
    margin-bottom: 20px;
    font-size: 12px;
    flex-shrink: 0;
    scroll-snap-align: start;
    box-shadow: 0 8px 22px rgba(13, 48, 34, 0.06);
}

.kf-bracket-page .kf-box-link:hover .kf-box {
    border-color: #1a6b55;
    box-shadow: 0 10px 24px rgba(26, 107, 85, 0.12);
}

.kf-bracket-page .kf-box.tbd {
    border-style: dashed;
    opacity: 0.72;
    box-shadow: none;
}

.kf-bracket-page .kf-team-row {
    display: flex;
    justify-content: space-between;
    padding: 2px 0;
    font-weight: 700;
    color: #18221d;
    line-height: 1.2;
}

.kf-bracket-page .kf-team-row.is-tbd {
    color: #8b948f;
    font-weight: 500;
}

.kf-bracket-page .kf-team-row.is-loser {
    color: #a2aaa5;
    font-weight: 500;
    text-decoration: line-through;
}

.kf-bracket-page .kf-meta {
    font-size: 10px;
    color: #8b948f;
    margin-top: 5px;
    border-top: 1px solid #eee;
    padding-top: 5px;
    line-height: 1.35;
}

.kf-bracket-page .kf-tree {
    display: flex;
    align-items: center;
}

.kf-bracket-page .kf-kids {
    display: flex;
    flex-direction: column;
}

.kf-bracket-page .kf-branch {
    flex: 1;
    display: flex;
    align-items: center;
    position: relative;
}

.kf-bracket-page .kf-branch::after {
    content: '';
    position: absolute;
    right: -18px;
    width: 18px;
    height: 50%;
    border-right: 2px solid #1a6b55;
}

.kf-bracket-page .kf-branch:first-child::after {
    top: 50%;
    border-top: 2px solid #1a6b55;
}

.kf-bracket-page .kf-branch:last-child::after {
    bottom: 50%;
    border-bottom: 2px solid #1a6b55;
}

.kf-bracket-page .kf-box-wrap {
    margin-left: 18px;
}

.kf-bracket-page .kf-gs-col {
    width: 210px;
    flex-shrink: 0;
    scroll-snap-align: start;
}

.kf-bracket-page .kf-gs-row {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 0;
    border-bottom: 1px solid #f0f0ee;
    flex-wrap: wrap;
}

.kf-bracket-page .kf-grp-chip {
    width: 20px;
    height: 20px;
    border-radius: 4px;
    background: #1a6b55;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.kf-bracket-page .kf-team {
    font-size: 11px;
    line-height: 1;
    padding: 4px 6px;
    border-radius: 4px;
    text-decoration: none;
}

.kf-bracket-page .kf-team.q {
    color: #0f6e56;
    font-weight: 700;
    background: #e1f5ee;
}

.kf-bracket-page .kf-team.out {
    color: #a2aaa5;
    text-decoration: line-through;
}

.kf-bracket-page .kf-team:focus-visible {
    outline: 2px solid #1a6b55;
    outline-offset: 2px;
}

@media (min-width: 922px) {
    .kf-bracket-page {
        padding: 36px 0 60px;
    }

    .kf-bracket-page .kf-inner-shell {
        max-width: 1200px;
        padding-left: 24px;
        padding-right: 24px;
    }

    .kf-bracket-page .kf-page-header {
        margin-bottom: 26px;
    }

    .kf-bracket-page .kf-page-header h1 {
        font-size: 3.25rem;
        line-height: 1.08;
        margin-bottom: 14px;
    }

    .kf-bracket-page .kf-page-header p:first-child {
        font-size: 1rem;
        margin-bottom: 14px;
    }

    .kf-bracket-page .kf-page-header p:last-child {
        font-size: 1.25rem;
        line-height: 1.5;
        max-width: 920px;
    }

    .kf-bracket-page .kf-tabs {
        padding: 8px;
        border-radius: 12px;
        margin-bottom: 22px;
    }

    .kf-bracket-page .kf-tab {
        font-size: 1.15rem;
        padding: 14px 10px;
        border-radius: 9px;
    }

    .kf-bracket-page .kf-row {
        gap: 28px;
        padding-bottom: 16px;
    }

    .kf-bracket-page .kf-gs-col {
        width: 260px;
    }

    .kf-bracket-page .kf-gs-row {
        gap: 8px;
        padding: 8px 0;
    }

    .kf-bracket-page .kf-grp-chip {
        width: 26px;
        height: 26px;
        border-radius: 6px;
        font-size: 0.875rem;
    }

    .kf-bracket-page .kf-team {
        font-size: 0.95rem;
        padding: 6px 9px;
        border-radius: 6px;
    }

    .kf-bracket-page .kf-box {
        width: 126px;
        min-height: 108px;
        padding: 10px 12px;
        font-size: 1rem;
        border-radius: 12px;
    }

    .kf-bracket-page .kf-team-row {
        padding: 3px 0;
        line-height: 1.18;
    }

    .kf-bracket-page .kf-meta {
        font-size: 0.8125rem;
        margin-top: 8px;
        padding-top: 8px;
        line-height: 1.4;
    }

    .kf-bracket-page .kf-box-wrap {
        margin-left: 18px;
    }

    .kf-bracket-page .kf-branch::after {
        right: -18px;
        width: 18px;
        border-right-width: 2px;
    }

    .kf-bracket-page .kf-branch:first-child::after {
        border-top-width: 2px;
    }

    .kf-bracket-page .kf-branch:last-child::after {
        border-bottom-width: 2px;
    }
}
