.ranking-header {
    margin-bottom: 30px;
}
.ranking-tabs {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding-bottom: 8px;
    margin-bottom: 24px;
    scrollbar-width: none;
}
.ranking-tabs::-webkit-scrollbar {
    display: none;
}
.ranking-tab {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    text-decoration: none;
    color: var(--text-secondary);
    min-width: 120px;
    transition: all 0.2s;
    cursor: pointer;
}
.ranking-tab:hover {
    background: var(--surface-hover);
    border-color: var(--accent);
    color: var(--text);
}
.ranking-tab.active {
    background: rgba(var(--accent-rgb), 0.1);
    border-color: var(--accent);
    color: var(--accent);
}
.ranking-tab span {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 4px;
}
.ranking-tab small {
    font-size: 12px;
    opacity: 0.8;
}

.ranking-info {
    text-align: center;
    margin-bottom: 40px;
}
.ranking-info h1 {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--text);
}
.ranking-info p {
    color: var(--text-muted);
    font-size: 15px;
}

.rank-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.rank-item {
    display: flex;
    align-items: stretch;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 16px;
    text-decoration: none;
    color: inherit;
    transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}
.rank-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.2);
    border-color: var(--accent);
}
.rank-number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    font-size: 24px;
    font-weight: 800;
    color: var(--text-muted);
    margin-right: 16px;
    font-style: italic;
}
.rank-item:nth-child(1) .rank-number {
    color: #fbbf24; /* Gold */
    font-size: 32px;
}
.rank-item:nth-child(2) .rank-number {
    color: #9ca3af; /* Silver */
    font-size: 28px;
}
.rank-item:nth-child(3) .rank-number {
    color: #b45309; /* Bronze */
    font-size: 26px;
}
.rank-cover {
    width: 72px;
    height: 100px;
    border-radius: 8px;
    object-fit: cover;
    margin-right: 20px;
    background: var(--bg);
    flex-shrink: 0;
}
.rank-body {
    display: flex;
    flex-direction: column;
    justify-content: center;
    flex-grow: 1;
    min-width: 0;
}
.rank-status {
    display: inline-block;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
    color: var(--accent);
    background: rgba(var(--accent-rgb), 0.1);
    padding: 4px 8px;
    border-radius: 4px;
    margin-bottom: 8px;
    align-self: flex-start;
}
.rank-title {
    font-size: 18px;
    font-weight: 700;
    margin: 0 0 6px 0;
    color: var(--text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.rank-meta {
    display: flex;
    gap: 16px;
    color: var(--text-secondary);
    font-size: 14px;
    align-items: center;
}
.rank-meta-item {
    display: flex;
    align-items: center;
    gap: 6px;
}
.rank-meta-item .material-icons-round {
    font-size: 16px;
}
@media (max-width: 600px) {
    .rank-cover {
        width: 60px;
        height: 84px;
        margin-right: 12px;
    }
    .rank-number {
        width: 32px;
        margin-right: 8px;
        font-size: 20px;
    }
    .rank-title {
        font-size: 16px;
    }
    .rank-item:nth-child(1) .rank-number,
    .rank-item:nth-child(2) .rank-number,
    .rank-item:nth-child(3) .rank-number {
        font-size: 24px;
    }
}
