#global-player.player-card {
    width: 420px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 18px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.18);
    border: none;
    font-family: 'HarmonyOS Sans', 'PingFang SC', 'Microsoft YaHei', sans-serif;
    color: #222;
    padding: 18px 18px 12px 18px;
    position: fixed;
    left: 40px;
    bottom: 40px;
    z-index: 9999;
    transition: all 0.3s ease;
}

/* 最大化状态样式 */
#global-player.player-card.maximized {
    width: 90vw;
    height: 80vh;
    left: 5vw;
    bottom: 10vh;
    border-radius: 12px;
    padding: 24px;
    display: flex;
    flex-direction: column;
}

#global-player.player-card.maximized .player-main-row {
    flex: 1;
    align-items: flex-start;
    gap: 24px;
}

#global-player.player-card.maximized .player-left {
    flex: 1;
    max-width: 300px;
}

#global-player.player-card.maximized .player-center {
    flex: 0 0 200px;
}

#global-player.player-card.maximized .player-cover-outer {
    width: 180px;
    height: 180px;
}

#global-player.player-card.maximized .player-cover {
    width: 168px;
    height: 168px;
}

#global-player.player-card.maximized .player-right {
    flex: 1;
    max-width: 300px;
}

#global-player.player-card.maximized .player-bottom-row {
    margin-top: 20px;
}

#global-player.player-card.maximized #global-player-playlist {
    max-height: 300px;
    margin-top: 20px;
}

#global-player.player-card.maximized .player-lyrics {
    max-height: 200px;
    margin-top: 20px;
}
.player-main-row {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
}
.player-left {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 90px;
}
.player-song-title {
    font-size: 17px;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 6px;
    color: white;
    text-shadow: 0 1px 2px rgba(0,0,0,0.3);
}
.player-artist, .player-album {
    font-size: 14px;
    color: rgba(255,255,255,0.9);
    display: flex;
    align-items: center;
    gap: 6px;
    text-shadow: 0 1px 2px rgba(0,0,0,0.3);
}
.player-artist i, .player-album i, .player-song-title i {
    color: #FFD700;
}
.player-center {
    flex: 0 0 140px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.player-cover-outer {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 2px 12px rgba(0,0,0,0.10);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 4px solid #222;
}
.player-cover {
    width: 108px;
    height: 108px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #EE0000;
    transition: transform 0.3s ease;
}

/* 播放时封面旋转动画 */
.player-cover.rotating {
    animation: coverRotate 8s linear infinite;
}

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

/* 暂停时停止旋转 */
.player-cover.paused {
    animation-play-state: paused;
}

.player-right {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: flex-end;
    min-width: 90px;
}
.player-time-row, .player-mode-row, .player-lyric-row {
    font-size: 14px;
    color: rgba(255,255,255,0.9);
    display: flex;
    align-items: center;
    gap: 6px;
    text-shadow: 0 1px 2px rgba(0,0,0,0.3);
}
.player-time-row i, .player-mode-row i, .player-lyric-row i {
    color: #FFD700;
}

/* 播放模式按钮样式 */
.player-mode-row {
    font-size: 14px;
    color: #444;
    display: flex;
    align-items: center;
    gap: 6px;
}

.player-mode-btn {
    background: rgba(255,255,255,0.2);
    border: none;
    color: rgba(255,255,255,0.9);
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 4px 8px;
    border-radius: 12px;
    transition: background 0.2s, color 0.2s;
    text-shadow: 0 1px 2px rgba(0,0,0,0.3);
}

.player-mode-btn:hover {
    background: rgba(255,255,255,0.3);
    color: white;
}

.player-mode-btn i {
    color: #FFD700;
}

/* 播放列表样式 */
#global-player-playlist {
    background: rgba(255,255,255,0.95);
    border-radius: 12px;
    margin-top: 12px;
    border: 1px solid rgba(255,255,255,0.3);
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.playlist-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    background: rgba(255,255,255,0.9);
    border-bottom: 1px solid rgba(255,255,255,0.3);
    font-weight: bold;
    color: #333;
}

.playlist-actions {
    display: flex;
    gap: 8px;
}

