.rank-page {
    background: transparent;
}

.rank-hero {
    width: 100%;
    padding-top: 0;
    padding-bottom: 0;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    gap: 24px;
    display: flex;
}

.rank-channel {
    width: 100%;
    overflow: hidden;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    gap: 7px;
    display: flex;
}

.rank-channel-label {
    color: #FADC44;
    font-size: 12px;
    font-family: PingFang SC;
    font-weight: 400;
    line-height: 18px;
    word-wrap: break-word;
}

.rank-channel-title {
    color: white;
    font-size: 34px;
    font-family: PingFang SC;
    font-weight: 400;
    line-height: 40px;
    word-wrap: break-word;
}

.rank-channel-desc {
    color: #A3A3A3;
    font-size: 12px;
    font-family: PingFang SC;
    font-weight: 400;
    line-height: 18px;
    word-wrap: break-word;
}

.rank-tabs {
    overflow: hidden;
    justify-content: flex-start;
    align-items: center;
    gap: 9px;
    display: flex;
    flex-wrap: wrap;
}

.rank-tab {
    padding: 7px 16px;
    background: rgba(255, 255, 255, 0.10);
    overflow: hidden;
    border-radius: 16px;
    justify-content: flex-start;
    align-items: flex-start;
    display: flex;
    border: none;
    cursor: pointer;
    text-decoration: none;
    box-sizing: border-box;
}

.rank-tab--active {
    background: #FADC44;
}

.rank-tab-text {
    color: #F5F5F5;
    font-size: 12px;
    font-family: PingFang SC;
    font-weight: 400;
    line-height: 18px;
    word-wrap: break-word;
}

.rank-tab-text--active {
    color: #181818;
}

.rank-hero .card-grid {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(8, minmax(0, 1fr));
    justify-content: stretch;
    align-items: stretch;
    gap: 14px 16px;
}

.rank-hero .poster-card {
    width: 100%;
    min-width: 0;
    border-radius: 14px;
}

.rank-hero .poster-cover {
    height: auto;
    aspect-ratio: 3 / 4;
}

.rank-hero .poster-card-tag {
    color: #8A8A8A;
}

.rank-hero .poster-card-heat {
    color: #808080;
}

.rank-hero .poster-card-subtitle {
    color: #A3A3A3;
}

.poster-rank-badge {
    width: 43px;
    height: 34px;
    left: 0;
    bottom: 0;
    top: auto;
    position: absolute;
    z-index: 2;
}

.poster-rank-bg-gold,
.poster-rank-bg-silver,
.poster-rank-bg-bronze,
.poster-rank-bg-dark {
    width: 43px;
    height: 34px;
    left: 0;
    top: 0;
    position: absolute;
    background-size: 100% 100%;
    background-position: center;
    background-repeat: no-repeat;
}

.poster-rank-bg-gold {
    background-image: url(../images/r_1.png);
}

.poster-rank-bg-silver {
    background-image: url(../images/r_2.png);
}

.poster-rank-bg-bronze {
    background-image: url(../images/r_3.png);
}

.poster-rank-bg-dark {
    background-image: url(../images/r_4.png);
}

.poster-rank-text {
    width: 43px;
    height: 35px;
    left: 0;
    top: 0;
    position: absolute;
    text-align: center;
    justify-content: center;
    display: flex;
    flex-direction: column;
    color: white;
    font-size: 18px;
    font-family: PingFang SC;
    font-weight: 400;
    line-height: 24px;
    word-wrap: break-word;
}

@media (max-width: 767px) {
    .rank-page.page-shell {
        width: 100%;
        max-width: 100%;
        padding: 12px 16px;
        box-sizing: border-box;
        gap: 18px;
        align-items: stretch;
    }

    .rank-hero {
        width: 100%;
        padding: 0;
        gap: 18px;
    }

    .rank-channel {
        width: 100%;
        gap: 6px;
    }

    .rank-channel-label {
        display: none;
    }

    .rank-channel-title {
        font-size: 18px;
        line-height: 24px;
    }

    .rank-channel-desc {
        color: #8A8A8A;
    }

    .rank-tabs {
        width: 100%;
        gap: 9px;
    }

    .rank-tab {
        background: #242424;
    }

    .rank-tab-text {
        color: #A3A3A3;
    }

    .rank-tab--active {
        background: #FADC44;
    }

    .rank-tab-text--active {
        color: #181818;
    }

    .rank-hero .card-grid {
        width: 100%;
        display: grid;
        grid-template-columns: 1fr 1fr;
        justify-content: stretch;
        gap: 7px;
    }

    .rank-hero .poster-card {
        width: 100%;
        border-radius: 6px;
    }

    .rank-hero .poster-cover {
        height: 0;
        padding-bottom: 133.33%;
    }

    .rank-hero .poster-cover-img {
        position: absolute;
        inset: 0;
    }

    .rank-hero .episode-badge {
        left: auto;
        right: 8px;
        top: auto;
        bottom: 8px;
    }

    .rank-hero .free-badge-large,
    .rank-hero .hot-badge-large,
    .rank-hero .community-badge {
        left: auto;
        right: 8px;
        top: 8px;
    }

    .rank-hero .poster-corner-badges {
        top: 8px;
        right: 8px;
    }

    .rank-hero .poster-card-title {
        font-family: "Noto Sans SC", "PingFang SC", sans-serif;
        font-weight: 700;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .rank-hero .poster-card-subtitle,
    .rank-hero .poster-card-tag {
        color: #A3A3A3;
    }

    .rank-hero .poster-card-heat {
        color: #D4D4D4;
    }

    .rank-hero .pagination {
        width: 100%;
        height: auto;
        min-height: 72px;
        flex-wrap: wrap;
        justify-content: center;
        align-content: flex-start;
        position: relative;
        overflow: hidden;
    }

    .poster-rank-badge {
        width: 34px;
        height: 27px;
        left: 0;
        top: auto;
        bottom: 0;
    }

    .poster-rank-bg-gold,
    .poster-rank-bg-silver,
    .poster-rank-bg-bronze,
    .poster-rank-bg-dark {
        width: 34px;
        height: 27px;
    }

    .poster-rank-text {
        width: 34px;
        height: 28px;
        font-size: 14px;
        line-height: 20px;
    }
}
