:root {
  --bg: #0a0d14;
  --panel: #101723;
  --panel-2: #131d2d;
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.16);
  --text: #f2f5fb;
  --muted: #8fa0bd;
  --accent-a: #48f0d4;
  --accent-b: #ff4fd8;
  --accent-c: #ffd74a;
  --danger: #ff6b7b;
  --radius-lg: 28px;
  --radius-md: 18px;
  --radius-sm: 12px;
  --sticky-table-offset: 124px;
  --feed-waveform-height: 236px;
  --comment-scale: 1;
}

* {
  box-sizing: border-box;
}

* {
  scrollbar-color: rgba(105, 119, 143, 0.72) rgba(4, 7, 12, 0.78);
  scrollbar-width: thin;
}

*::-webkit-scrollbar {
  width: 12px;
  height: 12px;
}

*::-webkit-scrollbar-track {
  background: rgba(4, 7, 12, 0.82);
  border-radius: 999px;
}

*::-webkit-scrollbar-thumb {
  min-height: 44px;
  border: 3px solid rgba(8, 11, 17, 0.96);
  border-radius: 999px;
  background: rgba(105, 119, 143, 0.72);
}

*::-webkit-scrollbar-thumb:hover {
  background: rgba(143, 160, 189, 0.88);
}

*::-webkit-scrollbar-corner {
  background: rgba(8, 11, 17, 0.96);
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Manrope", Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at top left, rgba(72, 240, 212, 0.08), transparent 30%),
    radial-gradient(circle at right center, rgba(255, 79, 216, 0.08), transparent 24%),
    linear-gradient(180deg, #0b0f18, #080b10 55%, #07090e);
  color: var(--text);
}

button,
input,
select {
  font: inherit;
}

a {
  color: inherit;
  text-decoration: none;
}

a:hover,
a:focus-visible {
  text-decoration: none;
}

.app-shell {
  display: grid;
  grid-template-columns: 290px minmax(0, 1fr);
  align-items: start;
  min-height: 100vh;
}

.mobile-nav-backdrop {
  position: fixed;
  inset: 0;
  z-index: 19;
  background: rgba(2, 4, 8, 0.72);
  backdrop-filter: blur(12px);
}

.sidebar {
  position: sticky !important;
  top: 0;
  align-self: start;
  height: 100vh;
  overflow-y: auto;
  border-right: 1px solid var(--line);
  padding: 28px 22px;
  background: rgba(9, 12, 18, 0.96);
  backdrop-filter: blur(18px);
  z-index: 20;
}

.brand,
.rail-head,
.topbar,
.track-head,
.track-main,
.track-meta,
.player-controls,
.player-times,
.modal-head,
.modal-actions {
  display: flex;
  align-items: center;
}

.brand {
  gap: 14px;
  margin-bottom: 20px;
}

.user-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 38px;
  gap: 8px;
  align-items: center;
  margin-bottom: 22px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.025);
}

.profile-button {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--text);
  text-align: left;
  cursor: pointer;
}

.profile-avatar {
  flex: 0 0 38px;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(72, 240, 212, 0.35), rgba(255, 79, 216, 0.28));
  color: var(--text);
  font-weight: 800;
}

.profile-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
}

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

.profile-button small {
  color: var(--muted);
  font-size: 12px;
}

.brand-mark {
  width: 20px;
  height: 20px;
  border-radius: 6px;
  background: linear-gradient(135deg, var(--accent-a), var(--accent-b), var(--accent-c));
}

.brand h1,
.drop-inner h2,
.player-meta h2,
.modal-head h3 {
  margin: 0;
}

.brand h1 {
  font-size: 30px;
  letter-spacing: -0.04em;
}

.eyebrow {
  margin: 0 0 4px;
  color: var(--muted);
  text-transform: uppercase;
  font-size: 11px;
  letter-spacing: 0.22em;
}

.side-nav {
  display: grid;
  gap: 8px;
}

.nav-link,
.playlist-item,
.queue-toggle,
.track-row,
.accent-button,
.sort-select,
.search-input,
.playlist-title,
.drop-zone,
.player-card,
.modal-card,
.modal-form input,
.modal-form textarea,
.modal-form select,
.toolbar-actions button,
.toolbar-actions select {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.02);
  color: var(--text);
}

.nav-link,
.playlist-item {
  width: 100%;
  text-align: left;
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.playlist-item small {
  color: var(--muted);
}

.nav-link.active,
.playlist-item.active {
  border-color: rgba(72, 240, 212, 0.32);
  background: linear-gradient(90deg, rgba(72, 240, 212, 0.12), rgba(255, 79, 216, 0.08));
}

.playlist-rail {
  margin-top: 28px;
}

.rail-head {
  justify-content: space-between;
  margin-bottom: 12px;
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.playlist-list {
  display: grid;
  gap: 8px;
}

.current-playlist-card {
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: linear-gradient(90deg, rgba(72, 240, 212, 0.1), rgba(255, 79, 216, 0.06));
  transition: border-color 150ms ease, background-color 150ms ease, box-shadow 150ms ease;
}

.current-playlist-card:hover,
.current-playlist-card:focus-within,
.playlist-item:hover,
.playlist-item:focus-visible {
  border-color: rgba(242, 245, 251, 0.18);
  background-color: rgba(255, 255, 255, 0.035);
  box-shadow: inset 0 0 0 1px rgba(242, 245, 251, 0.03);
}

.current-playlist-card h3,
.current-playlist-card p {
  margin: 0;
}

.current-playlist-card h3 {
  font-size: 16px;
}

.current-playlist-card p {
  margin-top: 6px;
  color: var(--muted);
  font-size: 13px;
}

.current-playlist-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.current-playlist-actions button {
  width: 38px;
  height: 38px;
  min-width: 38px;
  flex: 0 0 38px;
  padding: 0;
  display: grid;
  place-items: center;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  cursor: pointer;
}

.current-playlist-actions button span {
  display: none;
}

.current-playlist-actions svg,
.playlist-table-row svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.main-panel {
  padding: 20px 24px 180px;
  min-width: 0;
}

.queue-menu {
  position: relative;
}

.queue-bell {
  position: relative;
  width: 48px;
  height: 48px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.02);
  color: var(--text);
  cursor: pointer;
}

.queue-bell-icon {
  width: 18px;
  height: 18px;
  display: inline-flex;
}

.queue-bell-icon svg {
  width: 100%;
  height: 100%;
}

.queue-badge {
  position: absolute;
  top: -4px;
  right: -2px;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: linear-gradient(90deg, var(--accent-b), var(--accent-c));
  color: #0b0f18;
  font-size: 11px;
  font-weight: 700;
}

.queue-panel {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  width: min(420px, 88vw);
  border-radius: 20px;
  border: 1px solid var(--line-strong);
  background: rgba(12, 17, 26, 0.98);
  overflow: hidden;
  z-index: 55;
}

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

.queue-clear {
  padding: 7px 10px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  cursor: pointer;
}

.queue-clear:disabled {
  opacity: 0.42;
  cursor: default;
}

.queue-items {
  display: grid;
  gap: 10px;
  max-height: 360px;
  overflow: auto;
  padding: 14px 16px 16px;
}

.queue-items,
.playlist-picker-list,
.track-table {
  scrollbar-color: rgba(105, 119, 143, 0.68) rgba(4, 7, 12, 0.72);
  scrollbar-width: thin;
}

.queue-item {
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid var(--line);
}

.queue-track-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.queue-track-head span {
  color: var(--accent-a);
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}

.queue-item.complete {
  opacity: 0.45;
}

.queue-item.failed {
  border-color: rgba(255, 107, 123, 0.34);
}

.queue-item.uploading {
  border-color: rgba(72, 240, 212, 0.28);
}

.queue-item.complete {
  border-color: rgba(72, 240, 212, 0.2);
}

.queue-item small {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
}

.queue-bar {
  margin-top: 8px;
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  overflow: hidden;
}

.queue-bar > div {
  height: 100%;
  background: linear-gradient(90deg, var(--accent-a), var(--accent-b), var(--accent-c));
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 45;
  gap: 20px;
  justify-content: space-between;
  margin: -20px -24px 20px;
  padding: 20px 24px 16px;
  align-items: flex-start;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  background:
    radial-gradient(circle at top left, rgba(72, 240, 212, 0.1), transparent 28%),
    radial-gradient(circle at top right, rgba(255, 79, 216, 0.08), transparent 22%),
    rgba(8, 11, 17, 0.92);
  backdrop-filter: blur(18px);
}

.guest-mode .topbar {
  display: none;
}

.guest-mode {
  --sticky-table-offset: 20px;
}

.locked-login-mode {
  min-height: 100vh;
  background: #05080d;
}

.locked-login-mode .sidebar,
.locked-login-mode .topbar,
.locked-login-mode .mini-player,
.locked-login-mode .player-overlay,
.locked-login-mode .mobile-nav-backdrop {
  display: none !important;
}

.locked-login-mode .app-shell {
  display: block;
  min-height: 100vh;
}

.locked-login-mode .main-panel {
  min-height: 100vh;
  padding: 24px;
  display: grid;
  place-items: center;
}

.locked-login-mode .track-list {
  width: min(360px, 100%);
  margin: 0 auto;
}

.locked-login-panel {
  width: 100%;
}

.locked-login-form {
  display: grid;
  gap: 14px;
}

.locked-login-form label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
}

