:root {
  color-scheme: dark;
  --bg: #171717;
  --panel: #202020;
  --panel-soft: #252525;
  --ink: #f7f7f7;
  --muted: #8f8f8f;
  --dim: #5f5f5f;
  --line: rgba(255, 255, 255, 0.08);
  --button: #262626;
  --button-hover: #303030;
  --white: #ffffff;
  --black: #101010;
  --red: #ff1d25;
  --accent: #8b5cf6;
  --shadow: 0 20px 70px rgba(0, 0, 0, 0.42);
  --page-pad-x: 56px;
  --motion-ease: cubic-bezier(0.16, 1, 0.3, 1);
  --motion-fast: 160ms;
  --motion-mid: 300ms;
  --motion-slow: 500ms;
}

body.light-mode {
  --bg: #ffffff;
  --panel: #f1f1f1;
  --panel-soft: #f1f1f1;
  --ink: #111111;
  --muted: #777777;
  --dim: #9a9a9a;
  --line: rgba(0, 0, 0, 0.08);
  --button: #efefef;
  --button-hover: #e4e4e4;
  --white: #111111;
  --black: #ffffff;
  --shadow: 0 20px 70px rgba(0, 0, 0, 0.14);
}

* {
  box-sizing: border-box;
  letter-spacing: 0;
}

html,
body {
  min-height: 100%;
  margin: 0;
  background: var(--bg);
}

body {
  color: var(--ink);
  font-family:
    "Poppins", Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  font-weight: 500;
  overflow-x: hidden;
}

button,
input,
select {
  font: inherit;
}

button {
  color: inherit;
}

.app-shell {
  min-height: 100vh;
  background: var(--bg);
  position: relative;
}

#audioInput,
#convertInput,
#replaceTrackInput,
#versionTrackInput,
#projectCoverInput,
#backupInput,
#profileImageInput {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.screen {
  min-height: 100vh;
  padding: 42px var(--page-pad-x) 118px;
}

.landing-screen {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 48px 24px;
}

.landing-content {
  width: min(430px, 100%);
  display: grid;
  justify-items: center;
  gap: 28px;
  text-align: center;
}

.landing-logo {
  width: 154px;
  height: 154px;
  display: block;
  object-fit: contain;
}

.landing-content h1 {
  max-width: 390px;
  margin: 0;
  color: var(--white);
  font-size: clamp(1.85rem, 4vw, 2.38rem);
  line-height: 1.16;
  font-weight: 500;
}

.landing-enter-button {
  min-width: 170px;
  height: 52px;
  border: 0;
  border-radius: 999px;
  background: var(--white);
  color: var(--black);
  cursor: pointer;
  font-size: 0.96rem;
  transition:
    transform var(--motion-fast) var(--motion-ease),
    opacity var(--motion-fast) ease;
}

.landing-enter-button:hover {
  transform: translateY(-2px);
}

.landing-screen:not([hidden]) ~ .bottom-add {
  display: none;
}

.screen[hidden],
.converter-drawer[hidden],
.target-modal[hidden],
.modal[hidden],
.choice-modal[hidden],
.track-detail-modal[hidden],
.track-info-modal[hidden],
.login-panel[hidden],
.profile-card-panel[hidden],
.edit-profile-panel[hidden],
.username-panel[hidden],
.phone-signup-panel[hidden],
.search-row[hidden],
.result-panel[hidden],
.add-menu[hidden] {
  display: none;
}

.reveal,
.stagger-item {
  opacity: 0;
  transform: translateY(14px) scale(0.985);
  transform-origin: center;
  will-change: opacity, transform;
}

.reveal-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
  transition:
    opacity var(--motion-mid) var(--motion-ease),
    transform var(--motion-slow) var(--motion-ease);
}

.page-enter {
  opacity: 0;
  transform: translateY(18px) scale(0.992);
  will-change: opacity, transform;
}

.page-enter-active {
  opacity: 1;
  transform: translateY(0) scale(1);
  transition:
    opacity var(--motion-slow) var(--motion-ease),
    transform var(--motion-slow) var(--motion-ease);
}

.page-exit {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.page-exit-active {
  opacity: 0;
  transform: translateY(-10px) scale(0.992);
  transition:
    opacity 220ms ease,
    transform 220ms ease;
}

.modal-enter .drawer-backdrop,
.modal-enter .track-detail-shell,
.modal-enter .track-info-panel,
.modal-enter .choice-panel,
.modal-enter .target-panel,
.modal-enter .drawer-panel,
.modal-enter .small-panel,
.modal-enter .delete-panel,
.modal-enter .account-action-panel,
.modal-enter .sync-panel,
.modal-enter .login-panel,
.modal-enter .profile-card-panel,
.modal-enter .edit-profile-panel,
.modal-enter .username-panel {
  opacity: 0;
  will-change: opacity, transform;
}

.modal-enter.modal-enter-active .drawer-backdrop {
  opacity: 1;
  transition: opacity var(--motion-mid) ease;
}

.modal-enter .track-detail-shell,
.modal-enter .track-info-panel,
.modal-enter .choice-panel,
.modal-enter .small-panel,
.modal-enter .delete-panel,
.modal-enter .account-action-panel,
.modal-enter .sync-panel,
.modal-enter .login-panel,
.modal-enter .profile-card-panel,
.modal-enter .edit-profile-panel,
.modal-enter .username-panel {
  transform: translate(-50%, calc(-50% + 16px)) scale(0.965);
}

.modal-enter.modal-enter-active .track-detail-shell,
.modal-enter.modal-enter-active .track-info-panel,
.modal-enter.modal-enter-active .choice-panel,
.modal-enter.modal-enter-active .small-panel,
.modal-enter.modal-enter-active .delete-panel,
.modal-enter.modal-enter-active .account-action-panel,
.modal-enter.modal-enter-active .sync-panel,
.modal-enter.modal-enter-active .login-panel,
.modal-enter.modal-enter-active .profile-card-panel,
.modal-enter.modal-enter-active .edit-profile-panel,
.modal-enter.modal-enter-active .username-panel {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
  transition:
    opacity var(--motion-mid) var(--motion-ease),
    transform var(--motion-mid) var(--motion-ease);
}

.modal-enter .drawer-panel {
  transform: translateY(-12px) scale(0.975);
}

.modal-enter.modal-enter-active .drawer-panel {
  opacity: 1;
  transform: translateY(0) scale(1);
  transition:
    opacity var(--motion-mid) var(--motion-ease),
    transform var(--motion-mid) var(--motion-ease);
}

.modal-enter .target-panel {
  transform: translateY(18px) scale(0.975);
}

.modal-enter.modal-enter-active .target-panel {
  opacity: 1;
  transform: translateY(0) scale(1);
  transition:
    opacity var(--motion-mid) var(--motion-ease),
    transform var(--motion-mid) var(--motion-ease);
}

.modal-exit .drawer-backdrop,
.modal-exit .track-detail-shell,
.modal-exit .track-info-panel,
.modal-exit .choice-panel,
.modal-exit .target-panel,
.modal-exit .drawer-panel,
.modal-exit .small-panel,
.modal-exit .delete-panel,
.modal-exit .account-action-panel,
.modal-exit .sync-panel,
.modal-exit .login-panel,
.modal-exit .profile-card-panel,
.modal-exit .edit-profile-panel,
.modal-exit .username-panel {
  transition:
    opacity 180ms ease,
    transform 180ms ease;
}

.modal-exit.modal-exit-active .drawer-backdrop {
  opacity: 0;
}

.modal-exit.modal-exit-active .track-detail-shell,
.modal-exit.modal-exit-active .track-info-panel,
.modal-exit.modal-exit-active .choice-panel,
.modal-exit.modal-exit-active .small-panel,
.modal-exit.modal-exit-active .delete-panel,
.modal-exit.modal-exit-active .account-action-panel,
.modal-exit.modal-exit-active .sync-panel,
.modal-exit.modal-exit-active .login-panel,
.modal-exit.modal-exit-active .profile-card-panel,
.modal-exit.modal-exit-active .edit-profile-panel,
.modal-exit.modal-exit-active .username-panel {
  opacity: 0;
  transform: translate(-50%, calc(-50% + 12px)) scale(0.975);
}

.modal-exit.modal-exit-active .drawer-panel {
  opacity: 0;
  transform: translateY(-8px) scale(0.985);
}

.modal-exit.modal-exit-active .target-panel {
  opacity: 0;
  transform: translateY(12px) scale(0.985);
}

.menu-enter,
.account-menu.menu-enter,
.notification-popover.menu-enter {
  opacity: 0;
  transform: translateY(8px) scale(0.965);
  transform-origin: top right;
  will-change: opacity, transform;
}

.bottom-add .add-menu.menu-enter {
  transform-origin: bottom center;
}

.queue-panel.menu-enter {
  opacity: 0;
  filter: blur(4px);
  transform: translateX(-50%) translateY(34px) scale(0.94);
  transform-origin: bottom center;
  will-change: opacity, filter, transform;
}

.menu-enter.menu-enter-active,
.account-menu.menu-enter.menu-enter-active,
.notification-popover.menu-enter.menu-enter-active {
  opacity: 1;
  transform: translateY(0) scale(1);
  transition:
    opacity 220ms var(--motion-ease),
    transform 240ms var(--motion-ease);
}

.queue-panel.menu-enter.menu-enter-active {
  opacity: 1;
  filter: blur(0);
  transform: translateX(-50%) translateY(0) scale(1);
  transition:
    opacity 260ms var(--motion-ease),
    filter 300ms ease,
    transform 340ms cubic-bezier(0.16, 0.92, 0.22, 1);
}

.menu-exit {
  transition:
    opacity 150ms ease,
    transform 150ms ease;
}

.menu-exit.menu-exit-active,
.account-menu.menu-exit.menu-exit-active,
.notification-popover.menu-exit.menu-exit-active {
  opacity: 0;
  transform: translateY(6px) scale(0.97);
}

.queue-panel.menu-exit.menu-exit-active {
  opacity: 0;
  filter: blur(3px);
  transform: translateX(-50%) translateY(22px) scale(0.96);
}

.button-press {
  animation: button-press 180ms var(--motion-ease);
}

@keyframes button-press {
  0% {
    transform: scale(1);
  }
  45% {
    transform: scale(0.955);
  }
  100% {
    transform: scale(1);
  }
}

.home-actions,
.detail-actions,
.action-cluster,
.project-grid,
.project-meta,
.project-heading-row,
.play-tools,
.detail-meta,
.add-tracks,
.search-row,
.track-row,
.track-menu,
.drawer-head,
.source-picker,
.switch-row,
.result-actions,
.player,
.player-copy,
.floating-add,
.primary-button,
.secondary-button,
.convert-button,
.bottom-add,
.add-option {
  display: flex;
  align-items: center;
}

.home-actions,
.detail-actions {
  min-height: 44px;
  align-items: center;
  justify-content: space-between;
}

.site-name-slot {
  min-width: 226px;
  min-height: 52px;
  display: flex;
  align-items: center;
  padding-left: 18px;
}

.site-name-button {
  min-width: 48px;
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--text);
  cursor: pointer;
}

.site-name-logo {
  width: 30px;
  height: 30px;
  display: block;
  object-fit: contain;
}

.site-name-text {
  font-size: 24px;
  line-height: 1;
  color: inherit;
}

.action-cluster {
  gap: 8px;
}

.circle-button,
.transport-button,
.shuffle-button,
.hero-play,
.cover-play {
  border: 0;
  display: grid;
  place-items: center;
  cursor: pointer;
}

.circle-button {
  width: 44px;
  height: 44px;
  border-radius: 16px;
  background: var(--button);
  transition:
    background var(--motion-fast) ease,
    opacity var(--motion-fast) ease,
    transform var(--motion-fast) var(--motion-ease);
}

.circle-button:hover,
.floating-add:hover,
.add-tracks:hover,
.source-picker:hover,
.add-option:hover {
  background: var(--button-hover);
}

.circle-button:active,
.floating-add:active,
.add-tracks:active,
.source-picker:active,
.add-option:active,
.project-menu-option:active,
.track-action-row:active,
.choice-item:active,
.target-item:active,
.search-result-row:active,
.project-title:active,
.cover-button:active {
  transform: scale(0.965);
}

.search-image-slot {
  width: 19px;
  height: 19px;
  display: inline-grid;
  place-items: center;
  flex: 0 0 19px;
  background: transparent;
}

.button-image-slot {
  width: 19px;
  height: 19px;
  display: inline-grid;
  place-items: center;
  flex: 0 0 19px;
  background: transparent;
}

.search-image-slot img,
.button-image-slot img,
.profile-image-slot img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
}

.link-image-slot img,
[data-search-image="detail"] img {
  opacity: 1;
  filter: none;
}

.screen-home {
  display: grid;
  grid-template-rows: auto 1fr;
  position: relative;
  isolation: isolate;
}

.screen-home::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 3;
  height: 142px;
  pointer-events: none;
  opacity: 0;
  background:
    linear-gradient(
      180deg,
      var(--bg) 0%,
      rgba(21, 21, 21, 0.98) 18%,
      rgba(21, 21, 21, 0.86) 36%,
      rgba(21, 21, 21, 0.56) 58%,
      rgba(21, 21, 21, 0.22) 80%,
      rgba(21, 21, 21, 0) 100%
    );
  transition: opacity 180ms ease;
}

.screen-home.is-scroll-fading::before {
  opacity: 1;
}

body.light-mode .screen-home::before {
  background:
    linear-gradient(
      180deg,
      var(--bg) 0%,
      rgba(255, 255, 255, 0.98) 18%,
      rgba(255, 255, 255, 0.86) 36%,
      rgba(255, 255, 255, 0.56) 58%,
      rgba(255, 255, 255, 0.22) 80%,
      rgba(255, 255, 255, 0) 100%
    );
}

.screen-home .home-actions {
  position: relative;
  z-index: 4;
}

.project-grid {
  width: min(880px, calc(100vw - (var(--page-pad-x) * 2)));
  display: grid;
  grid-template-columns: repeat(auto-fit, 144px);
  align-content: start;
  justify-content: center;
  gap: 48px;
  margin: 84px auto 0;
  position: relative;
  z-index: 1;
}

.nested-projects {
  display: grid;
  grid-template-columns: repeat(auto-fit, 144px);
  gap: 30px;
  margin: 22px 0 8px;
}

.nested-projects[hidden] {
  display: none;
}

.project-card {
  width: 144px;
  position: relative;
  transition:
    transform var(--motion-mid) var(--motion-ease),
    filter var(--motion-mid) ease;
}

