:root {
  color-scheme: dark;
  --ink: #f7f7fb;
  --muted: #a5a5ad;
  --soft: #d9d9df;
  --line: rgba(255, 255, 255, 0.1);
  --line-strong: rgba(255, 255, 255, 0.18);
  --paper: rgba(28, 28, 32, 0.84);
  --panel: rgba(20, 20, 24, 0.72);
  --field: rgba(255, 255, 255, 0.07);
  --accent: #ff4f6d;
  --accent-dark: #c9354e;
  --teal: #2dd4bf;
  --gold: #f5b84b;
  --rose: #ff6b8a;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.36);
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background:
    radial-gradient(circle at 15% 0%, rgba(255, 79, 109, 0.22), transparent 26rem),
    radial-gradient(circle at 85% 8%, rgba(45, 212, 191, 0.14), transparent 22rem),
    #101014;
}

body {
  min-height: 100%;
  margin: 0;
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(16, 16, 20, 0.1), #101014 42%);
}

button,
input,
select {
  font: inherit;
}

button {
  border: 0;
  cursor: pointer;
  transition: transform 150ms ease, opacity 150ms ease, background 150ms ease, border-color 150ms ease;
}

button:active,
.track-action:active {
  transform: scale(0.97);
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

.shell {
  width: min(1240px, calc(100% - 32px));
  margin: 0 auto;
  padding: 22px 0 126px;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(240px, 330px);
  gap: 24px;
  align-items: center;
  min-height: 188px;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background:
    linear-gradient(135deg, rgba(255, 79, 109, 0.28), rgba(16, 16, 20, 0.45)),
    url("https://images.unsplash.com/photo-1516280440614-37939bbacd81?auto=format&fit=crop&w=1600&q=80") center/cover;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.brand-lockup {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr);
  gap: 18px;
  align-items: center;
}

.brand-mark,
.art,
.queue-art {
  background:
    linear-gradient(145deg, #ff4f6d, #f5b84b 52%, #2dd4bf);
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 76px;
  height: 76px;
  border-radius: 22px;
  color: #fff;
  font-size: 2.1rem;
  font-weight: 900;
  box-shadow: 0 18px 42px rgba(255, 79, 109, 0.36);
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2 {
  margin: 0;
  line-height: 1.02;
  letter-spacing: 0;
}

h1 {
  font-size: clamp(2.2rem, 7vw, 5.8rem);
}

h2 {
  font-size: clamp(1.45rem, 2.2vw, 2.25rem);
}

.lede {
  max-width: 640px;
  margin: 12px 0 0;
  color: rgba(247, 247, 251, 0.78);
  font-size: 1rem;
  line-height: 1.55;
}

.source-panel {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 14px;
  background: rgba(16, 16, 20, 0.46);
  color: rgba(247, 247, 251, 0.88);
  line-height: 1.45;
  backdrop-filter: blur(18px);
}

.status-dot {
  flex: 0 0 auto;
  width: 10px;
  height: 10px;
  margin-top: 6px;
  border-radius: 50%;
  background: var(--teal);
  box-shadow: 0 0 0 5px rgba(45, 212, 191, 0.16);
}

.workspace {
  display: grid;
  grid-template-columns: 310px minmax(0, 1fr);
  gap: 18px;
  margin-top: 18px;
  align-items: start;
}

.sidebar,
.results-panel {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--paper);
  box-shadow: 0 14px 42px rgba(0, 0, 0, 0.22);
  backdrop-filter: blur(22px);
}

.sidebar {
  position: sticky;
  top: 18px;
  display: grid;
  gap: 22px;
  padding: 16px;
}

.field {
  display: grid;
  gap: 10px;
}

label,
.label {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
}

.search-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 52px;
  gap: 8px;
}

input[type="search"],
.add-track-form input[type="text"],
.add-track-form input[type="url"],
.add-track-form select {
  width: 100%;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0 12px;
  color: var(--ink);
  background: var(--field);
  outline: none;
}

input[type="search"]:focus,
.add-track-form input:focus,
.add-track-form select:focus {
  border-color: rgba(255, 79, 109, 0.7);
  box-shadow: 0 0 0 3px rgba(255, 79, 109, 0.16);
}

input::placeholder {
  color: rgba(217, 217, 223, 0.44);
}

.add-track-form {
  display: grid;
  gap: 8px;
}

.search-row button,
.add-track-form button,
.track-action.primary,
.tab.active,
.queue-button {
  background: var(--accent);
  color: #fff;
}

.search-row button,
.add-track-form button,
.track-action,
.file-drop,
.tab,
.queue-button {
  min-height: 40px;
  border-radius: 999px;
  font-weight: 800;
}

.search-row button:hover,
.add-track-form button:hover,
.track-action.primary:hover,
.tab.active:hover,
.queue-button:hover {
  background: var(--accent-dark);
}

.rights-check {
  display: flex;
  gap: 8px;
  align-items: center;
  min-height: 34px;
  color: var(--soft);
  font-size: 0.86rem;
}

.rights-check input {
  width: 16px;
  height: 16px;
  accent-color: var(--accent);
}

.genre-grid {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 4px;
  scroll-snap-type: x mandatory;
}

.genre {
  flex: 0 0 auto;
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--soft);
  font-weight: 800;
  scroll-snap-align: start;
}