.locked-login-form input {
  width: 100%;
  padding: 13px 14px;
  border-radius: 8px;
  border: 1px solid var(--line-strong);
  outline: none;
  background: rgba(12, 17, 26, 0.98);
  color: var(--text);
  color-scheme: dark;
}

.locked-login-form input:focus {
  border-color: rgba(72, 240, 212, 0.42);
}

.locked-login-form button {
  justify-content: center;
}

.title-wrap {
  min-width: 220px;
  display: grid;
  grid-template-columns: minmax(0, auto) 38px;
  align-items: center;
  gap: 8px;
}

.title-wrap .eyebrow {
  grid-column: 1 / -1;
}

.title-edit-button {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  display: grid;
  place-items: center;
  cursor: pointer;
}

.title-edit-button svg,
.modal-head button svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.topbar-left {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.mobile-nav-toggle {
  display: none;
  width: 46px;
  height: 46px;
  padding: 0;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.02);
  cursor: pointer;
}

.mobile-nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  background: var(--text);
  border-radius: 999px;
}

.playlist-title {
  width: 100%;
  min-width: 0;
  max-width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 700;
  outline: none;
}

.toolbar-center {
  flex: 1 1 760px;
  position: relative;
  display: flex;
  justify-content: center;
  min-width: 0;
  align-items: flex-start;
}

.search-shell {
  width: 100%;
  max-width: 980px;
  height: 52px;
  min-height: 52px;
  max-height: 52px;
  flex: 0 1 980px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid rgba(72, 240, 212, 0.16);
  background:
    linear-gradient(90deg, rgba(72, 240, 212, 0.06), rgba(255, 79, 216, 0.04)),
    rgba(255, 255, 255, 0.03);
  overflow: hidden;
}

.clear-search {
  width: 28px;
  height: 28px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  cursor: pointer;
}

.search-icon {
  color: var(--accent-a);
  width: 18px;
  height: 18px;
  display: inline-flex;
}

.search-icon svg {
  width: 100%;
  height: 100%;
}

.search-input {
  width: 100%;
  min-width: 0;
  height: 100%;
  padding: 14px 0;
  border: 0;
  background: transparent;
  outline: none;
}

.search-input::placeholder {
  color: rgba(242, 245, 251, 0.62);
}

.global-search-results {
  position: absolute;
  top: calc(100% + 10px);
  left: 50%;
  z-index: 60;
  width: min(980px, 100%);
  max-height: min(620px, calc(100vh - 150px));
  padding: 10px;
  transform: translateX(-50%);
  overflow: auto;
  border: 1px solid var(--line-strong);
  border-radius: 18px;
  background:
    radial-gradient(circle at top left, rgba(72, 240, 212, 0.12), transparent 30%),
    radial-gradient(circle at bottom right, rgba(255, 79, 216, 0.1), transparent 30%),
    rgba(9, 13, 20, 0.98);
  box-shadow: 0 22px 72px rgba(0, 0, 0, 0.42);
  backdrop-filter: blur(18px);
}

.global-search-group {
  display: grid;
  gap: 6px;
  padding: 6px;
}

.global-search-group + .global-search-group {
  border-top: 1px solid var(--line);
  padding-top: 10px;
}

.global-search-item {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  width: 100%;
  padding: 8px;
  border: 1px solid transparent;
  border-radius: 12px;
  background: transparent;
  color: var(--text);
  text-align: left;
  cursor: pointer;
}

.global-search-item:hover,
.global-search-item:focus-visible {
  border-color: rgba(72, 240, 212, 0.22);
  background: rgba(72, 240, 212, 0.07);
  outline: none;
}

.global-search-art {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 10px;
  border: 1px solid var(--line);
  background:
    radial-gradient(circle at top left, rgba(72, 240, 212, 0.26), transparent 48%),
    radial-gradient(circle at bottom right, rgba(255, 79, 216, 0.2), transparent 42%),
    rgba(255, 255, 255, 0.035);
}

.global-search-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.global-search-art svg {
  width: 22px;
  height: 22px;
  color: var(--muted);
}

.text-art {
  color: var(--accent-a);
  font-weight: 800;
}

.global-search-item span:not(.global-search-art) {
  min-width: 0;
}

.global-search-item strong,
.global-search-item small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.global-search-item small,
.global-search-item em {
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
}

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

.filter-toggle {
  display: none;
}

.sort-select,
.accent-button,
.add-dropdown button,
.overlay-close,
.player-controls button,
.modal-head button,
.track-button {
  padding: 12px 16px;
  border-radius: 999px;
  cursor: pointer;
}

.sort-select {
  min-width: 190px;
  color-scheme: dark;
  background-color: rgba(12, 17, 26, 0.96);
}

.filter-select {
  min-width: 150px;
}

.load-more-row {
  width: 100%;
  padding: 14px;
  border: 0;
  border-top: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.025);
  color: var(--text);
  cursor: pointer;
}

.auto-load-more {
  margin-bottom: 18px;
}

.feed-grid {
  display: grid;
  gap: 16px;
}

.feed-card {
  position: relative;
  display: grid;
  grid-template-columns: 168px minmax(0, 1fr);
  gap: 18px;
  align-items: stretch;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background:
    radial-gradient(circle at 14% 15%, var(--feed-a, rgba(72, 240, 212, 0.14)), transparent 34%),
    radial-gradient(circle at 88% 80%, var(--feed-b, rgba(255, 79, 216, 0.11)), transparent 38%),
    radial-gradient(circle at 52% 108%, var(--feed-c, rgba(255, 215, 74, 0.08)), transparent 42%),
    linear-gradient(135deg, rgba(14, 24, 34, 0.92), rgba(18, 13, 27, 0.86));
  box-shadow: 0 22px 70px rgba(0, 0, 0, 0.22);
  animation: item-fade-in 240ms ease both;
  transition: border-color 160ms ease, box-shadow 160ms ease, filter 160ms ease;
}

