@font-face {
  font-family: "Exo 2";
  src: url("/fonts/exo-2-cyrillic-variable.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

@font-face {
  font-family: "Russo One";
  src: url("/fonts/russo-one-cyrillic-400.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --bg: #08090b;
  --panel: rgba(15, 17, 21, 0.92);
  --panel-strong: #111319;
  --line: rgba(255, 255, 255, 0.12);
  --line-hot: rgba(138, 255, 226, 0.48);
  --text: #f2f5f4;
  --muted: #818a89;
  --accent: #8affe2;
  --accent-strong: #25dcb3;
  --danger: #ff716d;
  --header-height: 46px;
  font-family: "Exo 2", system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  background: var(--bg);
}

body {
  margin: 0;
  min-height: 100vh;
  padding-bottom: 128px;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 86% 8%, rgba(37, 220, 179, 0.11), transparent 28rem),
    radial-gradient(circle at 8% 45%, rgba(87, 104, 255, 0.08), transparent 36rem),
    var(--bg);
}

button,
input,
select {
  font: inherit;
}

button,
a,
label[for] {
  -webkit-tap-highlight-color: transparent;
}

button {
  color: inherit;
}

button:disabled {
  cursor: wait;
  opacity: 0.58;
}

.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.audio-grid {
  position: fixed;
  inset: 0;
  z-index: -1;
  opacity: 0.19;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.055) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(to bottom, black, transparent 78%);
}

.system-chrome {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  min-height: var(--header-height);
  padding: 0 24px;
  border-bottom: 1px solid var(--line);
  background: rgba(8, 9, 11, 0.88);
  backdrop-filter: blur(20px);
}

.system-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  width: fit-content;
  color: var(--text);
  text-decoration: none;
  font: 400 12px/1 "Russo One", sans-serif;
  letter-spacing: 0.08em;
}

.system-brand img {
  width: 21px;
  height: 21px;
}

.system-center,
.system-network,
.owner-session-button {
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.16em;
}

.system-actions {
  justify-self: end;
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.system-network {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.system-network i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #ffb159;
  box-shadow: 0 0 12px currentColor;
}

.system-network.is-online {
  color: var(--accent);
}

.system-network.is-online i {
  background: var(--accent);
}

.system-network.is-offline {
  color: var(--danger);
}

.system-network.is-offline i {
  background: var(--danger);
}

.owner-session-button {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 30px;
  padding: 0 10px;
  cursor: pointer;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.025);
}

.owner-session-button:hover,
.owner-session-button:focus-visible {
  color: var(--text);
  border-color: var(--line-hot);
  outline: none;
}

.owner-session-button.is-authenticated {
  color: #06100d;
  border-color: var(--accent);
  background: var(--accent);
}

.owner-session-button svg {
  width: 14px;
  height: 14px;
}

.audio-shell {
  width: min(1380px, calc(100% - 48px));
  margin: 0 auto;
}

.service-switcher {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 20px 0 0;
  border: 1px solid var(--line);
  background: rgba(10, 11, 14, 0.7);
}

.service-switcher a {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-rows: auto auto;
  gap: 2px 12px;
  min-height: 66px;
  padding: 14px 18px;
  color: var(--muted);
  text-decoration: none;
  border-right: 1px solid var(--line);
  transition: background 160ms ease, color 160ms ease;
}

.service-switcher a:last-child {
  border-right: 0;
}

.service-switcher a:hover,
.service-switcher a:focus-visible {
  color: var(--text);
  background: rgba(255, 255, 255, 0.035);
  outline: none;
}

.service-switcher a.is-current {
  color: var(--accent);
  background: linear-gradient(110deg, rgba(138, 255, 226, 0.12), rgba(138, 255, 226, 0.02));
}

.service-switcher a.is-current::after {
  content: "";
  position: absolute;
  inset: auto 16px -1px;
  height: 2px;
  background: var(--accent);
  box-shadow: 0 0 18px var(--accent);
}

