:root {
  color-scheme: dark;
  --ink: #f3f4ed;
  --muted: #969b8e;
  --muted-strong: #c6c9bd;
  --line: rgba(255, 255, 255, 0.1);
  --panel: rgba(18, 20, 17, 0.88);
  --panel-strong: #151713;
  --accent: #c8ff45;
  --accent-soft: rgba(200, 255, 69, 0.14);
  --danger: #ff7c8d;
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  font-synthesis: none;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  min-height: 100%;
  background: #090a08;
}

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  color: var(--ink);
  background:
    radial-gradient(circle at 50% -15%, rgba(145, 177, 96, 0.12), transparent 38%),
    linear-gradient(160deg, #0e100d 0%, #080907 58%, #0b0b09 100%);
}

button,
input {
  font: inherit;
}

button {
  color: inherit;
}

button:focus-visible,
input:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}

.page-glow {
  position: fixed;
  z-index: 0;
  width: 36rem;
  height: 36rem;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(120px);
  opacity: 0.12;
}

.page-glow-one {
  top: -22rem;
  left: -8rem;
  background: #b9ff54;
}

.page-glow-two {
  right: -20rem;
  bottom: -25rem;
  background: #8364ff;
}

.site-header {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(1120px, calc(100% - 48px));
  height: 92px;
  margin: 0 auto;
}

.brand {
  display: inline-flex;
  gap: 11px;
  align-items: center;
  color: var(--ink);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.2em;
  text-decoration: none;
}

.brand-symbol {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2px;
  width: 31px;
  height: 31px;
  border: 1px solid rgba(200, 255, 69, 0.38);
  border-radius: 50%;
  background: rgba(200, 255, 69, 0.05);
}

.brand-symbol i {
  display: block;
  width: 2px;
  border-radius: 99px;
  background: var(--accent);
}

.brand-symbol i:nth-child(1) { height: 7px; }
.brand-symbol i:nth-child(2) { height: 13px; }
.brand-symbol i:nth-child(3) { height: 10px; }
.brand-symbol i:nth-child(4) { height: 5px; }

.privacy-note {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  color: #858a7e;
  font-size: 0.76rem;
  letter-spacing: 0.04em;
}

.privacy-note i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 12px rgba(200, 255, 69, 0.6);
}

.header-actions {
  display: inline-flex;
  gap: 12px;
  align-items: center;
}

.session-button,
.language-button {
  padding: 7px 11px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 999px;
  color: #8d9286;
  background: rgba(255, 255, 255, 0.025);
  font-size: 0.68rem;
  cursor: pointer;
}

.language-button {
  min-width: 48px;
  color: var(--muted-strong);
  letter-spacing: 0.06em;
}

.session-button:hover,
.language-button:hover {
  border-color: rgba(200, 255, 69, 0.26);
  color: var(--ink);
}

.app-shell {
  position: relative;
  z-index: 1;
  display: grid;
  min-height: calc(100vh - 92px);
  place-content: center;
  padding: 24px 24px 72px;
}

.player-card {
  position: relative;
  width: min(1030px, calc(100vw - 48px));
  min-height: 570px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 32px;
  background:
    linear-gradient(140deg, rgba(255, 255, 255, 0.035), transparent 45%),
    var(--panel);
  box-shadow: 0 42px 110px rgba(0, 0, 0, 0.45), inset 0 1px rgba(255, 255, 255, 0.035);
  backdrop-filter: blur(28px);
}

.player-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 76px;
  padding: 0 34px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.065);
}

.library-count {
  padding: 8px 0;
  border: 0;
  color: var(--muted);
  background: transparent;
  font-size: 0.76rem;
  font-weight: 650;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: color 160ms ease;
}

.library-count:hover:not(:disabled) {
  color: var(--accent);
}

.library-count:disabled {
  cursor: default;
}

.upload-button {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  padding: 10px 16px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  color: var(--muted-strong);
  background: rgba(255, 255, 255, 0.035);
  cursor: pointer;
  transition: 160ms ease;
}