.genre.active,
.genre:hover {
  border-color: rgba(255, 79, 109, 0.54);
  background: rgba(255, 79, 109, 0.18);
  color: #fff;
}

.file-drop {
  display: grid;
  place-items: center;
  border: 1px dashed rgba(255, 255, 255, 0.26);
  background: rgba(255, 255, 255, 0.05);
  color: var(--soft);
  cursor: pointer;
}

.file-drop:hover {
  border-color: rgba(45, 212, 191, 0.58);
  background: rgba(45, 212, 191, 0.1);
}

.file-drop input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.results-panel {
  min-height: 590px;
  padding: 18px;
}

.toolbar {
  display: flex;
  gap: 16px;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}

.toolbar-actions {
  display: flex;
  gap: 10px;
  align-items: center;
}

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

.tab {
  padding: 0 13px;
  background: transparent;
  color: var(--muted);
}

.queue-button {
  padding: 0 14px;
}

.message {
  margin: 18px 0;
  padding: 13px 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--muted);
  line-height: 1.5;
}

.message.error {
  border-color: rgba(255, 107, 138, 0.38);
  background: rgba(255, 107, 138, 0.12);
  color: #ffc4d0;
}

.message.hidden {
  display: none;
}

.track-list {
  display: grid;
  gap: 12px;
}

.track-list.discover-grid {
  grid-template-columns: repeat(auto-fit, minmax(178px, 1fr));
}

.track-card {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 14px;
  min-height: 170px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background:
    linear-gradient(150deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.03)),
    rgba(24, 24, 28, 0.86);
  overflow: hidden;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.track-card::before {
  content: "";
  display: block;
  width: min(100%, 168px);
  aspect-ratio: 1;
  border-radius: 14px;
  background:
    radial-gradient(circle at 30% 28%, rgba(255, 255, 255, 0.32), transparent 18%),
    linear-gradient(145deg, rgba(255, 79, 109, 0.95), rgba(245, 184, 75, 0.82) 52%, rgba(45, 212, 191, 0.84));
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.28);
}

.track-list:not(.discover-grid) .track-card {
  grid-template-columns: 72px minmax(0, 1fr) auto;
  min-height: 96px;
  align-items: center;
}

.track-list:not(.discover-grid) .track-card::before {
  width: 72px;
}

.track-card:hover {
  transform: translateY(-2px);
  border-color: var(--line-strong);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.26);
}

.track-card.playing {
  border-color: rgba(255, 79, 109, 0.62);
  background:
    linear-gradient(150deg, rgba(255, 79, 109, 0.18), rgba(255, 255, 255, 0.04)),
    rgba(24, 24, 28, 0.9);
}

.track-title {
  margin: 0;
  color: #fff;
  font-size: 1rem;
  line-height: 1.28;
}

.track-creator,
.track-source,
.track-tags {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.42;
}

.track-source {
  display: inline-block;
  width: fit-content;
  max-width: 100%;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(245, 184, 75, 0.12);
  color: #ffd98a;
  font-weight: 800;
}

.track-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.track-action {
  display: inline-grid;
  place-items: center;
  min-width: 44px;
  padding: 0 12px;
  border: 1px solid var(--line);
  text-decoration: none;
  background: rgba(255, 255, 255, 0.08);
  color: var(--ink);
}

.track-action:hover {
  background: rgba(255, 255, 255, 0.14);
}

.track-action.danger {
  background: rgba(255, 107, 138, 0.12);
  color: #ffc4d0;
}

.track-action.danger:hover {
  background: rgba(255, 107, 138, 0.2);
}

.player {
  position: fixed;
  right: 16px;
  bottom: 16px;
  left: 16px;
  z-index: 12;
  display: grid;
  grid-template-columns: minmax(220px, 1fr) minmax(300px, 1.3fr) minmax(120px, 220px);
  gap: 18px;
  align-items: center;
  width: min(1240px, calc(100% - 32px));
  margin: 0 auto;
  padding: 12px;
  border: 1px solid var(--line-strong);
  border-radius: 18px;
  background: rgba(24, 24, 28, 0.84);
  box-shadow: var(--shadow);
  backdrop-filter: blur(24px);
}

