
.rank-page .dh-content {
    background: none;
    margin-top: 40px;
}

.rank-page .rank-hero {
    padding: 50px 20px 0px;
    text-align: center;
}
.rank-page .rank-hero-title {
    margin: 0 0 12px;
    font-size: 32px;
    font-weight: 700;
    color: #1e293b;
    letter-spacing: 1px;
}
.rank-page .rank-hero-desc {
    margin: 0;
    font-size: 15px;
    color: #898a95;
    line-height: 25px;
}


.rank-page .rank-tabs {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin: 30px auto 30px;
    max-width: 1140px;
    padding: 0 20px;
}
.rank-page .rank-tabs button {
    padding: 10px 26px;
    border: 1px solid #e2e8f0;
    background: #fff;
    color: #64748b;
    border-radius: 10px;
    font-size: 15px;
    font-family: inherit;
    cursor: pointer;
    transition: 0.24s;
}
.rank-page .rank-tabs button.active {
    background: #3040b1;
    border-color: #3040b1;
    color: #fff;
}
.rank-page .rank-tabs button:hover:not(.active) {
    border-color: #6366f1;
    color: #6366f1;
}


.rank-page .rank-wrap {
    max-width: 1140px;
    margin: 0 auto 60px;
    padding: 0 20px;
}


.rank-page .rank-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}


.rank-page .rank-item {
    background: #fff;
    border-radius: 12px;
    padding: 18px 22px;
    display: grid;
    grid-template-columns: 56px 52px minmax(0, 1fr) 110px 90px;
    align-items: center;
    gap: 14px;
    border: 1px solid #eef0f4;
    transition: 0.25s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
    cursor: pointer;
}
.rank-page .rank-item:hover {
    border-color: #3040b1;
    background: #f8f9ff;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.08);
}


.rank-page .rank-num {
    font-size: 23px;
    font-weight: bold;
    text-align: center;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}
.rank-page .rank-num.top1 {color: #ff0f0f;}   
.rank-page .rank-num.top2 {color: #ffb100;}   
.rank-page .rank-num.top3 {color: #23bd2f;}   
.rank-page .rank-num.normal {color: #a5aebb;}


.rank-page .rank-icon img {
    width: 44px;
    height: 44px;
    border-radius: 8px;
    object-fit: cover;
    background: #f1f5f9;
    display: block;
    border: 1px solid #e2e8f0;
}

.rank-page .rank-icon .rank-letter {
    width: 44px;
    height: 44px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #6366f1;
    color: #fff;
    font-size: 18px;
    font-weight: 600;
}


.rank-page .rank-info {
    min-width: 0;
}
.rank-page .rank-info h3 {
    font-size: 16px;
    color: #1e293b;
    margin: 0 0 4px;
    font-weight: 600;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.rank-page .rank-info p {
    font-size: 13px;
    color: #64748b;
    margin: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}


.rank-page .rank-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    text-align: center;
    font-size: 14px;
    font-weight: 500;
    font-variant-numeric: tabular-nums;
}
.rank-page .rank-count .rank-count-icon {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    color: #dc2626;
}
.rank-page .rank-count .rank-count-num {
    color: #dc2626;
    font-size: 20px;
    font-weight: 700;
}
.rank-page .rank-count .rank-count-unit {
    color: #000;
    font-size: 13px;
    font-weight: 400;
    margin-left: 2px;
}


.rank-page .rank-btn a {
    display: block;
    text-align: center;
    padding: 8px 0;
    background: #3040b1;
    color: #fff;
    border-radius: 8px;
    text-decoration: none;
    font-size: 14px;
    transition: background 0.2s;
}
.rank-page .rank-btn a:hover {
    background: #4f46e5;
}


.rank-page .rank-panel {
    display: none;
}
.rank-page .rank-panel.active {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.icon {
    display: inline-block;
    width: 24px;
    height: 24px;
    vertical-align: -0.4em;
}

@media (max-width: 768px) {
    .rank-page .rank-hero {
        padding: 30px 16px 20px;
    }
    .rank-page .rank-hero-title {
        font-size: 24px;
        letter-spacing: 0.5px;
    }
    .rank-page .rank-hero-desc {
        font-size: 13px;
    }
    .rank-page .rank-tabs {
        gap: 8px;
        padding: 0 16px;
    }
    .rank-page .rank-tabs button {
        padding: 8px 20px;
        font-size: 14px;
    }
    .rank-page .rank-wrap {
        padding: 0 14px;
        margin-bottom: 40px;
    }
    .rank-page .rank-list {
        gap: 10px;
    }

    .rank-page .rank-item {
        grid-template-columns: 28px 40px minmax(0, 1fr) auto;
        grid-template-rows: auto auto;
        column-gap: 12px;
        row-gap: 10px;
        padding: 14px 16px;
        border-radius: 10px;
    }
    .rank-page .rank-num {
        font-size: 18px;
    }
    .rank-page .rank-icon img,
    .rank-page .rank-icon .rank-letter {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }
    .rank-page .rank-info h3 {
        font-size: 15px;
        margin-bottom: 2px;
    }
    .rank-page .rank-info p {
        font-size: 12px;
    }

    .rank-page .rank-count {
        grid-column: 4;
        grid-row: 1;
        justify-self: end;
        align-self: center;
        flex-direction: column;
        align-items: flex-end;
        gap: 0;
        line-height: 1.2;
    }
    .rank-page .rank-count .rank-count-icon {
        display: none;
    }
    .rank-page .rank-count .rank-count-num {
        font-size: 17px;
    }
    .rank-page .rank-count .rank-count-unit {
        font-size: 11px;
    }

    .rank-page .rank-btn {
        grid-column: 1 / -1;
        grid-row: 2;
    }
    .rank-page .rank-btn a {
        padding: 9px 0;
        font-size: 14px;
    }
}


body.night .dh-content{
    background: none;
}
body.night .rank-hero-title { color: #ffffff; }
body.night .rank-hero-desc { color: #94a3b8; }

body.night .rank-tabs button {
    background: #27272a;
    border-color: #3140b2;
    color: #cbd5e1;
}
body.night .rank-tabs button.active {
    background: #3140b2;
    border-color: #3140b2;
    color: #fff;
}
body.night .rank-tabs button:hover:not(.active) {
    border-color: #6366f1;
    color: #c7d2fe;
}

body.night .rank-item {
    background: #27272a;
    border-color: #3f3f46;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.35);
    cursor:pointer;
}
body.night .rank-item:hover {
    border-color: #babeca;
    background: #252831;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.12);
}

body.night .rank-num.top1 {/* color: #facc15; */}
body.night .rank-num.top2 {/* color: #e2e8f0; */}
body.night .rank-num.top3 {/* color: #fb923c; */}
body.night .rank-num.normal { color: #94a3b8; }
body.night .rank-icon img {
    background: #111827;
    border-color: #374151;
}
body.night .rank-icon .rank-letter {
    background: #4f46e5;
}
body.night .rank-info h3 { color: #ffffff; }
body.night .rank-info p { color: #94a3b8; }
body.night .rank-count .rank-count-icon { color: #f87171; }
body.night .rank-count .rank-count-num { color: #f87171; }
body.night .rank-count .rank-count-unit { color: #94a3b8; }
body.night .rank-btn a {
    background: #3140b2;
}
body.night .rank-btn a:hover {
    background: #4338ca;
}
