.ranking-intro {
    padding: 10px 0 17px;
    border-bottom: 1px solid #eceef1;
    background: #fff;
}

.ranking-intro .breadcrumb {
    padding: 0 0 10px;
}

.ranking-intro h1 {
    margin: 0 0 8px;
    color: #202124;
    font-size: 34px;
    line-height: 1.25;
}

.ranking-intro > .container > p {
    margin: 0;
    color: #6f7680;
    font-size: 15px;
}

.ranking-tabs {
    display: flex;
    gap: 10px;
    margin-top: 24px;
}

.ranking-tabs button {
    min-width: 112px;
    min-height: 42px;
    padding: 0 24px;
    border: 1px solid #e3e6ea;
    border-radius: 8px;
    color: #4d535c;
    background: #fff;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
}

.ranking-tabs button:hover,
.ranking-tabs button:focus-visible,
.ranking-tabs button[aria-selected="true"] {
    border-color: #ff4b2b;
    color: #d84324;
    background: #fff7f4;
    outline: none;
}

.ranking-content {
    padding: 30px 0 54px;
    background: #f7f8fa;
}

.ranking-panel,
.ranking-note {
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    background: #fff;
}

.ranking-panel {
    padding: 24px;
}

.ranking-panel[hidden] {
    display: none;
}

.ranking-section-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 20px;
}

.ranking-section-heading h2,
.ranking-note h2 {
    margin: 0;
    color: #202124;
    font-size: 24px;
    line-height: 1.35;
}

.ranking-section-heading p {
    margin: 7px 0 0;
    color: #747b85;
    font-size: 14px;
}

.ranking-section-heading > span {
    flex: none;
    padding: 5px 11px;
    border: 1px solid #ffd3c9;
    border-radius: 999px;
    color: #ff4b2b;
    background: #fff8f6;
    font-size: 12px;
    font-weight: 800;
}

.ranking-podium,
.ranking-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.ranking-podium {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 18px;
}

.ranking-podium-card {
    position: relative;
    display: grid;
    grid-template-columns: 88px minmax(0, 1fr);
    grid-template-rows: 1fr auto;
    gap: 12px 15px;
    min-height: 166px;
    padding: 20px;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    background: #fff;
}

.ranking-podium-card.rank-1 {
    border-color: #ffb9a8;
    background: #fff;
}

.ranking-medal {
    position: absolute;
    top: -9px;
    left: 14px;
    display: grid;
    width: 30px;
    height: 30px;
    place-items: center;
    border: 2px solid #fff;
    border-radius: 50%;
    color: #fff;
    background: #8e99a8;
    font-size: 13px;
    font-weight: 800;
}

