:root {
  color-scheme: dark;
  --bg: #0d1524;
  --panel: #151f30;
  --panel2: #1a2639;
  --line: #253146;
  --text: #e8edf6;
  --muted: #8c9aaf;
  --blue: #5a8fff;
  --purple: #8678f8;
  --player: 100px;
  --sidebar: 236px;
  font-family: Verdana, Geneva, sans-serif;
  font-size: 16px;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
}
button,
input,
select {
  font: inherit;
}
button,
a,
input,
select {
  -webkit-tap-highlight-color: transparent;
}
button {
  cursor: pointer;
}
button,
a {
  touch-action: manipulation;
  transition:
    background-color 180ms ease,
    color 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease,
    transform 180ms ease;
}
button {
  color: inherit;
  border: 0;
  background: none;
}
a {
  color: inherit;
  text-decoration: none;
}
a:hover {
  text-decoration: none;
}
button:disabled {
  opacity: 0.4;
  cursor: default;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
}
[hidden] {
  display: none !important;
}
svg {
  width: 19px;
  height: 19px;
  display: block;
  flex-shrink: 0;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.icon-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  color: var(--muted);
  flex-shrink: 0;
}
.icon-button:hover {
  background: #ffffff0a;
  color: var(--text);
}
.icon-button.active {
  color: var(--blue);
}
.shell {
  display: grid;
  grid-template-columns: var(--sidebar) minmax(0, 1fr);
  height: 100dvh;
  padding-bottom: var(--player);
}
.sidebar {
  background: #131d2d;
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  min-height: 0;
  padding: 25px 15px 0;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.6429rem;
  font-weight: 750;
  letter-spacing: -1px;
  padding: 0 8px;
}
.brand-mark {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(140deg, #7785ff, #466ce8);
  width: 36px;
  height: 36px;
  border-radius: 11px;
  color: white;
  font-size: 1.7857rem;
  box-shadow: 0 4px 22px #526bff20;
}
.brand-light {
  font-weight: 400;
  color: #c0c9d9;
  margin-left: 3px;
}
.brand small {
  display: block;
  letter-spacing: 1.6px;
  font-size: 0.5rem;
  color: #8190aa;
  margin-top: 5px;
}
.add-music {
  margin: 28px 5px 22px;
  background: #253753;
  color: #e3eaff;
  border: 1px solid #395076;
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: center;
  padding: 11px;
  border-radius: 8px;
  font-weight: 600;
}
.add-music:hover {
  background: #30486d;
}
.sidebar-scroll {
  overflow: auto;
  min-height: 0;
  flex: 1;
  scrollbar-width: thin;
  scrollbar-color: #2d3a50 transparent;
}
.section-label,
.sidebar-heading {
  font-size: 0.7143rem;
  color: #6f819e;
  font-weight: 650;
  letter-spacing: 1.5px;
}
.section-label {
  margin: 0 14px 10px;
}
nav a {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 11px 13px;
  border-radius: 7px;
  color: #a2b0c4;
  margin: 2px 0;
  font-size: 0.9286rem;
}
nav a:hover {
  background: #1c2940;
  color: white;
}
nav a.active {
  background: #233a64;
  color: #a7c6ff;
}
nav a.active svg {
  color: #77a2ff;
}
.nav-count {
  margin-left: auto;
  background: #ffffff0b;
  padding: 2px 6px;
  font-size: 0.7143rem;
  border-radius: 4px;
}
.sidebar-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 22px 11px 8px;
}
.sidebar-heading .icon-button {
  width: 24px;
  height: 24px;
}
.sidebar-heading svg {
  width: 15px;
  height: 15px;
}
.playlist-link,
.folder-summary {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 0.8571rem;
  padding: 9px 12px;
  color: #9eadc2;
  border-radius: 6px;
}
.playlist-link:hover,
.playlist-link.active,
.folder-summary:hover {
  background: #ffffff07;
  color: white;
}
.playlist-link svg,
.folder-summary svg {
  width: 16px;
  height: 16px;
}
.folder-summary {
  cursor: pointer;
  list-style: none;
}
.folder-summary::-webkit-details-marker {
  display: none;
}
.folder-contents {
  padding-left: 12px;
  border-left: 1px solid var(--line);
  margin-left: 18px;
}
.sidebar-bottom {
  border-top: 1px solid var(--line);
  padding: 12px 8px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.sidebar-bottom a {
  display: flex;
  gap: 9px;
  align-items: center;
  color: var(--muted);
  font-size: 0.8571rem;
}
.sidebar-bottom a svg {
  width: 16px;
}
main {
  min-width: 0;
  overflow: auto;
  scrollbar-color: #2d3a50 transparent;
}
.topbar {
  height: 82px;
  display: flex;
  gap: 22px;
  align-items: center;
  padding: 0 35px;
  border-bottom: 1px solid #1c283a;
  position: sticky;
  top: 0;
  background: #0d1524f5;
  z-index: 3;
}
.history-buttons {
  display: flex;
  gap: 5px;
}
.history-buttons .icon-button {
  background: #172235;
  width: 29px;
  height: 29px;
}
.search {
  display: flex;
  align-items: center;
  gap: 11px;
  background: #182337;
  border: 1px solid #26344d;
  border-radius: 8px;
  padding: 10px 12px;
  width: min(420px, 55%);
  color: #8393ab;
}
.search input {
  border: 0;
  background: none;
  outline: 0;
  color: var(--text);
  width: 100%;
  min-width: 0;
  font-size: 0.8571rem;
}
.search kbd {
  background: #26334b;
  padding: 1px 5px;
  border-radius: 3px;
  font-size: 0.8571rem;
}
.account {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.8571rem;
  color: #aebbd0;
}
.account svg {
  width: 13px;
}
.avatar {
  width: 30px;
  height: 30px;
  background: #29354c;
  border: 1px solid #3a4963;
  display: grid;
  place-items: center;
  border-radius: 50%;
  font-size: 0.7857rem;
  color: #c7d2e8;
}
#menu-button {
  display: none;
}
.content {
  padding: 34px 40px 24px;
  max-width: 1800px;
  margin: auto;
}
.view-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}
.eyebrow {
  font-size: 0.6429rem;
  font-weight: 650;
  letter-spacing: 2.2px;
  color: #6e83a3;
  margin: 0 0 10px;
}
h1 {
  font-size: 2.1429rem;
  letter-spacing: -0.9px;
  margin: 0 0 9px;
  font-weight: 650;
}
h2 {
  font-size: 1.5rem;
  letter-spacing: -0.5px;
  margin: 0;
}
.muted {
  color: var(--muted);
  font-size: 0.8571rem;
}
.view-heading p:last-child {
  margin: 0;
}
.heading-actions {
  display: flex;
  gap: 7px;
}
.primary,
.soft,
.danger {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  justify-content: center;
  padding: 9px 14px;
  border-radius: 7px;
  font-size: 0.8571rem;
  font-weight: 550;
}
.primary {
  background: #628dff;
  color: #071329;
}
.primary:hover {
  background: #80a2ff;
}
.soft {
  border: 1px solid #304059;
  background: #172339;
  color: #afbed4;
}
.soft:hover {
  background: #23324a;
}
.danger {
  background: #572936;
  color: #ffc0ca;
}
.primary svg,
.soft svg {
  width: 15px;
  height: 15px;
}
.library-toolbar {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  margin-bottom: 17px;
}
.toolbar-left,
.toolbar-right {
  display: flex;
  gap: 11px;
  align-items: center;
}
.divider {
  height: 20px;
  width: 1px;
  background: var(--line);
  margin: 0 4px;
}
.sort-label {
  display: flex;
  align-items: center;
  color: #a5b3c8;
  gap: 8px;
}
.sort-label svg {
  width: 15px;
}
.sort-label select {
  color: inherit;
  background: transparent;
  border: 0;
  font-size: 0.7857rem;
  max-width: 145px;
}
.sort-label option {
  background: var(--panel);
}
.order-actions {
  display: flex;
  gap: 7px;
}
.order-actions button {
  white-space: nowrap;
}
.track-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}
.track-table th {
  height: 37px;
  border-bottom: 1px solid var(--line);
  color: #71829d;
  text-align: left;
  font-size: 0.6429rem;
  font-weight: 550;
  letter-spacing: 1px;
}
.column-sort {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 0;
  color: inherit;
  font: inherit;
  letter-spacing: inherit;
  text-align: left;
}
.column-sort:hover,
th[aria-sort="ascending"] .column-sort,
th[aria-sort="descending"] .column-sort {
  color: #a9c7ff;
}
.sort-arrow {
  font-size: .65rem;
  letter-spacing: 0;
}
.track-table td {
  height: 64px;
  border-bottom: 1px solid #1a2536;
  font-size: 0.8571rem;
  color: #8294af;
  transition: background-color 180ms ease;
}
.track-table tr:hover td {
  background: #141f31;
}
.track-table tr.current td {
  background: #16253d;
}
.track-table tr.is-selected td {
  background: #1d304e;
}
.track-table tr.context-target td {
  background: #233b61;
}
.track-table tr[draggable="true"] {
  cursor: grab;
}
.track-table tr.dragging {
  opacity: .45;
}
.track-table tr.drop-before td {
  box-shadow: inset 0 3px var(--blue);
}
.track-table tr.drop-after td {
  box-shadow: inset 0 -3px var(--blue);
}
.track-table th.check-col {
  width: 30px;
}
.track-table th.title-col {
  width: 47%;
}
.track-table th.duration-col {
  width: 70px;
}
.track-table th.plays-col {
  width: 65px;
}
.track-table th.action-col {
  width: 90px;
}
.track-table th.artist-col {
  width: auto;
}
.track-table input[type="checkbox"] {
  accent-color: var(--blue);
  width: 13px;
  height: 13px;
  cursor: pointer;
}
.track-cell {
  display: flex;
  align-items: center;
  gap: 13px;
  min-width: 0;
  padding-right: 12px;
}
.track-cover {
  background: #23304a;
  width: 42px;
  height: 42px;
  border-radius: 5px;
  flex-shrink: 0;
  overflow: hidden;
  display: grid;
  place-items: center;
  color: #647da7;
  position: relative;
}
.track-cover img,
.now-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.track-cover .row-play {
  position: absolute;
  inset: 0;
  background: #0008;
  display: flex;
  opacity: 0;
  color: white;
  align-items: center;
  justify-content: center;
}
.track-cover:hover .row-play,
.current .track-cover .row-play {
  opacity: 1;
}
.track-info {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.track-title {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #ced7e7;
  font-weight: 500;
  text-align: left;
  padding: 0;
  font-size: 0.8571rem;
}
.current .track-title {
  color: #8bb2ff;
}
.track-subtitle {
  font-size: 0.7143rem;
  color: #697f9f;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.artist-link {
  display: block;
  max-width: 100%;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  color: #8598b7;
}
.row-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 1px;
}
.row-actions .icon-button {
  width: 28px;
}
.row-actions .icon-button svg {
  width: 15px;
  height: 15px;
}
.row-actions .starred,
#now-favorite.active {
  color: #f0526b;
}
.row-tag {
  display: inline-block;
  font-size: 0.6429rem;
  color: #9ab0d3;
  border: 1px solid #34435b;
  border-radius: 4px;
  padding: 2px 5px;
  margin-right: 4px;
  margin-top: 2px;
}
.library-footnote {
  display: flex;
  align-items: center;
  gap: 7px;
  color: #657792;
  font-size: 0.6429rem;
  padding-top: 24px;
}
.library-footnote > span:last-child {
  margin-left: auto;
}
.status-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #65b5a2;
}
.empty-state {
  min-height: 320px;
  border: 1px dashed #293a54;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  text-align: center;
  padding: 40px 20px;
  color: #8c9aaf;
}
.empty-icon {
  width: 62px;
  height: 62px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: #1b2941;
  color: #729cf6;
  margin-bottom: 20px;
}
.empty-icon svg {
  width: 29px;
  height: 29px;
}
.empty-state h2 {
  color: #d6dfec;
  font-size: 1.5714rem;
}
.empty-state p {
  max-width: 390px;
  line-height: 1.7;
  font-size: 0.8571rem;
  margin: 13px 0 20px;
}
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
}
.library-card {
  border: 1px solid #26334a;
  border-radius: 10px;
  padding: 19px;
  background: #131f31;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.library-card:hover {
  background: #192840;
  border-color: #3a4d6d;
  transform: translateY(-2px);
}
.card-icon {
  width: 46px;
  height: 46px;
  background: #243655;
  border-radius: 11px;
  display: grid;
  place-items: center;
  color: #8caafa;
}
.library-card strong {
  font-size: 1rem;
}
.library-card small {
  font-size: 0.7857rem;
  color: var(--muted);
}
.card-actions {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-top: 3px;
}
.selection-bar {
  display: flex;
  align-items: center;
  gap: 13px;
  background: #20365b;
  border: 1px solid #426392;
  border-radius: 7px;
  font-size: 0.7857rem;
  padding: 9px 12px;
  margin-bottom: 12px;
}
.selection-bar button {
  color: #b7d1ff;
  font-size: 0.7857rem;
}
.selection-bar button:last-child {
  margin-left: auto;
}
.player {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: var(--player);
  z-index: 6;
  background: #172234;
  border-top: 1px solid #2b3950;
  display: grid;
  grid-template-columns: minmax(200px, 1fr) minmax(250px, 1.4fr) minmax(
      150px,
      0.8fr
    );
  align-items: center;
  gap: 30px;
  padding: 14px 23px;
  padding-bottom: max(14px, env(safe-area-inset-bottom));
}
.now-playing {
  display: flex;
  align-items: center;
  gap: 13px;
  min-width: 0;
}
.now-cover {
  width: 55px;
  height: 55px;
  display: grid;
  place-items: center;
  color: #7084a6;
  background: #26334b;
  border-radius: 7px;
  overflow: hidden;
  flex-shrink: 0;
}
.now-text {
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-width: 0;
}
.now-text strong,
.now-text span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.now-text strong {
  font-size: 0.7857rem;
  font-weight: 600;
}
.now-text span {
  font-size: 0.7143rem;
  color: #9bacbf;
}
.now-text small {
  font-size: 0.6429rem;
  color: #667b9b;
}
.now-playing > .icon-button {
  margin-left: auto;
}
.player-center {
  width: 100%;
  max-width: 630px;
  justify-self: center;
}
.transport {
  display: flex;
  gap: 18px;
  align-items: center;
  justify-content: center;
  margin-bottom: 8px;
}
.transport .icon-button {
  width: 25px;
  height: 25px;
}
.transport .icon-button svg {
  width: 17px;
  height: 17px;
}
#repeat-button {
  position: relative;
}
.repeat-one {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  font-size: 8px;
  font-weight: 700;
  line-height: 1;
}
.play-button {
  height: 32px;
  width: 32px;
  border: 1px solid #59749d;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #a5bfff;
  background: #263b5a;
}
.play-button svg {
  width: 17px;
  height: 17px;
}
.timeline {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #7188a9;
  font-size: 0.6429rem;
}
.timeline input {
  flex: 1;
  min-width: 0;
}
.player input[type="range"] {
  appearance: none;
  background: #2b3e5a;
  height: 3px;
  border-radius: 4px;
  cursor: pointer;
}
.player input[type="range"]::-webkit-slider-thumb {
  appearance: none;
  width: 9px;
  height: 9px;
  background: #85a7fc;
  border-radius: 50%;
}
.player input[type="range"]::-moz-range-thumb {
  width: 9px;
  height: 9px;
  border: 0;
  background: #85a7fc;
  border-radius: 50%;
}
.player-tools {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 13px;
  color: #8294b0;
}
.player-tools input {
  width: 75px;
}
.player-tools > svg {
  width: 17px;
}
.queue-panel {
  position: fixed;
  right: 0;
  bottom: var(--player);
  top: 82px;
  width: 340px;
  max-width: 100%;
  z-index: 5;
  background: #152135;
  border-left: 1px solid #34445f;
  padding: 22px;
  overflow: auto;
  box-shadow: -20px 0 50px #0004;
}
.panel-heading {
  display: flex;
  justify-content: space-between;
  margin-bottom: 22px;
}
.queue-item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 12px 4px;
  border-bottom: 1px solid var(--line);
  text-align: left;
}
.queue-item.active {
  color: var(--blue);
}
.queue-item span {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 0.7857rem;
}
.queue-panel > .soft {
  margin-top: 20px;
}
.auth-screen {
  min-height: 100dvh;
  display: grid;
  place-items: center;
  padding: 22px;
  background: radial-gradient(ellipse at 50% 10%, #25355955, transparent 65%);
}
.auth-card {
  width: 100%;
  max-width: 420px;
  padding: 35px;
  border: 1px solid #2b3c56;
  background: #141f31;
  border-radius: 16px;
  box-shadow: 0 35px 100px #0003;
}
.auth-card > .brand-mark {
  width: 48px;
  height: 48px;
  margin-bottom: 28px;
}
.auth-card h1 {
  font-size: 1.9286rem;
}
.auth-card > p:not(.eyebrow):not(.error) {
  font-size: 0.8571rem;
  line-height: 1.7;
  color: var(--muted);
  margin-bottom: 25px;
}
.auth-card label,
.form-grid label {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 0.7857rem;
  color: #aebcd1;
  margin: 16px 0;
}
.auth-card input,
.form-grid input,
.form-grid select {
  border: 1px solid #34445f;
  border-radius: 7px;
  background: #0e1727;
  color: var(--text);
  padding: 11px;
  min-width: 0;
  width: 100%;
}
.auth-card .primary {
  width: 100%;
  margin: 10px 0 20px;
}
.auth-card small {
  font-size: 0.7143rem;
  color: #6e82a0;
}
.error {
  color: #ff96aa;
  font-size: 0.8571rem;
}
.auth-card .eyebrow {
  letter-spacing: 1.7px;
  font-size: 0.5714rem;
}
dialog {
  background: #172337;
  color: var(--text);
  border: 1px solid #364867;
  border-radius: 13px;
  padding: 25px;
  width: min(540px, calc(100% - 28px));
  max-height: 85dvh;
  box-shadow: 0 24px 100px #0008;
}
dialog[open] {
  animation: surface-in 200ms ease-out;
}
dialog::backdrop {
  background: #030914b5;
  backdrop-filter: blur(4px);
}
.dialog-header {
  display: flex;
  justify-content: space-between;
  align-items: start;
  margin-bottom: 23px;
}
.dialog-header h2 {
  font-size: 1.5rem;
}
.dialog-actions {
  display: flex;
  justify-content: flex-end;
  gap: 9px;
  margin-top: 22px;
}
.dialog-actions .danger {
  margin-right: auto;
}
.form-grid {
  display: grid;
  gap: 1px;
}
.form-grid label {
  margin: 8px 0;
}
.dialog-copy {
  font-size: 0.8571rem;
  line-height: 1.8;
  color: var(--muted);
}
.upload-zone {
  border: 1px dashed #4b6387;
  border-radius: 10px;
  background: #1b2b44;
  text-align: center;
  padding: 30px 15px;
  display: flex;
  align-items: center;
  flex-direction: column;
  gap: 12px;
  cursor: pointer;
}
.upload-zone svg {
  width: 31px;
  height: 31px;
  color: #89abff;
}
.upload-zone.drag {
  background: #2a4570;
}
.upload-zone small {
  color: var(--muted);
  font-size: 0.7857rem;
}
.upload-zone input {
  max-width: 100%;
  font-size: 0.7857rem;
}
.upload-zone.busy {
  opacity: .55;
  cursor: wait;
}
.upload-summary {
  display: flex;
  flex-direction: column;
  gap: 9px;
  padding: 15px;
  margin-bottom: 16px;
  border: 1px solid #496ca8;
  border-radius: 9px;
  background: #203556;
}
.upload-state {
  color: #a5c3ff;
  font-size: .75rem;
  font-weight: 600;
}
.upload-summary strong {
  font-size: .95rem;
}
.upload-summary small {
  color: #b6c5dc;
  font-size: .75rem;
  line-height: 1.7;
}
.upload-summary p {
  margin: 0;
  font-size: .75rem;
  line-height: 1.6;
  overflow-wrap: anywhere;
}
.upload-summary.finished:not(.has-errors) {
  border-color: #43896b;
  background: #183d33;
}
.upload-summary.finished:not(.has-errors) .upload-state {
  color: #8ce0b6;
}
.upload-summary.has-errors {
  border-color: #ad6274;
}
.upload-file {
  padding: 12px;
  margin-top: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  gap: 7px;
  font-size: 0.7857rem;
  transition: background-color 180ms ease, border-color 180ms ease;
}
.upload-file-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.upload-file-heading span {
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.upload-badge {
  flex-shrink: 0;
  font-size: .65rem;
  padding: 4px 6px;
  background: #26354b;
  border-radius: 4px;
  color: #a6b7d0;
}
.upload-file.active {
  background: #1d3455;
  border-color: #638de0;
}
.upload-file.active .upload-badge {
  background: #33558b;
  color: #e1ecff;
}
.upload-file.success {
  background: #173b30;
  border-color: #397c5d;
}
.upload-file.success .upload-badge {
  background: #285b43;
  color: #a3edc3;
}
.upload-file small {
  color: var(--muted);
}
.upload-file.success small {
  color: #99d8b6;
}
.upload-file progress,
.upload-summary progress {
  width: 100%;
  height: 6px;
  accent-color: var(--blue);
}
.upload-file.success progress,
.upload-summary.finished:not(.has-errors) progress {
  accent-color: #67d398;
}
.upload-file.failed {
  border-color: #995668;
  background: #3c2331;
}
.upload-file.failed .upload-badge,
.upload-file.failed small {
  color: #ff96aa;
}
.upload-file.failed progress {
  display: none;
}
.settings-item {
  padding: 15px 0;
  border-bottom: 1px solid var(--line);
}
.settings-item h3 {
  font-size: 0.9286rem;
  margin: 0 0 8px;
}
.settings-item p {
  font-size: 0.7857rem;
  line-height: 1.8;
  color: var(--muted);
}
.secret-box {
  border: 1px solid #3d5478;
  background: #0c1729;
  border-radius: 8px;
  padding: 14px;
  margin-top: 13px;
  overflow-wrap: anywhere;
  font-size: 0.8571rem;
}
.secret-box code {
  display: block;
  color: #a8c5ff;
  margin: 10px 0;
  user-select: all;
}
.track-menu {
  position: fixed;
  inset: auto;
  margin: 0;
  width: 280px;
  max-width: calc(100vw - 24px);
  max-height: calc(100dvh - 24px);
  overflow-y: auto;
  padding: 7px;
  border: 1px solid #35465f;
  border-radius: 11px;
  background: #182435;
  color: var(--text);
  box-shadow:
    0 16px 44px #0006,
    0 3px 10px #0004;
}
.track-menu:popover-open {
  animation: surface-in 160ms ease-out;
}
.track-menu [role="menuitem"] {
  width: 100%;
  padding: 10px 11px;
  border-radius: 6px;
  text-align: left;
  font-size: 0.8571rem;
  display: flex;
  align-items: center;
  gap: 10px;
  color: #c7d2e3;
}
.track-menu [role="menuitem"]:hover,
.track-menu [role="menuitem"]:focus-visible {
  background: #2b3e59;
  color: #fff;
  outline: none;
}
.track-menu [data-action="trash-track"] {
  color: #f0a7b3;
}
.track-menu svg {
  width: 16px;
  height: 16px;
}
.menu-divider {
  height: 1px;
  margin: 5px 7px;
  background: #2b3b52;
}
@keyframes surface-in {
  from {
    opacity: 0;
    transform: translateY(5px) scale(0.985);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0s !important;
    transition-duration: 0s !important;
  }
}
.more-button {
  display: block;
  margin: 25px auto;
}
.empty-small {
  font-size: 0.7857rem;
  color: #5e7393;
  padding: 7px 13px;
  line-height: 1.7;
}
#toast {
  position: fixed;
  bottom: calc(var(--player) + 20px);
  left: 50%;
  transform: translateX(-50%);
  z-index: 20;
  padding: 12px 20px;
  background: #283e60;
  color: #dfeaff;
  border: 1px solid #48638c;
  border-radius: 9px;
  font-size: 0.8571rem;
  max-width: 90vw;
  box-shadow: 0 6px 25px #0006;
}
@media (min-width: 1450px) {
  :root {
    --sidebar: 253px;
  }
  .content {
    padding-left: 48px;
    padding-right: 48px;
  }
  .track-table td {
    height: 68px;
  }
  .track-cover {
    width: 45px;
    height: 45px;
  }
  .topbar {
    padding: 0 43px;
  }
}
@media (max-width: 1050px) {
  .content {
    padding: 28px 22px;
  }
  .topbar {
    padding: 0 20px;
    gap: 12px;
  }
  .player {
    gap: 15px;
    grid-template-columns: 1fr 1.2fr 110px;
    padding-left: 15px;
    padding-right: 15px;
  }
  .player-tools {
    gap: 5px;
  }
  .player-tools input {
    width: 45px;
  }
  .player-tools > [data-icon="phone"] {
    display: none;
  }
  .account > span:not(.avatar) {
    display: none;
  }
  .track-table th.title-col {
    width: 50%;
  }
  .track-table th.plays-col {
    width: 45px;
  }
  .history-buttons {
    display: none;
  }
}
@media (max-width: 740px) {
  :root {
    --player: 148px;
    --sidebar: 235px;
  }
  .shell {
    grid-template-columns: 1fr;
  }
  .sidebar {
    position: fixed;
    left: 0;
    top: 0;
    bottom: var(--player);
    width: var(--sidebar);
    z-index: 10;
    transform: translateX(-100%);
    transition: transform 0.2s;
    box-shadow: 15px 0 60px #0006;
  }
  .sidebar.open {
    transform: translateX(0);
  }
  #menu-button {
    display: flex;
  }
  .topbar {
    height: 65px;
    padding: 0 13px;
    gap: 9px;
  }
  .search {
    width: auto;
    flex: 1;
    padding: 9px;
  }
  .search kbd {
    display: none;
  }
  .account {
    margin-left: 0;
  }
  .account .avatar {
    width: 28px;
    height: 28px;
  }
  .content {
    padding: 24px 16px;
  }
  .view-heading {
    align-items: flex-start;
    gap: 15px;
  }
  .view-heading h1 {
    font-size: 1.9286rem;
  }
  .view-heading .muted {
    font-size: 0.7143rem;
  }
  .heading-actions .soft {
    font-size: 0;
    padding: 9px;
  }
  .heading-actions .soft svg {
    width: 17px;
  }
  .library-toolbar {
    align-items: start;
  }
  .toolbar-left {
    gap: 7px;
    flex-wrap: wrap;
  }
  .toolbar-left .muted {
    font-size: 0.7143rem;
  }
  .divider {
    display: none;
  }
  .toolbar-left .primary,
  .toolbar-left .soft {
    padding: 8px 10px;
    font-size: 0.7143rem;
  }
  .sort-label {
    gap: 3px;
    padding-top: 7px;
  }
  .sort-label select {
    max-width: 94px;
    font-size: 0.7143rem;
  }
  .track-table th.title-col {
    width: auto;
  }
  .track-table th.artist-col,
  .track-table .artist-cell,
  .track-table th.plays-col,
  .track-table .plays-cell {
    display: none;
  }
  .track-table th.check-col {
    width: 24px;
  }
  .track-table th.duration-col {
    width: 44px;
  }
  .track-table th.action-col {
    width: 53px;
  }
  .track-table td {
    height: 64px;
  }
  .track-cell {
    gap: 10px;
    padding-right: 4px;
  }
  .track-cover {
    width: 37px;
    height: 37px;
  }
  .track-title {
    font-size: 0.7857rem;
  }
  .track-subtitle {
    font-size: 0.6429rem;
  }
  .row-actions .favorite-row {
    display: none;
  }
  .player {
    height: var(--player);
    padding: 10px 15px calc(12px + env(safe-area-inset-bottom));
    display: grid;
    grid-template-columns: 1fr 55px;
    grid-template-rows: 48px 55px;
    gap: 3px 12px;
  }
  .now-playing {
    grid-column: 1;
  }
  .now-cover {
    width: 41px;
    height: 41px;
  }
  .now-playing > .icon-button {
    display: none;
  }
  .now-text small {
    display: none;
  }
  .player-center {
    grid-row: 2;
    grid-column: 1 / -1;
    max-width: none;
  }
  .transport {
    gap: 27px;
    margin-bottom: 7px;
  }
  .play-button {
    width: 31px;
    height: 31px;
  }
  .player-tools {
    grid-column: 2;
    grid-row: 1;
  }
  .player-tools > .icon-button:not(:first-child),
  .player-tools > svg,
  .player-tools > input {
    display: none;
  }
  .queue-panel {
    top: 65px;
    bottom: var(--player);
  }
  .library-footnote > span:last-child {
    display: none;
  }
  .selection-bar {
    gap: 9px;
    flex-wrap: wrap;
    font-size: 0.7143rem;
  }
  .selection-bar button {
    font-size: 0.7143rem;
  }
  .cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }
  .library-card {
    padding: 14px;
  }
  .library-card strong {
    font-size: 0.8571rem;
  }
  .library-card small {
    font-size: 0.7143rem;
  }
  .auth-card {
    padding: 28px;
  }
}