@keyframes item-fade-in {
  from {
    opacity: 0;
    transform: translateY(4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.feed-card.active {
  border-color: var(--feed-border, rgba(72, 240, 212, 0.72));
  box-shadow:
    0 0 0 1px rgba(72, 240, 212, 0.2),
    0 0 26px var(--feed-a, rgba(72, 240, 212, 0.22)),
    0 24px 80px rgba(0, 0, 0, 0.36);
}

.feed-card:hover,
.feed-card:focus-within {
  border-color: var(--feed-border, rgba(242, 245, 251, 0.22));
  filter: brightness(1.06);
  box-shadow:
    0 0 0 1px rgba(242, 245, 251, 0.035),
    0 24px 76px rgba(0, 0, 0, 0.28);
}

.feed-card.active:hover,
.feed-card.active:focus-within {
  border-color: var(--feed-border, rgba(72, 240, 212, 0.82));
  box-shadow:
    0 0 0 1px rgba(72, 240, 212, 0.25),
    0 0 32px var(--feed-a, rgba(72, 240, 212, 0.28)),
    0 26px 86px rgba(0, 0, 0, 0.4);
}

.feed-card.status-pending,
.feed-card.status-processing {
  background:
    radial-gradient(circle at 14% 15%, rgba(72, 240, 212, 0.18), transparent 34%),
    radial-gradient(circle at 88% 80%, rgba(255, 209, 71, 0.12), transparent 38%),
    linear-gradient(135deg, rgba(14, 24, 34, 0.92), rgba(18, 13, 27, 0.86));
}

.feed-card.status-failed {
  border-color: rgba(255, 107, 123, 0.32);
}

.feed-artwork {
  position: relative;
  width: 168px;
  height: 168px;
  align-self: start;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  overflow: hidden;
  background:
    linear-gradient(145deg, rgba(72, 240, 212, 0.24), transparent 46%),
    linear-gradient(315deg, rgba(255, 79, 216, 0.22), transparent 42%),
    rgba(255, 255, 255, 0.04);
  cursor: pointer;
}

.feed-artwork .artwork-play {
  inset: auto 10px 10px auto;
  width: 38px;
  height: 38px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  background: rgba(5, 8, 13, 0.62);
  opacity: 1;
  backdrop-filter: blur(10px);
}

.feed-artwork img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.feed-card-main {
  display: grid;
  gap: 13px;
  min-width: 0;
  overflow: hidden;
}

.feed-card-head {
  display: flex;
  gap: 16px;
  justify-content: space-between;
  align-items: start;
  min-width: 0;
}

.feed-title {
  margin: 2px 0 4px;
  font-size: clamp(20px, 2vw, 30px);
  line-height: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 0;
}

.feed-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
  max-width: 46%;
}

.feed-meta .meta-pill {
  color: var(--text);
  background: rgba(255, 255, 255, 0.045);
}

.feed-wave-shell {
  height: 118px;
  border-radius: 16px;
  cursor: pointer;
}

.feed-waveform-height-enabled .feed-wave-shell {
  height: var(--feed-waveform-height);
}

.feed-progress {
  width: 100%;
  margin-top: 0;
}

.feed-actions {
  justify-content: flex-start;
  flex-wrap: wrap;
}

.feed-load-more {
  border: 1px solid var(--line);
  border-radius: 14px;
}

.track-list:empty::before {
  content: "Loading library...";
  display: block;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--muted);
  background: linear-gradient(90deg, rgba(72, 240, 212, 0.04), rgba(255, 79, 216, 0.03));
}

.track-list:empty::after {
  content: "";
  display: block;
  width: 28px;
  height: 28px;
  margin: -54px 24px 24px auto;
  border: 3px solid rgba(255, 255, 255, 0.12);
  border-top-color: var(--accent-a);
  border-radius: 999px;
  animation: spin 900ms linear infinite;
}

.processing-notice {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  margin-bottom: 12px;
  padding: 14px 16px;
  border-radius: 8px;
  border: 1px solid rgba(143, 160, 189, 0.2);
  background:
    linear-gradient(90deg, rgba(143, 160, 189, 0.11), rgba(255, 255, 255, 0.035)),
    rgba(255, 255, 255, 0.018);
  opacity: 0.82;
}

.processing-notice h3,
.processing-notice p {
  margin: 0;
}

.processing-notice button {
  padding: 10px 13px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  cursor: pointer;
}

.upload-panel {
  display: grid;
  gap: 1px;
  margin: 0 0 16px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.035);
}

.upload-row {
  display: grid;
  grid-template-columns: minmax(170px, 1.5fr) 110px minmax(150px, 1fr) minmax(160px, 1fr);
  gap: 14px;
  align-items: center;
  padding: 13px 14px;
  background: rgba(10, 13, 20, 0.78);
  color: var(--muted);
  font-size: 13px;
}

.upload-row > span:first-child,
.upload-row strong {
  color: var(--text);
}

.upload-row.failed {
  color: var(--danger);
}

.upload-row.complete {
  color: var(--accent-a);
}

.detail-surface {
  display: grid;
  gap: 16px;
}

.detail-card {
  margin: 0;
}

.detail-meta h3,
.artist-summary h3,
.artist-summary p {
  margin: 0;
}

.detail-link-list {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.detail-link-list button,
.detail-link-list a {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.025);
  color: var(--text);
  text-align: left;
  text-decoration: none;
  cursor: pointer;
}

.detail-link-list button:hover,
.detail-link-list button:focus-visible,
.detail-link-list a:hover,
.detail-link-list a:focus-visible {
  border-color: rgba(72, 240, 212, 0.24);
  background: rgba(72, 240, 212, 0.07);
  outline: none;
}

.detail-link-list span {
  color: var(--muted);
  font-size: 12px;
}

.artist-summary {
  display: grid;
  gap: 6px;
  margin-bottom: 12px;
}

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

.sort-select option {
  color: var(--text);
  background: #0d131d;
}

.sort-select option:checked,
.sort-select option:hover {
  color: var(--text);
  background: #263241;
}

.accent-button {
  background: linear-gradient(90deg, rgba(72, 240, 212, 0.16), rgba(255, 79, 216, 0.16));
}

.add-menu {
  position: relative;
}

.add-dropdown {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  min-width: 180px;
  padding: 8px;
  border-radius: 18px;
  border: 1px solid var(--line-strong);
  background: rgba(10, 14, 21, 0.98);
  z-index: 30;
}

.add-dropdown.hidden,
.hidden {
  display: none !important;
}

.add-dropdown button,
.modal-head button,
.overlay-close,
.player-controls button,
.track-button {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  border: 1px solid var(--line);
}

.add-dropdown button {
  width: 100%;
  border-radius: 12px;
  text-align: left;
}

.icon-button,
.accent-button,
.add-dropdown button,
.player-controls button,
.track-button,
.track-play-button,
.mini-player-actions button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
}

.icon-button svg,
.accent-button svg,
.add-dropdown button svg,
.player-controls button svg,
.track-button svg,
.track-play-button svg,
.mini-player-actions button svg,
.artwork-play svg {
  width: 17px;
  height: 17px;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.danger-action {
  color: #ffd6dc;
}

.drop-zone {
  min-height: 126px;
  border-radius: var(--radius-lg);
  display: grid;
  place-items: center;
  padding: 22px 28px;
  border-style: solid;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0.015)),
    radial-gradient(circle at top, rgba(72, 240, 212, 0.1), transparent 35%);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.drop-zone.drag-over {
  border-color: rgba(72, 240, 212, 0.42);
  background:
    linear-gradient(180deg, rgba(72, 240, 212, 0.06), rgba(255, 79, 216, 0.04)),
    rgba(255, 255, 255, 0.03);
}

