: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: 14px !important;
}

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

.container240108 {
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 54px;
    padding: 0 15px;
    border: 1px solid var(--rank-line);
    border-radius: var(--rank-radius-lg);
    background: rgba(255, 255, 255, 0.88);
    box-shadow: 0 12px 24px rgba(15, 23, 42, 0.06);
}

.left-text240108,
.black-text240108 {
    color: var(--rank-muted);
    font-size: 13px;
    line-height: 1;
    font-weight: 800;
}

.black-text240108 {
    color: var(--rank-text);
    font-size: 18px;
}

.svg1240108 {
    margin-left: auto;
}

.container240108 #toggleButton240112 + .svg1240108 {
    margin-left: 0;
}

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

#toggleButton240112,
.rank-filter-toggle {
    appearance: none;
    min-width: 0;
    min-height: 36px;
    margin-left: auto;
    padding: 0 12px;
    border: 1px solid rgba(33, 150, 243, 0.24);
    box-sizing: border-box;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    border-radius: 999px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.96) 0%, rgba(232, 244, 255, 0.96) 100%);
    color: var(--rank-accent);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.86), 0 8px 18px rgba(33, 150, 243, 0.12);
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

#toggleButton240112:hover,
#toggleButton240112:focus-visible,
.rank-filter-toggle:hover,
.rank-filter-toggle:focus-visible {
    border-color: rgba(33, 150, 243, 0.42);
    background: #ffffff;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.92), 0 10px 22px rgba(33, 150, 243, 0.16);
    transform: translateY(-1px);
    outline: none;
}

#toggleButton240112:active,
.rank-filter-toggle:active {
    transform: translateY(0);
    box-shadow: inset 0 1px 2px rgba(15, 23, 42, 0.08), 0 5px 12px rgba(33, 150, 243, 0.12);
}

.rank-filter-toggle-label {
    color: var(--rank-accent);
    font-size: 12px;
    line-height: 1;
    font-weight: 800;
    white-space: nowrap;
}

#toggleButton240112 svg,
#toggleButton240112 ti-icon,
.rank-filter-toggle svg,
.rank-filter-toggle ti-icon {
    transition: transform 0.25s ease;
    color: var(--rank-accent);
    fill: currentColor;
    flex: none;
}

#toggleButton240112.is-open,
.rank-filter-toggle.is-open {
    border-color: rgba(33, 150, 243, 0.5);
    background: var(--rank-accent);
    color: #ffffff;
}

#toggleButton240112.is-open .rank-filter-toggle-label,
#toggleButton240112.is-open svg,
#toggleButton240112.is-open ti-icon,
.rank-filter-toggle.is-open .rank-filter-toggle-label,
.rank-filter-toggle.is-open svg,
.rank-filter-toggle.is-open ti-icon {
    color: #ffffff;
    fill: currentColor;
}

#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;
}

#dynamicContent240112 > div[style*="display:flex"] {
    gap: 8px;
}

.text-box240112,
.text-box240112-1 {
    flex: 0 0 auto !important;
    min-width: 0;
    margin: 0 !important;
    box-sizing: border-box;
    font-size: 13px;
    line-height: 1;
}

.text-box240112 p,
.text-box240112-1 p {
    width: auto !important;
    min-height: 32px;
    margin: 0;
    padding: 0 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    white-space: nowrap;
}

.text-box240112 {
    color: var(--rank-accent);
    font-weight: 800;
}

.text-box240112 p {
    background: var(--rank-accent-soft);
}

.text-box240112-1 {
    color: var(--rank-muted);
    font-weight: 700;
}

.text-box240112-1 p {
    background: #f7f9fc;
}

.pageofcate240114 {
    min-height: 200px;
}

.rank-tabs {
    margin: 14px 0 12px;
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 4px;
    scrollbar-width: none;
}

.rank-tabs::-webkit-scrollbar {
    display: none;
}

.rank-tab {
    min-height: 34px;
    padding: 0 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--rank-line);
    border-radius: 999px;
    background: var(--rank-surface);
    color: var(--rank-muted);
    font-size: 13px;
    font-weight: 800;
    white-space: nowrap;
    text-decoration: none;
}

.rank-tab.is-active {
    border-color: rgba(33, 150, 243, 0.24);
    background: var(--rank-accent);
    color: #ffffff;
}

.rank-list {
    display: grid;
    gap: 10px;
    padding-bottom: 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-tag {
    min-height: 22px;
    padding: 0 8px;
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    background: #f4f7fb;
    color: var(--rank-muted);
    font-size: 11px;
    font-weight: 700;
    white-space: nowrap;
}

.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-empty {
    text-align: center;
    padding: 80px 0 160px;
    color: var(--rank-muted);
}

.rank-empty img {
    width: 140px;
    height: 140px;
    margin: 0 auto;
}

.rank-empty p {
    margin: 14px 0 0;
    font-size: 14px;
    font-weight: 700;
}

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

.rank-home-panel {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.rank-home-card {
    min-height: 112px;
    padding: 16px;
    display: grid;
    grid-template-columns: 44px 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;
}

.rank-home-icon {
    width: 44px;
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--rank-accent-soft);
    color: var(--rank-accent);
}

.rank-home-copy {
    min-width: 0;
    display: grid;
    gap: 5px;
}

.rank-home-copy strong {
    font-size: 16px;
    font-weight: 900;
    line-height: 1.2;
}

.rank-home-copy em {
    color: var(--rank-muted);
    font-size: 12px;
    font-style: normal;
    line-height: 1.45;
}

.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-btn {
    min-width: 88px;
    min-height: 36px;
    padding: 0 14px;
    border: 1px solid rgba(33, 150, 243, 0.22);
    border-radius: 999px;
    background: var(--rank-surface);
    color: var(--rank-accent);
    font-size: 13px;
    font-weight: 800;
    cursor: pointer;
}

.rank-pager-btn:disabled {
    border-color: var(--rank-line);
    color: #b8c1cc;
    background: #f7f9fc;
    cursor: default;
}

.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: 10px !important;
    }

    .container240108 {
        min-height: 48px;
        padding: 0 12px;
    }

    .black-text240108 {
        font-size: 16px;
    }

    .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;
    }

    .rank-home-panel {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .rank-home-card {
        min-height: 92px;
        padding: 14px;
    }
}