.playlist-action-btn {
    background: rgba(255,255,255,0.2);
    border: none;
    color: #666;
    font-size: 14px;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 6px;
    transition: background 0.2s, color 0.2s;
}

.playlist-action-btn:hover {
    background: rgba(255,215,0,0.3);
    color: #FFD700;
}

.playlist-content {
    max-height: 200px;
    overflow-y: auto;
}

.playlist-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 16px;
    border-bottom: 1px solid rgba(255,255,255,0.2);
    cursor: pointer;
    transition: background 0.2s;
}

.playlist-item:hover {
    background: rgba(255,255,255,0.1);
}

.playlist-item.current {
    background: rgba(255,215,0,0.2);
    border-left: 3px solid #FFD700;
}

.playlist-item-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
    cursor: pointer;
}

.playlist-item-name {
    font-size: 14px;
    font-weight: 500;
    color: #333;
}

.playlist-item-name.current {
    color: #FFD700;
    font-weight: bold;
}

.playlist-item-artist {
    font-size: 12px;
    color: #666;
}

.playlist-item-actions {
    display: flex;
    gap: 4px;
}

.playlist-item-delete {
    background: rgba(255,255,255,0.2);
    border: none;
    color: #999;
    font-size: 12px;
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    transition: background 0.2s, color 0.2s;
}

.playlist-item-delete:hover {
    background: rgba(255,68,68,0.3);
    color: #ff4444;
}

/* 拖拽样式 */
.playlist-item[draggable="true"] {
    cursor: grab;
}

.playlist-item[draggable="true"]:active {
    cursor: grabbing;
}

.playlist-item.dragging {
    opacity: 0.5;
    background: #f0f0f0;
}
.player-bottom-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 12px;
    padding: 8px 0;
    border-top: 1px solid rgba(255,255,255,0.2);
}
.player-volume {
    flex: 0 0 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,0.9);
    font-size: 14px;
    text-shadow: 0 1px 2px rgba(0,0,0,0.3);
}
.player-progress {
    flex: 1;
    display: flex;
    align-items: center;
}
.player-progress-bar {
    width: 100%;
    height: 4px;
    background: rgba(255,255,255,0.3);
    border-radius: 2px;
    outline: none;
    cursor: pointer;
    -webkit-appearance: none;
    transition: all 0.2s ease;
}

/* 控制器页面进度条禁用样式 */
.player-progress-bar[style*="pointer-events: none"] {
    cursor: not-allowed;
    background: rgba(255,255,255,0.1);
}

.player-progress-bar[style*="pointer-events: none"]::-webkit-slider-thumb {
    background: rgba(255,255,255,0.3);
    cursor: not-allowed;
}

.player-progress-bar[style*="pointer-events: none"]::-moz-range-thumb {
    background: rgba(255,255,255,0.3);
    cursor: not-allowed;
}

.player-progress-bar:hover {
    height: 6px;
    background: rgba(255,255,255,0.4);
}

.player-progress-bar:active,
.player-progress-bar:focus {
    height: 6px;
    background: rgba(255,255,255,0.5);
}

.player-progress-bar::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 12px;
    height: 12px;
    background: #FFD700;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(0,0,0,0.3);
    transition: all 0.2s ease;
}

.player-progress-bar:hover::-webkit-slider-thumb {
    width: 16px;
    height: 16px;
    box-shadow: 0 3px 6px rgba(0,0,0,0.4);
}

.player-progress-bar:active::-webkit-slider-thumb,
.player-progress-bar:focus::-webkit-slider-thumb {
    width: 18px;
    height: 18px;
    background: #FFA500;
    box-shadow: 0 4px 8px rgba(0,0,0,0.5);
}

.player-progress-bar::-moz-range-thumb {
    width: 12px;
    height: 12px;
    background: #FFD700;
    border-radius: 50%;
    cursor: pointer;
    border: none;
    box-shadow: 0 2px 4px rgba(0,0,0,0.3);
    transition: all 0.2s ease;
}

.player-progress-bar:hover::-moz-range-thumb {
    width: 16px;
    height: 16px;
    box-shadow: 0 3px 6px rgba(0,0,0,0.4);
}

.player-progress-bar:active::-moz-range-thumb,
.player-progress-bar:focus::-moz-range-thumb {
    width: 18px;
    height: 18px;
    background: #FFA500;
    box-shadow: 0 4px 8px rgba(0,0,0,0.5);
}

