.ranking-page {
    padding: 20px;
}

.page-title {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 30px;
    color: #333;
}

.ranking-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.ranking-item {
    background-color: #fff;
    border-radius: 8px;
    padding: 20px;
}

.ranking-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #f0f0f0;
}

.ranking-header h2 {
    font-size: 18px;
    color: #333;
}

.more-btn {
    color: #999;
    font-size: 12px;
    cursor: pointer;
    transition: color 0.3s;
    text-decoration: none;
}

.more-btn:hover {
    color: #c62f2f;
}

.ranking-songs {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.song-row {
    display: flex;
    align-items: center;
    padding: 8px 0;
    transition: background-color 0.3s;
}

.song-row:hover {
    background-color: #f8f8f8;
    border-radius: 4px;
    padding-left: 8px;
    padding-right: 8px;
}

.song-rank {
    width: 30px;
    text-align: center;
    color: #c62f2f;
    font-weight: bold;
    font-size: 16px;
}

.song-info {
    flex: 1;
    margin-left: 15px;
}

.song-title {
    font-size: 14px;
    color: #333;
    margin-bottom: 4px;
}

.song-artist {
    font-size: 12px;
    color: #999;
}

.song-actions {
    display: flex;
    gap: 10px;
}

.action-btn {
    width: 28px;
    height: 28px;
    background-color: transparent;
    color: #999;
    font-size: 14px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s;
}

.action-btn:hover {
    background-color: #f0f0f0;
    color: #c62f2f;
}

/* 排行榜收藏按钮图标 */
.icon-favorite-small {
    position: relative;
    display: inline-block;
    width: 14px;
    height: 14px;
}

.icon-favorite-small::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 14px;
    height: 14px;
    border: 1.5px solid currentColor;
    border-radius: 0 50% 50% 50%;
    transform: rotate(-45deg);
    box-sizing: border-box;
}

.favorite-btn.favorited .icon-favorite-small::before {
    background-color: currentColor;
    border-color: currentColor;
}

.favorite-btn.favorited .icon-favorite-small::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 14px;
    height: 14px;
    background-color: currentColor;
    border-radius: 0 50% 50% 50%;
    transform: rotate(-45deg);
    clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
}

