/* 全局基础样式 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
body {
  min-height: 100vh;
  background-repeat: no-repeat;
  background-size: cover;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' version='1.1' width='1440' height='560' preserveAspectRatio='none' viewBox='0 0 1440 560'%3e%3cg mask='url(%26quot%3b%23SvgjsMask1549%26quot%3b)' fill='none'%3e%3crect width='1440' height='560' x='0' y='0' fill='url(%23SvgjsLinearGradient1550)'/%3e%3c/g%3e%3cdefs%3e%3cmask id='SvgjsMask1549'%3e%3crect width='1440' height='560' fill='white'/%3e%3c/mask%3e%3clinearGradient x1='15.28%25' y1='139.29%25' x2='84.72%25' y2='-39.29%25' gradientUnits='userSpaceOnUse' id='SvgjsLinearGradient1550'%3e%3cstop stop-color='%230e2a47' offset='0'/%3e%3cstop stop-color='rgba(0%2c 7%2c 213%2c 1)' offset='1'/%3e%3c/linearGradient%3e%3c/defs%3e%3c/svg%3e");
  font-family: 'Roboto', 'PingFang SC', 'Microsoft YaHei', Arial, sans-serif;
  display: flex;
  align-items: center;
  justify-content: center;
}

.player {
  background: #080747;
  border-radius: 20px;
  box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.18);
  padding: 38px 32px 32px 32px;
  width: 320px;
  margin: 48px auto;
}

.wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 10px;
}

#cover-img {
  width: 180px;
  height: 180px;
  object-fit: cover;
  border-radius: 50%;
  box-shadow: 0 2px 12px rgba(0,0,0,0.18);
  transition: box-shadow 0.3s, transform 0.2s linear;
}

.info {
  padding-top: 28px;
  text-align: center;
}
#song-title {
  font-size: 27px;
  color: #E1E1E6;
  font-weight: bold;
  padding-bottom: 7px;
}
#song-artist {
  color: #E1E1E6;
  opacity: 0.68;
  font-size: 19px;
}

.controls {
  display: flex;
  justify-content: space-between;
  width: 100%;
  padding-top: 28px;
  padding-bottom: 8px;
}
.controls .prev,
.controls .play,
.controls .next {
  cursor: pointer;
  opacity: 0.7;
  transition: opacity 0.2s, transform 0.2s;
}
.controls .prev:hover,
.controls .play:hover,
.controls .next:hover {
  opacity: 1;
  transform: scale(1.12);
}
.controls svg {
  display: block;
  width: 38px;
  height: 38px;
}

.track-time {
  width: 100%;
  padding-top: 18px;
}
.track {
  width: 100%;
  position: relative;
  margin-bottom: 8px;
}
#progress {
  width: 100%;
  height: 6px;
  background: transparent;
  accent-color: #4f8cff;
  border-radius: 10px;
  outline: none;
  appearance: none;
}
#progress::-webkit-slider-thumb {
  appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #4f8cff;
  box-shadow: 0 2px 8px rgba(79,140,255,0.18);
  cursor: pointer;
  border: 2px solid #fff;
  margin-top: -6px;
}
#progress::-moz-range-thumb {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #4f8cff;
  border: 2px solid #fff;
  cursor: pointer;
}
#progress::-ms-thumb {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #4f8cff;
  border: 2px solid #fff;
  cursor: pointer;
}
#progress::-webkit-slider-runnable-track {
  height: 6px;
  background: #D9D9D9;
  opacity: 0.3;
  border-radius: 10px;
}
#progress::-ms-fill-lower {
  background: #D9D9D9;
  opacity: 0.3;
  border-radius: 10px;
}
#progress::-ms-fill-upper {
  background: #D9D9D9;
  opacity: 0.3;
  border-radius: 10px;
}
#progress:focus {
  outline: none;
}

.time {
  display: flex;
  justify-content: space-between;
  color: gainsboro;
  opacity: 0.7;
  font-size: 15px;
  width: 100%;
  padding-top: 2px;
}
.total-time, .last-time {
  min-width: 48px;
  text-align: center;
}
.footer{
  text-align:center;color:#aaa;font-size:14px;margin-top:32px;user-select:none;position:fixed;left:0;bottom:4vw;width:100%;background:transparent;z-index:99;
}
@media (max-width: 500px) {
  .player {
    width: 90vw;
    min-width: 0;
    padding: 10vw 2vw 10vw 2vw;
  }
  #cover-img {
    width: 80vw;
    height: 80vw;
    max-width: 180px;
    max-height: 180px;
  }
  .wrapper{
    padding: 0 4vw;
  }
  .footer{
    font-size:3vw;
  }
} 