/* ============================================
   重新设计的音乐播放器样式
   侧边栏布局 + 歌单卡片网格 + 动态主题色
   ============================================ */

/* CSS变量 - 动态主题色 */
:root {
    --theme-primary: #667eea;
    --theme-secondary: #764ba2;
    --theme-gradient: linear-gradient(135deg, var(--theme-primary) 0%, var(--theme-secondary) 100%);
    --theme-rgb: 102, 126, 234;
    --text-primary: #ffffff;
    --text-secondary: rgba(255, 255, 255, 0.7);
    --text-muted: rgba(255, 255, 255, 0.5);
    --bg-dark: rgba(0, 0, 0, 0.3);
    --bg-darker: rgba(0, 0, 0, 0.5);
    --border-color: rgba(255, 255, 255, 0.1);
}

/* 收起状态切换按钮 */
.player-toggle-btn {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--theme-gradient);
    backdrop-filter: blur(20px);
    border-radius: 50px;
    padding: 10px 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    z-index: 99999;
    cursor: pointer;
    transition: all 0.3s ease;
    max-width: 90vw;
}

.player-toggle-btn:hover {
    transform: translateX(-50%) translateY(-2px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
}

.toggle-cover-wrap {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    flex-shrink: 0;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.toggle-cover-icon {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.7);
    z-index: 1;
}

.toggle-cover {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background-size: cover;
    background-position: center;
    z-index: 2;
}

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

.toggle-title {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.toggle-artist {
    display: block;
    font-size: 12px;
    color: var(--text-secondary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.toggle-controls {
    display: flex;
    gap: 8px;
}

.toggle-btn {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    transition: all 0.2s;
}

.toggle-btn:hover {
    background: rgba(255, 255, 255, 0.3);
}

.toggle-btn.toggle-play {
    width: 40px;
    height: 40px;
    background: white;
    color: var(--theme-primary);
}

.toggle-expand {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    border-radius: 20px;
    color: white;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    padding: 8px 14px;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
    min-width: 80px;
}

.toggle-expand:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.6);
}

.toggle-expand:active {
    transform: translateY(0);
}

.expand-icon {
    font-size: 16px;
    animation: pulse 2s ease-in-out infinite;
}

.expand-text {
    font-size: 13px;
}

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

/* 全屏播放器容器 */
.music-player-container {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(20px);
    z-index: 99998;
    display: flex;
    overflow: hidden;
}

/* 左侧侧边栏 */
.player-sidebar {
    width: 320px;
    background: rgba(0, 0, 0, 0.5);
    border-right: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    transition: width 0.3s ease;
    position: relative;
}

.player-sidebar.collapsed {
    width: 0;
    overflow: hidden;
}

/* 侧边栏区域 */
.sidebar-section {
    padding: 20px;
    border-bottom: 1px solid var(--border-color);
}

.sidebar-section.songs-section {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border-bottom: none;
}

/* 区域标题 */
.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 15px;
}

.section-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
}

.section-toggle {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 18px;
    cursor: pointer;
    padding: 5px;
}

.song-count-badge {
    background: rgba(255, 255, 255, 0.1);
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 12px;
    color: var(--text-secondary);
}

.play-all-btn {
    background: var(--theme-color);
    color: #fff;
    border: none;
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 12px;
    cursor: pointer;
    margin-left: auto;
    white-space: nowrap;
    transition: opacity 0.2s;
}
.play-all-btn:hover {
    opacity: 0.85;
}

/* 歌单卡片网格 */
.group-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    max-height: 200px;
    overflow-y: auto;
}

.group-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    padding: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.group-card:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

.group-card.active {
    border-color: var(--theme-primary);
    background: rgba(102, 126, 234, 0.1);
}

.group-card.disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.group-card.disabled:hover {
    transform: none;
    background: rgba(255, 255, 255, 0.05);
}

.group-card-cover {
    width: 100%;
    aspect-ratio: 1;
    background: var(--theme-gradient);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 6px;
    position: relative;
}

.group-card-icon {
    font-size: 20px;
}

.group-lock-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 24px;
    background: rgba(0, 0, 0, 0.6);
    border-radius: 50%;
    padding: 6px;
    z-index: 2;
}

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