.player-list-btn {
    flex: 0 0 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,0.9);
    font-size: 14px;
    cursor: pointer;
    text-shadow: 0 1px 2px rgba(0,0,0,0.3);
    transition: color 0.2s;
}

.player-list-btn:hover {
    color: #FFD700;
}
.player-controls-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-top: 12px;
    padding: 8px 0;
    border-top: 1px solid rgba(255,255,255,0.2);
}
.player-btn {
    background: rgba(255,255,255,0.2);
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    text-shadow: 0 1px 2px rgba(0,0,0,0.3);
}
.player-btn:hover,
.player-btn:focus {
    background: rgba(255,255,255,0.3);
    transform: scale(1.05);
    color: #FFD700;
}
.player-btn.player-like {
    color: #FFD700;
}
.player-btn.player-fav {
    color: #FFD700;
}
.player-maximize {
    position: absolute;
    top: 8px;
    right: 8px;
    background: rgba(255,255,255,0.2);
    border: none;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    text-shadow: 0 1px 2px rgba(0,0,0,0.3);
}
.player-maximize:hover {
    background: rgba(255,255,255,0.3);
    transform: scale(1.05);
    color: #FFD700;
}
.player-minimize {
    position: absolute;
    top: 8px;
    right: 48px;
    background: rgba(255,255,255,0.2);
    border: none;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    text-shadow: 0 1px 2px rgba(0,0,0,0.3);
}
.player-minimize:hover {
    background: rgba(255,255,255,0.3);
    transform: scale(1.05);
    color: #FFD700;
}
#global-player.player-ball {
    width: 68px;
    height: 68px;
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 2px 12px rgba(0,0,0,0.18);
    border: 3px solid #EE0000;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: box-shadow 0.2s;
}
#global-player .player-ball-inner {
    width: 54px;
    height: 54px;
    border-radius: 50%;
    background: #EE0000;
    display: flex;
    align-items: center;
    justify-content: center;
}
#global-player .player-ball-icon {
    color: #fff;
    font-size: 28px;
}
.player-lyrics {
    max-height: 120px;
    overflow-y: auto;
    margin: 10px 0 0 0;
    padding: 8px 12px;
    background: rgba(255,255,255,0.85);
    border-radius: 8px;
    font-size: 14px;
    color: #222;
    line-height: 1.7;
    box-shadow: 0 2px 8px rgba(238,0,0,0.04);
}
.player-lyrics .lyrics-line {
    padding: 2px 0;
    transition: color 0.2s, background 0.2s;
}
.player-lyrics .lyrics-line.active {
    color: #EE0000;
    font-weight: bold;
    background: rgba(238,0,0,0.08);
    border-radius: 4px;
}
.player-lyrics .lyrics-line.past {
    color: #aaa;
}
.player-lyrics .lyrics-line.future {
    color: #888;
}
.player-lyrics .lyrics-loading {
    color: #888;
    text-align: center;
    padding: 12px 0;
}
.player-lyrics .lyrics-static {
    white-space: pre-line;
    color: #333;
    font-size: 14px;
    line-height: 1.7;
}
.player-lyric-toggle.lyric-off {
    color: #aaa !important;
    text-decoration: line-through;
}
.player-volume-popup {
    background: rgba(255,255,255,0.98);
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(238,0,0,0.08);
    padding: 10px 6px 6px 6px;
    display: flex;
    align-items: center;
    justify-content: center;
}
#player-volume-slider {
    writing-mode: vertical-lr;
    direction: rtl;
    -webkit-appearance: slider-vertical;
    width: 32px;
    height: 90px;
    background: #eee;
    border-radius: 6px;
    outline: none;
    margin: 0;
    box-shadow: 0 1px 4px rgba(238,0,0,0.04);
}
#player-volume-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 18px;
    height: 18px;
    background: #EE0000;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(238,0,0,0.18);
}
#player-volume-slider::-moz-range-thumb {
    width: 18px;
    height: 18px;
    background: #EE0000;
    border-radius: 50%;
    cursor: pointer;
    border: none;
    box-shadow: 0 2px 4px rgba(238,0,0,0.18);
}