.now-playing {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
}

.art {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border-radius: 14px;
  color: #fff;
  font-size: 0.72rem;
  font-weight: 900;
}

.track-meta {
  min-width: 0;
  mask-image: linear-gradient(90deg, #000 78%, transparent);
}

.track-meta strong,
.track-meta span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.track-meta span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.86rem;
}

.transport {
  display: grid;
  gap: 8px;
}

.buttons {
  display: flex;
  justify-content: center;
  gap: 8px;
}

.buttons button {
  display: grid;
  place-items: center;
  width: 50px;
  height: 38px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.09);
  color: var(--ink);
  font-size: 0.76rem;
  font-weight: 900;
}

.buttons .primary {
  width: 62px;
  height: 46px;
  background: #fff;
  color: #101014;
  font-size: 0.84rem;
}

.scrub-row,
.volume-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  color: var(--muted);
  font-size: 0.82rem;
}

.volume-row {
  grid-template-columns: auto minmax(0, 1fr);
}

input[type="range"] {
  width: 100%;
  accent-color: var(--accent);
}

.queue-scrim {
  position: fixed;
  inset: 0;
  z-index: 20;
  background: rgba(0, 0, 0, 0.42);
}

.queue-drawer {
  position: fixed;
  top: 16px;
  right: 16px;
  bottom: 100px;
  z-index: 21;
  width: min(380px, calc(100% - 32px));
  padding: 16px;
  border: 1px solid var(--line-strong);
  border-radius: 18px;
  background: rgba(24, 24, 28, 0.94);
  box-shadow: var(--shadow);
  backdrop-filter: blur(24px);
  transform: translateX(calc(100% + 24px));
  transition: transform 220ms ease;
}

.queue-drawer.open {
  transform: translateX(0);
}

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

.queue-head button {
  min-height: 36px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.09);
  color: var(--soft);
  font-weight: 800;
}

.queue-list {
  display: grid;
  gap: 8px;
  max-height: calc(100% - 72px);
  overflow: auto;
}

.queue-item {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  width: 100%;
  padding: 8px;
  border: 1px solid transparent;
  border-radius: 12px;
  background: transparent;
  color: inherit;
  text-align: left;
}

.queue-item:hover,
.queue-item.active {
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.08);
}

.queue-art {
  width: 42px;
  height: 42px;
  border-radius: 10px;
}

.queue-copy {
  min-width: 0;
}

.queue-copy strong,
.queue-copy small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.queue-copy small,
.queue-empty {
  color: var(--muted);
}

@media (max-width: 900px) {
  .shell {
    width: min(100% - 20px, 720px);
    padding-bottom: 210px;
  }

  .hero,
  .workspace,
  .player {
    grid-template-columns: 1fr;
  }

  .hero {
    padding: 22px;
  }

  .brand-lockup {
    grid-template-columns: 60px minmax(0, 1fr);
  }

  .brand-mark {
    width: 60px;
    height: 60px;
    border-radius: 18px;
  }

  .sidebar {
    position: static;
  }

  .toolbar,
  .toolbar-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .toolbar {
    display: flex;
  }

  .track-list.discover-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .track-list:not(.discover-grid) .track-card,
  .track-card {
    grid-template-columns: 1fr;
  }

  .track-list:not(.discover-grid) .track-card::before,
  .track-card::before {
    width: min(100%, 190px);
  }

  .track-actions {
    align-items: stretch;
  }

  .track-action {
    flex: 1 1 110px;
  }

  .player {
    right: 10px;
    bottom: 10px;
    left: 10px;
    width: calc(100% - 20px);
  }

  .queue-drawer {
    right: 10px;
    bottom: 198px;
    width: calc(100% - 20px);
  }
}