.cover-button {
  width: 144px;
  height: 144px;
  display: block;
  position: relative;
  overflow: visible;
  padding: 0;
  border: 0;
  border-radius: 14px;
  background: var(--project-cover, linear-gradient(135deg, #ffea3d 0%, #ff951c 42%, #ff120f 100%));
  cursor: pointer;
  transition:
    transform var(--motion-mid) var(--motion-ease),
    box-shadow var(--motion-mid) ease,
    filter var(--motion-mid) ease;
}

.project-card.is-playing-project {
  z-index: 2;
}

.project-card .cover-button:not(.is-folder)::after {
  content: "";
  position: absolute;
  left: calc(100% - 72px);
  top: 20px;
  z-index: -1;
  width: 104px;
  height: 104px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 50%, transparent 31%, rgba(255, 255, 255, 0.18) 32%, transparent 34%),
    radial-gradient(circle at 50% 50%, transparent 57%, rgba(255, 255, 255, 0.22) 58%, transparent 60%),
    radial-gradient(circle at 50% 50%, transparent 68%, rgba(0, 0, 0, 0.14) 69%, transparent 71%),
    radial-gradient(circle at 64% 47%, rgba(255, 255, 255, 0.17), transparent 52%),
    var(--project-cover, linear-gradient(135deg, #ffea3d 0%, #ff951c 42%, #ff120f 100%));
  box-shadow:
    inset -11px 0 20px rgba(255, 255, 255, 0.2),
    inset 15px 0 24px rgba(0, 0, 0, 0.15),
    0 14px 26px rgba(0, 0, 0, 0.15);
  filter: brightness(1.11) saturate(1.08);
  opacity: 0;
  pointer-events: none;
  clip-path: inset(0 0 0 96px);
  transform: scale(0.9);
  transform-origin: center;
  transition:
    clip-path 540ms var(--motion-ease),
    transform 540ms var(--motion-ease),
    opacity 360ms ease;
  will-change: transform, opacity;
}

.project-card.is-playing-project .cover-button:not(.is-folder)::after {
  opacity: 0.68;
  clip-path: inset(0 0 0 72px);
  transform: scale(1);
}

.cover-button.is-folder::after,
.detail-cover.is-folder::after {
  content: none;
}

.project-card:hover {
  transform: translateY(-3px);
}

.project-card:hover .cover-button {
  box-shadow: 0 22px 58px rgba(0, 0, 0, 0.3);
  transform: scale(1.018);
}

.project-card.is-opening .cover-button {
  box-shadow: 0 30px 74px rgba(0, 0, 0, 0.36);
  transform: scale(1.08);
  filter: saturate(1.04);
}

.project-cover-transition {
  position: fixed;
  z-index: 140;
  pointer-events: none;
  background: var(--project-cover, linear-gradient(135deg, #ffea3d 0%, #ff951c 42%, #ff120f 100%));
  box-shadow: 0 26px 72px rgba(0, 0, 0, 0.34);
  transform-origin: top left;
  isolation: isolate;
  will-change: transform, border-radius, filter;
}

.project-cover-transition::after {
  content: "";
  position: absolute;
  left: 48.15%;
  top: 15%;
  z-index: -1;
  width: 74.08%;
  height: 74.08%;
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 50%, transparent 31%, rgba(255, 255, 255, 0.18) 32%, transparent 34%),
    radial-gradient(circle at 50% 50%, transparent 57%, rgba(255, 255, 255, 0.22) 58%, transparent 60%),
    radial-gradient(circle at 50% 50%, transparent 68%, rgba(0, 0, 0, 0.14) 69%, transparent 71%),
    radial-gradient(circle at 64% 47%, rgba(255, 255, 255, 0.17), transparent 52%),
    inherit;
  box-shadow:
    inset -24px 0 36px rgba(255, 255, 255, 0.2),
    inset 22px 0 40px rgba(0, 0, 0, 0.15),
    0 22px 40px rgba(0, 0, 0, 0.16);
  filter: brightness(1.11) saturate(1.08);
  opacity: 0;
  clip-path: inset(0 0 0 82%);
  transform: scale(0.92);
  transform-origin: center;
  transition:
    clip-path 540ms var(--motion-ease),
    transform 540ms var(--motion-ease),
    opacity 360ms ease;
}

.project-cover-transition.is-playing-project::after {
  opacity: 0.68;
  clip-path: inset(0 0 0 70%);
  transform: scale(1);
}

.cover-button.is-folder {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), transparent 38%),
    linear-gradient(135deg, #454545 0%, #282828 100%);
}

.cover-button.is-folder.has-folder-preview {
  display: grid;
  place-items: start;
  padding: 8px;
  background: #242424;
}

.folder-cover-preview {
  width: 100%;
  height: 100%;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-auto-rows: 1fr;
  gap: 8px;
}

.folder-cover-tile {
  min-width: 0;
  min-height: 0;
  border-radius: 8px;
  background: var(--folder-tile-cover, linear-gradient(135deg, #373737, #222));
}

.folder-cover-preview.count-1 .folder-cover-tile {
  grid-column: 1 / -1;
  grid-row: 1 / -1;
}

.folder-cover-preview.count-2,
.folder-cover-preview.count-3 {
  grid-template-rows: repeat(2, minmax(0, 1fr));
}

.cover-play {
  position: absolute;
  right: -16px;
  top: 108px;
  z-index: 5;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 16px;
  background: var(--button);
  color: var(--white);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.28);
  transition:
    background var(--motion-fast) ease,
    opacity var(--motion-fast) ease,
    transform var(--motion-fast) var(--motion-ease);
}

.project-card:hover .cover-play {
  transform: translate(2px, -2px) scale(1.06);
}

.project-copy {
  margin-top: 12px;
}

.project-title {
  width: 100%;
  min-height: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  font-size: 0.88rem;
  line-height: 1.2;
  font-weight: 500;
  text-align: left;
  transition:
    color var(--motion-fast) ease,
    opacity var(--motion-fast) ease;
}

.project-title.is-default-title {
  color: var(--muted);
}

.project-meta {
  min-width: 0;
  gap: 5px;
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1;
}

.project-meta span:last-of-type {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.lock-dot {
  width: 15px;
  height: 15px;
  flex: 0 0 15px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #868686;
}

.lock-image-slot {
  width: 9px;
  height: 9px;
  display: block;
}

.lock-image-slot img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  filter: brightness(0) saturate(100%);
}

.mini-more {
  width: 26px;
  height: 22px;
  margin-left: auto;
  border: 0;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  font-size: 1.1rem;
  font-weight: 900;
  line-height: 0.6;
}

.project-menu {
  position: fixed;
  z-index: 70;
  width: 204px;
  padding: 13px 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 19px;
  background: #171717;
  box-shadow: 0 22px 48px rgba(0, 0, 0, 0.46);
}

.project-menu[hidden] {
  display: none;
}

.project-menu-option {
  width: 100%;
  min-height: 35px;
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 0 4px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--white);
  cursor: pointer;
  font-size: 0.96rem;
  font-weight: 850;
  text-align: left;
  white-space: nowrap;
  transition:
    background var(--motion-fast) ease,
    color var(--motion-fast) ease,
    transform var(--motion-fast) var(--motion-ease);
}

.project-menu-icon-slot {
  width: 22px;
  height: 22px;
  flex: 0 0 22px;
  display: grid;
  place-items: center;
}

.project-menu-icon-slot svg,
.project-menu-icon-slot img {
  display: block;
  width: 100%;
  height: 100%;
}

.project-menu-label {
  min-width: 0;
  white-space: nowrap;
}

.project-menu-option:hover {
  background: rgba(255, 255, 255, 0.06);
}

.project-menu-option.danger {
  color: #ff1d25;
}

.bottom-add {
  position: fixed;
  left: 50%;
  bottom: 34px;
  z-index: 25;
  transform: translateX(-50%);
  flex-direction: column;
  gap: 14px;
}

.bottom-add[hidden] {
  display: none;
}

.add-menu {
  width: 184px;
  padding: 11px 12px;
  border-radius: 15px;
  background: #2a2a2a;
  box-shadow: 0 20px 42px rgba(0, 0, 0, 0.34);
}

.add-option {
  width: 100%;
  gap: 13px;
  min-height: 36px;
  padding: 0 8px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: var(--white);
  cursor: pointer;
  font-size: 0.96rem;
  font-weight: 850;
  text-align: left;
  white-space: nowrap;
  transition:
    background var(--motion-fast) ease,
    transform var(--motion-fast) var(--motion-ease);
}

.add-icon-slot {
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
  display: grid;
  place-items: center;
}

.add-icon-slot svg,
.add-icon-slot img {
  display: block;
  width: 100%;
  height: 100%;
}

.add-option-label {
  min-width: 0;
  white-space: nowrap;
}

.floating-add {
  justify-content: center;
  gap: 8px;
  min-width: 144px;
  height: 56px;
  padding: 0 30px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(180deg, #333333 0%, #292929 100%);
  color: var(--white);
  box-shadow: 0 16px 38px rgba(0, 0, 0, 0.34);
  cursor: pointer;
  font-size: 1rem;
  font-weight: 800;
}

.floating-add.is-close .icon-plus::before {
  transform: rotate(45deg);
}

.floating-add.is-close .icon-plus::after {
  transform: rotate(45deg);
}

.detail-layout {
  width: min(982px, calc(100vw - (var(--page-pad-x) * 2)));
  display: grid;
  grid-template-columns: 405px minmax(0, 500px);
  gap: 49px;
  margin: 72px auto 0;
}

.detail-layout[hidden] {
  display: none !important;
}

.folder-layout {
  min-height: calc(100vh - 182px);
  padding: 34px 0 120px;
}

.folder-layout[hidden] {
  display: none !important;
}

.folder-breadcrumb {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 14px 0 0 10px;
  color: var(--muted);
  font-size: 1.28rem;
  font-weight: 900;
}

.folder-breadcrumb input {
  width: min(420px, 70vw);
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--muted);
  font: inherit;
  padding: 0;
  box-shadow: none;
}

.folder-breadcrumb input.is-default-title {
  color: var(--muted);
}

.folder-breadcrumb input:focus,
.folder-breadcrumb input:focus-visible {
  outline: 0;
  box-shadow: none;
}

.folder-contents {
  min-height: 62vh;
  display: grid;
  align-content: start;
  justify-content: center;
}

.folder-grid {
  margin-top: 62px;
}

.folder-track-list {
  width: min(500px, calc(100vw - 64px));
  margin-top: 28px;
}

.screen-search {
  display: grid;
  grid-template-rows: auto auto 1fr;
}

.search-page-head {
  position: relative;
  z-index: 4;
  width: min(1040px, calc(100vw - (var(--page-pad-x) * 2)));
  display: block;
  margin: 48px auto 0;
}

.search-site-name {
  position: fixed;
  left: var(--page-pad-x);
  top: 30px;
  z-index: 5;
  min-width: 0;
  padding-left: 0;
}

.global-search-field {
  width: min(500px, 100%);
  height: 44px;
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0 auto;
  padding: 0 17px;
  border-radius: 15px;
  background: #202020;
  color: var(--white);
}

.global-search-field input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--white);
  font-size: 0.95rem;
}

.global-search-field input::placeholder {
  color: #a3a3a3;
}

.done-button {
  position: fixed;
  right: var(--page-pad-x);
  top: 42px;
  z-index: 5;
  min-width: 84px;
  height: 44px;
  border: 0;
  border-radius: 15px;
  background: var(--button);
  color: var(--white);
  cursor: pointer;
}

.search-tabs {
  width: min(500px, calc(100vw - (var(--page-pad-x) * 2)));
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin: 34px auto 0;
}

.search-tab {
  height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 13px;
  background: transparent;
  color: var(--white);
  cursor: pointer;
}

.search-tab.is-active,
.search-tab:hover {
  background: rgba(255, 255, 255, 0.04);
}

.search-results {
  width: min(500px, calc(100vw - (var(--page-pad-x) * 2)));
  margin: 104px auto 0;
}

.search-empty {
  display: grid;
  justify-items: center;
  color: var(--muted);
  text-align: center;
}

.search-empty-image-slot {
  width: 66px;
  height: 66px;
  position: relative;
  display: grid;
  place-items: center;
  margin-bottom: 18px;
}

.search-empty-image-slot img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
}

.search-empty h2 {
  margin: 0 0 8px;
  color: var(--white);
  font-size: 1.38rem;
}

.search-empty p {
  color: var(--muted);
  font-size: 0.86rem;
}

.search-result-row {
  width: 100%;
  min-height: 62px;
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  align-items: center;
  gap: 13px;
  padding: 5px 6px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--white);
  cursor: pointer;
  text-align: left;
  transition:
    background var(--motion-fast) ease,
    transform var(--motion-fast) var(--motion-ease),
    opacity var(--motion-fast) ease;
}

.search-result-row:hover {
  background: rgba(255, 255, 255, 0.05);
}

.search-result-thumb {
  width: 52px;
  height: 52px;
  border-radius: 8px;
  background: var(--project-cover, #242424);
}

.search-result-thumb.is-folder {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), transparent 38%),
    linear-gradient(135deg, #454545 0%, #282828 100%);
}

.search-result-copy strong,
.search-result-copy small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.search-result-copy small {
  margin-top: 4px;
  color: var(--muted);
}

.notification-popover {
  position: fixed;
  top: 74px;
  right: 96px;
  z-index: 80;
  width: min(326px, calc(100vw - 32px));
  min-height: 234px;
  padding: 24px 24px 22px;
  border: 2px solid rgba(255, 255, 255, 0.13);
  border-radius: 19px;
  background: #151515;
  box-shadow: var(--shadow);
}

.notification-popover[hidden],
.notification-list[hidden],
.notification-empty[hidden] {
  display: none;
}

.notification-popover h2 {
  margin: 0;
  font-size: 1.2rem;
}

.notification-empty {
  min-height: 152px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 8px;
  color: var(--muted);
  text-align: center;
}

.notification-empty .icon {
  width: 42px;
  height: 42px;
  color: #808080;
  transform: scale(1.75);
}

.notification-empty strong {
  color: var(--white);
  font-size: 1rem;
}

.notification-empty p {
  margin: 0;
  color: var(--muted);
  font-size: 0.75rem;
  line-height: 1.35;
}

.notification-list {
  display: grid;
  gap: 8px;
  margin-top: 20px;
}

.notification-row {
  width: 100%;
  min-height: 58px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 34px;
  align-items: center;
  gap: 6px;
  padding: 4px;
  border: 0;
  border-radius: 12px;
  background: transparent;
}

.notification-open {
  min-width: 0;
  min-height: 50px;
  display: grid;
  grid-template-columns: 12px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  padding: 8px;
  border: 0;
  background: transparent;
  color: var(--white);
  cursor: pointer;
  text-align: left;
}

.notification-row:hover {
  background: rgba(255, 255, 255, 0.06);
}

.notification-remove {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  justify-self: end;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: 1.15rem;
  line-height: 1;
}

.notification-remove:hover {
  background: var(--button-hover);
  color: var(--white);
}

.notification-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #a78bfa;
}

.notification-open strong,
.notification-open small {
  display: block;
}

.notification-open small {
  margin-top: 4px;
  color: var(--muted);
}

.share-panel {
  position: fixed;
  left: 50%;
  top: 50%;
  z-index: 95;
  width: min(440px, calc(100vw - 28px));
  display: grid;
  justify-items: center;
  gap: 16px;
  padding: 44px 10px 0;
  border-radius: 22px;
  background: #171717;
  box-shadow: var(--shadow);
  overflow: hidden;
  transform: translate(-50%, -50%);
}

.share-close {
  position: absolute;
  top: 13px;
  right: 13px;
}

.share-preview-card {
  width: 216px;
  height: 184px;
  border-radius: 12px;
  background: var(--project-cover, linear-gradient(135deg, #ffea3d 0%, #ff951c 42%, #ff120f 100%));
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.24);
}

.share-preview-card.is-folder {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), transparent 38%),
    linear-gradient(135deg, #454545 0%, #282828 100%);
}

.share-panel h2,
.share-panel p {
  margin: 0;
  text-align: center;
}

.share-panel h2 {
  color: var(--white);
  font-size: 1.48rem;
  line-height: 1.1;
}

.share-panel p {
  color: var(--muted);
  font-size: 0.86rem;
}

.share-options {
  width: 100%;
  display: grid;
  gap: 0;
  margin-top: 12px;
  background: var(--panel-soft);
}

.share-option {
  width: 100%;
  min-height: 76px;
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) 28px;
  align-items: center;
  gap: 14px;
  padding: 0 20px;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
  color: var(--white);
  cursor: pointer;
  text-align: left;
}

.share-option:last-child {
  border-bottom: 0;
}

.share-option:hover,
.share-option.is-selected {
  background: rgba(255, 255, 255, 0.045);
}

.share-option strong,
.share-option small {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.share-option small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.76rem;
}

.share-option-icon {
  width: 22px;
  height: 22px;
  display: block;
}

.share-radio {
  width: 23px;
  height: 23px;
  border: 2px solid currentColor;
  border-radius: 50%;
  opacity: 0.92;
}

.share-option.is-selected .share-radio {
  border: 6px solid var(--white);
  box-shadow: inset 0 0 0 5px var(--panel-soft);
}

.share-copy-button {
  width: calc(100% - 20px);
  min-height: 54px;
  margin: 6px 10px 10px;
  border: 0;
  border-radius: 999px;
  background: var(--white);
  color: var(--black);
  cursor: pointer;
  font-size: 0.94rem;
}

body.light-mode .circle-button,
body.light-mode .floating-add,
body.light-mode .add-menu,
body.light-mode .project-menu,
body.light-mode .notification-popover,
body.light-mode .share-panel,
body.light-mode .queue-panel,
body.light-mode .target-panel,
body.light-mode .choice-panel,
body.light-mode .delete-panel,
body.light-mode .account-action-panel,
body.light-mode .account-menu,
body.light-mode .track-detail-shell,
body.light-mode .track-info-panel,
body.light-mode .phone-signup-panel {
  background: var(--button);
  color: var(--ink);
}

body.light-mode .cover-play,
body.light-mode .hero-play {
  background: var(--button);
  color: #000000;
}

body.light-mode .lock-dot {
  background: #8e8e8e;
}

body.light-mode .project-title,
body.light-mode .track-title,
body.light-mode .track-title-edit,
body.light-mode .track-info-title,
body.light-mode .search-empty h2,
body.light-mode .notification-empty strong,
body.light-mode h2 {
  color: var(--ink);
}

body.light-mode .project-title.is-default-title,
body.light-mode .project-title-input.is-default-title,
body.light-mode .folder-breadcrumb input.is-default-title {
  color: var(--muted);
}

body.light-mode .player {
  background: rgba(255, 255, 255, 0.96);
  color: #000000;
}

body.light-mode .global-search-field,
body.light-mode .search-row {
  background: var(--panel);
  color: var(--ink);
}

body.light-mode .global-search-field input,
body.light-mode .search-row input {
  color: var(--ink);
}

body.light-mode .global-search-field input::placeholder,
body.light-mode .search-row input::placeholder {
  color: var(--muted);
}

body.light-mode .search-tab {
  border-color: var(--line);
  color: var(--ink);
}

body.light-mode .search-tab.is-active,
body.light-mode .search-tab:hover {
  background: var(--panel);
}

body.light-mode .queue-row:hover,
body.light-mode .queue-more:hover,
body.light-mode .queue-row-actions[open] .queue-more {
  background: rgba(0, 0, 0, 0.055);
}

body.light-mode .queue-copy,
body.light-mode .queue-more,
body.light-mode .queue-row-controls button {
  color: var(--ink);
}

body.light-mode .queue-row-controls {
  background: #ffffff;
}

body.light-mode .queue-row-controls button:hover {
  background: rgba(0, 0, 0, 0.06);
}

body.light-mode .queue-row-controls button.danger {
  color: var(--red);
}

body.light-mode .icon,
body.light-mode .circle-button .icon,
body.light-mode .add-option .icon,
body.light-mode .project-menu .icon,
body.light-mode .track-action-icon .icon,
body.light-mode .player-icon-slot {
  color: #000000;
}

body.light-mode .search-image-slot img,
body.light-mode .button-image-slot img,
body.light-mode .add-icon-slot img,
body.light-mode .project-menu-icon-slot img,
body.light-mode .track-action-icon img,
body.light-mode .shuffle-button img,
body.light-mode .player-icon-slot img {
  filter: brightness(0) saturate(100%);
}

.screen-profile-page {
  padding-top: 30px;
}

body.light-mode .screen-profile-page,
body.light-mode .screen-home,
body.light-mode .screen-search,
body.light-mode .screen-detail {
  background: var(--bg);
}

.profile-page-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.profile-page-grid {
  width: min(680px, calc(100vw - (var(--page-pad-x) * 2)));
  display: grid;
  grid-template-columns: 250px 340px;
  gap: 58px;
  align-items: start;
  margin: 92px auto 0;
}

.profile-page-card {
  display: grid;
  justify-items: center;
  gap: 14px;
}

.profile-page-card .profile-disc-card {
  width: 250px;
  min-height: auto;
  padding: 0;
  border-radius: 0;
}

.profile-page-card .profile-mini-logo {
  font-size: 0.82rem;
}

.profile-page-card .disc-large {
  width: 200px;
  height: 200px;
  margin-top: 0;
  box-shadow: none;
  cursor: pointer;
  transition:
    filter var(--motion-fast) ease,
    transform var(--motion-fast) var(--motion-ease);
}

.profile-page-card .disc-large:hover {
  filter: brightness(0.9);
  transform: translateY(-2px);
}

.profile-page-card .profile-name-row {
  gap: 8px;
  margin-top: 24px;
}

.profile-page-card .profile-color-dot {
  width: 20px;
  height: 20px;
}

.profile-page-card .profile-name-row strong {
  max-width: 158px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 0.98rem;
}

.profile-page-card .profile-disc-card small {
  margin-top: 11px;
  font-size: 0.78rem;
}

.profile-page-card .edit-profile-link {
  font-size: 0.9rem;
}

.profile-settings-panel {
  display: grid;
  gap: 10px;
}

.storage-card,
.local-library-card,
.profile-setting-row,
.profile-link-list {
  overflow: hidden;
  border-radius: 10px;
  background: var(--panel-soft);
}

.storage-card {
  display: grid;
  gap: 19px;
  padding: 18px;
  color: var(--white);
}

.local-library-card {
  display: grid;
  gap: 10px;
  padding: 14px;
  color: var(--white);
}

.local-library-card p,
.local-library-card small {
  margin: 0;
  color: var(--muted);
}

.local-library-card small {
  font-size: 0.72rem;
  line-height: 1.35;
}

.local-library-card .profile-setting-row {
  min-height: 40px;
  margin: 0;
  padding: 0 12px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  background: rgba(255, 255, 255, 0.045);
  white-space: nowrap;
  transform: translateY(0) scale(1);
  box-shadow: 0 0 0 rgba(0, 0, 0, 0);
  transition:
    transform 170ms var(--motion-ease),
    background 170ms ease,
    box-shadow 170ms ease;
  will-change: transform;
}

.local-library-card .profile-setting-row span {
  min-width: 0;
  white-space: nowrap;
}

.local-library-card .profile-setting-row:hover {
  background: rgba(255, 255, 255, 0.075);
  transform: translateY(-2px) scale(1.01);
  box-shadow: 0 10px 18px rgba(0, 0, 0, 0.16);
}

.local-library-card .profile-setting-row:active,
.local-library-card .profile-setting-row.button-press {
  transform: translateY(1px) scale(0.985);
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.12);
}

.local-library-card .profile-setting-row:focus-visible {
  outline: 1px solid rgba(255, 255, 255, 0.34);
  outline-offset: 2px;
}

.sync-card {
  border: 0;
}

.storage-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
}

.storage-top span {
  color: var(--muted);
}

.storage-counter {
  display: grid;
  justify-items: start;
  gap: 4px;
}

.storage-counter strong {
  color: var(--white);
  font-size: 1.62rem;
  line-height: 1;
}

.storage-counter span,
.storage-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.78rem;
}

.profile-setting-row {
  min-height: 48px;
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 0 14px;
  border: 0;
  color: var(--white);
  cursor: pointer;
  font-size: 0.8rem;
  text-align: left;
}

.profile-setting-icon {
  width: 16px;
  height: 16px;
  display: grid;
  place-items: center;
}

.profile-setting-icon svg,
.profile-setting-icon img {
  width: 100%;
  height: 100%;
  display: block;
}

.setting-caret {
  color: var(--white);
}

.profile-setting-row input {
  position: absolute;
  opacity: 0;
}

.profile-setting-row .switch-ui {
  width: 32px;
  height: 19px;
  padding: 2px;
  justify-self: end;
}

.profile-setting-row .switch-ui::before {
  width: 15px;
  height: 15px;
}

.profile-setting-row input:checked + .switch-ui {
  background: #8b5cf6;
}

.profile-setting-row input:checked + .switch-ui::before {
  transform: translateX(13px);
  background: var(--white);
}

.profile-link-list {
  display: grid;
}

.profile-link-list a {
  min-height: 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  color: var(--white);
  font-size: 0.68rem;
  text-decoration: none;
}

.profile-link-list a:last-child {
  border-bottom: 0;
}

.login-close {
  position: absolute;
  right: -8px;
  top: 28px;
}

.delete-panel {
  position: absolute;
  left: 50%;
  top: 50%;
  width: min(488px, calc(100vw - 44px));
  display: grid;
  gap: 16px;
  padding: 45px 31px 30px;
  border-radius: 14px;
  background: #161616;
  box-shadow: var(--shadow);
  text-align: center;
  transform: translate(-50%, -50%);
}

.delete-panel h2 {
  margin: 0;
  font-size: 1.8rem;
}

.delete-panel p {
  width: min(360px, 100%);
  margin: 0 auto 12px;
  color: var(--muted);
  font-size: 1.04rem;
  line-height: 1.35;
}

.delete-confirm-button,
.delete-cancel-button {
  width: 100%;
  height: 67px;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  font-size: 1rem;
}

.delete-confirm-button {
  background: rgba(91, 29, 31, 0.58);
  color: var(--red);
}

.delete-cancel-button {
  background: var(--button);
  color: var(--white);
}

