.music-shell *:focus {
  outline: none;
}

.music-page {
  background-color: #ffeff0;
}

.music-stage {
  position: relative;
  min-height: calc(100vh - 150px);
  overflow: hidden;
}

.music-head {
  position: relative;
  z-index: 4;
  padding-top: 0.6rem;
}

.music-head h1 {
  margin: 0;
  text-transform: uppercase;
  letter-spacing: -0.03em;
}

.music-head p {
  margin: 0;
}

.music-note {
  color: #6b7280;
  font-size: 0.92rem;
}

#app-cover {
  position: relative;
  width: min(430px, calc(100vw - 2rem));
  height: 100px;
  margin: 5.5rem auto 5.5rem;
  z-index: 3;
  font-family: Helvetica, Arial, sans-serif;
}

#bg-artwork {
  position: fixed;
  top: -30px;
  right: -30px;
  bottom: -30px;
  left: -30px;
  background-image: url("music/Sun%20and%20the%20Wind.png");
  background-repeat: no-repeat;
  background-size: cover;
  background-position: 50%;
  filter: blur(40px);
  -webkit-filter: blur(40px);
  z-index: 1;
}

#bg-layer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background-color: #fff;
  opacity: 0.51;
  z-index: 2;
}

#player {
  position: relative;
  height: 100%;
  z-index: 3;
}

#player-track {
  position: absolute;
  top: 0;
  right: 15px;
  left: 15px;
  padding: 13px 22px 10px 184px;
  background-color: #fff7f7;
  border-radius: 15px 15px 0 0;
  transition: 0.3s ease top;
  z-index: 1;
}

#player-track.active {
  top: -92px;
}

#album-name {
  color: #54576f;
  font-size: 17px;
  font-weight: bold;
}

#track-name {
  color: #acaebd;
  font-size: 13px;
  margin: 2px 0 13px 0;
}

#track-time {
  height: 12px;
  margin-bottom: 3px;
  overflow: hidden;
}

#current-time {
  float: left;
}

#track-length {
  float: right;
}

#current-time,
#track-length {
  color: transparent;
  font-size: 11px;
  background-color: #ffe8ee;
  border-radius: 10px;
  transition: 0.3s ease all;
}

#track-time.active #current-time,
#track-time.active #track-length {
  color: #f86d92;
  background-color: transparent;
}

#s-area,
#seek-bar {
  position: relative;
  height: 4px;
  border-radius: 4px;
}

#s-area {
  background-color: #ffe8ee;
  cursor: pointer;
}

#ins-time {
  position: absolute;
  top: -29px;
  color: #fff;
  font-size: 12px;
  white-space: pre;
  padding: 5px 6px;
  border-radius: 4px;
  display: none;
}

#s-hover {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  opacity: 0.2;
  z-index: 2;
}

#ins-time,
#s-hover {
  background-color: #3b3d50;
}

#seek-bar {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 0;
  background-color: #fd6d94;
  transition: 0.2s ease width;
  z-index: 1;
}

#player-content {
  position: relative;
  height: 100%;
  background-color: #fff;
  box-shadow: 0 30px 80px #656565;
  border-radius: 15px;
  z-index: 2;
}

#album-art {
  position: absolute;
  top: -40px;
  width: 115px;
  height: 115px;
  margin-left: 40px;
  transform: rotateZ(0);
  transition: 0.3s ease all;
  box-shadow: 0 0 0 10px #fff;
  border-radius: 50%;
  overflow: hidden;
}

#album-art.active {
  top: -60px;
  box-shadow: 0 0 0 4px #fff7f7, 0 30px 50px -15px #afb7c1;
}

#album-art::before {
  content: "";
  position: absolute;
  top: 50%;
  right: 0;
  left: 0;
  width: 20px;
  height: 20px;
  margin: -10px auto 0;
  background-color: #d6dee7;
  border-radius: 50%;
  box-shadow: inset 0 0 0 2px #fff;
  z-index: 2;
}

#album-art img {
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  z-index: -1;
}

#album-art img.active {
  opacity: 1;
  z-index: 1;
}

#album-art.active img.active {
  z-index: 1;
  animation: rotateAlbumArt 3s linear 0s infinite forwards;
}

@keyframes rotateAlbumArt {
  0% {
    transform: rotateZ(0);
  }
  100% {
    transform: rotateZ(360deg);
  }
}

#buffer-box {
  position: absolute;
  top: 50%;
  right: 0;
  left: 0;
  height: 13px;
  color: #1f1f1f;
  font-size: 13px;
  font-family: Helvetica, Arial, sans-serif;
  text-align: center;
  font-weight: bold;
  line-height: 1;
  padding: 6px;
  margin: -12px auto 0;
  background-color: rgba(255, 255, 255, 0.19);
  opacity: 0;
  z-index: 2;
}

#album-art img,
#buffer-box {
  transition: 0.1s linear all;
}

#album-art.buffering img {
  opacity: 0.25;
}

#album-art.buffering img.active {
  opacity: 0.8;
  filter: blur(2px);
  -webkit-filter: blur(2px);
}

#album-art.buffering #buffer-box {
  opacity: 1;
}

#player-controls {
  width: 250px;
  height: 100%;
  margin: 0 5px 0 141px;
  float: right;
  overflow: hidden;
}

.control {
  width: 33.333%;
  float: left;
  padding: 12px 0;
}

