:root {
  --accent: 139, 92, 246;
  --blue: 59, 130, 246;
  --glow: 0.15;
  --lx: 30vw;
  --ly: 50vh;
  --text: #f1f1f8;
  --muted: rgba(226, 226, 245, 0.58);
  --faint: rgba(226, 226, 245, 0.36);
  --line: rgba(255, 255, 255, 0.08);
  --glass: rgba(255, 255, 255, 0.04);
  --radius: 24px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  color-scheme: dark;
  background: #030306;
}

body {
  margin: 0;
  min-height: 100vh;
  padding-bottom: 72px;
  background: #030306;
  color: var(--text);
  font-family: Inter, "SF Pro Text", -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 14px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

button,
input {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
  border: 0;
  background: none;
}

button:disabled {
  cursor: not-allowed;
}

h2,
h3,
h4,
p {
  margin: 0;
}

[hidden] {
  display: none !important;
}

:focus-visible {
  outline: 2px solid rgba(var(--accent), 0.9);
  outline-offset: 2px;
}

.ambient,
.vignette {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.ambient {
  background:
    radial-gradient(circle at var(--lx) var(--ly), rgba(255, 255, 255, calc(var(--glow) * 0.1)) 0, transparent 14%),
    radial-gradient(
      circle at var(--lx) var(--ly),
      rgba(var(--accent), calc(0.1 + var(--glow) * 0.5)) 0,
      rgba(var(--accent), calc(0.04 + var(--glow) * 0.2)) 22%,
      rgba(var(--blue), calc(var(--glow) * 0.08)) 40%,
      transparent 62%
    );
}

.vignette {
  background: radial-gradient(
    ellipse 85% 85% at var(--lx) var(--ly),
    transparent 0,
    rgba(0, 0, 0, 0.3) 38%,
    rgba(0, 0, 0, 0.78) 72%,
    #000 100%
  );
}

.topbar,
.app,
.credit {
  position: relative;
  z-index: 1;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  max-width: 1280px;
  margin: 0 auto;
  padding: 20px 28px;
  height: 76px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-mark {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 3px;
  width: 36px;
  height: 36px;
  padding: 9px 0;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(var(--accent), 0.95), rgba(var(--blue), 0.95));
  box-shadow: 0 6px 24px rgba(var(--accent), calc(0.25 + var(--glow) * 0.4));
}

.brand-mark span {
  width: 3px;
  border-radius: 2px;
  background: #fff;
  height: 45%;
  animation: brand-bar 1.4s ease-in-out infinite;
}

.brand-mark span:nth-child(2) {
  animation-delay: -0.4s;
}
.brand-mark span:nth-child(3) {
  animation-delay: -0.8s;
}
.brand-mark span:nth-child(4) {
  animation-delay: -1.1s;
}

@keyframes brand-bar {
  0%,
  100% {
    height: 30%;
  }
  50% {
    height: 100%;
  }
}

.brand-name {
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.brand-name b {
  font-weight: 600;
  background: linear-gradient(90deg, rgb(var(--accent)), rgb(var(--blue)));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.ico {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: none;
}

.ico.fill {
  fill: currentColor;
  stroke: none;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 40px;
  padding: 0 18px;
  border-radius: 999px;
  font-weight: 500;
  font-size: 13.5px;
  transition: transform 0.25s var(--ease), background 0.25s, border-color 0.25s, box-shadow 0.25s, opacity 0.25s;
  white-space: nowrap;
}

.btn:active:not(:disabled) {
  transform: scale(0.96);
}

.btn.primary {
  background: linear-gradient(135deg, rgb(var(--accent)), rgb(var(--blue)));
  color: #fff;
  box-shadow: 0 8px 28px rgba(var(--accent), calc(0.3 + var(--glow) * 0.35)), inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

.btn.primary:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 12px 36px rgba(var(--accent), 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.btn.primary.large {
  height: 48px;
  padding: 0 26px;
  font-size: 15px;
}

.btn.primary .spinner {
  display: none;
}

.btn.primary.busy {
  pointer-events: none;
  opacity: 0.9;
}

.btn.primary.busy .spinner {
  display: block;
}

.btn.primary.busy .plus {
  display: none;
}

.spinner {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-top-color: #fff;
  animation: spin 0.7s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.btn.ghost {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--line);
  color: var(--muted);
  height: 36px;
  padding: 0 14px;
}

.btn.ghost:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.09);
  color: var(--text);
}

.btn.ghost.danger:hover:not(:disabled) {
  background: rgba(244, 63, 94, 0.14);
  border-color: rgba(244, 63, 94, 0.4);
  color: #fda4af;
}

.btn.ghost:disabled {
  opacity: 0.4;
}

.btn.danger-solid {
  background: linear-gradient(135deg, #f43f5e, #be123c);
  color: #fff;
}

.app {
  display: grid;
  grid-template-columns: minmax(340px, 440px) minmax(0, 1fr);
  gap: 24px;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 28px 28px;
  height: calc(100vh - 76px - 28px);
  min-height: 560px;
}

.glass {
  background: var(--glass);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  backdrop-filter: blur(28px) saturate(150%);
  -webkit-backdrop-filter: blur(28px) saturate(150%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05), 0 30px 80px rgba(0, 0, 0, 0.5);
}

.player {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 14px;
  padding: 24px 26px 22px;
  overflow-y: auto;
  scrollbar-width: none;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.07),
    0 0 calc(60px + var(--glow) * 140px) rgba(var(--accent), calc(var(--glow) * 0.32)),
    0 30px 80px rgba(0, 0, 0, 0.5);
  border-color: rgba(var(--accent), calc(0.1 + var(--glow) * 0.25));
}

.player::-webkit-scrollbar {
  display: none;
}

.art {
  position: relative;
  align-self: center;
  width: min(100%, 36vh, 300px);
  min-width: 170px;
  aspect-ratio: 1;
  border-radius: 24px;
  overflow: hidden;
  background: linear-gradient(145deg, rgba(var(--accent), 0.32), rgba(var(--blue), 0.2));
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 24px 70px rgba(var(--accent), calc(0.18 + var(--glow) * 0.5));
  transform: scale(calc(1 + (var(--glow) - 0.15) * 0.05));
  transition: background 0.6s;
}

.art img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  animation: fade-in 0.5s var(--ease);
}

.art-fallback {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
}

.art-fallback svg {
  width: 38%;
  height: 38%;
  fill: none;
  stroke: rgba(255, 255, 255, 0.55);
  stroke-width: 1.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

@keyframes fade-in {
  from {
    opacity: 0;
    transform: scale(1.04);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.meta {
  text-align: center;
  min-height: 70px;
  padding: 4px 6px 0;
}

.title {
  font-size: 21px;
  font-weight: 650;
  letter-spacing: -0.02em;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.artist {
  margin-top: 2px;
  color: rgba(var(--accent), 1);
  filter: brightness(1.5);
  font-weight: 500;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.album {
  color: var(--faint);
  font-size: 12.5px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.viz {
  width: 100%;
  height: 64px;
  display: block;
  flex: none;
}

.seek-row,
.volume-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.time {
  font-size: 12px;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
  min-width: 38px;
}

.seek-row .time:last-child {
  text-align: right;
}

.range {
  --fill: 0%;
  flex: 1;
  height: 18px;
  margin: 0;
  background: transparent;
  -webkit-appearance: none;
  appearance: none;
  cursor: pointer;
}

.range:disabled {
  cursor: default;
  opacity: 0.45;
}

.range::-webkit-slider-runnable-track {
  height: 5px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgb(var(--accent)), rgb(var(--blue))) 0 0 / var(--fill) 100% no-repeat, rgba(255, 255, 255, 0.12);
}

.range::-moz-range-track {
  height: 5px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
}

.range::-moz-range-progress {
  height: 5px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgb(var(--accent)), rgb(var(--blue)));
}

.range::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 14px;
  height: 14px;
  margin-top: -4.5px;
  border-radius: 50%;
  background: #fff;
  border: 0;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5), 0 0 0 4px rgba(var(--accent), 0);
  transition: transform 0.2s var(--ease), box-shadow 0.2s;
}

.range::-moz-range-thumb {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #fff;
  border: 0;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.range:hover:not(:disabled)::-webkit-slider-thumb,
.range:active:not(:disabled)::-webkit-slider-thumb {
  transform: scale(1.25);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5), 0 0 0 5px rgba(var(--accent), 0.3);
}

.controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 2px 0;
}

.icon-btn {
  position: relative;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  color: var(--muted);
  transition: color 0.2s, background 0.2s, transform 0.25s var(--ease);
}

.icon-btn:hover:not(:disabled) {
  color: var(--text);
  background: rgba(255, 255, 255, 0.08);
}

.icon-btn:active:not(:disabled) {
  transform: scale(0.9);
}

.icon-btn:disabled {
  opacity: 0.3;
}

.icon-btn.big {
  width: 48px;
  height: 48px;
  color: var(--text);
}

.icon-btn.big .ico {
  width: 22px;
  height: 22px;
}

.icon-btn.toggle.on {
  color: rgb(var(--accent));
  filter: brightness(1.45);
  background: rgba(var(--accent), 0.14);
}

.icon-btn.toggle.on::after {
  content: "";
  position: absolute;
  bottom: 3px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: currentColor;
}

.badge {
  display: none;
  position: absolute;
  top: 7px;
  right: 6px;
  font-size: 9px;
  font-weight: 700;
  line-height: 1;
}

.icon-btn.one .badge {
  display: block;
}

.play-btn {
  display: grid;
  place-items: center;
  width: 66px;
  height: 66px;
  margin: 0 6px;
  border-radius: 50%;
  color: #fff;
  background: linear-gradient(135deg, rgb(var(--accent)), rgb(var(--blue)));
  box-shadow:
    0 10px 36px rgba(var(--accent), calc(0.35 + var(--glow) * 0.5)),
    inset 0 1px 0 rgba(255, 255, 255, 0.35);
  transition: transform 0.3s var(--ease), box-shadow 0.3s;
}

.play-btn .ico {
  width: 28px;
  height: 28px;
}

.play-btn:hover {
  transform: scale(1.07);
}

.play-btn:active {
  transform: scale(0.94);
}

.volume-row {
  max-width: 280px;
  width: 100%;
  align-self: center;
}

.volume-row .icon-btn {
  width: 34px;
  height: 34px;
}

.vol-label {
  min-width: 26px;
  text-align: right;
}

.library {
  display: flex;
  flex-direction: column;
  min-height: 0;
  padding: 22px 22px 14px;
  background: rgba(255, 255, 255, 0.025);
}

.lib-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.lib-title h3 {
  font-size: 20px;
  font-weight: 650;
  letter-spacing: -0.02em;
}

.stats {
  color: var(--faint);
  font-size: 12.5px;
  margin-top: 1px;
}

.lib-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin-bottom: 12px;
}

.tabs {
  display: inline-flex;
  padding: 4px;
  gap: 2px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--line);
}

.tab {
  height: 30px;
  padding: 0 14px;
  border-radius: 999px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  transition: background 0.25s, color 0.25s;
}

.tab:hover {
  color: var(--text);
}

.tab.active {
  color: #fff;
  background: linear-gradient(135deg, rgba(var(--accent), 0.55), rgba(var(--blue), 0.45));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

.count {
  font-size: 11px;
  padding: 1px 7px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  font-variant-numeric: tabular-nums;
}

.search {
  flex: 1;
  min-width: 190px;
  display: flex;
  align-items: center;
  gap: 10px;
  height: 38px;
  padding: 0 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--line);
  color: var(--faint);
  transition: border-color 0.25s, background 0.25s, box-shadow 0.25s;
}

.search:focus-within {
  color: var(--text);
  border-color: rgba(var(--accent), 0.6);
  background: rgba(255, 255, 255, 0.07);
  box-shadow: 0 0 0 4px rgba(var(--accent), 0.14);
}

.search input {
  flex: 1;
  min-width: 0;
  background: transparent;
  border: 0;
  outline: 0;
  -webkit-appearance: none;
  appearance: none;
}

.search input::placeholder {
  color: var(--faint);
}

.search input::-webkit-search-cancel-button {
  filter: invert(1);
  opacity: 0.5;
  cursor: pointer;
}

.list-wrap {
  position: relative;
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
}

.list {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  margin: 0 -8px;
  padding: 2px 8px 8px;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.16) transparent;
}

.list::-webkit-scrollbar {
  width: 8px;
}

.list::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.14);
  border-radius: 8px;
}

