body.song-detail-page,
body.song-index-page {
  opacity: 0;
  transition: opacity 900ms ease;
}

body.song-detail-page.is-ready,
body.song-index-page.is-ready {
  opacity: 1;
}

.song-overlay::after {
  background: linear-gradient(180deg, rgba(4, 4, 4, 0.38), rgba(4, 4, 4, 0.84));
}

.song-panel {
  width: min(92vw, 960px);
}

.song-hero {
  align-items: stretch;
}

.song-visual {
  margin: 0;
  display: grid;
  gap: 7px;
  align-content: start;
}

.song-primary-art {
  width: 100%;
  height: 100%;
  max-height: 360px;
  object-fit: cover;
}

.song-visual figcaption {
  color: rgb(126, 126, 126);
  font-size: 8px;
  letter-spacing: 0.12em;
  line-height: 1.5;
  text-transform: uppercase;
}

.song-title {
  font-size: 22px;
  font-weight: normal;
  letter-spacing: 0.12em;
  line-height: 1.25;
}

.song-detail-page .detail-copy,
.song-index-page .detail-copy {
  font-size: 12px;
  letter-spacing: 0.015em;
  line-height: 1.58;
  text-transform: none;
}

.song-section {
  margin-top: 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(12, 12, 12, 0.86);
}

.song-section-heading {
  padding: 16px 18px 13px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.song-section-heading p {
  margin: 0 0 6px;
  color: rgb(132, 132, 132);
  font-size: 8px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.song-section-heading h2 {
  margin: 0;
  color: rgb(198, 198, 198);
  font-size: 13px;
  font-weight: normal;
  letter-spacing: 0.14em;
  line-height: 1.4;
  text-transform: uppercase;
}

.song-lyrics-copy {
  width: min(100%, 680px);
  box-sizing: border-box;
  margin: 0 auto;
  padding: 30px clamp(22px, 5vw, 52px);
}

.song-lyrics-stanza {
  margin: 0;
  color: rgb(188, 188, 188);
  font-size: 12px;
  letter-spacing: 0.045em;
  line-height: 1.9;
}

.song-lyrics-stanza + .song-lyrics-stanza {
  margin-top: 22px;
}

.song-rights {
  margin: 0;
  padding: 13px 18px 15px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  color: rgb(116, 116, 116);
  font-size: 8px;
  letter-spacing: 0.11em;
  line-height: 1.6;
  text-align: center;
  text-transform: uppercase;
}

.song-lyrics-empty {
  padding: 34px 20px;
  text-align: center;
}

.song-lyrics-empty p {
  margin: 0;
  color: rgb(150, 150, 150);
  font-size: 11px;
  letter-spacing: 0.02em;
  line-height: 1.6;
  text-transform: none;
}

.song-guide-overview {
  display: grid;
  gap: 8px;
  padding: 20px clamp(18px, 4vw, 34px);
}

.song-guide-overview p {
  max-width: 820px;
  margin: 0;
  color: rgb(166, 166, 166);
  font-size: 12px;
  letter-spacing: 0.015em;
  line-height: 1.58;
}

.song-guide-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin: 0;
  background: rgba(255, 255, 255, 0.07);
}

.song-guide-facts div,
.song-credit-list div,
.song-live-facts div {
  padding: 14px 16px;
  background: rgb(14, 14, 14);
}

.song-guide-facts dt,
.song-credit-list dt,
.song-live-facts dt {
  color: rgb(126, 126, 126);
  font-size: 8px;
  letter-spacing: 0.14em;
  line-height: 1.5;
  text-transform: uppercase;
}

.song-guide-facts dd,
.song-credit-list dd,
.song-live-facts dd {
  margin: 7px 0 0;
  color: rgb(188, 188, 188);
  font-size: 10px;
  letter-spacing: 0.055em;
  line-height: 1.65;
}

.song-guide-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  padding: 1px;
  background: rgba(255, 255, 255, 0.07);
}

.song-guide-block {
  min-width: 0;
  padding: 19px;
  background: rgb(12, 12, 12);
}

.song-guide-block--wide {
  grid-column: 1 / -1;
}

.song-guide-block h3 {
  margin: 0 0 12px;
  color: rgb(190, 190, 190);
  font-size: 10px;
  font-weight: normal;
  letter-spacing: 0.14em;
  line-height: 1.5;
  text-transform: uppercase;
}

.song-credit-list,
.song-live-facts {
  display: grid;
  gap: 1px;
  margin: 0;
  background: rgba(255, 255, 255, 0.06);
}

.song-version-list,
.song-connection-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin: 0;
  padding: 1px;
  background: rgba(255, 255, 255, 0.06);
  list-style: none;
}

.song-version-list li,
.song-connection-list li {
  padding: 12px 14px;
  background: rgb(15, 15, 15);
  color: rgb(152, 152, 152);
  font-size: 9px;
  letter-spacing: 0.055em;
  line-height: 1.65;
}

.song-guide-empty {
  margin: 0;
  color: rgb(142, 142, 142);
  font-size: 10px;
  letter-spacing: 0.02em;
  line-height: 1.6;
}

.song-source-note {
  margin: 0;
  padding: 14px 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  color: rgb(116, 116, 116);
  font-size: 9px;
  letter-spacing: 0.025em;
  line-height: 1.55;
  text-transform: none;
}

.song-source-note strong {
  color: rgb(146, 146, 146);
  font-weight: normal;
}

.song-halo-grid,
.song-connected-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  padding: 1px;
  background: rgba(255, 255, 255, 0.07);
}