.drop-overlay {
  position: fixed;
  inset: 12px;
  z-index: 30;
  display: grid;
  place-items: center;
  border: 1px solid rgba(72, 240, 212, 0.28);
  background:
    linear-gradient(180deg, rgba(8, 12, 19, 0.82), rgba(8, 12, 19, 0.9)),
    radial-gradient(circle at top, rgba(72, 240, 212, 0.08), transparent 35%);
  backdrop-filter: blur(12px);
}

.drop-overlay .drop-inner {
  max-width: 720px;
}

.drop-zone.compact {
  min-height: 94px;
  margin-bottom: 16px;
}

.drop-zone.compact .drop-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  text-align: left;
}

.drop-zone.compact .drop-inner h2,
.drop-zone.compact .drop-inner p {
  margin: 0;
}

.drop-zone.compact .drop-inner h2 {
  font-size: 22px;
}

.track-list {
  display: block;
  margin-top: 8px;
  padding-bottom: 96px;
}

.track-table {
  margin-top: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: visible;
  background: rgba(255, 255, 255, 0.018);
}

.track-table-header,
.track-row {
  display: grid;
  grid-template-columns: 34px minmax(230px, 1.25fr) minmax(280px, 1.45fr) minmax(150px, 0.8fr) minmax(130px, 0.7fr) 62px 62px 62px 204px;
  gap: 10px;
  align-items: center;
}

.track-table-header {
  position: sticky;
  top: var(--sticky-table-offset);
  z-index: 35;
  padding: 9px 12px;
  border-bottom: 1px solid var(--line);
  border-radius: 8px 8px 0 0;
  background: rgba(8, 11, 17, 0.98);
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.track-table-header button {
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  text-align: left;
  text-transform: inherit;
  letter-spacing: inherit;
  cursor: pointer;
}

.row-filter-shell {
  height: 30px;
  display: flex;
  align-items: center;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 999px;
  background:
    linear-gradient(90deg, rgba(72, 240, 212, 0.055), rgba(255, 79, 216, 0.04)),
    rgba(255, 255, 255, 0.025);
}

.row-filter-input {
  width: 100%;
  min-width: 0;
  height: 100%;
  padding: 0 12px;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text);
  font-size: 12px;
  letter-spacing: 0;
  text-transform: none;
}

.row-filter-input::placeholder {
  color: rgba(143, 160, 189, 0.84);
}

.track-row {
  padding: 7px 12px;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  animation: item-fade-in 220ms ease both;
  transition: background 150ms ease, box-shadow 150ms ease, border-color 150ms ease;
}

.track-row:last-child {
  border-bottom: 0;
}

.track-row.dragging {
  opacity: 0.5;
}

.track-row.drag-target {
  outline: 1px solid rgba(72, 240, 212, 0.58);
  outline-offset: -2px;
}

.track-row.active {
  border-color: rgba(72, 240, 212, 0.34);
  background: linear-gradient(90deg, rgba(72, 240, 212, 0.15), rgba(255, 79, 216, 0.07));
  box-shadow:
    inset 3px 0 0 rgba(72, 240, 212, 0.82),
    inset 0 0 0 1px rgba(72, 240, 212, 0.08),
    0 0 22px rgba(72, 240, 212, 0.08);
}

.track-row:hover,
.track-row:focus-within {
  background: rgba(255, 255, 255, 0.035);
  box-shadow: inset 0 0 0 1px rgba(242, 245, 251, 0.035);
}

.track-row.active:hover,
.track-row.active:focus-within {
  background: linear-gradient(90deg, rgba(72, 240, 212, 0.19), rgba(255, 79, 216, 0.09));
  box-shadow:
    inset 3px 0 0 rgba(72, 240, 212, 0.92),
    inset 0 0 0 1px rgba(72, 240, 212, 0.12),
    0 0 26px rgba(72, 240, 212, 0.12);
}

.track-index {
  color: var(--muted);
  font-size: 12px;
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.artwork {
  width: 42px;
  height: 42px;
  position: relative;
  border-radius: 6px;
  background:
    radial-gradient(circle at top, rgba(72, 240, 212, 0.42), transparent 45%),
    radial-gradient(circle at bottom right, rgba(255, 79, 216, 0.35), transparent 35%),
    linear-gradient(160deg, #0d1420, #162033);
  overflow: hidden;
}

.artwork-control {
  padding: 0;
  border: 0;
  cursor: pointer;
  color: var(--text);
}

.artwork-play {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: rgba(5, 8, 13, 0.48);
  opacity: 0;
  transition: opacity 160ms ease;
}

.artwork-control:hover .artwork-play,
.artwork-control:focus-visible .artwork-play {
  opacity: 1;
}

.artwork img,
.player-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.track-main {
  gap: 16px;
  min-width: 0;
  align-items: center;
}

.track-cell,
.track-copy {
  min-width: 0;
    text-decoration: none;
}

.track-title-cell {
  display: flex;
  gap: 10px;
  align-items: center;
}

.track-title {
  margin: 0 0 3px;
  font-size: 14px;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.inline-link,
.inline-link-text {
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  letter-spacing: 0;
  text-align: inherit;
  text-decoration: none;
  cursor: pointer;
}

.inline-link:hover,
.inline-link:focus-visible,
.inline-link-text:hover,
.inline-link-text:focus-visible {
  color: var(--accent-a);
  text-decoration: none;
}

.track-subtitle,
.meta-pill {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.track-muted,
.track-number,
.track-key {
  color: var(--muted);
  font-size: 12px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.track-number,
.track-key {
  color: var(--text);
  font-variant-numeric: tabular-nums;
}

.meta-pill {
  padding: 8px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--line);
}

.wave-wrap {
  min-width: 0;
}

.wave-canvas,
#player-waveform {
  width: 100%;
  height: 100%;
  display: block;
}

.wave-shell {
  position: relative;
  height: 32px;
  border-radius: 6px;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.01));
  border: 1px solid var(--line);
  touch-action: manipulation;
}

.feed-wave-shell {
  overflow: visible;
}

.comment-timeline {
  position: absolute;
  left: calc(10px * var(--comment-scale));
  right: calc(10px * var(--comment-scale));
  bottom: calc(12px * var(--comment-scale));
  height: calc(28px * var(--comment-scale));
  pointer-events: none;
  z-index: 4;
}

.comment-pop-layer {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 6;
}

.comment-pop {
  position: absolute;
  bottom: calc(30px * var(--comment-scale));
  max-width: min(calc(220px * var(--comment-scale)), 42vw);
  display: grid;
  gap: calc(2px * var(--comment-scale));
  padding: calc(7px * var(--comment-scale)) calc(9px * var(--comment-scale));
  border: 1px solid rgba(242, 245, 251, 0.16);
  border-radius: calc(7px * var(--comment-scale));
  background: rgba(8, 11, 17, 0.9);
  color: var(--text);
  font-size: calc(11px * var(--comment-scale));
  line-height: 1.2;
  pointer-events: auto;
  transform: translate(-50%, calc(8px * var(--comment-scale))) scale(0.96);
  opacity: 0;
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.36);
  animation: comment-pop-in 180ms ease forwards;
}

.comment-pop.leaving {
  animation: comment-pop-out 220ms ease forwards;
}

.comment-pop .comment-author {
  color: var(--muted);
  font-size: calc(9px * var(--comment-scale));
  overflow: hidden;
  text-overflow: ellipsis;
}

.comment-pop span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.comment-marker {
  position: absolute;
  bottom: 0;
  transform: translateX(-50%);
  display: flex;
  align-items: flex-end;
  gap: calc(6px * var(--comment-scale));
  pointer-events: auto;
}

.comment-avatar,
.comment-composer-avatar {
  width: calc(24px * var(--comment-scale));
  height: calc(24px * var(--comment-scale));
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.32);
  border-radius: 999px;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(72, 240, 212, 0.38), rgba(255, 79, 216, 0.34));
  color: var(--text);
  font-size: calc(11px * var(--comment-scale));
  font-weight: 800;
  letter-spacing: 0;
}