.track {
  position: relative;
  display: grid;
  grid-template-columns: 28px 46px minmax(0, 1fr) auto 34px;
  align-items: center;
  gap: 12px;
  padding: 8px 8px 8px 12px;
  margin-bottom: 2px;
  border-radius: 16px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, opacity 0.25s, transform 0.25s var(--ease);
  user-select: none;
}

.track:hover {
  background: rgba(255, 255, 255, 0.055);
}

.track.enter {
  animation: row-in 0.45s var(--ease) both;
}

.track.removing {
  opacity: 0;
  transform: translateX(24px);
}

@keyframes row-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.track.current {
  background: linear-gradient(90deg, rgba(var(--accent), 0.2), rgba(var(--blue), 0.07));
  border-color: rgba(var(--accent), 0.3);
}

.lead {
  position: relative;
  height: 20px;
  display: grid;
  place-items: center;
  color: var(--faint);
  font-size: 12.5px;
  font-variant-numeric: tabular-nums;
}

.lead .play-ico,
.lead .eq {
  display: none;
}

.lead .play-ico {
  width: 16px;
  height: 16px;
  fill: currentColor;
  color: var(--text);
}

.track:hover .lead .num {
  display: none;
}

.track:hover .lead .play-ico {
  display: block;
}

.track.current .lead .num,
.track.current .lead .play-ico {
  display: none;
}