.account-menu {
  position: fixed;
  z-index: 85;
  width: 171px;
  display: grid;
  gap: 8px;
  padding: 14px 16px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 18px;
  background: #171717;
  box-shadow: var(--shadow);
}

.account-menu[hidden] {
  display: none;
}

.account-menu-option {
  width: 100%;
  min-height: 28px;
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  align-items: center;
  justify-self: stretch;
  gap: 8px;
  padding: 0;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--white);
  cursor: pointer;
  font-size: 0.88rem;
  text-align: left;
  white-space: nowrap;
}

.account-menu-option.danger {
  color: var(--red);
}

.account-menu-icon {
  width: 18px;
  height: 18px;
  display: grid;
  place-items: center;
}

.account-menu-icon svg,
.account-menu-icon img {
  width: 100%;
  height: 100%;
  display: block;
}

.account-action-panel {
  position: absolute;
  left: 50%;
  top: 50%;
  width: min(456px, calc(100vw - 32px));
  display: grid;
  gap: 16px;
  padding: 24px 16px 28px;
  border-radius: 18px;
  background: #171717;
  box-shadow: var(--shadow);
  text-align: center;
  transform: translate(-50%, -50%);
}

.account-action-panel h2 {
  margin: 0;
  font-size: 1.65rem;
}

.account-action-panel p {
  width: min(360px, 100%);
  margin: 0 auto 18px;
  color: var(--muted);
  line-height: 1.35;
}

.account-primary-button,
.account-secondary-button,
.account-plain-button {
  width: 100%;
  height: 56px;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  font-size: 1rem;
}

.account-primary-button {
  background: var(--white);
  color: var(--black);
}

.account-secondary-button {
  background: var(--button);
  color: var(--white);
}

.account-plain-button {
  height: 42px;
  background: transparent;
  color: var(--white);
}

.choice-modal {
  position: fixed;
  inset: 0;
  z-index: 130;
}

.choice-panel {
  position: absolute;
  left: 50%;
  top: 50%;
  width: min(430px, calc(100vw - 34px));
  max-height: min(580px, calc(100vh - 34px));
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 14px;
  padding: 18px;
  border-radius: 20px;
  background: #171717;
  box-shadow: var(--shadow);
  transform: translate(-50%, -50%);
}

.choice-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.choice-head h2 {
  margin: 0;
  font-size: 1.35rem;
}

.choice-list {
  display: grid;
  gap: 8px;
  overflow-y: auto;
}

.choice-item {
  width: 100%;
  min-height: 66px;
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  align-items: center;
  gap: 13px;
  padding: 8px;
  border: 0;
  border-radius: 13px;
  background: var(--button);
  color: var(--white);
  cursor: pointer;
  text-align: left;
}

.choice-item:hover {
  background: var(--button-hover);
}

.choice-thumb {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  background: var(--project-cover, linear-gradient(135deg, #373737, #222));
}

.choice-thumb.is-folder {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), transparent 38%),
    linear-gradient(135deg, #454545 0%, #282828 100%);
}

.choice-copy {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.choice-copy strong,
.choice-copy small {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.choice-copy small {
  color: var(--muted);
  font-size: 0.82rem;
}

.track-detail-modal {
  position: fixed;
  inset: 0;
  z-index: 95;
  color: var(--white);
}

.track-detail-shell {
  position: absolute;
  left: 50%;
  top: 50%;
  width: min(790px, calc(100vw - 42px));
  max-height: min(610px, calc(100vh - 42px));
  min-height: 0;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(285px, 316px) minmax(410px, 1fr);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 0;
  background: #151515;
  box-shadow: var(--shadow);
  transform: translate(-50%, -50%);
}

.track-detail-left {
  position: relative;
  min-width: 0;
  display: grid;
  place-items: center;
  padding: 64px 20px 32px;
  border-right: 1px solid var(--line);
}

.track-detail-close {
  position: absolute;
  left: 16px;
  top: 19px;
}

.track-detail-summary {
  width: min(282px, 100%);
  display: grid;
  justify-items: center;
  text-align: center;
}

.track-title-edit {
  width: 100%;
  margin: 0 0 6px;
  padding: 0;
  overflow: hidden;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--white);
  text-align: center;
  font-size: 1.48rem;
  line-height: 1.12;
  font-weight: 850;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.track-detail-summary p {
  margin: 0;
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.2;
}

.track-detail-wave {
  width: 100%;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1px;
  margin: 25px 0 16px;
  overflow: hidden;
}

.track-detail-wave span {
  width: 2px;
  min-height: 5px;
  border-radius: 2px;
  background: rgba(128, 128, 128, 0.68);
}

#trackDetailFileName {
  width: 100%;
  overflow: hidden;
  font-family: ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", monospace;
  color: var(--muted);
  font-size: 0.8rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.track-more-info-button {
  height: 42px;
  margin-top: 19px;
  padding: 0 20px;
  border: 0;
  border-radius: 999px;
  background: var(--button);
  color: var(--white);
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 850;
}

.track-detail-right {
  min-width: 0;
  height: auto;
  max-height: min(610px, calc(100vh - 42px));
  overflow-y: auto;
  padding: 21px 16px 22px 20px;
}

.track-detail-right h2 {
  margin: 0 0 20px;
  color: var(--white);
  font-size: 1.38rem;
  line-height: 1.1;
  font-weight: 850;
}

.track-info-card {
  width: min(550px, 100%);
  display: grid;
  gap: 12px;
  margin-bottom: 24px;
  padding: 14px;
  border-radius: 15px;
  background: var(--panel-soft);
}

.track-info-modal {
  position: fixed;
  inset: 0;
  z-index: 96;
  color: var(--white);
}

.track-info-panel {
  position: absolute;
  left: 50%;
  top: 50%;
  width: min(390px, calc(100vw - 32px));
  max-height: min(690px, calc(100vh - 32px));
  overflow-y: auto;
  display: grid;
  justify-items: stretch;
  gap: 14px;
  padding: 22px 24px 24px;
  border-radius: 18px;
  background: #151515;
  color: var(--white);
  box-shadow: var(--shadow);
  transform: translate(-50%, -50%);
}

.track-info-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.track-info-title {
  width: 100%;
  padding: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--white);
  text-align: center;
  font-size: 1.35rem;
}

.track-info-meta {
  margin: 0;
  color: var(--muted);
  text-align: center;
  font-size: 0.8rem;
}

.track-info-wave {
  height: 58px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2px;
  overflow: hidden;
}

.track-info-wave span {
  width: 2px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.52);
}

.track-tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.track-tag-row button {
  min-height: 32px;
  padding: 0 12px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--white);
  cursor: pointer;
  font-size: 0.82rem;
}

.track-tag-row button.is-active {
  background: var(--accent);
  color: #101010;
}

.track-info-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.track-info-fields label,
.track-notes-field {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 0.72rem;
  text-transform: uppercase;
}

.track-info-fields input,
.track-notes-field textarea {
  width: 100%;
  border: 0;
  outline: 0;
  border-radius: 12px;
  background: var(--button);
  color: var(--white);
}

.track-info-fields input {
  height: 43px;
  padding: 0 12px;
}

.track-notes-field textarea {
  min-height: 86px;
  resize: vertical;
  padding: 12px;
}

.track-save-info-button {
  height: 43px;
  border: 0;
  border-radius: 999px;
  background: var(--white);
  color: var(--black);
  cursor: pointer;
}

.version-section {
  display: grid;
  gap: 8px;
  margin-top: 8px;
}

.version-section > p {
  margin: 0 0 -4px 22px;
  color: var(--muted);
  font-size: 0.82rem;
}

.version-list {
  display: grid;
  gap: 8px;
}

.version-row {
  min-height: 78px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 24px;
  align-items: center;
  gap: 10px;
  padding: 13px 16px;
  border: 1px solid transparent;
  border-radius: 18px;
  background: transparent;
  color: var(--white);
  cursor: pointer;
  text-align: left;
}

.version-row.is-active,
.version-row:hover {
  border-color: #2b76ff;
}

.version-row strong,
.version-row small {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.version-row small {
  margin-top: 6px;
  color: var(--muted);
  font-size: 0.76rem;
}

.track-version-button,
.track-info-done {
  width: 100%;
  min-height: 54px;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
}

.track-version-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  margin-top: 18px;
  background: #4a4a4a;
  color: var(--white);
}

.track-info-done {
  background: var(--white);
  color: var(--black);
}

.track-action-group {
  width: 100%;
  margin-bottom: 20px;
  overflow: hidden;
  border-radius: 14px;
  background: var(--panel-soft);
}

.track-action-row {
  width: 100%;
  min-height: 52px;
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 13px;
  padding: 0 22px 0 18px;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
  color: var(--white);
  cursor: pointer;
  font-size: 0.93rem;
  font-weight: 850;
  text-align: left;
  transition:
    background var(--motion-fast) ease,
    transform var(--motion-fast) var(--motion-ease);
}

.track-action-row:last-child {
  border-bottom: 0;
}

#trackMoveUpButton,
#trackMoveDownButton {
  display: none;
}

.track-action-row:hover {
  background: rgba(255, 255, 255, 0.045);
}

.track-action-icon {
  position: relative;
  width: 18px;
  height: 18px;
  display: grid;
  place-items: center;
  color: currentColor;
}

.track-action-icon::before,
.track-action-icon::after {
  content: none;
  display: none;
}

.track-action-icon svg,
.track-action-icon img {
  width: 100%;
  height: 100%;
  display: block;
}

.track-action-icon[data-track-icon="share"]::before {
  width: 12px;
  height: 12px;
  border: 2px solid currentColor;
  border-radius: 4px;
  transform: rotate(-45deg);
}

.track-action-icon[data-track-icon="share"]::after {
  width: 8px;
  height: 2px;
  background: currentColor;
  transform: rotate(-45deg);
}

.track-action-icon[data-track-icon="notes"]::before {
  width: 12px;
  height: 15px;
  border: 2px solid currentColor;
  border-radius: 2px;
}

.track-action-icon[data-track-icon="notes"]::after {
  width: 6px;
  height: 2px;
  top: 6px;
  background: currentColor;
  box-shadow: 0 4px 0 currentColor;
}

.track-action-icon[data-track-icon="replace"]::before,
.track-action-icon[data-track-icon="version"]::before {
  left: 1px;
  top: 3px;
  width: 2px;
  height: 12px;
  border-radius: 2px;
  background: currentColor;
  box-shadow: 4px -2px 0 currentColor, 8px 1px 0 currentColor, 12px -1px 0 currentColor;
}

.track-action-icon[data-track-icon="replace"]::after,
.track-action-icon[data-track-icon="version"]::after {
  right: 0;
  bottom: 0;
  width: 7px;
  height: 7px;
  border: 2px solid currentColor;
  border-radius: 50%;
}

.track-action-icon[data-track-icon="split"]::before {
  left: 2px;
  top: 8px;
  width: 13px;
  height: 2px;
  background: currentColor;
  transform: rotate(-28deg);
}

.track-action-icon[data-track-icon="split"]::after {
  right: 0;
  top: 2px;
  width: 6px;
  height: 6px;
  border-top: 2px solid currentColor;
  border-right: 2px solid currentColor;
  transform: rotate(45deg);
  box-shadow: 3px 9px 0 -2px currentColor;
}

.track-action-icon[data-track-icon="queue"]::before {
  left: 3px;
  top: 4px;
  width: 11px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  box-shadow: 0 5px 0 currentColor, 0 10px 0 currentColor;
}

.track-action-icon[data-track-icon="queue"]::after {
  right: 0;
  bottom: 0;
  width: 7px;
  height: 7px;
  border: 2px solid currentColor;
  border-radius: 50%;
  background:
    linear-gradient(currentColor, currentColor) center / 5px 1.5px no-repeat,
    linear-gradient(currentColor, currentColor) center / 1.5px 5px no-repeat;
}

.track-action-icon[data-track-icon="move-up"]::before,
.track-action-icon[data-track-icon="move-down"]::before {
  left: 7px;
  top: 3px;
  width: 2px;
  height: 12px;
  background: currentColor;
}

.track-action-icon[data-track-icon="move-up"]::after,
.track-action-icon[data-track-icon="move-down"]::after {
  left: 4px;
  width: 7px;
  height: 7px;
  border-left: 2px solid currentColor;
  border-top: 2px solid currentColor;
}

.track-action-icon[data-track-icon="move-up"]::after {
  top: 2px;
  transform: rotate(45deg);
}

.track-action-icon[data-track-icon="move-down"]::after {
  bottom: 2px;
  transform: rotate(225deg);
}

.track-action-icon[data-track-icon="export"]::before {
  left: 8px;
  top: 2px;
  width: 2px;
  height: 11px;
  background: currentColor;
}

.track-action-icon[data-track-icon="export"]::after {
  left: 4px;
  top: 8px;
  width: 8px;
  height: 8px;
  border-left: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(-45deg);
}

.track-action-icon[data-track-icon="move"]::before {
  width: 13px;
  height: 13px;
  border: 2px solid currentColor;
  border-radius: 3px;
}

.track-action-icon[data-track-icon="move"]::after {
  right: 1px;
  top: 5px;
  width: 5px;
  height: 5px;
  border-top: 2px solid currentColor;
  border-right: 2px solid currentColor;
  transform: rotate(45deg);
}

.track-action-icon[data-track-icon="duplicate"]::before,
.track-action-icon[data-track-icon="duplicate"]::after {
  width: 11px;
  height: 11px;
  border: 2px solid currentColor;
  border-radius: 3px;
}

.track-action-icon[data-track-icon="duplicate"]::before {
  left: 1px;
  top: 1px;
}

.track-action-icon[data-track-icon="duplicate"]::after {
  right: 1px;
  bottom: 1px;
  background: var(--panel-soft);
}

.track-action-icon[data-track-icon="delete"]::before {
  left: 4px;
  top: 5px;
  width: 10px;
  height: 12px;
  border: 2px solid currentColor;
  border-top: 0;
  border-radius: 0 0 2px 2px;
}

.track-action-icon[data-track-icon="delete"]::after {
  left: 3px;
  top: 2px;
  width: 12px;
  height: 2px;
  background: currentColor;
  box-shadow: 4px -2px 0 -0.5px currentColor;
}

.track-action-row span:nth-child(2) {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.track-action-row small {
  color: var(--muted);
  font-size: 0.93rem;
  font-weight: 500;
}

.track-action-chevron {
  width: 12px;
  height: 12px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  opacity: 0.88;
  transform: rotate(-45deg);
}

.track-action-row.danger {
  color: var(--red);
}

.detail-cover {
  position: relative;
  z-index: 1;
  width: 405px;
  height: 405px;
  overflow: visible;
  display: grid;
  align-items: end;
  justify-items: center;
  padding: 0 24px 37px;
  border: 0;
  border-radius: 13px;
  background: var(--project-cover, linear-gradient(135deg, #ffea3d 0%, #ff951c 42%, #ff120f 100%));
  box-shadow: 0 20px 42px rgba(0, 0, 0, 0.18);
  color: var(--white);
  cursor: pointer;
  isolation: isolate;
}

.screen-detail.is-cover-morphing .detail-panel {
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
}

.detail-cover::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  border-radius: inherit;
  background: rgba(0, 0, 0, 0.34);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--motion-fast) ease;
}

.detail-cover::after {
  content: "";
  position: absolute;
  left: calc(100% - 210px);
  top: 62px;
  z-index: -1;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 50%, transparent 31%, rgba(255, 255, 255, 0.18) 32%, transparent 34%),
    radial-gradient(circle at 50% 50%, transparent 57%, rgba(255, 255, 255, 0.22) 58%, transparent 60%),
    radial-gradient(circle at 50% 50%, transparent 68%, rgba(0, 0, 0, 0.14) 69%, transparent 71%),
    radial-gradient(circle at 64% 47%, rgba(255, 255, 255, 0.17), transparent 52%),
    var(--project-cover, linear-gradient(135deg, #ffea3d 0%, #ff951c 42%, #ff120f 100%));
  box-shadow:
    inset -30px 0 44px rgba(255, 255, 255, 0.2),
    inset 26px 0 48px rgba(0, 0, 0, 0.15),
    0 24px 46px rgba(0, 0, 0, 0.17);
  filter: brightness(1.11) saturate(1.08);
  opacity: 0;
  pointer-events: none;
  clip-path: inset(0 0 0 270px);
  transform: scale(0.92);
  transform-origin: center;
  transition:
    clip-path 620ms var(--motion-ease),
    transform 620ms var(--motion-ease),
    opacity 380ms ease;
  will-change: transform, opacity;
}

.detail-cover.is-playing-project::after {
  opacity: 0.68;
  clip-path: inset(0 0 0 210px);
  transform: scale(1);
}

.detail-cover span {
  position: relative;
  z-index: 1;
  opacity: 0;
  transform: translateY(8px);
  color: var(--white);
  font-size: 0.94rem;
  line-height: 1;
  text-align: center;
  transition:
    opacity var(--motion-fast) ease,
    transform var(--motion-fast) var(--motion-ease);
}

.detail-cover:hover::before,
.detail-cover:focus-visible::before {
  opacity: 1;
}

.detail-cover:hover span,
.detail-cover:focus-visible span {
  opacity: 1;
  transform: translateY(0);
}

.detail-cover.is-folder {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), transparent 38%),
    linear-gradient(135deg, #454545 0%, #282828 100%);
}

.detail-panel {
  position: relative;
  z-index: 5;
  padding-top: 1px;
}

.project-heading-row {
  align-items: flex-start;
  justify-content: space-between;
  gap: 28px;
}

h1,
h2,
p {
  margin-top: 0;
}

.project-title-input {
  width: min(390px, 100%);
  margin: 0 0 4px;
  padding: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--white);
  font-size: 1.75rem;
  line-height: 1.2;
  font-weight: 930;
}

.project-title-input.is-default-title {
  color: var(--muted);
}

.project-title-input::selection {
  background: rgba(139, 92, 246, 0.28);
  color: var(--white);
}

.detail-meta {
  gap: 5px;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1;
}

.play-tools {
  gap: 16px;
  padding-top: 0;
}

.shuffle-button {
  width: 22px;
  height: 44px;
  display: grid;
  place-items: center;
  background: transparent;
  color: #878787;
}

.shuffle-button img {
  width: 20px;
  height: 20px;
  display: block;
  object-fit: contain;
}

.hero-play {
  width: 44px;
  height: 44px;
  border-radius: 16px;
  background: var(--white);
  color: var(--black);
}

.search-row {
  height: 40px;
  gap: 10px;
  margin-top: 12px;
  padding: 0 14px;
  border-radius: 11px;
  background: var(--button);
  color: var(--muted);
}

.search-row input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--white);
}

.status-line {
  min-height: 18px;
  margin: 10px 0 5px;
  color: var(--muted);
  font-size: 0.78rem;
}

.empty-upload {
  display: grid;
  place-items: center;
  align-content: center;
  min-height: 250px;
  margin-top: 28px;
  border: 2px dashed rgba(255, 255, 255, 0.23);
  border-radius: 28px;
  color: var(--muted);
}

.empty-upload.is-dragging {
  border-color: rgba(255, 255, 255, 0.52);
  background: rgba(255, 255, 255, 0.03);
}

.empty-upload[hidden] {
  display: none;
}

.empty-upload p {
  margin: 13px 0 15px;
  font-size: 0.92rem;
}

.project-upload-image-slot {
  width: 34px;
  height: 34px;
  display: block;
}

.project-upload-image-slot img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
}

.add-tracks {
  justify-content: center;
  gap: 8px;
  min-width: 119px;
  height: 40px;
  padding: 0 16px;
  border: 0;
  border-radius: 12px;
  background: var(--button);
  color: var(--white);
  cursor: pointer;
  font-size: 0.88rem;
  font-weight: 850;
}

.project-add-tracks {
  width: 100%;
  height: 40px;
  margin: 17px 0 9px;
  border-radius: 12px;
  background: var(--button);
}

.project-add-tracks:hover {
  background: var(--button-hover);
}

.track-list {
  display: grid;
  gap: 0;
  margin: 19px 0 0;
  padding: 0;
  list-style: none;
}

.track-list[hidden] {
  display: none;
}

.track-row {
  min-height: 58px;
  gap: 17px;
  padding: 8px 13px 8px 25px;
  border-radius: 10px;
  cursor: pointer;
  transition:
    background var(--motion-fast) ease,
    opacity var(--motion-mid) var(--motion-ease),
    transform var(--motion-mid) var(--motion-ease);
}