.comment-avatar {
  padding: 0;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.32);
}

.comment-avatar img,
.comment-composer-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.comment-bubble {
  max-width: calc(170px * var(--comment-scale));
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: calc(1px * var(--comment-scale)) calc(6px * var(--comment-scale));
  align-items: center;
  padding: calc(5px * var(--comment-scale)) calc(7px * var(--comment-scale));
  border-radius: calc(6px * var(--comment-scale));
  border: 1px solid rgba(242, 245, 251, 0.14);
  background: rgba(8, 11, 17, 0.88);
  color: var(--text);
  font-size: calc(11px * var(--comment-scale));
  line-height: 1.15;
  opacity: 0;
  transform: translateY(calc(3px * var(--comment-scale)));
  transition: opacity 150ms ease, transform 150ms ease;
  white-space: nowrap;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.34);
}

.comment-marker:hover .comment-bubble,
.comment-marker:focus-within .comment-bubble {
  opacity: 1;
  transform: translateY(0);
}

.comment-bubble .comment-author,
.comment-bubble span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.comment-bubble .comment-author {
  color: var(--muted);
  font-size: calc(9px * var(--comment-scale));
  grid-column: 1 / 2;
}

.comment-bubble span {
  grid-column: 1 / 2;
}

.comment-delete {
  grid-column: 2 / 3;
  grid-row: 1 / 3;
  width: calc(20px * var(--comment-scale));
  height: calc(20px * var(--comment-scale));
  padding: 0;
  border: 1px solid rgba(255, 107, 123, 0.24);
  border-radius: calc(5px * var(--comment-scale));
  background: rgba(255, 107, 123, 0.12);
  color: #ffd6dc;
  cursor: pointer;
}

.comment-delete svg {
  width: calc(12px * var(--comment-scale));
  height: calc(12px * var(--comment-scale));
}

.comment-composer {
  display: grid;
  grid-template-columns: calc(24px * var(--comment-scale)) minmax(0, 1fr) auto;
  gap: calc(8px * var(--comment-scale));
  align-items: center;
  margin-top: calc(8px * var(--comment-scale));
}

.comment-composer input {
  min-width: 0;
  height: calc(34px * var(--comment-scale));
  padding: 0 calc(11px * var(--comment-scale));
  border: 1px solid var(--line);
  border-radius: calc(6px * var(--comment-scale));
  background: rgba(255, 255, 255, 0.035);
  color: var(--text);
  font-size: calc(12px * var(--comment-scale));
}

.comment-composer button {
  height: calc(34px * var(--comment-scale));
}

.player-comments {
  width: min(760px, 100%);
  margin: -8px auto 16px;
}

.player-comments .comment-timeline {
  position: relative;
  left: auto;
  right: auto;
  bottom: auto;
  height: calc(34px * var(--comment-scale));
  margin: 0 calc(12px * var(--comment-scale)) calc(8px * var(--comment-scale));
  border-bottom: 1px solid rgba(242, 245, 251, 0.13);
}

.player-comments .comment-marker {
  bottom: calc(-12px * var(--comment-scale));
}

.player-comments .comment-composer {
  margin-top: calc(16px * var(--comment-scale));
}

@keyframes comment-pop-in {
  to {
    opacity: 1;
    transform: translate(-50%, 0) scale(1);
  }
}

@keyframes comment-pop-out {
  from {
    opacity: 1;
    transform: translate(-50%, 0) scale(1);
  }
  to {
    opacity: 0;
    transform: translate(-50%, calc(-8px * var(--comment-scale))) scale(0.96);
  }
}

.track-actions {
  display: flex;
  gap: 6px;
  align-items: center;
  justify-content: flex-end;
}

.track-play-button {
  min-width: 44px;
  width: auto;
  height: 36px;
  padding: 0 12px;
  border-radius: 6px;
  border: 1px solid rgba(72, 240, 212, 0.24);
  background: linear-gradient(135deg, rgba(72, 240, 212, 0.14), rgba(255, 79, 216, 0.1));
  color: var(--text);
  cursor: pointer;
  font-size: 16px;
}

.track-actions .track-button,
.track-actions .track-play-button {
  height: 32px;
  min-width: 32px;
  width: 34px;
  padding: 0;
}

.track-actions .track-button span,
.track-actions .track-play-button span {
  display: none;
}

.track-actions button:disabled {
  cursor: not-allowed;
  opacity: 0.42;
}

.track-progress {
  width: min(180px, 100%);
  height: 4px;
  margin-top: 5px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.track-progress span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--accent-a), var(--accent-b), var(--accent-c));
}

.analysis-label {
  margin: 4px 0 0;
  color: var(--accent-a);
  font-size: 11px;
}

.scope-badge {
  display: inline-flex;
  margin-left: 6px;
  padding: 2px 7px;
  border: 1px solid rgba(72, 240, 212, 0.18);
  border-radius: 999px;
  color: var(--accent-a);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.owner-credit {
  color: var(--muted);
  font-size: 11px;
}

.inline-password {
  width: 100%;
  min-width: 0;
  padding: 9px 10px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.025);
  color: var(--text);
}

.user-admin-table {
  margin-top: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.018);
}

.user-admin-header,
.user-admin-row {
  display: grid;
  grid-template-columns: minmax(300px, 1.2fr) minmax(132px, 0.52fr) minmax(260px, 0.9fr) minmax(190px, 0.6fr) minmax(168px, 0.52fr);
  gap: 14px;
  align-items: center;
  padding: 14px;
}

.user-admin-header {
  position: sticky;
  top: var(--sticky-table-offset);
  z-index: 35;
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  border-bottom: 1px solid var(--line);
  background: rgba(8, 11, 17, 0.98);
}

.user-admin-row {
  border-bottom: 1px solid var(--line);
}

.user-admin-row:last-child {
  border-bottom: 0;
}

.user-admin-row:hover,
.user-admin-row:focus-within {
  background: rgba(255, 255, 255, 0.035);
  box-shadow: inset 0 0 0 1px rgba(242, 245, 251, 0.035);
}

.user-admin-row.is-disabled {
  opacity: 0.72;
}

.user-admin-identity {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  min-width: 0;
}

.user-admin-avatar {
  width: 48px;
  height: 48px;
}