/* Mobile professional pass */
@media (max-width: 760px) {
  html {
    background: #101014;
  }

  .shell {
    width: calc(100% - 20px);
    padding-top: 10px;
    padding-bottom: 292px;
  }

  .hero {
    min-height: 210px;
    padding: 18px;
    border-radius: 22px;
  }

  .brand-lockup {
    grid-template-columns: 52px minmax(0, 1fr);
    gap: 14px;
  }

  .brand-mark {
    width: 52px;
    height: 52px;
    border-radius: 16px;
    font-size: 1.5rem;
  }

  h1 {
    font-size: 2.35rem;
  }

  h2 {
    font-size: 1.45rem;
  }

  .lede,
  .shelf-head span,
  .legal-note {
    font-size: 0.9rem;
  }

  .feature-stack {
    grid-template-columns: 1fr 1fr;
  }

  .feature-card,
  .mix-card {
    min-height: 104px;
    padding: 14px;
  }

  .feature-card strong,
  .mix-card strong {
    font-size: 1rem;
  }

  .workspace {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .sidebar,
  .results-panel,
  .import-panel {
    border-radius: 20px;
  }

  .source-panel {
    padding: 12px;
  }

  .mix-row {
    grid-auto-columns: 72%;
  }

  .track-list.discover-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .track-card {
    min-height: auto;
    padding: 12px;
    border-radius: 18px;
  }

  .cover,
  .track-list:not(.discover-grid) .cover {
    width: 100%;
    border-radius: 16px;
  }

  .track-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .track-action {
    min-height: 42px;
    padding: 0 10px;
    font-size: 0.82rem;
  }

  .nav-rail {
    right: 10px;
    bottom: 10px;
    left: 10px;
    z-index: 16;
    min-height: 58px;
  }

  .rail-link {
    min-height: 42px;
    padding: 0 10px;
    font-size: 0.76rem;
  }

  .player {
    right: 10px;
    bottom: 82px;
    left: 10px;
    z-index: 15;
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 10px;
    border-radius: 20px;
  }

  .now-playing {
    grid-template-columns: 48px minmax(0, 1fr);
  }

  .art {
    width: 48px;
    height: 48px;
    border-radius: 14px;
  }

  .buttons {
    gap: 6px;
  }

  .buttons button {
    min-width: 0;
    width: 42px;
    height: 36px;
    font-size: 0.68rem;
  }

  .buttons .primary {
    width: 56px;
    height: 42px;
  }

  .scrub-row {
    gap: 8px;
  }

  .volume-row {
    display: none;
  }

  .queue-drawer {
    top: 10px;
    right: 10px;
    bottom: 152px;
    left: 10px;
    width: auto;
    border-radius: 22px;
  }

  .now-playing-sheet {
    align-items: end;
    padding: 10px;
  }

  .sheet-card {
    width: 100%;
    max-height: calc(100vh - 20px);
    overflow: auto;
    border-radius: 26px;
    padding: 18px;
  }
}

@media (max-width: 430px) {
  .track-list.discover-grid,
  .feature-stack {
    grid-template-columns: 1fr;
  }

  .toolbar-actions {
    gap: 8px;
  }

  .tabs,
  .queue-button {
    width: 100%;
  }

  .tab,
  .queue-button {
    min-height: 42px;
  }
}

@media (max-width: 520px) {
  .shell {
    width: calc(100% - 16px);
  }

  .hero {
    min-height: 250px;
  }

  .search-row,
  .tabs {
    grid-template-columns: 1fr;
  }

  .track-list.discover-grid {
    grid-template-columns: 1fr;
  }

  .source-panel {
    font-size: 0.9rem;
  }
}

/* Premium app-shell pass */
.app-shell {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  min-height: 100vh;
}

.nav-rail {
  position: sticky;
  top: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
  height: 100vh;
  padding: 18px 10px;
  border-right: 1px solid var(--line);
  background: rgba(16, 16, 20, 0.72);
  backdrop-filter: blur(24px);
}

.rail-brand {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  margin-bottom: 16px;
  border-radius: 18px;
  background: var(--accent);
  color: #fff;
  font-size: 1.35rem;
  font-weight: 900;
}

.rail-link {
  display: grid;
  place-items: center;
  width: 72px;
  min-height: 46px;
  border-radius: 16px;
  color: var(--muted);
  text-decoration: none;
  font-size: 0.78rem;
  font-weight: 800;
}

.rail-link:hover,
.rail-link.active {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.rail-button {
  background: transparent;
}

.feature-stack {
  display: grid;
  gap: 12px;
}

.feature-card,
.mix-card {
  display: grid;
  gap: 6px;
  min-height: 96px;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 18px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.04)),
    rgba(16, 16, 20, 0.52);
  color: #fff;
  text-align: left;
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.2);
}

.feature-card span,
.mix-card span {
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 900;
  text-transform: uppercase;
}

.feature-card strong,
.mix-card strong {
  font-size: 1.25rem;
}

.feature-card:hover,
.mix-card:hover {
  transform: translateY(-2px);
  background:
    linear-gradient(135deg, rgba(255, 79, 109, 0.32), rgba(255, 255, 255, 0.05)),
    rgba(16, 16, 20, 0.62);
}