.group-card-count {
    font-size: 10px;
    color: var(--text-secondary);
}

/* 歌曲搜索 */
.songs-search {
    margin-bottom: 15px;
}

.songs-search-input {
    width: 100%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 10px 15px;
    color: var(--text-primary);
    font-size: 13px;
    outline: none;
    transition: all 0.2s;
}

.songs-search-input:focus {
    border-color: var(--theme-primary);
    background: rgba(255, 255, 255, 0.08);
}

.songs-search-input::placeholder {
    color: var(--text-muted);
}

/* 歌曲列表 */
.songs-list {
    flex: 1;
    overflow-y: auto;
}

.song-item {
    display: flex;
    align-items: center;
    padding: 12px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    margin-bottom: 4px;
}

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

.song-item.active {
    background: rgba(102, 126, 234, 0.15);
    border: 1px solid rgba(102, 126, 234, 0.3);
}

.song-item-cover-wrap {
    position: relative;
    width: 40px;
    height: 40px;
    flex-shrink: 0;
    margin-right: 12px;
}

.song-item-cover-icon {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: rgba(255, 255, 255, 0.25);
    background: var(--theme-gradient);
    border-radius: 6px;
}

.song-item-cover {
    width: 100%;
    height: 100%;
    border-radius: 6px;
    object-fit: cover;
    position: relative;
    z-index: 1;
}

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

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