.upload-button svg {
  width: 16px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}

.upload-button:hover:not(:disabled) {
  border-color: rgba(200, 255, 69, 0.4);
  color: var(--ink);
  background: var(--accent-soft);
  transform: translateY(-1px);
}

.upload-button:disabled {
  opacity: 0.45;
  cursor: wait;
}

.player-content {
  display: grid;
  grid-template-columns: minmax(280px, 0.84fr) minmax(390px, 1.16fr);
  gap: clamp(38px, 6vw, 76px);
  align-items: center;
  padding: 52px 58px 42px;
}

.cover {
  --cover-a: #c8ff45;
  --cover-b: #5d7452;
  position: relative;
  display: grid;
  width: 100%;
  max-width: 355px;
  aspect-ratio: 1;
  padding: 0;
  overflow: hidden;
  place-items: center;
  border: 0;
  border-radius: 24px;
  background:
    radial-gradient(circle at 32% 24%, color-mix(in srgb, var(--cover-a) 88%, white 12%), transparent 25%),
    radial-gradient(circle at 76% 70%, var(--cover-b), transparent 48%),
    linear-gradient(145deg, #20241c, #11130f 70%);
  box-shadow: 0 28px 55px rgba(0, 0, 0, 0.35), inset 0 0 0 1px rgba(255, 255, 255, 0.08);
  cursor: default;
  isolation: isolate;
}

body[data-mode="empty"] .cover {
  border: 1px dashed rgba(255, 255, 255, 0.18);
  background: linear-gradient(145deg, #1a1d17, #10120f);
  cursor: pointer;
}

.cover::before {
  position: absolute;
  z-index: -1;
  inset: 0;
  background: linear-gradient(122deg, rgba(255, 255, 255, 0.18), transparent 28%, rgba(0, 0, 0, 0.14) 70%);
  content: "";
}

.cover-shine {
  position: absolute;
  inset: -40% -10%;
  opacity: 0.28;
  background: linear-gradient(90deg, transparent 30%, rgba(255, 255, 255, 0.2) 50%, transparent 70%);
  transform: rotate(28deg) translateX(-70%);
  transition: transform 900ms ease;
}

body:not([data-mode="empty"]) .cover:hover .cover-shine {
  transform: rotate(28deg) translateX(70%);
}

.cover-orbit {
  position: absolute;
  border: 1px solid rgba(255, 255, 255, 0.17);
  border-radius: 50%;
}

.orbit-one {
  width: 76%;
  height: 76%;
  animation: orbit 24s linear infinite;
}

.orbit-two {
  width: 48%;
  height: 48%;
  border-style: dashed;
  opacity: 0.62;
  animation: orbit 17s linear reverse infinite;
}

.cover-mark {
  display: flex;
  z-index: 1;
  gap: 7px;
  align-items: center;
  height: 84px;
}

.cover-mark i {
  width: 5px;
  height: var(--height, 28px);
  border-radius: 99px;
  background: rgba(246, 248, 239, 0.86);
  box-shadow: 0 0 20px color-mix(in srgb, var(--cover-a) 65%, transparent);
  animation: cover-wave 1.8s ease-in-out infinite alternate;
}

.cover-mark i:nth-child(1) { --height: 24px; animation-delay: -0.9s; }
.cover-mark i:nth-child(2) { --height: 43px; animation-delay: -1.3s; }
.cover-mark i:nth-child(3) { --height: 64px; animation-delay: -0.4s; }
.cover-mark i:nth-child(4) { --height: 82px; animation-delay: -1.6s; }
.cover-mark i:nth-child(5) { --height: 54px; animation-delay: -0.2s; }
.cover-mark i:nth-child(6) { --height: 35px; animation-delay: -1.1s; }
.cover-mark i:nth-child(7) { --height: 20px; animation-delay: -0.6s; }

body:not(.is-playing) .cover-mark i {
  animation-play-state: paused;
}

.cover-badge {
  position: absolute;
  right: 18px;
  bottom: 17px;
  padding: 6px 9px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.65);
  background: rgba(7, 8, 6, 0.23);
  font-size: 0.59rem;
  font-weight: 750;
  letter-spacing: 0.16em;
  backdrop-filter: blur(8px);
}

.empty-cover-copy {
  display: none;
  z-index: 2;
  align-items: center;
  flex-direction: column;
  color: var(--muted-strong);
  text-align: center;
}

.empty-cover-copy svg {
  width: 34px;
  margin-bottom: 16px;
  fill: none;
  stroke: var(--accent);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.35;
}

.empty-cover-copy strong {
  margin-bottom: 7px;
  color: var(--ink);
  font-size: 1rem;
}

.empty-cover-copy small {
  max-width: 180px;
  color: var(--muted);
  font-size: 0.73rem;
  line-height: 1.6;
}

body[data-mode="empty"] .empty-cover-copy { display: flex; }
body[data-mode="empty"] .cover-mark,
body[data-mode="empty"] .cover-orbit,
body[data-mode="empty"] .cover-shine,
body[data-mode="empty"] .cover-badge { display: none; }

.player-main {
  min-width: 0;
}

.mix-heading p {
  margin: 0;
}

#mix-eyebrow {
  margin-bottom: 13px;
  color: var(--accent);
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.2em;
}

