.song-title {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}
.song-byline {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 0;
  max-width: 100%;
  color: var(--muted);
  font-size: 11px;
  line-height: 16px;
}
.creator {
  display: flex;
  align-items: center;
  gap: 4px;
  min-width: 0;
  white-space: nowrap;
}
#requester {
  min-width: 0;
  font-weight: 700;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
#song-plays {
  flex: none;
  white-space: nowrap;
}
.song-heading {
  max-width: 100%;
}
.song-heading h1 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.details-trigger,
.share-song {
  flex: none;
  width: 32px;
  height: 32px;
  margin: -8px 0 -8px -6px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  background: none;
  color: var(--muted);
  cursor: pointer;
}
.details-trigger svg,
.share-song svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.4;
  stroke-linecap: round;
}
.share-song:hover,
.details-trigger:hover,
.details-trigger[aria-expanded="true"] {
  color: var(--ink);
}
.share-song:focus-visible,
.details-trigger:focus-visible,
.details-close:focus-visible,
#copy-prompt:focus-visible,
#reuse-prompt:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
  border-radius: 4px;
}
#song-details {
  position: fixed;
  z-index: 20;
  width: min(320px, calc(100vw - 32px));
  max-height: min(440px, calc(100svh - 32px));
  display: flex;
  flex-direction: column;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 22px 20px 20px;
  box-shadow: 0 6px 28px var(--shadow);
  outline: none;
}
.popover-top {
  position: absolute;
  top: 8px;
  right: 12px;
}
.details-close,
#copy-prompt {
  display: grid;
  place-items: center;
  border: 0;
  background: none;
  color: var(--muted);
  padding: 0;
  width: 32px;
  height: 32px;
  cursor: pointer;
}
.details-close:hover,
#copy-prompt:hover {
  color: var(--ink);
}
.details-close svg,
#copy-prompt svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  stroke-width: 1.5;
  fill: none;
}
.details-body {
  overflow: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: var(--focus) transparent;
}
.details-body dl {
  margin: 0;
}
.details-body dt,
.details-body h3 {
  font-size: 11px;
  color: var(--muted);
  font-weight: 400;
  margin: 0;
}
.details-body dd {
  margin: 0;
  font-size: 12px;
  line-height: 1.5;
  overflow-wrap: anywhere;
}
.models > div {
  display: grid;
  grid-template-columns: 100px minmax(0, 1fr);
  align-items: baseline;
  gap: 8px;
}
.flag {
  font-size: 12px;
  margin-right: 6px;
  white-space: nowrap;
}
.original-prompt {
  margin: 0 0 20px;
}
.prompt-heading {
  display: flex;
  align-items: center;
  gap: 4px;
  padding-right: 28px;
}
#copy-prompt {
  margin: -8px 0;
}
#copy-prompt .copied-glyph,
#copy-prompt[data-copied="true"] .copy-glyph {
  display: none;
}
#copy-prompt[data-copied="true"] .copied-glyph {
  display: block;
}
#copy-prompt-status:not(.sr-only) {
  margin: 8px 0;
  font-size: 12px;
  line-height: 1.5;
}
#song-prompt {
  margin: 8px 0 0;
  font-size: 13px;
  line-height: 1.6;
  overflow-wrap: anywhere;
}
#reuse-prompt {
  min-height: 32px;
  margin: 6px 0 -6px;
  background: none;
  border: 0;
  padding: 0;
  color: var(--muted);
  font: inherit;
  font-size: 11px;
  cursor: pointer;
}
#reuse-prompt:hover {
  color: var(--ink);
}
.models {
  display: grid;
  gap: 6px;
}
.original-prompt[hidden] + .models {
  padding-right: 24px;
}
.models dd {
  color: var(--muted);
  font-size: 11px;
}
@media (prefers-reduced-motion: no-preference) {
  #song-details:not([hidden]) {
    animation: details-arrive 0.16s var(--ease);
  }
  @keyframes details-arrive {
    from {
      opacity: 0;
      transform: translateY(4px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
}

main {
  grid-template-columns: minmax(0, 1fr);
}
.player {
  min-width: 0;
}

.share-copied-glyph,
.share-song[data-copied="true"] .share-link-glyph {
  display: none;
}
.share-song[data-copied="true"] .share-copied-glyph {
  display: block;
}
