.main-content {
    background: var(--canvas-base);
    overflow-y: auto;
    overflow-x: hidden;
    position: relative;
    grid-row: 1;
    grid-column: 2;
}

/* 懒加载图片样式 */
img.lazy-img {
    opacity: 0.5;
    transition: opacity 0.3s ease;
}

img.lazy-img.loaded {
    opacity: 1;
}

.content-header {
    position: relative;
    padding: var(--space-2xl);
    padding-bottom: var(--space-xl);
    min-height: var(--header-height);
}

.header-gradient {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 100%;
    background: linear-gradient(
        180deg,
        rgba(255, 59, 92, 0.15) 0%,
        transparent 70%
    );
    pointer-events: none;
    transition: background var(--duration-slow) var(--ease-smooth);
}

.header-content {
    position: relative;
    display: flex;
    gap: var(--space-xl);
    align-items: flex-end;
}

.playlist-cover {
    position: relative;
    width: 200px;
    height: 200px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-cover);
    flex-shrink: 0;
}

.playlist-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--duration-slow) var(--ease-out);
}

.playlist-cover:hover img {
    transform: scale(1.05);
}

.cover-play-btn {
    position: absolute;
    bottom: var(--space-md);
    right: var(--space-md);
    width: 48px;
    height: 48px;
    background: var(--accent-primary);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: translateY(8px);
    transition: all var(--duration-normal) var(--ease-out);
    box-shadow: 0 8px 24px var(--accent-primary-glow);
}

.playlist-cover:hover .cover-play-btn {
    opacity: 1;
    transform: translateY(0);
}

.cover-play-btn:hover {
    transform: scale(1.08);
}

.cover-play-btn svg {
    width: 24px;
    height: 24px;
    color: white;
    margin-left: 2px;
}

.playlist-info {
    flex: 1;
    min-width: 0;
}

.playlist-type {
    font-size: var(--text-xs);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-tertiary);
}

.playlist-title {
    font-size: var(--text-3xl);
    font-weight: 700;
    letter-spacing: -0.5px;
    margin: var(--space-sm) 0;
    line-height: 1.2;
}

.playlist-meta {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    color: var(--text-secondary);
    font-size: var(--text-sm);
    margin-bottom: var(--space-lg);
}

.dot {
    color: var(--text-tertiary);
}

.playlist-actions {
    display: flex;
    align-items: center;
    gap: var(--space-md);
}

.track-list {
    padding: 0 var(--space-2xl);
    padding-bottom: 80px;
}

.track-list-header {
    display: grid;
    grid-template-columns: 48px 1fr 1.5fr 140px 60px;
    gap: var(--space-md);
    padding: var(--space-sm) var(--space-md);
    color: var(--text-tertiary);
    font-size: var(--text-xs);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 1px solid var(--border-subtle);
    margin-bottom: var(--space-sm);
}

.col-duration {
    text-align: right;
    display: flex;
    justify-content: flex-end;
}

.col-duration svg {
    color: var(--text-tertiary);
}

.track-list-body {
    display: flex;
    flex-direction: column;
}

.track-item {
    display: grid;
    grid-template-columns: 48px 1fr 1.5fr 140px 60px;
    gap: var(--space-md);
    padding: var(--space-sm) var(--space-md);
    border-radius: var(--radius-md);
    align-items: center;
    transition: background var(--duration-fast) var(--ease-out);
    position: relative;
}

.track-item:hover {
    background: rgba(255, 255, 255, 0.05);
}

.track-item.playing {
    background: var(--accent-primary-muted);
}

.track-item.playing::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 32px;
    background: var(--accent-primary);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.track-index {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-tertiary);
    font-size: var(--text-sm);
    font-family: var(--font-mono);
}

.track-item:hover .track-index .index-number {
    display: none;
}

.track-item:hover .track-index .play-icon {
    display: flex;
}

.track-item.playing .track-index .index-number {
    display: none;
}

.track-item.playing .track-index .playing-icon {
    display: flex;
}

.play-icon,
.playing-icon {
    display: none;
    color: var(--text-primary);
}

.playing-icon {
    color: var(--accent-primary);
}

.play-icon svg,
.playing-icon svg {
    width: 16px;
    height: 16px;
}

.track-info {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    min-width: 0;
}

.track-cover {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    flex-shrink: 0;
}

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

.track-details {
    min-width: 0;
}

