:root {
  --album-cyan: #50dfdb;
  --album-purple: #c043e5;
  --album-blue: #4a7aff;
  --album-text: #f4f8ff;
  --album-muted: rgba(227, 236, 255, 0.7);
  --album-border: rgba(255, 255, 255, 0.12);
}

.main-content {
  width: min(1180px, 90vw);
}

.son-info {
  grid-template-columns: minmax(240px, 320px) 1fr;
  gap: clamp(28px, 5vw, 70px);
  min-height: 430px;
  padding: clamp(28px, 4vw, 54px);
  border-color: rgba(255, 255, 255, 0.16);
  background: linear-gradient(118deg, rgba(5, 11, 24, 0.94) 18%, rgba(9, 17, 34, 0.78) 62%, rgba(20, 17, 45, 0.8));
  overflow: hidden;
  position: relative;
  isolation: isolate;
  animation: heroReveal 0.8s cubic-bezier(0.2, 0.75, 0.25, 1) both;
}

.son-info::before {
  content: "";
  position: absolute;
  inset: -45px;
  z-index: -3;
  background-image: linear-gradient(90deg, rgba(5, 11, 24, 0.98) 16%, rgba(5, 11, 24, 0.74) 60%, rgba(5, 11, 24, 0.88)), var(--album-cover-image);
  background-position: center;
  background-size: cover;
  filter: blur(30px) saturate(1.35);
  opacity: 0.55;
  transform: scale(1.08);
  pointer-events: none;
}

.son-info::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background-image:
    linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px),
    radial-gradient(circle at 78% 20%, rgba(192, 67, 229, 0.22), transparent 34%),
    radial-gradient(circle at 12% 90%, rgba(80, 223, 219, 0.16), transparent 32%);
  background-size: 34px 34px, 34px 34px, auto, auto;
  mask-image: linear-gradient(110deg, rgba(0,0,0,0.4), #000);
  pointer-events: none;
}

.album-ambient {
  position: absolute;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}

.album-ambient span {
  position: absolute;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: rgba(80, 223, 219, 0.12);
  filter: blur(2px);
  animation: ambientOrb 11s ease-in-out infinite alternate;
}

.album-ambient span:nth-child(1) { left: 35%; top: -130px; }
.album-ambient span:nth-child(2) { right: -80px; bottom: -100px; width: 260px; height: 260px; background: rgba(192, 67, 229, 0.13); animation-delay: -4s; }
.album-ambient span:nth-child(3) { left: 55%; bottom: -150px; width: 220px; height: 220px; background: rgba(74, 122, 255, 0.12); animation-delay: -7s; }

.album-cover-wrap {
  position: relative;
  align-self: center;
  border-radius: 20px;
  transform-style: preserve-3d;
  animation: coverReveal 0.9s 0.12s cubic-bezier(0.2, 0.8, 0.25, 1) both, coverFloat 6s 1.1s ease-in-out infinite;
}

.son-info .album-cover-wrap img {
  display: block;
  aspect-ratio: 1;
  height: auto;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 20px;
  box-shadow: 0 28px 65px rgba(0, 0, 0, 0.6), 0 0 0 7px rgba(255, 255, 255, 0.035);
}

.cover-shine {
  position: absolute;
  inset: 0;
  overflow: hidden;
  border-radius: 20px;
  pointer-events: none;
}

.cover-shine::after {
  content: "";
  position: absolute;
  top: -40%;
  left: -85%;
  width: 48%;
  height: 180%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transform: rotate(18deg);
  animation: coverShine 5.5s 1.5s ease-in-out infinite;
}

.album-format {
  display: inline-flex;
  width: fit-content;
  padding: 6px 11px;
  border: 1px solid rgba(80, 223, 219, 0.28);
  border-radius: 999px;
  color: var(--album-cyan);
  background: rgba(80, 223, 219, 0.07);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.son-details {
  justify-content: space-between;
  gap: 34px;
  min-width: 0;
  animation: contentReveal 0.85s 0.25s cubic-bezier(0.2, 0.75, 0.25, 1) both;
}

.album-hero-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
}