#player-controls .button {
  width: 74px;
  height: 74px;
  padding: 0;
  border-radius: 14px;
  border: 1px solid #e2e8f0;
  background: linear-gradient(180deg, #ffffff 0%, #f3f4f6 100%);
  cursor: pointer;
  display: grid;
  place-items: center;
  box-shadow: 0 10px 18px rgba(148, 163, 184, 0.22);
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease,
    border-color 0.18s ease,
    background 0.18s ease;
}

#player-controls .button i {
  margin: 0;
  color: #c0c9d6;
  font-size: 26px;
  text-align: center;
  line-height: 1;
  transition: color 0.18s ease, transform 0.18s ease;
}

#player-controls .button:hover {
  transform: translateY(-2px);
  border-color: #cbd5e1;
  background: linear-gradient(180deg, #ffffff 0%, #e9eef5 100%);
  box-shadow: 0 14px 24px rgba(100, 116, 139, 0.24);
}

#player-controls .button:hover i {
  color: #94a3b8;
  transform: scale(1.05);
}

#player-controls .button:active {
  transform: translateY(0);
  box-shadow: 0 6px 14px rgba(100, 116, 139, 0.22);
}

@media (max-width: 560px) {
  #app-cover {
    margin-top: 4.6rem;
  }

  #player-track {
    right: 10px;
    left: 10px;
    padding: 12px 12px 10px 146px;
  }

  #album-name {
    font-size: 15px;
  }

  #track-name {
    font-size: 12px;
  }

  #album-art {
    width: 98px;
    height: 98px;
    margin-left: 24px;
  }

  #player-controls {
    width: 220px;
    margin-left: 108px;
  }

  #player-controls .button {
    width: 64px;
    height: 64px;
  }

  #player-controls .button i {
    font-size: 22px;
  }
}

.music-home-section {
  position: relative;
  overflow: hidden;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: linear-gradient(135deg, #f8fafc 0%, #eef2ff 100%);
}

.music-home-section.section-block {
  padding: clamp(2.4rem, 4.6vw, 4rem) 0;
}

.music-home-section #bg-artwork {
  position: absolute;
  top: -30px;
  right: -30px;
  bottom: -30px;
  left: -30px;
  filter: blur(52px) saturate(0.75) brightness(1.06);
  opacity: 0.62;
  z-index: 0;
}

.music-home-section #bg-layer {
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, rgba(255, 255, 255, 0.9) 12%, rgba(255, 255, 255, 0.78) 52%, rgba(255, 255, 255, 0.9) 100%);
  opacity: 1;
  z-index: 1;
}

.music-home-section .music-shell {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(420px, 0.95fr);
  gap: clamp(1.6rem, 3vw, 2.8rem);
  align-items: center;
  z-index: 3;
}

.music-home-section .music-head {
  gap: 0.7rem;
  margin-bottom: 0;
  max-width: 38rem;
}

.music-home-section .music-head p {
  max-width: 34ch;
}

.music-home-section .soundcloud-btn {
  --btn-border: rgba(148, 163, 184, 0.5);
  --btn-glow: rgba(56, 189, 248, 0.35);
  margin-top: 0.45rem;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 196px;
  min-height: 52px;
  padding: 0.78rem 1.35rem;
  border-radius: 999px;
  border: 1px solid var(--btn-border);
  overflow: hidden;
  color: #f8fafc;
  text-decoration: none;
  letter-spacing: 0.08em;
  font-size: 0.82rem;
  font-weight: 800;
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.24);
  transition:
    transform 0.2s ease,
    box-shadow 0.22s ease,
    border-color 0.22s ease,
    background 0.22s ease;
}

.music-home-section .soundcloud-btn::before {
  content: "";
  position: absolute;
  pointer-events: none;
  border-radius: 999px;
  left: -42%;
  top: -70%;
  width: 34%;
  height: 240%;
  background: linear-gradient(
    115deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.24) 45%,
    rgba(255, 255, 255, 0) 100%
  );
  transform: rotate(22deg) translateX(0);
  transition: transform 0.44s ease;
}

.music-home-section .soundcloud-btn:hover {
  transform: translateY(-2px);
  border-color: rgba(125, 211, 252, 0.9);
  background: linear-gradient(135deg, #0f172a 0%, #334155 100%);
  box-shadow: 0 16px 30px rgba(15, 23, 42, 0.3);
}

.music-home-section .soundcloud-btn:hover::before {
  transform: rotate(22deg) translateX(540%);
}

.music-home-section .soundcloud-btn:active {
  transform: translateY(0);
}

.music-home-section .soundcloud-btn:focus-visible {
  outline: none;
  box-shadow:
    0 0 0 3px var(--btn-glow),
    0 12px 24px rgba(15, 23, 42, 0.24);
}

.music-home-section #app-cover {
  width: min(510px, 100%);
  height: 116px;
  margin: 0;
  justify-self: end;
}

.music-home-section #player-track {
  right: 12px;
  left: 12px;
}

.music-home-section #player-track.active {
  top: -82px;
}

.music-home-section #player-content {
  box-shadow: 0 26px 64px rgba(15, 23, 42, 0.2);
}

@media (max-width: 980px) {
  .music-home-section .music-shell {
    grid-template-columns: 1fr;
    gap: 1.7rem;
  }

  .music-home-section .music-head {
    max-width: 100%;
  }

  .music-home-section .music-head p {
    max-width: 60ch;
  }

  .music-home-section #app-cover {
    justify-self: center;
    margin-top: 5.4rem;
  }
}

@media (max-width: 560px) {
  .music-home-section #app-cover {
    width: min(430px, calc(100vw - 2rem));
    height: 100px;
    margin-top: 5rem;
  }

  .music-home-section #player-track.active {
    top: -76px;
  }
}
