/* 音乐页面样式文件 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Microsoft YaHei', 'Segoe UI', Arial, sans-serif;
    background: url('../img/背景.png') center/cover no-repeat fixed;
    min-height: 100vh;
    padding: 20px;
    padding-bottom: 100px;
    color: #333;
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: -1;
}

.header {
    text-align: center;
    margin-bottom: 30px;
    padding-top: 20px;
}

.back-link {
    display: inline-block;
    margin-bottom: 20px;
    padding: 10px 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    text-decoration: none;
    border-radius: 25px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.back-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

h1 {
    font-size: 2.5em;
    color: #2c3e50;
    margin-bottom: 10px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

.player-container {
    position: sticky;
    top: 20px;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 20px;
    padding: 25px;
    margin-bottom: 30px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    z-index: 10;
}

.now-playing {
    font-size: 0.85em;
    color: #7f8c8d;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.current-song {
    font-size: 1.3em;
    font-weight: bold;
    color: #2c3e50;
    margin-bottom: 20px;
    word-break: break-word;
    line-height: 1.4;
}

.progress-container {
    margin-bottom: 15px;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: rgba(0, 0, 0, 0.1);
    border-radius: 4px;
    overflow: hidden;
    cursor: pointer;
    position: relative;
}

.progress {
    height: 100%;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
    width: 0%;
    transition: width 0.1s ease;
    border-radius: 4px;
    position: relative;
}

.progress::after {
    content: '';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
    background: white;
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.time-info {
    display: flex;
    justify-content: space-between;
    font-size: 0.85em;
    color: #7f8c8d;
    margin-top: 8px;
}

.control-section {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.control-buttons {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex: 1;
}

.control-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    color: white;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.3em;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.control-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.5);
}

.control-btn:active {
    transform: scale(0.95);
}

.control-btn.play-pause {
    width: 60px;
    height: 60px;
    font-size: 1.5em;
}

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

.volume-icon {
    font-size: 1.2em;
    cursor: pointer;
}

.volume-slider {
    flex: 1;
    height: 4px;
    background: rgba(0, 0, 0, 0.1);
    border-radius: 2px;
    position: relative;
    cursor: pointer;
}

.volume-progress {
    height: 100%;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
    border-radius: 2px;
    width: 70%;
}

.play-mode-btn {
    background: rgba(102, 126, 234, 0.1);
    border: 2px solid rgba(102, 126, 234, 0.3);
    color: #667eea;
    padding: 8px 15px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 0.9em;
    transition: all 0.3s ease;
}

.play-mode-btn:hover {
    background: rgba(102, 126, 234, 0.2);
    border-color: #667eea;
}

.search-box {
    margin-bottom: 25px;
    position: relative;
}

.search-input {
    width: 100%;
    padding: 15px 50px 15px 20px;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 30px;
    font-size: 1em;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.search-input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 4px 20px rgba(102, 126, 234, 0.2);
    background: rgba(255, 255, 255, 0.9);
}

.search-icon {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.2em;
    color: #7f8c8d;
    pointer-events: none;
}

.music-list {
    display: grid;
    gap: 12px;
}

.music-item {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 15px;
    padding: 18px 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 15px;
    animation: fadeInUp 0.5s ease-out;
    position: relative;
    overflow: hidden;
}

.music-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 4px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    transform: scaleY(0);
    transition: transform 0.3s ease;
}

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

.music-item:hover {
    transform: translateX(8px);
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.1);
    background: rgba(255, 255, 255, 0.85);
}

.music-item:hover::before {
    transform: scaleY(1);
}

.music-item.playing {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.15) 0%, rgba(118, 75, 162, 0.15) 100%);
    border-color: rgba(102, 126, 234, 0.5);
    box-shadow: 0 6px 25px rgba(102, 126, 234, 0.2);
}

.music-item.playing::before {
    transform: scaleY(1);
}

.music-icon {
    font-size: 2em;
    flex-shrink: 0;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
    border-radius: 12px;
    transition: all 0.3s ease;
}

.music-item.playing .music-icon {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    animation: pulse 2s ease-in-out infinite;
}

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

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

.music-name {
    font-size: 1.1em;
    font-weight: 600;
    color: #2c3e50;
    word-break: break-word;
    margin-bottom: 5px;
    line-height: 1.4;
}

.play-indicator {
    color: #667eea;
    font-size: 0.85em;
    display: none;
    font-weight: 500;
}

.music-item.playing .play-indicator {
    display: block;
}

.music-number {
    font-size: 0.9em;
    color: #7f8c8d;
    min-width: 30px;
    text-align: right;
}

.loading {
    text-align: center;
    padding: 60px 20px;
    color: #7f8c8d;
    font-size: 1.1em;
}

.stats {
    text-align: center;
    margin-bottom: 20px;
    color: #7f8c8d;
    font-size: 0.9em;
}

@media (max-width: 768px) {
    h1 {
        font-size: 2em;
    }

    .player-container {
        padding: 20px;
        border-radius: 15px;
    }

    .control-section {
        flex-direction: column;
        align-items: stretch;
    }

    .control-buttons {
        order: 1;
    }

    .volume-control {
        order: 2;
        width: 100%;
    }

    .play-mode-btn {
        order: 3;
        width: 100%;
        text-align: center;
    }

    .music-item {
        padding: 15px;
    }

    .music-icon {
        width: 45px;
        height: 45px;
        font-size: 1.5em;
    }

    .current-song {
        font-size: 1.1em;
    }

    body {
        padding: 15px;
        padding-bottom: 120px;
    }
}

@media (max-width: 480px) {
    .control-btn {
        width: 42px;
        height: 42px;
        font-size: 1.1em;
    }

    .control-btn.play-pause {
        width: 55px;
        height: 55px;
        font-size: 1.3em;
    }
}