/*=============== MUSIC / PLAY PAGE HERO ===============*/
.audio__page {
  background:
    radial-gradient(circle at 10% 8%, rgba(118, 114, 104, 0.12), transparent 32%),
    radial-gradient(circle at 90% 0%, rgba(33, 31, 32, 0.12), transparent 30%),
    #fcfcff;
}

.audio__page .main {
  padding-top: 2.6rem;
}

.music__page .main {
  padding-top: 3.4rem;
}

.play__page .main,
.download__page .main {
  padding-top: 3.4rem;
}

.audio-hero {
  position: relative;
  overflow: hidden;
  margin-top: 2rem;
  margin-bottom: 2.25rem;
  padding: 2.4rem 1.3rem 2rem;
  border-radius: 1.35rem;
  background: linear-gradient(145deg, #14131e 0%, #211f20 48%, #767268 100%);
  color: #fff;
  box-shadow: 0 24px 54px rgba(14, 13, 22, 0.22);
}

.music__page .audio-hero {
  border: 1px solid rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(4px);
}

.audio-hero::before,
.audio-hero::after {
  content: "";
  position: absolute;
  border-radius: 999px;
  pointer-events: none;
}

.audio-hero::before {
  width: 210px;
  height: 210px;
  right: -75px;
  top: -85px;
  background: rgba(255, 255, 255, 0.15);
}

.audio-hero::after {
  width: 180px;
  height: 180px;
  left: -80px;
  bottom: -90px;
  background: rgba(255, 255, 255, 0.07);
}

.audio-hero__chip {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 0.95rem;
  margin-bottom: 1.05rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background-color: rgba(255, 255, 255, 0.08);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.audio-hero__chip i {
  font-size: 1rem;
}

.audio-hero__title {
  position: relative;
  z-index: 1;
  margin: 0 0 0.85rem;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  line-height: 1.08;
  color: #fff;
  text-wrap: balance;
}

.audio-hero__description {
  position: relative;
  z-index: 1;
  max-width: 720px;
  margin: 0;
  color: rgba(255, 255, 255, 0.85);
  font-size: 1rem;
  line-height: 1.8;
  text-wrap: pretty;
}

.audio-hero__meta {
  position: relative;
  z-index: 1;
  margin-top: 1.35rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.audio-hero__meta span {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 0.8rem;
  border-radius: 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.1);
  font-size: 0.8rem;
  font-weight: 600;
}

.audio-content {
  padding-top: 0;
}

.audio-content__panel {
  border-radius: 1.15rem;
  padding: 0.5rem 0 1rem;
}

/*=============== MUSIC PAGE LIBRARY BLOCKS ===============*/
.music-library {
  max-width: 1200px;
}

.audio-content .container.music-library {
  width: 100%;
  max-width: 1200px !important;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1rem;
  padding-right: 1rem;
}

.audio-content .container.play-shell,
.audio-content .container.download-shell {
  width: 100%;
  max-width: 1200px !important;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1rem;
  padding-right: 1rem;
}

.music-block {
  margin-bottom: 1.75rem;
  padding: 1.5rem 1.1rem;
  border-radius: 1.2rem;
  background: linear-gradient(180deg, #ffffff, #fafbff);
  border: 1px solid rgba(14, 13, 22, 0.08);
  box-shadow: 0 12px 28px rgba(14, 13, 22, 0.08);
}

.music-block__head {
  margin-bottom: 1.1rem;
}

.music-block__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-bottom: 0.45rem;
  padding: 0.38rem 0.72rem;
  border-radius: 999px;
  background-color: #f1f3ff;
  color: #37344e;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.music-block__title {
  margin: 0;
  font-size: clamp(1.35rem, 2.4vw, 2rem);
  color: #151426;
  font-weight: 800;
}

.music-tracklist {
  display: grid;
  gap: 0.7rem;
}

.music-track {
  display: grid;
  grid-template-columns: auto 58px 1fr auto;
  align-items: center;
  gap: 0.85rem;
  padding: 0.7rem 0.8rem;
  border-radius: 0.9rem;
  border: 1px solid rgba(14, 13, 22, 0.08);
  background-color: #fff;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.music-track:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(14, 13, 22, 0.12);
}

.music-track__rank {
  min-width: 2rem;
  text-align: center;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: #6f6a84;
}

.music-track__cover {
  width: 58px;
  height: 58px;
  border-radius: 0.7rem;
  object-fit: cover;
}

.music-track__meta h3 {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 700;
  color: #171629;
}

.music-track__meta p {
  margin: 0.2rem 0 0;
  font-size: 0.82rem;
  color: #6b6880;
}

.music-track__play {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #22202f, #767268);
  color: #fff;
  text-decoration: none;
  font-size: 1.05rem;
}

.music-track__play:hover {
  color: #fff;
}

.music-artists-grid {
  margin-top: 0.2rem;
}

.music-artist {
  margin-top: 1rem;
}

.music-artist__link {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.55rem;
  text-decoration: none;
}

.music-artist__link img {
  width: 105px;
  height: 105px;
  object-fit: cover;
  border: 4px solid #fff;
  box-shadow: 0 10px 20px rgba(14, 13, 22, 0.16);
  transition: transform 0.2s ease;
}

.music-artist__link:hover img {
  transform: translateY(-3px);
}

.music-artist__link span {
  max-width: 125px;
  text-align: center;
  font-size: 0.82rem;
  font-weight: 600;
  color: #2a2938;
}

.music-latest {
  margin-top: 1rem;
}

.music-latest__card {
  display: block;
  overflow: hidden;
  border-radius: 1rem;
  background: #171629;
  text-decoration: none;
  box-shadow: 0 12px 24px rgba(14, 13, 22, 0.14);
}

.music-latest__card img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.music-latest__overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.music-latest__play {
  width: 3rem;
  height: 3rem;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.92);
  color: #11101c;
  font-size: 1.2rem;
}

.music-latest__meta {
  padding: 0.78rem 0.82rem 0.9rem;
  background: #fff;
}

.music-latest__meta strong {
  display: block;
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.3;
  color: #161527;
}

.music-latest__meta small {
  display: block;
  margin-top: 0.2rem;
  font-size: 0.78rem;
  color: #6c6884;
}

.music-latest__card {
  position: relative;
}

.music-latest__card:hover img {
  transform: scale(1.05);
}

.music-latest__card:hover .music-latest__overlay {
  opacity: 1;
}

/*=============== PLAY PAGE NOW PLAYING ===============*/
.play-shell {
  max-width: 1200px;
}

.play-block {
  margin-bottom: 1.75rem;
  padding: 1.45rem 1.05rem;
  border-radius: 1.2rem;
  border: 1px solid rgba(14, 13, 22, 0.08);
  background: linear-gradient(180deg, #ffffff, #fafbff);
  box-shadow: 0 12px 28px rgba(14, 13, 22, 0.08);
}

.play-now {
  display: grid;
  gap: 1.1rem;
}

.play-now__cover-wrap {
  position: relative;
}

.play-now__cover {
  width: 100%;
  max-width: 260px;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 1rem;
  box-shadow: 0 16px 32px rgba(14, 13, 22, 0.18);
}

.play-now__badge {
  position: absolute;
  left: 0.75rem;
  bottom: 0.75rem;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.38rem 0.65rem;
  border-radius: 999px;
  background: rgba(17, 16, 28, 0.82);
  color: #fff;
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 700;
}

.play-now__title {
  margin: 0 0 0.65rem;
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 800;
  color: #161527;
}

.play-now__meta {
  display: grid;
  gap: 0.42rem;
}

.play-now__meta p {
  margin: 0;
  color: #2f2c42;
}

.play-now__meta strong {
  color: #11101d;
}

.play-now__meta a {
  color: #33304a;
  font-weight: 700;
}

.play-now__meta a:hover {
  color: #11101d;
}

.play-now__player {
  margin-top: 0.85rem;
}

.play-now__player audio {
  display: none;
}

.modern-audio {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.7rem 0.82rem;
  border-radius: 0.95rem;
  background: linear-gradient(180deg, #f8f9ff, #edf0fb);
  border: 1px solid rgba(14, 13, 22, 0.1);
}

.modern-audio__play {
  width: 2.45rem;
  height: 2.45rem;
  border: none;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #171629, #4a4661);
  color: #fff;
  font-size: 1.15rem;
  box-shadow: 0 10px 20px rgba(22, 20, 39, 0.25);
  transition: transform 0.2s ease;
}

.modern-audio__play:hover {
  transform: translateY(-1px);
}

.modern-audio__play.is-playing {
  animation: playPulse 1.35s ease-in-out infinite;
}

.modern-audio__timeline {
  flex: 1;
}

.modern-audio__visualizer {
  height: 0.65rem;
  margin-bottom: 0.45rem;
  display: flex;
  align-items: flex-end;
  gap: 0.2rem;
  opacity: 0.55;
}

.modern-audio__visualizer span {
  width: 0.18rem;
  height: 35%;
  border-radius: 999px;
  background: linear-gradient(180deg, #1f1d32, #7f789a);
  transform-origin: bottom;
}

.modern-audio.is-playing .modern-audio__visualizer span {
  animation: eqBounce 0.95s ease-in-out infinite;
}

.modern-audio.is-playing .modern-audio__visualizer span:nth-child(2n) {
  animation-duration: 0.75s;
}

.modern-audio.is-playing .modern-audio__visualizer span:nth-child(3n) {
  animation-duration: 1.15s;
}

.modern-audio.is-playing .modern-audio__visualizer span:nth-child(4n) {
  animation-delay: 0.12s;
}

@keyframes eqBounce {
  0%, 100% {
    transform: scaleY(0.35);
  }
  50% {
    transform: scaleY(1);
  }
}

.modern-audio__timeline input[type="range"] {
  --progress: 0%;
  width: 100%;
  appearance: none;
  -webkit-appearance: none;
  height: 0.38rem;
  border-radius: 999px;
  outline: none;
  background: linear-gradient(90deg, #171629 var(--progress), #cfd4e8 var(--progress));
}

.modern-audio__timeline input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 0.92rem;
  height: 0.92rem;
  border-radius: 50%;
  background: #fff;
  border: 2px solid #171629;
  box-shadow: 0 0 0 2px rgba(23, 22, 41, 0.18);
}

.modern-audio.is-playing .modern-audio__timeline input[type="range"]::-webkit-slider-thumb {
  animation: thumbPulse 1.2s ease-in-out infinite;
}

.modern-audio__timeline input[type="range"]::-moz-range-thumb {
  width: 0.92rem;
  height: 0.92rem;
  border-radius: 50%;
  background: #fff;
  border: 2px solid #171629;
  box-shadow: 0 0 0 2px rgba(23, 22, 41, 0.18);
}

.modern-audio.is-playing .modern-audio__timeline input[type="range"]::-moz-range-thumb {
  animation: thumbPulse 1.2s ease-in-out infinite;
}

@keyframes thumbPulse {
  0%, 100% {
    box-shadow: 0 0 0 2px rgba(23, 22, 41, 0.18);
  }
  50% {
    box-shadow: 0 0 0 5px rgba(118, 114, 104, 0.25);
  }
}

.modern-audio__time {
  margin-top: 0.35rem;
  display: flex;
  justify-content: space-between;
  font-size: 0.76rem;
  font-weight: 700;
  color: #5e5a76;
}

.play-now__actions {
  margin-top: 0.95rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.play-cta,
.download-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  border-radius: 0.85rem;
  padding: 0.72rem 1.1rem;
  font-size: 0.86rem;
  font-weight: 700;
  text-decoration: none;
  border: none;
}

.play-cta {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #161427, #444059, #767268);
  color: #fff;
  box-shadow: 0 12px 28px rgba(22, 20, 39, 0.34);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.play-cta::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 24%, rgba(255, 255, 255, 0.35) 50%, transparent 76%);
  transform: translateX(-125%);
  transition: transform 0.75s ease;
}

.play-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 15px 34px rgba(22, 20, 39, 0.4);
}

.play-cta:hover::before {
  transform: translateX(130%);
}

.play-cta i,
.play-cta span {
  position: relative;
  z-index: 1;
}

.play-cta.is-playing {
  animation: playPulse 1.35s ease-in-out infinite;
}

@keyframes playPulse {
  0%, 100% {
    box-shadow: 0 12px 28px rgba(22, 20, 39, 0.34);
  }
  50% {
    box-shadow: 0 18px 36px rgba(118, 114, 104, 0.55);
  }
}

.download-cta {
  color: #1d1b2e;
  background: #f3f4fb;
  border: 1px solid rgba(14, 13, 22, 0.12);
}

.download-cta:hover {
  color: #131224;
}

.play-related-grid {
  margin-top: 0.35rem;
}

.play-related {
  margin-top: 1rem;
}

/*=============== DOWNLOAD PAGE ===============*/
.download-shell {
  max-width: 1200px;
}

.download-card {
  display: grid;
  gap: 1.15rem;
  margin-bottom: 1.75rem;
  padding: 1.45rem 1.05rem;
  border-radius: 1.2rem;
  border: 1px solid rgba(14, 13, 22, 0.08);
  background: linear-gradient(180deg, #ffffff, #fafbff);
  box-shadow: 0 12px 28px rgba(14, 13, 22, 0.08);
}

.download-card__cover-wrap {
  position: relative;
}

.download-card__cover {
  width: 100%;
  max-width: 260px;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 1rem;
  box-shadow: 0 16px 32px rgba(14, 13, 22, 0.18);
}

.download-card__tag {
  position: absolute;
  left: 0.75rem;
  bottom: 0.75rem;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.4rem 0.68rem;
  border-radius: 999px;
  background: rgba(17, 16, 28, 0.82);
  color: #fff;
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 700;
}

.download-card__title {
  margin: 0;
  font-size: clamp(1.4rem, 3vw, 2rem);
  color: #161527;
  font-weight: 800;
}

.download-card__subtitle {
  margin: 0.28rem 0 0.8rem;
  color: #66617e;
  font-size: 0.94rem;
}

.download-card__meta {
  display: grid;
  gap: 0.42rem;
}

.download-card__meta p {
  margin: 0;
  color: #2f2c42;
}

.download-card__meta strong {
  color: #11101d;
}

.download-card__actions {
  margin-top: 1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.download-primary,
.download-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  border-radius: 0.85rem;
  padding: 0.72rem 1.1rem;
  font-size: 0.86rem;
  font-weight: 700;
  text-decoration: none;
}

.download-primary {
  position: relative;
  overflow: hidden;
  color: #fff;
  background: linear-gradient(135deg, #161427, #444059, #767268);
  box-shadow: 0 12px 28px rgba(22, 20, 39, 0.34);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.download-primary::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 24%, rgba(255, 255, 255, 0.35) 50%, transparent 76%);
  transform: translateX(-125%);
  transition: transform 0.75s ease;
}

.download-primary:hover {
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 15px 34px rgba(22, 20, 39, 0.4);
}

.download-primary:hover::before {
  transform: translateX(130%);
}

.download-primary i,
.download-primary span {
  position: relative;
  z-index: 1;
}

.download-secondary {
  color: #1d1b2e;
  background: #f3f4fb;
  border: 1px solid rgba(14, 13, 22, 0.12);
}

.download-secondary:hover {
  color: #131224;
}

@media (min-width: 768px) {
  .audio-hero {
    margin-top: 2.4rem;
    padding: 2.95rem 2.2rem 2.35rem;
  }

  .music-block {
    padding: 1.85rem 1.55rem;
  }

  .play-block {
    padding: 1.85rem 1.55rem;
  }

  .play-now {
    grid-template-columns: 260px minmax(0, 1fr);
    align-items: start;
    gap: 1.55rem;
  }

  .modern-audio {
    padding: 0.78rem 0.92rem;
  }

  .download-card {
    grid-template-columns: 260px minmax(0, 1fr);
    align-items: start;
    gap: 1.55rem;
    padding: 1.85rem 1.55rem;
  }
}

/* Unified radius request: desktop 9px, mobile 6px */
.audio-hero,
.music-block,
.play-block,
.download-card,
.music-track,
.music-latest__card,
.play-now__cover,
.download-card__cover,
.modern-audio {
  border-radius: 9px;
}

@media (max-width: 767px) {
  .audio-hero,
  .music-block,
  .play-block,
  .download-card,
  .music-track,
  .music-latest__card,
  .play-now__cover,
  .download-card__cover,
  .modern-audio {
    border-radius: 6px;
  }
}