.user-admin-fields,
.user-admin-access,
.user-admin-limits,
.user-admin-password {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.user-admin-fields {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.user-admin-fields small,
.user-admin-password small {
  grid-column: 1 / -1;
  min-height: 17px;
  color: var(--muted);
  font-size: 12px;
}

.user-admin-table label {
  display: grid;
  gap: 5px;
  min-width: 0;
  color: var(--muted);
  font-size: 11px;
}

.user-admin-limits {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.user-admin-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.user-admin-actions .track-button {
  min-width: 74px;
  justify-content: center;
}

.user-admin-actions .track-button:disabled {
  opacity: 0.42;
  cursor: not-allowed;
}

.user-status-active {
  width: fit-content;
  border-color: rgba(50, 210, 145, 0.45);
  color: #74f0bb;
  background: rgba(50, 210, 145, 0.08);
}

.user-status-disabled {
  width: fit-content;
  border-color: rgba(255, 109, 109, 0.45);
  color: #ff9a9a;
  background: rgba(255, 109, 109, 0.08);
}

.track-row.status-pending,
.track-row.status-processing {
  background: linear-gradient(90deg, rgba(72, 240, 212, 0.055), rgba(255, 79, 216, 0.035));
}

.track-row.status-failed {
  background: rgba(255, 107, 123, 0.06);
}

.player-overlay,
.modal {
  position: fixed;
  inset: 0;
  background: rgba(3, 5, 9, 0.8);
  backdrop-filter: blur(24px);
  display: grid;
  place-items: center;
  padding: 24px;
  z-index: 120;
}

.player-overlay {
  padding: 0;
  background:
    radial-gradient(circle at top left, rgba(72, 240, 212, 0.12), transparent 36%),
    radial-gradient(circle at bottom right, rgba(255, 79, 216, 0.14), transparent 34%),
    rgba(3, 5, 9, 0.96);
}

.mini-player {
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: 12px;
  z-index: 25;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 14px;
  border-radius: 8px;
  border: 1px solid var(--line-strong);
  background:
    linear-gradient(90deg, rgba(72, 240, 212, 0.08), rgba(255, 79, 216, 0.06)),
    rgba(10, 14, 21, 0.94);
  backdrop-filter: blur(16px);
}

.mini-player-main,
.mini-player-actions {
  display: flex;
  align-items: center;
}

.mini-player-main {
  flex: 0 1 360px;
  gap: 12px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--text);
  text-align: left;
  cursor: pointer;
}

.mini-player-art {
  width: 48px;
  height: 48px;
  border-radius: 6px;
  overflow: hidden;
  background:
    radial-gradient(circle at top, rgba(72, 240, 212, 0.42), transparent 45%),
    radial-gradient(circle at bottom right, rgba(255, 79, 216, 0.35), transparent 35%),
    linear-gradient(160deg, #0d1420, #162033);
}

.mini-player-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.mini-player-meta {
  display: grid;
  gap: 4px;
}

.mini-player-meta strong,
.mini-player-meta span,
.mini-player-meta p {
  margin: 0;
}

.mini-player-meta span {
  color: var(--muted);
  font-size: 13px;
}

.mini-player-actions {
  gap: 10px;
}

.mini-player-times {
  flex: 0 0 auto;
  color: var(--muted);
  display: inline-flex;
  gap: 5px;
  font-size: 12px;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.volume-control {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
}

.volume-icon {
  width: 17px;
  height: 17px;
  display: inline-flex;
  flex: 0 0 17px;
}

.volume-icon svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.volume-control input {
  width: 112px;
  accent-color: var(--accent-a);
}

.player-volume-control {
  justify-content: center;
}

.player-volume-control input {
  width: min(280px, 100%);
}

.mini-wave-shell {
  flex: 0 1 760px;
  min-width: 220px;
  max-width: 860px;
  margin: 0 auto;
  height: 46px;
  border-radius: 6px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.025);
  overflow: hidden;
  touch-action: manipulation;
  cursor: pointer;
}

#mini-waveform {
  width: 100%;
  height: 100%;
  display: block;
}

.mini-player-actions button {
  padding: 11px 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  cursor: pointer;
}

.player-controls button.active,
.mini-player-actions button:hover,
.track-button:hover,
.track-play-button:hover {
  border-color: rgba(72, 240, 212, 0.34);
  background: rgba(72, 240, 212, 0.08);
}

.player-card,
.modal-card {
  width: min(1040px, 100%);
  border-radius: 32px;
  padding: 24px;
  background:
    radial-gradient(circle at top, rgba(72, 240, 212, 0.08), transparent 28%),
    radial-gradient(circle at right, rgba(255, 79, 216, 0.08), transparent 24%),
    #0d131d;
}

.player-card {
  position: relative;
  display: grid;
  gap: 18px;
  min-height: min(100vh, 980px);
  width: min(980px, calc(100vw - 28px));
  max-height: calc(100vh - 28px);
  overflow: auto;
  border: 1px solid var(--line-strong);
}

.player-card .overlay-close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 44px;
  height: 44px;
  padding: 0;
  display: grid;
  place-items: center;
  font-size: 0;
  z-index: 2;
}

.player-art {
  width: 140px;
  height: 140px;
  border-radius: 28px;
  margin: 0 auto 20px;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(72, 240, 212, 0.2), rgba(255, 79, 216, 0.2));
}

.player-meta,
.player-controls,
.player-times {
  justify-content: center;
  gap: 8px;
  color: var(--muted);
}

.player-meta {
  text-align: center;
  flex-direction: column;
  margin-bottom: 18px;
}

.player-wave {
  margin: 0 auto 18px;
  max-width: 760px;
  height: 220px;
  border-radius: 24px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.02);
  overflow: hidden;
  cursor: pointer;
}

.time-divider {
  opacity: 0.65;
}

#player-seek {
  width: 100%;
  margin: 6px 0 12px;
}

.modal-card {
  width: min(760px, 100%);
  max-height: calc(100vh - 48px);
  overflow-y: auto;
  overscroll-behavior: contain;
  border: 1px solid var(--line-strong);
}

.compact-modal {
  width: min(460px, 100%);
}

.modal-head,
.modal-actions {
  justify-content: space-between;
}

.modal-actions .danger-action {
  border: 1px solid rgba(255, 107, 123, 0.35);
  background: rgba(255, 107, 123, 0.08);
  color: #ffd6dc;
  border-radius: 999px;
  padding: 12px 14px;
}

.modal-actions .danger-action:hover {
  background: rgba(255, 107, 123, 0.16);
}

.modal-actions button:not(.accent-button):not(.danger-action) {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  cursor: pointer;
}

.modal-actions button:not(.accent-button):not(.danger-action):hover {
  border-color: rgba(72, 240, 212, 0.34);
  background: rgba(72, 240, 212, 0.08);
}

.modal-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 18px;
}

.modal-form.single-column {
  grid-template-columns: 1fr;
}

.modal-form label {
  display: grid;
  gap: 8px;
  color: var(--muted);
}

.modal-form .checkbox-label {
  display: flex;
  align-items: center;
  gap: 10px;
}

.modal-form .checkbox-label input {
  width: 16px;
  height: 16px;
  padding: 0;
}

.modal-form input,
.modal-form textarea,
.modal-form select {
  padding: 12px 14px;
  border-radius: 14px;
  outline: none;
  color-scheme: dark;
  background-color: rgba(12, 17, 26, 0.96);
}

.modal-form textarea {
  min-height: 92px;
  resize: vertical;
  font: inherit;
}

.modal-form select option {
  color: var(--text);
  background: #0d131d;
}

.picker-summary {
  display: grid;
  gap: 4px;
  padding: 14px 0 12px;
  border-bottom: 1px solid var(--line);
}

.picker-summary span {
  color: var(--muted);
  font-size: 13px;
}

.playlist-picker-list {
  display: grid;
  gap: 8px;
  max-height: min(420px, 56vh);
  overflow: auto;
  padding-top: 12px;
}

.playlist-picker-item {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  text-align: left;
  cursor: pointer;
  transition: border-color 150ms ease, background-color 150ms ease, box-shadow 150ms ease;
}

.playlist-picker-item:disabled {
  cursor: default;
  opacity: 0.62;
}

.playlist-picker-item:not(:disabled):hover,
.playlist-picker-item:not(:disabled):focus-visible,
.settings-card:hover,
.settings-card:focus-within {
  border-color: rgba(242, 245, 251, 0.18);
  background-color: rgba(255, 255, 255, 0.035);
  box-shadow: inset 0 0 0 1px rgba(242, 245, 251, 0.03);
}

.playlist-picker-item span:first-child {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.playlist-picker-item small {
  color: var(--muted);
}

.picker-empty {
  padding: 14px;
}

.full-width {
  grid-column: 1 / -1;
}

.settings-card {
  padding: 24px;
  border-radius: 24px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.02);
  transition: border-color 150ms ease, background-color 150ms ease, box-shadow 150ms ease;
}

.settings-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 14px;
}