.track-row:hover {
  background: rgba(255, 255, 255, 0.035);
  transform: translateX(3px);
}

.track-row.is-order-feedback {
  background: rgba(139, 92, 246, 0.12);
  transform: translateX(6px);
}

.track-row.is-new-track {
  background: transparent;
}

.track-index {
  width: 18px;
  flex: 0 0 18px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 0.9rem;
  text-align: center;
  cursor: pointer;
}

.track-row.is-current .track-index {
  color: var(--white);
}

.track-index .icon {
  width: 18px;
  height: 18px;
}

.track-row:hover .track-index {
  color: var(--white);
  font-size: 0;
}

.track-row:hover .track-index .icon {
  display: none;
}

.track-row:hover .track-index::before {
  content: "";
  width: 0;
  height: 0;
  border-top: 6px solid transparent;
  border-bottom: 6px solid transparent;
  border-left: 10px solid currentColor;
  transform: translateX(1px);
}

.track-row.is-playing:hover .track-index {
  font-size: 0.9rem;
}

.track-row.is-playing:hover .track-index .icon {
  display: inline-block;
}

.track-row.is-playing:hover .track-index::before {
  content: none;
}

.track-copy {
  min-width: 0;
  flex: 1;
}

.track-title {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--white);
  font-size: 0.98rem;
  line-height: 1.2;
  font-weight: 900;
}

.track-date {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.1;
}

.track-menu {
  width: 28px;
  height: 32px;
  justify-content: center;
  border: 0;
  background: transparent;
  color: var(--white);
  cursor: pointer;
  font-size: 1.1rem;
  font-weight: 900;
  line-height: 0.5;
}

.converter-drawer,
.target-modal,
.modal {
  position: fixed;
  inset: 0;
  z-index: 120;
}

.drawer-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.44);
}

#profileModal .drawer-backdrop {
  background: #101010;
}

#profileModal.is-editing-profile .drawer-backdrop {
  background: rgba(0, 0, 0, 0.58);
  -webkit-backdrop-filter: blur(11px);
  backdrop-filter: blur(11px);
}

#profileModal {
  overflow: hidden;
  --panel: #171717;
  --panel-soft: #202020;
  --ink: #f7f7f7;
  --muted: #8f8f8f;
  --line: rgba(255, 255, 255, 0.08);
  --button: #252525;
  --button-hover: #303030;
  --white: #ffffff;
  --black: #101010;
}

.drawer-panel,
.small-panel,
.sync-panel,
.login-panel,
.profile-card-panel,
.edit-profile-panel,
.username-panel,
.phone-signup-panel {
  position: absolute;
  width: min(420px, calc(100vw - 36px));
  max-height: calc(100vh - 36px);
  overflow-y: auto;
  padding: 18px;
  border-radius: 22px;
  background: #1f1f1f;
  box-shadow: var(--shadow);
}

.drawer-panel {
  top: 18px;
  right: 18px;
}

.target-panel {
  position: absolute;
  left: 16px;
  bottom: 16px;
  width: min(426px, calc(100vw - 32px));
  max-height: min(520px, calc(100vh - 32px));
  overflow-y: auto;
  padding: 50px 16px 18px;
  border-radius: 16px;
  background: #151515;
  box-shadow: var(--shadow);
}

.target-close {
  position: absolute;
  right: 16px;
  top: 8px;
  width: 32px;
  height: 32px;
  border-radius: 10px;
}

.target-search {
  height: 43px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 14px;
  border-radius: 14px;
  background: var(--button);
  color: var(--white);
}

.target-search input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--white);
}

.target-list {
  display: grid;
  gap: 9px;
  margin-top: 16px;
}

.target-item {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  min-height: 52px;
  padding: 0 4px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: var(--white);
  cursor: pointer;
  text-align: left;
}

.target-item:hover {
  background: rgba(255, 255, 255, 0.05);
}

.target-thumb {
  width: 52px;
  height: 52px;
  border-radius: 4px;
  background: var(--project-cover, #262626);
}

.target-thumb.is-create {
  border-radius: 6px;
  background:
    radial-gradient(circle at center, rgba(255, 255, 255, 0.85) 0 3px, transparent 4px),
    conic-gradient(from 20deg, #7fe2ff, #5740c8, #ffe7a8, #7fe2ff);
  position: relative;
}

.target-thumb.is-create::before,
.target-thumb.is-create::after {
  content: "";
  position: absolute;
  left: 18px;
  top: 25px;
  width: 16px;
  height: 2px;
  background: var(--white);
}

.target-thumb.is-create::after {
  transform: rotate(90deg);
}

.target-thumb.is-folder {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), transparent 38%),
    linear-gradient(135deg, #454545 0%, #282828 100%);
}

.target-item strong,
.target-item small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.target-item strong {
  font-size: 0.98rem;
  font-weight: 900;
}

.target-item small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.86rem;
}

.small-panel {
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.sync-panel {
  top: 50%;
  left: 50%;
  width: min(468px, calc(100vw - 34px));
  display: grid;
  gap: 16px;
  padding: 20px;
  border-radius: 24px;
  background: #171717;
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.48);
  transform: translate(-50%, -50%);
}

.sync-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.sync-panel-head h2 {
  margin: 3px 0 0;
  font-size: 1.28rem;
  line-height: 1.1;
}

.sync-panel-copy {
  margin: 0;
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.42;
}

.sync-fields {
  display: grid;
  gap: 10px;
}

.is-confirm-mode .sync-fields {
  display: none;
}

.sync-field {
  display: grid;
  gap: 7px;
  padding: 12px;
  border-radius: 15px;
  background: #232323;
}

.sync-field span {
  color: var(--muted);
  font-size: 0.68rem;
  text-transform: uppercase;
}

.sync-field input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--white);
  font-size: 0.9rem;
}

.sync-summary {
  display: grid;
  gap: 8px;
  padding: 12px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.035);
}

.sync-summary span {
  min-height: 34px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.sync-summary strong {
  color: var(--white);
  font-size: 0.78rem;
}

.sync-summary small,
.sync-summary p {
  margin: 0;
  color: var(--muted);
  font-size: 0.74rem;
  line-height: 1.35;
}

.sync-summary small {
  max-width: 245px;
  text-align: right;
}

.sync-actions {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 10px;
}

.sync-secondary-button,
.sync-primary-button {
  min-height: 48px;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  transition:
    transform 170ms var(--motion-ease),
    background 170ms ease,
    opacity 170ms ease;
  white-space: nowrap;
}

.sync-secondary-button {
  background: #252525;
  color: var(--white);
}

.sync-primary-button {
  background: var(--white);
  color: var(--black);
}

.sync-secondary-button:hover {
  background: #303030;
}

.sync-primary-button:hover {
  background: #e9e9e9;
}

.sync-secondary-button:active,
.sync-primary-button:active {
  transform: scale(0.97);
}

.sync-secondary-button:disabled,
.sync-primary-button:disabled,
.sync-panel .circle-button:disabled {
  cursor: wait;
  opacity: 0.62;
}

.login-panel,
.profile-card-panel,
.edit-profile-panel,
.username-panel,
.phone-signup-panel {
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.login-panel {
  width: min(430px, calc(100vw - 36px));
  display: grid;
  justify-items: center;
  gap: 20px;
  padding: 46px 24px 36px;
  background: transparent;
  box-shadow: none;
  max-height: none;
  overflow: visible;
}

.login-close {
  display: none;
}

.login-panel h2 {
  max-width: 330px;
  margin: 8px 0 0;
  color: var(--white);
  font-size: 1.55rem;
  line-height: 1.22;
  text-align: center;
}

.login-logo-card {
  width: 150px;
  height: 150px;
  display: grid;
  place-items: center;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.login-disc {
  width: 150px;
  height: 150px;
  display: grid;
  place-items: center;
  border-radius: 0;
  background: url("icones/logo.png") center / contain no-repeat;
  box-shadow: none;
  animation: none;
}

.login-logo-card img {
  width: 150px;
  height: 150px;
  display: block;
  object-fit: contain;
  animation: none;
}

.login-auth-actions {
  width: 100%;
  display: grid;
  gap: 12px;
}

.auth-button,
.auth-phone-button {
  width: 100%;
  min-height: 52px;
  border: 0;
  border-radius: 999px;
  background: #242424;
  color: var(--white);
  cursor: pointer;
  font-size: 0.94rem;
  white-space: nowrap;
}

.auth-button {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) 34px;
  align-items: center;
  padding: 0 18px;
}

.auth-button span:last-child {
  justify-self: center;
}

.auth-brand {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  justify-self: start;
  font-size: 1rem;
  font-weight: 700;
}

.auth-brand img {
  width: 25px;
  height: 25px;
  display: block;
  object-fit: contain;
  filter: none;
}

.auth-brand-google {
  color: #4285f4;
  background: transparent;
}

.auth-brand-apple {
  color: #111111;
  background: transparent;
}

.auth-phone-button {
  margin-top: 8px;
  background: transparent;
}

.terms-copy {
  max-width: 340px;
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 0.76rem;
  line-height: 1.35;
  text-align: center;
}

.phone-signup-panel {
  width: min(462px, calc(100vw - 28px));
  display: grid;
  gap: 18px;
  padding: 17px 18px 22px;
  border-radius: 24px;
  background: #171717;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.48);
}

.phone-panel-head {
  display: grid;
  grid-template-columns: 54px 1fr 54px;
  align-items: center;
  gap: 12px;
  color: var(--muted);
  text-align: center;
}

.phone-panel-head p {
  margin: 0;
  color: var(--white);
}

.signup-mode-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  padding: 4px;
  border-radius: 999px;
  background: var(--button);
}

.signup-mode-tab {
  height: 38px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  white-space: nowrap;
}

.signup-mode-tab.is-active {
  background: var(--white);
  color: var(--black);
}

.phone-form {
  display: grid;
  gap: 10px;
}

.phone-form label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 0.72rem;
  text-transform: uppercase;
}

.phone-form input {
  width: 100%;
  height: 58px;
  border: 0;
  border-radius: 16px;
  background: var(--button);
  color: var(--white);
  font-size: 0.95rem;
  text-align: center;
  outline: none;
}

.password-rules {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 12px;
  margin: 0;
  padding: 0;
  color: var(--muted);
  font-size: 0.76rem;
  list-style: none;
}

.password-rules li {
  display: flex;
  align-items: center;
  gap: 7px;
  white-space: nowrap;
}

.password-rules li::before {
  content: "";
  width: 7px;
  height: 7px;
  flex: 0 0 7px;
  border-radius: 999px;
  background: #5b5b5b;
}

.password-rules li.is-ok {
  color: var(--white);
}

.password-rules li.is-ok::before {
  background: var(--accent);
}

.phone-auth-status {
  min-height: 18px;
  margin: 0;
  color: var(--muted);
  font-size: 0.78rem;
  text-align: center;
}

.phone-auth-status.is-error {
  color: #ff3434;
}

.phone-submit-button {
  height: 62px;
}

.profile-card-panel {
  width: min(335px, calc(100vw - 36px));
  display: grid;
  justify-items: center;
  gap: 22px;
  background: transparent;
  box-shadow: none;
  overflow: visible;
}

.profile-close {
  position: absolute;
  right: -2px;
  top: -2px;
}

.profile-disc-card {
  width: 250px;
  min-height: auto;
  display: grid;
  justify-items: center;
  padding: 0;
  border-radius: 0;
  background: transparent;
  color: var(--ink);
}

.profile-mini-logo {
  display: none;
}

.disc-large {
  width: 204px;
  height: 204px;
  margin-top: 0;
  overflow: hidden;
  border-radius: 34px;
  background: var(--button);
  box-shadow: none;
}

.disc-large img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center center;
  margin: 0;
}

.disc-large.has-profile-image {
  background: transparent !important;
  box-shadow: none;
}

.disc-large.has-profile-image img {
  transform: scale(1.16);
  transform-origin: center center;
}

.disc-large.is-empty-profile-image {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.1), transparent 42%),
    var(--profile-empty-cover, linear-gradient(135deg, #ffea3d 0%, #ff951c 42%, #ff120f 100%));
}

.disc-large.is-empty-profile-image::before {
  content: none;
}

.profile-name-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  margin-top: 20px;
}

.profile-color-dot {
  display: none;
}

.profile-name-row strong {
  font-size: 0.98rem;
}

.profile-disc-card small {
  margin-top: 8px;
  color: var(--muted);
}

.edit-profile-link {
  border: 0;
  background: transparent;
  color: var(--white);
  cursor: pointer;
  font-weight: 900;
}

.edit-profile-panel {
  width: min(560px, calc(100vw - 34px));
  min-height: auto;
  padding: 26px 28px 32px;
  border-radius: 24px;
  background: #171717;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.48);
  overflow: visible;
}

.edit-profile-panel > .drawer-head {
  display: grid;
  grid-template-columns: 44px 1fr 44px;
  text-align: center;
}

.edit-profile-panel h2 {
  font-size: 1.58rem;
}

.edit-profile-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 18px;
  justify-items: center;
  align-items: start;
  margin-top: 28px;
}

.profile-disc-edit-column {
  display: none;
}

.edit-profile-grid > div:not(.profile-disc-edit-column) {
  width: min(340px, 100%);
  display: grid;
  justify-items: center;
}

.profile-disc-edit {
  width: 312px;
  height: 312px;
  display: grid;
  justify-items: center;
  padding: 30px;
  border-radius: 50px;
  background: linear-gradient(180deg, #f2f2f2 0%, #cfcfcf 100%);
}

.profile-disc-edit .disc-large {
  width: 250px;
  height: 250px;
  margin-top: 2px;
}

.change-disc-button {
  width: 100%;
  height: 64px;
  margin-top: 16px;
  border: 0;
  border-radius: 999px;
  background: var(--white);
  color: var(--black);
  cursor: pointer;
  font-weight: 850;
}

.profile-label {
  margin: 0 0 12px;
  color: var(--muted);
  text-align: center;
  font-size: 0.94rem;
}

.profile-image-circle {
  width: 220px;
  height: 220px;
  display: grid;
  place-items: center;
  margin: 0 auto 22px;
  padding: 0;
  border: 0;
  border-radius: 34px;
  background: var(--button);
  color: var(--white);
  cursor: pointer;
  overflow: hidden;
  line-height: 0;
  transition:
    transform var(--motion-fast) var(--motion-ease),
    background var(--motion-fast) ease;
}

.profile-image-circle:hover {
  transform: translateY(-2px) scale(1.01);
}

.profile-image-slot {
  width: 100%;
  height: 100%;
  display: block;
  border-radius: inherit;
  background: transparent;
}

.profile-image-slot.is-empty-profile-image {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.1), transparent 42%),
    var(--profile-empty-cover, linear-gradient(135deg, #ffea3d 0%, #ff951c 42%, #ff120f 100%));
}

.profile-image-slot.has-image img {
  width: 100%;
  height: 100%;
  display: block;
  border-radius: inherit;
  object-fit: cover;
  object-position: center center;
  transform: scale(1.16);
  transform-origin: center center;
}

.username-display-button {
  width: min(312px, 100%);
  min-height: 54px;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: center;
  margin: 0 auto;
  padding: 0 22px;
  border: 0;
  border-radius: 18px;
  background: var(--button);
  color: var(--white);
  cursor: pointer;
  text-align: center;
}

.username-display-button strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.username-panel {
  width: min(462px, calc(100vw - 28px));
  display: grid;
  gap: 30px;
  padding: 17px 18px 22px;
  background: #171717;
  box-shadow: none;
}

.username-panel-head {
  display: grid;
  grid-template-columns: 54px 1fr 54px;
  align-items: center;
  gap: 12px;
  color: var(--muted);
  text-align: center;
}

.username-panel-head p {
  margin: 0;
}

.username-panel input {
  width: 100%;
  height: 66px;
  border: 0;
  border-radius: 16px;
  background: var(--button);
  color: var(--white);
  text-align: center;
  font-size: 1rem;
}

.username-save-button {
  width: 100%;
  height: 68px;
  border: 0;
  border-radius: 999px;
  background: var(--white);
  color: var(--black);
  cursor: pointer;
  font-size: 1.05rem;
}

.drawer-head {
  justify-content: space-between;
  gap: 14px;
}

.eyebrow {
  margin: 0 0 2px;
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 850;
  text-transform: uppercase;
}

h2 {
  margin: 0;
  color: var(--white);
  font-size: 1rem;
}

.source-picker {
  width: 100%;
  gap: 12px;
  min-height: 72px;
  margin-top: 18px;
  padding: 12px;
  border: 0;
  border-radius: 14px;
  background: var(--button);
  text-align: left;
  cursor: pointer;
}

.source-art {
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: transparent;
}

.source-art img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
}

.source-picker strong,
.source-picker small {
  display: block;
}

.source-picker strong {
  color: var(--white);
}

.source-picker small {
  margin-top: 3px;
  color: var(--muted);
}

.settings-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 12px 0;
}

.field,
.switch-row,
.profile-field {
  min-height: 62px;
  padding: 10px 12px;
  border-radius: 14px;
  background: var(--button);
}

.field,
.profile-field {
  display: grid;
  gap: 6px;
}

.field span,
.profile-field span {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
}

.field select,
.profile-field input {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--white);
  font-weight: 850;
}

.field select {
  color-scheme: dark;
  cursor: pointer;
}

.field select option {
  background: #262626;
  color: #ffffff;
}

body.light-mode .field select {
  color-scheme: light;
  color: var(--ink);
}

body.light-mode .field select option {
  background: #ffffff;
  color: #000000;
}

.profile-field {
  margin: 18px 0 12px;
}

.switch-row {
  grid-column: 1 / -1;
  gap: 10px;
  color: var(--white);
  font-size: 0.9rem;
  font-weight: 850;
  cursor: pointer;
}

.switch-row input {
  position: absolute;
  opacity: 0;
}

.switch-ui {
  width: 44px;
  height: 26px;
  padding: 3px;
  border-radius: 999px;
  background: #3a3a3a;
}

.switch-ui::before {
  content: "";
  display: block;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--muted);
  transition:
    transform 160ms ease,
    background 160ms ease;
}

.switch-row input:checked + .switch-ui {
  background: var(--white);
}

.switch-row input:checked + .switch-ui::before {
  background: var(--black);
  transform: translateX(18px);
}

.convert-button,
.primary-button,
.secondary-button {
  justify-content: center;
  gap: 8px;
  border: 0;
  cursor: pointer;
  font-weight: 850;
}

.convert-button {
  width: 100%;
  min-height: 48px;
  border-radius: 999px;
  background: var(--white);
  color: var(--black);
}

.convert-button:disabled,
.primary-button:disabled,
.secondary-button:disabled,
.transport-button:disabled,
.circle-button:disabled {
  opacity: 0.38;
  cursor: not-allowed;
}

.progress {
  height: 3px;
  margin-top: 12px;
  border-radius: 999px;
  overflow: hidden;
  background: #303030;
  opacity: 0;
}

.progress.is-active {
  opacity: 1;
}

.progress span {
  display: block;
  width: 42%;
  height: 100%;
  border-radius: inherit;
  background: var(--white);
  animation: progress-run 1.05s ease-in-out infinite;
}

@keyframes progress-run {
  0% {
    transform: translateX(-110%);
  }
  100% {
    transform: translateX(260%);
  }
}

.result-panel {
  display: grid;
  gap: 12px;
  margin-top: 12px;
  padding: 14px;
  border-radius: 14px;
  background: var(--button);
}

.result-panel audio {
  width: 100%;
}

.result-actions {
  gap: 8px;
}

.result-actions button {
  flex: 1;
  min-height: 42px;
  border-radius: 999px;
}

.primary-button {
  background: var(--white);
  color: var(--black);
}

.secondary-button {
  background: #343434;
  color: var(--white);
}

.record-status {
  margin: 18px 0 12px;
  color: var(--muted);
}

.queue-panel {
  position: fixed;
  left: 50%;
  bottom: 96px;
  z-index: 34;
  width: min(790px, calc(100vw - 56px));
  max-height: min(360px, calc(100vh - 150px));
  overflow-y: auto;
  overflow-x: hidden;
  padding: 16px 10px 12px;
  border-radius: 24px;
  background: rgba(43, 43, 43, 0.98);
  box-shadow: var(--shadow);
  transform: translateX(-50%);
}

.queue-panel[hidden] {
  display: none;
}

.queue-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 10px 18px;
}