.mix-heading h1 {
  display: -webkit-box;
  max-width: 510px;
  margin: 0 0 13px;
  overflow: hidden;
  color: var(--ink);
  font-size: clamp(2.15rem, 4vw, 3.65rem);
  font-weight: 620;
  letter-spacing: -0.055em;
  line-height: 1.02;
  overflow-wrap: anywhere;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.mix-heading h1.long-title {
  font-size: clamp(2rem, 3.25vw, 3rem);
  letter-spacing: -0.045em;
}

#mix-subtitle {
  min-height: 43px;
  color: var(--muted);
  font-size: 0.83rem;
  line-height: 1.65;
}

.waveform-area {
  margin-top: 35px;
}

.spectrogram {
  position: relative;
  height: 66px;
  overflow: hidden;
  border-radius: 9px;
  background: #0a0d0b;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.035);
}

.spectrogram canvas {
  display: block;
  width: 100%;
  height: 100%;
  opacity: 0.92;
  transition: opacity 180ms ease;
}

.spectrogram.loading canvas,
body[data-mode="empty"] .spectrogram canvas {
  opacity: 0.34;
}

.spectrogram.loading::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(100deg, transparent 25%, rgba(200, 255, 69, 0.08) 47%, transparent 70%);
  transform: translateX(-100%);
  animation: spectrogram-loading 1.35s ease-in-out infinite;
}

@keyframes spectrogram-loading {
  to { transform: translateX(100%); }
}

.spectrogram-playhead {
  position: absolute;
  z-index: 2;
  inset: 0 auto 0 0;
  width: 1px;
  pointer-events: none;
  background: rgba(236, 255, 192, 0.9);
  box-shadow: 0 0 8px rgba(200, 255, 69, 0.72);
  transform: translateX(-1px);
}

.spectrogram-badge {
  position: absolute;
  z-index: 3;
  top: 6px;
  right: 7px;
  padding: 2px 4px;
  border: 1px solid rgba(225, 255, 155, 0.18);
  border-radius: 4px;
  color: rgba(225, 255, 155, 0.58);
  background: rgba(7, 10, 8, 0.52);
  font: 600 0.46rem/1.1 var(--mono, ui-monospace, monospace);
  letter-spacing: 0.12em;
}

.progress-track {
  position: relative;
  height: 14px;
  margin-top: 4px;
  border-radius: 99px;
  cursor: pointer;
  background: linear-gradient(transparent 6px, rgba(255, 255, 255, 0.1) 6px 8px, transparent 8px);
}

.progress-track i {
  position: absolute;
  top: 6px;
  left: 0;
  width: 0;
  height: 2px;
  border-radius: inherit;
  background: var(--accent);
  box-shadow: 0 0 14px rgba(200, 255, 69, 0.55);
  transition: width 100ms linear;
}