.api-health-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.api-health-card h3 {
  font-variant-numeric: tabular-nums;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 4px 9px;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.api-health-card.status-online .status-pill {
  border-color: rgba(50, 210, 145, 0.45);
  color: #74f0bb;
  background: rgba(50, 210, 145, 0.08);
}

.api-health-card.status-degraded .status-pill {
  border-color: rgba(246, 196, 83, 0.45);
  color: #ffd479;
  background: rgba(246, 196, 83, 0.08);
}

.api-health-card.status-offline .status-pill {
  border-color: rgba(255, 109, 109, 0.45);
  color: #ff9a9a;
  background: rgba(255, 109, 109, 0.08);
}

.settings-range-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 72px;
  gap: 14px;
  align-items: center;
  margin-top: 16px;
}

.settings-range-row input {
  width: 100%;
  accent-color: var(--accent-a);
}

.settings-range-row strong {
  padding: 9px 12px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.035);
  text-align: center;
  font-variant-numeric: tabular-nums;
}

.metadata-lookup {
  display: grid;
  gap: 10px;
  padding: 14px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.02);
}

.metadata-lookup-head,
.musicbrainz-match {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
}

.metadata-lookup-head strong {
  color: var(--text);
}

.musicbrainz-match-list {
  display: grid;
  gap: 8px;
}

.musicbrainz-match {
  grid-template-columns: 54px minmax(0, 1fr) 52px auto;
  padding: 10px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.025);
}

.musicbrainz-cover {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
}

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

.musicbrainz-cover svg {
  width: 24px;
  height: 24px;
  color: var(--muted);
}

.musicbrainz-match-copy {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.musicbrainz-match-copy strong,
.musicbrainz-match-copy small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.musicbrainz-match-copy small,
.musicbrainz-score {
  color: var(--muted);
  font-size: 12px;
}

.musicbrainz-score {
  font-variant-numeric: tabular-nums;
}

.log-table {
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.018);
}

.log-table .playlist-table-header {
  position: static;
  border-radius: 0;
}

.log-row {
  display: grid;
  grid-template-columns: 180px 90px 140px minmax(0, 1fr);
  gap: 12px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
}

.log-row:last-child {
  border-bottom: 0;
}

.log-row.error {
  color: #ffd6dc;
}

.log-row.warn {
  color: #ffe7a3;
}

.log-row small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  white-space: pre-wrap;
}

.log-table {
  max-height: 68vh;
  overflow: auto;
}

.playlist-table,
.empty-state {
  margin-top: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: visible;
  background: rgba(255, 255, 255, 0.018);
}

.playlist-table-header,
.playlist-table-row {
  display: grid;
  grid-template-columns: minmax(320px, 1fr) 110px 140px 150px 140px;
  gap: 12px;
  align-items: center;
  padding: 12px 14px;
}

.playlist-table-header {
  position: sticky;
  top: var(--sticky-table-offset);
  z-index: 35;
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  border-bottom: 1px solid var(--line);
  border-radius: 8px 8px 0 0;
  background: rgba(8, 11, 17, 0.98);
}

.playlist-table-row {
  width: 100%;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
  color: var(--text);
  text-align: left;
  transition: background 150ms ease, box-shadow 150ms ease;
}

.playlist-table-row:hover,
.playlist-table-row:focus-within,
.log-row:hover,
.log-row:focus-within {
  background: rgba(255, 255, 255, 0.035);
  box-shadow: inset 0 0 0 1px rgba(242, 245, 251, 0.035);
}

.playlist-summary {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  text-align: left;
  cursor: pointer;
}

.playlist-cover {
  flex: 0 0 58px;
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background:
    radial-gradient(circle at top left, rgba(72, 240, 212, 0.28), transparent 45%),
    radial-gradient(circle at bottom right, rgba(255, 79, 216, 0.26), transparent 42%),
    rgba(255, 255, 255, 0.035);
}

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

.playlist-cover svg {
  width: 26px;
  height: 26px;
  color: var(--muted);
}

.playlist-table-copy {
  display: grid;
  gap: 5px;
  min-width: 0;
    text-decoration: none;
}

.playlist-table-name {
  font-weight: 700;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;

}

.playlist-table-copy small,
.playlist-metric small {
  color: var(--muted);
  font-size: 12px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
    text-decoration: none;
}

.playlist-metric {
  display: grid;
  gap: 4px;
  min-width: 0;
  font-variant-numeric: tabular-nums;
}

.playlist-metric strong {
  font-size: 14px;
}

.playlist-row-actions {
  display: flex;
  justify-content: flex-end;
  gap: 6px;
}

.playlist-row-actions .track-button {
  width: 34px;
  min-width: 34px;
  height: 34px;
  padding: 0;
}

.playlist-row-actions .track-button span {
  display: none;
}

.empty-state {
  padding: 24px;
}

@media (max-width: 1080px) {
  .settings-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .user-admin-header {
    display: none;
  }

  .user-admin-row {
    grid-template-columns: 1fr;
    align-items: stretch;
  }

  .user-admin-actions {
    justify-content: flex-start;
  }

  :root {
    --sticky-table-offset: 226px;
  }

  .app-shell {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: fixed !important;
    top: 0;
    left: 0;
    width: min(320px, 84vw);
    height: 100vh;
    z-index: 80;
    border-right: 1px solid var(--line);
    border-bottom: 0;
    transform: translateX(-100%);
    transition: transform 180ms ease;
  }

  .sidebar.mobile-open {
    transform: translateX(0);
  }

  .topbar {
    flex-direction: column;
    align-items: stretch;
  }

  .topbar-left {
    justify-content: flex-start;
  }

  .mobile-nav-toggle {
    display: inline-block;
  }

  .toolbar-center {
    order: 3;
    justify-content: stretch;
    width: 100%;
    flex: none;
  }

  .track-table {
    overflow-x: visible;
  }

  .track-table-header,
  .track-row {
    min-width: 0;
  }
}