.queue-head .circle-button {
  width: 36px;
  height: 36px;
  border-radius: 12px;
}

.queue-head h2 {
  margin: 0;
  font-size: 1.15rem;
  line-height: 1;
}

.queue-list {
  display: grid;
  gap: 2px;
}

.queue-row {
  min-height: 66px;
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) 36px;
  align-items: center;
  gap: 14px;
  padding: 10px;
  border-radius: 13px;
}

.queue-row:hover {
  background: rgba(255, 255, 255, 0.055);
}

.queue-art {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: var(--project-cover, linear-gradient(135deg, #ffea3d, #ff120f));
}

.queue-copy {
  min-width: 0;
  display: grid;
  gap: 5px;
  border: 0;
  background: transparent;
  color: var(--white);
  cursor: pointer;
  text-align: left;
}

.queue-copy strong,
.queue-copy small {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.queue-copy strong {
  font-size: 0.94rem;
  line-height: 1.1;
}

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

.queue-copy small {
  font-size: 0.82rem;
}

.queue-row-actions {
  position: relative;
  justify-self: end;
}

.queue-more {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  color: var(--white);
  cursor: pointer;
  line-height: 1;
  list-style: none;
  opacity: 0;
  pointer-events: none;
  transition: opacity 120ms ease;
}

.queue-more::-webkit-details-marker {
  display: none;
}

.queue-row:hover .queue-more,
.queue-row-actions[open] .queue-more {
  opacity: 1;
  pointer-events: auto;
}

.queue-more:hover,
.queue-row-actions[open] .queue-more {
  background: rgba(255, 255, 255, 0.08);
}

.queue-row-controls {
  position: fixed;
  left: var(--queue-menu-left, 0);
  top: var(--queue-menu-top, 0);
  z-index: 90;
  width: 238px;
  display: grid;
  gap: 7px;
  padding: 10px;
  border: 1px solid rgba(244, 238, 252, 0.1);
  border-radius: 17px;
  background:
    linear-gradient(180deg, rgba(139, 92, 246, 0.08), transparent 58%),
    #18181b;
  box-shadow: 0 22px 54px rgba(0, 0, 0, 0.46);
  transition:
    background var(--motion-fast) ease,
    transform var(--motion-fast) var(--motion-ease),
    opacity var(--motion-fast) ease;
}

.queue-row-controls button {
  width: 100%;
  height: 48px;
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  border: 0;
  border-radius: 13px;
  background: transparent;
  color: var(--white);
  cursor: pointer;
  font-size: 0.88rem;
  font-weight: 800;
  text-align: left;
  padding: 0 11px;
  white-space: nowrap;
  transition:
    background var(--motion-fast) ease,
    transform var(--motion-fast) var(--motion-ease),
    color var(--motion-fast) ease;
}

.queue-row-controls button:hover {
  background: rgba(255, 255, 255, 0.075);
  transform: translateX(2px);
}

.queue-control-icon {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
}

.queue-control-icon img {
  width: 18px;
  height: 18px;
  display: block;
  object-fit: contain;
}

.queue-control-go:hover {
  color: #ffffff;
}

.queue-control-remove:hover {
  color: #ff4b4b;
  background: rgba(255, 29, 37, 0.08);
}

.queue-control-remove .queue-control-icon {
  background: rgba(255, 29, 37, 0.1);
}

.queue-row-controls button:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

.player-dock {
  position: fixed;
  left: 50%;
  bottom: 25px;
  z-index: 35;
  width: auto;
  max-width: calc(100vw - 38px);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 11px;
  transform: translateX(-50%);
  pointer-events: none;
}

.player {
  width: auto;
  max-width: calc(100vw - 38px);
  min-height: 55px;
  flex: 0 1 auto;
  gap: 10px;
  padding: 5px 14px 5px 6px;
  border-radius: 999px;
  background: rgba(43, 43, 43, 0.97);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
  pointer-events: auto;
  transition:
    opacity var(--motion-mid) var(--motion-ease),
    transform var(--motion-mid) var(--motion-ease),
    background var(--motion-fast) ease;
}

.player.player-enter {
  opacity: 0;
  transform: translateY(18px) scale(0.98);
}

.player.player-enter.player-enter-active {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.player.is-hidden {
  display: none;
}

.player.is-hidden + .player-add-button {
  display: none;
}

.player-open {
  width: 174px;
  min-width: 0;
  display: grid;
  grid-template-columns: 43px minmax(0, 1fr);
  align-items: center;
  gap: 9px;
  border: 0;
  background: transparent;
  color: var(--white);
  cursor: pointer;
  text-align: left;
}

.player-art {
  width: 43px;
  height: 43px;
  border-radius: 50%;
  background: var(--project-cover, linear-gradient(135deg, #ffea3d, #ff120f));
}

.player-copy {
  min-width: 0;
  display: grid;
  gap: 2px;
  transition:
    opacity 180ms ease,
    transform 180ms var(--motion-ease);
}

.player-copy.is-updating {
  opacity: 0;
  transform: translateY(4px);
}

.player-copy strong,
.player-copy small {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.player-copy strong {
  color: var(--white);
  font-size: 0.78rem;
  font-weight: 850;
}

.player-copy small {
  color: var(--muted);
  font-size: 0.72rem;
}

.player-wave {
  --progress: 0%;
  position: relative;
  width: clamp(180px, 22vw, 214px);
  height: 38px;
  flex: 0 0 clamp(180px, 22vw, 214px);
  transition:
    opacity var(--motion-mid) ease,
    transform var(--motion-mid) var(--motion-ease);
}

.player-wave.is-updating {
  opacity: 0;
  transform: scaleX(0.96);
}

.player-wave-canvas,
.player-wave-progress,
#seekInput {
  position: absolute;
}

.player-wave-canvas {
  inset: 0;
  width: 100%;
  height: 100%;
}

.player-wave-progress {
  top: -2px;
  bottom: -2px;
  left: var(--progress);
  width: 4px;
  border-radius: 999px;
  background: var(--accent);
  box-shadow: 0 0 0 1px rgba(139, 92, 246, 0.22);
}

#seekInput {
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: pointer;
  accent-color: var(--accent);
}

.player-time {
  width: 82px;
  flex: 0 0 82px;
  color: var(--white);
  font-size: 0.76rem;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  text-align: center;
  white-space: nowrap;
}

.player-controls {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 13px;
  margin-left: 3px;
}

.player-icon-button {
  width: 24px;
  height: 28px;
  display: grid;
  place-items: center;
  position: relative;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--white);
  cursor: pointer;
  transition:
    color var(--motion-fast) ease,
    transform var(--motion-fast) var(--motion-ease),
    opacity var(--motion-fast) ease;
}

.player-icon-button:hover {
  transform: translateY(-1px);
}

.player-icon-button:active {
  transform: scale(0.92);
}

.player-icon-button:active .player-icon-slot,
.player-icon-button.is-active .player-icon-slot {
  color: var(--accent);
}

.player-icon-button:active img,
.player-icon-button.is-active img {
  filter: brightness(0) saturate(100%) invert(42%) sepia(89%) saturate(2476%) hue-rotate(239deg) brightness(98%) contrast(97%);
}

body.light-mode .player-icon-button:active .player-icon-slot,
body.light-mode .player-icon-button.is-active .player-icon-slot {
  color: #000000;
}

body.light-mode .player-icon-button:active img,
body.light-mode .player-icon-button.is-active img {
  filter: brightness(0) saturate(100%);
}

#playerShuffleButton.is-active .player-icon-slot {
  color: var(--accent);
}

#playerShuffleButton.is-active img,
body.light-mode #playerShuffleButton.is-active img {
  filter: brightness(0) saturate(100%) invert(42%) sepia(89%) saturate(2476%) hue-rotate(239deg) brightness(98%) contrast(97%);
}

#repeatButton::before {
  content: attr(data-loop-label);
  position: absolute;
  left: 50%;
  bottom: calc(100% + 16px);
  z-index: 6;
  min-width: max-content;
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--accent);
  color: #101010;
  font-size: 0.72rem;
  line-height: 1;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 6px);
  transition:
    opacity 120ms ease,
    transform 120ms ease;
}

#repeatButton:hover::before,
#repeatButton:focus-visible::before {
  opacity: 1;
  transform: translate(-50%, 0);
}

#repeatButton .player-icon-slot {
  position: relative;
}

#repeatButton.is-loop-track .player-icon-slot::after {
  content: "";
  position: absolute;
  right: -4px;
  top: -4px;
  width: 8px;
  height: 8px;
  background: url("icones/icon1.png") center / contain no-repeat;
  filter: brightness(0) saturate(100%) invert(42%) sepia(89%) saturate(2476%) hue-rotate(239deg) brightness(98%) contrast(97%);
}

.player-icon-slot {
  width: 19px;
  height: 19px;
  display: grid;
  place-items: center;
}

.player-icon-slot svg,
.player-icon-slot img {
  display: block;
  width: 100%;
  height: 100%;
}

.player-icon-slot[data-player-icon="play"] {
  width: 23px;
  height: 23px;
}

.player-icon-slot[data-player-icon="play"][data-player-state="pause"] img {
  display: none;
}

.player-icon-slot[data-player-icon="play"][data-player-state="pause"]::before,
.player-icon-slot[data-player-icon="play"][data-player-state="pause"]::after {
  content: "";
  width: 4px;
  height: 16px;
  border-radius: 2px;
  background: currentColor;
}

.player-icon-slot[data-player-icon="play"][data-player-state="pause"] {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

.volume-wrap {
  position: relative;
  width: 24px;
  height: 28px;
  flex: 0 0 24px;
  display: grid;
  place-items: center;
  z-index: 2;
}

.volume-wrap .player-icon-button {
  position: relative;
  z-index: 3;
  width: 24px;
  height: 28px;
  border-radius: 50%;
  background: transparent;
  color: #ffffff;
  transform: none;
}

.volume-wrap .player-icon-button.is-active .player-icon-slot {
  color: #ffffff;
}

.volume-wrap .player-icon-button.is-active img,
.volume-icon-slot .volume-icon-img {
  filter: brightness(0) invert(1);
}

body.light-mode .volume-wrap .player-icon-button.is-active .player-icon-slot {
  color: #000000;
}

body.light-mode .volume-wrap .player-icon-button.is-active img,
body.light-mode .volume-icon-slot .volume-icon-img {
  filter: brightness(0) saturate(100%);
}

body.light-mode .volume-popover {
  background: rgba(255, 255, 255, 0.96);
}

.volume-wrap .player-icon-slot[data-player-icon="volume"] {
  position: relative;
  width: 17px;
  height: 17px;
}

.volume-icon-slot .volume-icon-img {
  display: none;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.volume-icon-slot[data-volume-state="muted"] .volume-icon-muted,
.volume-icon-slot[data-volume-state="low"] .volume-icon-low,
.volume-icon-slot[data-volume-state="medium"] .volume-icon-medium,
.volume-icon-slot[data-volume-state="high"] .volume-icon-high {
  display: block;
}

.volume-popover {
  --volume-thumb-y: 26px;
  --volume-accent: var(--accent);
  --volume-track-top: 26px;
  --volume-track-bottom: 48px;
  --volume-track-stop: calc(var(--volume-thumb-y) - var(--volume-track-top));
  position: absolute;
  left: 50%;
  bottom: -2px;
  z-index: 1;
  width: 38px;
  height: 154px;
  border-radius: 999px;
  background: rgba(43, 43, 43, 0.98);
  box-shadow: var(--shadow);
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 6px);
  transition:
    opacity 140ms ease,
    transform 140ms ease;
}

.volume-popover::before,
.volume-popover::after {
  content: "";
  position: absolute;
  left: 50%;
  pointer-events: none;
}

.volume-popover::before {
  top: var(--volume-track-top);
  bottom: var(--volume-track-bottom);
  width: 3px;
  border-radius: 999px;
  background:
    linear-gradient(
      to bottom,
      #b6b6b6 0 var(--volume-track-stop),
      var(--volume-accent) var(--volume-track-stop) 100%
    );
  transform: translateX(-50%);
}

.volume-popover::after {
  top: var(--volume-thumb-y);
  width: 15px;
  height: 15px;
  border-radius: 50%;
  border: 2px solid #ffffff;
  background: var(--volume-accent);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.72);
  transform: translate(-50%, -50%);
}

.volume-popover.is-muted::before {
  background: #b6b6b6;
}

.volume-wrap:hover .volume-popover,
.volume-wrap:focus-within .volume-popover {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, 0);
}

.volume-popover span {
  position: absolute;
  right: calc(100% + 8px);
  top: 50%;
  display: block;
  padding: 6px 11px;
  border-radius: 999px;
  background: var(--volume-accent);
  color: #101010;
  font-size: 0.72rem;
  line-height: 1;
  white-space: nowrap;
  transform: translateY(-50%);
}

.volume-popover input {
  position: absolute;
  left: 50%;
  top: 74px;
  z-index: 2;
  width: 100px;
  height: 38px;
  margin: 0;
  padding: 0;
  border: 0;
  opacity: 0;
  accent-color: var(--volume-accent);
  cursor: pointer;
  appearance: none;
  transform: translate(-50%, -50%) rotate(-90deg);
}

.volume-popover input::-webkit-slider-runnable-track {
  height: 38px;
  border-radius: 999px;
  background: transparent;
}

.volume-popover input::-webkit-slider-thumb {
  width: 24px;
  height: 38px;
  margin-top: 0;
  border-radius: 50%;
  background: transparent;
  appearance: none;
}

.volume-popover input::-moz-range-track {
  height: 38px;
  background: transparent;
}

.volume-popover input::-moz-range-thumb {
  width: 24px;
  height: 38px;
  border: 0;
  background: transparent;
}

.player-add-button {
  display: grid;
  width: 58px;
  height: 58px;
  flex: 0 0 58px;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: var(--button);
  color: var(--white);
  cursor: pointer;
  box-shadow: var(--shadow);
  pointer-events: auto;
}

.player-add-button[hidden],
.screen-detail:not(.folder-mode):not([hidden]) ~ .player-dock .player-add-button {
  display: none;
}

body.player-add-mode .bottom-add {
  z-index: 38;
}

body.player-add-mode .floating-add {
  width: 70px;
  min-width: 70px;
  height: 70px;
  padding: 0;
  border-radius: 50%;
}

body.player-add-mode #addButtonText {
  display: none;
}

body.player-add-mode .add-menu {
  margin-bottom: 2px;
}

body.login-open .bottom-add,
body.login-open .player-dock {
  display: none !important;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 88px;
  z-index: 150;
  width: min(92vw, 430px);
  padding: 12px 14px;
  border-radius: 999px;
  background: var(--white);
  color: var(--black);
  box-shadow: var(--shadow);
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 12px);
  transition:
    opacity 180ms ease,
    transform 180ms ease;
  font-size: 0.84rem;
  font-weight: 850;
}

.toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

.icon {
  position: relative;
  display: inline-block;
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
}

.icon::before,
.icon::after {
  content: "";
  position: absolute;
  display: block;
}

.icon-plus::before {
  width: 14px;
  height: 2px;
  left: 2px;
  top: 8px;
  background: currentColor;
}

.icon-plus::after {
  width: 2px;
  height: 14px;
  left: 8px;
  top: 2px;
  background: currentColor;
}

.icon-plus-circle::before {
  width: 13px;
  height: 13px;
  left: 2px;
  top: 2px;
  border: 1.8px solid currentColor;
  border-radius: 50%;
}

.icon-plus-circle::after {
  width: 7px;
  height: 7px;
  left: 5.5px;
  top: 5.5px;
  border-left: 1.8px solid currentColor;
  border-top: 1.8px solid currentColor;
  transform: rotate(45deg);
}

.icon-play::before {
  left: 6px;
  top: 3px;
  width: 0;
  height: 0;
  border-top: 6px solid transparent;
  border-bottom: 6px solid transparent;
  border-left: 9px solid currentColor;
}

.icon-pause::before,
.icon-pause::after {
  top: 3px;
  width: 4px;
  height: 12px;
  border-radius: 2px;
  background: currentColor;
}

.icon-pause::before {
  left: 4px;
}

.icon-pause::after {
  right: 4px;
}

.icon-next::before {
  left: 3px;
  top: 4px;
  width: 0;
  height: 0;
  border-top: 5px solid transparent;
  border-bottom: 5px solid transparent;
  border-left: 8px solid currentColor;
}

.icon-next::after {
  right: 3px;
  top: 4px;
  width: 2px;
  height: 10px;
  background: currentColor;
}

.icon-prev::before {
  right: 3px;
  top: 4px;
  width: 0;
  height: 0;
  border-top: 5px solid transparent;
  border-bottom: 5px solid transparent;
  border-right: 8px solid currentColor;
}

.icon-prev::after {
  left: 3px;
  top: 4px;
  width: 2px;
  height: 10px;
  background: currentColor;
}

.icon-back::before {
  left: 5px;
  top: 4px;
  width: 8px;
  height: 8px;
  border-left: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
}

.icon-more::before {
  left: 3px;
  top: 8px;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 6px 0 0 currentColor, 12px 0 0 currentColor;
}

.icon-shuffle::before {
  inset: 0;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M16 3h5v5'/%3E%3Cpath d='M4 20 21 3'/%3E%3Cpath d='M21 16v5h-5'/%3E%3Cpath d='M15 15l6 6'/%3E%3Cpath d='M4 4l5 5'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M16 3h5v5'/%3E%3Cpath d='M4 20 21 3'/%3E%3Cpath d='M21 16v5h-5'/%3E%3Cpath d='M15 15l6 6'/%3E%3Cpath d='M4 4l5 5'/%3E%3C/svg%3E") center / contain no-repeat;
}

.icon-shuffle::after {
  display: none;
}

.icon-repeat::before {
  left: 2px;
  top: 5px;
  width: 12px;
  height: 8px;
  border-top: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  border-radius: 3px;
}

.icon-repeat::after {
  right: 1px;
  top: 3px;
  width: 5px;
  height: 5px;
  border-right: 2px solid currentColor;
  border-top: 2px solid currentColor;
  transform: rotate(45deg);
}

.icon-list::before {
  left: 4px;
  top: 4px;
  width: 10px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  box-shadow: 0 5px 0 currentColor, 0 10px 0 currentColor;
}

.icon-volume::before {
  left: 2px;
  top: 6px;
  width: 6px;
  height: 7px;
  background: currentColor;
  clip-path: polygon(0 25%, 45% 25%, 100% 0, 100% 100%, 45% 75%, 0 75%);
}

.icon-volume::after {
  left: 10px;
  top: 4px;
  width: 6px;
  height: 10px;
  border-right: 2px solid currentColor;
  border-radius: 50%;
}

.icon-close::before,
.icon-close::after {
  left: 8px;
  top: 3px;
  width: 2px;
  height: 12px;
  border-radius: 2px;
  background: currentColor;
}

.icon-close::before {
  transform: rotate(45deg);
}

.icon-close::after {
  transform: rotate(-45deg);
}

.icon-wave::before {
  left: 1px;
  top: 8px;
  width: 16px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
}

.icon-wave::after {
  left: 1px;
  top: 3px;
  width: 16px;
  height: 12px;
  border-radius: 50%;
  border-top: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
}

.icon-download::before {
  left: 8px;
  top: 1px;
  width: 2px;
  height: 10px;
  background: currentColor;
}

.icon-download::after {
  left: 4px;
  top: 7px;
  width: 8px;
  height: 8px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
}

.icon-upload::before {
  left: 1px;
  top: 8px;
  width: 16px;
  height: 8px;
  border-radius: 7px;
  background: currentColor;
}

.icon-upload::after {
  left: 6px;
  top: 2px;
  width: 6px;
  height: 9px;
  border-left: 2px solid var(--bg);
  border-top: 2px solid var(--bg);
  transform: rotate(45deg);
}

.icon-folder::before {
  left: 2px;
  top: 5px;
  width: 14px;
  height: 11px;
  border: 1.8px solid currentColor;
  border-radius: 2px;
}

.icon-folder::after {
  left: 3px;
  top: 3px;
  width: 7px;
  height: 4px;
  border: 1.8px solid currentColor;
  border-bottom: 0;
  border-radius: 2px 2px 0 0;
}

.icon-duplicate::before {
  left: 5px;
  top: 5px;
  width: 9px;
  height: 9px;
  border: 2px solid currentColor;
  border-radius: 3px;
}

