.sidebar-ranking {
    width: 100%;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 1rem;
    box-shadow: 0 8px 32px rgba(100, 108, 255, 0.12), 0 2px 8px rgba(0, 0, 0, 0.04);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
    margin-bottom: 10px;
}

.sidebar-ranking::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color), var(--accent-color));
    background-size: 200% 100%;
    animation: topBorderFlow 3s linear infinite;
    z-index: 1;
}

@keyframes topBorderFlow {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

/* 榜单头部 */
.ranking-header {
    margin-bottom: 0.75rem;
    padding: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.5rem;
}

.ranking-title {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.25rem;
    position: relative;
    z-index: 1;
}

.ranking-title::before {
    content: '';
    font-size: 0.8rem;
    margin-right: 0.125rem;
}

.ranking-subtitle {
    font-size: 0.7rem;
    color: var(--text-secondary);
    margin: 0;
    opacity: 0.75;
    font-weight: 400;
    line-height: 1.2;
    white-space: nowrap;
}

/* 榜单列表 */
.ranking-list {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.ranking-item {
    display: flex;
    align-items: center;
    padding: 0.5rem 0.75rem;
    background: var(--bg-primary);
    border-radius: 12px;
    border: 1px solid var(--border-color);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.ranking-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(100, 108, 255, 0.1), transparent);
    z-index: 0;
    opacity: 0;
}

.ranking-item:hover::before {
    animation: lightSweep 0.6s ease-out;
}

@keyframes lightSweep {
    0% {
        left: -100%;
        opacity: 1;
    }
    100% {
        left: 100%;
        opacity: 1;
    }
}

.ranking-item:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(100, 108, 255, 0.08);
    border-color: rgba(100, 108, 255, 0.2);
    background: rgba(100, 108, 255, 0.02);
}

.ranking-item:active {
    transform: translateY(0);
    transition: transform 0.1s ease;
}

.rank-number {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-right: 0.75rem;
    min-width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    z-index: 1;
    background: var(--bg-secondary);
    border-radius: 50%;
    border: 1px solid var(--border-color);
    flex-shrink: 0;
    transform: rotate(-3deg);
    transition: transform 0.3s ease;
}

.rank-number:hover {
    transform: rotate(0deg) scale(1.1);
}

.rank-number.top-3 {
    background: conic-gradient(from 45deg, var(--warning), #ffb86c, var(--warning));
    color: white;
    border-color: var(--warning);
    font-weight: 800;
    box-shadow: 0 4px 12px rgba(255, 159, 0, 0.3);
    animation: pulse 2s infinite;
    transform: rotate(0deg);
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}



.item-content {
    flex: 1;
    min-width: 0;
    position: relative;
    z-index: 1;
}

.item-title {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.125rem;
    line-height: 1.3;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    box-orient: vertical;
    word-break: break-word;
}

.item-description {
    font-size: 0.7rem;
    color: var(--text-secondary);
    line-height: 1.2;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* 空状态样式 */
.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem;
    text-align: center;
    color: var(--text-secondary);
    background: var(--bg-primary);
    border-radius: 12px;
    border: 1px dashed var(--border-color);
    margin: 1rem 0;
}

.empty-icon {
    font-size: 2.5rem;
    margin-bottom: 0.75rem;
    opacity: 0.6;
    filter: grayscale(0.3);
}

.empty-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    opacity: 0.8;
}

.empty-description {
    font-size: 0.75rem;
    color: var(--text-secondary);
    opacity: 0.6;
    line-height: 1.4;
    max-width: 200px;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .sidebar-ranking {
        width: 100%;
    }
    
    .empty-state {
        padding: 1.5rem 1rem;
    }
    
    .empty-icon {
        font-size: 2rem;
    }
}