.track.current .lead .eq {
  display: flex;
}

.eq {
  align-items: flex-end;
  gap: 2px;
  height: 14px;
}

.eq span {
  width: 3px;
  height: 4px;
  border-radius: 2px;
  background: linear-gradient(to top, rgb(var(--blue)), rgb(var(--accent)));
  filter: brightness(1.4);
  animation: eq-bar 0.9s ease-in-out infinite;
  animation-play-state: paused;
}

.eq span:nth-child(2) {
  animation-delay: -0.3s;
  animation-duration: 0.7s;
}
.eq span:nth-child(3) {
  animation-delay: -0.6s;
  animation-duration: 1.1s;
}
.eq span:nth-child(4) {
  animation-delay: -0.15s;
  animation-duration: 0.8s;
}

.list.playing .track.current .eq span {
  animation-play-state: running;
}

@keyframes eq-bar {
  0%,
  100% {
    height: 3px;
  }
  50% {
    height: 14px;
  }
}

.thumb {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  overflow: hidden;
  background: linear-gradient(145deg, rgba(var(--accent), 0.35), rgba(var(--blue), 0.25));
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.thumb svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: rgba(255, 255, 255, 0.6);
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.info {
  min-width: 0;
}

.info .t {
  font-weight: 550;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.track.current .info .t {
  color: #fff;
}

.info .s {
  color: var(--muted);
  font-size: 12.5px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dur {
  color: var(--muted);
  font-size: 12.5px;
  font-variant-numeric: tabular-nums;
}

.remove {
  width: 32px;
  height: 32px;
  opacity: 0;
}

.remove .ico {
  width: 16px;
  height: 16px;
}

.track:hover .remove,
.remove:focus-visible {
  opacity: 1;
}

.remove:hover:not(:disabled) {
  background: rgba(244, 63, 94, 0.18);
  color: #fda4af;
}

@media (hover: none) {
  .remove {
    opacity: 0.8;
  }
}

.skeleton {
  height: 62px;
  margin-bottom: 4px;
  border-radius: 16px;
  background: linear-gradient(100deg, rgba(255, 255, 255, 0.03) 30%, rgba(255, 255, 255, 0.08) 50%, rgba(255, 255, 255, 0.03) 70%) 0 0 / 300% 100%;
  animation: shimmer 1.4s linear infinite;
}

@keyframes shimmer {
  to {
    background-position: -300% 0;
  }
}

.empty {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 24px;
  text-align: center;
  animation: fade-up 0.6s var(--ease);
}

.empty.compact {
  position: static;
  flex: 1;
}

.empty h4 {
  font-size: 19px;
  font-weight: 650;
  letter-spacing: -0.02em;
}

.empty p {
  color: var(--muted);
  max-width: 360px;
}

.empty small {
  color: var(--faint);
  max-width: 340px;
  font-size: 12px;
}

.empty .btn {
  margin-top: 6px;
}

.empty-orb {
  position: relative;
  width: 92px;
  height: 92px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, rgba(var(--accent), 0.55), rgba(var(--blue), 0.2) 70%);
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 0 60px rgba(var(--accent), 0.35);
  animation: float 4s ease-in-out infinite;
}

.empty-orb svg {
  width: 40px;
  height: 40px;
  fill: none;
  stroke: #fff;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-8px);
  }
}

@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.credit {
  position: fixed;
  right: 20px;
  bottom: 20px;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  height: 38px;
  padding: 0 15px 0 13px;
  border-radius: 999px;
  color: var(--muted);
  text-decoration: none;
  font-size: 12.5px;
  font-weight: 500;
  background: rgba(14, 14, 24, 0.7);
  border: 1px solid var(--line);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  transition: color 0.25s, border-color 0.25s, transform 0.25s var(--ease), box-shadow 0.25s;
  z-index: 20;
}

.credit .ico {
  width: 13px;
  height: 13px;
  transition: transform 0.25s var(--ease);
}

.credit:hover {
  color: #fff;
  border-color: rgba(var(--accent), 0.6);
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(var(--accent), 0.3);
}

.credit:hover .ico {
  transform: translate(2px, -2px);
}

.credit-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgb(var(--accent)), rgb(var(--blue)));
  box-shadow: 0 0 10px rgba(var(--accent), 0.9);
}