.icon-duplicate::after {
  left: 1px;
  top: 1px;
  width: 9px;
  height: 9px;
  border: 2px solid currentColor;
  border-radius: 3px;
  background: var(--bg);
}

.icon-trash::before {
  left: 4px;
  top: 5px;
  width: 10px;
  height: 11px;
  border: 2px solid currentColor;
  border-top: 0;
  border-radius: 0 0 3px 3px;
}

.icon-trash::after {
  left: 3px;
  top: 2px;
  width: 12px;
  height: 2px;
  background: currentColor;
  box-shadow: 4px -2px 0 -1px currentColor;
}

.icon-queue::before {
  left: 1px;
  top: 4px;
  width: 11px;
  height: 8px;
  border: 2px solid currentColor;
  border-radius: 3px;
}

.icon-queue::after {
  left: 12px;
  top: 5px;
  width: 5px;
  height: 5px;
  border-left: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(-45deg);
}

.icon-image::before {
  left: 3px;
  top: 5px;
  width: 12px;
  height: 9px;
  border: 2px solid currentColor;
  border-radius: 2px;
}

.icon-image::after {
  left: 5px;
  top: 9px;
  width: 8px;
  height: 5px;
  background: currentColor;
  clip-path: polygon(0 100%, 38% 25%, 60% 62%, 78% 40%, 100% 100%);
}

.icon-video::before {
  left: 2px;
  top: 5px;
  width: 10px;
  height: 9px;
  border: 1.8px solid currentColor;
  border-radius: 2px;
}

.icon-video::after {
  right: 1px;
  top: 7px;
  width: 0;
  height: 0;
  border-top: 4px solid transparent;
  border-bottom: 4px solid transparent;
  border-left: 6px solid currentColor;
}

.icon-audio-bars::before {
  left: 2px;
  top: 5px;
  width: 2px;
  height: 8px;
  border-radius: 2px;
  background: currentColor;
  box-shadow:
    4px -3px 0 currentColor,
    8px 2px 0 currentColor,
    12px -1px 0 currentColor;
}

.track-row.is-current .icon-audio-bars::before {
  animation: audio-bars-live 620ms ease-in-out infinite alternate;
}

@keyframes audio-bars-live {
  0% {
    height: 7px;
    top: 6px;
    box-shadow:
      4px -1px 0 currentColor,
      8px 1px 0 currentColor,
      12px -2px 0 currentColor;
  }
  100% {
    height: 13px;
    top: 2px;
    box-shadow:
      4px 3px 0 currentColor,
      8px -4px 0 currentColor,
      12px 2px 0 currentColor;
  }
}

.record-dot {
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
  border-radius: 50%;
  background: var(--red);
}

.app-shell,
.app-shell *,
button,
input,
select,
textarea {
  font-family:
    "Poppins", Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  font-weight: 500 !important;
}

button:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 0;
  outline-offset: 0;
}

button:focus,
input:focus,
select:focus,
textarea:focus {
  outline: 0;
  box-shadow: none;
}

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

  .reveal,
  .stagger-item,
  .page-enter,
  .page-exit,
  .modal-enter .drawer-backdrop,
  .modal-enter .track-detail-shell,
  .modal-enter .track-info-panel,
  .modal-enter .choice-panel,
  .modal-enter .target-panel,
  .modal-enter .drawer-panel,
  .modal-enter .small-panel,
  .modal-enter .delete-panel,
  .modal-enter .account-action-panel,
  .modal-enter .sync-panel,
  .modal-enter .login-panel,
  .modal-enter .profile-card-panel,
  .modal-enter .edit-profile-panel,
  .modal-enter .username-panel,
  .menu-enter,
  .queue-panel.menu-enter,
  .player.player-enter {
    opacity: 1 !important;
    transform: none !important;
  }

  .track-detail-shell,
  .track-info-panel,
  .choice-panel,
  .small-panel,
  .delete-panel,
  .account-action-panel,
  .sync-panel,
  .login-panel,
  .profile-card-panel,
  .edit-profile-panel,
  .username-panel {
    transform: translate(-50%, -50%) !important;
  }

  .queue-panel,
  .queue-panel.menu-enter,
  .player-dock {
    transform: translateX(-50%) !important;
  }
}

@media (max-width: 900px) {
  :root {
    --page-pad-x: 26px;
  }

  .screen {
    padding: 24px var(--page-pad-x) 118px;
  }

  .project-grid {
    width: min(560px, calc(100vw - (var(--page-pad-x) * 2)));
    gap: 34px;
    margin-top: 58px;
  }

  .detail-layout {
    width: min(560px, calc(100vw - (var(--page-pad-x) * 2)));
    grid-template-columns: 1fr;
    gap: 26px;
    margin-top: 44px;
  }

  .detail-cover {
    width: min(405px, 100%);
    height: auto;
    aspect-ratio: 1;
  }

  .track-detail-shell {
    grid-template-columns: 1fr;
  }

  .track-detail-left {
    min-height: 360px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .track-detail-right {
    height: auto;
    min-height: 50vh;
  }

  .profile-page-grid {
    width: min(514px, calc(100vw - (var(--page-pad-x) * 2)));
    grid-template-columns: 198px 270px;
    gap: 46px;
    margin-top: 62px;
  }

  .profile-page-card .profile-disc-card {
    width: 198px;
    min-height: auto;
    padding: 0;
    border-radius: 0;
  }

  .profile-page-card .disc-large {
    width: 160px;
    height: 160px;
    margin-top: 0;
    box-shadow: none;
  }
}

@media (max-width: 560px) {
  :root {
    --page-pad-x: 18px;
  }

  .project-grid {
    grid-template-columns: repeat(2, minmax(0, 144px));
  }

  .search-page-head {
    width: min(500px, calc(100vw - (var(--page-pad-x) * 2)));
    padding-top: 62px;
  }

  .search-site-name {
    top: 18px;
  }

  .done-button {
    top: 18px;
  }

  .global-search-field,
  .search-tabs,
  .search-results {
    width: min(500px, calc(100vw - (var(--page-pad-x) * 2)));
  }

  .project-card,
  .cover-button {
    width: min(144px, calc((100vw - 76px) / 2));
  }

  .cover-button {
    height: auto;
    aspect-ratio: 1;
  }

  .project-heading-row {
    display: grid;
    gap: 16px;
  }

  .play-tools {
    justify-content: flex-end;
  }

  .project-title-input {
    font-size: 1.45rem;
  }

  .track-row {
    padding-left: 4px;
  }

  .edit-profile-grid {
    grid-template-columns: 1fr;
  }

  .profile-disc-edit {
    width: 250px;
    margin: 0 auto;
  }

  .profile-disc-edit-column {
    display: none;
  }

  .track-info-fields {
    grid-template-columns: 1fr;
  }
}

/* Simple ZamaMusic layout refresh */
:root {
  --bg: #09070d;
  --panel: #130f19;
  --panel-soft: #1c1624;
  --ink: #f4eefc;
  --text: #f4eefc;
  --muted: #a99db7;
  --dim: #6f627c;
  --line: rgba(242, 244, 239, 0.1);
  --button: #1c1624;
  --button-hover: #2a2035;
  --white: #f8f5ff;
  --black: #09070d;
  --accent: #a78bfa;
  --shadow: 0 18px 44px rgba(0, 0, 0, 0.3);
  --page-pad-x: 44px;
}

body.light-mode {
  --bg: #f8f5ff;
  --panel: #ffffff;
  --panel-soft: #eee7fb;
  --ink: #130f19;
  --text: #130f19;
  --muted: #746785;
  --dim: #9b8caf;
  --line: rgba(25, 27, 25, 0.12);
  --button: #eee7fb;
  --button-hover: #e5daf8;
  --white: #130f19;
  --black: #ffffff;
  --shadow: 0 18px 38px rgba(25, 27, 25, 0.1);
}

html,
body,
.app-shell,
.screen-home,
.screen-search,
.screen-detail,
.screen-profile-page {
  background: var(--bg);
}

.screen {
  padding-top: 26px;
  padding-bottom: 126px;
}

.home-actions,
.detail-actions,
.profile-page-actions {
  width: min(980px, calc(100vw - (var(--page-pad-x) * 2)));
  margin: 0 auto;
}

.site-name-slot {
  min-width: 0;
  min-height: 44px;
  padding-left: 0;
}

.site-name-button {
  min-height: 40px;
  gap: 9px;
  padding: 0 12px 0 6px;
  border-radius: 999px;
  color: var(--ink);
}

.site-name-button:hover {
  background: var(--button);
}

.site-name-logo {
  width: 28px;
  height: 28px;
}

.site-name-text {
  font-size: 1.02rem;
}

.action-cluster {
  gap: 6px;
}

.circle-button {
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: transparent;
}

.circle-button:hover,
.floating-add:hover,
.add-tracks:hover,
.source-picker:hover,
.add-option:hover {
  background: var(--button-hover);
}

.screen-home::before {
  height: 96px;
  background: linear-gradient(180deg, var(--bg) 0%, rgba(17, 18, 17, 0.8) 68%, transparent 100%);
  background: linear-gradient(180deg, var(--bg) 0%, color-mix(in srgb, var(--bg) 80%, transparent) 68%, transparent 100%);
}

.project-grid {
  width: min(980px, calc(100vw - (var(--page-pad-x) * 2)));
  grid-template-columns: repeat(auto-fill, minmax(128px, 128px));
  justify-content: start;
  gap: 30px 28px;
  margin-top: 52px;
}

.nested-projects {
  grid-template-columns: repeat(auto-fill, minmax(128px, 128px));
  gap: 26px;
}

.project-card,
.cover-button {
  width: 128px;
}

.cover-button {
  height: 128px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  box-shadow: none;
}

body.light-mode .cover-button {
  border-color: rgba(25, 27, 25, 0.1);
}

.project-card .cover-button:not(.is-folder)::after,
.detail-cover::after,
.project-cover-transition::after {
  content: none;
}

.project-card:hover {
  transform: translateY(-2px);
}

.project-card:hover .cover-button,
.project-card.is-opening .cover-button {
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.2);
  transform: none;
  filter: saturate(1.03);
}

.cover-button.is-folder {
  overflow: visible;
  background: linear-gradient(135deg, #21162d 0%, #130f19 100%);
  border-color: rgba(167, 139, 250, 0.18);
}

.cover-button.is-folder::before {
  content: "";
  position: absolute;
  left: 12px;
  top: -9px;
  width: 48px;
  height: 18px;
  border-radius: 8px 8px 0 0;
  background: #21162d;
  border: 1px solid rgba(167, 139, 250, 0.14);
  border-bottom: 0;
}

.cover-button.is-folder.has-folder-preview {
  padding: 7px;
  background: #130f19;
}

.folder-cover-preview {
  gap: 6px;
}

.folder-cover-tile {
  border-radius: 6px;
}

.cover-play {
  right: 8px;
  top: auto;
  bottom: 8px;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  background: rgba(17, 18, 17, 0.72);
  box-shadow: none;
  opacity: 0;
  backdrop-filter: blur(10px);
}

.project-card:hover .cover-play,
.project-card.is-playing-project .cover-play {
  opacity: 1;
  transform: none;
}

.project-copy {
  margin-top: 10px;
}

.project-title {
  color: var(--ink);
  font-size: 0.86rem;
  line-height: 1.25;
}

.project-meta {
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.76rem;
}

.lock-dot {
  width: 12px;
  height: 12px;
  flex-basis: 12px;
  background: var(--button-hover);
}

.mini-more {
  width: 24px;
  color: var(--muted);
}

.mini-more:hover {
  color: var(--ink);
}

.bottom-add {
  bottom: 28px;
  gap: 10px;
}

.floating-add {
  min-width: 118px;
  height: 48px;
  padding: 0 22px;
  border: 1px solid var(--line);
  background: var(--ink);
  color: var(--black);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.24);
  font-size: 0.94rem;
}

.floating-add.is-close {
  background: var(--button);
  color: var(--ink);
}

body.light-mode .floating-add {
  background: #130f19;
  color: #ffffff;
}

body.light-mode .floating-add.is-close {
  background: var(--button);
  color: var(--ink);
}

.add-menu {
  width: 174px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(25, 27, 25, 0.94);
  background: color-mix(in srgb, var(--panel) 94%, transparent);
  box-shadow: var(--shadow);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
}

.add-option {
  min-height: 38px;
  gap: 10px;
  padding: 0 9px;
  border-radius: 9px;
  color: var(--ink);
  font-size: 0.88rem;
}

.add-icon-slot {
  width: 18px;
  height: 18px;
  flex-basis: 18px;
}

.project-menu,
.notification-popover,
.account-menu,
.share-panel,
.queue-panel,
.target-panel,
.choice-panel,
.delete-panel,
.account-action-panel,
.sync-panel,
.drawer-panel,
.small-panel,
.login-panel,
.profile-card-panel,
.edit-profile-panel,
.username-panel,
.phone-signup-panel,
.track-detail-shell,
.track-info-panel {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.project-menu-option {
  min-height: 36px;
  border-radius: 9px;
  color: var(--ink);
  font-size: 0.88rem;
}

.detail-layout {
  width: min(980px, calc(100vw - (var(--page-pad-x) * 2)));
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 42px;
  margin-top: 52px;
}

.folder-layout {
  width: min(980px, calc(100vw - (var(--page-pad-x) * 2)));
  min-height: calc(100vh - 160px);
  margin: 0 auto;
  padding: 28px 0 120px;
}

.folder-breadcrumb {
  margin: 12px 0 0;
  font-size: 1.1rem;
}

.folder-contents {
  justify-content: start;
}

.folder-grid {
  margin-top: 44px;
}

.folder-track-list {
  width: min(560px, 100%);
}

.detail-cover {
  width: 300px;
  height: 300px;
  overflow: hidden;
  align-items: end;
  padding: 0 20px 24px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  box-shadow: none;
}

.detail-cover.is-folder {
  overflow: visible;
  background: linear-gradient(135deg, #21162d 0%, #130f19 100%);
}

.detail-cover.is-folder::before {
  content: "";
  position: absolute;
  left: 20px;
  top: -14px;
  width: 94px;
  height: 28px;
  border-radius: 12px 12px 0 0;
  background: #21162d;
  border: 1px solid rgba(167, 139, 250, 0.14);
  border-bottom: 0;
  opacity: 1;
}

.detail-cover:hover::before,
.detail-cover:focus-visible::before {
  opacity: 1;
}

.detail-panel {
  padding-top: 0;
}

.project-heading-row {
  gap: 20px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.project-title-input {
  color: var(--ink);
  font-size: 1.55rem;
  line-height: 1.15;
}

.detail-meta {
  margin-top: 7px;
  color: var(--muted);
  font-size: 0.84rem;
}

.play-tools {
  gap: 10px;
}

.shuffle-button {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: var(--button);
}

.hero-play {
  width: 42px;
  height: 42px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--black);
}

.project-add-tracks,
.add-tracks,
.search-row,
.global-search-field {
  border: 1px solid var(--line);
  background: var(--panel-soft);
}

.project-add-tracks,
.add-tracks {
  height: 38px;
  border-radius: 10px;
  color: var(--ink);
  font-size: 0.84rem;
}

.search-row {
  height: 38px;
  margin-top: 14px;
  border-radius: 10px;
}

.search-row input,
.global-search-field input {
  color: var(--ink);
}

.empty-upload {
  min-height: 190px;
  margin-top: 20px;
  border: 1px dashed rgba(242, 244, 239, 0.22);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.015);
}

body.light-mode .empty-upload {
  border-color: rgba(25, 27, 25, 0.18);
}

.track-list {
  margin-top: 14px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
}

.track-row {
  min-height: 52px;
  gap: 12px;
  padding: 8px 6px;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
}

.track-row:hover {
  background: rgba(255, 255, 255, 0.035);
  transform: none;
}

body.light-mode .track-row:hover {
  background: rgba(25, 27, 25, 0.035);
}

.track-index {
  width: 24px;
  flex-basis: 24px;
  color: var(--muted);
  font-size: 0.82rem;
}

.track-title {
  color: var(--ink);
  font-size: 0.9rem;
}

.track-date {
  color: var(--muted);
  font-size: 0.76rem;
}

.track-menu {
  color: var(--muted);
}

.screen-search {
  grid-template-rows: auto auto 1fr;
}

.search-page-head,
.search-tabs,
.search-results {
  width: min(620px, calc(100vw - (var(--page-pad-x) * 2)));
}

.search-page-head {
  margin-top: 34px;
}

.global-search-field {
  width: 100%;
  height: 42px;
  border-radius: 12px;
}

.done-button {
  height: 40px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: transparent;
  color: var(--ink);
}

.search-tabs {
  gap: 8px;
  margin-top: 22px;
}

.search-tab {
  height: 38px;
  border-color: var(--line);
  border-radius: 10px;
  color: var(--ink);
  font-size: 0.82rem;
}

.search-tab.is-active,
.search-tab:hover {
  background: var(--button);
}

.search-results {
  margin-top: 54px;
}

.search-result-row {
  min-height: 58px;
  grid-template-columns: 44px minmax(0, 1fr);
  border-radius: 10px;
}

.search-result-thumb {
  width: 44px;
  height: 44px;
  border-radius: 8px;
}

.player-dock {
  bottom: 22px;
}

.player {
  min-height: 52px;
  padding: 5px 10px 5px 5px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(25, 27, 25, 0.92);
  background: color-mix(in srgb, var(--panel) 92%, transparent);
  box-shadow: var(--shadow);
}

.player-open {
  width: 160px;
  grid-template-columns: 38px minmax(0, 1fr);
}

.player-art {
  width: 38px;
  height: 38px;
  border-radius: 10px;
}

.player-copy strong {
  color: var(--ink);
}

.player-wave {
  width: clamp(150px, 20vw, 190px);
  flex-basis: clamp(150px, 20vw, 190px);
}

.player-time {
  color: var(--muted);
}

.player-controls {
  gap: 10px;
}

.player-add-button {
  width: 52px;
  height: 52px;
  border: 1px solid var(--line);
  background: var(--panel);
  box-shadow: var(--shadow);
}

.profile-page-grid {
  width: min(880px, calc(100vw - (var(--page-pad-x) * 2)));
}

.profile-settings-panel,
.profile-page-card .profile-disc-card,
.storage-card,
.local-library-card {
  border-radius: 16px;
  background: var(--panel);
}

@media (max-width: 900px) {
  :root {
    --page-pad-x: 24px;
  }

  .screen {
    padding-top: 22px;
  }

  .home-actions,
  .detail-actions,
  .profile-page-actions,
  .project-grid,
  .detail-layout,
  .folder-layout {
    width: min(620px, calc(100vw - (var(--page-pad-x) * 2)));
  }

  .project-grid {
    grid-template-columns: repeat(auto-fill, minmax(128px, 128px));
    gap: 28px 24px;
    margin-top: 42px;
  }

  .detail-layout {
    grid-template-columns: 1fr;
    gap: 24px;
    margin-top: 42px;
  }

  .detail-cover {
    width: min(300px, 100%);
    height: auto;
    aspect-ratio: 1;
  }

  .player-wave,
  .player-time {
    display: none;
  }
}

@media (max-width: 560px) {
  :root {
    --page-pad-x: 16px;
  }

  .site-name-text {
    font-size: 0.96rem;
  }

  .circle-button {
    width: 38px;
    height: 38px;
  }

  .project-grid,
  .nested-projects {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 26px 16px;
  }

  .project-card,
  .cover-button {
    width: 100%;
  }

  .cover-button {
    height: auto;
    aspect-ratio: 1;
  }

  .project-heading-row {
    display: grid;
    gap: 14px;
  }

  .play-tools {
    justify-content: start;
  }

  .project-title-input {
    font-size: 1.35rem;
  }

  .folder-breadcrumb input {
    width: min(320px, 72vw);
  }

  .search-page-head {
    padding-top: 58px;
  }

  .search-site-name {
    left: var(--page-pad-x);
    top: 18px;
  }

  .done-button {
    top: 18px;
    right: var(--page-pad-x);
  }

  .search-tabs {
    grid-template-columns: repeat(2, 1fr);
  }

  .player {
    max-width: calc(100vw - 24px);
  }

  .player-open {
    width: min(178px, 48vw);
  }

  #previousButton,
  #nextButton {
    display: none;
  }
}