.song-item-artist {
    font-size: 12px;
    color: var(--text-secondary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.song-item-playcount {
    font-size: 11px;
    color: rgba(255,255,255,0.3);
    white-space: nowrap;
    margin-right: 8px;
    flex-shrink: 0;
}

.song-item-status {
    flex-shrink: 0;
}

.song-item-playing {
    color: var(--theme-primary);
    font-size: 16px;
    animation: pulse 1s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* 侧边栏收起/展开按钮 */
.sidebar-collapse-btn,
.sidebar-expand-btn {
    position: absolute;
    right: -20px;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 60px;
    background: var(--theme-gradient);
    border: none;
    color: white;
    font-size: 16px;
    cursor: pointer;
    border-radius: 0 8px 8px 0;
    z-index: 10;
}

.sidebar-expand-btn {
    left: 0;
    right: auto;
    border-radius: 8px 0 0 8px;
}

/* 右侧主播放区域 */
.player-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px;
    position: relative;
    background: radial-gradient(circle at center, rgba(var(--theme-rgb), 0.1) 0%, transparent 70%);
}

/* 顶部控制栏 */
.player-top-bar {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    padding: 20px 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.player-close-btn {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: var(--text-primary);
    padding: 10px 20px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.2s;
}

.player-close-btn:hover {
    background: rgba(255, 255, 255, 0.2);
}

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

.volume-icon {
    font-size: 20px;
    color: var(--text-primary);
}

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

.volume-fill {
    height: 100%;
    background: var(--theme-gradient);
    border-radius: 2px;
    width: 70%;
}

/* 封面区域 */
.player-cover-section {
    margin-bottom: 30px;
}

.player-cover-wrapper {
    position: relative;
    width: 300px;
    height: 300px;
}

.player-cover-bg {
    position: absolute;
    inset: -20px;
    background: var(--theme-gradient);
    border-radius: 50%;
    filter: blur(40px);
    opacity: 0.5;
    animation: rotate 20s linear infinite;
}

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

.player-cover {
    width: 100%;
    height: 100%;
    border-radius: 20px;
    object-fit: cover;
    position: relative;
    z-index: 1;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.player-cover-placeholder {
    position: absolute;
    inset: 0;
    background: var(--theme-gradient);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 80px;
    color: rgba(255, 255, 255, 0.3);
    z-index: 0;
}

/* 歌曲信息 */
.player-song-info {
    text-align: center;
    margin-bottom: 30px;
}

.player-song-title {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 10px 0;
}

.player-song-artist {
    font-size: 16px;
    color: var(--text-secondary);
    margin: 0 0 5px 0;
}

.player-song-source {
    font-size: 13px;
    color: var(--text-muted);
    margin: 0;
}

/* 歌词区域 */
.player-lyrics-section {
    width: 100%;
    max-width: 600px;
    height: 35%;
    margin-bottom: 30px;
    overflow: hidden;
    position: relative;
}

.lyrics-scroll {
    height: 100%;
    overflow-y: auto;
    text-align: center;
    scroll-behavior: smooth;
}

.lyrics-scroll::-webkit-scrollbar {
    display: none;
}

.lyrics-content {
    padding: 60px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.lyrics-line {
    font-size: 15px;
    color: rgba(255, 255, 255, 0.4);
    margin: 12px 0;
    padding: 8px 16px;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 20px;
    line-height: 1.4;
    opacity: 0.5;
    transform: scale(0.95);
}

.lyrics-line.active {
    font-size: 20px;
    color: #ffffff;
    font-weight: 600;
    text-shadow: 0 0 20px rgba(var(--theme-rgb), 0.8),
                 0 2px 4px rgba(0, 0, 0, 0.3);
    padding: 10px 20px;
    margin: 14px 0;
    opacity: 1;
    transform: scale(1.02);
}

.lyrics-line.lyrics-empty {
    font-style: italic;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.3);
    opacity: 1;
    transform: none;
}

/* 进度条区域 */
.player-progress-section {
    width: 100%;
    max-width: 600px;
    margin-bottom: 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.progress-bar {
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    cursor: pointer;
    position: relative;
    margin-bottom: 10px;
}

.progress-fill {
    height: 100%;
    background: var(--theme-gradient);
    border-radius: 3px;
    width: 0%;
    position: relative;
}

.progress-handle {
    position: absolute;
    right: -6px;
    top: 50%;
    transform: translateY(-50%);
    width: 14px;
    height: 14px;
    background: white;
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    opacity: 0;
    transition: opacity 0.2s;
}

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

.progress-time {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    font-size: 13px;
    color: var(--text-secondary);
    gap: 4px;
}

.time-separator {
    color: var(--text-muted);
    margin: 0 2px;
}

/* 播放控制 */
.player-controls {
    display: flex;
    align-items: center;
    gap: 20px;
}

.control-btn {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: var(--text-primary);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    transition: all 0.2s;
}

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

.control-btn.control-play {
    width: 70px;
    height: 70px;
    background: var(--theme-gradient);
    font-size: 28px;
}

.control-btn.control-play:hover {
    transform: scale(1.15);
    box-shadow: 0 8px 24px rgba(var(--theme-rgb), 0.4);
}

/* 权限提示遮罩 */
.permission-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100001;
}

.permission-dialog {
    background: rgba(30, 30, 30, 0.95);
    border-radius: 16px;
    padding: 40px;
    text-align: center;
    max-width: 320px;
    border: 1px solid var(--border-color);
}

.permission-icon {
    font-size: 64px;
    margin-bottom: 20px;
}

.permission-title {
    margin: 0 0 15px 0;
    color: var(--text-primary);
    font-size: 24px;
}

.permission-message {
    margin: 0 0 10px 0;
    color: var(--text-secondary);
    font-size: 16px;
}

.permission-tip {
    margin: 0 0 25px 0;
    color: var(--text-muted);
    font-size: 14px;
}

.permission-close-btn {
    background: var(--theme-gradient);
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 25px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.2s;
}

.permission-close-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 16px rgba(var(--theme-rgb), 0.4);
}

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

::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
}

::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* 响应式设计 */
@media (max-width: 1024px) {
    .player-sidebar {
        width: 280px;
    }
    
    .player-cover-wrapper {
        width: 250px;
        height: 250px;
    }
    
    .player-song-title {
        font-size: 24px;
    }
}

@media (max-width: 768px) {
    .music-player-container {
        flex-direction: column;
    }
    
    .player-sidebar {
        width: 100%;
        height: 50%;
        border-right: none;
        border-bottom: 1px solid var(--border-color);
    }
    
    .player-main {
        height: 50%;
        padding: 20px;
    }
    
    .player-cover-wrapper {
        width: 180px;
        height: 180px;
    }
    
    .player-song-title {
        font-size: 20px;
    }
    
    .player-lyrics-section {
        height: 80px;
    }
    
    .control-btn {
        width: 45px;
        height: 45px;
        font-size: 18px;
    }
    
    .control-btn.control-play {
        width: 60px;
        height: 60px;
    }
    
    /* 侧边栏适配 */
    .sidebar-section {
        padding: 15px;
    }
    
    .songs-search-input {
        padding: 8px 12px;
        font-size: 12px;
    }
    
    .song-item {
        padding: 10px;
    }
    
    .song-item-cover-wrap {
        width: 36px;
        height: 36px;
        margin-right: 10px;
    }
    
    .song-item-title {
        font-size: 13px;
    }
    
    .song-item-artist {
        font-size: 11px;
    }
    
    .section-title {
        font-size: 14px;
    }
    
    .play-all-btn {
        padding: 3px 10px;
        font-size: 11px;
    }
    
    /* 顶部栏适配 */
    .player-top-bar {
        padding: 15px 20px;
    }
    
    .player-close-btn {
        padding: 8px 16px;
        font-size: 13px;
    }
    
    .player-song-source {
        font-size: 12px;
    }
    
    .sidebar-collapse-btn,
    .sidebar-expand-btn {
        width: 18px;
        height: 50px;
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    /* 迷你切换按钮 */
    .player-toggle-btn {
        padding: 6px 12px;
        gap: 10px;
    }
    
    .toggle-cover-wrap {
        width: 35px;
        height: 35px;
    }
    .toggle-cover {
        width: 35px;
        height: 35px;
    }
    .toggle-cover-icon {
        font-size: 14px;
    }
    
    .toggle-title {
        font-size: 12px;
    }
    .toggle-artist {
        font-size: 10px;
    }
    
    .toggle-controls {
        gap: 5px;
    }
    .toggle-btn {
        width: 28px;
        height: 28px;
        font-size: 12px;
    }
    .toggle-btn.toggle-play {
        width: 34px;
        height: 34px;
    }
    
    .toggle-expand {
        padding: 6px 10px;
        min-width: 60px;
    }
    .expand-icon {
        font-size: 14px;
    }
    .expand-text {
        font-size: 11px;
    }
    
    /* 侧边栏 */
    .sidebar-section {
        padding: 12px;
    }
    
    .group-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 6px;
        max-height: 160px;
    }
    
    .group-card {
        padding: 6px;
    }
    .group-card-icon {
        font-size: 16px;
    }
    .group-card-name {
        font-size: 10px;
    }
    .group-card-count {
        font-size: 9px;
    }
    
    .songs-search-input {
        padding: 6px 10px;
        font-size: 11px;
    }
    
    .song-item {
        padding: 8px;
    }
    .song-item-cover-wrap {
        width: 32px;
        height: 32px;
        margin-right: 8px;
    }
    .song-item-cover-icon {
        font-size: 16px;
    }
    .song-item-title {
        font-size: 12px;
    }
    .song-item-artist {
        font-size: 10px;
    }
    .song-item-playing {
        font-size: 14px;
    }
    .song-item-playcount {
        font-size: 10px;
        margin-right: 6px;
    }
    
    .section-title {
        font-size: 13px;
    }
    .song-count-badge {
        font-size: 10px;
        padding: 1px 6px;
    }
    .play-all-btn {
        padding: 2px 8px;
        font-size: 10px;
    }
    
    /* 全屏播放器 */
    .player-main {
        padding: 15px;
    }
    
    .player-cover-wrapper {
        width: 130px;
        height: 130px;
    }
    .player-cover-bg {
        inset: -15px;
    }
    .player-cover-placeholder {
        font-size: 50px;
    }
    .player-cover-section {
        margin-bottom: 20px;
    }
    
    .player-song-info {
        margin-bottom: 20px;
    }
    .player-song-title {
        font-size: 16px;
        margin-bottom: 6px;
    }
    .player-song-artist {
        font-size: 13px;
    }
    .player-song-source {
        font-size: 11px;
    }
    
    .player-lyrics-section {
        height: 50px;
        max-width: 100%;
        margin-bottom: 20px;
    }
    .lyrics-content {
        padding: 40px 10px;
    }
    .lyrics-line {
        font-size: 13px;
        margin: 8px 0;
        padding: 6px 12px;
    }
    .lyrics-line.active {
        font-size: 16px;
        padding: 8px 16px;
        margin: 10px 0;
    }
    
    .player-progress-section {
        max-width: 100%;
        margin-bottom: 20px;
    }
    .progress-bar {
        height: 5px;
        width: 90%;
    }
    .progress-time {
        font-size: 11px;
    }
    
    .player-controls {
        gap: 15px;
    }
    .control-btn {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }
    .control-btn.control-play {
        width: 55px;
        height: 55px;
        font-size: 22px;
    }
    
    /* 顶部栏 */
    .player-top-bar {
        padding: 12px 15px;
    }
    .player-close-btn {
        padding: 6px 12px;
        font-size: 12px;
    }
    .volume-icon {
        font-size: 16px;
    }
    .volume-slider {
        width: 60px;
    }
    
    .sidebar-collapse-btn,
    .sidebar-expand-btn {
        width: 16px;
        height: 40px;
        font-size: 12px;
    }
    
    /* 版权 */
    .player-copyright {
        font-size: 10px;
        bottom: 10px;
    }
}

@media (max-width: 400px) {
    /* 迷你切换按钮 */
    .player-toggle-btn {
        padding: 5px 10px;
        gap: 8px;
        max-width: 95vw;
    }
    
    .toggle-cover-wrap {
        width: 30px;
        height: 30px;
    }
    .toggle-cover {
        width: 30px;
        height: 30px;
    }
    .toggle-cover-icon {
        font-size: 12px;
    }
    
    .toggle-info {
        max-width: 80px;
    }
    .toggle-title {
        font-size: 11px;
    }
    .toggle-artist {
        display: none;
    }
    
    .toggle-controls {
        gap: 4px;
    }
    .toggle-btn {
        width: 24px;
        height: 24px;
        font-size: 10px;
    }
    .toggle-btn.toggle-play {
        width: 30px;
        height: 30px;
    }
    
    .toggle-expand {
        padding: 5px 8px;
        min-width: 45px;
    }
    .expand-icon {
        font-size: 12px;
    }
    .expand-text {
        font-size: 10px;
    }
    
    /* 侧边栏 */
    .sidebar-section {
        padding: 10px;
    }
    .section-header {
        margin-bottom: 10px;
    }
    .section-title {
        font-size: 12px;
    }
    .song-count-badge {
        font-size: 9px;
        padding: 1px 5px;
    }
    .play-all-btn {
        padding: 2px 6px;
        font-size: 9px;
    }
    
    .group-grid {
        max-height: 140px;
    }
    .group-card {
        padding: 5px;
    }
    .group-card-name {
        font-size: 9px;
    }
    .group-card-count {
        font-size: 8px;
    }
    
    .songs-search {
        margin-bottom: 10px;
    }
    .songs-search-input {
        padding: 5px 8px;
        font-size: 10px;
    }
    
    .song-item {
        padding: 6px;
    }
    .song-item-cover-wrap {
        width: 28px;
        height: 28px;
        margin-right: 6px;
    }
    .song-item-cover-icon {
        font-size: 14px;
    }
    .song-item-title {
        font-size: 11px;
    }
    .song-item-artist {
        font-size: 9px;
    }
    .song-item-playing {
        font-size: 12px;
    }
    .song-item-playcount {
        font-size: 9px;
        margin-right: 5px;
    }
    
    /* 全屏播放器 */
    .player-main {
        padding: 10px;
    }
    
    .player-cover-wrapper {
        width: 110px;
        height: 110px;
    }
    .player-cover-bg {
        inset: -12px;
    }
    .player-cover-section {
        margin-bottom: 15px;
    }
    
    .player-song-info {
        margin-bottom: 15px;
    }
    .player-song-title {
        font-size: 14px;
        margin-bottom: 4px;
    }
    .player-song-artist {
        font-size: 12px;
    }
    .player-song-source {
        font-size: 10px;
    }
    
    .player-lyrics-section {
        height: 40px;
        margin-bottom: 15px;
    }
    .lyrics-content {
        padding: 30px 8px;
    }
    .lyrics-line {
        font-size: 11px;
        margin: 6px 0;
        padding: 4px 10px;
    }
    .lyrics-line.active {
        font-size: 14px;
        padding: 6px 12px;
        margin: 8px 0;
    }
    
    .player-progress-section {
        margin-bottom: 15px;
    }
    .progress-bar {
        height: 4px;
    }
    .progress-time {
        font-size: 10px;
    }
    
    .player-controls {
        gap: 12px;
    }
    .control-btn {
        width: 36px;
        height: 36px;
        font-size: 14px;
    }
    .control-btn.control-play {
        width: 48px;
        height: 48px;
        font-size: 20px;
    }
    
    .player-top-bar {
        padding: 10px 12px;
    }
    .player-close-btn {
        padding: 5px 10px;
        font-size: 11px;
    }
    .volume-slider {
        width: 50px;
    }
    
    .sidebar-collapse-btn,
    .sidebar-expand-btn {
        width: 14px;
        height: 35px;
        font-size: 10px;
    }
    
    .player-copyright {
        font-size: 9px;
        bottom: 8px;
    }
}

@media (max-width: 360px) {
    /* 迷你切换按钮 */
    .player-toggle-btn {
        padding: 4px 8px;
        gap: 6px;
    }
    
    .toggle-cover-wrap {
        width: 26px;
        height: 26px;
    }
    .toggle-cover {
        width: 26px;
        height: 26px;
    }
    .toggle-cover-icon {
        font-size: 11px;
    }
    
    .toggle-info {
        max-width: 60px;
    }
    .toggle-title {
        font-size: 10px;
    }
    
    .toggle-btn {
        width: 22px;
        height: 22px;
        font-size: 9px;
    }
    .toggle-btn.toggle-play {
        width: 26px;
        height: 26px;
    }
    
    .toggle-expand {
        padding: 4px 6px;
        min-width: 36px;
    }
    .expand-text {
        display: none;
    }
    .expand-icon {
        font-size: 14px;
        margin: 0;
    }
    
    /* 侧边栏 */
    .sidebar-section {
        padding: 8px;
    }
    .section-title {
        font-size: 11px;
    }
    
    .group-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 4px;
        max-height: 120px;
    }
    .group-card {
        padding: 4px;
    }
    .group-card-icon {
        font-size: 14px;
    }
    .group-card-name {
        font-size: 8px;
    }
    
    .song-item {
        padding: 5px;
    }
    .song-item-cover-wrap {
        width: 24px;
        height: 24px;
        margin-right: 5px;
    }
    .song-item-cover-icon {
        font-size: 12px;
    }
    .song-item-title {
        font-size: 10px;
    }
    .song-item-artist {
        display: none;
    }
    .song-item-playing {
        font-size: 10px;
    }
    .song-item-playcount {
        display: none;
    }
    
    .songs-search-input {
        padding: 4px 6px;
        font-size: 9px;
    }
    
    /* 全屏播放器 */
    .player-main {
        padding: 8px;
    }
    
    .player-cover-wrapper {
        width: 90px;
        height: 90px;
    }
    .player-cover-bg {
        inset: -10px;
    }
    .player-cover-placeholder {
        font-size: 40px;
    }
    .player-cover-section {
        margin-bottom: 12px;
    }
    
    .player-song-title {
        font-size: 13px;
    }
    .player-song-artist {
        font-size: 11px;
    }
    .player-song-source {
        font-size: 9px;
    }
    
    .player-lyrics-section {
        height: 35px;
        margin-bottom: 12px;
    }
    .lyrics-line {
        font-size: 10px;
        margin: 4px 0;
        padding: 3px 8px;
    }
    .lyrics-line.active {
        font-size: 12px;
    }
    
    .progress-bar {
        height: 3px;
    }
    .progress-time {
        font-size: 9px;
    }
    
    .control-btn {
        width: 32px;
        height: 32px;
        font-size: 12px;
    }
    .control-btn.control-play {
        width: 42px;
        height: 42px;
        font-size: 18px;
    }
    
    .player-close-btn {
        padding: 4px 8px;
        font-size: 10px;
    }
    
    .player-copyright {
        font-size: 8px;
    }
}

/* 版权说明 */
.player-copyright {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 12px;
    color: rgba(255, 255, 255, 0.25);
    text-align: center;
    white-space: nowrap;
    pointer-events: none;
    user-select: none;
}