.dropzone {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  background: rgba(3, 3, 8, 0.78);
  backdrop-filter: blur(10px);
  animation: fade-in-plain 0.2s;
}

@keyframes fade-in-plain {
  from {
    opacity: 0;
  }
}

.drop-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 56px 72px;
  border-radius: 32px;
  border: 2px dashed rgba(var(--accent), 0.7);
  background: rgba(var(--accent), 0.08);
  text-align: center;
  max-width: 90vw;
}

.drop-card svg {
  width: 48px;
  height: 48px;
  fill: none;
  stroke: rgb(var(--accent));
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: brightness(1.4);
  animation: float 1.6s ease-in-out infinite;
}

.drop-card strong {
  font-size: 20px;
}

.drop-card span {
  color: var(--muted);
}

.dialog {
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 26px;
  width: min(92vw, 400px);
  color: var(--text);
  background: rgba(16, 16, 28, 0.94);
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.7);
}

.dialog::backdrop {
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(6px);
}

.dialog[open] {
  animation: fade-up 0.35s var(--ease);
}

.dialog h4 {
  font-size: 18px;
  font-weight: 650;
  margin-bottom: 6px;
}

.dialog p {
  color: var(--muted);
}

.dialog-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 22px;
}

.dialog-actions .btn.ghost {
  height: 40px;
}