/* Stronger simple direction: darker, icon-first, less Untitled-like */
:root {
  --bg: #09070d;
  --panel: #130f19;
  --panel-soft: #1c1624;
  --ink: #f4eefc;
  --text: #f4eefc;
  --muted: #a99db7;
  --dim: #6f627c;
  --line: rgba(244, 238, 252, 0.11);
  --button: #1d1626;
  --button-hover: #2a2035;
  --accent: #8b5cf6;
  --accent-strong: #a78bfa;
  --accent-soft: rgba(139, 92, 246, 0.14);
  --white: #f4eefc;
  --black: #12091f;
  --shadow: 0 16px 42px rgba(0, 0, 0, 0.36);
}

body.light-mode {
  --bg: #f8f5ff;
  --panel: #ffffff;
  --panel-soft: #eee7fb;
  --ink: #171022;
  --text: #171022;
  --muted: #746785;
  --dim: #9b8caf;
  --line: rgba(23, 16, 34, 0.13);
  --button: #eee7fb;
  --button-hover: #e5daf8;
  --accent: #7c3aed;
  --accent-strong: #6d28d9;
  --accent-soft: rgba(124, 58, 237, 0.13);
  --white: #171022;
  --black: #ffffff;
}

.landing-screen {
  place-items: center;
  background: var(--bg);
}

.landing-content {
  width: min(360px, 100%);
  gap: 28px;
}

.landing-logo {
  width: min(278px, 76vw);
  height: auto;
  filter: brightness(1.28) saturate(1.18) drop-shadow(0 0 18px rgba(139, 92, 246, 0.2));
}

.landing-content h1 {
  display: none;
}

.landing-enter-button {
  min-width: 124px;
  height: 44px;
  border: 1px solid rgba(139, 92, 246, 0.42);
  border-radius: 14px;
  background: var(--accent-soft);
  color: var(--ink);
  box-shadow: none;
}

.landing-enter-button:hover {
  background: var(--accent);
  color: var(--black);
  transform: translateY(-1px);
}

.screen {
  padding-top: 24px;
}

.home-actions,
.detail-actions,
.profile-page-actions {
  width: min(900px, calc(100vw - (var(--page-pad-x) * 2)));
}

.site-name-button {
  padding: 0;
  background: transparent;
}

.site-name-button:hover {
  background: transparent;
}

.site-name-logo {
  width: 92px;
  height: 44px;
  object-fit: contain;
  filter: brightness(1.3) saturate(1.2);
}

.site-name-text {
  display: none;
  color: var(--ink);
  font-size: 1.04rem;
}

.circle-button {
  border-radius: 10px;
  background: var(--panel);
  box-shadow: none;
}

.circle-button:hover {
  border-color: rgba(139, 92, 246, 0.36);
  background: var(--button-hover);
}

.project-grid {
  width: min(900px, calc(100vw - (var(--page-pad-x) * 2)));
  grid-template-columns: repeat(auto-fill, minmax(132px, 132px));
  justify-content: center;
  gap: 34px 30px;
  margin-top: 58px;
}

.nested-projects {
  grid-template-columns: repeat(auto-fill, minmax(132px, 132px));
}

.project-card,
.cover-button {
  width: 132px;
}

.cover-button {
  height: 132px;
  border-radius: 8px;
  border-color: rgba(244, 238, 252, 0.08);
}

.cover-button::before {
  border-radius: inherit;
}

.cover-button.is-folder {
  background:
    linear-gradient(180deg, rgba(139, 92, 246, 0.08), transparent 44%),
    #181020;
  border-color: rgba(139, 92, 246, 0.26);
}

.cover-button.is-folder::before {
  left: 9px;
  top: -8px;
  width: 42px;
  height: 16px;
  border-radius: 7px 7px 0 0;
  background: #21162d;
  border-color: rgba(139, 92, 246, 0.24);
}

.project-title {
  font-size: 0.84rem;
}

.project-meta {
  font-size: 0.74rem;
}

.cover-play,
.hero-play,
.share-copy-button,
.sync-primary-button,
.account-primary-button,
.username-save-button,
.convert-button:not(:disabled) {
  background: var(--accent);
  color: var(--black);
}

.cover-play:hover,
.hero-play:hover,
.share-copy-button:hover,
.sync-primary-button:hover,
.account-primary-button:hover,
.username-save-button:hover,
.convert-button:not(:disabled):hover {
  background: var(--accent-strong);
}

.bottom-add {
  bottom: 26px;
}

.floating-add {
  width: 58px;
  min-width: 58px;
  height: 58px;
  gap: 0;
  padding: 0;
  border: 0;
  border-radius: 18px;
  background: var(--accent);
  color: var(--black);
  box-shadow:
    0 16px 38px rgba(139, 92, 246, 0.18),
    0 8px 18px rgba(0, 0, 0, 0.28);
}

.floating-add:hover {
  background: var(--accent-strong);
  transform: translateY(-2px);
}

.floating-add .icon {
  width: 21px;
  height: 21px;
  flex-basis: 21px;
}

.floating-add .icon-plus::before {
  width: 17px;
  height: 2px;
  left: 2px;
  top: 9.5px;
  border-radius: 999px;
}

.floating-add .icon-plus::after {
  width: 2px;
  height: 17px;
  left: 9.5px;
  top: 2px;
  border-radius: 999px;
}

.floating-add #addButtonText {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.floating-add.is-close {
  border: 1px solid var(--line);
  background: var(--panel);
  color: var(--ink);
  box-shadow: var(--shadow);
}

.floating-add.is-close:hover {
  background: var(--button-hover);
}

body.light-mode .floating-add,
body.light-mode .floating-add:hover {
  background: var(--accent);
  color: #ffffff;
}

body.light-mode .floating-add.is-close {
  background: var(--panel);
  color: var(--ink);
}

.add-menu {
  margin-bottom: 4px;
  border-radius: 16px;
  background: rgba(16, 19, 16, 0.96);
}

.add-option {
  min-height: 40px;
  color: var(--ink);
}

.add-option:hover {
  background: var(--accent-soft);
}

.detail-layout {
  width: min(900px, calc(100vw - (var(--page-pad-x) * 2)));
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 44px;
}

.detail-cover {
  width: 280px;
  height: 280px;
  border-radius: 8px;
  border-color: rgba(244, 238, 252, 0.08);
}

.detail-cover.is-folder {
  background:
    linear-gradient(180deg, rgba(139, 92, 246, 0.08), transparent 44%),
    #181020;
}

.detail-cover.is-folder::before {
  border-color: rgba(139, 92, 246, 0.24);
}

.project-heading-row {
  border-bottom-color: rgba(244, 238, 252, 0.09);
}

.project-title-input {
  font-size: 1.48rem;
}

.project-add-tracks,
.add-tracks,
.search-row,
.global-search-field {
  background: var(--panel);
}

.project-add-tracks:hover,
.add-tracks:hover {
  border-color: rgba(139, 92, 246, 0.36);
  background: var(--accent-soft);
}

.empty-upload {
  border-radius: 12px;
  background: transparent;
}

.track-list {
  border-top-color: rgba(244, 238, 252, 0.09);
}

.track-row {
  border-bottom-color: rgba(244, 238, 252, 0.09);
}

.player {
  border-radius: 16px;
  background: rgba(16, 19, 16, 0.94);
}

.player-art {
  border-radius: 8px;
}

.player-add-button {
  border-radius: 16px;
  background: var(--accent);
  color: var(--black);
}

@media (max-width: 900px) {
  .project-grid,
  .nested-projects {
    justify-content: center;
  }

  .detail-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .landing-logo {
    width: min(236px, 78vw);
    height: auto;
  }

  .site-name-logo {
    width: 82px;
    height: 40px;
  }

  .project-grid,
  .nested-projects {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    justify-content: stretch;
  }

  .project-card,
  .cover-button {
    width: 100%;
  }

  .cover-button {
    height: auto;
    aspect-ratio: 1;
  }

  .floating-add {
    width: 60px;
    min-width: 60px;
    height: 60px;
    border-radius: 20px;
  }
}

/* Search refresh */
.screen-search {
  display: block;
  min-height: 100vh;
  padding-top: 28px;
}

.search-site-name {
  display: none;
}

.search-page-head {
  width: min(760px, calc(100vw - (var(--page-pad-x) * 2)));
  display: grid;
  grid-template-columns: minmax(0, 1fr) 52px;
  align-items: center;
  gap: 12px;
  margin: 0 auto;
}

.global-search-field {
  width: 100%;
  height: 56px;
  gap: 12px;
  margin: 0;
  padding: 0 18px;
  border: 1px solid rgba(139, 92, 246, 0.2);
  border-radius: 18px;
  background: #120d18;
  color: var(--ink);
  box-shadow: inset 0 0 0 1px rgba(244, 238, 252, 0.025);
}

.global-search-field:focus-within {
  border-color: rgba(139, 92, 246, 0.62);
  box-shadow:
    inset 0 0 0 1px rgba(139, 92, 246, 0.08),
    0 0 0 4px rgba(139, 92, 246, 0.08);
}

.global-search-field input {
  color: var(--ink);
  font-size: 1rem;
}

.global-search-field input::placeholder {
  color: var(--muted);
}

.global-search-field .search-image-slot {
  width: 20px;
  height: 20px;
  position: relative;
  color: var(--accent);
}

.global-search-field .search-image-slot::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 2px;
  width: 10px;
  height: 10px;
  border: 2px solid currentColor;
  border-radius: 50%;
}

.global-search-field .search-image-slot::after {
  content: "";
  position: absolute;
  left: 13px;
  top: 13px;
  width: 8px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
  transform: rotate(45deg);
  transform-origin: left center;
}

.done-button {
  position: static;
  width: 52px;
  min-width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--panel);
  color: var(--muted);
}

.done-button:hover {
  border-color: rgba(139, 92, 246, 0.38);
  background: var(--button-hover);
  color: var(--ink);
}

.done-button-text {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.search-tabs {
  width: min(760px, calc(100vw - (var(--page-pad-x) * 2)));
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 4px;
  margin: 14px auto 0;
  padding: 5px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #120d18;
}

.search-tab {
  height: 40px;
  border: 0;
  border-radius: 13px;
  background: transparent;
  color: var(--muted);
  font-size: 0.84rem;
  transition:
    background var(--motion-fast) ease,
    color var(--motion-fast) ease,
    transform var(--motion-fast) var(--motion-ease);
}

.search-tab:hover {
  background: rgba(244, 238, 252, 0.04);
  color: var(--ink);
}

.search-tab.is-active {
  background: var(--accent);
  color: var(--black);
}

.search-results {
  width: min(760px, calc(100vw - (var(--page-pad-x) * 2)));
  margin: 28px auto 0;
}

.search-empty {
  min-height: 250px;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 16px;
  color: var(--muted);
  text-align: center;
}

.search-empty-image-slot {
  width: 72px;
  height: 72px;
  display: block;
  position: relative;
  margin: 0;
  border: 1px solid rgba(139, 92, 246, 0.26);
  border-radius: 24px;
  background:
    radial-gradient(circle at 50% 50%, rgba(139, 92, 246, 0.22), transparent 58%),
    rgba(139, 92, 246, 0.06);
}

.search-empty-image-slot::before {
  content: "";
  position: absolute;
  left: 22px;
  top: 20px;
  width: 22px;
  height: 22px;
  border: 3px solid var(--accent);
  border-radius: 50%;
}

.search-empty-image-slot::after {
  content: "";
  position: absolute;
  left: 43px;
  top: 44px;
  width: 16px;
  height: 3px;
  border-radius: 999px;
  background: var(--accent);
  transform: rotate(45deg);
  transform-origin: left center;
}

.search-empty h2 {
  margin: 0;
  color: var(--ink);
  font-size: 1rem;
}

.search-empty p {
  display: none;
}

.search-result-row {
  min-height: 64px;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 14px;
  margin-bottom: 8px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--panel);
}

.search-result-row:hover {
  border-color: rgba(139, 92, 246, 0.3);
  background: var(--button-hover);
  transform: none;
}

.search-result-thumb {
  width: 48px;
  height: 48px;
  border-radius: 10px;
}

.search-result-copy strong {
  color: var(--ink);
  font-size: 0.92rem;
}

.search-result-copy small {
  color: var(--muted);
  font-size: 0.76rem;
}

body.light-mode .global-search-field,
body.light-mode .search-tabs,
body.light-mode .done-button,
body.light-mode .search-result-row {
  background: var(--panel);
}

body.light-mode .search-tab.is-active {
  color: #ffffff;
}

@media (max-width: 560px) {
  .screen-search {
    padding-top: 22px;
  }

  .search-page-head {
    width: min(100%, calc(100vw - (var(--page-pad-x) * 2)));
    grid-template-columns: minmax(0, 1fr) 48px;
    gap: 10px;
    padding-top: 0;
  }

  .global-search-field {
    height: 52px;
    border-radius: 16px;
  }

  .done-button {
    width: 48px;
    min-width: 48px;
    height: 48px;
    top: auto;
    right: auto;
  }

  .search-tabs {
    width: min(100%, calc(100vw - (var(--page-pad-x) * 2)));
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 3px;
    margin-top: 12px;
    padding: 4px;
  }

  .search-tab {
    height: 38px;
    font-size: 0.74rem;
  }

  .search-results {
    width: min(100%, calc(100vw - (var(--page-pad-x) * 2)));
    margin-top: 22px;
  }

  .search-empty {
    min-height: 220px;
  }
}

/* Playing track motion */
.track-row {
  position: relative;
  isolation: isolate;
}

.track-row > * {
  position: relative;
  z-index: 1;
}

.track-row.is-playing {
  overflow: hidden;
  padding-left: 14px;
  background:
    linear-gradient(90deg, rgba(139, 92, 246, 0.14), rgba(139, 92, 246, 0.035) 44%, transparent 100%);
  border-color: rgba(139, 92, 246, 0.22);
  box-shadow: inset 0 0 0 1px rgba(139, 92, 246, 0.08);
  animation: playing-row-breathe 2600ms var(--motion-ease) infinite;
}

.track-row.is-playing::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  bottom: 10px;
  width: 3px;
  border-radius: 999px;
  background: var(--accent);
  box-shadow: 0 0 18px rgba(139, 92, 246, 0.58);
  opacity: 0.95;
}

.track-row.is-playing::after {
  content: "";
  position: absolute;
  inset: -40% -20%;
  z-index: 0;
  background:
    radial-gradient(circle at 18% 50%, rgba(139, 92, 246, 0.18), transparent 26%),
    linear-gradient(100deg, transparent 0 36%, rgba(255, 255, 255, 0.055) 48%, transparent 60% 100%);
  opacity: 0.52;
  transform: translateX(-22%);
  animation: playing-row-glide 3800ms ease-in-out infinite;
  pointer-events: none;
}

.track-row.is-playing .track-index {
  color: var(--accent);
}

.track-row.is-playing .track-title {
  color: var(--ink);
}

.track-row.is-playing .track-date {
  color: color-mix(in srgb, var(--accent) 64%, var(--muted));
}

.track-row.is-playing .track-menu {
  color: var(--ink);
  opacity: 0.74;
}

.track-row.is-playing .icon-audio-bars {
  width: 24px;
  height: 20px;
  color: var(--accent);
  filter: drop-shadow(0 0 8px rgba(139, 92, 246, 0.48));
}

.track-row.is-playing .icon-audio-bars::before {
  left: 1px;
  top: 1px;
  width: 22px;
  height: 18px;
  border-radius: 0;
  background:
    linear-gradient(currentColor, currentColor) 1px 9px / 3px 8px no-repeat,
    linear-gradient(currentColor, currentColor) 7px 4px / 3px 14px no-repeat,
    linear-gradient(currentColor, currentColor) 13px 11px / 3px 6px no-repeat,
    linear-gradient(currentColor, currentColor) 19px 6px / 3px 12px no-repeat;
  box-shadow: none;
  animation: playing-bars-flow 920ms ease-in-out infinite;
}

.track-row.is-playing .icon-audio-bars::after {
  left: 0;
  bottom: 1px;
  width: 24px;
  height: 1px;
  border-radius: 999px;
  background: rgba(139, 92, 246, 0.42);
  animation: playing-baseline-pulse 1800ms ease-in-out infinite;
}

.track-row.is-playing:hover {
  background:
    linear-gradient(90deg, rgba(139, 92, 246, 0.18), rgba(139, 92, 246, 0.05) 48%, transparent 100%);
  transform: none;
}

body.light-mode .track-row.is-playing {
  background:
    linear-gradient(90deg, rgba(124, 58, 237, 0.16), rgba(124, 58, 237, 0.05) 44%, transparent 100%);
  border-color: rgba(124, 58, 237, 0.24);
}

@keyframes playing-row-breathe {
  0%,
  100% {
    box-shadow:
      inset 0 0 0 1px rgba(139, 92, 246, 0.07),
      0 0 0 rgba(139, 92, 246, 0);
  }
  50% {
    box-shadow:
      inset 0 0 0 1px rgba(139, 92, 246, 0.14),
      0 0 22px rgba(139, 92, 246, 0.08);
  }
}

@keyframes playing-row-glide {
  0%,
  100% {
    opacity: 0.4;
    transform: translateX(-24%);
  }
  50% {
    opacity: 0.72;
    transform: translateX(8%);
  }
}

@keyframes playing-bars-flow {
  0% {
    background-size: 3px 7px, 3px 15px, 3px 9px, 3px 12px;
    background-position: 1px 10px, 7px 3px, 13px 8px, 19px 5px;
  }
  28% {
    background-size: 3px 14px, 3px 8px, 3px 16px, 3px 7px;
    background-position: 1px 3px, 7px 10px, 13px 2px, 19px 11px;
  }
  58% {
    background-size: 3px 10px, 3px 17px, 3px 6px, 3px 15px;
    background-position: 1px 7px, 7px 1px, 13px 12px, 19px 3px;
  }
  100% {
    background-size: 3px 7px, 3px 15px, 3px 9px, 3px 12px;
    background-position: 1px 10px, 7px 3px, 13px 8px, 19px 5px;
  }
}

@keyframes playing-baseline-pulse {
  0%,
  100% {
    opacity: 0.22;
    transform: scaleX(0.58);
  }
  50% {
    opacity: 0.72;
    transform: scaleX(1);
  }
}

@media (prefers-reduced-motion: reduce) {
  .track-row.is-playing,
  .track-row.is-playing::after,
  .track-row.is-playing .icon-audio-bars::before,
  .track-row.is-playing .icon-audio-bars::after {
    animation: none !important;
  }
}

/* Account/profile page refresh */
.screen-profile-page {
  min-height: 100vh;
  padding-top: 24px;
}

.profile-page-actions {
  width: min(980px, calc(100vw - (var(--page-pad-x) * 2)));
}

.profile-page-grid {
  width: min(980px, calc(100vw - (var(--page-pad-x) * 2)));
  display: grid;
  grid-template-columns: minmax(260px, 320px) minmax(0, 1fr);
  gap: 28px;
  align-items: start;
  margin: 48px auto 0;
}

.profile-page-card {
  display: grid;
  gap: 12px;
  justify-items: stretch;
  position: sticky;
  top: 24px;
}

.profile-page-card .profile-disc-card {
  width: 100%;
  min-height: 0;
  display: grid;
  grid-template-columns: 104px minmax(0, 1fr);
  grid-template-rows: auto auto;
  align-items: center;
  justify-items: start;
  column-gap: 16px;
  row-gap: 6px;
  padding: 16px;
  border: 1px solid rgba(139, 92, 246, 0.18);
  border-radius: 20px;
  background:
    linear-gradient(145deg, rgba(139, 92, 246, 0.08), transparent 42%),
    var(--panel);
}

.profile-page-card .profile-mini-logo {
  display: none;
}

.profile-page-card .disc-large {
  width: 104px;
  height: 104px;
  grid-row: 1 / 3;
  margin: 0;
  border-radius: 24px;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.08),
    0 14px 28px rgba(0, 0, 0, 0.18);
}

.profile-page-card .disc-large:hover {
  filter: brightness(1.04);
  transform: translateY(-1px);
}

.profile-page-card .profile-name-row {
  grid-column: 2;
  gap: 0;
  margin: 0;
  justify-content: start;
}

.profile-page-card .profile-color-dot {
  display: none;
}

.profile-page-card .profile-name-row strong {
  max-width: 100%;
  color: var(--ink);
  font-size: 1.14rem;
  line-height: 1.1;
}

.profile-page-card .profile-disc-card small {
  grid-column: 2;
  margin: 0;
  color: var(--muted);
  font-size: 0.78rem;
}

