body{
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
    background-color: #f2f2f2;
    background-image: var(--bg-image);
    backdrop-filter: blur(20px);
}
:root {
    --slider-percent:0;
    --bg-image: url("../src/music/晚餐歌.jpg");
}
.container {
    display: flex;
    justify-content: center;
    height: 100vh;
}
.left {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 45%;
    height: 100%;
    /* background:linear-gradient(to right, #af9ea3, #9e858c) */
}
 .title {
    font-size: 40px;
    font-weight: 900;
    margin-bottom: 10px;
}
ul{
    list-style: none;
    margin: 0;
    padding: 0;
}
.cdBox {
    position: relative;
    width: 300px;
    height: 300px;
    margin: 20px auto;
}

.cdBox::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background-image:var(--bg-image);
    background-size: cover;
    background-repeat: no-repeat;
    box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.5); 
}
.cdBox.active::before {
    animation: rotate 10s linear infinite; 
}
@keyframes rotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}
.cdBox::before {
    border: 7px solid #333;
}

.slider{
    appearance: none;
    outline: none;
    height: 20px;
    background: linear-gradient(to right, palevioletred 0%, palevioletred var(--slider-percent), white ,white 100%);
    border-radius: 20px;
}
.slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    border-radius: 50%;
    box-shadow: #333 0 0 10px;
    height: 25px;
    width: 25px;
    background-color: white;
    margin-top: -2.5px; /* 调整滑块的垂直位置，使其轨道看起来更平滑 */
}
#player {

    width: 300px;
    margin: 0 auto;
    text-align: center;
}
.button{
    display: flex;
    justify-content: center;
    align-items: center;
}
.button button{
    background: transparent;
    border: none;
}
.info{
    display: flex;
    flex-direction: column;
    align-items: start;
    color: white;
    font-weight: bold;
}
#prev, #next ,#play{
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-image: url("../src/music/UI/上一首.png");
    background-size: cover;
    background-repeat: no-repeat;
    cursor: pointer;
}
#next{
    background-image: url("../src/music/UI/下一首.png");
}
#play{
    width: 40px;
    height: 40px;
    background-image: url("../src/music/UI/播放.png");
}
#play.active{
    background-image: url("../src/music/UI/暂停.png");
}
#seek-bar {
    width: 100%;
    margin-top: 10px;
}
.right {
    /* background:linear-gradient(to left,#af9ea3,#9e858c); */
    flex: 1;
    display: flex;
    flex-wrap: nowrap;
    justify-content: center;
    align-items: center;
    height: 100%;
}
.cyr{
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100%;
}
#lyric-container {
    width: 700px;
    height: 450px; 
    padding: 10px;
    color: white;
    scroll-behavior: smooth;
    overflow: hidden;
}
.lyrics {
    position: relative;
    width: 100%;
    list-style: none;
    transition: 0.5s;
    text-align: center;
    transition: all 1s ease-in;
  }

  .lyrics li {
    height: 50px;
    line-height: 50px;
    font-size: 25px;
    color: #ffffff;
  }

  .lyrics li.on {
    color: #ffffff;
    font-weight: 600;
    transform: scale(1.1);
    text-shadow: palevioletred 1px 1px 10px;
  }
  .list{
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 30%;
    box-shadow: #221e1e 0 0 10px;
    background-color:rgba(110, 110, 110, 0.2);
    color: white;
    font-weight: bold;
    margin-right: 100px;
    padding: 10px;
  }
  .list ul{
    display: flex;
    flex-direction: column;
    justify-content: center;

  }
  .list li{
    padding:20px  0;
  }
  .list li:not(:first-child):not(:last-child){
    border-top: #f2f2f2 1px solid;
    border-bottom: #f2f2f2 1px solid;
  }
  .list li:hover{
    background-color: #221e1e;
  }