.progress-track input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 14px;
  margin: 0;
  cursor: pointer;
  opacity: 0;
}

.progress-track:focus-within {
  outline: 1px solid rgba(200, 255, 69, 0.58);
  outline-offset: 3px;
}

.progress-track:has(input:disabled) {
  cursor: default;
}

.progress-track input:disabled {
  cursor: default;
}

.time-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 22px;
  margin-top: 2px;
  color: #70766a;
  font-size: 0.64rem;
  font-variant-numeric: tabular-nums;
}

.time-row > span {
  min-width: 34px;
}

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

.controls {
  display: grid;
  grid-template-columns: 1fr 76px 1fr 1fr;
  gap: 11px;
  align-items: center;
  margin-top: 28px;
}

.control-button,
.play-button {
  border: 0;
  cursor: pointer;
  transition: 160ms ease;
}

.control-button {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  justify-content: center;
  min-width: 0;
  height: 44px;
  padding: 0 13px;
  border: 1px solid rgba(255, 255, 255, 0.095);
  border-radius: 14px;
  color: var(--muted-strong);
  background: rgba(255, 255, 255, 0.026);
  font-size: 0.76rem;
  font-weight: 650;
}

.control-button svg {
  width: 18px;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.65;
}

.control-button:hover:not(:disabled) {
  border-color: rgba(255, 255, 255, 0.2);
  color: var(--ink);
  background: rgba(255, 255, 255, 0.065);
  transform: translateY(-2px);
}

.control-button[aria-pressed="true"] {
  border-color: rgba(255, 124, 141, 0.4);
  color: #ff8091;
  background: rgba(255, 124, 141, 0.1);
}

.control-button[aria-pressed="true"] svg {
  fill: currentColor;
}

.control-button:disabled,
.play-button:disabled {
  opacity: 0.27;
  cursor: default;
  transform: none;
}

.play-button {
  display: grid;
  width: 66px;
  height: 66px;
  place-items: center;
  border-radius: 50%;
  color: #10120d;
  background: var(--accent);
  box-shadow: 0 13px 34px rgba(159, 207, 42, 0.18);
}

.play-button:hover:not(:disabled) {
  box-shadow: 0 17px 40px rgba(159, 207, 42, 0.29);
  transform: scale(1.045);
}

.play-button svg {
  width: 25px;
  fill: currentColor;
  stroke: none;
}

.play-button .stop-symbol {
  display: none;
  width: 22px;
}

body.is-playing .play-button .play-symbol { display: none; }
body.is-playing .play-button .stop-symbol { display: block; }

.mix-status {
  display: flex;
  gap: 9px;
  align-items: center;
  min-height: 19px;
  margin-top: 21px;
  color: #777d70;
  font-size: 0.7rem;
  line-height: 1.45;
}

.status-pulse {
  width: 6px;
  height: 6px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: #687061;
}

.mix-status.busy .status-pulse {
  background: var(--accent);
  box-shadow: 0 0 10px rgba(200, 255, 69, 0.55);
  animation: pulse 1s ease-in-out infinite;
}

.mix-status.error {
  color: var(--danger);
}

.mix-status.error .status-pulse {
  background: var(--danger);
}

.shuffle-progress {
  height: 4px;
  margin-top: 11px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.075);
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.22);
}

.shuffle-progress i {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #91c631, var(--accent), #e8ff9c);
  box-shadow: 0 0 16px rgba(200, 255, 69, 0.4);
  transition: width 260ms ease;
}

body.is-shuffling #shuffle-button {
  border-color: rgba(200, 255, 69, 0.28);
  color: var(--accent);
  background: rgba(200, 255, 69, 0.07);
}

body.is-shuffling #shuffle-button svg {
  animation: shuffle-turn 1.15s ease-in-out infinite;
}

.source-rail {
  gap: 8px;
  align-items: center;
  min-height: 64px;
  padding: 12px 34px 18px;
  overflow-x: auto;
  border-top: 1px solid rgba(255, 255, 255, 0.055);
  scrollbar-width: none;
}

