/* Songs scoped view — fluid grid + shared tile motion */

body.songs-page {
  min-height: 100vh;
  background: var(--bg);
  display: flex;
  flex-direction: column;
}

.songs-glow {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(ellipse 70% 50% at 50% 0%, rgba(212, 132, 90, 0.1), transparent 55%),
    radial-gradient(ellipse 90% 70% at 50% 100%, rgba(0, 0, 0, 0.45), transparent 70%);
}

.songs-main {
  position: relative;
  z-index: 2;
  flex: 1;
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: none;
  margin-inline: auto;
  /* Bottom: fixed footer band + safe area, so the last row scrolls clear of the footer */
  padding: 0.35rem clamp(0.85rem, 2.5vw, 2rem)
    calc(0.75rem + var(--site-footer-zone, 2.25rem) + env(safe-area-inset-bottom, 0px));
  box-sizing: border-box;
  overflow: visible;
}

/* Keyboard / focus scrolling keeps tiles out from under the fixed footer */
html:has(body.songs-page) {
  scroll-padding-bottom: calc(var(--site-footer-zone, 2.25rem) + 0.75rem + env(safe-area-inset-bottom, 0px));
}

.songs-page .site-fluid-shell {
  min-height: 0;
}

.songs-page .site-fluid-shell--center {
  min-height: 0;
}

.songs-grid.site-fluid-grid {
  width: 100%;
  max-width: none;
  --grid-content-width: 100%;
  overflow: visible;
  padding: 0.4rem 0 0.35rem;
}

.songs-grid.site-fluid-grid > .song-tile:not([hidden]) {
  content-visibility: visible;
  contain-intrinsic-size: unset;
}

@media (max-width: 767px) {
  .songs-main {
    padding-inline: 0.75rem;
    /* Mobile: extra breathing room above the footer gradient for the last row's titles */
    padding-bottom: calc(1.75rem + var(--site-footer-zone, 2.25rem) + env(safe-area-inset-bottom, 0px));
  }
}

/* No-JS fallback (only rendered inside <noscript>) */
.noscript-intro {
  position: relative;
  z-index: 2;
  max-width: 34rem;
  margin: 2rem auto;
  padding: 0 1.25rem;
  text-align: center;
  color: var(--text);
  line-height: 1.55;
}

.noscript-intro a {
  color: var(--accent);
}

.noscript-intro h1 {
  margin: 0 0 0.75rem;
  font-size: 1.5rem;
  font-weight: 600;
}
