:root {
  --accent: #b6ed85;
  --bg: #111310;
  --panel: #191c18;
  --raised: #22261f;
  --text: #f0f2ec;
  --muted: #92998d;
  --line: #ffffff10;
  --sidebar: #0c0e0b;
  --radius: 16px;
  color-scheme: dark;
  font-family:
    Inter,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  font-size: 14px;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
}
button,
input,
textarea,
select {
  font: inherit;
}
button,
a,
input,
select,
textarea {
  -webkit-tap-highlight-color: transparent;
}
button {
  cursor: pointer;
  color: inherit;
  border: 0;
  background: none;
}
button:disabled {
  opacity: 0.45;
  cursor: default;
}
button:focus-visible,
a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}
button,
input,
textarea,
select {
  transition:
    background 0.2s,
    border-color 0.2s,
    transform 0.2s;
}
a {
  color: var(--accent-ink, var(--accent));
}
button:hover {
  background: var(--line);
}
input,
textarea,
select {
  background: var(--bg);
  color: var(--text);
  border: 1px solid var(--line);
  padding: 12px 14px;
  border-radius: 10px;
  min-width: 0;
  outline: none;
  width: 100%;
}
input:focus,
textarea:focus,
select:focus {
  border-color: var(--accent-ink, var(--accent));
}
input[type="color"] {
  height: 46px;
  padding: 5px;
  width: 65px;
}
input[type="checkbox"] {
  width: auto;
}
input[type="range"] {
  padding: 0;
  accent-color: var(--accent-ink, var(--accent));
  height: 4px;
  border: 0;
  cursor: pointer;
}
label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 12px;
}
label input,
label select,
label textarea {
  font-size: 14px;
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1 {
  font-size: 36px;
  font-weight: 600;
  letter-spacing: -1.4px;
}
h2 {
  font-size: 21px;
  letter-spacing: -0.5px;
  font-weight: 600;
}
h3 {
  font-size: 15px;
  font-weight: 600;
}
small {
  color: var(--muted);
  font-size: 12px;
}
hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 24px 0;
}
.shell {
  display: grid;
  grid-template-columns: 225px minmax(0, 1fr);
  min-height: 100vh;
  padding-bottom: 103px;
}
.sidebar {
  position: fixed;
  inset: 0 auto 103px 0;
  width: 225px;
  background: var(--sidebar);
  border-right: 1px solid var(--line);
  padding: 32px 20px;
  display: flex;
  flex-direction: column;
  z-index: 10;
}
.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  font-size: 23px;
  font-weight: 700;
  letter-spacing: -0.9px;
  padding: 0 10px 35px;
}
.brand img {
  width: 34px;
  height: 34px;
  object-fit: contain;
  border-radius: 8px;
}
.mark {
  width: 29px;
  height: 32px;
  display: inline-flex;
  gap: 4px;
  align-items: center;
  transform: rotate(-14deg);
}
.mark i {
  width: 6px;
  background: var(--accent);
  border-radius: 6px;
  height: 18px;
}
.mark i:nth-child(2) {
  height: 30px;
}
.mark i:last-child {
  height: 23px;
}
.nav-label {
  color: var(--muted);
  font-size: 10px;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  margin: 23px 13px 12px;
}
.nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.nav button {
  display: flex;
  gap: 13px;
  align-items: center;
  text-align: left;
  padding: 12px 14px;
  border-radius: 9px;
  color: var(--muted);
  font-size: 13px;
}
.nav button.active {
  background: color-mix(in srgb, var(--accent) 12%, transparent);
  color: var(--accent-ink, var(--accent));
}
.ico {
  font-size: 19px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 21px;
  line-height: 1;
}
.sidebar .playlist-nav {
  max-height: 25vh;
  overflow: auto;
}
.sidebar-bottom {
  margin-top: auto;
  padding-top: 24px;
}
.server-indicator {
  font-size: 10px;
  color: var(--muted);
  display: flex;
  gap: 8px;
  align-items: center;
  padding: 18px 13px 0;
}
.dot {
  display: inline-block;
  background: var(--accent);
  width: 6px;
  height: 6px;
  border-radius: 50%;
  box-shadow: 0 0 10px color-mix(in srgb, var(--accent) 30%, transparent);
}
.main {
  grid-column: 2;
  min-width: 0;
}
.topbar {
  height: 88px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 25px;
  padding: 0 42px;
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  background: color-mix(in srgb, var(--bg) 94%, transparent);
  backdrop-filter: blur(18px);
  z-index: 8;
}
.search {
  position: relative;
  max-width: 420px;
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--muted);
}
.search input {
  border: 0;
  background: transparent;
  padding: 12px 0;
  font-size: 12px;
}
.top-right {
  display: flex;
  gap: 20px;
  align-items: center;
  white-space: nowrap;
}
.avatar {
  border-radius: 50%;
  background: var(--raised);
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  object-fit: cover;
  color: var(--accent-ink, var(--accent));
  font-weight: 600;
}
.profile-btn {
  display: flex;
  gap: 10px;
  align-items: center;
  border-radius: 30px;
  padding: 5px;
}
.content {
  max-width: 1500px;
  margin: auto;
  padding: 36px 42px 60px;
  animation: arrive 0.25s ease;
}
.eyebrow {
  font-size: 10px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 12px;
}
.page-head {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: flex-end;
  margin-bottom: 28px;
}
.page-head p {
  color: var(--muted);
  margin-top: 10px;
  font-size: 13px;
}
.btn {
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 11px 17px;
  display: inline-flex;
  gap: 9px;
  align-items: center;
  justify-content: center;
  font-weight: 500;
  font-size: 12px;
  white-space: nowrap;
}
.btn.primary {
  background: var(--accent);
  color: var(--on-accent, #162010);
  border-color: transparent;
}
.btn.primary:hover {
  filter: brightness(1.08);
  transform: translateY(-1px);
}
.btn.danger {
  color: #ff9d96;
}
.btn.ghost {
  border-color: transparent;
  color: var(--muted);
}
.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  font-size: 18px;
  flex-shrink: 0;
}
.hero {
  position: relative;
  min-height: 270px;
  border: 1px solid var(--line);
  border-radius: 20px;
  overflow: hidden;
  display: flex;
  align-items: center;
  padding: 32px 38px;
  margin-bottom: 35px;
  background: linear-gradient(
    110deg,
    color-mix(in srgb, var(--accent) 12%, var(--panel)),
    var(--panel) 65%
  );
}
.hero-copy {
  position: relative;
  z-index: 2;
  max-width: 62%;
}
.hero .eyebrow {
  color: var(--accent-ink, var(--accent));
  display: flex;
  gap: 8px;
  align-items: center;
}
.hero h2 {
  font-size: 39px;
  line-height: 1.16;
  letter-spacing: -1.5px;
  font-weight: 500;
  margin: 15px 0;
}
.hero p {
  color: var(--muted);
  font-size: 12px;
  margin: 12px 0 23px;
  line-height: 1.8;
}
.hero-art {
  position: absolute;
  right: 4%;
  top: 32px;
  width: 218px;
  height: 218px;
  transform: rotate(8deg);
  box-shadow: 0 20px 65px #0006;
  border: 1px solid #ffffff13;
  border-radius: 14px;
  overflow: hidden;
}
.hero-art .art {
  height: 100%;
  width: 100%;
  font-size: 70px;
}
.hero-art:after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(140deg, #ffffff10, transparent);
}
.hero-orbit {
  position: absolute;
  right: -130px;
  top: -155px;
  width: 530px;
  height: 530px;
  border: 1px solid color-mix(in srgb, var(--accent) 9%, transparent);
  border-radius: 50%;
}
.hero-orbit:after {
  content: "";
  position: absolute;
  inset: 38px;
  border: inherit;
  border-radius: inherit;
}
.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  gap: 16px;
}
.section-head small {
  margin-left: 8px;
}
.grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 21px;
}
.album-card {
  text-align: left;
  min-width: 0;
  padding: 0;
  border-radius: 12px;
  position: relative;
  background: none !important;
}
.art {
  background: linear-gradient(
    140deg,
    hsl(var(--hue, 100) 22% 31%),
    hsl(calc(var(--hue, 100) + 55) 25% 12%)
  );
  width: 100%;
  aspect-ratio: 1;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  color: #ffffffad;
  position: relative;
  isolation: isolate;
  font-size: 35px;
}
.art:not(:has(img)):before {
  content: "";
  width: 63%;
  height: 63%;
  border: 1px solid #ffffff22;
  border-radius: 50%;
  position: absolute;
  box-shadow:
    0 0 0 15px #ffffff05,
    0 0 0 35px #ffffff04;
}
.art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  inset: 0;
}
.album-card .art {
  transition:
    transform 0.3s,
    box-shadow 0.3s;
}
.album-card:hover .art {
  transform: translateY(-4px);
  box-shadow: 0 10px 25px #0003;
}
.album-card h3 {
  margin-top: 13px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 13px;
}
.album-card p {
  color: var(--muted);
  font-size: 11px;
  margin-top: 6px;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.album-play {
  position: absolute;
  right: 10px;
  bottom: 60px;
  background: var(--accent);
  color: var(--on-accent, #142010);
  border-radius: 50%;
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: translateY(5px);
  transition: all 0.2s;
}
.album-card:hover .album-play {
  opacity: 1;
  transform: none;
}
.section {
  margin-top: 36px;
}
.tabs {
  display: flex;
  gap: 22px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 12px;
}
.tabs button {
  padding: 13px 0;
  color: var(--muted);
  border-bottom: 2px solid transparent;
  font-size: 12px;
}
.tabs button.active {
  color: var(--text);
  border-bottom-color: var(--accent-ink, var(--accent));
}
.track-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}
.track-table th {
  color: var(--muted);
  font-size: 10px;
  letter-spacing: 0.6px;
  font-weight: 400;
  height: 42px;
  border-bottom: 1px solid var(--line);
}
.track-table td {
  height: 61px;
  border-bottom: 1px solid var(--line);
  font-size: 12px;
}
.track-table th:first-child,
.track-table td:first-child {
  width: 38px;
  text-align: center;
  color: var(--muted);
  font-size: 11px;
}
.track-table .track-title {
  min-width: 160px;
  display: flex;
  gap: 12px;
  align-items: center;
}
.track-title .art {
  width: 37px;
  height: 37px;
  border-radius: 6px;
  font-size: 16px;
  flex-shrink: 0;
}
.track-title button {
  font-size: 12px;
  font-weight: 500;
  text-align: left;
  padding: 0;
  display: block;
  max-width: 330px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.track-title small {
  display: block;
  font-size: 11px;
  margin-top: 5px;
}
.track-table tr:hover td {
  background: var(--line);
}
.track-table tr.current td,
.on {
  color: var(--accent-ink, var(--accent)) !important;
}
.format {
  display: inline-block;
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.6px;
  color: var(--muted);
  border: 1px solid var(--line);
  padding: 3px 5px;
  border-radius: 4px;
}
.format.lossless {
  color: var(--accent-ink, var(--accent));
  border-color: color-mix(in srgb, var(--accent) 20%, transparent);
}
.track-table .muted {
  color: var(--muted);
  font-size: 11px;
}
.track-actions {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 2px;
}
.track-actions button {
  color: var(--muted);
}
.player {
  position: fixed;
  inset: auto 0 0;
  height: 103px;
  background: color-mix(in srgb, var(--sidebar) 96%, transparent);
  backdrop-filter: blur(20px);
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: 1fr 1.2fr 1fr;
  align-items: center;
  gap: 30px;
  padding: 15px 28px;
  z-index: 20;
}
.now {
  display: flex;
  gap: 14px;
  align-items: center;
  min-width: 0;
}
.now .art {
  width: 57px;
  height: 57px;
  border-radius: 9px;
  font-size: 22px;
  flex-shrink: 0;
}
.now-info {
  min-width: 0;
}
.now h3 {
  font-size: 12px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.now p {
  font-size: 11px;
  color: var(--muted);
  margin-top: 6px;
}
.now small {
  font-size: 9px;
  display: block;
  margin-top: 5px;
  letter-spacing: 0.5px;
}
.play-controls {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 17px;
  margin-bottom: 11px;
}
.play-controls .main-play {
  width: 35px;
  height: 35px;
  background: var(--text);
  color: var(--bg);
  font-size: 15px;
}
.play-controls button {
  color: var(--muted);
  font-size: 16px;
}
.timeline {
  display: flex;
  align-items: center;
  gap: 12px;
}
.timeline span {
  font-size: 9px;
  color: var(--muted);
  width: 32px;
  font-variant-numeric: tabular-nums;
}
.player-tools {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 13px;
}
.player-tools input {
  max-width: 90px;
}
.player-tools select {
  width: 90px;
  font-size: 10px;
  padding: 6px;
  border: 0;
  color: var(--muted);
  background: none;
}
.empty {
  padding: 60px 20px;
  text-align: center;
  border: 1px dashed var(--line);
  border-radius: 16px;
  color: var(--muted);
}
.empty .ico {
  display: flex;
  margin: 0 auto 18px;
  font-size: 33px;
  color: var(--accent-ink, var(--accent));
}
.empty h2 {
  color: var(--text);
  margin-bottom: 10px;
}
.empty p {
  font-size: 13px;
  line-height: 1.8;
  margin-bottom: 20px;
}
.flex {
  display: flex;
  align-items: center;
  gap: 12px;
}
.wrap {
  flex-wrap: wrap;
}
.spacer {
  flex: 1;
}
.muted {
  color: var(--muted);
}
.panel {
  padding: 24px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  margin-bottom: 20px;
}
.panel h3 {
  margin-bottom: 8px;
}
.panel p {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.8;
  margin-bottom: 16px;
}
.settings-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}
.form {
  display: grid;
  gap: 18px;
}
.form .btn {
  justify-self: start;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.user-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}
.user-row:last-child {
  border-bottom: 0;
}
.batch {
  padding: 24px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 14px;
  margin-bottom: 18px;
}
.batch-head {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 12px;
}
.batch-head h3 {
  margin-bottom: 5px;
}
.batch-head small {
  font-size: 10px;
}
.download-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 0;
  border-top: 1px solid var(--line);
}
.download-row .file-info {
  flex: 1;
  min-width: 0;
}
.file-info strong {
  font-size: 12px;
  font-weight: 500;
  overflow-wrap: anywhere;
}
.file-info small {
  display: block;
  margin-top: 4px;
}
.status {
  font-size: 10px;
  padding: 5px 8px;
  border-radius: 5px;
  background: var(--raised);
  color: var(--muted);
}
.status.completed {
  color: var(--accent-ink, var(--accent));
}
.status.failed {
  color: #ff9d96;
}
.upload-zone {
  display: block;
  text-align: center;
  padding: 24px;
  border: 1px dashed color-mix(in srgb, var(--accent) 25%, transparent);
  border-radius: 12px;
  cursor: pointer;
  margin-top: 15px;
  color: var(--muted);
  font-size: 12px;
}
.upload-zone input {
  margin: 15px auto 0;
  max-width: 400px;
  font-size: 12px;
}
.details-head {
  display: flex;
  gap: 30px;
  align-items: flex-end;
  margin-bottom: 30px;
}
.details-head > .art {
  width: 180px;
  flex-shrink: 0;
}
.details-head h1 {
  margin-bottom: 12px;
}
.details-head p {
  color: var(--muted);
  margin-bottom: 20px;
  font-size: 12px;
}
.queue {
  position: fixed;
  top: 88px;
  bottom: 103px;
  right: 0;
  width: 360px;
  background: var(--panel);
  border-left: 1px solid var(--line);
  z-index: 12;
  padding: 24px;
  overflow: auto;
  box-shadow: -20px 0 80px #0003;
  animation: arrive 0.2s;
}
.queue-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 0;
}
.queue-item .art {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  border-radius: 6px;
  font-size: 18px;
}
.queue-item button {
  text-align: left;
  font-size: 12px;
  max-width: 230px;
}
.queue-item small {
  display: block;
  font-size: 10px;
  margin-top: 4px;
}
.auth {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
}
.auth-art {
  padding: 65px;
  background: radial-gradient(
    ellipse at 50% 65%,
    color-mix(in srgb, var(--accent) 12%, var(--bg)),
    var(--sidebar) 70%
  );
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}
.auth-art .brand {
  padding: 0;
}
.auth-art h1 {
  font-size: 62px;
  max-width: 500px;
  line-height: 1.05;
  margin-top: auto;
  z-index: 1;
  letter-spacing: -3px;
}
.auth-art p {
  margin-top: 22px;
  margin-bottom: 45px;
  line-height: 1.8;
  color: var(--muted);
  max-width: 360px;
  z-index: 1;
}
.vinyl {
  width: 310px;
  height: 310px;
  border-radius: 50%;
  background: repeating-radial-gradient(
    circle,
    #23271f 0,
    #151912 2px,
    #22261d 3px,
    #151912 5px
  );
  border: 1px solid #ffffff12;
  position: absolute;
  right: -60px;
  top: 120px;
  box-shadow: 0 0 90px #0007;
}
.vinyl:after {
  content: "a";
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 48px;
  color: #172210;
  position: absolute;
  inset: 100px;
  border-radius: 50%;
  background: var(--accent);
}
.auth-form {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
}
.auth-form > div {
  width: 360px;
}
.auth-form h2 {
  font-size: 28px;
  margin-bottom: 12px;
}
.auth-form p {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.8;
  margin-bottom: 28px;
}
.auth-form .btn {
  width: 100%;
  margin-top: 8px;
}
.error {
  color: #ff9d96;
  font-size: 12px;
  line-height: 1.7;
}
.note {
  font-size: 11px;
  line-height: 1.8;
  color: var(--muted);
}
code {
  background: var(--bg);
  padding: 3px 6px;
  border-radius: 4px;
  overflow-wrap: anywhere;
}
dialog {
  background: var(--panel);
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 28px;
  max-width: 490px;
  width: calc(100% - 32px);
  box-shadow: 0 30px 100px #0009;
}
dialog::backdrop {
  background: #0008;
  backdrop-filter: blur(6px);
}
dialog h2 {
  margin-bottom: 20px;
}
dialog .close {
  position: absolute;
  right: 17px;
  top: 15px;
}
dialog .form {
  margin-top: 20px;
}
.modal-list {
  display: grid;
  gap: 6px;
  max-height: 350px;
  overflow: auto;
}
.modal-list button {
  text-align: left;
  padding: 13px;
  border-radius: 8px;
  background: var(--raised);
}
#toast {
  position: fixed;
  bottom: 119px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--text);
  color: var(--bg);
  padding: 12px 20px;
  border-radius: 9px;
  font-size: 12px;
  z-index: 99;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
  max-width: 90vw;
  box-shadow: 0 5px 30px #0003;
}
#toast.show {
  opacity: 1;
}
.loading {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  gap: 20px;
  justify-content: center;
  align-items: center;
  font-size: 30px;
}
.loading span {
  font-size: 12px;
  color: var(--muted);
}
body.light {
  --bg: #f7f8f4;
  --panel: #ffffff;
  --raised: #edefe8;
  --text: #20271b;
  --muted: #747d6d;
  --line: #18220c12;
  --sidebar: #f0f2eb;
  color-scheme: light;
}
.light .hero {
  background: linear-gradient(
    110deg,
    color-mix(in srgb, var(--accent) 22%, white),
    var(--panel)
  );
}
.mobile-brand {
  display: none;
}
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  padding-top: 20px;
}
.swatches {
  display: flex;
  gap: 10px;
}
.swatch {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--swatch);
  border: 3px solid var(--panel);
  outline: 1px solid var(--line);
}
.swatch:hover {
  background: var(--swatch);
  transform: scale(1.1);
}
@keyframes arrive {
  from {
    opacity: 0.6;
    transform: translateY(5px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@media (min-width: 1600px) {
  .content {
    padding-top: 42px;
  }
  .hero {
    min-height: 310px;
  }
  .hero-art {
    width: 240px;
    height: 240px;
  }
}
@media (max-width: 1200px) {
  .grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  .grid .album-card:nth-child(n + 5) {
    display: none;
  }
  .grid.all .album-card {
    display: block;
  }
  .content {
    padding: 30px;
  }
  .topbar {
    padding: 0 30px;
  }
  .shell {
    grid-template-columns: 195px minmax(0, 1fr);
  }
  .sidebar {
    width: 195px;
    padding: 30px 13px;
  }
  .hero h2 {
    font-size: 32px;
  }
  .hero-art {
    width: 180px;
    height: 180px;
    top: 45px;
  }
  .track-table .album-col {
    display: none;
  }
  .player {
    gap: 18px;
    grid-template-columns: 1fr 1.3fr 0.8fr;
  }
  .player-tools {
    gap: 6px;
  }
  .player-tools select {
    width: 75px;
  }
}
@media (max-width: 900px) {
  .settings-grid {
    grid-template-columns: 1fr;
  }
  .top-right > small {
    display: none;
  }
  .hero-art {
    right: -15px;
    opacity: 0.5;
  }
  .hero-copy {
    max-width: 78%;
  }
  .player-tools select {
    display: none;
  }
  .player-tools input {
    max-width: 60px;
  }
  .player {
    grid-template-columns: 1fr 1.3fr;
  }
  .player-tools {
    display: none;
  }
  .auth-art {
    padding: 40px;
  }
  .auth-art h1 {
    font-size: 48px;
  }
  .track-table .quality-col {
    display: none;
  }
}
@media (max-width: 680px) {
  .shell {
    display: block;
    padding-bottom: 160px;
  }
  .sidebar {
    inset: auto 0 0;
    width: 100%;
    height: 62px;
    padding: 4px 10px;
    z-index: 30;
    border-right: 0;
    border-top: 1px solid var(--line);
    background: var(--sidebar);
  }
  .sidebar .brand,
  .sidebar .nav-label,
  .sidebar .playlist-nav,
  .sidebar-bottom,
  .sidebar .new-playlist {
    display: none;
  }
  .sidebar > .nav {
    flex-direction: row;
    justify-content: space-around;
  }
  .sidebar > .nav button {
    flex-direction: column;
    gap: 3px;
    padding: 7px 8px;
    font-size: 9px;
    border-radius: 8px;
  }
  .sidebar > .nav button .ico {
    font-size: 18px;
  }
  .topbar {
    height: 66px;
    padding: 0 18px;
    gap: 10px;
  }
  .profile-btn > span:not(.avatar) {
    display: none;
  }
  .top-right {
    gap: 6px;
  }
  .mobile-brand {
    display: block;
    font-size: 18px;
    font-weight: 700;
  }
  .search input {
    font-size: 11px;
  }
  .content {
    padding: 25px 18px 35px;
  }
  h1 {
    font-size: 29px;
  }
  .page-head {
    align-items: center;
  }
  .page-head > .btn {
    font-size: 0;
    padding: 10px;
  }
  .page-head > .btn .ico {
    font-size: 19px;
  }
  .hero {
    min-height: 250px;
    padding: 25px 23px;
  }
  .hero h2 {
    font-size: 30px;
  }
  .hero-art {
    right: -50px;
    width: 165px;
    height: 165px;
    opacity: 0.38;
    top: 56px;
  }
  .hero-copy {
    max-width: 87%;
  }
  .hero-copy p {
    font-size: 11px;
  }
  .grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px 16px;
  }
  .grid .album-card:nth-child(n + 5) {
    display: none;
  }
  .section-head h2 {
    font-size: 19px;
  }
  .track-table .track-title {
    min-width: 0;
    gap: 9px;
  }
  .track-title button {
    max-width: 150px;
  }
  .track-table th:first-child,
  .track-table td:first-child {
    width: 24px;
  }
  .track-table .duration-col {
    display: none;
  }
  .track-actions .icon-btn {
    width: 28px;
  }
  .track-table td {
    height: 62px;
  }
  .player {
    height: 92px;
    bottom: 62px;
    padding: 10px 16px;
    grid-template-columns: 1fr auto;
    gap: 8px;
  }
  .now {
    gap: 10px;
  }
  .now .art {
    width: 48px;
    height: 48px;
  }
  .now h3 {
    max-width: 180px;
    font-size: 11px;
  }
  .now small {
    display: none;
  }
  .play-controls {
    gap: 4px;
    margin: 0;
  }
  .play-controls button[data-action="shuffle"],
  .play-controls button[data-action="repeat"],
  .play-controls button[data-action="prev"] {
    display: none;
  }
  .timeline {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    gap: 0;
  }
  .timeline span {
    display: none;
  }
  .timeline input {
    height: 2px;
  }
  .queue {
    inset: 66px 0 154px;
    width: auto;
  }
  .details-head {
    gap: 18px;
    align-items: center;
  }
  .details-head > .art {
    width: 100px;
  }
  .details-head h1 {
    font-size: 25px;
  }
  .details-head p {
    line-height: 1.7;
  }
  .auth {
    grid-template-columns: 1fr;
  }
  .auth-art {
    min-height: 250px;
    padding: 28px;
  }
  .auth-art h1 {
    font-size: 36px;
    margin-top: 40px;
    letter-spacing: -1px;
    max-width: 280px;
  }
  .auth-art p {
    display: none;
  }
  .auth-art .vinyl {
    width: 230px;
    height: 230px;
    right: -90px;
    top: 45px;
  }
  .auth-art .vinyl:after {
    inset: 75px;
    font-size: 30px;
  }
  .auth-form {
    padding: 35px 25px;
  }
  .panel,
  .batch {
    padding: 20px;
  }
  .form-row {
    grid-template-columns: 1fr;
  }
  #toast {
    bottom: 169px;
  }
  .batch-head {
    flex-wrap: wrap;
  }
  .batch-head small {
    overflow-wrap: anywhere;
  }
  .btn {
    padding: 10px 13px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *:before,
  *:after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}

.mobile-controls {
  display: none;
}
@media (max-width: 680px) {
  .play-controls .mobile-controls {
    display: inline-flex;
  }
}

.mobile-brand img {
  width: 28px;
  height: 28px;
  object-fit: contain;
  border-radius: 6px;
}
.hero h2 {
  overflow-wrap: anywhere;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.details-head > div {
  min-width: 0;
}
.details-head h1 {
  overflow-wrap: anywhere;
}
.download-row .status {
  white-space: nowrap;
}
.playlist-nav button span:last-child {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
