/* Rank CSS */

.rank-tabs {
    position: fixed;
    top: 56px;
    left: 0;
    right: 0;
    display: flex;
    background: #fff;
    padding: 12px 16px;
    gap: 12px;
    z-index: 99;
    border-bottom: 1px solid #eee;
}

.rank-tab {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 12px;
    background: #f5f5f5;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s;
}

.rank-tab.active {
    background: linear-gradient(135deg, #FF6B6B 0%, #FF8E53 100%);
    color: #fff;
}

.tab-icon {
    font-size: 24px;
    margin-bottom: 4px;
}

.tab-name {
    font-size: 13px;
    font-weight: 500;
}

.rank-content {
    padding: 140px 16px 80px;
}

.update-time {
    text-align: center;
    font-size: 12px;
    color: #999;
    margin-bottom: 16px;
}

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

.rank-item {
    display: flex;
    align-items: center;
    background: #fff;
    border-radius: 12px;
    padding: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    transition: transform 0.3s;
}

.rank-item:active {
    transform: scale(0.98);
}

.rank-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.rank-num {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: 700;
    color: #999;
}

.rank-badge {
    font-size: 28px;
}

.rank-cover {
    width: 80px;
    height: 110px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
}

.rank-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.rank-info {
    flex: 1;
    margin-left: 12px;
}

.rank-title {
    font-size: 15px;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.rank-meta {
    display: flex;
    gap: 12px;
    font-size: 13px;
    margin-bottom: 6px;
}

.rank-meta .score {
    color: #FF9500;
    font-weight: 600;
}

.rank-meta .episodes {
    color: #999;
}

.rank-data {
    font-size: 12px;
    color: #666;
}

.rise-num {
    color: #4CAF50;
    font-weight: 600;
}

/* 前三名样式 */
.rank-top-1 {
    background: linear-gradient(135deg, #FFF8E1 0%, #FFECB3 100%);
    border: 1px solid #FFD54F;
}

.rank-top-2 {
    background: linear-gradient(135deg, #F5F5F5 0%, #E0E0E0 100%);
    border: 1px solid #BDBDBD;
}

.rank-top-3 {
    background: linear-gradient(135deg, #FFF3E0 0%, #FFE0B2 100%);
    border: 1px solid #FFB74D;
}

.loading-more {
    text-align: center;
    padding: 20px;
}

.loading-more .spinner {
    display: inline-block;
    width: 24px;
    height: 24px;
    border: 2px solid #f0f0f0;
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}
