:root {
  --card-bg: rgba(15, 18, 28, 0.35);
  --soft-border: rgba(255, 255, 255, 0.08);
}

body {
  min-height: 100vh;
  background:
    radial-gradient(circle at top left, rgba(30, 215, 96, 0.22), transparent 34%),
    radial-gradient(circle at bottom right, rgba(255, 0, 80, 0.22), transparent 34%),
    linear-gradient(135deg, #090a0f 0%, #11131c 50%, #08090d 100%);
}

.app-shell {
  max-width: 850px;
}

.glass-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;

  background: linear-gradient(
    120deg,
    rgba(255,255,255,0.10) 0%,
    rgba(255,255,255,0.03) 30%,
    transparent 60%
  );
}

.glass-card {
  position: relative;
  overflow: hidden;

  background: var(--card-bg);

  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);

  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 20px;

  box-shadow:
    0 20px 60px rgba(0, 0, 0, 0.55),
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    inset 0 -1px 0 rgba(0, 0, 0, 0.5);

  color: white;
}

.btn-spotify {
  color: white;
  border: 0;
  background: linear-gradient(90deg, #1db954, #159447);
}

.btn-youtube {
  color: white;
  border: 0;
  background: linear-gradient(90deg, #ff0050, #ff3333);
}

.copy-success {
  animation: copyPulse 0.45s ease;
  box-shadow: 0 0 0 0 rgba(29, 185, 84, 0.45);
  background: linear-gradient(90deg, #1db954, #159447);
}

.copy-fail {
  animation: copyShake 0.35s ease;
}

@keyframes copyPulse {
  0% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(29, 185, 84, 0.45);
  }
  50% {
    transform: scale(1.03);
    box-shadow: 0 0 0 10px rgba(29, 185, 84, 0);
  }
  100% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(29, 185, 84, 0);
  }
}

@keyframes copyShake {
  0%, 100% {
    transform: translateX(0);
  }
  25% {
    transform: translateX(-2px);
  }
  75% {
    transform: translateX(2px);
  }
}

.cover-art {
  width: 88px;
  height: 88px;
  object-fit: cover;
  flex-shrink: 0;
}

.result-card {
  background: rgba(9, 10, 15, 0.72);
  border: 1px solid var(--soft-border);
}

.link-readout {
  font-size: 0.85rem;
}

/* Mobile layout: stack result content and expand images. */
@media (max-width: 576px) {
  main {
    padding-left: 14px;
    padding-right: 14px;
  }

  .song-result {
    flex-direction: column;
    align-items: flex-start !important;
  }

  .cover-art {
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1;
  }

  h1 {
    font-size: 2rem;
  }
}
