/* 音乐播放器样式 */
.zibll-meihua-music-player {
    position: fixed;
    z-index: 9999;
}

/* 位置样式 */
.zibll-meihua-music-player.position-bottom-right {
    bottom: 30px;
    right: 30px;
}

.zibll-meihua-music-player.position-bottom-left {
    bottom: 30px;
    left: 30px;
}

.zibll-meihua-music-player.position-bottom-center {
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
}

/* 经典风格 */
.player-style-classic .classic-player {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.95) 0%, rgba(118, 75, 162, 0.95) 100%);
    border-radius: 16px;
    padding: 20px;
    width: 320px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
}

.player-style-classic .player-header {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    gap: 15px;
}

.player-style-classic .player-cover {
    width: 60px;
    height: 60px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    overflow: hidden;
    flex-shrink: 0;
}

.player-style-classic .player-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.player-style-classic .player-info {
    flex: 1;
    min-width: 0;
}

.player-style-classic .track-title {
    color: white;
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.player-style-classic .track-artist {
    color: rgba(255, 255, 255, 0.8);
    font-size: 13px;
}

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

.player-style-classic .control-btn {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    font-size: 18px;
    cursor: pointer;
    transition: all 0.3s ease;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
}

.player-style-classic .control-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

.player-style-classic .control-btn.play-btn {
    width: 64px;
    height: 64px;
    background: rgba(255, 255, 255, 0.3);
    font-size: 20px;
}

.player-style-classic .player-progress {
    margin-bottom: 15px;
}

.player-style-classic .progress-bar {
    background: rgba(255, 255, 255, 0.2);
    height: 6px;
    border-radius: 3px;
    cursor: pointer;
    margin-bottom: 8px;
    overflow: hidden;
}

.player-style-classic .progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #ff6b6b, #ffd700);
    border-radius: 3px;
    width: 0%;
    transition: width 0.1s linear;
}

.player-style-classic .time-display {
    display: flex;
    justify-content: space-between;
    color: rgba(255, 255, 255, 0.8);
    font-size: 12px;
}

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

.player-style-classic .volume-icon {
    font-size: 16px;
    color: white;
}

.player-style-classic .volume-slider {
    flex: 1;
    -webkit-appearance: none;
    height: 4px;
    border-radius: 2px;
    background: rgba(255, 255, 255, 0.3);
    outline: none;
}

.player-style-classic .volume-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: white;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.player-style-classic .player-list-toggle {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 20px;
    cursor: pointer;
    opacity: 0.8;
    transition: opacity 0.3s;
}

.player-style-classic .player-list-toggle:hover {
    opacity: 1;
}

/* 播放列表 */
.player-style-classic .playlist-container {
    position: absolute;
    bottom: 100%;
    right: 0;
    margin-bottom: 15px;
    background: rgba(255, 255, 255, 0.98);
    border-radius: 12px;
    width: 320px;
    max-height: 400px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    display: none;
}

.player-style-classic .playlist-container.show {
    display: block;
}

.player-style-classic .playlist-header {
    padding: 15px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.player-style-classic .playlist-header h3 {
    margin: 0;
    font-size: 16px;
}

.player-style-classic .playlist-close {
    background: none;
    border: none;
    color: white;
    font-size: 20px;
    cursor: pointer;
    padding: 0;
}

.player-style-classic .playlist {
    max-height: 335px;
    overflow-y: auto;
}

.player-style-classic .playlist-item {
    padding: 12px 15px;
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    transition: background 0.2s;
    border-bottom: 1px solid #eee;
}

.player-style-classic .playlist-item:hover {
    background: #f5f5f5;
}

.player-style-classic .playlist-item.active {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
}

.player-style-classic .playlist-item-cover {
    width: 40px;
    height: 40px;
    border-radius: 6px;
    background: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
}

.player-style-classic .playlist-item-info {
    flex: 1;
    min-width: 0;
}

.player-style-classic .playlist-item-title {
    color: #333;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 3px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.player-style-classic .playlist-item-artist {
    color: #888;
    font-size: 12px;
}

/* 简约风格 */
.player-style-minimal .minimal-player {
    display: flex;
    align-items: center;
    gap: 15px;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.95) 0%, rgba(118, 75, 162, 0.95) 100%);
    padding: 12px 20px;
    border-radius: 50px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
}

.player-style-minimal .player-cover-mini {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    overflow: hidden;
    flex-shrink: 0;
}