@media (max-width: 720px) {
  :root {
    --sticky-table-offset: 248px;
  }

  .user-admin-fields,
  .user-admin-limits {
    grid-template-columns: 1fr;
  }

  .user-admin-identity {
    grid-template-columns: 40px minmax(0, 1fr);
  }

  .user-admin-avatar {
    width: 40px;
    height: 40px;
  }

  html,
  body {
    max-width: 100%;
    overflow-x: hidden;
  }

  .app-shell,
  .main-panel,
  .track-list {
    width: 100%;
    max-width: 100vw;
    overflow-x: hidden;
  }

  .main-panel,
  .sidebar {
    padding: 18px;
  }

  .topbar {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    margin: -18px -18px 16px;
    padding: 18px;
    position: sticky;
    top: 0;
  }

  .title-wrap {
    min-width: 0;
  }

  .title-wrap .eyebrow {
    display: none;
  }

  .playlist-title {
    font-size: 28px;
  }

  .topbar-left,
  .toolbar-actions {
    width: 100%;
  }

  .toolbar-actions {
    justify-content: flex-start;
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .toolbar-center {
    min-width: 0;
    width: 100%;
    order: 1;
    flex: none;
  }

  .filter-toggle {
    display: inline-flex;
    justify-content: center;
    width: 100%;
  }

  .toolbar-actions > :not(.filter-toggle) {
    display: none;
  }

  .filters-open .toolbar-actions > :not(.filter-toggle) {
    display: flex;
    width: 100%;
  }

  .filters-open .toolbar-actions select,
  .filters-open .toolbar-actions .accent-button {
    width: 100%;
  }

  .guest-mode .toolbar-actions {
    display: none;
  }

  .guest-mode .topbar {
    display: none;
  }

  .player-card,
  .modal-card {
    padding: 18px;
    border-radius: 24px;
  }

  .drop-zone {
    padding: 18px;
    min-height: 110px;
  }

  .drop-overlay {
    inset: 8px;
  }

  .drop-zone .drop-inner h2 {
    font-size: 24px;
  }

  .drop-zone .drop-inner p:last-child {
    display: none;
  }

  .drop-zone.compact .drop-inner {
    display: block;
    text-align: left;
  }

  .track-table {
    display: grid;
    gap: 10px;
    width: 100%;
    min-width: 0;
    max-width: 100%;
    border-radius: 8px;
    overflow: visible;
    border: 0;
    background: transparent;
  }

  .track-table-header {
    display: none;
  }

  .track-row {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    grid-template-areas:
      "wave wave wave"
      "title title title"
      "bpm key time"
      "actions actions actions";
    gap: 9px 10px;
    padding: 10px;
    margin-bottom: 10px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background:
      linear-gradient(135deg, rgba(72, 240, 212, 0.04), rgba(255, 79, 216, 0.035)),
      rgba(255, 255, 255, 0.018);
  }

  .track-index {
    display: none;
  }

  .track-title-cell {
    grid-area: title;
    gap: 8px;
    min-width: 0;
  }

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

  .track-muted,
  .track-row > .track-muted {
    display: none;
  }

  .wave-wrap {
    grid-area: wave;
    display: block;
    min-width: 0;
    max-width: 100%;
  }

  .wave-shell {
    height: 38px;
    border-radius: 10px;
  }

  .track-duration {
    grid-area: time;
    display: inline-flex;
    justify-content: center;
    align-items: center;
  }

  .track-number,
  .track-key {
    display: inline-flex;
    align-self: center;
    justify-content: center;
    font-size: 12px;
  }

  .track-row > .track-number:not(.track-duration) {
    grid-area: bpm;
  }

  .track-key {
    grid-area: key;
  }

  .meta-pill {
    padding: 6px 9px;
    min-width: 46px;
    text-align: center;
  }

  .track-actions {
    grid-area: actions;
    justify-content: flex-start;
    gap: 6px;
    max-width: none;
    overflow-x: visible;
    scrollbar-width: none;
  }

  .track-actions::-webkit-scrollbar {
    display: none;
  }

  .track-actions,
  .toolbar-actions {
    flex-wrap: wrap;
  }

  .search-shell {
    max-width: none;
    width: 100%;
    height: 46px;
    min-height: 46px;
    max-height: 46px;
    border-radius: 14px;
    flex: none;
  }

  .search-input {
    min-width: 0;
    height: 46px;
    padding: 0;
  }

  .track-actions .track-button span,
  .track-actions .track-play-button span {
    display: none;
  }

  .track-actions .track-button,
  .track-actions .track-play-button {
    flex: 0 0 34px;
    width: 34px;
    min-width: 34px;
    height: 34px;
    padding: 0;
    border-radius: 10px;
  }

  .feed-grid {
    gap: 12px;
  }

  .feed-card {
    grid-template-columns: 86px minmax(0, 1fr);
    max-width: 100%;
    min-width: 0;
    overflow: hidden;
    gap: 12px;
    padding: 12px;
    border-radius: 16px;
  }

  .feed-artwork {
    width: 86px;
    height: 86px;
    border-radius: 14px;
  }

  .feed-card-head {
    display: grid;
    gap: 8px;
    min-width: 0;
  }

  .feed-title {
    max-width: 100%;
    font-size: 16px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .feed-meta {
    max-width: none;
    justify-content: flex-start;
    gap: 6px;
  }

  .feed-meta .meta-pill {
    padding: 5px 8px;
    min-width: 0;
    font-size: 11px;
  }

  .feed-wave-shell {
    grid-column: 1 / -1;
    height: 72px;
    border-radius: 12px;
  }

  .feed-waveform-height-enabled .feed-wave-shell {
    height: var(--feed-waveform-height);
  }

  .feed-actions {
    grid-column: 1 / -1;
  }

  .playlist-table-header,
  .playlist-table-row {
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
    align-items: stretch;
  }

  .playlist-table-header {
    display: none;
  }

  .playlist-table-row {
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 16px;
    margin-bottom: 10px;
    background:
      linear-gradient(135deg, rgba(72, 240, 212, 0.04), rgba(255, 79, 216, 0.035)),
      rgba(255, 255, 255, 0.018);
  }

  .playlist-summary {
    align-items: center;
  }

  .playlist-cover {
    flex-basis: 54px;
    width: 54px;
    height: 54px;
    border-radius: 13px;
  }

  .playlist-metric {
    display: inline-grid;
    grid-template-columns: auto auto;
    justify-content: space-between;
    align-items: baseline;
    gap: 8px;
    padding: 8px 10px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.025);
  }

  .playlist-row-actions {
    justify-content: flex-start;
    flex-wrap: wrap;
  }

  .mini-player {
    left: 8px;
    right: 8px;
    bottom: 8px;
    display: grid;
    grid-template-columns: 54px minmax(0, 1fr) auto;
    grid-template-areas:
      "main wave volume"
      "main time volume"
      "actions actions actions";
    align-items: center;
    gap: 8px 10px;
  }

  .mini-player-main {
    grid-area: main;
    flex: none;
    width: 54px;
  }

  .mini-player-meta {
    display: none;
  }

  .mini-player-art {
    width: 48px;
    height: 48px;
  }

  .mini-player-actions {
    grid-area: actions;
    width: 100%;
    justify-content: space-between;
    gap: 8px;
    overflow-x: auto;
  }

  .mini-player-actions button {
    display: grid;
    place-items: center;
    flex: 1 1 0;
    min-width: 42px;
    padding: 10px;
    font-size: 0;
  }

  .mini-player-actions button:disabled {
    opacity: 0.34;
    pointer-events: none;
  }

  .mini-player-actions button span {
    display: none;
  }

  .mini-player-actions button svg {
    width: 17px;
    height: 17px;
  }

  .mini-wave-shell {
    grid-area: wave;
    flex-basis: auto;
    width: 100%;
    min-width: 0;
    max-width: none;
    height: 34px;
  }

  .mini-player-times {
    grid-area: time;
    justify-content: flex-start;
    padding-left: 2px;
  }

  .mini-volume-control {
    grid-area: volume;
    width: 88px;
    justify-content: center;
  }

  .mini-volume-control input {
    width: 62px;
  }

  .queue-panel {
    position: fixed;
    left: 12px;
    right: 12px;
    top: 96px;
    width: auto;
    max-height: calc(100vh - 126px);
  }

  .queue-items {
    max-height: calc(100vh - 210px);
  }

  .player-overlay {
    place-items: stretch;
    padding: 0;
  }

  .player-card {
    width: 100vw;
    min-height: 100dvh;
    max-height: 100dvh;
    border: 0;
    border-radius: 0;
    padding: 74px 20px 28px;
    overflow-y: auto;
  }

  .player-card .overlay-close {
    top: 18px;
    right: 18px;
  }

  .player-art {
    width: min(58vw, 260px);
    height: min(58vw, 260px);
    border-radius: 28px;
    margin-bottom: 8px;
  }

  .player-meta h2 {
    font-size: clamp(30px, 9vw, 48px);
    line-height: 1;
  }

  .player-meta p:not(.eyebrow) {
    font-size: 18px;
  }

  .player-wave {
    width: 100%;
    height: min(42vh, 360px);
    margin-bottom: 12px;
  }

  .player-controls {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    width: 100%;
  }

  .player-controls button {
    min-height: 54px;
    padding: 10px;
  }

  .icon-button span {
    white-space: nowrap;
  }

  .settings-grid {
    grid-template-columns: 1fr;
  }

  .log-row {
    grid-template-columns: 1fr;
    gap: 4px;
  }
}