.profile-page-card .edit-profile-link {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--button);
  color: var(--ink);
  font-size: 0.88rem;
}

.profile-page-card .edit-profile-link:hover {
  border-color: rgba(139, 92, 246, 0.34);
  background: var(--button-hover);
}

.profile-settings-panel {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.profile-settings-panel > * {
  min-width: 0;
}

.storage-card,
.local-library-card,
.profile-settings-panel > .profile-setting-row {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--panel);
  box-shadow: none;
}

.storage-card {
  grid-column: span 2;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px 18px;
  padding: 18px;
}

.storage-card .storage-top {
  grid-column: 1 / -1;
}

.storage-counter {
  grid-column: 1;
}

.storage-card p {
  grid-column: 2;
  align-self: end;
  justify-self: end;
  font-size: 0.78rem;
  text-align: right;
}

.storage-counter strong {
  color: var(--accent);
  font-size: 2rem;
}

.local-library-card {
  padding: 16px;
  gap: 12px;
}

.sync-card {
  border: 1px solid var(--line);
}

.local-library-card p {
  color: var(--ink);
  font-size: 1rem;
  line-height: 1.35;
}

.local-library-card small {
  color: var(--muted);
  font-size: 0.74rem;
  line-height: 1.45;
}

.storage-top {
  color: var(--ink);
  font-size: 0.78rem;
}

.storage-top span {
  color: var(--accent);
}

.local-library-card .profile-setting-row {
  min-height: 42px;
  padding: 0 12px;
  border: 1px solid rgba(255, 255, 255, 0.035);
  border-radius: 12px;
  background: var(--button);
  color: var(--ink);
  font-size: 0.8rem;
}

.local-library-card .profile-setting-row:hover {
  border-color: rgba(139, 92, 246, 0.3);
  background: var(--button-hover);
  transform: none;
  box-shadow: none;
}

.profile-settings-panel > .profile-setting-row {
  min-height: 48px;
  padding: 0 14px;
  color: var(--ink);
}

.profile-settings-panel > .profile-setting-row:hover {
  border-color: rgba(139, 92, 246, 0.28);
  background: var(--button-hover);
}

.profile-setting-row .switch-ui {
  background: rgba(255, 255, 255, 0.12);
}

.profile-setting-row input:checked + .switch-ui {
  background: var(--accent);
}

body.light-mode .profile-page-card .profile-disc-card {
  background:
    linear-gradient(145deg, rgba(124, 58, 237, 0.08), transparent 42%),
    var(--panel);
}

body.light-mode .profile-setting-row .switch-ui {
  background: rgba(23, 16, 34, 0.14);
}

@media (max-width: 900px) {
  .profile-page-grid {
    width: min(620px, calc(100vw - (var(--page-pad-x) * 2)));
    grid-template-columns: 1fr;
    gap: 18px;
    margin-top: 34px;
  }

  .profile-page-card {
    position: static;
  }

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

  .storage-card,
  .local-library-card,
  .profile-settings-panel > .profile-setting-row {
    grid-column: auto;
  }

  .storage-card {
    grid-template-columns: 1fr;
  }

  .storage-card p {
    grid-column: 1;
    justify-self: start;
    text-align: left;
  }
}

@media (max-width: 560px) {
  .screen-profile-page {
    padding-top: 18px;
  }

  .profile-page-grid {
    margin-top: 28px;
  }

  .profile-page-card .profile-disc-card {
    grid-template-columns: 82px minmax(0, 1fr);
    padding: 14px;
    border-radius: 18px;
  }

  .profile-page-card .disc-large {
    width: 82px;
    height: 82px;
    border-radius: 20px;
  }

  .profile-page-card .profile-name-row strong {
    font-size: 1.02rem;
  }

  .storage-counter strong {
    font-size: 1.74rem;
  }
}

/* Login modal refresh */
#profileModal .drawer-backdrop {
  background: rgba(7, 9, 7, 0.96);
}

#profileModal .login-panel {
  width: min(390px, calc(100vw - 34px));
  padding: 24px;
  display: grid;
  justify-items: stretch;
  gap: 16px;
  border: 1px solid rgba(139, 92, 246, 0.18);
  border-radius: 24px;
  background:
    linear-gradient(145deg, rgba(139, 92, 246, 0.08), transparent 44%),
    var(--panel);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.42);
  overflow: visible;
}

#profileModal .login-close {
  display: grid;
  position: absolute;
  right: 14px;
  top: 14px;
}

.login-logo-card {
  width: 76px;
  height: 76px;
  justify-self: center;
  border-radius: 22px;
  background: rgba(139, 92, 246, 0.1);
  border: 1px solid rgba(139, 92, 246, 0.22);
}

.login-logo-card img {
  width: 54px;
  height: 54px;
}

.login-panel h2 {
  margin: 2px 0 4px;
  color: var(--ink);
  font-size: 1.38rem;
  text-align: center;
}

.login-auth-actions {
  gap: 10px;
}

.auth-button,
.auth-phone-button {
  min-height: 50px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--button);
  color: var(--ink);
  font-size: 0.9rem;
}

.auth-button:hover,
.auth-phone-button:hover {
  border-color: rgba(139, 92, 246, 0.34);
  background: var(--button-hover);
}

.auth-phone-button {
  margin-top: 0;
  background: var(--accent);
  color: var(--black);
}

.auth-phone-button:hover {
  background: var(--accent-strong);
  color: var(--black);
}

.terms-copy {
  max-width: 320px;
  margin: 0 auto;
  color: var(--muted);
  font-size: 0.72rem;
}

.phone-signup-panel {
  width: min(460px, calc(100vw - 28px));
  padding: 18px;
  border: 1px solid rgba(139, 92, 246, 0.18);
  border-radius: 22px;
  background: var(--panel);
}

.phone-panel-head p {
  color: var(--ink);
}

.signup-mode-tabs {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #120d18;
}

.signup-mode-tab {
  border-radius: 12px;
}

.signup-mode-tab.is-active {
  background: var(--accent);
  color: var(--black);
}

.phone-form input {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--button);
  color: var(--ink);
  text-align: left;
  padding: 0 16px;
}

.phone-form input:focus {
  border-color: rgba(139, 92, 246, 0.62);
  box-shadow: 0 0 0 4px rgba(139, 92, 246, 0.08);
}

.password-rules {
  font-size: 0.72rem;
}

.phone-submit-button {
  height: 54px;
  border-radius: 14px;
  background: var(--accent);
  color: var(--black);
}

@media (max-width: 560px) {
  #profileModal .login-panel {
    padding: 22px 18px;
  }

  .password-rules {
    grid-template-columns: 1fr;
  }
}

/* Project card play button placement */
.project-card {
  --project-card-size: 132px;
}

.project-card .cover-play {
  right: 8px;
  top: calc(var(--project-card-size) - 42px);
  bottom: auto;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  opacity: 0;
  transform: translateY(4px) scale(0.96);
}

.project-card:hover .cover-play,
.project-card.is-playing-project .cover-play,
.project-card:focus-within .cover-play {
  opacity: 1;
  transform: translateY(0) scale(1);
}

@media (max-width: 560px) {
  .project-card {
    --project-card-size: calc((100vw - (var(--page-pad-x) * 2) - 16px) / 2);
  }

  .project-card .cover-play {
    top: calc(var(--project-card-size) - 43px);
    right: 9px;
    bottom: auto;
  }
}

/* Final layout fixes */
#notificationButton {
  display: grid;
  place-items: center;
  padding: 0;
}

#notificationButton .notification-image-slot {
  width: 18px;
  height: 18px;
  display: grid;
  place-items: center;
  transform: none;
}

#notificationButton .notification-image-slot img {
  width: 16px;
  height: 16px;
  margin: 0;
  object-fit: contain;
}

.notification-popover {
  top: 62px;
  left: auto;
  right: clamp(16px, calc((100vw - 620px) / 2 + 56px), 112px);
  width: min(326px, calc(100vw - 32px));
}

.project-card .cover-play {
  display: none !important;
}

.cover-button.is-folder {
  position: relative;
  overflow: visible;
}

.cover-button.is-folder::before {
  left: 8px;
  top: -12px;
  width: 46px;
  height: 18px;
  border-radius: 8px 8px 0 0;
  background: #21162d;
  border-color: rgba(139, 92, 246, 0.3);
  transform: none;
}

.cover-button.is-folder.has-folder-preview {
  padding: 8px;
}

.folder-cover-preview.count-1 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-template-rows: repeat(2, minmax(0, 1fr));
}

.folder-cover-preview.count-1 .folder-cover-tile {
  grid-column: 1 / 2;
  grid-row: 1 / 2;
}

.profile-settings-panel {
  box-sizing: border-box;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.018), transparent 34%),
    var(--panel);
}

@media (max-width: 560px) {
  .notification-popover {
    top: 68px;
    left: var(--page-pad-x);
  }

  .profile-settings-panel {
    padding: 12px;
    border-radius: 18px;
  }
}

/* Edit profile polish */
#profileModal .edit-profile-panel {
  width: min(520px, calc(100vw - 28px));
  padding: 20px 20px 24px;
  border: 1px solid rgba(139, 92, 246, 0.22);
  border-radius: 24px;
  background:
    linear-gradient(180deg, rgba(139, 92, 246, 0.08), transparent 34%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.035), transparent 48%),
    var(--panel);
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.52);
}

#profileModal .edit-profile-panel > .drawer-head {
  min-height: 44px;
  align-items: center;
}

#profileModal .edit-profile-panel h2 {
  color: var(--ink);
  font-size: 1.34rem;
  line-height: 1.1;
}

#profileModal .edit-profile-grid {
  width: min(360px, 100%);
  margin: 18px auto 0;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(7, 9, 7, 0.34);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.035);
}

#profileModal .edit-profile-grid > div:not(.profile-disc-edit-column) {
  width: 100%;
}

#profileModal .profile-label {
  margin: 0 0 10px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
}

#profileModal .profile-label + .profile-image-circle {
  margin-top: 2px;
}

#profileModal .profile-image-circle {
  position: relative;
  width: 188px;
  height: 188px;
  margin-bottom: 18px;
  border: 1px solid rgba(244, 238, 252, 0.12);
  border-radius: 30px;
  background: var(--button);
  box-shadow:
    0 18px 42px rgba(0, 0, 0, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

#profileModal .profile-image-circle::before {
  content: "";
  position: absolute;
  inset: 10px;
  z-index: 2;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 22px;
  pointer-events: none;
}

#profileModal .profile-image-circle::after {
  content: "Alterar";
  position: absolute;
  left: 50%;
  bottom: 12px;
  z-index: 3;
  min-height: 28px;
  display: grid;
  place-items: center;
  padding: 0 12px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  background: rgba(7, 9, 7, 0.76);
  color: var(--ink);
  font-size: 0.72rem;
  line-height: 1;
  transform: translateX(-50%) translateY(4px);
  opacity: 0;
  transition:
    opacity var(--motion-fast) ease,
    transform var(--motion-fast) var(--motion-ease);
}

#profileModal .profile-image-circle:hover::after,
#profileModal .profile-image-circle:focus-visible::after {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

#profileModal .profile-image-slot.is-empty-profile-image {
  display: grid;
  place-items: center;
  background:
    linear-gradient(150deg, rgba(255, 255, 255, 0.2), transparent 42%),
    linear-gradient(135deg, #8b5cf6 0%, #4f6eff 100%);
}

#profileModal .profile-image-slot.is-empty-profile-image::before {
  content: "C";
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 18px;
  background: rgba(7, 9, 7, 0.22);
  color: #ffffff;
  font-size: 1.4rem;
  font-weight: 900;
}

#profileModal .username-display-button {
  width: 100%;
  min-height: 58px;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  padding: 0 12px 0 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--button);
  color: var(--ink);
  text-align: left;
  transition:
    border-color var(--motion-fast) ease,
    background var(--motion-fast) ease,
    transform var(--motion-fast) var(--motion-ease);
}

#profileModal .username-display-button::after {
  content: "Edit";
  min-height: 30px;
  display: grid;
  place-items: center;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(139, 92, 246, 0.14);
  color: var(--accent-strong);
  font-size: 0.72rem;
}

#profileModal .username-display-button:hover {
  border-color: rgba(139, 92, 246, 0.36);
  background: var(--button-hover);
  transform: translateY(-1px);
}

@media (max-width: 560px) {
  #profileModal .edit-profile-panel {
    padding: 18px 16px 20px;
  }

  #profileModal .edit-profile-grid {
    padding: 14px;
  }

  #profileModal .profile-image-circle {
    width: 168px;
    height: 168px;
    border-radius: 26px;
  }
}

/* Player controls, queue, and notification popover polish */
.notification-popover {
  top: var(--notification-top, 62px);
  left: var(--notification-left, 16px);
  right: auto;
  width: min(326px, calc(100vw - 24px));
  min-height: 214px;
  padding: 22px;
  border: 1px solid rgba(139, 92, 246, 0.22);
  border-radius: 22px;
  background:
    linear-gradient(180deg, rgba(139, 92, 246, 0.07), transparent 38%),
    var(--panel);
  box-shadow: 0 26px 70px rgba(0, 0, 0, 0.44);
}

.notification-popover h2 {
  color: var(--ink);
  font-size: 1.08rem;
}

.notification-empty {
  min-height: 128px;
  gap: 7px;
}

.notification-empty strong {
  color: var(--ink);
}

.notification-empty p {
  max-width: 230px;
  margin-inline: auto;
}

.volume-wrap {
  width: 34px;
  height: 34px;
  flex-basis: 34px;
  border-radius: 999px;
}

.volume-wrap .player-icon-button {
  width: 34px;
  height: 34px;
  border: 1px solid rgba(244, 238, 252, 0.12);
  border-radius: 999px;
  background:
    radial-gradient(circle at 30% 20%, rgba(255, 255, 255, 0.13), transparent 34%),
    rgba(244, 238, 252, 0.055);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.055);
}

.volume-wrap .player-icon-button:hover,
.volume-wrap .player-icon-button:focus-visible,
.volume-wrap .player-icon-button.is-active {
  border-color: rgba(139, 92, 246, 0.42);
  background:
    radial-gradient(circle at 30% 20%, rgba(255, 255, 255, 0.16), transparent 34%),
    rgba(139, 92, 246, 0.14);
}

.volume-wrap .player-icon-button.is-muted {
  opacity: 0.8;
}

.volume-wrap .player-icon-slot[data-player-icon="volume"] {
  width: 16px;
  height: 16px;
}

.volume-popover {
  --volume-level: 100%;
  left: auto;
  right: -8px;
  bottom: calc(100% + 10px);
  width: 188px;
  height: 58px;
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  padding: 10px 14px 10px 12px;
  border: 1px solid rgba(139, 92, 246, 0.2);
  border-radius: 18px;
  background:
    linear-gradient(145deg, rgba(139, 92, 246, 0.12), transparent 52%),
    rgba(16, 19, 16, 0.98);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.38);
  transform: translateY(6px) scale(0.97);
}

.volume-popover::before,
.volume-popover::after {
  content: none;
}

.volume-wrap:hover .volume-popover,
.volume-wrap:focus-within .volume-popover {
  transform: translateY(0) scale(1);
}

.volume-popover span {
  position: static;
  min-width: 42px;
  padding: 0;
  border-radius: 0;
  background: transparent;
  color: var(--ink);
  font-size: 0.78rem;
  font-weight: 850;
  text-align: center;
  transform: none;
}

.volume-popover input {
  position: static;
  width: 100%;
  height: 28px;
  opacity: 1;
  transform: none;
}

.volume-popover input::-webkit-slider-runnable-track {
  height: 6px;
  border-radius: 999px;
  background:
    linear-gradient(90deg, var(--accent) 0 var(--volume-level), rgba(244, 238, 252, 0.16) var(--volume-level) 100%);
}

.volume-popover input::-webkit-slider-thumb {
  width: 18px;
  height: 18px;
  margin-top: -6px;
  border: 2px solid var(--ink);
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.34);
}

.volume-popover input::-moz-range-track {
  height: 6px;
  border-radius: 999px;
  background: rgba(244, 238, 252, 0.16);
}

.volume-popover input::-moz-range-progress {
  height: 6px;
  border-radius: 999px;
  background: var(--accent);
}

.volume-popover input::-moz-range-thumb {
  width: 18px;
  height: 18px;
  border: 2px solid var(--ink);
  border-radius: 50%;
  background: var(--accent);
}

.queue-panel {
  bottom: 92px;
  z-index: 44;
  width: min(620px, calc(100vw - 32px));
  max-height: min(430px, calc(100vh - 142px));
  padding: 16px;
  border: 1px solid rgba(139, 92, 246, 0.2);
  border-radius: 22px;
  background:
    linear-gradient(180deg, rgba(139, 92, 246, 0.08), transparent 38%),
    rgba(16, 19, 16, 0.98);
  box-shadow: 0 26px 76px rgba(0, 0, 0, 0.48);
}

.queue-head {
  margin: 0 0 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.queue-head .circle-button {
  width: 34px;
  height: 34px;
  border-radius: 12px;
  background: var(--button);
}

.queue-head h2 {
  color: var(--ink);
  font-size: 1.08rem;
}

.queue-list {
  counter-reset: queue-item;
  gap: 8px;
}

.queue-row {
  counter-increment: queue-item;
  min-height: 68px;
  grid-template-columns: 28px 46px minmax(0, 1fr) 36px;
  justify-items: start;
  gap: 12px;
  padding: 10px;
  border: 1px solid rgba(244, 238, 252, 0.075);
  border-radius: 16px;
  background: rgba(244, 238, 252, 0.025);
}

.queue-row::before {
  content: counter(queue-item, decimal-leading-zero);
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 850;
  text-align: center;
}

.queue-row:hover {
  border-color: rgba(139, 92, 246, 0.25);
  background: rgba(139, 92, 246, 0.06);
}

.queue-art {
  width: 46px;
  height: 46px;
  justify-self: start;
  border-radius: 12px;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.24);
}

.queue-copy {
  width: 100%;
  justify-self: start;
  align-content: center;
  justify-items: start;
}

.queue-copy strong {
  color: var(--ink);
  font-size: 0.9rem;
}

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

.queue-more {
  opacity: 1;
  pointer-events: auto;
  color: var(--muted);
}

.queue-more:hover,
.queue-row-actions[open] .queue-more {
  color: var(--ink);
  background: var(--button-hover);
}

@media (max-width: 560px) {
  .volume-popover {
    right: -44px;
    width: min(188px, calc(100vw - 32px));
  }

  .queue-panel {
    bottom: 84px;
    padding: 12px;
  }

  .queue-row {
    grid-template-columns: 24px 42px minmax(0, 1fr) 32px;
  }
}

/* Project drag and folder cleanup */
.cover-button.is-folder::before {
  content: none !important;
}

.project-card {
  position: relative;
}

.project-card[draggable="true"] {
  cursor: grab;
}

.project-card.is-dragging {
  opacity: 0.42;
  transform: scale(0.96);
}

.project-card::before {
  content: "";
  position: absolute;
  top: -8px;
  bottom: 34px;
  width: 3px;
  border-radius: 999px;
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(139, 92, 246, 0.1);
  opacity: 0;
  pointer-events: none;
}

.project-card.is-drag-before::before {
  left: -13px;
  opacity: 1;
}

.project-card.is-drag-after::before {
  right: -13px;
  opacity: 1;
}

.project-card.is-drag-into .cover-button,
.project-card.is-drag-create-folder .cover-button {
  border-color: rgba(139, 92, 246, 0.68);
  box-shadow:
    0 0 0 4px rgba(139, 92, 246, 0.12),
    0 18px 34px rgba(0, 0, 0, 0.28);
}

.project-card.is-drag-into::after,
.project-card.is-drag-create-folder::after {
  position: absolute;
  left: 50%;
  top: 52px;
  z-index: 8;
  display: grid;
  place-items: center;
  min-height: 26px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(139, 92, 246, 0.92);
  color: #12091f;
  font-size: 0.68rem;
  font-weight: 900;
  line-height: 1;
  white-space: nowrap;
  transform: translateX(-50%);
  pointer-events: none;
}

.project-card.is-drag-into::after {
  content: "Move here";
}

.project-card.is-drag-create-folder::after {
  content: "Create folder";
}

.project-grid.is-drag-over-empty,
.nested-projects.is-drag-over-empty {
  outline: 1px dashed rgba(139, 92, 246, 0.4);
  outline-offset: 10px;
  border-radius: 16px;
}

