:root {
    --rank-shell: 1170px;
    --rank-bg: #f4f7fb;
    --rank-surface: #ffffff;
    --rank-line: rgba(15, 23, 42, 0.08);
    --rank-text: #18212f;
    --rank-muted: #6b7485;
    --rank-accent: #2196f3;
    --rank-accent-soft: rgba(33, 150, 243, 0.10);
    --rank-radius-lg: 14px;
    --rank-radius-md: 10px;
}

body {
    background: var(--rank-bg);
}

body > .main.under-header1,
.cata-main.under-header1 {
    margin-top: 0;
    overflow: visible;
}

body > .main,
.cata-main {
    width: min(var(--rank-shell), calc(100% - 30px));
    margin: 0 auto;
    padding: 0;
    box-sizing: border-box;
}

#catagoryCon1 {
    padding-top: 10px !important;
}

.rank-head {
    margin: 0;
}

.tibiu-catagory-title1 {
    padding: 0 !important;
    background: transparent !important;
    border-bottom: 0 !important;
}

.fig-ifpbsy,
#dynamicContent240112 > .fig-ifpbsy,
.tibiu-catagory-fenge1 {
    display: none !important;
}

/* Filter toggle is a tb-btn--sm; open = primary outline/text. */
.rank-filter-toggle {
    flex: none;
    margin-left: auto;
}

.rank-filter-toggle.is-open {
    border-color: var(--tb-primary);
    color: var(--tb-primary);
}

.rank-filter-toggle-arrow {
    transition: transform 0.25s ease;
}

#dynamicContainer240112 {
    height: 0;
    margin-top: 10px;
    overflow: hidden;
    border-radius: var(--rank-radius-lg);
    background: var(--rank-surface);
    transition: height 0.28s ease;
}

#dynamicContent240112 {
    display: grid;
    gap: 10px;
    opacity: 1;
    transition: opacity 0.2s ease;
    padding: 12px;
}

.pageofcate240114 {
    min-height: 200px;
}

.rank-tabs {
    margin: 8px 0 4px;
}

.rank-list {
    display: grid;
    gap: 10px;
    padding: 0 0 28px;
}

.rank-card {
    position: relative;
    min-height: 132px;
    padding: 12px 14px;
    display: grid;
    grid-template-columns: 42px 78px minmax(0, 1fr);
    gap: 12px;
    align-items: center;
    border: 1px solid var(--rank-line);
    border-radius: var(--rank-radius-lg);
    background: var(--rank-surface);
    color: var(--rank-text);
    text-decoration: none;
    overflow: hidden;
}

.rank-card-index {
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: #f2f5f9;
    color: var(--rank-muted);
    font-family: number, title, sans-serif;
    font-size: 18px;
    font-weight: 800;
}

.rank-card-index.is-top-1 {
    background: #fff2cf;
    color: #b7791f;
}

.rank-card-index.is-top-2 {
    background: #eef2f7;
    color: #64748b;
}

.rank-card-index.is-top-3 {
    background: #ffe9dc;
    color: #c05621;
}

.rank-card-cover {
    position: relative;
    width: 78px;
    height: 108px;
    border-radius: var(--rank-radius-md);
    background: #e8eef6;
    overflow: hidden;
}

.rank-card-cover img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    object-position: center;
    background-size: cover;
    background-position: center;
}

.rank-adult-badge {
    position: absolute;
    top: 6px;
    right: 6px;
    min-width: 30px;
    min-height: 18px;
    padding: 0 6px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: rgba(24, 33, 47, 0.78);
    color: #fff;
    font-size: 11px;
    font-weight: 800;
    line-height: 1;
}

.rank-card-main {
    min-width: 0;
    display: grid;
    gap: 6px;
}

.rank-card-title {
    color: var(--rank-text);
    font-family: title, "PingFang SC", "Microsoft YaHei", sans-serif;
    font-size: 17px;
    font-weight: 800;
    line-height: 1.25;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
}

.rank-card-tags {
    min-height: 24px;
    display: flex;
    align-items: center;
    gap: 6px;
    overflow: hidden;
}

.rank-card-metric,
.rank-card-update {
    font-size: 12px;
    line-height: 1.35;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.rank-card-metric {
    color: var(--rank-muted);
    font-weight: 700;
}

.rank-card-update {
    color: var(--rank-accent);
    font-weight: 800;
}

.rank-home-grid {
    min-height: 200px;
    padding: 14px 0 30px;
}

.rank-card--skeleton {
    pointer-events: none;
}

.rank-card--skeleton .rank-card-main {
    gap: 10px;
}

.rank-skeleton-line {
    height: 12px;
    border-radius: 999px;
}

.rank-skeleton-line.title {
    width: 58%;
    height: 16px;
}

.rank-skeleton-line.tags {
    width: 72%;
}

.rank-skeleton-line.metric {
    width: 48%;
}

.rank-skeleton-line.update {
    width: 80%;
}

.rank-skeleton-shimmer {
    position: relative;
    overflow: hidden;
    background: #eef2f6;
}

.rank-skeleton-shimmer::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.76) 50%, rgba(255, 255, 255, 0) 100%);
    transform: translateX(-100%);
    animation: tibiu-rank-skeleton-wave 1.15s ease-in-out infinite;
}

@keyframes tibiu-rank-skeleton-wave {
    to {
        transform: translateX(100%);
    }
}

.rank-pager {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 4px 0 30px;
}

.rank-pager-current {
    min-width: 70px;
    color: var(--rank-muted);
    font-size: 13px;
    font-weight: 800;
    text-align: center;
}

@media (max-width: 760px) {
    body > .main,
    .cata-main {
        width: calc(100% - 30px);
    }

    #catagoryCon1 {
        padding-top: 6px !important;
    }

    .rank-card {
        min-height: 120px;
        padding: 10px;
        grid-template-columns: 34px 68px minmax(0, 1fr);
        gap: 10px;
    }

    .rank-card-index {
        width: 34px;
        height: 38px;
        border-radius: 10px;
        font-size: 16px;
    }

    .rank-card-cover {
        width: 68px;
        height: 98px;
    }

    .rank-card-title {
        font-size: 15px;
    }

    .rank-card-tags {
        min-height: 22px;
    }

    .rank-card-metric,
    .rank-card-update {
        font-size: 11px;
    }
}
