.container {
  position: relative;
  z-index: 1;
  width: min(1300px, 90%);
  margin: auto;
}

.page-excitement {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0;
  background:
    radial-gradient(
      ellipse at 15% 20%,
      rgba(77, 163, 255, 0.2),
      transparent 35%
    ),
    radial-gradient(
      ellipse at 85% 70%,
      rgba(135, 80, 210, 0.2),
      transparent 38%
    ),
    radial-gradient(
      ellipse at 48% 92%,
      rgba(0, 206, 255, 0.14),
      transparent 32%
    );
  background-size: 150% 150%;
  filter: blur(18px);
  transition: opacity 0.4s ease;
}

.album-excited .page-excitement {
  opacity: 0.8;
  animation: excited-glow 1s ease-in-out infinite alternate;
}

@keyframes excited-glow {
  to {
    background-position: 100% 100%;
    opacity: 1;
  }
}

.header {
  text-align: center;
  padding: 50px 0;
}

.back-btn {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  margin-bottom: 40px;
  padding: 10px 16px;
  color: #8bb5ff;
  text-decoration: none;
  font-weight: 600;
  border: 1px solid rgba(139, 181, 255, 0.35);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.03);
  transition:
    background 0.2s ease,
    border-color 0.2s ease;
}

.back-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(139, 181, 255, 0.7);
}

.album-cover {
  max-width: 450px;
  margin: auto;
  border-radius: 25px;
  overflow: hidden;
  box-shadow:
    0 0 25px rgba(21, 101, 255, 0.35),
    0 0 80px rgba(21, 101, 255, 0.15);
}

.album-cover img {
  width: 100%;
  height: auto;
  display: block;
}

.album-title-card {
  width: min(480px, 90vw);
  min-height: 150px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin: 30px auto 0;
  padding: 24px;
  border: 1px solid rgba(139, 181, 255, 0.35);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.045);
  box-shadow: 0 0 28px rgba(21, 101, 255, 0.2);
  color: inherit;
  text-decoration: none;
  cursor: pointer;
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease,
    border-color 0.25s ease,
    background 0.25s ease;
}

@media (hover: hover) and (pointer: fine) {
  .album-title-card:hover {
    transform: translateY(-3px);
    border-color: rgba(139, 181, 255, 0.7);
    background: rgba(255, 255, 255, 0.07);
    box-shadow: 0 10px 38px rgba(21, 101, 255, 0.38);
  }
}

.album-title-card h1 {
  font-size: clamp(2rem, 4vw, 2.6rem);
}

.album-title-hint {
  color: #9dbdff;
  font-size: 0.85rem;
  font-weight: 600;
}

.album-title-card:focus-visible {
  outline: 2px solid #8bb5ff;
  outline-offset: 5px;
}

.back-btn:focus-visible {
  outline: 2px solid #8bb5ff;
  outline-offset: 4px;
}

.album-platform-dialog {
  width: min(560px, calc(100% - 32px));
  max-width: none;
  max-height: calc(100% - 32px);
  margin: auto;
  padding: clamp(22px, 5vw, 32px);
  overflow: auto;
  border: 1px solid rgba(139, 181, 255, 0.35);
  border-radius: 22px;
  background: rgba(5, 12, 28, 0.98);
  box-shadow:
    0 24px 80px rgba(0, 0, 0, 0.55),
    0 0 36px rgba(21, 101, 255, 0.2);
  color: white;
}

.album-platform-dialog::backdrop {
  background: rgba(1, 4, 12, 0.76);
  backdrop-filter: blur(5px);
}

.album-platform-dialog-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 24px;
}

.album-platform-dialog h2 {
  margin-bottom: 8px;
  font-size: clamp(1.5rem, 5vw, 2rem);
}

.album-platform-description {
  color: #b8cbff;
  font-size: 0.95rem;
}

.album-platform-close {
  width: 44px;
  height: 44px;
  flex: none;
  display: grid;
  place-items: center;
  border: 1px solid rgba(139, 181, 255, 0.3);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  color: white;
  cursor: pointer;
  transition:
    background 0.2s ease,
    border-color 0.2s ease;
}

