:root {
  color-scheme: light;
  color: #211d29;
  background: #f8f7fa;
  --muted: #625b6d;
  --accent: #6535af;
  --line: #25143821;
  --surface: #faf9fc;
  --sidebar-width: 216px;
  --player-ink: #292136;
}
.profile-music-body .queue-row { gap: 12px; }
.profile-device { max-width: 40%; font-size: 12px; text-align: right; }
.profile-music-body .queue-song { min-height: 48px; }
body::before {
  display: none;
}
.library-sidebar {
  display: none;
}
.compact-ui .app-header {
  background: #f8f7faed;
  border-bottom: 1px solid var(--line);
}
.brand svg,
.header-control,
.icon-button,
.search > span,
.search-clear {
  color: var(--accent);
}
.header-control {
  background: #efebf4;
  border-color: #55506b20;
}
.secondary-nav,
dialog:not(.now-playing-view) {
  color: #211d29;
  background: #fbfaff;
  border-color: var(--line);
  box-shadow: 0 18px 60px #28183231;
}
.nav-item,
.logout {
  color: #50495c;
}
.nav-item.selected,
.library-modes button[aria-pressed="true"] {
  color: #53278d;
  background: #e9def7;
}
.pending-count {
  background: #e9def7;
  color: #53278d;
}
.compact-ui main {
  padding-bottom: 120px;
}
.compact-ui .toolbar,
.compact-ui .explore-form {
  background: #f8f7faf5;
}
.search,
.dialog-content input {
  color: #211d29;
  background: #efedf3;
  border-color: var(--line);
}
.search input::placeholder {
  color: #71697a;
}
.dialog-content label {
  color: #51485e;
}
.notice,
.import-issue {
  color: #58404c;
  background: #f4e8ec;
}
.dialog-content .form-error,
.form-error {
  color: #a2244b;
}
.track-row,
.track-row.is-current {
  border-color: var(--line);
}
.track-row.is-current {
  background: #eee6f8;
}
.track-row.is-current .track-title,
.track-row.is-current .row-play {
  color: #4e2589;
}
.compact-ui .track-menu-content,
.search-suggestions {
  background: #fcfaff;
  color: #2c2635;
  border-color: var(--line);
  box-shadow: 0 12px 26px #30253e26;
}
.track-menu-content > :is(button, a):is(:active, :focus-visible) {
  background: #6b4b9a15;
}
@media (hover: hover) and (pointer: fine) {
  .track-menu-content > :is(button, a):hover {
    background: #6b4b9a15;
  }
}
.source-badge,
.saved-status {
  color: #563b78;
}
.primary {
  background: #6535af;
  color: #fff;
}
.note-tile {
  background: #e7deef;
  color: #67498c;
}
.library-modes {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-block: 6px 18px;
  padding-bottom: 13px;
  border-bottom: 1px solid var(--line);
}
.library-modes button {
  border-radius: 24px;
  padding: 8px 17px;
  min-height: 42px;
  font-weight: 600;
}
.library-gallery h2 {
  font-size: 23px;
  letter-spacing: -0.035em;
  margin: 0 0 15px;
}
.album-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 21px;
}
.album-tile {
  min-width: 0;
  padding: 0;
  text-align: left;
}
.album-tile strong,
.album-tile > span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.album-tile strong {
  margin-top: 8px;
  font-size: 15px;
}
.album-tile > span {
  color: var(--muted);
  font-size: 13px;
}
.album-art {
  width: 100%;
  aspect-ratio: 1;
  border: 0;
  border-radius: 12px;
}
.album-art.artist-art {
  border-radius: 50%;
}
.listening-dock {
  bottom: calc(16px + env(safe-area-inset-bottom));
  border: 1px solid #8b7f9b4d;
  border-radius: 23px;
  background: #fbf9fbe8;
  box-shadow:
    0 8px 33px #2c1b4030,
    inset 0 1px 1px #fff;
  backdrop-filter: blur(24px) saturate(125%);
  color: var(--player-ink);
}
.compact-ui .listening-dock .player {
  min-height: 78px;
  padding: 8px 19px 8px 91px;
  gap: 19px;
  transition: none;
}
.compact-ui .listening-dock .player-art {
  width: 74px;
  transition: none;
}
.playing-mode,
#playing-artist,
.timeline span {
  color: #61566f;
}
.player .icon-button,
.player .play-main {
  border: 0;
  background: transparent;
  color: inherit;
}
.player .play-main {
  width: 48px;
  height: 48px;
}
.player .transport .icon-button {
  width: 44px;
  height: 44px;
}
.player .transport {
  gap: 8px;
}
.player .playback {
  gap: 0;
}
#open-queue[aria-pressed="true"] {
  background: #6535af1b;
}
#seek::-webkit-slider-runnable-track {
  background: linear-gradient(
    90deg,
    var(--accent) var(--progress),
    #91859f4d var(--progress)
  );
}
#seek::-moz-range-track {
  background: linear-gradient(
    90deg,
    var(--accent) var(--progress),
    #91859f4d var(--progress)
  );
}
#seek::-webkit-slider-thumb {
  background: var(--accent);
}
#seek::-moz-range-thumb {
  background: var(--accent);
}
.toast {
  bottom: calc(104px + env(safe-area-inset-bottom));
}
.now-playing-open {
  overflow: hidden;
}
dialog.now-playing-view {
  inset: 0;
  width: 100%;
  height: 100dvh;
  max-width: none;
  max-height: none;
  border: 0;
  border-radius: 0;
  margin: 0;
  overflow: hidden;
  background: transparent;
  box-shadow: none;
  color: #f3faff;
}
.now-playing-view::backdrop {
  background: transparent;
  backdrop-filter: none;
}
.now-sheet {
  --accent: #d3edf5;
  --muted: #c4d7e0;
  position: relative;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: env(safe-area-inset-top) max(22px, env(safe-area-inset-right))
    env(safe-area-inset-bottom) max(22px, env(safe-area-inset-left));
  background: radial-gradient(
    ellipse at 47% 20%,
    var(--cover-tint, #1d4a5e),
    #0f2837 72%,
    #0e2734
  );
}
.close-player {
  width: 104px;
  height: 44px;
  flex: none;
  display: grid;
  place-items: center;
  color: #d4e3ea;
  touch-action: none;
}
.close-player::before {
  content: "";
  width: 34px;
  height: 5px;
  border-radius: 5px;
  background: #dceffa72;
}
.close-player svg {
  display: none;
}
.close-player:focus-visible svg {
  display: block;
}
.close-player:focus-visible::before {
  display: none;
}
.now-stage {
  position: relative;
  width: min(100%, 390px);
  flex: 1;
  min-height: 0;
  display: grid;
  place-items: center;
}
#now-cover {
  width: min(100%, 360px, max(112px, calc(100dvh - 295px)));
  height: auto;
  aspect-ratio: 1;
  border: 0;
  border-radius: 19px;
  box-shadow: 0 14px 45px #0004;
}
#now-controls {
  width: min(100%, 390px);
  flex: none;
}
.compact-ui #now-controls .player {
  padding: 9px 0 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-height: 0;
  color: #f3faff;
  transition: none;
}
#now-controls .now-playing {
  width: 100%;
  min-height: 68px;
  justify-content: start;
}
#now-controls .player-art {
  display: none;
}
#now-controls .now-text {
  width: 100%;
}
#now-controls #playing-title {
  font-size: clamp(20px, 5.7vw, 28px);
  letter-spacing: -0.04em;
}
#now-controls #playing-artist {
  font-size: 16px;
}
#now-controls :is(#playing-artist, .playing-mode, .timeline span) {
  color: #c8e0ea;
}
#now-controls .playback {
  width: 100%;
  display: grid;
  grid-template-rows: 29px 96px;
}
#now-controls .timeline {
  grid-row: 1;
}
#now-controls .transport {
  grid-row: 2;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: 53px 38px;
  align-items: center;
  justify-items: center;
  gap: 3px 0;
}
#now-controls .transport button {
  display: grid;
  place-items: center;
}
#now-controls .transport svg {
  width: 31px;
  height: 31px;
}
#now-controls #open-queue {
  grid-column: 2;
  grid-row: 2;
}
#now-controls #open-lyrics {
  grid-column: 1;
  grid-row: 2;
}
#now-controls :is(#open-queue, #open-lyrics) svg {
  width: 22px;
  height: 22px;
}
#now-controls :is(#open-queue, #open-lyrics)[aria-pressed="true"] {
  background: #e5f8ff25;
}
#now-lyrics {
  display: flex;
  flex-direction: column;
  width: 100%;
  min-height: 0;
  height: 100%;
  gap: 6px;
}
.lyrics-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 44px;
}
.lyrics-heading h2 {
  margin: 0;
  font-size: 18px;
  font-weight: 650;
}
.lyrics-follow,
.lyrics-retry {
  min-height: 44px;
  padding-inline: 12px;
  border-radius: 20px;
  color: #eefaff;
  background: #e5f8ff25;
  font-weight: 600;
}
.lyrics-retry {
  align-self: start;
}
.lyrics-status {
  color: #c8e0ea;
  margin: 0 0 4px;
}
.lyrics-status:empty {
  display: none;
}
.lyrics-scroll {
  min-height: 0;
  overflow: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
}
.lyrics-scroll:focus-visible {
  outline-offset: -2px;
}
.lyrics-lines {
  display: grid;
  padding: 9px 10px 38dvh 0;
}
.lyric-line,
.lyrics-plain {
  color: #c1d6e0;
  font-size: clamp(22px, 5vw, 35px);
  line-height: 1.25;
  font-weight: 650;
  letter-spacing: -0.025em;
  text-align: start;
  overflow-wrap: anywhere;
  white-space: pre-line;
}
.lyric-line {
  min-height: 46px;
  padding: 9px 4px;
  border-radius: 8px;
  transition: color 160ms var(--ease);
}
.lyric-line[aria-current="true"] {
  color: #fff;
}
.lyric-break {
  height: 22px;
}
.lyrics-plain {
  margin: 10px 4px;
}
#now-lyrics :is(button, .lyrics-scroll):focus-visible {
  outline-color: #e0f6ff;
}
@media (hover: hover) and (pointer: fine) {
  .lyric-line:hover {
    background: #e5f8ff13;
  }
}
@media (prefers-reduced-motion: reduce) {
  .lyric-line {
    transition: none;
  }
}
#now-controls .player-tools {
  display: none;
}
#now-queue {
  width: 100%;
  height: 100%;
  min-height: 0;
  overflow: auto;
  overscroll-behavior: contain;
  padding: 4px 2px 12px;
}
#now-queue .queue-song {
  color: #f3faff;
}
#now-queue .queue-actions {
  background: #173b4d;
}
#now-queue .queue-row-options .icon-button {
  color: #c8e0ea;
}
#now-queue .queue-settings button[aria-pressed="true"] {
  color: #0c2935;
  background: #d3edf5;
}
#now-queue .queue-feedback {
  background: #183a49;
}
#now-toast .toast {
  bottom: calc(105px + env(safe-area-inset-bottom));
}
.flying-cover {
  position: absolute;
  object-fit: cover;
  z-index: 3;
  pointer-events: none;
  transform-origin: top left;
  border-radius: 14px;
}
dialog.queue-panel {
  position: fixed;
  inset: auto 20px calc(105px + env(safe-area-inset-bottom)) auto;
  margin: 0;
  width: min(405px, calc(100% - 40px));
  max-height: min(680px, calc(100dvh - 140px));
  border-radius: 20px;
  z-index: 8;
  overscroll-behavior: contain;
}
.queue-panel .dialog-content {
  padding: 20px;
}
.queue-panel .dialog-content h2 {
  margin: 0 50px 15px 0;
}
.queue-body .queue-current {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 9px;
}
.queue-body .queue-current p {
  margin: 0;
  font-weight: 650;
}
.queue-current-art {
  width: 48px;
  height: 48px;
  flex: none;
}
.queue-song-art {
  width: 42px;
  height: 42px;
  flex: none;
  grid-row: span 2;
}
.queue-body .queue-song {
  grid-template-columns: auto minmax(0, 1fr);
  grid-template-rows: auto auto;
  align-items: center;
  column-gap: 11px;
}
.queue-body .queue-song .muted {
  grid-column: 2;
}
.queue-body .queue-settings {
  gap: 4px 7px;
}
.queue-body .queue-settings button {
  min-height: 44px;
  padding-inline: 11px;
  border-radius: 16px;
}
.queue-body .queue-settings button[aria-pressed="true"] {
  color: #4e2589;
  background: #e6d6f8;
}
.queue-body .queue-settings #queue-auto {
  font-size: 24px;
  min-width: 44px;
}
.queue-body .queue-preload {
  margin: 0;
  min-height: 0;
}
.queue-body .queue-list {
  margin: 5px 0;
}
.queue-body .queue-row.gesture-row {
  position: relative;
  display: block;
  padding: 0;
  border-color: var(--line);
}
.queue-row-front {
  position: relative;
  display: flex;
  align-items: center;
  gap: 4px;
  min-height: 54px;
  touch-action: pan-y;
  transition: transform 180ms var(--ease);
}
.gesture-row.swiping .queue-row-front,
.gesture-row.reordering .queue-row-front {
  transition: none;
}
.gesture-row.reordering {
  z-index: 2;
}
.gesture-row.reordering .queue-row-front {
  background: var(--surface);
  box-shadow: 0 7px 23px #14102038;
  border-radius: 9px;
}
#now-queue .gesture-row.reordering .queue-row-front {
  background: #244b5e;
}
.queue-grip {
  width: 44px;
  height: 44px;
  cursor: grab;
  touch-action: none;
  list-style: none;
  color: var(--muted);
  font-size: 20px;
}
.queue-grip::-webkit-details-marker {
  display: none;
}
.queue-row-options[open] {
  flex: none;
}
.queue-row-options .queue-actions {
  background: #eee8f5;
  border-radius: 9px;
  gap: 0;
}
.queue-row-options .queue-actions button {
  width: 38px;
  min-width: 38px;
  height: 44px;
  padding: 0;
}
.queue-swipe-remove {
  position: absolute;
  inset: 4px 0 4px auto;
  width: 80px;
  border-radius: 9px;
  background: #ab354f;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
}
.queue-feedback {
  display: flex;
  align-items: center;
  gap: 8px;
  position: sticky;
  z-index: 3;
  bottom: 0;
  min-height: 42px;
  background: #ede5f6;
  border-radius: 10px;
  padding-inline: 10px;
  font-size: 13px;
}
.queue-feedback:has(span:empty) {
  display: none;
}
.queue-feedback button {
  margin-left: auto;
  min-height: 44px;
}
.queue-body .queue-recommendations {
  margin-top: 12px;
  padding-top: 8px;
  border-top-color: var(--line);
}
#now-queue .queue-body {
  --line: #e9faff24;
}
#now-queue .queue-current-art,
#now-queue .queue-song-art {
  background: #345567;
  color: #c4dee9;
}
@media (hover: hover) and (pointer: fine) {
  .album-tile:hover .album-art {
    filter: brightness(0.93);
  }
  .nav-item:hover:not(.selected, :disabled),
  .queue-grip:hover,
  .header-control:hover {
    background: #6b4b9a15;
  }
}
@media (min-width: 900px) {
  .library-sidebar {
    display: flex;
    flex-direction: column;
    gap: 30px;
    position: fixed;
    left: 0;
    top: 0;
    bottom: 0;
    width: var(--sidebar-width);
    padding: 24px 15px;
    border-right: 1px solid var(--line);
    background: #efedf4;
  }
  .library-sidebar .brand {
    padding-left: 7px;
  }
  .library-nav {
    display: grid;
    gap: 4px;
  }
  .app-header {
    margin-left: var(--sidebar-width);
    justify-content: end;
  }
  .app-header .brand {
    display: none;
  }
  .compact-ui main {
    margin-left: var(--sidebar-width);
    margin-right: 0;
    max-width: none;
    padding-inline: clamp(24px, 4vw, 64px);
  }
  .listening-dock {
    left: calc((100% + var(--sidebar-width)) / 2);
    width: min(1110px, calc(100% - var(--sidebar-width) - 52px));
  }
  .now-playing-open .app-header {
    margin-left: var(--sidebar-width);
  }
}
@media (max-width: 640px) {
  .album-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
  }
  .compact-ui .listening-dock .player {
    grid-template-columns: minmax(0, 1fr) 132px;
    min-height: 64px;
    padding: 5px 8px 5px 73px;
    gap: 4px;
  }
  .compact-ui .listening-dock .player-art {
    width: 64px;
  }
  .listening-dock .timeline,
  .listening-dock .player-tools,
  .listening-dock #previous,
  .listening-dock .playing-mode {
    display: none;
  }
  .listening-dock .transport {
    gap: 0;
  }
  .listening-dock .player .play-main {
    width: 44px;
    height: 44px;
  }
  .listening-dock #playing-title {
    font-size: 14px;
  }
  .library-modes button {
    padding-inline: 13px;
  }
}
@media (max-width: 340px) {
  .compact-ui .listening-dock .player {
    padding-left: 61px;
  }
  .compact-ui .listening-dock .player-art {
    width: 55px;
  }
}
@media (prefers-reduced-transparency: reduce) {
  .listening-dock,
  .compact-ui .app-header {
    background: #fbf9fc;
    backdrop-filter: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  .queue-row-front {
    transition: none;
  }
}
.search input {
  color: #211d29;
}
select,
.search-clear {
  background: #ebe5f1;
}
.search-clear,
.results-caption,
.entity-text > span,
.table-heading {
  color: #625b6d;
}
.search-kinds button[aria-pressed="true"] {
  color: #53278d;
  background: #efe5f8;
  border-color: #d9c8ef;
}
.status.pending {
  color: #60368a;
}
.status.failed {
  color: #a2244b;
}
.queue-inline-title {
  display: none;
}
#now-queue .queue-inline-title {
  display: block;
  margin: 0 auto 0 0;
  font-size: 21px;
  letter-spacing: -0.03em;
}
#now-queue .queue-settings:has(.queue-inline-title) {
  margin-block: 6px 2px;
}
#now-queue .queue-current {
  margin-bottom: 0;
}
@media (min-width: 900px) {
  .compact-ui[data-page-view="library"]:not(.is-searching) main {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(270px, 34%);
    column-gap: 18px;
    align-items: start;
  }
  .compact-ui[data-page-view="library"]:not(.is-searching) main > * {
    grid-column: 1 / -1;
  }
  .compact-ui[data-page-view="library"]:not(.is-searching) .library-heading {
    grid-column: 1;
  }
  .compact-ui[data-page-view="library"]:not(.is-searching) .toolbar {
    grid-column: 2;
    grid-row: 1;
    padding: 0;
    position: static;
    background: transparent;
  }
}
