.cover-art {
  display: block;
  width: 100%;
  max-width: 220px;
  height: auto;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 14px;
  background: #eee6da;
  margin: 0 0 20px;
}
.cover-thumb {
  width: 42px;
  height: 42px;
  border-radius: 7px;
  object-fit: cover;
  flex-shrink: 0;
}
.album-cover {
  width: 112px;
  margin: 0;
  flex-shrink: 0;
}
.collection-heading > div:not(.group-actions) {
  flex: 1;
}
.group-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}
.collection-heading .group-actions {
  flex: 0 1 250px;
}
.editor-cover {
  max-width: 220px;
  margin: 0 auto 12px;
}
.queue-cover {
  width: 110px;
  margin-bottom: 16px;
}
.listen-cover {
  width: min(58vw, 280px);
  margin: 36px 0 24px;
}
.public-recording {
  display: flow-root;
}
.public-recording > .cover-art {
  width: 150px;
  float: left;
  margin: 0 28px 12px 0;
}
.playlists-section {
  margin-top: 48px;
  border-top: 1px solid var(--line, #dedbd1);
  padding-top: 32px;
}
.playlists-section .collection-heading {
  margin-bottom: 24px;
}
.playlist-preview {
  padding-left: 22px;
  line-height: 1.8;
}
.playlist-card details {
  margin-top: 14px;
}
.art-dialog {
  box-sizing: border-box;
  width: calc(100% - 28px);
  max-width: 580px;
  max-height: calc(100dvh - 32px);
  overflow: auto;
  padding: 30px;
  border: 1px solid #dedbd1;
  border-radius: 22px;
  background: #fffefa;
  color: #292a23;
  box-shadow: 0 24px 100px #221b1930;
}
.art-dialog::backdrop {
  background: #23251fe0;
  backdrop-filter: blur(4px);
}
.art-dialog-heading {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 20px;
}
.art-dialog h2 {
  font-size: 32px;
  margin: 8px 0 12px;
}
.art-dialog .editor-close {
  flex-shrink: 0;
}
.art-dialog p {
  line-height: 1.55;
}
.art-dialog label {
  display: block;
  font-weight: 600;
  margin: 16px 0 8px;
}
.art-dialog input:not([type="range"]),
.art-dialog select {
  box-sizing: border-box;
  width: 100%;
  min-height: 46px;
}
.art-dialog input[type="file"] {
  font-size: 14px;
  padding: 10px;
  background: #f7f3ec;
}
.art-dialog input[type="file"]::file-selector-button {
  border: 0;
  border-radius: 5px;
  padding: 8px 12px;
  background: #813d48;
  color: white;
  margin-right: 10px;
  font: inherit;
}
.art-dialog input[type="range"] {
  display: block;
  width: 100%;
  min-height: 28px;
  accent-color: #813d48;
}
.cover-item-title {
  font-weight: 600;
  margin: 0;
}
.crop-stage {
  display: grid;
  place-items: center;
  margin: 20px auto;
  width: min(100%, 320px);
  background: #eee6da;
  aspect-ratio: 1;
  border-radius: 12px;
  overflow: hidden;
}
.crop-stage img,
.crop-stage canvas {
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  object-fit: cover;
}
.crop-stage canvas {
  touch-action: none;
  cursor: grab;
}
.crop-stage canvas:active {
  cursor: grabbing;
}
.crop-label {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
}
.crop-label output {
  font-size: 13px;
  color: #70766a;
}
.art-dialog-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 24px;
}
.group-editor-cover {
  max-width: 130px;
}
.playlist-members {
  padding: 0;
  list-style: none;
  margin: 20px 0;
}
.playlist-members li {
  display: flex;
  gap: 10px;
  align-items: center;
  border-bottom: 1px solid #e7e2d8;
  padding: 12px 0;
}
.playlist-members li > span {
  flex: 1;
  min-width: 0;
  overflow-wrap: anywhere;
}
.playlist-members li > div {
  display: flex;
  gap: 2px;
  flex-shrink: 0;
}
.playlist-members .quiet {
  padding: 8px;
  min-width: 34px;
}
.delete-playlist-confirmation {
  background: #f4e7e5;
  border-radius: 10px;
  padding: 16px;
  margin-top: 20px;
}
.cover-art[hidden],
.crop-stage [hidden],
.art-dialog [hidden] {
  display: none !important;
}
@media (max-width: 600px) {
  .art-dialog {
    padding: 22px 18px;
    max-height: calc(100dvh - 20px);
  }
  .album-cover {
    width: 80px;
  }
  .collection-heading {
    flex-wrap: wrap;
  }
  .collection-heading .group-actions {
    flex-basis: 100%;
  }
  .public-recording > .cover-art {
    width: 100px;
    margin-right: 18px;
  }
  .playlist-members li {
    flex-wrap: wrap;
  }
  .playlist-members li > div {
    margin-left: auto;
  }
  .playlists-section .collection-heading > div {
    min-width: 190px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .art-dialog {
    scroll-behavior: auto;
  }
}

.art-dialog-heading {
  position: sticky;
  top: 0;
  z-index: 1;
  background: #fffefa;
}
@media (max-width: 600px) {
  .art-dialog input:not([type="range"]):not([type="file"]),
  .art-dialog select {
    font-size: 16px;
  }
  .art-dialog .quiet,
  .art-dialog .button {
    min-height: 44px;
  }
  .playlist-members .quiet {
    min-width: 40px;
  }
}