.track-title {
    font-size: var(--text-sm);
    font-weight: 500;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.track-item.playing .track-title {
    color: var(--accent-primary);
}

.track-artist {
    font-size: var(--text-xs);
    color: var(--text-secondary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.track-artist:hover {
    color: var(--text-primary);
    text-decoration: underline;
}

.track-album {
    font-size: var(--text-sm);
    color: var(--text-secondary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.track-album:hover {
    color: var(--text-primary);
    text-decoration: underline;
}

.track-date {
    font-size: var(--text-sm);
    color: var(--text-tertiary);
}

.track-duration {
    font-size: var(--text-sm);
    color: var(--text-tertiary);
    font-family: var(--font-mono);
    text-align: right;
}

.track-actions {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    opacity: 0;
    transition: opacity var(--duration-fast) var(--ease-out);
}

.track-item:hover .track-actions {
    opacity: 1;
}

.track-actions .btn-icon {
    width: 28px;
    height: 28px;
}

.track-actions .btn-icon svg {
    width: 16px;
    height: 16px;
}

/* 清空历史按钮 */
.clear-history-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    font-size: 13px;
    cursor: pointer;
    transition: all var(--duration-fast) var(--ease-out);
}

.clear-history-btn:hover {
    background: rgba(255, 59, 92, 0.15);
    border-color: rgba(255, 59, 92, 0.3);
    color: var(--accent-primary);
}

.clear-history-btn svg {
    width: 16px;
    height: 16px;
}

/* ============================================
   歌曲操作按钮
   ============================================ */
.track-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    opacity: 0;
    transition: opacity 0.2s;
}

.track-item:hover .track-actions {
    opacity: 1;
}

.track-action-btn {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: var(--text-tertiary);
    background: transparent;
    transition: all 0.2s;
}

.track-action-btn:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.1);
}

.track-action-btn.like-btn.liked {
    color: var(--accent-primary);
}

.track-action-btn.like-btn.liked svg path {
    fill: currentColor;
}

.track-action-btn.delete-btn:hover {
    color: #f87171;
    background: rgba(248, 113, 113, 0.15);
}

/* ============================================
   歌手链接样式
   ============================================ */
.artist-link {
    cursor: pointer;
    transition: color 0.2s ease;
}

.artist-link:hover {
    color: var(--accent-primary);
    text-decoration: underline;
}

/* ============================================
   歌手页面 - 专辑区域
   ============================================ */
.artist-albums-section {
    padding: 0 var(--space-lg) var(--space-xl);
}

.artist-albums-section.full {
    padding-top: var(--space-lg);
}

.section-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: var(--space-lg);
    padding-left: var(--space-sm);
}

.artist-albums-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: var(--space-lg);
}

.artist-album-card {
    background: rgba(255, 255, 255, 0.03);
    border-radius: var(--radius-lg);
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.artist-album-card:hover {
    transform: translateY(-4px);
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(var(--accent-rgb, 100, 150, 255), 0.3);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3),
                0 0 20px rgba(var(--accent-rgb, 100, 150, 255), 0.15);
}

.album-card-cover {
    position: relative;
    width: 100%;
    aspect-ratio: 1;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.05);
}

.album-card-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
    display: block;
}

.artist-album-card:hover .album-card-cover img {
    transform: scale(1.05);
}

.album-play-btn {
    position: absolute;
    bottom: 8px;
    right: 8px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--accent-primary);
    border: none;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.artist-album-card:hover .album-play-btn {
    opacity: 1;
    transform: translateY(0);
}

.album-play-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(var(--accent-rgb, 100, 150, 255), 0.4);
}

.album-card-info {
    padding: var(--space-md);
}

.album-card-name {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 4px;
}

.album-card-date {
    font-size: 12px;
    color: var(--text-tertiary);
}

.show-more-albums {
    margin-top: var(--space-lg);
    padding: var(--space-md) var(--space-lg);
    text-align: center;
    color: var(--accent-primary);
    cursor: pointer;
    font-size: 14px;
    border-radius: var(--radius-md);
    background: rgba(var(--accent-rgb, 100, 150, 255), 0.1);
    border: 1px solid rgba(var(--accent-rgb, 100, 150, 255), 0.2);
    transition: all 0.2s ease;
}

.show-more-albums:hover {
    background: rgba(var(--accent-rgb, 100, 150, 255), 0.15);
    border-color: rgba(var(--accent-rgb, 100, 150, 255), 0.3);
}

/* ============================================
   歌手页面 - 歌曲区域
   ============================================ */
.artist-songs-section {
    padding: var(--space-lg);
    padding-top: 0;
}

.artist-tracks-list {
    display: flex;
    flex-direction: column;
}

.artist-tracks-list .track-item {
    border-radius: var(--radius-md);
    margin-bottom: 2px;
}

/* ============================================
   歌手发现页面
   ============================================ */
.artists-discover-section {
    padding: var(--space-lg);
}

.artists-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: var(--space-lg);
}

.artist-card {
    cursor: pointer;
    text-align: center;
    transition: all 0.3s ease;
}

