* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
     user-select: none;
    outline: none;
}

:root {
    --bg-image: url('images/01.png');
}

body {
    font-family: 'Microsoft YaHei', sans-serif;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #fff;
    position: relative;
    overflow: hidden;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: var(--bg-image);
    background-size: cover;
    background-position: center;
    filter: blur(20px) brightness(0.6);
    transform: scale(1.1);
    z-index: -1;
    transition: background-image 0.5s ease-in-out;
}

.music-player {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 30px;
    width: 90%;
    max-width: 800px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.player-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.album-art {
    position: relative;
    width: 250px;
    height: 250px;
    border-radius: 50%;
    overflow: hidden;
    /* 黑胶唱片渐变效果 */
    background: repeating-radial-gradient(
        circle,
        #000 0 1.6px,
        #1a1a1a 1.6px 3.2px,
        #000 3.2px 4.8px,
        #1a1a1a 4.8px 6.4px,
        #000 6.4px 8px,
        #1a1a1a 8px 9.6px,
        #000 9.6px 11.2px,
        #1a1a1a 11.2px 12.8px,
        #000 12.8px 14.4px,
        #1a1a1a 14.4px 16px,
        #000 16px 17.6px,
        #1a1a1a 17.6px 19.2px,
        #000 19.2px 20.8px,
        #1a1a1a 20.8px 22.4px,
        #000 22.4px 24px,
        #1a1a1a 24px 25.6px,
        #000 25.6px 27.2px,
        #1a1a1a 27.2px 28.8px,
        #000 28.8px 30.4px,
        #1a1a1a 30.4px 32px,
        #000 32px 33.6px,
        #1a1a1a 33.6px 35.2px,
        #000 35.2px 36.8px,
        #1a1a1a 36.8px 38.4px,
        #000 38.4px 40px,
        #1a1a1a 40px 41.6px,
        #000 41.6px 43.2px,
        #1a1a1a 43.2px 44.8px,
        #000 44.8px 46.4px,
        #1a1a1a 46.4px 48px,
        #000 48px 49.6px,
        #1a1a1a 49.6px 51.2px,
        #000 51.2px 52.8px,
        #1a1a1a 52.8px 54.4px,
        #000 54.4px 56px,
        #1a1a1a 56px 57.6px,
        #000 57.6px 59.2px,
        #1a1a1a 59.2px 60.8px,
        #000 60.8px 62.4px,
        #1a1a1a 62.4px 64px,
        #000 64px 65.6px,
        #1a1a1a 65.6px 67.2px,
        #000 67.2px 68.8px,
        #1a1a1a 68.8px 70.4px,
        #000 70.4px 72px,
        #1a1a1a 72px 73.6px,
        #000 73.6px 75.2px,
        #1a1a1a 75.2px 76.8px,
        #000 76.8px 78.4px,
        #1a1a1a 78.4px 80px,
        #000 80px 81.6px,
        #1a1a1a 81.6px 83.2px,
        #000 83.2px 84.8px,
        #1a1a1a 84.8px 86.4px,
        #000 86.4px 88px,
        #1a1a1a 88px 89.6px,
        #000 89.6px 91.2px,
        #1a1a1a 91.2px 92.8px,
        #000 92.8px 94.4px,
        #1a1a1a 94.4px 96px,
        #000 96px 97.6px,
        #1a1a1a 97.6px 99.2px,
        #000 99.2px 100.8px,
        #1a1a1a 100.8px 102.4px,
        #000 102.4px 104px,
        #1a1a1a 104px 105.6px,
        #000 105.6px 107.2px,
        #1a1a1a 107.2px 108.8px,
        #000 108.8px 110.4px,
        #1a1a1a 110.4px 112px,
        #000 112px 113.6px,
        #1a1a1a 113.6px 115.2px,
        #000 115.2px 116.8px,
        #1a1a1a 116.8px 118.4px,
        #000 118.4px 120px,
        #1a1a1a 120px 121.6px,
        #000 121.6px 123.2px,
        #1a1a1a 123.2px 124.8px,
        #000 124.8px 126.4px
    );
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease;
}

#light{height:100%;
    opacity: .8;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
    width:100%;
    transform: rotate(45deg);}

.album-art img {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 150px;
    height: 150px;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    z-index: 2;
}

/* 添加旋转动画 */
@keyframes rotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.album-art.playing {
    animation: rotate 8s linear infinite;
}

.song-info {
    text-align: center;
}

.song-info h2 {
    font-size: 24px;
    margin-bottom: 5px;
}

.song-info p {
    font-size: 16px;
    color: #ccc;
}

.progress-container {
    width: 100%;
    padding: 0 20px;
}

.progress-bar {
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    cursor: pointer;
    margin-bottom: 5px;
}

.progress {
    width: 0%;
    height: 100%;
    background: #fff;
    border-radius: 3px;
    transition: width 0.1s linear;
}

.time-info {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #ccc;
}

.controls {
    display: flex;
    gap: 20px;
    align-items: center;
}

.control-btn {
    background: none;
    border: none;
    color: #fff;
    font-size: 20px;
    cursor: pointer;
    transition: transform 0.2s;
}

.control-btn:hover {
    transform: scale(1.1);
}

.play-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: #fff;
    color: #1e3c72;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 24px;
}

.volume-container {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    max-width: 200px;
}

.volume-container input[type="range"] {
    flex: 1;
    height: 4px;
    -webkit-appearance: none;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    outline: none;
}

.volume-container input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 12px;
    height: 12px;
    background: #fff;
    border-radius: 50%;
    cursor: pointer;
}

.playlist {
    margin-top: 10px;
    max-height: 120px;
    overflow-y: auto;
}

.playlist h3 {
    margin-bottom: 15px;
    text-align: center;
}

#song-list {
    list-style: none;
    width: 98%;
}
#song-list li:after{display:inline-block;content:"";width: 100%;height:1px;position: absolute;left: 0;bottom: -1px;background-color: rgba(255,255,255,0.1);}
#song-list li {position: relative;
    /*border-bottom: 1px solid rgba(255,255,255,.12);*/
    padding: 10px 15px;
    cursor: pointer;
    border-radius: 3px;
    transition: background 0.3s;
}

#song-list li:hover {
    background: rgba(255, 255, 255, 0.1);
}

#song-list li.active {
    background: rgba(255, 255, 255, 0.2);
}

/* 自定义滚动条样式 */
::-webkit-scrollbar {
    width: 2px;
}

::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.4);
} 


@media screen and (max-width: 800px){
.album-art img {
    width: 100px;
    height: 100px;
   }
.album-art {
    width: 200px;
    height: 200px;
}
.playlist{
    max-height: 120px
}
#song-list li{padding:8px 15px}
}
@media screen and (min-width: 1400px) {

    .album-art img {
    width: 120px;
    height: 120px;
   }
.album-art {
    width: 250px;
    height: 250px;
}
.playlist{
    max-height: 200px
}
#song-list li{padding:10px 15px}
}