.spotifyTopBtn {
  position: relative;
  color: rgba(230, 244, 255, .9);
}

.spotifyTopBtn .spotifyGlyph {
  width: 18px;
  height: 18px;
  fill: currentColor;
  stroke: none;
}

.spotifyTopBtn.isConnected {
  color: #1ed760;
}

.spotifyTopBtn.isUnavailable {
  opacity: .72;
}

.spotifyTopDot {
  position: absolute;
  right: 6px;
  bottom: 5px;
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: #1ed760;
  box-shadow: 0 0 0 2px rgba(7, 27, 39, .9);
}

.spotifyPanel {
  width: min(680px, calc(100vw - 24px));
  max-height: min(760px, calc(100vh - 32px));
  border: 0;
  padding: 0;
  color: #f4fbff;
  background: transparent;
  overflow: visible;
}

.spotifyPanel[open] {
  display: block;
}

.spotifyPanel::backdrop {
  background: rgba(3, 13, 24, .38);
  backdrop-filter: blur(6px);
}

.spotifyPanelCard {
  overflow: hidden;
  border: 1px solid rgba(175, 220, 245, .28);
  border-radius: 16px;
  background:
    linear-gradient(145deg, rgba(20, 46, 66, .98), rgba(18, 72, 79, .94)),
    rgba(15, 45, 64, .96);
  box-shadow: 0 22px 70px rgba(2, 11, 21, .44);
}

.spotifyPanelHead,
.spotifyUserRow,
.spotifyTabs,
.spotifyPlaylistCrumb {
  display: flex;
  align-items: center;
}

.spotifyPanelHead {
  justify-content: space-between;
  padding: 16px 18px;
  border-bottom: 1px solid rgba(202, 233, 255, .16);
}

.spotifyPanelTitle {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.spotifyPanelLogo {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  color: #071b14;
  background: #1ed760;
}

.spotifyPanelLogo svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
}

.spotifyCloseBtn,
.spotifyGhostBtn,
.spotifyBackBtn,
.spotifyTab,
.spotifyPlayBtn,
.spotifyConnectBtn {
  cursor: pointer;
  border: 1px solid rgba(205, 234, 255, .22);
  color: #f4fbff;
  font: inherit;
}

.spotifyCloseBtn {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: rgba(255, 255, 255, .08);
  font-size: 22px;
  line-height: 1;
}

.spotifyDisconnected {
  padding: 20px;
}

.spotifyDisconnected p {
  margin: 0 0 14px;
  color: rgba(234, 246, 255, .78);
  line-height: 1.45;
}

.spotifyConnectBtn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 16px;
  border-radius: 999px;
  color: #082015;
  background: #1ed760;
  font-weight: 900;
  text-decoration: none;
}

.spotifyConnectBtn.isDisabled {
  pointer-events: none;
  opacity: .55;
}

.spotifyConnected {
  padding: 16px;
}

.spotifyUserRow {
  gap: 12px;
  padding: 10px;
  border: 1px solid rgba(205, 234, 255, .14);
  border-radius: 14px;
  background: rgba(255, 255, 255, .06);
}

.spotifyUserAvatarWrap,
.spotifyCover {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: rgba(255, 255, 255, .1);
}

.spotifyUserAvatarWrap {
  width: 42px;
  height: 42px;
  border-radius: 999px;
}

.spotifyUserAvatar,
.spotifyCover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.spotifyUserInitial,
.spotifyCover span {
  font-weight: 900;
}

.spotifyUserCopy {
  min-width: 0;
  flex: 1;
  display: grid;
  gap: 2px;
}

.spotifyUserCopy strong,
.spotifyItemCopy strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.spotifyUserCopy small,
.spotifyItemCopy small,
.spotifyStatus {
  color: rgba(234, 246, 255, .68);
}

.spotifyGhostBtn {
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .08);
  font-weight: 800;
}

.spotifyTabs {
  gap: 8px;
  margin: 14px 0 10px;
}

.spotifyTab {
  min-height: 34px;
  padding: 0 13px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .07);
  font-weight: 850;
}

.spotifyTab.active {
  border-color: rgba(30, 215, 96, .56);
  color: #0b2516;
  background: #1ed760;
}

.spotifyPlaylistCrumb {
  gap: 8px;
  margin: 0 0 10px;
}

.spotifyBackBtn {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .08);
  font-weight: 900;
}

#spotifyPlaylistName {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 900;
}

.spotifyStatus {
  min-height: 20px;
  margin: 4px 0 8px;
  font-size: 12px;
}

.spotifyStatus[data-type="error"] {
  color: #ffb4b4;
}

.spotifyStatus[data-type="success"] {
  color: #73f3a5;
}

.spotifyList {
  display: grid;
  gap: 8px;
  max-height: min(440px, calc(100vh - 290px));
  overflow: auto;
  padding-right: 4px;
}

.spotifyPlaylistItem,
.spotifyTrackItem {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  min-height: 64px;
  border: 1px solid rgba(205, 234, 255, .14);
  border-radius: 12px;
  background: rgba(255, 255, 255, .065);
  color: inherit;
}

.spotifyPlaylistItem {
  width: 100%;
  padding: 8px 10px;
  text-align: left;
}

.spotifyTrackItem {
  padding: 8px 10px;
}

.spotifyPlaylistItem:hover,
.spotifyTrackItem:hover {
  border-color: rgba(30, 215, 96, .38);
  background: rgba(255, 255, 255, .1);
}

.spotifyPlaylistItem.locked,
.spotifyPlaylistItem:disabled {
  cursor: not-allowed;
  opacity: .62;
}

.spotifyPlaylistItem.locked:hover,
.spotifyPlaylistItem:disabled:hover {
  border-color: rgba(255, 185, 185, .24);
  background: rgba(255, 255, 255, .055);
}

.spotifyCover {
  width: 48px;
  height: 48px;
  border-radius: 10px;
}

.spotifyItemCopy {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.spotifyItemCopy small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 12px;
}

.spotifyItemChevron {
  color: rgba(234, 246, 255, .65);
  font-size: 24px;
}

.spotifyPlayBtn {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 999px;
  color: #082015;
  background: #1ed760;
  font-weight: 900;
}

.spotifyPlayBtn:disabled {
  cursor: wait;
  opacity: .65;
}

.spotifyEmpty {
  padding: 18px;
  border: 1px dashed rgba(205, 234, 255, .2);
  border-radius: 12px;
  color: rgba(234, 246, 255, .72);
  text-align: center;
}

@media (max-width: 560px) {
  .spotifyPanel {
    width: calc(100vw - 16px);
  }

  .spotifyConnected,
  .spotifyDisconnected {
    padding: 12px;
  }

  .spotifyPlaylistItem,
  .spotifyTrackItem {
    grid-template-columns: 42px minmax(0, 1fr) auto;
  }

  .spotifyCover {
    width: 42px;
    height: 42px;
  }
}