.artist-card:hover {
    transform: translateY(-4px);
}

.artist-card-avatar {
    position: relative;
    width: 100%;
    aspect-ratio: 1;
    border-radius: 50%;
    overflow: hidden;
    margin-bottom: var(--space-md);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    border: 2px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.artist-card:hover .artist-card-avatar {
    border-color: rgba(var(--accent-rgb, 100, 150, 255), 0.5);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4),
                0 0 20px rgba(var(--accent-rgb, 100, 150, 255), 0.2);
}

.artist-card-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.artist-card:hover .artist-card-avatar img {
    transform: scale(1.1);
}

.artist-card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.artist-card:hover .artist-card-overlay {
    opacity: 1;
}

.artist-play-btn {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--accent-primary);
    border: none;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transform: scale(0.8);
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.artist-card:hover .artist-play-btn {
    transform: scale(1);
}

.artist-play-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(var(--accent-rgb, 100, 150, 255), 0.4);
}

.artist-card-info {
    padding: 0 var(--space-sm);
}

.artist-card-name {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 2px;
}

.artist-card-alias {
    font-size: 12px;
    color: var(--text-tertiary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.no-content {
    text-align: center;
    padding: var(--space-2xl);
    color: var(--text-tertiary);
    font-size: 14px;
}

/* ============================================
   歌手页面工具栏
   ============================================ */
.artists-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--space-lg);
    gap: var(--space-md);
}

.artists-search-box {
    flex: 1;
    max-width: 300px;
    position: relative;
    display: flex;
    align-items: center;
}

.artists-search-box .search-icon {
    position: absolute;
    left: 12px;
    color: var(--text-tertiary);
    pointer-events: none;
}

.artists-search-input {
    width: 100%;
    padding: 10px 12px 10px 40px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    color: var(--text-primary);
    font-size: 14px;
    outline: none;
    transition: all 0.2s ease;
}

.artists-search-input:focus {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(var(--accent-rgb, 100, 150, 255), 0.4);
    box-shadow: 0 0 15px rgba(var(--accent-rgb, 100, 150, 255), 0.1);
}

.artists-search-input::placeholder {
    color: var(--text-tertiary);
}

.artists-actions {
    display: flex;
    gap: var(--space-sm);
}

.artists-refresh-btn,
.artists-back-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    color: var(--text-secondary);
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.artists-refresh-btn:hover,
.artists-back-btn:hover {
    background: rgba(var(--accent-rgb, 100, 150, 255), 0.15);
    border-color: rgba(var(--accent-rgb, 100, 150, 255), 0.3);
    color: var(--accent-primary);
}

.artists-refresh-btn:active,
.artists-back-btn:active {
    transform: scale(0.95);
}

.artists-refresh-btn svg,
.artists-back-btn svg {
    transition: transform 0.3s ease;
}

.artists-refresh-btn:hover svg {
    transform: rotate(180deg);
}

/* ============================================
   排行榜页面样式
   ============================================ */
.toplist-page {
    padding: 0 var(--space-lg);
}

.toplist-section {
    margin-bottom: var(--space-2xl);
}

.toplist-section-title {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: var(--space-lg);
    padding-left: var(--space-sm);
}

.toplist-grid {
    display: grid;
    gap: var(--space-lg);
}

.toplist-grid.official {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}

.toplist-grid.global {
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
}

.toplist-card {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
}

.toplist-card:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-4px);
}

.toplist-card.official-card {
    display: flex;
    gap: var(--space-md);
    padding: var(--space-md);
}

.toplist-cover {
    position: relative;
    flex-shrink: 0;
}

.toplist-cover img {
    width: 120px;
    height: 120px;
    border-radius: 8px;
    object-fit: cover;
}

.toplist-cover.small img {
    width: 100%;
    height: auto;
    aspect-ratio: 1;
    border-radius: 8px 8px 0 0;
}

.toplist-play-btn {
    position: absolute;
    bottom: 8px;
    right: 8px;
    width: 36px;
    height: 36px;
    background: var(--accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: translateY(8px);
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.toplist-play-btn svg {
    width: 18px;
    height: 18px;
    color: white;
    margin-left: 2px;
}

.toplist-card:hover .toplist-play-btn {
    opacity: 1;
    transform: translateY(0);
}

.toplist-update {
    position: absolute;
    top: 8px;
    left: 8px;
    background: rgba(0, 0, 0, 0.6);
    color: white;
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 4px;
}

.toplist-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.toplist-name {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: var(--space-sm);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.toplist-grid.global .toplist-name {
    padding: var(--space-sm) var(--space-md) var(--space-md);
    text-align: center;
}

.toplist-tracks {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.toplist-track-item {
    font-size: 12px;
    color: var(--text-secondary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.6;
}