.rank-1 .ranking-medal { background: #f2a900; }
.rank-2 .ranking-medal { background: #7d8fa7; }
.rank-3 .ranking-medal { background: #b8784d; }

.ranking-podium-image {
    align-self: center;
}

.ranking-podium-image img,
.ranking-row-image img {
    display: block;
    width: 100%;
    aspect-ratio: 1;
    border: 1px solid #eceef1;
    border-radius: 18px;
    object-fit: cover;
}

.ranking-podium-copy {
    min-width: 0;
    align-self: center;
}
.ranking-game-title-version{
    display: flex;
    min-width: 0;
    align-items: center;
    gap: 7px;
}

.ranking-podium-copy h3,
.ranking-row-title h3 {
    margin: 0;
    min-width: 0;
    color: #202124;
    font-size: 17px;
    line-height: 1.35;
}

.ranking-podium-copy h3 a,
.ranking-row-title h3 a {
    color: inherit;
}

.ranking-podium-copy h3 a:hover,
.ranking-row-title h3 a:hover {
    color: #ff4b2b;
}

.ranking-version {
    display: inline-block;
    max-width: 100%;
    margin-top: 0px;
    padding: 2px 6px;
    overflow: hidden;
    border: 1px solid #ff9e89;
    border-radius: 4px;
    color: #ff4b2b;
    background: #fff;
    font-size: 11px;
    line-height: 1.3;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ranking-podium-copy p,
.ranking-row-main p {
    margin: 7px 0 0;
    overflow: hidden;
    color: #777e88;
    font-size: 13px;
    line-height: 1.5;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ranking-podium-copy p span,
.ranking-row-main p span {
    margin: 0 5px;
    color: #c2c6cc;
}

.ranking-podium-copy strong {
    display: block;
    margin-top: 8px;
    color: #d84324;
    font-size: 13px;
}

.ranking-action {
    display: inline-flex;
    min-width: 76px;
    min-height: 40px;
    align-items: center;
    justify-content: center;
    border: 1px solid #ff6848;
    border-radius: 6px;
    color: #ff4b2b;
    background: #fff;
    font-size: 13px;
    font-weight: 700;
}

.ranking-action:hover,
.ranking-action:focus-visible {
    color: #fff;
    background: #ff4b2b;
    outline: none;
}

.ranking-podium-card > .ranking-action {
    grid-column: 1 / -1;
    justify-self: center;
}

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

.ranking-row {
    display: grid;
    grid-template-columns: 34px 62px minmax(0, 1fr) 132px 190px 76px;
    gap: 16px;
    min-height: 92px;
    align-items: center;
    border-top: 1px solid #eceef1;
}

.ranking-number {
    color: #8a919b;
    font-size: 15px;
    font-weight: 800;
    text-align: center;
}

.ranking-row-image {
    width: 62px;
}

.ranking-row-image img {
    border-radius: 12px;
}

.ranking-row-main {
    min-width: 0;
}

.ranking-row-title {
    display: flex;
    min-width: 0;
    align-items: center;
    gap: 7px;
}

.ranking-row-title h3 {
    overflow: hidden;
    font-size: 15px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ranking-row-title .ranking-version {
    flex: none;
    max-width: 94px;
    margin-top: 0;
}

.ranking-metric {
    color: #d84324;
    font-size: 13px;
    font-weight: 700;
    white-space: nowrap;
}

.ranking-size {
    min-width: 0;
    overflow: hidden;
    color: #7b828c;
    font-size: 12px;
    text-align: right;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ranking-note {
    margin-top: 18px;
    padding: 22px 24px;
}

.ranking-note h2 {
    font-size: 20px;
}

.ranking-note ul {
    display: grid;
    gap: 8px;
    margin: 13px 0 0;
    padding-left: 20px;
    color: #676e78;
    font-size: 14px;
    line-height: 1.7;
}

.ranking-note li::marker {
    color: #ff4b2b;
}

@media (max-width: 1100px) {
    .ranking-list {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 760px) {
    .ranking-intro {
        padding: 14px 0 15px;
    }

    .ranking-intro .breadcrumb {
        padding-bottom: 9px;
    }

    .ranking-intro h1 {
        margin-top: 0;
        font-size: 28px;
    }

    .ranking-intro > .container > p {
        font-size: 13px;
        line-height: 1.65;
    }

    .ranking-tabs {
        gap: 7px;
        margin-top: 18px;
    }

    .ranking-tabs button {
        flex: 1;
        min-width: 0;
        min-height: 38px;
        padding: 0 10px;
        font-size: 14px;
    }

    .ranking-content {
        padding: 14px 0 28px;
    }

    .ranking-panel {
        padding: 15px 12px;
        border-radius: 8px;
    }

    .ranking-section-heading {
        gap: 12px;
        margin-bottom: 16px;
    }

    .ranking-section-heading h2 {
        font-size: 20px;
    }

    .ranking-section-heading p {
        font-size: 12px;
        line-height: 1.6;
    }

    .ranking-section-heading > span {
        display: none;
    }

    .ranking-podium {
        display: block;
        margin-bottom: 0;
    }

    .ranking-podium-card,
    .ranking-podium-card.rank-1 {
        display: grid;
        grid-template-columns: 23px 48px minmax(0, 1fr) 62px;
        gap: 9px;
        min-width: 0;
        min-height: 82px;
        align-items: center;
        padding: 0;
        border-width: 1px 0 0;
        border-color: #eceef1;
        border-radius: 0;
        background: #fff;
        text-align: left;
    }

    .ranking-podium-card .ranking-medal,
    .ranking-podium-card.rank-1 .ranking-medal {
        position: static;
        display: block;
        width: auto;
        height: auto;
        transform: none;
        border: 0;
        border-radius: 0;
        background: transparent;
        font-size: 15px;
        font-weight: 800;
        text-align: center;
    }

    .ranking-podium-card.rank-1 .ranking-medal {
        color: #d99a00;
    }

    .ranking-podium-card.rank-2 .ranking-medal {
        color: #7d8fa7;
    }

    .ranking-podium-card.rank-3 .ranking-medal {
        color: #b8784d;
    }

    .ranking-podium-image,
    .ranking-podium-card.rank-1 .ranking-podium-image {
        width: 48px;
    }

    .ranking-podium-image img,
    .ranking-row-image img {
        width: 48px;
        height: 48px;
        border-radius: 12px;
        object-fit: cover;
    }

    .ranking-podium-copy {
        min-width: 0;
        width: 100%;
    }

    .ranking-podium-copy h3,
    .ranking-podium-card.rank-1 .ranking-podium-copy h3 {
        overflow: hidden;
        font-size: 14px;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .ranking-podium-copy .ranking-version,
    .ranking-podium-card.rank-1 .ranking-version {
        display: none;
    }

    .ranking-podium-copy p {
        margin-top: 5px;
        overflow: hidden;
        font-size: 11px;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .ranking-podium-copy strong {
        margin-top: 4px;
        font-size: 11px;
    }

    .ranking-podium-card > .ranking-action,
    .ranking-podium-card.rank-1 > .ranking-action {
        grid-column: 4;
        grid-row: 1;
        width: 62px;
        min-width: 62px;
        min-height: 38px;
        justify-self: end;
    }
    .ranking-row {
        grid-template-columns: 23px 48px minmax(0, 1fr) 62px;
        gap: 9px;
        min-height: 82px;
    }

    .ranking-row-image {
        width: 48px;
    }

    .ranking-row-main p {
        font-size: 11px;
    }

    .ranking-row-title h3 {
        font-size: 14px;
    }

    .ranking-row-title .ranking-version {
        display: none;
    }

    .ranking-metric {
        grid-column: 3;
        grid-row: 2;
        align-self: start;
        margin-top: 0;
        font-size: 11px;
    }

    .ranking-size {
        display: none;
    }

    .ranking-row > .ranking-action {
        grid-column: 4;
        grid-row: 1 / span 2;
        min-width: 62px;
        min-height: 38px;
    }

    .ranking-note {
        margin-top: 12px;
        padding: 18px 16px;
        border-radius: 8px;
    }

    .ranking-note h2 {
        font-size: 18px;
    }

    .ranking-note ul {
        gap: 6px;
        padding-left: 18px;
        font-size: 12px;
    }
}