/* 重置样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    height: 100%;
    overflow: hidden;
    -webkit-tap-highlight-color: transparent;
    -webkit-font-smoothing: antialiased;
    touch-action: manipulation;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Microsoft YaHei", sans-serif;
    line-height: 1.6;
    color: #333; /* 改为深色文字 */
    background: linear-gradient(135deg, #f5f7fa 0%, #e4e8f0 100%); /* 改为浅色渐变背景 */
    min-height: 100vh;
    overflow: hidden;
}

/* 移动端优化 */
@media (max-width: 768px) {
    body {
        font-size: 14px;
    }
}

/* 布局容器 */
.player-container {
    display: flex;
    flex-direction: column;
    height: 100vh;
    max-height: 100vh;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.9); /* 改为白色半透明背景 */
}

/* 顶部导航栏 */
.player-header {
    background: rgba(255, 255, 255, 0.95); /* 改为白色背景 */
    border-bottom: 1px solid rgba(0, 0, 0, 0.1); /* 改为深色边框 */
    padding: 0 15px;
    height: 60px;
    min-height: 60px;
    display: flex;
    align-items: center;
    flex-shrink: 0;
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.top-nav {
    display: flex;
    align-items: center;
    width: 100%;
    justify-content: space-between;
    gap: 15px;
}

.logo-link {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: #333; /* 改为深色文字 */
    font-size: 18px;
    font-weight: bold;
    white-space: nowrap;
    flex-shrink: 0;
}

.logo-link i {
    margin-right: 8px;
    font-size: 20px;
    color: #1db954; /* 保持绿色图标 */
}

.search-container {
    flex: 1;
    max-width: 500px;
    margin: 0 15px;
}

.search-form {
    display: flex;
    background: rgba(0, 0, 0, 0.05); /* 改为浅灰背景 */
    border-radius: 25px;
    overflow: hidden;
    transition: all 0.3s ease;
    min-height: 40px;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.search-form:focus-within {
    background: rgba(0, 0, 0, 0.08);
    box-shadow: 0 0 15px rgba(29, 185, 84, 0.2);
    border-color: rgba(29, 185, 84, 0.3);
}

.search-input {
    flex: 1;
    padding: 10px 15px;
    border: none;
    background: transparent;
    color: #333; /* 改为深色文字 */
    font-size: 14px;
    outline: none;
    min-width: 0;
}

.search-input::placeholder {
    color: rgba(0, 0, 0, 0.4); /* 改为深色占位符 */
}

.search-button {
    padding: 0 20px;
    border: none;
    background: linear-gradient(135deg, #1db954, #1ed760);
    color: white;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.search-button:hover {
    background: linear-gradient(135deg, #1ed760, #1db954);
    transform: scale(1.05);
}

.search-button i {
    margin-right: 5px;
}

.user-nav {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-shrink: 0;
}

.login-prompt {
    color: rgba(0, 0, 0, 0.6); /* 改为深色文字 */
    font-size: 14px;
}

.login-link {
    color: #1db954;
    text-decoration: none;
    font-weight: 500;
    margin-left: 5px;
    transition: color 0.3s ease;
}

.login-link:hover {
    color: #1ed760;
}

.my-room {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea, #764ba2);
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: white;
    font-size: 16px;
    transition: transform 0.3s ease;
}

.my-room:hover {
    transform: rotate(15deg) scale(1.1);
}

/* 移动端控制按钮 - 优化样式 */
.mobile-control-buttons {
    display: none;
    gap: 8px;
    margin-left: 10px;
}

.mobile-control-btn {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: rgba(29, 185, 84, 0.1);
    border: 2px solid rgba(29, 185, 84, 0.3);
    color: #1db954;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    transition: all 0.3s ease;
    position: relative;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.mobile-control-btn:hover {
    background: rgba(29, 185, 84, 0.2);
    transform: scale(1.1);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
}

.mobile-control-btn.active {
    background: #1db954;
    color: white;
    border-color: #1db954;
    box-shadow: 0 0 20px rgba(29, 185, 84, 0.3);
}

.mobile-control-btn .badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #ff3b30;
    color: white;
    font-size: 10px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 主内容区域 */
.player-content {
    flex: 1;
    display: flex;
    padding: 15px;
    gap: 15px;
    position: relative;
    overflow: hidden;
    height: calc(100vh - 140px);
}

/* 左侧边栏 - 桌面端显示 */
.sidebar {
    width: 210px;
    background: rgba(255, 255, 255, 0.9); /* 改为白色背景 */
    border-radius: 15px;
    padding: 15px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    flex-shrink: 0;
    height: 100%;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.08);
}

.menu-list {
    list-style: none;
}

.menu-item {
    margin-bottom: 8px;
    border-radius: 10px;
    overflow: hidden;
}

.menu-link {
    display: flex;
    align-items: center;
    padding: 12px 15px;
    color: rgba(0, 0, 0, 0.7); /* 改为深色文字 */
    text-decoration: none;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
    font-size: 14px;
}

.menu-link:hover {
    background: rgba(0, 0, 0, 0.05);
    color: #333;
}

.menu-item.active .menu-link {
    background: rgba(29, 185, 84, 0.1);
    color: #1db954;
    border-left-color: #1db954;
}

.menu-icon {
    width: 24px;
    height: 24px;
    margin-right: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    color: rgba(0, 0, 0, 0.6);
}

.playlist-section {
    margin-top: 10px;
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.chart-switcher-container {
    flex: 1;
    overflow: hidden;
}

/* 榜单切换器 */
.chart-switcher {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 15px;
}

.chart-btn {
    padding: 12px 16px;
    background: rgba(0, 0, 0, 0.04);
    border: 1px solid rgba(0, 0, 0, 0.1);
    color: rgba(0, 0, 0, 0.7);
    border-radius: 12px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s ease;
    text-align: left;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 10px;
}

.chart-btn:hover {
    background: rgba(0, 0, 0, 0.08);
    transform: translateX(5px);
}

.chart-btn.active {
    background: linear-gradient(135deg, #1db954, #1ed760);
    color: white;
    border-color: #1db954;
    box-shadow: 0 4px 15px rgba(29, 185, 84, 0.2);
}

/* 播放列表区域 */
.playlist-area {
    flex: 1;
    background: rgba(255, 255, 255, 0.9); /* 改为白色背景 */
    border-radius: 15px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.08);
}

.playlist-header {
    background: rgba(255, 255, 255, 0.95);
    padding: 15px 20px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1); /* 改为深色边框 */
    flex-shrink: 0;
}

/* 播放列表表头 */
.header-row {
    display: grid;
    grid-template-columns: minmax(200px, 2fr) minmax(120px, 1fr) minmax(150px, 1fr) 100px;
    gap: 15px;
    color: rgba(0, 0, 0, 0.6); /* 改为深色文字 */
    font-size: 14px;
    font-weight: 500;
    align-items: center;
}

.header-row .column {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.playlist-body {
    flex: 1;
    overflow-y: auto;
    padding: 0;
    -webkit-overflow-scrolling: touch;
}

.scroll-container {
    height: 100%;
}

.song-list {
    list-style: none;
}

.song-item {
    margin: 0;
    border-radius: 0;
    transition: all 0.3s ease;
    position: relative;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05); /* 改为深色边框 */
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

.song-item:hover {
    background: rgba(0, 0, 0, 0.03);
}

.song-item.playing {
    background: rgba(29, 185, 84, 0.08);
    border-left: 3px solid #1db954;
}

/* 歌曲列表项布局 */
.song-content {
    display: grid;
    grid-template-columns: minmax(200px, 2fr) minmax(120px, 1fr) minmax(150px, 1fr) 100px;
    gap: 15px;
    padding: 12px 20px;
    align-items: center;
    min-height: 60px;
}

.song-content > * {
    display: flex;
    align-items: center;
    height: 100%;
}

.song-info {
    display: contents;
}

.song-title {
    font-weight: 500;
    color: rgba(0, 0, 0, 0.9); /* 改为深色文字 */
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 14px;
    display: flex;
    align-items: center;
}

.artist, .album {
    color: rgba(0, 0, 0, 0.7); /* 改为深色文字 */
    font-size: 13px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* 操作按钮 */
.song-actions {
    display: flex;
    gap: 8px;
    justify-content: flex-start;
    align-items: center;
}

.action-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.05);
    border: none;
    color: rgba(0, 0, 0, 0.6);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    font-size: 14px;
    padding: 0;
    flex-shrink: 0;
}

.action-btn:hover {
    background: rgba(0, 0, 0, 0.1);
    color: #333;
    transform: scale(1.1);
}

.love-btn:hover {
    background: rgba(255, 59, 48, 0.1);
    color: #ff3b30;
}

.love-btn.liked {
    color: #ff3b30;
    background: rgba(255, 59, 48, 0.15);
}

.love-btn.liked:hover {
    background: rgba(255, 59, 48, 0.25);
    color: #ff3b30;
}

.download-btn:hover {
    background: rgba(0, 122, 255, 0.1);
    color: #007aff;
}

/* 右侧专辑和歌词区域 - 调整为250px */
.album-sidebar {
    width: 250px;
    background: rgba(255, 255, 255, 0.9); /* 改为白色背景 */
    border-radius: 15px;
    padding: 15px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    flex-shrink: 0;
    height: 100%;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.08);
}

.album-cover {
    text-align: center;
    flex-shrink: 0;
}

.cover-container {
    margin: 0;
}

.cover-link {
    display: block;
    transition: all 0.3s ease;
}

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

.cover-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 10px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.cover-caption {
    color: rgba(0, 0, 0, 0.6); /* 改为深色文字 */
    font-size: 12px;
    margin-top: 8px;
}

/* 歌词显示区域 */
.lyrics-container {
    flex: 1;
    background: rgba(255, 255, 255, 0.8); /* 改为浅色背景 */
    border-radius: 10px;
    padding: 12px;
    overflow-y: auto;
    color: rgba(0, 0, 0, 0.8); /* 改为深色文字 */
    font-size: 13px;
    line-height: 2;
    display: flex;
    flex-direction: column;
    min-height: 150px;
    position: relative;
    -webkit-overflow-scrolling: touch;
    border: 1px solid rgba(0, 0, 0, 0.08);
}

.lyrics-scroll-container {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    overflow-y: auto;
    padding: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.lyric-line {
    width: 100%;
    text-align: center;
    padding: 6px 0;
    transition: all 0.3s ease;
    opacity: 0.6;
    font-size: 13px;
    line-height: 1.6;
}

.lyric-line.active {
    color: #1db954;
    font-weight: 500;
    opacity: 1;
    transform: scale(1.05);
    text-shadow: 0 0 10px rgba(29, 185, 84, 0.15);
}

.lyrics-loading {
    font-style: italic;
    color: rgba(0, 0, 0, 0.5); /* 改为深色文字 */
    text-align: center;
    padding: 20px;
}

/* 播放控制栏 - 修复移动端padding */
.player-controls {
    background: rgba(255, 255, 255, 0.95); /* 改为白色背景 */
    border-top: 1px solid rgba(0, 0, 0, 0.1); /* 改为深色边框 */
    padding: 0;
    backdrop-filter: blur(10px);
    height: 80px;
    min-height: 80px;
    flex-shrink: 0;
    margin-top: auto;
    position: relative;
    z-index: 10;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.05);
}

.controls-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    height: 100%;
    gap: 20px;
    padding: 10px 15px;
    box-sizing: border-box;
}

/* 播放控制按钮 */
.playback-controls {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-shrink: 0;
}

.control-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.05);
    border: none;
    color: #333; /* 改为深色文字 */
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    font-size: 16px;
}

.control-btn:hover {
    background: rgba(0, 0, 0, 0.1);
    transform: scale(1.1);
}

/* 播放按钮样式 */
.play-btn {
    width: 45px;
    height: 45px;
    background: linear-gradient(135deg, #1db954, #1ed760);
}

.play-btn:hover {
    background: linear-gradient(135deg, #1ed760, #1db954);
    transform: scale(1.15);
}

.player-info {
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex: 1;
    min-width: 0;
}

.track-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
}

.track-title {
    display: flex;
    align-items: center;
    gap: 5px;
    flex: 1;
    min-width: 0;
}

.song-link, .artist-link {
    color: #333; /* 改为深色文字 */
    text-decoration: none;
    transition: color 0.3s ease;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 14px;
}

.song-link:hover, .artist-link:hover {
    color: #1db954;
}

.separator {
    color: rgba(0, 0, 0, 0.4); /* 改为深色 */
    margin: 0 5px;
    flex-shrink: 0;
}

.track-actions {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
}

.track-action-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.05);
    border: none;
    color: rgba(0, 0, 0, 0.6);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    font-size: 14px;
}

