* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;

  display: flex;
  flex-direction: column;

  align-items: center;

  color: white;
  font-family: Arial, sans-serif;

  background-image: url("image/background.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;

  padding: 30px;
}

/* 顶部作者栏 */
.top-bar {
  width: 900px;

  padding: 18px 24px;

  margin-bottom: 18px;

  background: rgba(15, 18, 32, 0.82);

  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);

  border: 1px solid rgba(255, 255, 255, 0.12);

  border-radius: 22px;

  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.35);
}


/* 作者区域 */
.author-info {
  display: flex;
  align-items: center;

  gap: 16px;
}


/* 作者头像 */
.author-avatar {
  width: 70px;
  height: 70px;

  display: flex;
  justify-content: center;
  align-items: center;

  border-radius: 50%;

  background-image: url("image/kurisu.jpg");
  background-size: cover;
  background-position: center;

  font-size: 30px;

  box-shadow: 0 0 20px rgba(240, 210, 122, 0.5);
}


.author-info h2 {
  margin: 0 0 6px;

  font-size: 24px;
}


.author-info p {
  margin: 0;

  color: #aaaaaa;

  font-size: 14px;
}


/* 版权说明 */
.copyright {
  position: fixed;

  right: 24px;
  bottom: 18px;

  padding: 8px 14px;

  font-size: 12px;

  color: rgba(255, 255, 255, 0.65);

  background: rgba(0, 0, 0, 0.35);

  backdrop-filter: blur(8px);

  border-radius: 8px;
}

/* 整个播放器 */
.player-card {
  width: 900px;
  height: 560px;

  display: flex;

  background: rgba(20, 20, 20, 0.75);

  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);

  border: 1px solid rgba(255, 255, 255, 0.12);

  border-radius: 24px;

  overflow: hidden;

  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}


/* 左边主播放器 */
.player-main {
  width: 70%;

  display: flex;
  flex-direction: column;

  align-items: center;
  justify-content: center;

  padding: 40px;

  overflow: hidden;
}

/* 封面 */
.vinyl {
  width: 260px;
  height: 260px;

  min-width: 260px;
  min-height: 260px;

  max-width: 260px;
  max-height: 260px;

  aspect-ratio: 1 / 1;

  position: relative;

  border-radius: 50%;

  flex-shrink: 0;

  overflow: hidden;

  background:
    repeating-radial-gradient(circle at center,
      #111 0px,
      #111 2px,
      #1d1d1d 3px,
      #080808 5px);

  box-shadow:
    0 10px 30px rgba(0, 0, 0, 0.45);

  margin-bottom: 22px;

  animation: rotateVinyl 10s linear infinite;
  animation-play-state: paused;
}

.cover {
  position: absolute;

  width: 150px;
  height: 150px;

  left: 50%;
  top: 50%;

  transform: translate(-50%, -50%);

  object-fit: cover;

  border-radius: 50%;
}

.vinyl-hole {
  position: absolute;

  width: 18px;
  height: 18px;

  left: 50%;
  top: 50%;

  transform: translate(-50%, -50%);

  background: #111;

  border: 3px solid white;

  border-radius: 50%;

  z-index: 5;
}

.vinyl.playing {
  animation-play-state: running;
}

@keyframes rotateVinyl {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}


.player-main h1 {
  margin: 10px 0 5px;
}


.player-main p {
  margin: 0 0 20px;

  color: #aaaaaa;
}


/* 进度条 */
.progress-container {
  width: 100%;

  display: flex;
  align-items: center;

  gap: 10px;

  margin-top: 10px;
}


#progress {
  flex: 1;
}


/* 控制区域 */
.controls {
  display: flex;

  align-items: center;

  gap: 25px;

  margin-top: 25px;
}


.controls button {
  width: 52px;
  height: 52px;

  border: none;
  border-radius: 50%;

  font-size: 20px;

  cursor: pointer;
}


/* 中间播放按钮稍微大一点 */
.play-button {
  width: 66px !important;
  height: 66px !important;

  font-size: 26px !important;
}


/* 右侧播放列表 */
.playlist {
  width: 30%;

  padding: 30px 20px;

  background: #111111;

  overflow-y: auto;
}

/* 音量控制 */
.volume-container {
  width: 220px;

  display: flex;
  align-items: center;

  gap: 10px;

  margin-top: 20px;
}

#volume {
  flex: 1;

  cursor: pointer;
}

.playlist h2 {
  margin-top: 0;

  margin-bottom: 20px;
}


/* 每一首歌 */
.song-item {
  padding: 14px;

  margin-bottom: 10px;

  border-radius: 10px;

  cursor: pointer;

  display: flex;
  flex-direction: column;

  gap: 5px;
}


.song-item:hover {
  background: #242424;
}


.song-item span:last-child {
  font-size: 13px;

  color: #888888;
}


/* 手机 */
@media (max-width: 768px) {

  body {
    align-items: flex-start;

    padding: 20px;
  }

  .player-card {
    width: 100%;

    height: auto;

    flex-direction: column;
  }

  .player-main {
    width: 100%;

    padding: 30px 20px;
  }

  .playlist {
    width: 100%;

    max-height: 250px;
  }

  .vinyl {
    width: 220px;
    height: 220px;

    min-width: 220px;
    min-height: 220px;

    max-width: 220px;
    max-height: 220px;
  }

  .cover {
    width: 125px;
    height: 125px;
  }

  .top-bar {
    width: 100%;
  }

}