/* =========================================================
   LƯỚT CHẠM · Ca khúc chủ đề Không Một Mình 2026
   ========================================================= */

.song-section {
  scroll-margin-top: 84px;
}

.song-panel {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
  gap: clamp(28px, 4vw, 56px);
  align-items: center;
  padding: clamp(24px, 4.4vw, 54px);
  border-radius: calc(var(--radius) + 6px);
  background:
    radial-gradient(120% 130% at 100% 0%, rgba(179, 20, 31, 0.42), transparent 56%),
    radial-gradient(90% 120% at 0% 100%, rgba(254, 205, 165, 0.13), transparent 62%),
    linear-gradient(145deg, #101026 0%, #1b2a6b 58%, #283377 100%);
  color: var(--white);
  box-shadow: var(--shadow);
  overflow: hidden;
  isolation: isolate;
}

.song-panel::after {
  content: "";
  position: absolute;
  top: -180px;
  right: -140px;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  border: 1px solid rgba(254, 205, 165, 0.18);
  box-shadow:
    0 0 0 60px rgba(254, 205, 165, 0.045),
    0 0 0 120px rgba(254, 205, 165, 0.03);
  pointer-events: none;
  z-index: 0;
}

.song-copy,
.song-media {
  position: relative;
  z-index: 1;
  min-width: 0;
}

.song-copy .eyebrow {
  color: rgba(251, 247, 239, 0.62);
}

.song-copy h2 {
  margin: 0;
  font-size: clamp(2.1rem, 3.7vw, 3.5rem);
  color: var(--white);
}

.song-copy h2 em {
  color: var(--peach);
}

.song-copy .section-lead {
  max-width: 46ch;
  margin-top: 20px;
  color: rgba(251, 247, 239, 0.72);
}

.song-quote {
  margin: 24px 0 0;
  padding: 4px 0 4px 18px;
  border-left: 2px solid var(--peach);
  font-size: clamp(15px, 1.55vw, 19px);
  font-weight: 500;
  line-height: 1.55;
  color: var(--peach);
}

.song-quote cite {
  display: block;
  margin-top: 8px;
  font-size: 9.5px;
  font-style: normal;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(251, 247, 239, 0.5);
}

.song-meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin: 26px 0 0;
  padding: 20px 0 0;
  border-top: 1px solid var(--line-light);
  list-style: none;
}

.song-meta span {
  display: block;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(251, 247, 239, 0.5);
}

.song-meta strong {
  display: block;
  margin-top: 4px;
  font-size: 12.5px;
  font-weight: 600;
  line-height: 1.4;
  color: var(--white);
}

.song-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 26px;
}

.song-panel .btn-ghost {
  color: var(--white);
  border-color: rgba(251, 247, 239, 0.28);
}

.song-panel .btn-ghost:hover {
  color: var(--peach);
  border-color: var(--peach);
}

.song-note {
  margin: 14px 0 0;
  font-size: 11px;
  line-height: 1.65;
  color: rgba(251, 247, 239, 0.52);
}

.song-note a {
  color: var(--peach);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.song-media {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.song-video {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  border-radius: 18px;
  border: 1px solid rgba(251, 247, 239, 0.16);
  background: #000;
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.75);
  scroll-margin-top: 100px;
}

.song-caption {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px 16px;
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 0.1em;
  line-height: 1.5;
  text-transform: uppercase;
  color: rgba(251, 247, 239, 0.5);
}

.song-caption strong {
  color: var(--peach);
  font-weight: 700;
}

/* Hero entry point */
.hero-song-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 22px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.03em;
  color: var(--ink-2);
}

.hero-song-icon {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--coral);
  color: var(--white);
  box-shadow: 0 8px 18px -8px rgba(179, 20, 31, 0.7);
  transition: transform 0.25s var(--ease), background 0.25s var(--ease);
}

.hero-song-icon .icon {
  width: 13px;
  height: 13px;
  margin-left: 2px;
}

.hero-song-link:hover {
  color: var(--coral);
}

.hero-song-link:hover .hero-song-icon {
  transform: scale(1.08);
  background: var(--coral-deep);
}

/* Full-width player on tablets and small laptops. */
@media (max-width: 1080px) {
  .song-panel {
    grid-template-columns: minmax(0, 1fr);
    gap: 30px;
  }

  .song-copy {
    display: contents;
  }

  .song-intro {
    order: 1;
  }

  .song-media {
    order: 2;
  }

  .song-details {
    order: 3;
  }

  .song-intro,
  .song-details {
    position: relative;
    z-index: 1;
  }

  .song-details .song-quote {
    margin-top: 0;
  }
}

@media (max-width: 900px) {
  .song-panel {
    gap: 26px;
    padding: 24px 18px;
    border-radius: 24px;
  }

  .song-copy h2 {
    font-size: clamp(2rem, 8vw, 2.7rem);
  }

  .song-meta {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px 18px;
  }

  .song-actions .btn {
    flex: 1 1 100%;
    justify-content: center;
  }

  /* The player is already above the details on mobile. */
  .song-actions .btn-primary {
    display: none;
  }

  .song-caption {
    flex-direction: column;
    gap: 4px;
  }
}

@media (max-width: 480px) {
  .song-panel {
    padding: 20px 14px;
  }

  .song-quote {
    font-size: 14px;
  }

  .song-caption {
    font-size: 9px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-song-icon {
    transition: none;
  }
}