.album-platform-close:hover {
  border-color: rgba(139, 181, 255, 0.7);
  background: rgba(255, 255, 255, 0.12);
}

.album-platform-close svg {
  width: 20px;
  height: 20px;
}

.album-platform-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.album-platform-link {
  min-height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px;
  border: 1px solid rgba(139, 181, 255, 0.28);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.05);
  box-shadow: 0 0 18px rgba(21, 101, 255, 0.1);
  color: white;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
  transition:
    transform 0.2s ease,
    background 0.2s ease,
    border-color 0.2s ease;
}

.album-platform-link:hover {
  transform: translateY(-2px);
  border-color: rgba(139, 181, 255, 0.7);
  background: rgba(255, 255, 255, 0.1);
}

.album-platform-link:focus-visible,
.album-platform-close:focus-visible {
  outline: 2px solid #8bb5ff;
  outline-offset: 3px;
}

.album-platform-icon {
  width: 28px;
  height: 28px;
  flex: none;
}

@media (max-width: 520px) {
  .album-platform-options {
    grid-template-columns: 1fr;
    gap: 10px;
  }
}

.album-excited .album-title-card {
  animation: title-card-cheer 0.65s ease-in-out infinite alternate;
}

.album-excited .album-cover {
  animation: album-cover-cheer 0.65s ease-in-out infinite alternate;
}

.album-excited .tracks-heading h2 {
  animation: tracks-heading-cheer 0.55s ease-in-out infinite alternate;
}

.album-excited .song-card {
  animation: song-card-cheer 0.65s ease-in-out infinite alternate;
}

.album-excited .song-card:nth-child(2) {
  animation-delay: 0.12s;
}

.album-excited .song-card:nth-child(3) {
  animation-delay: 0.24s;
}

.album-excited .song-artwork {
  box-shadow: 0 0 32px rgba(77, 163, 255, 0.35);
}

@keyframes title-card-cheer {
  to {
    box-shadow: 0 10px 42px rgba(21, 101, 255, 0.55);
  }
}

@keyframes album-cover-cheer {
  to {
    transform: scale(1.025) rotate(1deg);
    box-shadow:
      0 0 36px rgba(21, 101, 255, 0.55),
      0 0 90px rgba(21, 101, 255, 0.25);
  }
}

@keyframes tracks-heading-cheer {
  to {
    transform: scale(1.06);
    color: white;
  }
}

@keyframes song-card-cheer {
  to {
    transform: translateY(-8px) scale(1.025);
  }
}

.song-grid {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
  padding: 32px 0 80px;
  max-width: 720px;
  margin: auto;
}

.tracks-heading {
  max-width: 720px;
  margin: 48px auto 0;
  padding-top: 32px;
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
}

.tracks-heading h2 {
  color: #b8cbff;
  font-size: 1.6rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.song-card {
  width: min(300px, 90%);
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: transform 0.35s ease;
}

.song-artwork {
  width: 100%;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 25px;
  background: rgba(255, 255, 255, 0.04);
  transition: box-shadow 0.35s ease;
}

@media (hover: hover) and (pointer: fine) {
  .song-card:hover {
    transform: translateY(-3px) scale(1.03);
    z-index: 1;
  }
  .song-card:hover .song-artwork {
    box-shadow:
      0 18px 45px rgba(0, 0, 0, 0.55),
      0 0 35px rgba(21, 101, 255, 0.35);
  }
}

.song-card img {
  width: 100%;
  height: auto;
  display: block;
  flex: none;
}

.song-info {
  width: 100%;
  text-align: center;
}

.song-info h3 {
  font-size: 1.7rem;
  color: #b8cbff;
}

footer {
  position: relative;
  z-index: 1;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

@media (prefers-reduced-motion: reduce) {
  .page-excitement,
  .album-cover,
  .tracks-heading h2,
  .back-btn,
  .song-card,
  .song-artwork,
  .album-title-card,
  .album-platform-link,
  .album-platform-close {
    animation: none;
    transition: none;
  }
  .album-title-card:hover {
    transform: none;
  }
  .song-card:hover {
    transform: none;
  }
  .album-cover {
    transform: none;
  }
}