.song-halo-card,
.song-connected-link {
  display: flex;
  min-height: 104px;
  box-sizing: border-box;
  flex-direction: column;
  justify-content: center;
  padding: 16px;
  border: 1px solid rgb(17, 17, 17);
  background: rgb(13, 13, 13);
  color: inherit;
  text-decoration: none;
  transition: border-color 180ms ease, background 180ms ease;
}

.song-halo-card:hover,
.song-halo-card:focus-visible,
.song-connected-link:hover,
.song-connected-link:focus-visible {
  border-color: rgba(175, 52, 58, 0.62);
  background: rgb(20, 20, 20);
  outline: none;
}

.song-halo-number,
.song-connected-link span {
  margin-bottom: 7px;
  color: rgb(164, 86, 90);
  font-size: 8px;
  letter-spacing: 0.17em;
  text-transform: uppercase;
}

.song-halo-card strong {
  margin-bottom: 6px;
  color: rgb(196, 196, 196);
  font-size: 11px;
  font-weight: normal;
  letter-spacing: 0.1em;
  line-height: 1.45;
  text-transform: uppercase;
}

.song-halo-card > span:last-child,
.song-connected-link {
  color: rgb(138, 138, 138);
  font-size: 9px;
  letter-spacing: 0.06em;
  line-height: 1.55;
  text-transform: uppercase;
}

.song-actions {
  flex-wrap: wrap;
}

.song-index-panel {
  width: min(94vw, 1120px);
}

.song-index-header {
  padding: clamp(22px, 4vw, 42px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(12, 12, 12, 0.9);
}

.song-index-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin: 22px 0 0;
  background: rgba(255, 255, 255, 0.08);
}

.song-index-summary div {
  padding: 14px;
  background: rgb(14, 14, 14);
}

.song-index-summary dt,
.song-index-controls span {
  color: rgb(126, 126, 126);
  font-size: 8px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.song-index-summary dd {
  margin: 7px 0 0;
  color: rgb(196, 196, 196);
  font-size: 15px;
  letter-spacing: 0.08em;
}

.song-index-controls {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) 150px 160px minmax(190px, 0.8fr) auto;
  gap: 10px;
  align-items: end;
  margin-top: 12px;
  padding: 15px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(12, 12, 12, 0.9);
}

.song-index-controls label {
  display: grid;
  gap: 6px;
}

.song-index-controls input,
.song-index-controls select {
  width: 100%;
  min-height: 42px;
  box-sizing: border-box;
  border: 1px solid rgb(58, 58, 58);
  border-radius: 0;
  background: rgb(9, 9, 9);
  color: rgb(190, 190, 190);
  font: inherit;
  font-size: 11px;
  padding: 0 11px;
}

#song-result-count {
  margin: 0;
  color: rgb(145, 145, 145);
  font-size: 9px;
  letter-spacing: 0.1em;
  line-height: 42px;
  text-transform: uppercase;
  white-space: nowrap;
}

.song-index-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin-top: 12px;
}

.song-index-card {
  display: grid;
  grid-template-columns: 70px minmax(0, 1fr);
  min-height: 70px;
  border: 1px solid rgba(255, 255, 255, 0.11);
  background: rgba(12, 12, 12, 0.92);
  color: inherit;
  text-decoration: none;
  overflow: hidden;
  transition: border-color 180ms ease, background 180ms ease;
}

.song-index-card:hover,
.song-index-card:focus-visible {
  border-color: rgba(175, 52, 58, 0.62);
  background: rgb(20, 20, 20);
  outline: none;
}

.song-index-card[hidden] {
  display: none;
}

.song-index-card img {
  width: 70px;
  height: 100%;
  min-height: 70px;
  object-fit: cover;
  filter: grayscale(100%) contrast(1.05);
}

.song-index-copy {
  display: grid;
  gap: 7px;
  align-content: center;
  min-width: 0;
  padding: 10px;
}

.song-index-copy strong {
  color: rgb(192, 192, 192);
  font-size: 10px;
  font-weight: normal;
  letter-spacing: 0.08em;
  line-height: 1.45;
  text-transform: uppercase;
}

.song-index-copy small {
  color: rgb(122, 122, 122);
  font-size: 7px;
  letter-spacing: 0.08em;
  line-height: 1.45;
  text-transform: uppercase;
}

.song-index-empty {
  margin: 12px 0 0;
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: rgb(145, 145, 145);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-align: center;
  text-transform: uppercase;
}

.release-track-list .song-track-link {
  color: inherit;
  text-decoration-color: rgba(175, 52, 58, 0.5);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.release-track-list .song-track-link:hover,
.release-track-list .song-track-link:focus-visible {
  color: rgb(218, 218, 218);
  text-decoration-color: rgb(175, 52, 58);
  outline: none;
}

@media (max-width: 820px) {
  .song-halo-grid,
  .song-connected-grid,
  .song-index-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .song-index-controls {
    grid-template-columns: 1fr 1fr;
  }

  .song-guide-facts,
  .song-version-list,
  .song-connection-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .song-panel,
  .song-index-panel {
    width: 100%;
  }

  .song-halo-grid,
  .song-connected-grid,
  .song-index-grid,
  .song-index-summary,
  .song-index-controls {
    grid-template-columns: 1fr;
  }

  .song-guide-facts,
  .song-guide-grid,
  .song-version-list,
  .song-connection-list {
    grid-template-columns: 1fr;
  }

  .song-guide-block--wide {
    grid-column: auto;
  }

  .song-index-card {
    grid-template-columns: 62px minmax(0, 1fr);
  }

  .song-index-card img {
    width: 62px;
  }

  #song-result-count {
    line-height: 1.5;
  }
}

@media (prefers-reduced-motion: reduce) {
  body.song-detail-page,
  body.song-index-page {
    transition: none;
  }
}