.service-switcher span {
  grid-row: 1 / 3;
  color: inherit;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.service-switcher strong {
  font: 400 14px/1 "Russo One", sans-serif;
  letter-spacing: 0.04em;
}

.service-switcher small {
  font-size: 11px;
}

.audio-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(360px, 0.75fr);
  gap: 24px;
  padding: 80px 0 54px;
}

.hero-copy {
  align-self: center;
}

.eyebrow,
.section-heading small,
.storage-heading small,
.now-playing-copy small,
dialog header small {
  color: var(--accent);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.16em;
}

.hero-copy h1 {
  margin: 18px 0 12px;
  font: 400 clamp(46px, 7vw, 92px)/0.88 "Russo One", sans-serif;
  letter-spacing: -0.045em;
}

.hero-copy h1 span {
  display: block;
  color: transparent;
  -webkit-text-stroke: 1px rgba(242, 245, 244, 0.34);
}

.hero-copy p {
  max-width: 680px;
  margin: 0;
  color: #a5adac;
  font-size: clamp(15px, 1.6vw, 19px);
  line-height: 1.5;
}

.storage-card {
  align-self: end;
  padding: 24px;
  border: 1px solid var(--line);
  background:
    linear-gradient(135deg, rgba(138, 255, 226, 0.055), transparent 48%),
    var(--panel);
}

.storage-heading,
.section-heading,
.library-toolbar,
.storage-ledger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.storage-heading span,
.section-heading > span {
  display: grid;
  gap: 5px;
}

.storage-heading strong,
.section-heading strong {
  font: 400 20px/1.1 "Russo One", sans-serif;
}

.storage-heading svg {
  width: 25px;
  height: 25px;
  color: var(--accent);
}

.storage-meter {
  height: 7px;
  margin: 24px 0 18px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.08);
}

.storage-meter i {
  display: block;
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, var(--accent-strong), var(--accent));
  box-shadow: 0 0 18px rgba(138, 255, 226, 0.48);
  transition: width 300ms ease;
}

.storage-ledger span {
  display: grid;
  gap: 4px;
}

