#music {
  position: relative;
  overflow: hidden;
  padding: 8rem 2rem;
  color: #f5f5f5;
  text-align: center;
  background: linear-gradient(
    to bottom,
    #000000 0%,
    #020617 45%,
    #1f2937 100%
  );
  isolation: isolate;
}

/* Soft bottom glow into shows */
#music::before {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 160px;
  pointer-events: none;
  z-index: 0;
}

/* Decorative blurred blobs */
#music .absolute-purple,
#music .absolute-cyan {
  position: absolute;
  width: 20rem;
  height: 20rem;
  border-radius: 50%;
  filter: blur(10rem);
  opacity: 0.18;
  z-index: 0;
}

#music .absolute-purple {
  background: #9b5de5;
  top: -5rem;
  left: -5rem;
}

#music .absolute-cyan {
  background: #00acee;
  bottom: -5rem;
  right: -5rem;
}

/* Header */

#music .music-header {
  position: relative;
  z-index: 2;
}

#music .music-header h2 {
  font-size: clamp(2.6rem, 5vw, 4rem);
  font-weight: 900;
  margin-bottom: 0.5rem;
  letter-spacing: -0.04em;
}

#music .music-header p {
  color: #9ca3af;
  font-size: 1.1rem;
}

/* Gradient underline bar */
.music-underline {
  width: 140px;
  height: 0.25rem;
  border-radius: 999px;
  margin: 2rem auto 0 auto;
  background: linear-gradient(to right, #9b5de5, #00acee);
  box-shadow: 0 0 18px rgba(155, 93, 229, 0.6);
}

/* Grid of album cards */

#music .grid {
  display: grid;
  gap: 2rem;
  position: relative;
  z-index: 2;
}

#music .md\:grid-cols-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

/* Album Card */

.album-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;

  background:
    radial-gradient(circle at top left, rgba(155, 93, 229, 0.22), transparent 55%),
    radial-gradient(circle at bottom right, rgba(0, 172, 238, 0.18), transparent 55%),
    linear-gradient(145deg, #111111, #050608);

  border: 1px solid rgba(55, 65, 81, 0.95);
  border-radius: 1.6rem;
  overflow: hidden;
  transition:
    transform 0.35s ease,
    box-shadow 0.45s ease,
    border-color 0.35s ease,
    background 0.45s ease;
  box-shadow:
    0 14px 32px rgba(0, 0, 0, 0.9),
    0 0 26px rgba(15, 23, 42, 0.9);
}

/* Shimmer sweep */
.album-card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(
    120deg,
    transparent 0%,
    rgba(255, 255, 255, 0.08) 40%,
    rgba(255, 255, 255, 0.18) 50%,
    transparent 70%
  );
  opacity: 0;
  transform: translateX(-120%);
  pointer-events: none;
}

.album-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 0 35px rgba(255, 255, 255, 0.03);
  opacity: 0;
  transition: opacity 0.35s ease;
}

.album-card:hover {
  transform: translateY(-6px) scale(1.02);
  border-color: #9b5de5;
  box-shadow:
    0 20px 48px rgba(0, 0, 0, 0.97),
    0 0 40px rgba(155, 93, 229, 0.65);
}

.album-card:hover::before {
  opacity: 1;
}

.album-card:hover::after {
  opacity: 1;
  animation: musicShineSweep 0.9s ease forwards;
}

@keyframes musicShineSweep {
  from { transform: translateX(-120%); }
  to   { transform: translateX(140%); }
}

/* Image area */

.album-img-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 1.2rem;
  overflow: hidden;
  background-color: #020617;
}

.album-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
  transition: transform 0.55s ease;
  position: relative;
  z-index: 1;
}

.album-img--placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #9ca3af;
  font-size: 0.9rem;
}

.album-img-wrapper:hover .album-img {
  transform: scale(1.08);
}

/* Soft vignette */
.album-img-wrapper::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, transparent, rgba(0, 0, 0, 0.75));
  opacity: 0;
  transition: opacity 0.35s ease;
  z-index: 1;
}

.album-img-wrapper:hover::before {
  opacity: 1;
}


/* Album meta area */

.album-meta {
  padding: 1.1rem 1.4rem 1.4rem;
  text-align: center;
}

.album-title {
  font-size: 1.4rem;
  font-weight: 700;
  color: white;
  margin-bottom: 0.25rem;
}

.album-year {
  font-size: 0.82rem;
  font-weight: 600;
  color: #9b5de5;
  margin-bottom: 0.35rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
}

.album-desc {
  font-size: 0.9rem;
  color: #9ca3af;
  text-align: center;
  margin-bottom: 0.7rem;
}

/* Now Playing pill */
.album-now-playing {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid rgba(148, 163, 184, 0.5);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: #e5e7eb;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.25s ease, transform 0.25s ease, border-color 0.25s ease;
}

.album-card:hover .album-now-playing {
  opacity: 1;
  transform: translateY(0);
  border-color: #a855f7;
}

.now-dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 999px;
  background: #22c55e;
  box-shadow: 0 0 10px rgba(34, 197, 94, 0.9);
}

/* Tiny EQ bars inside pill */
.now-bars {
  display: inline-flex;
  align-items: flex-end;
  gap: 2px;
}