.source-rail:not([hidden]) { display: flex; }
.source-rail::-webkit-scrollbar { display: none; }

.source-chip {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  max-width: 210px;
  padding: 8px 11px 8px 8px;
  flex: 0 0 auto;
  border: 1px solid rgba(255, 255, 255, 0.075);
  border-radius: 999px;
  color: #9ba093;
  background: rgba(255, 255, 255, 0.022);
  font-size: 0.68rem;
}

.source-chip i {
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--chip-a), var(--chip-b));
}

.source-chip span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.source-chip.active {
  border-color: rgba(200, 255, 69, 0.23);
  color: #dfe2d7;
}

.source-more {
  flex: 0 0 auto;
  color: #73786d;
  font-size: 0.68rem;
}

.product-note {
  margin: 21px 0 0;
  color: #5f645a;
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-align: center;
}

.drop-overlay {
  position: absolute;
  z-index: 10;
  display: grid;
  inset: 12px;
  visibility: hidden;
  place-items: center;
  border: 1px dashed rgba(200, 255, 69, 0.58);
  border-radius: 24px;
  opacity: 0;
  background: rgba(14, 17, 11, 0.94);
  backdrop-filter: blur(18px);
  transition: opacity 140ms ease, visibility 140ms ease;
}

.player-card.dragging .drop-overlay {
  visibility: visible;
  opacity: 1;
}

.drop-overlay div {
  display: flex;
  align-items: center;
  flex-direction: column;
}

.drop-overlay strong {
  margin-bottom: 8px;
  color: var(--accent);
  font-size: 1.15rem;
}

.drop-overlay span {
  color: var(--muted);
  font-size: 0.78rem;
}

.toast {
  position: fixed;
  z-index: 50;
  right: 24px;
  bottom: 24px;
  max-width: min(370px, calc(100vw - 48px));
  padding: 13px 17px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 13px;
  visibility: hidden;
  opacity: 0;
  color: #e5e8dd;
  background: rgba(22, 24, 20, 0.94);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.32);
  font-size: 0.76rem;
  line-height: 1.5;
  transform: translateY(8px);
  transition: 180ms ease;
  backdrop-filter: blur(18px);
}

.toast.visible {
  visibility: visible;
  opacity: 1;
  transform: translateY(0);
}

.auth-dialog {
  width: min(430px, calc(100vw - 32px));
  padding: 38px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 26px;
  color: var(--ink);
  background: #171915;
  box-shadow: 0 36px 110px rgba(0, 0, 0, 0.7);
}

.auth-dialog::backdrop {
  background: rgba(3, 4, 3, 0.84);
  backdrop-filter: blur(14px);
}

.auth-dialog h2 {
  margin: 0 0 10px;
  font-size: 1.75rem;
  font-weight: 620;
  letter-spacing: -0.04em;
}

.auth-dialog > p:not(.dialog-kicker) {
  margin: 0;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.65;
}

.auth-dialog form {
  display: grid;
  gap: 10px;
  margin-top: 25px;
}

.auth-dialog label {
  color: #aeb2a6;
  font-size: 0.7rem;
  font-weight: 650;
}

.auth-dialog input {
  width: 100%;
  height: 48px;
  padding: 0 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.035);
}

.auth-dialog button {
  height: 48px;
  margin-top: 4px;
  border: 0;
  border-radius: 12px;
  color: #10120d;
  background: var(--accent);
  font-size: 0.78rem;
  font-weight: 760;
  cursor: pointer;
}

.auth-dialog button:disabled {
  opacity: 0.45;
  cursor: wait;
}

#auth-status {
  min-height: 18px;
  color: var(--danger);
  font-size: 0.7rem;
  line-height: 1.45;
}

.rights-dialog {
  width: min(470px, calc(100vw - 32px));
  padding: 34px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 24px;
  color: var(--ink);
  background: #181a16;
  box-shadow: 0 36px 110px rgba(0, 0, 0, 0.62);
}

