:root {
    --bs-bg: #07090c;
    --bs-panel: #101318;
    --bs-panel-2: #151920;
    --bs-line: #2b313b;
    --bs-line-soft: rgba(111, 122, 137, .22);
    --bs-text: #f5f8fb;
    --bs-muted: #919aa6;
    --bs-ice: #c0d1df;
    --bs-ruby: #ec0750;
    --bs-violet: #ff3d78;
    --bs-green: #36d6a2;
}

.h2h-league-stats-page {
    background: var(--bs-bg);
}

.bstat-main {
    min-width: 0;
    display: grid;
    align-content: start;
    gap: 14px;
    color: var(--bs-text);
}

.bstat-command {
    position: relative;
    isolation: isolate;
    min-height: 194px;
    overflow: hidden;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 30px;
    padding: 30px 32px;
    border: 1px solid var(--bs-line);
    border-radius: 22px;
    background:
        linear-gradient(110deg, rgba(236, 7, 80, .18), transparent 32%),
        radial-gradient(circle at 84% 45%, rgba(236, 7, 80, .15), transparent 28%),
        repeating-linear-gradient(115deg, transparent 0 78px, rgba(255,255,255,.025) 79px, transparent 80px 158px),
        linear-gradient(125deg, #171218 0%, #0d1015 58%, #151018 100%);
    box-shadow: 0 28px 70px rgba(0, 0, 0, .24);
}

.bstat-command::before {
    content: 'B+';
    position: absolute;
    z-index: -1;
    top: 50%;
    right: 24%;
    width: auto;
    height: auto;
    color: rgba(255,255,255,.035);
    font-size: 190px;
    line-height: 1;
    font-weight: 1000;
    font-style: italic;
    letter-spacing: -.12em;
    transform: translateY(-53%) rotate(-7deg);
}

.bstat-command::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 42%;
    height: 3px;
    background: linear-gradient(90deg, var(--bs-ruby), #ff5a89, transparent);
}

.bstat-command-copy {
    min-width: 0;
}

.bstat-eyebrow,
.bstat-section-head span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #ff4b7f;
    font-size: 10px;
    line-height: 1;
    font-weight: 1000;
    letter-spacing: .13em;
    text-transform: uppercase;
}

.bstat-eyebrow i {
    color: var(--bs-ruby);
}

.bstat-command h1 {
    max-width: 760px;
    margin: 13px 0 8px;
    color: #fff;
    font-size: clamp(29px, 3.15vw, 48px);
    line-height: .98;
    font-weight: 1000;
    letter-spacing: -.052em;
}

.bstat-command-copy p {
    max-width: 680px;
    margin: 0;
    color: #a8adb5;
    font-size: 13px;
    line-height: 1.55;
    font-weight: 700;
}

.bstat-command-side {
    width: min(100%, 305px);
    display: grid;
    gap: 8px;
}

.bstat-period-note,
.bstat-month-form {
    padding: 13px 15px;
    border: 1px solid rgba(236, 7, 80, .25);
    border-radius: 13px;
    background: rgba(12, 13, 17, .76);
    backdrop-filter: blur(9px);
}