.now-bars span {
  width: 2px;
  height: 6px;
  border-radius: 999px;
  background: linear-gradient(to top, #22c55e, #bbf7d0);
  animation: nowEqDance 0.7s ease-in-out infinite alternate;
}

.now-bars span:nth-child(2) {
  animation-delay: 0.1s;
}
.now-bars span:nth-child(3) {
  animation-delay: 0.2s;
}

@keyframes nowEqDance {
  0% { transform: scaleY(0.4); }
  100% { transform: scaleY(1); }
}

/* Hover shimmer sweep */

/* Darkened overlay on hover */
.album-overlay {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(
    circle at center,
    rgba(0, 0, 0, 0.16) 0%,
    rgba(0, 0, 0, 0.8) 100%
  );
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.25s ease, transform 0.25s ease;
  z-index: 2;
  pointer-events: none; /* only the chips inside are clickable */
}

.album-img-wrapper:hover .album-overlay {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

/* Inner content */
.album-overlay-inner {
  max-width: 90%;
  text-align: center;
}

/* "Keep listening" label */
.album-platforms-label {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: #e5e7eb;
  opacity: 0.9;
  margin-bottom: 0.9rem;
}

/* Row of chips */
.album-platforms-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.6rem;
}

/* Base chip styles */
.album-platform-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.55rem 1.4rem;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  text-decoration: none;

  border: 1px solid rgba(255, 255, 255, 0.4);
  color: #f9fafb;
  background: rgba(15, 23, 42, 0.88);

  box-shadow:
    0 10px 26px rgba(0, 0, 0, 0.85),
    0 0 14px rgba(15, 23, 42, 0.6);

  transition:
    transform 0.18s ease,
    box-shadow 0.2s ease,
    filter 0.2s ease,
    border-color 0.2s ease,
    background 0.2s ease;
}

/* base icon sizing */
.album-platform-chip svg.album-platform-icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

/* the white outer disc */
.album-platform-chip.album-platform-spotify svg.album-platform-icon circle {
  fill: #ffffff;
}

/* the three arcs inside the disc */
.album-platform-chip.album-platform-spotify svg.album-platform-icon path {
  fill: none;
  stroke: #1db954;
  stroke-width: 1.5;
  stroke-linecap: round;
}


/* Icon in album platform chips */
.album-platform-chip svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}


.album-platform-chip-label {
  display: inline-block;
}

/* Hover */
.album-platform-chip:hover {
  transform: translateY(-1px);
  box-shadow:
    0 14px 32px rgba(0, 0, 0, 0.95),
    0 0 18px rgba(148, 163, 184, 0.9);
  filter: brightness(1.05);
}

/* Brand colors */

.album-platform-spotify {
  background: linear-gradient(120deg, #15803d, #22c55e);
  border-color: rgba(74, 222, 128, 0.9);
}

.album-platform-apple {
  background: linear-gradient(120deg, #fb7185, #f97373);
  border-color: rgba(252, 165, 165, 0.9);
}

.album-platform-youtube {
  background: linear-gradient(120deg, #ef4444, #f97316);
  border-color: rgba(248, 113, 113, 0.95);
}

.album-platform-default {
  background: linear-gradient(120deg, #7c3aed, #ec4899);
  border-color: rgba(216, 180, 254, 0.95);
}

/* Slight tweaks on small screens */
@media (max-width: 640px) {
  .album-platform-chip {
    font-size: 0.78rem;
    padding: 0.5rem 1.2rem;
  }

  .album-platforms-row {
    gap: 0.45rem;
  }
}



/* Streaming platforms section */

.platforms {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  margin-top: 2rem;
}

.platforms-button {
  flex: 1 1 150px;
  max-width: 210px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.8rem 1.2rem;
  border-radius: 999px;
  color: white;
  font-weight: 700;
  font-size: 0.86rem;
  text-decoration: none;
  cursor: pointer;

  position: relative;
  overflow: hidden;

  background: linear-gradient(135deg, #333, #111);

  box-shadow:
    0 8px 22px rgba(0, 0, 0, 0.65),
    inset 0 1px 1px rgba(255, 255, 255, 0.12);

  transition:
    transform 0.25s ease,
    box-shadow 0.3s ease,
    filter 0.2s ease;
}


/* =========================
   PLATFORM GRADIENTS
   ========================= */

.platforms-button.spotify {
  background: linear-gradient(135deg, #1ed760, #0b8f3d);
}

.platforms-button.youtube {
  background: linear-gradient(135deg, #ff3d3d, #b00000);
}

.platforms-button.apple-music {
  background: linear-gradient(135deg, #fa233b, #8e0e24);
}


/* =========================
   HOVER EFFECT
   ========================= */

.platforms-button:hover {
  transform: translateY(-4px) scale(1.03);
  filter: brightness(1.15);

  box-shadow:
    0 14px 30px rgba(0, 0, 0, 0.75),
    0 0 20px rgba(255, 255, 255, 0.12);
}

.platforms-button:active {
  transform: translateY(-1px) scale(0.98);
}

/* Animated fade-up on scroll */

#music .fade-up {
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.8s ease-out;
}

#music .animate-fade-up {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1024px) {
  #music .md\:grid-cols-3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  #music {
    padding: 6rem 1.5rem;
  }

  #music .music-header h2 {
    font-size: 3rem;
  }

  #music .music-header p {
    font-size: 1rem;
  }

  #music .md\:grid-cols-3 {
    grid-template-columns: 1fr;
  }

  .platforms-button {
    flex: 1 1 100%;
    max-width: none;
  }
}