.shelf {
  margin: 18px 0;
}

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

.shelf-head h2 {
  font-size: 1.4rem;
}

.shelf-head span {
  color: var(--muted);
  font-size: 0.86rem;
}

.mix-row {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(190px, 1fr);
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 4px;
  scroll-snap-type: x mandatory;
}

.mix-card {
  min-height: 130px;
  scroll-snap-align: start;
}

.track-card::before {
  display: none;
}

.cover,
.sheet-art {
  width: min(100%, 180px);
  aspect-ratio: 1;
  border-radius: 16px;
  overflow: hidden;
  background:
    radial-gradient(circle at 30% 28%, rgba(255, 255, 255, 0.32), transparent 18%),
    linear-gradient(145deg, rgba(255, 79, 109, 0.95), rgba(255, 79, 109, 0.56));
  background-size: cover;
  background-position: center;
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.28);
}

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

.track-list:not(.discover-grid) .cover {
  width: 72px;
}

.track-info {
  position: relative;
  min-width: 0;
}

.playing-bars {
  display: none;
  gap: 3px;
  align-items: end;
  height: 16px;
  margin-bottom: 8px;
}

.playing-bars i {
  width: 4px;
  border-radius: 999px;
  background: var(--accent);
  animation: level 800ms ease-in-out infinite;
}

.playing-bars i:nth-child(1) {
  height: 8px;
}

.playing-bars i:nth-child(2) {
  height: 14px;
  animation-delay: 140ms;
}

.playing-bars i:nth-child(3) {
  height: 10px;
  animation-delay: 280ms;
}

.track-card.playing .playing-bars {
  display: flex;
}

@keyframes level {
  0%, 100% {
    transform: scaleY(0.45);
  }
  50% {
    transform: scaleY(1);
  }
}

.now-playing {
  border-radius: 14px;
  cursor: pointer;
}

.art,
.queue-art {
  background-size: cover;
  background-position: center;
}

.buttons button.active {
  background: rgba(255, 79, 109, 0.22);
  color: #fff;
}

.skeleton-card {
  pointer-events: none;
}

.skeleton-cover,
.skeleton-line {
  display: block;
  border-radius: 14px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.06));
  background-size: 220% 100%;
  animation: shimmer 1200ms linear infinite;
}

.skeleton-cover {
  width: min(100%, 180px);
  aspect-ratio: 1;
}

.skeleton-line {
  width: 70%;
  height: 14px;
}

.skeleton-line.wide {
  width: 92%;
}

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

.import-panel {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 18px;
  margin-top: 18px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--paper);
  box-shadow: 0 14px 42px rgba(0, 0, 0, 0.22);
}

.import-copy p {
  color: var(--muted);
  line-height: 1.6;
}

.import-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: 16px;
}

.legal-note {
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 0.82rem;
}

.now-playing-sheet {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(0, 0, 0, 0.62);
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease;
}

.now-playing-sheet.open {
  opacity: 1;
  pointer-events: auto;
}

.sheet-card {
  position: relative;
  display: grid;
  grid-template-columns: minmax(220px, 360px) minmax(0, 420px);
  gap: 24px;
  align-items: center;
  width: min(840px, 100%);
  padding: 24px;
  border: 1px solid var(--line-strong);
  border-radius: 24px;
  background: rgba(24, 24, 28, 0.96);
  box-shadow: var(--shadow);
  backdrop-filter: blur(24px);
}

.sheet-close {
  position: absolute;
  top: 22px;
  right: 22px;
  min-height: 38px;
  padding: 0 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  font-weight: 800;
}

.sheet-art {
  width: 100%;
}

.sheet-license {
  color: var(--gold);
  line-height: 1.5;
}

@media (max-width: 900px) {
  .app-shell {
    display: block;
  }

  .nav-rail {
    position: fixed;
    right: 10px;
    bottom: 116px;
    left: 10px;
    top: auto;
    z-index: 13;
    flex-direction: row;
    justify-content: space-around;
    height: auto;
    padding: 8px;
    border: 1px solid var(--line-strong);
    border-radius: 18px;
    background: rgba(24, 24, 28, 0.86);
  }

  .rail-brand {
    display: none;
  }

  .rail-link {
    width: auto;
    min-height: 40px;
    padding: 0 12px;
  }

  .shell {
    padding-bottom: 274px;
  }

  .track-list:not(.discover-grid) .cover,
  .cover {
    width: min(100%, 190px);
  }

  .queue-drawer {
    bottom: 250px;
  }

  .import-panel,
  .import-grid,
  .sheet-card {
    grid-template-columns: 1fr;
  }
}