.track-action-btn:hover {
    background: rgba(0, 0, 0, 0.1);
    color: #333;
}

.progress-container {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
}

.current-time, .duration {
    color: rgba(0, 0, 0, 0.6); /* 改为深色文字 */
    font-size: 11px;
    min-width: 40px;
    flex-shrink: 0;
}

.progress-bar {
    flex: 1;
    height: 4px;
    background: rgba(0, 0, 0, 0.1);
    border-radius: 2px;
    position: relative;
    cursor: pointer;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(135deg, #1db954, #1ed760);
    border-radius: 2px;
    width: 0%;
    position: relative;
    transition: width 0.1s linear;
}

.progress-handle {
    position: absolute;
    right: -6px;
    top: 50%;
    transform: translateY(-50%);
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #1db954; /* 改为绿色手柄 */
    border: none;
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.3s ease;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
}

.progress-bar:hover .progress-handle {
    opacity: 1;
}

.volume-control {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.volume-btn {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.05);
    border: none;
    color: rgba(0, 0, 0, 0.6);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.volume-btn:hover {
    background: rgba(0, 0, 0, 0.1);
    color: #333;
}

.volume-slider {
    width: 80px;
    height: 4px;
    background: rgba(0, 0, 0, 0.1);
    border-radius: 2px;
    position: relative;
    cursor: pointer;
}

.volume-fill {
    height: 100%;
    background: linear-gradient(135deg, #1db954, #1ed760);
    border-radius: 2px;
    width: 80%;
    position: relative;
}

.volume-handle {
    position: absolute;
    right: -6px;
    top: 50%;
    transform: translateY(-50%);
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #1db954; /* 改为绿色手柄 */
    border: none;
    cursor: pointer;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
}

/* 付费提示 */
.pay-badge {
    display: inline-block;
    padding: 2px 6px;
    background: rgba(255, 204, 0, 0.15);
    color: #cc9900;
    border-radius: 8px;
    font-size: 9px;
    margin-left: 5px;
    vertical-align: middle;
}

/* 通知样式 */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: linear-gradient(135deg, #1db954, #1ed760);
    color: white;
    padding: 12px 20px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOut {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(100%);
        opacity: 0;
    }
}

/* ==================== 响应式设计 ==================== */

/* 平板端 (769px - 1024px) */
@media (min-width: 769px) and (max-width: 1024px) {
    .sidebar, .album-sidebar {
        display: none;
    }
    
    .mobile-control-buttons {
        display: flex;
    }
    
    .sidebar.mobile-active {
        display: flex;
        position: fixed;
        top: 60px;
        left: 0;
        bottom: 80px;
        width: 250px;
        z-index: 100;
        border-radius: 0;
    }
    
    .album-sidebar.mobile-active {
        display: flex;
        position: fixed;
        top: 60px;
        right: 0;
        bottom: 80px;
        width: 250px;
        z-index: 100;
        border-radius: 0;
    }
    
    .header-row, .song-content {
        grid-template-columns: minmax(150px, 2fr) minmax(100px, 1fr) minmax(100px, 1fr) 90px;
        gap: 10px;
    }
}

/* 移动端 (小于769px) - 优化布局 */
@media (max-width: 768px) {
    .player-header {
        padding: 0 10px;
        height: 50px;
        min-height: 50px;
    }
    
    /* 隐藏左上角logo */
    .logo-link {
        display: none !important;
    }
    
    /* 优化搜索框布局 */
    .search-container {
        flex: 1;
        margin: 0 8px;
        min-width: 0;
    }
    
    .search-form {
        min-height: 36px;
    }
    
    .search-input {
        padding: 8px 12px;
        font-size: 13px;
    }
    
    .search-button {
        padding: 0 12px;
        min-height: 36px;
        font-size: 12px;
    }
    
    .search-button span {
        display: inline-block !important;
        font-size: 12px;
    }
    
    .search-button i {
        margin-right: 4px;
        font-size: 12px;
    }
    
    /* 显示并优化移动端控制按钮 */
    .mobile-control-buttons {
        display: flex !important;
        gap: 6px;
        margin-left: 8px;
        order: 2; /* 调整到右边 */
    }
    
    .mobile-control-btn {
        width: 36px;
        height: 36px;
        font-size: 16px;
        border: 1px solid rgba(29, 185, 84, 0.3);
    }
    
    .mobile-control-btn .badge {
        width: 16px;
        height: 16px;
        font-size: 10px;
        top: -3px;
        right: -3px;
    }
    
    /* 优化用户导航 */
    .user-nav {
        order: 1; /* 调整到左边 */
        margin-left: 0;
        display: flex;
        gap: 8px;
    }
    
    .login-prompt {
        font-size: 12px;
        color: rgba(0, 0, 0, 0.6);
    }
    
    .login-link {
        font-size: 12px;
        margin-left: 0;
    }
    
    /* 优化top-nav布局 */
    .top-nav {
        gap: 8px;
    }
    
    /* 隐藏不需要的元素 */
    .my-room {
        display: none;
    }
    
    .player-content {
        padding: 10px;
        height: calc(100vh - 130px);
    }
    
    .sidebar, .album-sidebar {
        display: none;
    }
    
    .sidebar.mobile-active {
        display: flex;
        position: fixed;
        top: 50px;
        left: 0;
        bottom: 80px;
        width: 250px;
        z-index: 100;
        border-radius: 0;
    }
    
    .album-sidebar.mobile-active {
        display: flex;
        position: fixed;
        top: 50px;
        right: 0;
        bottom: 80px;
        width: 250px;
        z-index: 100;
        border-radius: 0;
    }
    
    .overlay {
        display: none;
        position: fixed;
        top: 50px;
        left: 0;
        right: 0;
        bottom: 80px;
        background: rgba(255, 255, 255, 0.8);
        z-index: 99;
        backdrop-filter: blur(5px);
    }
    
    .overlay.active {
        display: block;
    }
    
    .header-row {
        display: none;
    }
    
    .song-content {
        grid-template-columns: 1fr 80px;
        grid-template-areas: 
            "song actions"
            "artist actions";
        gap: 5px 10px;
        padding: 10px 15px;
    }
    
    .song-col {
        grid-area: song;
    }
    
    .artist-col {
        grid-area: artist;
        font-size: 11px;
        color: rgba(0, 0, 0, 0.6);
    }
    
    .album-col {
        display: none;
    }
    
    .actions-col {
        grid-area: actions;
        justify-self: end;
    }
    
    .player-controls {
        height: 100px;
        padding: 0;
    }
    
    .controls-container {
        flex-wrap: wrap;
        gap: 8px;
        padding: 8px 12px;
        justify-content: center;
    }
    
    .playback-controls {
        order: 1;
        width: 100%;
        justify-content: center;
        gap: 10px;
    }
    
    .player-info {
        order: 3;
        width: 100%;
        gap: 5px;
    }
    
    .volume-control {
        order: 2;
        flex-shrink: 0;
    }
    
    .track-title {
        flex-direction: row;
        align-items: center;
        gap: 5px;
    }
    
    .separator {
        display: inline;
    }
    
    .song-link, .artist-link {
        font-size: 12px;
        max-width: 120px;
        color: #333;
    }
    
    .track-actions {
        gap: 5px;
    }
    
    .track-action-btn {
        width: 28px;
        height: 28px;
        font-size: 12px;
    }
    
    .current-time, .duration {
        font-size: 10px;
        min-width: 35px;
    }
    
    .progress-bar {
        height: 3px;
    }
}

/* 小屏手机 - 进一步优化 */
@media (max-width: 480px) {
    .player-header {
        padding: 0 8px;
        height: 48px;
        min-height: 48px;
    }
    
    /* 在小屏上隐藏搜索按钮文字 */
    .search-button span {
        display: none !important;
    }
    
    .search-button {
        padding: 0 10px;
        min-width: 36px;
    }
    
    .search-button i {
        margin-right: 0;
    }
    
    .mobile-control-btn {
        width: 34px;
        height: 34px;
        font-size: 15px;
    }
    
    .mobile-control-btn .badge {
        width: 14px;
        height: 14px;
        font-size: 9px;
        top: -2px;
        right: -2px;
    }
    
    .user-nav {
        gap: 6px;
    }
    
    .login-prompt {
        font-size: 11px;
        color: rgba(0, 0, 0, 0.6);
    }
    
    .login-link {
        font-size: 11px;
    }
    
    .song-content {
        grid-template-columns: 1fr 70px;
        padding: 8px 12px;
        min-height: 50px;
    }
    
    .song-title {
        font-size: 13px;
        color: #333;
    }
    
    .artist {
        font-size: 10px;
        color: rgba(0, 0, 0, 0.6);
    }
    
    .action-btn {
        width: 28px;
        height: 28px;
        font-size: 12px;
    }
    
    .play-btn {
        width: 40px;
        height: 40px;
    }
    
    .controls-container {
        padding: 6px 10px;
        gap: 6px;
    }
    
    .playback-controls {
        gap: 8px;
    }
    
    .control-btn {
        width: 36px;
        height: 36px;
        font-size: 14px;
    }
}

/* 中等屏幕手机 (481px - 600px) */
@media (min-width: 481px) and (max-width: 600px) {
    .search-button span {
        display: inline-block !important;
    }
    
    .search-button {
        padding: 0 12px;
    }
    
    .search-button i {
        margin-right: 4px;
    }
}

/* 横屏模式 */
@media (max-height: 600px) and (orientation: landscape) {
    .player-header {
        height: 50px;
        padding: 0 10px;
    }
    
    /* 横屏时显示搜索按钮文字 */
    .search-button span {
        display: inline-block !important;
    }
    
    .search-button {
        padding: 0 12px;
    }
    
    .player-content {
        height: calc(100vh - 130px);
        padding: 10px;
    }
    
    .player-controls {
        height: 80px;
        padding: 0;
    }
    
    .controls-container {
        padding: 8px 12px;
    }
    
    .cover-image {
        height: 120px;
    }
    
    .lyrics-container {
        font-size: 11px;
    }
}

/* 动画效果 */
@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.song-item {
    animation: fadeIn 0.3s ease-out;
}

.play-btn.playing {
    animation: pulse 2s infinite;
}

/* 滚动条样式 */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.05);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb {
    background: rgba(29, 185, 84, 0.3);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(29, 185, 84, 0.5);
}

/* 加载动画 */
.loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    min-height: 200px;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(0, 0, 0, 0.1);
    border-top-color: #1db954;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 15px;
}

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

/* 歌词高亮动画 */
@keyframes lyricHighlight {
    0% { transform: scale(1); }
    50% { transform: scale(1.02); }
    100% { transform: scale(1); }
}

.lyric-line.active {
    animation: lyricHighlight 2s ease-in-out infinite;
}

/* 空状态提示 */
.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    color: rgba(0, 0, 0, 0.4);
    font-style: italic;
    text-align: center;
}