.storage-dialog {
  width: min(520px, calc(100vw - 32px));
  max-height: min(720px, calc(100vh - 32px));
  padding: 34px;
  overflow-y: auto;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 24px;
  color: var(--ink);
  background: #181a16;
  box-shadow: 0 36px 110px rgba(0, 0, 0, 0.62);
}

.storage-dialog::backdrop {
  background: rgba(3, 4, 3, 0.76);
  backdrop-filter: blur(10px);
}

.storage-dialog h2 {
  margin: 0 0 10px;
  font-size: 1.65rem;
  font-weight: 610;
  letter-spacing: -0.035em;
}

#storage-summary {
  margin: 0;
  color: var(--muted);
  font-size: 0.76rem;
  line-height: 1.6;
}

.storage-meter {
  height: 4px;
  margin: 17px 0 21px;
  overflow: hidden;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.07);
}

.storage-meter i {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: var(--accent);
  transition: width 240ms ease;
}

.storage-track-list {
  display: grid;
  gap: 7px;
  max-height: 220px;
  overflow-y: auto;
}

.storage-section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 18px 1px 9px;
}

.storage-section-title h3 {
  margin: 0;
  color: #d8dccf;
  font-size: 0.7rem;
  font-weight: 680;
}

.storage-section-title span {
  color: #697163;
  font-size: 0.62rem;
}

.recent-work-list {
  display: grid;
  gap: 7px;
  max-height: 205px;
  overflow-y: auto;
}

.recent-work-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 4px 14px;
  align-items: center;
  padding: 10px 11px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.025);
}

.recent-work-row strong {
  overflow: hidden;
  color: #cdd1c5;
  font-size: 0.72rem;
  font-weight: 570;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.recent-work-row small {
  color: #697163;
  font-size: 0.61rem;
}

.recent-work-actions {
  display: flex;
  grid-row: 1 / span 2;
  grid-column: 2;
  gap: 10px;
  align-items: center;
}

.recent-work-actions a,
.recent-work-actions button {
  padding: 0;
  border: 0;
  color: #969d90;
  background: transparent;
  font-size: 0.66rem;
  text-decoration: none;
  cursor: pointer;
}

.recent-work-actions a:hover,
.recent-work-actions button:hover {
  color: var(--accent);
}

.storage-track-row {
  display: flex;
  gap: 14px;
  align-items: center;
  justify-content: space-between;
  padding: 10px 11px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.025);
}

.storage-track-row span {
  min-width: 0;
  overflow: hidden;
  color: #c8cbbf;
  font-size: 0.74rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.storage-track-row span small {
  display: inline-block;
  margin-left: 8px;
  color: #78806f;
  font-size: 0.56rem;
  font-weight: 700;
  letter-spacing: 0.07em;
}

.storage-track-row button,
.storage-actions button {
  border: 0;
  color: #9da293;
  background: transparent;
  font-size: 0.7rem;
  cursor: pointer;
}

.storage-track-row button:hover,
.storage-actions button:hover {
  color: var(--ink);
}

.storage-actions {
  display: flex;
  justify-content: space-between;
  margin-top: 20px;
}

.storage-actions .danger:hover {
  color: var(--danger);
}

.storage-status {
  display: block;
  min-height: 18px;
  margin-top: 10px;
  color: var(--muted);
  font-size: 0.68rem;
}

.rights-dialog::backdrop {
  background: rgba(3, 4, 3, 0.76);
  backdrop-filter: blur(10px);
}

.dialog-close {
  position: absolute;
  top: 15px;
  right: 16px;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 50%;
  color: #8e9387;
  background: rgba(255, 255, 255, 0.04);
  font-size: 1.2rem;
  cursor: pointer;
}

.dialog-kicker {
  margin: 0 0 12px;
  color: var(--accent);
  font-size: 0.61rem;
  font-weight: 800;
  letter-spacing: 0.2em;
}

.rights-dialog h2 {
  margin: 0 0 10px;
  font-size: 1.65rem;
  font-weight: 610;
  letter-spacing: -0.035em;
}

#rights-summary {
  margin: 0;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.65;
}