.player-style-minimal .player-cover-mini img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.player-style-minimal .mini-play-btn {
    background: rgba(255, 255, 255, 0.3);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 18px;
    cursor: pointer;
    color: white;
    transition: all 0.3s;
}

.player-style-minimal .mini-play-btn:hover {
    background: rgba(255, 255, 255, 0.4);
    transform: scale(1.1);
}

.player-style-minimal .player-expand {
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    margin-bottom: 20px;
    display: none;
}

.player-style-minimal .player-expand.show {
    display: block;
}

.player-style-minimal .minimal-expanded {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.95) 0%, rgba(118, 75, 162, 0.95) 100%);
    border-radius: 16px;
    padding: 20px;
    width: 300px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
}

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

.player-style-minimal .track-title {
    color: white;
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 4px;
}

.player-style-minimal .track-artist {
    color: rgba(255, 255, 255, 0.8);
    font-size: 13px;
}

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

.player-style-minimal .control-btn {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    font-size: 16px;
    cursor: pointer;
    color: white;
    transition: all 0.3s;
}

.player-style-minimal .control-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

.player-style-minimal .control-btn.play-btn {
    width: 56px;
    height: 56px;
    background: rgba(255, 255, 255, 0.3);
    font-size: 18px;
}

.player-style-minimal .player-progress {
    margin-top: 15px;
}

.player-style-minimal .progress-bar {
    background: rgba(255, 255, 255, 0.2);
    height: 4px;
    border-radius: 2px;
    cursor: pointer;
    margin-bottom: 8px;
    overflow: hidden;
}

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

.player-style-minimal .time-display {
    display: flex;
    justify-content: space-between;
    color: rgba(255, 255, 255, 0.8);
    font-size: 11px;
}

/* 浮动风格 */
.player-style-floating .floating-btn {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    box-shadow: 0 10px 40px rgba(102, 126, 234, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.player-style-floating .floating-btn:hover {
    transform: scale(1.1);
}

.player-style-floating .floating-icon {
    font-size: 28px;
    z-index: 1;
}

.player-style-floating .floating-wave {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    animation: wave 1.5s ease-in-out infinite;
}

.player-style-floating .floating-wave span {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 2px solid rgba(102, 126, 234, 0.6);
    opacity: 0;
}

.player-style-floating .floating-wave span:nth-child(1) { animation: ripple 1.5s ease-in-out infinite; }
.player-style-floating .floating-wave span:nth-child(2) { animation: ripple 1.5s ease-in-out 0.5s infinite; }
.player-style-floating .floating-wave span:nth-child(3) { animation: ripple 1.5s ease-in-out 1s infinite; }

@keyframes ripple {
    0% { transform: scale(0.8); opacity: 1; }
    100% { transform: scale(1.5); opacity: 0; }
}

.player-style-floating .floating-panel {
    position: absolute;
    bottom: 100%;
    right: 0;
    margin-bottom: 20px;
    width: 300px;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.95) 0%, rgba(118, 75, 162, 0.95) 100%);
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    display: none;
}

.player-style-floating .floating-panel.show {
    display: block;
}

.player-style-floating .panel-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.player-style-floating .floating-cover {
    width: 70px;
    height: 70px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    overflow: hidden;
    flex-shrink: 0;
}

.player-style-floating .floating-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 12px;
}

.player-style-floating .floating-info {
    flex: 1;
    min-width: 0;
}

.player-style-floating .track-title {
    color: white;
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.player-style-floating .track-artist {
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
}

.player-style-floating .panel-controls {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 15px;
}

.player-style-floating .control-btn {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    font-size: 18px;
    cursor: pointer;
    color: white;
    transition: all 0.3s;
}

.player-style-floating .control-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

.player-style-floating .control-btn.play-btn {
    width: 64px;
    height: 64px;
    background: rgba(255, 255, 255, 0.3);
    font-size: 20px;
}

.player-style-floating .panel-progress {
    margin-top: 15px;
}

.player-style-floating .progress-bar {
    background: rgba(255, 255, 255, 0.2);
    height: 4px;
    border-radius: 2px;
    cursor: pointer;
    overflow: hidden;
}

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

/* 响应式设计 */
@media (max-width: 600px) {
    .zibll-meihua-music-player.position-bottom-right,
    .zibll-meihua-music-player.position-bottom-left {
        bottom: 20px;
        right: 20px;
        left: auto;
    }
    
    .player-style-classic .classic-player,
    .player-style-minimal .minimal-expanded,
    .player-style-floating .floating-panel,
    .player-style-classic .playlist-container {
        width: calc(100vw - 60px);
        max-width: 320px;
    }
}