.info-label,
.section-kicker {
  color: var(--album-cyan);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.artist-gradient-link,
.album-name {
  display: block;
  width: fit-content;
  margin: 0;
  color: var(--album-text);
  background: linear-gradient(98deg, #fff 10%, #cde1ff 58%, #8cb3ff 100%);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: 800;
  line-height: 1.05;
  text-decoration: none;
}

.artist-gradient-link {
  margin-top: 8px;
  color: var(--album-cyan);
  background: none;
  -webkit-text-fill-color: currentColor;
  font-size: clamp(1rem, 1.7vw, 1.35rem);
  letter-spacing: 0.025em;
}

.album-name {
  max-width: 800px;
  font-size: clamp(2.35rem, 5vw, 5rem);
  letter-spacing: -0.045em;
  overflow-wrap: anywhere;
  text-wrap: balance;
  filter: drop-shadow(0 8px 24px rgba(0,0,0,0.35));
}

.artist-gradient-link:hover {
  filter: brightness(1.18);
}

.artist-stars,
.album-stars {
  display: inline-flex;
  width: fit-content;
  gap: 6px;
}

.album-rating {
  display: flex;
  align-items: center;
  gap: 11px;
  margin-top: 6px;
  padding: 9px 12px;
  border: 1px solid rgba(255, 193, 7, 0.2);
  border-radius: 999px;
  background: rgba(5, 11, 24, 0.36);
  box-shadow: inset 0 0 20px rgba(255, 193, 7, 0.05);
  backdrop-filter: blur(8px);
}

.artist-stars .star,
.album-stars .star {
  width: 19px;
  height: 19px;
  cursor: default;
  transform-origin: 50% 70%;
  transition: transform 0.28s cubic-bezier(0.2, 0.9, 0.3, 1.35), filter 0.28s ease, box-shadow 0.28s ease;
}

.album-stars:hover .star {
  animation: starDance 0.65s cubic-bezier(0.2, 0.85, 0.3, 1.25) both;
  filter: brightness(1.22) saturate(1.25);
}

.album-stars:hover .star:nth-child(2) { animation-delay: 0.05s; }
.album-stars:hover .star:nth-child(3) { animation-delay: 0.1s; }
.album-stars:hover .star:nth-child(4) { animation-delay: 0.15s; }
.album-stars:hover .star:nth-child(5) { animation-delay: 0.2s; }

.album-stars .star:hover {
  transform: translateY(-5px) rotate(10deg) scale(1.45);
  filter: brightness(1.35) saturate(1.4) drop-shadow(0 0 8px rgba(255, 193, 7, 0.9));
  z-index: 2;
}

.album-metadata {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-top: 2px;
}

.album-metadata .singalb-count {
  display: grid;
  gap: 6px;
  min-width: 0;
  padding: 13px 15px;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 14px;
  background: rgba(5, 11, 24, 0.3);
  backdrop-filter: blur(10px);
  transition: transform 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}

.album-metadata .singalb-count:first-child {
  padding-left: 15px;
}

.album-metadata .singalb-count:hover {
  transform: translateY(-3px);
  border-color: rgba(80, 223, 219, 0.3);
  background: rgba(80, 223, 219, 0.07);
}

@keyframes heroReveal {
  from { opacity: 0; transform: translateY(18px) scale(0.985); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes coverReveal {
  from { opacity: 0; transform: translateX(-34px) rotateY(10deg) scale(0.92); }
  to { opacity: 1; transform: translateX(0) rotateY(0) scale(1); }
}

@keyframes contentReveal {
  from { opacity: 0; transform: translateX(30px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes coverFloat {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 -7px; }
}

@keyframes coverShine {
  0%, 65% { left: -85%; opacity: 0; }
  72% { opacity: 1; }
  92%, 100% { left: 145%; opacity: 0; }
}

@keyframes ambientOrb {
  from { transform: translate3d(-20px, -10px, 0) scale(0.9); }
  to { transform: translate3d(45px, 35px, 0) scale(1.16); }
}

@keyframes starDance {
  0% { transform: translateY(0) rotate(0) scale(1); }
  45% { transform: translateY(-6px) rotate(-8deg) scale(1.28); }
  72% { transform: translateY(1px) rotate(5deg) scale(0.96); }
  100% { transform: translateY(0) rotate(0) scale(1); }
}

.album-metadata .singalb-count span {
  color: var(--album-muted);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.album-metadata .singalb-count strong {
  overflow: hidden;
  color: #fff;
  font-size: 0.95rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tracklist-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin: 48px 4px 16px;
}

.lyrics-title {
  margin: 4px 0 0;
  color: var(--album-text);
  font-family: "Bahnschrift", "Segoe UI", sans-serif;
  font-size: clamp(1.8rem, 3.3vw, 3rem);
  line-height: 1;
  letter-spacing: -0.025em;
  text-align: left;
  text-transform: none;
  text-shadow: none;
  animation: none;
}

.track-total {
  color: var(--album-muted);
  font-size: 0.88rem;
}

.tracklist-container {
  display: grid;
  gap: 8px;
  max-width: none;
  margin: 0;
  padding: 14px;
  border: 1px solid var(--album-border);
  border-radius: 22px;
  background: linear-gradient(145deg, rgba(9, 17, 34, 0.88), rgba(9, 17, 34, 0.6));
  box-shadow: 0 20px 55px rgba(3, 8, 20, 0.45);
}

.track-item {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr) 28px;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border: 1px solid transparent;
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.025);
  color: #fff;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.track-item:hover {
  transform: translateX(4px);
  border-color: rgba(80, 223, 219, 0.25);
  background: rgba(80, 223, 219, 0.07);
}

.track-item:focus-visible {
  outline: 2px solid var(--album-cyan);
  outline-offset: 2px;
  border-color: rgba(80, 223, 219, 0.5);
}

.track-number {
  color: var(--album-cyan);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.track-title {
  min-width: 0;
}

.track-title {
  display: block;
  overflow: hidden;
  color: #fff;
  font-size: clamp(0.98rem, 1.5vw, 1.12rem);
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.track-item:hover .track-title {
  color: var(--album-cyan);
}

.track-arrow {
  color: rgba(227, 236, 255, 0.4);
  font-size: 1.15rem;
  transition: color 0.2s ease, transform 0.2s ease;
}

.track-item:hover .track-arrow {
  color: var(--album-cyan);
  transform: translateX(3px);
}

@media (max-width: 760px) {
  .son-info {
    grid-template-columns: 1fr;
  }

  .album-cover-wrap {
    width: min(100%, 360px);
    margin: 0 auto;
  }

  .son-details,
  .album-hero-copy {
    align-items: flex-start;
    text-align: left;
  }

  .album-metadata {
    grid-template-columns: 1fr;
    width: 100%;
  }

  .album-metadata .singalb-count {
    grid-template-columns: 1fr auto;
    align-items: center;
    padding: 11px 0;
    border-left: 0;
    border-bottom: 1px solid var(--album-border);
  }

  .album-metadata .singalb-count:last-child {
    border-bottom: 0;
  }

  .tracklist-heading {
    margin-top: 34px;
  }

  .tracklist-container {
    padding: 8px;
  }

  .track-item {
    grid-template-columns: 35px minmax(0, 1fr) 22px;
    padding: 13px 10px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .son-info,
  .album-cover-wrap,
  .son-details,
  .album-ambient span,
  .cover-shine::after {
    animation: none !important;
  }

  .album-stars:hover .star {
    animation: none !important;
  }
}