.file-summary {
  display: grid;
  gap: 7px;
  max-height: 150px;
  margin: 21px 0;
  overflow-y: auto;
}

.file-summary-row {
  display: flex;
  gap: 16px;
  justify-content: space-between;
  padding: 9px 11px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 10px;
  color: #c8cbbf;
  background: rgba(255, 255, 255, 0.025);
  font-size: 0.72rem;
}

.file-summary-row span:first-child {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.file-summary-row span:last-child {
  flex: 0 0 auto;
  color: #747a6d;
}

.rights-confirm {
  display: flex;
  gap: 11px;
  align-items: flex-start;
  padding: 13px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  color: #b8bcaf;
  background: rgba(255, 255, 255, 0.025);
  font-size: 0.76rem;
  line-height: 1.5;
  cursor: pointer;
}

.rights-confirm input {
  width: 16px;
  height: 16px;
  margin: 2px 0 0;
  accent-color: var(--accent);
}

.confirm-upload {
  width: 100%;
  height: 48px;
  margin-top: 15px;
  border: 0;
  border-radius: 13px;
  color: #10120d;
  background: var(--accent);
  font-size: 0.8rem;
  font-weight: 750;
  cursor: pointer;
}

.confirm-upload:disabled {
  opacity: 0.3;
  cursor: default;
}

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

@keyframes cover-wave {
  from { transform: scaleY(0.62); }
  to { transform: scaleY(1.05); }
}

@keyframes pulse {
  0%, 100% { opacity: 0.45; transform: scale(0.8); }
  50% { opacity: 1; transform: scale(1.25); }
}

@keyframes shuffle-turn {
  0%, 100% { transform: rotate(0); }
  50% { transform: rotate(180deg); }
}

@media (max-width: 820px) {
  .site-header {
    width: min(680px, calc(100% - 32px));
    height: 76px;
  }

  .app-shell {
    min-height: calc(100vh - 76px);
    padding: 12px 16px 46px;
  }

  .player-card {
    width: min(680px, calc(100vw - 32px));
    border-radius: 26px;
  }

  .player-content {
    grid-template-columns: 1fr;
    gap: 34px;
    padding: 34px;
  }

  .cover {
    width: min(320px, 82vw);
    justify-self: center;
  }

  .mix-heading {
    text-align: center;
  }

  .mix-heading h1 {
    max-width: none;
  }

  #mix-subtitle {
    min-height: 0;
  }

  .mix-status {
    justify-content: center;
    text-align: center;
  }
}

@media (max-width: 520px) {
  .site-header {
    height: 68px;
  }

  .privacy-note {
    font-size: 0;
  }

  .header-actions {
    gap: 8px;
  }

  .privacy-note i {
    width: 7px;
    height: 7px;
  }

  .app-shell {
    padding-inline: 10px;
  }

  .player-card {
    width: calc(100vw - 20px);
    border-radius: 22px;
  }

  .player-toolbar {
    min-height: 64px;
    padding: 0 20px;
  }

  .player-content {
    gap: 27px;
    padding: 24px 20px 28px;
  }

  .cover {
    width: min(286px, 78vw);
    border-radius: 20px;
  }

  .mix-heading h1 {
    font-size: clamp(1.85rem, 10vw, 2.6rem);
  }

  .waveform-area {
    margin-top: 25px;
  }

  .spectrogram {
    height: 56px;
  }

  .controls {
    grid-template-columns: 1fr 68px 1fr 1fr;
    gap: 7px;
  }

  .control-button {
    height: 42px;
    padding: 0;
  }

  .control-button span {
    display: none;
  }

  .control-button svg {
    width: 20px;
  }

  .play-button {
    width: 60px;
    height: 60px;
  }

  .source-rail {
    min-height: 58px;
    padding-inline: 20px;
  }

  .rights-dialog {
    padding: 30px 22px 22px;
  }

  .auth-dialog {
    padding: 32px 24px 24px;
  }
}

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