.music-player {
    position: fixed;
    left: 20px;
    bottom: 20px;
    z-index: 9999;
    font-family: 'Microsoft YaHei', sans-serif;
}

.player-toggle {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #3d1a1a 0%, #2a1010 100%);
    border: 2px solid #d4af37;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
    transition: all 0.3s ease;
}

.player-toggle:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.4);
}

.toggle-icon {
    color: #d4af37;
    font-size: 24px;
    animation: pulse 2s infinite;
}

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

.player-panel {
    position: absolute;
    left: 0;
    bottom: 60px;
    width: 280px;
    background: linear-gradient(180deg, #2a1010 0%, #1a0808 100%);
    border: 2px solid #d4af37;
    border-radius: 15px;
    padding: 15px;
    display: none;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.player-panel.active {
    display: block;
    animation: slideUp 0.3s ease;
}

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

.player-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(212, 175, 55, 0.3);
}

.player-title {
    color: #d4af37;
    font-size: 16px;
    font-weight: bold;
    letter-spacing: 2px;
}

.player-close {
    background: none;
    border: none;
    color: #d4af37;
    font-size: 24px;
    cursor: pointer;
    padding: 0 5px;
    transition: all 0.3s ease;
}

.player-close:hover {
    color: #fff;
    transform: rotate(90deg);
}

.player-cover {
    display: flex;
    justify-content: center;
    margin-bottom: 15px;
}

.cover-image {
    width: 120px;
    height: 120px;
    background: linear-gradient(135deg, #3d1a1a 0%, #1a0808 100%);
    border: 2px solid #d4af37;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

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

.cover-placeholder {
    color: #d4af37;
    font-size: 48px;
    animation: rotate 10s linear infinite;
}

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

.cover-image.playing .cover-placeholder {
    animation: rotate 3s linear infinite;
}

.player-info {
    text-align: center;
    margin-bottom: 15px;
}

.song-title {
    color: #f0e6d2;
    font-size: 14px;
    font-weight: bold;
    margin-bottom: 5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.song-artist {
    color: #888;
    font-size: 12px;
}

.player-progress {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}

.time-current,
.time-total {
    color: #888;
    font-size: 11px;
    min-width: 35px;
}

.progress-bar {
    flex: 1;
    height: 4px;
    background: rgba(212, 175, 55, 0.2);
    border-radius: 2px;
    cursor: pointer;
    position: relative;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #d4af37, #f0e6d2);
    border-radius: 2px;
    width: 0%;
    transition: width 0.1s linear;
}

.player-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-bottom: 15px;
}

.control-btn {
    background: none;
    border: 2px solid #d4af37;
    color: #d4af37;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    transition: all 0.3s ease;
}

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

.control-btn.play-btn {
    width: 50px;
    height: 50px;
    font-size: 20px;
}

.player-volume {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
    padding: 0 10px;
}

.volume-icon {
    font-size: 18px;
    cursor: pointer;
}

.volume-slider {
    flex: 1;
    height: 4px;
    -webkit-appearance: none;
    appearance: none;
    background: rgba(212, 175, 55, 0.2);
    border-radius: 2px;
    cursor: pointer;
}

.volume-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 12px;
    height: 12px;
    background: #d4af37;
    border-radius: 50%;
    cursor: pointer;
}

.volume-slider::-moz-range-thumb {
    width: 12px;
    height: 12px;
    background: #d4af37;
    border-radius: 50%;
    cursor: pointer;
    border: none;
}

.playlist-toggle {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
    background: rgba(212, 175, 55, 0.1);
    border-radius: 8px;
    cursor: pointer;
    color: #d4af37;
    font-size: 13px;
    transition: all 0.3s ease;
}

.playlist-toggle:hover {
    background: rgba(212, 175, 55, 0.2);
}

.playlist-count {
    background: #d4af37;
    color: #1a0808;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 11px;
    font-weight: bold;
}

.playlist {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.playlist.active {
    max-height: 200px;
    margin-top: 10px;
}

.playlist-items {
    list-style: none;
    padding: 0;
    margin: 0;
    max-height: 200px;
    overflow-y: auto;
}

.playlist-items::-webkit-scrollbar {
    width: 4px;
}

.playlist-items::-webkit-scrollbar-track {
    background: rgba(212, 175, 55, 0.1);
    border-radius: 2px;
}

.playlist-items::-webkit-scrollbar-thumb {
    background: #d4af37;
    border-radius: 2px;
}

.playlist-items li {
    padding: 10px;
    color: #f0e6d2;
    font-size: 12px;
    cursor: pointer;
    border-radius: 5px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.playlist-items li:hover {
    background: rgba(212, 175, 55, 0.2);
}

.playlist-items li.active {
    background: rgba(212, 175, 55, 0.3);
    color: #d4af37;
}

.playlist-items li .song-number {
    color: #888;
    font-size: 11px;
    min-width: 20px;
}

.playlist-items li.active .song-number {
    color: #d4af37;
}
