/* 春节音乐播放器样式 */

.music-player-container {
    min-height: calc(100vh - 300px);
    padding: 0;
}

/* 春节主题横幅 */
.spring-festival-banner {
    background: linear-gradient(135deg, #ff4d4d 0%, #ff6b6b 50%, #ff8e53 100%);
    padding: 60px 20px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.spring-festival-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 20% 80%, rgba(255, 215, 0, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255, 107, 107, 0.3) 0%, transparent 50%);
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.banner-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin: 0 auto;
}

.festival-icon {
    font-size: 80px;
    color: #ffd700;
    margin-bottom: 20px;
    animation: bounce 2s ease-in-out infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

.banner-title {
    font-size: 48px;
    font-weight: bold;
    color: #fff;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.banner-subtitle {
    font-size: 24px;
    color: #fff;
    opacity: 0.95;
}

/* 播放器区域 */
.player-section {
    padding: 60px 20px;
    background: linear-gradient(180deg, #ff6b6b 0%, #fff 20%);
}

/* 当前播放信息 */
.now-playing {
    text-align: center;
    margin-bottom: 40px;
}

.album-art {
    width: 250px;
    height: 250px;
    margin: 0 auto 30px;
    position: relative;
    background: linear-gradient(135deg, #ff4d4d, #ff8e53);
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(255, 77, 77, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.album-art .art-icon {
    font-size: 100px;
    color: #fff;
    z-index: 1;
}

.play-animation {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 4px;
    z-index: 1;
}

.play-animation span {
    width: 4px;
    height: 20px;
    background: #fff;
    border-radius: 2px;
    animation: none;
}

.play-animation.active span {
    animation: equalizer 0.5s ease-in-out infinite;
}

.play-animation.active span:nth-child(1) { animation-delay: 0s; }
.play-animation.active span:nth-child(2) { animation-delay: 0.1s; }
.play-animation.active span:nth-child(3) { animation-delay: 0.2s; }
.play-animation.active span:nth-child(4) { animation-delay: 0.3s; }

@keyframes equalizer {
    0%, 100% { height: 10px; }
    50% { height: 30px; }
}

.song-title {
    font-size: 32px;
    font-weight: bold;
    color: #333;
    margin-bottom: 10px;
}

.song-artist {
    font-size: 18px;
    color: #666;
}

.current-song-actions {
    margin-top: 20px;
}

.copy-link-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 24px;
    background: linear-gradient(135deg, #ff4d4d, #ff8e53);
    color: #fff;
    border: none;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(255, 77, 77, 0.3);
}

.copy-link-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(255, 77, 77, 0.4);
}

.copy-link-btn:active {
    transform: translateY(0);
}

.copy-link-btn i {
    font-size: 16px;
}

/* 进度条 */
.progress-container {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 40px;
    padding: 0 40px;
}

.time {
    font-size: 14px;
    color: #666;
    min-width: 50px;
}

.progress-bar {
    flex: 1;
    height: 8px;
    background: #e0e0e0;
    border-radius: 4px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.progress {
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #ff4d4d, #ff8e53);
    border-radius: 4px;
    transition: width 0.1s;
}

.progress-bar:hover .progress {
    background: linear-gradient(90deg, #ff6b6b, #ffa726);
}

/* 控制按钮 */
.controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-bottom: 40px;
}

.control-btn {
    width: 50px;
    height: 50px;
    border: none;
    border-radius: 50%;
    background: linear-gradient(135deg, #ff4d4d, #ff8e53);
    color: #fff;
    font-size: 18px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(255, 77, 77, 0.3);
}

.control-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(255, 77, 77, 0.5);
}

.control-btn:active {
    transform: scale(0.95);
}

.play-pause-btn {
    width: 70px;
    height: 70px;
    font-size: 24px;
    background: linear-gradient(135deg, #ff6b6b, #ffa726);
}

.control-btn.active {
    background: linear-gradient(135deg, #ffd700, #ffb347);
    color: #333;
}

/* 音量控制 */
.volume-control {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-bottom: 40px;
    padding: 0 40px;
}

.volume-control i {
    font-size: 20px;
    color: #ff4d4d;
}

.volume-slider {
    flex: 1;
    max-width: 300px;
    height: 6px;
    -webkit-appearance: none;
    appearance: none;
    background: #e0e0e0;
    border-radius: 3px;
    outline: none;
    cursor: pointer;
}

.volume-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: linear-gradient(135deg, #ff4d4d, #ff8e53);
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(255, 77, 77, 0.5);
}

.volume-slider::-moz-range-thumb {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: linear-gradient(135deg, #ff4d4d, #ff8e53);
    cursor: pointer;
    border: none;
    box-shadow: 0 2px 8px rgba(255, 77, 77, 0.5);
}

/* 播放列表 */
.playlist-section {
    background: #fff;
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.playlist-title {
    font-size: 24px;
    font-weight: bold;
    color: #333;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.playlist-title i {
    color: #ff4d4d;
}

.playlist {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-height: 400px;
    overflow-y: auto;
    padding-right: 10px;
}

.playlist::-webkit-scrollbar {
    width: 8px;
}

.playlist::-webkit-scrollbar-track {
    background: #f5f5f5;
    border-radius: 4px;
}

.playlist::-webkit-scrollbar-thumb {
    background: #ff4d4d;
    border-radius: 4px;
}

.playlist-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px 20px;
    background: #f8f9fa;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.playlist-item:hover {
    background: #fff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transform: translateX(5px);
}

.playlist-item.active {
    background: linear-gradient(135deg, rgba(255, 77, 77, 0.1), rgba(255, 142, 83, 0.1));
    border-color: #ff4d4d;
}

.playlist-item .item-number {
    width: 30px;
    height: 30px;
    background: #ff4d4d;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 14px;
    flex-shrink: 0;
}

.playlist-item.active .item-number {
    background: linear-gradient(135deg, #ffd700, #ffb347);
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.playlist-item .item-info {
    flex: 1;
    min-width: 0;
}

.playlist-item .item-title {
    font-weight: bold;
    color: #333;
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.playlist-item.active .item-title {
    color: #ff4d4d;
}

.playlist-item .item-artist {
    font-size: 14px;
    color: #666;
}

.playlist-item .item-duration {
    font-size: 14px;
    color: #999;
    flex-shrink: 0;
}

.playlist-item .playing-indicator {
    display: none;
    color: #ff4d4d;
    animation: bounce 0.5s ease-in-out infinite;
}

.playlist-item.active .playing-indicator {
    display: block;
}

.playlist-item .item-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.playlist-item .action-btn {
    width: 32px;
    height: 32px;
    border: none;
    background: #f0f0f0;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    color: #666;
    font-size: 14px;
}

.playlist-item .action-btn:hover {
    background: linear-gradient(135deg, #ff4d4d, #ff8e53);
    color: #fff;
    transform: scale(1.1);
}

.playlist-item .action-btn:active {
    transform: scale(0.95);
}

/* 提示消息动画 */
@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

@keyframes slideUp {
    from {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
    to {
        opacity: 0;
        transform: translateX(-50%) translateY(-20px);
    }
}

/* 响应式设计 */
@media (max-width: 768px) {
    .copy-link-btn {
        padding: 8px 20px;
        font-size: 13px;
    }

    .copy-link-btn i {
        font-size: 14px;
    }
    .banner-title {
        font-size: 32px;
    }

    .banner-subtitle {
        font-size: 18px;
    }

    .festival-icon {
        font-size: 60px;
    }

    .album-art {
        width: 200px;
        height: 200px;
    }

    .album-art .art-icon {
        font-size: 80px;
    }

    .song-title {
        font-size: 24px;
    }

    .progress-container {
        padding: 0 20px;
    }

    .controls {
        gap: 15px;
    }

    .control-btn {
        width: 45px;
        height: 45px;
        font-size: 16px;
    }

    .play-pause-btn {
        width: 60px;
        height: 60px;
        font-size: 20px;
    }

    .volume-control {
        padding: 0 20px;
    }

    .volume-slider {
        max-width: 200px;
    }

    .playlist-section {
        padding: 20px;
    }
}

@media (max-width: 480px) {
    .spring-festival-banner {
        padding: 40px 15px;
    }

    .player-section {
        padding: 40px 15px;
    }

    .banner-title {
        font-size: 24px;
    }

    .banner-subtitle {
        font-size: 16px;
    }

    .album-art {
        width: 180px;
        height: 180px;
    }

    .album-art .art-icon {
        font-size: 70px;
    }

    .song-title {
        font-size: 20px;
    }

    .progress-container {
        flex-direction: column;
        gap: 10px;
    }

    .controls {
        gap: 10px;
    }

    .control-btn {
        width: 40px;
        height: 40px;
        font-size: 14px;
    }

    .play-pause-btn {
        width: 55px;
        height: 55px;
        font-size: 18px;
    }
}
