* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  background-color: #b3b0b0;
  user-select: none;
}

.player-warp {
  position: relative;
  margin: 0 auto; 
}

.player-warp .player-control {
 position: relative;  
  width: 60%;
  height: 80px;
  padding: 20px 30px;
  background-color: #fff;
  border-radius: 15px;
  display: flex;
  justify-content: space-between;
  z-index: 10;
  margin-left: auto;
}

.player-control .cover {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background-color: #fff;
  margin-top: -60px;
  padding: 6px;
  position: relative;
  animation: zhuan 5s infinite linear;
  animation-play-state: paused;
}

.player-control .cover::before {
  content: "";
  display: inline-block;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: #fff;
}

.cover img {
  width: 100%;
  border-radius: 50%;
}

.player-control .control {
  width: 60%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.control i {
  width: 40px;
  height: 40px;
  text-align: center;
  line-height: 40px;
  font-size: 26px;
  color: #b3b0b0;
  cursor: pointer;
  transition: all 0.4s;
}

.control i:hover {
  border-radius: 6px;
  background-color: rgba(71, 70, 70, 0.2);
  color: #fff;
}

.player-warp .player-info {
  width: 60%;
  position: absolute;
  /* top: -100%; */
  top: 0;
  right: 0%;
  padding: 10px;
  left: auto; 
  transform: none;
  z-index: 0;
  background: rgba(255, 255, 255, 0.65);
  box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37);
  backdrop-filter: blur(3.5px);
  -webkit-backdrop-filter: blur(3.5px);
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  display: flex;
  justify-content: flex-end;
  opacity: 0;
}

.player-info .info {
  width: 80%;
  font-size: 10px;
}

.info .name {
  font-size: 14px;
  font-weight: bold;
}

.info .singer-album {
  color: #757474;
  line-height: 20px;
}

.info .music_progress {
  width: 100%;
}

.music_progress .music_progress_top {
  display: flex;
  justify-content: space-between;
  color: #f2709b;
  line-height: 20px;
}

.music_progress .music_progress_bar {
  width: 100%;
  height: 3px;
  background-color: #cccaca;
  border-radius: 10px;
  margin-top: 3px;
}

.music_progress_bar .music_progress_line {
  width: 0%;
  height: 100%;
  background-color: #f2709b;
}

.mask_bg {
  position: absolute;
  top: 0;
  left: 0;
  z-index: -10;
  width: 100%;
  height: 100%;
  background: url("../BGMBG.jpg") no-repeat center center;
  background-size: cover;
  /* 模糊 */
  filter: blur(50px);
  transition: all 1s;
}

/* 模态框 */
.modal {
  width: 30%;
  height: 100vh;
  /* background-color: rgba(0, 0, 0, 0.5); */
  position: fixed;
  top: 0;
  left: 0;
display: block;
overflow: hidden;
}

.modal .modal-box {
  width: 100%;
  height: 100%;
  padding: 20px;
  background-color: #fff;
  position: absolute;
  top: 0;
  right: 0;
  display: flex; /* 添加: 使用flex布局 */
  flex-direction: column; /* 添加: 垂直排列 */
}

.modal-box .modal-box-top {
  width: 100%;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.modal-box-top .modal-close {
  font-size: 20px;
  cursor: pointer;
  transition: transform 0.4s;
}

.modal-box-top .modal-close:hover {
  transform: rotate(180deg);
}

.modal-box .modal-wrapper {
  width: 100%;
  height: calc(100% - 40px);
  overflow-y: auto;
}

.modal-wrapper .music-list {
  list-style: none;
}

.music-list li {
  padding: 10px 0;
  border-bottom: 1px solid rgb(186, 182, 182);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.play-circle {
  font-size: 20px;
  margin-right: 20px;
  transition: transform 0.4s;
  cursor: pointer;
}

.play-circle:hover {
  transform: scale(1.2);
}

.playing {
  color: #ff827f;
}

@keyframes zhuan {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}


/* 媒体查询处理移动端样式 */
@media (max-width: 768px) {
  .player-warp {
    position: fixed;  /* 固定定位 */
    bottom: 0;       /* 固定在底部 */
    left: 0;
    right: 0;
    width: 100%;
    background: #fff;  /* 添加背景色 */
    z-index: 1000;    /* 确保显示在最上层 */
    padding: 10px;    /* 添加一些内边距 */
  }
  
  .player-warp .player-control {
    width: 100%;
    margin: 0 auto;
    height: 60px;     /* 减小高度使其更紧凑 */
    padding: 10px;    /* 调整内边距 */
  }
  
  .player-control .cover {
    width: 60px;      /* 缩小封面尺寸 */
    height: 60px;
    margin-top: -30px;  /* 调整负边距 */
  }
  
  /* 为底部播放器腾出空间 */
  .container-fluid {
    padding-bottom: 80px;  /* 根据播放器高度调整 */
  }
  
  /* 其他移动端样式保持不变 */
  .player-warp .player-info {
    width: 100%;
  }
  
  .modal {
    width: 100%;
    height: auto;
    min-height: 300px;
  }
  
  .modal .modal-box {
  height: 84vh;
    position: relative;
  }
}