.storage-ledger small {
  color: var(--muted);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.storage-ledger strong {
  font-size: 14px;
}

.upload-console,
.library-section {
  border: 1px solid var(--line);
  background: var(--panel);
}

.upload-console {
  padding: 24px;
}

.owner-upload-gate {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: 22px;
  padding: 16px 18px;
  border: 1px solid rgba(138, 255, 226, 0.32);
  background: rgba(138, 255, 226, 0.045);
}

.owner-upload-gate > span {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 4px 10px;
}

.owner-upload-gate svg {
  grid-row: 1 / 3;
  width: 20px;
  height: 20px;
  color: var(--accent);
}

.owner-upload-gate b {
  font-size: 11px;
  letter-spacing: 0.11em;
}

.owner-upload-gate small {
  color: var(--muted);
  line-height: 1.35;
}

.owner-upload-gate button {
  flex: 0 0 auto;
  min-height: 40px;
  padding: 0 15px;
  cursor: pointer;
  color: #06100d;
  border: 1px solid var(--accent);
  background: var(--accent);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.1em;
}

.upload-console:not(.is-locked) .owner-upload-gate {
  display: none;
}

.upload-console.is-locked :is(.drop-zone, .folder-picker-row) {
  opacity: 0.3;
  filter: grayscale(1);
  pointer-events: none;
  user-select: none;
}

.format-list {
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.drop-zone {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 20px;
  min-height: 134px;
  margin-top: 22px;
  padding: 24px;
  cursor: pointer;
  border: 1px dashed rgba(138, 255, 226, 0.35);
  background: rgba(138, 255, 226, 0.025);
  transition: border-color 160ms ease, background 160ms ease, transform 160ms ease;
}

.drop-zone:hover,
.drop-zone:focus-within,
.drop-zone.is-dragging {
  border-color: var(--accent);
  background: rgba(138, 255, 226, 0.07);
}

.drop-zone.is-dragging {
  transform: translateY(-2px);
}

.drop-icon,
.upload-file-icon,
.now-playing-mark {
  display: grid;
  place-items: center;
  color: var(--accent);
  border: 1px solid var(--line-hot);
  background: rgba(138, 255, 226, 0.06);
}

.drop-icon {
  width: 62px;
  height: 62px;
}

.drop-icon svg {
  width: 28px;
  height: 28px;
}

.drop-copy {
  display: grid;
  gap: 7px;
}

.drop-copy strong {
  font: 400 clamp(18px, 2vw, 25px)/1.1 "Russo One", sans-serif;
}

.drop-copy small {
  color: var(--muted);
  line-height: 1.4;
}

.drop-action {
  padding: 11px 14px;
  color: #06100d;
  background: var(--accent);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.12em;
}

.folder-picker-row {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 16px;
  margin-top: 10px;
}

.folder-picker-row > span {
  color: var(--muted);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.09em;
}

.folder-action {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 12px;
  cursor: pointer;
  color: var(--accent);
  border: 1px solid var(--line-hot);
  background: rgba(138, 255, 226, 0.04);
  font-size: 9px;
  letter-spacing: 0.1em;
  transition: color 160ms ease, border-color 160ms ease, background 160ms ease;
}

.folder-action:hover,
.folder-action:focus-visible {
  color: var(--text);
  border-color: var(--accent);
  background: rgba(138, 255, 226, 0.1);
  outline: none;
}

.folder-action svg {
  width: 15px;
  height: 15px;
}

.upload-queue {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.upload-queue:empty {
  display: none;
}

.upload-item {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) minmax(120px, 0.65fr) 48px;
  align-items: center;
  gap: 14px;
  min-height: 64px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.018);
}

.upload-item.is-error {
  border-color: rgba(255, 113, 109, 0.42);
}

.upload-item.is-complete {
  border-color: rgba(138, 255, 226, 0.3);
}

.upload-item.is-error .upload-file-copy small,
.upload-item.is-error > b {
  color: var(--danger);
}

.upload-item.is-complete .upload-file-copy small,
.upload-item.is-complete > b {
  color: var(--accent);
}

.upload-file-icon {
  width: 38px;
  height: 38px;
}

.upload-file-copy {
  display: grid;
  min-width: 0;
  gap: 3px;
}

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

.upload-file-copy small {
  color: var(--muted);
  font-size: 11px;
}

.upload-progress {
  height: 3px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.08);
}

.upload-progress i {
  display: block;
  width: 0;
  height: 100%;
  background: var(--accent);
  transition: width 120ms linear;
}

.upload-item > b {
  color: var(--muted);
  text-align: right;
  font-size: 11px;
}

.library-section {
  margin-top: 24px;
}

.library-toolbar {
  padding: 20px 24px;
  border-bottom: 1px solid var(--line);
}

.section-heading > b {
  color: var(--muted);
  font-size: 11px;
}

.track-search {
  display: flex;
  align-items: center;
  gap: 10px;
  width: min(360px, 33vw);
  height: 42px;
  padding: 0 13px;
  border: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.22);
}

.track-search:focus-within,
.sort-control:focus-within {
  border-color: var(--line-hot);
}

.track-search svg {
  flex: 0 0 auto;
  width: 16px;
  color: var(--muted);
}

.track-search input {
  width: 100%;
  min-width: 0;
  color: var(--text);
  border: 0;
  outline: 0;
  background: transparent;
}

.track-search input::placeholder {
  color: #606766;
}

.library-controls {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

.sort-control {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 42px;
  padding: 0 10px;
  border: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.22);
}

.sort-control svg {
  flex: 0 0 auto;
  width: 15px;
  color: var(--muted);
}

