/* v8.14.9 — Reserve independent space for duration, lyrics and playback. */
:is(#artistReleases, #genres) .library-song-row {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr) minmax(100px, .35fr) 76px minmax(164px, max-content);
  align-items: center;
  gap: 12px;
}
:is(#artistReleases, #genres) .library-song-copy { min-width: 0; }
:is(#artistReleases, #genres) .library-song-stats {
  flex-wrap: wrap;
  white-space: normal;
}
:is(#artistReleases, #genres) .library-song-duration {
  min-width: 64px;
  white-space: nowrap;
}
:is(#artistReleases, #genres) .library-row-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  min-width: max-content;
}
:is(#artistReleases, #genres) .library-row-actions > * { flex: 0 0 auto; }
:is(#artistReleases, #genres) .library-action.play {
  width: 44px;
  min-width: 44px;
  height: 44px;
  min-height: 44px;
  padding: 0;
  display: grid;
  place-items: center;
  border-radius: 50%;
}
@media (max-width: 820px) {
  /* Give actions a separate line so long titles cannot squeeze the controls. */
  :is(#artistReleases, #genres) .library-song-row {
    grid-template-columns: 50px minmax(0, 1fr) !important;
    grid-template-rows: auto auto auto !important;
    gap: 6px 10px !important;
    padding: 10px !important;
  }
  :is(#artistReleases, #genres) .library-song-cover {
    grid-column: 1 !important;
    grid-row: 1 / span 2 !important;
    width: 50px !important;
    min-width: 50px !important;
    height: 50px !important;
    padding: 0;
    background-size: cover;
    background-position: center;
    border-radius: 8px;
  }
  :is(#artistReleases, #genres) .library-song-copy {
    grid-column: 2 !important;
    grid-row: 1 !important;
  }
  :is(#artistReleases, #genres) .library-song-stats {
    grid-column: 2 !important;
    grid-row: 2 !important;
    display: flex;
    flex-wrap: wrap !important;
    white-space: normal !important;
    gap: 6px;
  }
  :is(#artistReleases, #genres) .library-song-duration {
    grid-column: 1 !important;
    grid-row: 3 !important;
    display: flex !important;
    flex-direction: column;
    align-items: center;
    min-width: 0;
  }
  :is(#artistReleases, #genres) .library-row-actions {
    grid-column: 2 !important;
    grid-row: 3 !important;
    justify-self: end !important;
  }
  :is(#artistReleases, #genres) .library-action.play {
    width: 44px !important;
    min-width: 44px !important;
    height: 44px !important;
    min-height: 44px !important;
  }
}