.toasts {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%);
  z-index: 60;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  pointer-events: none;
  width: min(92vw, 460px);
}

.toast {
  padding: 11px 18px;
  border-radius: 14px;
  background: rgba(20, 20, 34, 0.92);
  border: 1px solid var(--line);
  backdrop-filter: blur(18px);
  box-shadow: 0 16px 50px rgba(0, 0, 0, 0.55);
  font-size: 13.5px;
  text-align: center;
  animation: fade-up 0.4s var(--ease);
  transition: opacity 0.3s, transform 0.3s;
}

.toast.error {
  border-color: rgba(244, 63, 94, 0.5);
  color: #fecdd3;
}

.toast.success {
  border-color: rgba(var(--accent), 0.55);
}

.toast.out {
  opacity: 0;
  transform: translateY(8px);
}

@media (max-width: 920px) {
  body {
    padding-bottom: 80px;
  }

  .topbar {
    padding: 16px 18px;
  }

  .app {
    grid-template-columns: minmax(0, 1fr);
    height: auto;
    min-height: 0;
    padding: 0 16px 20px;
  }

  .player {
    overflow: visible;
  }

  .art {
    width: min(100%, 280px);
  }

  .library {
    height: 72vh;
    min-height: 460px;
  }

  .credit {
    right: 14px;
    bottom: 14px;
  }
}

@media (max-width: 560px) {
  .lib-head {
    flex-wrap: wrap;
  }

  .track {
    grid-template-columns: 22px 42px minmax(0, 1fr) auto 30px;
    gap: 10px;
    padding-left: 8px;
  }

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

  .tab {
    padding: 0 10px;
  }

  .drop-card {
    padding: 40px 28px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