.sort-control select {
  max-width: 170px;
  color: var(--text);
  border: 0;
  outline: 0;
  background: #0c0e11;
  font-size: 12px;
}

.download-library-button,
.album-download-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  padding: 0 13px;
  cursor: pointer;
  color: var(--accent);
  border: 1px solid var(--line-hot);
  background: rgba(138, 255, 226, 0.055);
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.08em;
  white-space: nowrap;
}

.download-library-button:hover,
.download-library-button:focus-visible,
.album-download-button:hover,
.album-download-button:focus-visible {
  color: #06100d;
  outline: none;
  background: var(--accent);
}

.download-library-button svg,
.album-download-button svg {
  width: 15px;
}

.library-state {
  padding: 46px 24px;
  color: var(--muted);
  text-align: center;
}

.track-list {
  display: grid;
}

.album-group + .album-group {
  border-top: 1px solid var(--line-hot);
}

.album-group > header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 76px;
  padding: 15px 18px;
  background:
    linear-gradient(100deg, rgba(138, 255, 226, 0.09), transparent 56%),
    rgba(255, 255, 255, 0.018);
  border-bottom: 1px solid var(--line);
}

.album-group > header > span {
  display: grid;
  min-width: 0;
  gap: 5px;
}

.album-group > header small {
  color: var(--muted);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.album-group > header strong {
  overflow: hidden;
  font: 400 20px/1.1 "Russo One", sans-serif;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.album-tracks {
  display: grid;
}

.track-row {
  display: grid;
  grid-template-columns: 52px minmax(0, 1.3fr) minmax(120px, 0.7fr) minmax(90px, 0.45fr) auto;
  align-items: center;
  gap: 16px;
  min-height: 78px;
  padding: 12px 18px;
  border-bottom: 1px solid var(--line);
  transition: background 140ms ease;
}

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

.track-row:hover,
.track-row.is-playing {
  background: rgba(138, 255, 226, 0.035);
}

.track-artwork {
  position: relative;
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  overflow: hidden;
  border: 1px solid var(--line);
  background:
    radial-gradient(circle at 50% 40%, rgba(138, 255, 226, 0.13), transparent 64%),
    #0a0c0f;
}

.track-artwork img,
.now-playing-mark img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.track-artwork img {
  position: absolute;
  inset: 0;
}

.track-play,
.track-action,
.player-dock > button,
.edit-dialog header button {
  display: grid;
  place-items: center;
  cursor: pointer;
  border: 1px solid var(--line);
  background: transparent;
}

.track-play {
  width: 42px;
  height: 42px;
  color: var(--accent);
  z-index: 1;
  border-color: rgba(138, 255, 226, 0.38);
  background: rgba(4, 8, 8, 0.7);
  backdrop-filter: blur(3px);
}

.track-play:hover,
.track-play:focus-visible,
.track-action:hover,
.track-action:focus-visible {
  border-color: var(--line-hot);
  outline: none;
}

.track-play svg,
.track-action svg {
  width: 17px;
}

.track-identity {
  display: grid;
  min-width: 0;
  gap: 4px;
}

.track-identity strong,
.track-identity span,
.track-album {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.track-identity strong {
  font-size: 15px;
}

.track-identity span,
.track-album,
.track-meta {
  color: var(--muted);
  font-size: 12px;
}

.track-meta {
  display: grid;
  gap: 3px;
}

.track-actions {
  display: flex;
  gap: 7px;
}

.track-action {
  width: 36px;
  height: 36px;
  color: var(--muted);
}

.track-action.is-danger:hover,
.track-action.is-danger:focus-visible {
  color: var(--danger);
  border-color: rgba(255, 113, 109, 0.5);
}

.player-dock {
  position: fixed;
  right: 24px;
  bottom: 20px;
  left: 24px;
  z-index: 30;
  display: grid;
  grid-template-columns: auto minmax(180px, 0.55fr) minmax(320px, 1fr) auto;
  align-items: center;
  gap: 16px;
  width: min(1100px, calc(100% - 48px));
  min-height: 84px;
  margin: 0 auto;
  padding: 12px 14px;
  border: 1px solid var(--line-hot);
  background: rgba(12, 14, 17, 0.94);
  box-shadow: 0 18px 70px rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(20px);
}

.now-playing-mark {
  position: relative;
  overflow: hidden;
  width: 52px;
  height: 52px;
}

.now-playing-mark img {
  position: absolute;
  inset: 0;
}

.now-playing-mark > svg {
  width: 23px;
}

.player-dock.is-playing .now-playing-mark svg {
  animation: rotate-disc 7s linear infinite;
}

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

.now-playing-copy {
  display: grid;
  min-width: 0;
  gap: 3px;
}

.now-playing-copy strong,
.now-playing-copy span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.now-playing-copy span {
  color: var(--muted);
  font-size: 11px;
}

.player-dock audio {
  width: 100%;
  height: 42px;
}

.player-dock > button {
  width: 38px;
  height: 38px;
  color: var(--muted);
}

dialog {
  width: min(460px, calc(100% - 32px));
  padding: 0;
  color: var(--text);
  border: 1px solid var(--line-hot);
  background: var(--panel-strong);
  box-shadow: 0 28px 100px rgba(0, 0, 0, 0.72);
}

dialog::backdrop {
  background: rgba(0, 0, 0, 0.74);
  backdrop-filter: blur(8px);
}

dialog form {
  display: grid;
  gap: 18px;
  padding: 24px;
}

dialog header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

dialog header > span {
  display: grid;
  gap: 5px;
}

dialog header strong {
  font: 400 21px/1.1 "Russo One", sans-serif;
}

dialog header > svg {
  color: var(--accent);
}

.auth-dialog header > button {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  cursor: pointer;
  color: var(--muted);
  border: 1px solid var(--line);
  background: transparent;
}

.auth-dialog header > button:hover,
.auth-dialog header > button:focus-visible {
  color: var(--text);
  border-color: var(--line-hot);
  outline: none;
}

dialog p {
  margin: 0;
  color: #a1aaa8;
  line-height: 1.45;
}

dialog label {
  display: grid;
  gap: 7px;
}

dialog label > span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

dialog input,
dialog select {
  width: 100%;
  min-height: 45px;
  padding: 0 12px;
  color: var(--text);
  border: 1px solid var(--line);
  outline: none;
  background: #090b0e;
}

dialog input:focus,
dialog select:focus {
  border-color: var(--line-hot);
}

.auth-dialog form > button,
.primary-button,
.secondary-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 44px;
  padding: 0 18px;
  cursor: pointer;
  border: 1px solid transparent;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.auth-dialog form > button,
.primary-button {
  color: #06100d;
  background: var(--accent);
}

.secondary-button {
  color: var(--text);
  border-color: var(--line);
  background: transparent;
}

.form-error {
  min-height: 18px;
  color: var(--danger);
  font-size: 12px;
}

.edit-dialog header button {
  width: 36px;
  height: 36px;
  color: var(--muted);
}

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

.toast-stack {
  position: fixed;
  top: 62px;
  right: 20px;
  z-index: 70;
  display: grid;
  width: min(390px, calc(100% - 40px));
  gap: 8px;
  pointer-events: none;
}

.toast {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 11px;
  min-height: 52px;
  padding: 12px 14px;
  opacity: 0;
  color: var(--text);
  border: 1px solid var(--line-hot);
  background: rgba(12, 14, 17, 0.97);
  box-shadow: 0 18px 55px rgba(0, 0, 0, 0.42);
  transform: translateY(-8px);
  transition: opacity 160ms ease, transform 160ms ease;
}

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

.toast svg {
  width: 19px;
  color: var(--accent);
}

.toast.is-error {
  border-color: rgba(255, 113, 109, 0.52);
}

.toast.is-error svg {
  color: var(--danger);
}

.toast span {
  font-size: 12px;
  line-height: 1.35;
}

[hidden] {
  display: none !important;
}

@media (max-width: 1160px) {
  .library-toolbar {
    align-items: flex-start;
  }

  .library-controls {
    display: grid;
    grid-template-columns: minmax(240px, 1fr) auto;
  }

  .track-search {
    grid-column: 1 / -1;
    width: 100%;
  }
}

@media (max-width: 900px) {
  .audio-hero {
    grid-template-columns: 1fr;
    padding-top: 58px;
  }

  .storage-card {
    width: 100%;
  }

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

  .track-album,
  .track-meta {
    display: none;
  }

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

  .player-dock audio {
    grid-column: 1 / -1;
    grid-row: 2;
  }
}

@media (max-width: 680px) {
  body {
    padding-bottom: 156px;
  }

  .system-chrome {
    grid-template-columns: 1fr auto;
    padding: 0 14px;
  }

  .system-center {
    display: none;
  }

  .system-brand span {
    font-size: 10px;
  }

  .audio-shell {
    width: min(100% - 24px, 1380px);
  }

  .service-switcher {
    overflow-x: auto;
    grid-template-columns: repeat(4, minmax(132px, 1fr));
  }

  .service-switcher a {
    min-height: 60px;
    padding: 13px 14px;
  }

  .audio-hero {
    padding: 46px 0 34px;
  }

  .hero-copy h1 {
    font-size: clamp(42px, 15vw, 68px);
  }

  .storage-card,
  .upload-console {
    padding: 18px;
  }

  .owner-upload-gate {
    align-items: stretch;
    flex-direction: column;
  }

  .storage-ledger {
    align-items: start;
  }

  .storage-ledger strong {
    font-size: 12px;
  }

  .format-list {
    display: none;
  }

  .drop-zone {
    grid-template-columns: auto 1fr;
    gap: 14px;
    min-height: 118px;
    padding: 18px;
  }

  .drop-action {
    display: none;
  }

  .drop-icon {
    width: 48px;
    height: 48px;
  }

  .drop-copy strong {
    font-size: 17px;
  }

  .drop-copy small {
    font-size: 11px;
  }

  .folder-picker-row {
    align-items: stretch;
    flex-direction: column;
    gap: 8px;
  }

  .folder-action {
    justify-content: center;
  }

  .upload-item {
    grid-template-columns: auto minmax(0, 1fr) 38px;
  }

  .upload-progress {
    grid-column: 2 / 4;
  }

  .library-toolbar {
    display: grid;
    padding: 18px;
  }

  .library-controls {
    grid-template-columns: minmax(0, 1fr) auto;
    width: 100%;
  }

  .track-search {
    grid-column: 1 / -1;
    width: 100%;
  }

  .sort-control {
    min-width: 0;
  }

  .sort-control select {
    width: 100%;
  }

  .download-library-button span,
  .album-download-button span {
    display: none;
  }

  .download-library-button,
  .album-download-button {
    width: 42px;
    padding: 0;
  }

  .album-group > header {
    min-height: 66px;
    padding: 13px 12px;
  }

  .album-group > header strong {
    font-size: 17px;
  }

  .track-row {
    gap: 10px;
    min-height: 72px;
    padding: 10px 12px;
  }

  .track-artwork {
    width: 44px;
    height: 44px;
  }

  .track-artwork .track-play {
    width: 36px;
    height: 36px;
  }

  .track-actions {
    gap: 4px;
  }

  .track-action {
    width: 34px;
    height: 34px;
  }

  .player-dock {
    right: 12px;
    bottom: 10px;
    left: 12px;
    width: calc(100% - 24px);
    min-height: 112px;
    gap: 10px;
  }

  .now-playing-mark {
    width: 42px;
    height: 42px;
  }
}

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