.bstat-period-note {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.bstat-period-note small,
.bstat-month-form label {
    color: #8f929a;
    font-size: 9px;
    font-weight: 900;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.bstat-period-note strong {
    color: #fff;
    font-size: 12px;
    font-weight: 1000;
}

.bstat-month-form {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    gap: 12px;
}

.bstat-month-form label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
}

.bstat-month-form label i {
    color: var(--bs-ruby);
}

.bstat-month-form select {
    min-width: 0;
    width: 100%;
    padding: 0 24px 0 0;
    border: 0;
    outline: 0;
    background: transparent;
    color: #fff;
    font-size: 12px;
    font-weight: 1000;
    text-align: right;
    cursor: pointer;
}

.bstat-month-form option {
    background: #111b28;
    color: #fff;
}

.bstat-market-nav {
    overflow-x: auto;
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 7px;
    border: 1px solid var(--bs-line);
    border-radius: 15px;
    background: #0d1014;
    scrollbar-width: none;
}

.bstat-market-nav::-webkit-scrollbar {
    display: none;
}

.bstat-market-nav a {
    min-height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    flex: 0 0 auto;
    padding: 0 15px;
    border: 1px solid transparent;
    border-radius: 10px;
    color: #9da3ac;
    font-size: 11px;
    font-weight: 900;
    text-decoration: none;
    white-space: nowrap;
    transition: .18s ease;
}

.bstat-market-nav a:hover {
    color: #fff;
    background: #181c22;
}

.bstat-market-nav a.active {
    color: #fff;
    border-color: rgba(242, 11, 82, .42);
    background: linear-gradient(135deg, rgba(242, 11, 82, .95), rgba(184, 12, 67, .92));
    box-shadow: 0 8px 20px rgba(242, 11, 82, .16);
}

.bstat-snapshot {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.bstat-snapshot article {
    min-width: 0;
    min-height: 78px;
    display: flex;
    align-items: center;
    gap: 13px;
    padding: 14px 16px;
    border: 1px solid var(--bs-line);
    border-radius: 15px;
    background: linear-gradient(145deg, #15181e, #0e1115);
}

.bstat-snapshot article::after {
    content: '';
    align-self: stretch;
    width: 2px;
    margin-left: auto;
    border-radius: 4px;
    background: linear-gradient(180deg, var(--bs-ruby), transparent);
    opacity: .75;
}

.bstat-snapshot article > span {
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    flex: 0 0 40px;
    border: 1px solid rgba(236, 7, 80, .24);
    border-radius: 12px;
    background: rgba(236, 7, 80, .11);
    color: #ff4b80;
}

.bstat-snapshot article:nth-child(2) > span {
    border-color: rgba(255, 255, 255, .16);
    background: rgba(255, 255, 255, .06);
    color: #e9edf2;
}

.bstat-snapshot article:nth-child(3) > span {
    border-color: rgba(242, 11, 82, .22);
    background: rgba(242, 11, 82, .09);
    color: #ff4b80;
}

.bstat-snapshot article > div {
    min-width: 0;
    display: grid;
    gap: 3px;
}

.bstat-snapshot small,
.bstat-data-cell small {
    color: #708ca4;
    font-size: 9px;
    font-weight: 900;
    letter-spacing: .05em;
    text-transform: uppercase;
}

.bstat-snapshot strong {
    overflow: hidden;
    color: #fff;
    font-size: 17px;
    line-height: 1.15;
    font-weight: 1000;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.bstat-section {
    overflow: hidden;
    border: 1px solid var(--bs-line);
    border-radius: 19px;
    background: #0e1116;
}

.bstat-section-head {
    min-height: 76px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 17px 20px;
    border-bottom: 1px solid var(--bs-line-soft);
    background: linear-gradient(90deg, rgba(236, 7, 80, .07), transparent 42%);
}

.bstat-section-head > div {
    min-width: 0;
}

.bstat-section-head span {
    font-size: 9px;
}

.bstat-section-head h2 {
    margin: 5px 0 0;
    color: #fff;
    font-size: 20px;
    line-height: 1.1;
    font-weight: 1000;
    letter-spacing: -.025em;
}

.bstat-section-head p {
    max-width: 450px;
    margin: 0;
    color: #7893aa;
    font-size: 11px;
    line-height: 1.45;
    font-weight: 700;
    text-align: right;
}

.bstat-radar-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1px;
    background: var(--bs-line-soft);
}

.bstat-radar-card {
    position: relative;
    min-width: 0;
    min-height: 188px;
    display: grid;
    align-content: start;
    gap: 13px;
    padding: 18px;
    background: #11151b;
    color: inherit;
    text-decoration: none;
    transition: .2s ease;
}

.bstat-radar-card::after {
    content: '';
    position: absolute;
    right: 0;
    top: 20px;
    width: 2px;
    height: 42px;
    background: linear-gradient(var(--bs-ruby), transparent);
}

.bstat-radar-card:hover {
    z-index: 1;
    background: #171a21;
    box-shadow: inset 0 0 0 1px rgba(236, 7, 80, .32);
}

.bstat-radar-top {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
}

.bstat-radar-top > span {
    color: #686f79;
    font-size: 10px;
    font-weight: 1000;
}

.bstat-radar-top em {
    color: var(--bs-ruby);
    font-size: 9px;
    font-style: normal;
    font-weight: 1000;
    letter-spacing: .09em;
    text-transform: uppercase;
}

.bstat-radar-top > i {
    color: #777e88;
    font-size: 10px;
}

.bstat-radar-league,
.bstat-rank-club {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 11px;
}

.bstat-logo {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    flex: 0 0 42px;
    overflow: hidden;
    border: 1px solid #343a44;
    border-radius: 12px;
    background: #191d23;
    color: #ff4b80;
}

.bstat-logo img {
    width: 29px;
    height: 29px;
    object-fit: contain;
}

.bstat-radar-league > div:last-child,
.bstat-rank-club > div:last-child {
    min-width: 0;
    display: grid;
    gap: 3px;
}

.bstat-radar-league small,
.bstat-rank-club small {
    overflow: hidden;
    color: #8b929c;
    font-size: 9px;
    font-weight: 800;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.bstat-radar-league strong,
.bstat-rank-club strong {
    overflow: hidden;
    color: #f8fbff;
    font-size: 13px;
    font-weight: 1000;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.bstat-radar-score {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 10px;
}

.bstat-radar-score > strong {
    color: #fff;
    font-size: 30px;
    line-height: .95;
    font-weight: 1000;
    letter-spacing: -.045em;
}

.bstat-radar-score > strong small {
    color: var(--bs-ice);
    font-size: 13px;
}

.bstat-radar-score > span {
    color: #8d949e;
    font-size: 9px;
    font-weight: 800;
    text-align: right;
}

.bstat-meter {
    width: 100%;
    height: 5px;
    overflow: hidden;
    border-radius: 999px;
    background: #292d35;
}

.bstat-meter i {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #d90649, #f20b52 55%, #ff5a89);
    box-shadow: 0 0 13px rgba(242, 11, 82, .3);
}

.bstat-no-data {
    min-height: 88px;
    display: grid;
    place-items: center;
    color: #6f8ba2;
    font-size: 11px;
    font-weight: 800;
    text-align: center;
}

.bstat-ladder-section {
    padding-bottom: 8px;
}

.bstat-ladder-head {
    display: grid;
    grid-template-columns: minmax(230px, 1.35fr) minmax(160px, .9fr) 90px 80px 86px;
    align-items: center;
    gap: 14px;
    min-height: 38px;
    padding: 0 14px;
    color: #787f89;
    font-size: 8px;
    font-weight: 1000;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.bstat-ladder {
    display: grid;
    gap: 7px;
    padding: 0 8px;
}

.bstat-ladder-row {
    position: relative;
    min-width: 0;
    min-height: 68px;
    display: grid;
    grid-template-columns: minmax(230px, 1.35fr) minmax(160px, .9fr) 90px 80px 86px;
    align-items: center;
    gap: 14px;
    padding: 9px 10px;
    border: 1px solid #2c323b;
    border-radius: 13px;
    background: #12161c;
    transition: .18s ease;
}

.bstat-ladder-row:hover {
    border-color: rgba(236, 7, 80, .42);
    background: #181a20;
    transform: translateX(2px);
}

.bstat-ladder-row.is-podium::before {
    content: '';
    position: absolute;
    left: -1px;
    top: 14px;
    bottom: 14px;
    width: 3px;
    border-radius: 0 4px 4px 0;
    background: var(--bs-ruby);
}

.bstat-ladder-row.is-podium:nth-child(2)::before {
    background: #ff5a89;
}

.bstat-ladder-row.is-podium:nth-child(3)::before {
    background: #c8ced6;
}

.bstat-rank-club > b {
    width: 32px;
    flex: 0 0 32px;
    color: #747b84;
    font-size: 13px;
    font-weight: 1000;
    text-align: center;
}

.bstat-ladder-row.is-podium .bstat-rank-club > b {
    color: #fff;
}

.bstat-rate-cell {
    min-width: 0;
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr);
    align-items: center;
    gap: 9px;
}

.bstat-rate-cell > strong {
    color: #fff;
    font-size: 13px;
    font-weight: 1000;
}

.bstat-data-cell {
    display: grid;
    gap: 3px;
}

.bstat-data-cell strong {
    color: #e6e8ec;
    font-size: 12px;
    font-weight: 1000;
}

.bstat-open {
    min-height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 0 10px;
    border: 1px solid #3a3f48;
    border-radius: 9px;
    color: #d6dbe2;
    background: #1a1e24;
    font-size: 9px;
    font-weight: 1000;
    text-decoration: none;
    transition: .18s ease;
}

.bstat-open:hover {
    border-color: rgba(242, 11, 82, .58);
    color: #fff;
    background: rgba(242, 11, 82, .12);
}

.bstat-empty {
    min-height: 210px;
    display: grid;
    place-content: center;
    justify-items: center;
    gap: 8px;
    color: #748fa6;
    text-align: center;
}

.bstat-empty i {
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    margin-bottom: 4px;
    border-radius: 14px;
    background: rgba(236, 7, 80, .1);
    color: #ff4b80;
}

.bstat-empty strong {
    color: #fff;
    font-size: 15px;
}

.bstat-empty span {
    font-size: 11px;
    font-weight: 700;
}

@media (max-width: 1220px) {
    .bstat-command {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .bstat-command-side {
        width: 100%;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .bstat-ladder-head,
    .bstat-ladder-row {
        grid-template-columns: minmax(210px, 1.25fr) minmax(140px, .8fr) 75px 75px 48px;
    }

    .bstat-open span {
        display: none;
    }
}

@media (max-width: 920px) {
    .bstat-snapshot {
        grid-template-columns: 1fr;
    }

    .bstat-radar-grid {
        grid-template-columns: 1fr;
    }

    .bstat-ladder-head {
        display: none;
    }

    .bstat-ladder {
        padding-top: 8px;
    }

    .bstat-ladder-row {
        grid-template-columns: minmax(0, 1fr) 100px 44px;
        gap: 10px;
    }

    .bstat-rate-cell {
        grid-template-columns: 1fr;
        gap: 4px;
    }

    .bstat-data-cell {
        display: none;
    }
}

@media (max-width: 680px) {
    .bstat-main {
        gap: 10px;
    }

    .bstat-command {
        min-height: 0;
        padding: 22px 18px;
        border-radius: 16px;
    }

    .bstat-command h1 {
        font-size: 31px;
    }

    .bstat-command-side {
        grid-template-columns: 1fr;
    }

    .bstat-market-nav {
        margin-inline: -1px;
        border-radius: 13px;
    }

    .bstat-market-nav a {
        min-height: 36px;
        padding: 0 12px;
    }

    .bstat-section {
        border-radius: 15px;
    }

    .bstat-section-head {
        align-items: flex-start;
        flex-direction: column;
        gap: 7px;
        padding: 15px;
    }

    .bstat-section-head p {
        text-align: left;
    }

    .bstat-radar-card {
        min-height: 174px;
        padding: 15px;
    }

    .bstat-ladder {
        gap: 6px;
        padding: 7px;
    }

    .bstat-ladder-row {
        min-height: 64px;
        grid-template-columns: minmax(0, 1fr) 62px 34px;
        padding: 8px 7px;
    }

    .bstat-rank-club {
        gap: 7px;
    }

    .bstat-rank-club > b {
        width: 23px;
        flex-basis: 23px;
        font-size: 10px;
    }

    .bstat-logo {
        width: 36px;
        height: 36px;
        flex-basis: 36px;
        border-radius: 10px;
    }

    .bstat-logo img {
        width: 25px;
        height: 25px;
    }

    .bstat-rank-club strong {
        font-size: 11px;
    }

    .bstat-rate-cell > strong {
        font-size: 11px;
    }

    .bstat-open {
        min-height: 32px;
        padding: 0;
    }
}
