/*
 * PHANTOM GLOBAL — public site and moderation console.
 *
 * Strict monochrome. Depth comes from translucency, blur, hairlines and light
 * falloff. Album artwork is the only source of colour. No external assets.
 */

/* ------------------------------------------------------------------ */
/* Fonts                                                               */
/* ------------------------------------------------------------------ */

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('/assets/fonts/inter-cyrillic.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('/assets/fonts/inter-cyrillic-ext.woff2') format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('/assets/fonts/inter-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC,
    U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215,
    U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('/assets/fonts/inter-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304,
    U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB,
    U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* ------------------------------------------------------------------ */
/* Tokens                                                              */
/* ------------------------------------------------------------------ */

:root {
  color-scheme: dark;

  --bg: #050505;
  --bg-soft: #080808;
  --bg-raised: #0b0b0c;
  --white: #ffffff;

  --text: rgba(255, 255, 255, 0.96);
  --text-2: rgba(255, 255, 255, 0.7);
  --text-3: rgba(255, 255, 255, 0.54);
  --text-4: rgba(255, 255, 255, 0.36);

  --line: rgba(255, 255, 255, 0.075);
  --line-2: rgba(255, 255, 255, 0.13);
  --line-3: rgba(255, 255, 255, 0.22);

  --glass-top: rgba(255, 255, 255, 0.055);
  --glass-bottom: rgba(255, 255, 255, 0.018);
  --glass: linear-gradient(158deg, var(--glass-top), var(--glass-bottom));
  --glass-strong: linear-gradient(158deg, rgba(255, 255, 255, 0.085), rgba(255, 255, 255, 0.025));
  --blur: 26px;

  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 22px;
  --r-xl: 30px;
  --r-2xl: 38px;
  --r-pill: 999px;

  --shadow:
    0 34px 90px -34px rgba(0, 0, 0, 0.92),
    0 12px 36px -18px rgba(0, 0, 0, 0.7),
    inset 0 1px 0 rgba(255, 255, 255, 0.045);
  --shadow-card:
    0 18px 48px -24px rgba(0, 0, 0, 0.85),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);

  --font:
    'Inter', 'Segoe UI Variable Text', 'Segoe UI', system-ui, -apple-system, 'Helvetica Neue',
    Arial, sans-serif;
  --mono: 'Cascadia Mono', 'SFMono-Regular', Consolas, 'Liberation Mono', monospace;

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-soft: cubic-bezier(0.22, 1, 0.36, 1);
  --dur-fast: 150ms;
  --dur: 260ms;
  --dur-slow: 460ms;

  --gutter: clamp(20px, 4vw, 64px);
  --max: 1400px;
  --header-h: 72px;
}

/* ------------------------------------------------------------------ */
/* Reset and base                                                      */
/* ------------------------------------------------------------------ */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--bg);
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  min-height: 100vh;
  margin: 0;
  overflow-x: clip;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 15px;
  font-weight: 450;
  line-height: 1.55;
  letter-spacing: -0.005em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -2;
  content: '';
  pointer-events: none;
  background:
    radial-gradient(ellipse 62% 48% at 12% -8%, rgba(255, 255, 255, 0.06), transparent 62%),
    radial-gradient(ellipse 48% 38% at 92% 18%, rgba(255, 255, 255, 0.028), transparent 64%),
    radial-gradient(ellipse 70% 46% at 50% 112%, rgba(255, 255, 255, 0.022), transparent 62%),
    var(--bg);
}

body::after {
  position: fixed;
  inset: 0;
  z-index: -1;
  content: '';
  pointer-events: none;
  opacity: 0.032;
  mix-blend-mode: soft-light;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.55'/%3E%3C/svg%3E");
}

img,
svg {
  display: block;
  max-width: 100%;
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
}

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

p,
h1,
h2,
h3,
h4,
dl,
dd,
figure {
  margin: 0;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

[hidden] {
  display: none !important;
}

::selection {
  background: rgba(255, 255, 255, 0.9);
  color: #050505;
}

:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.85);
  outline-offset: 3px;
}

::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.14);
  border: 3px solid var(--bg);
  border-radius: 999px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.24);
}

/* ------------------------------------------------------------------ */
/* Utilities                                                           */
/* ------------------------------------------------------------------ */

.container {
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

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

.mono {
  font-family: var(--mono);
  font-variant-numeric: tabular-nums;
}

.icon {
  width: 1.15em;
  height: 1.15em;
  flex: none;
}

.inline-icon {
  display: inline-block;
  width: 1em;
  height: 1em;
  vertical-align: -0.12em;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 200;
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--white);
  color: #050505;
  font-size: 12px;
  font-weight: 600;
  transform: translateY(-160%);
  transition: transform var(--dur-fast) var(--ease);
}

.skip-link:focus-visible {
  transform: translateY(0);
}

/* ------------------------------------------------------------------ */
/* Boot and no-script                                                  */
/* ------------------------------------------------------------------ */

.boot {
  display: grid;
  min-height: 100vh;
  place-content: center;
  justify-items: center;
  gap: 8px;
  text-align: center;
}

.boot-mark {
  display: grid;
  width: 44px;
  height: 44px;
  margin-bottom: 12px;
  place-items: center;
  border: 1px solid var(--line-3);
  border-radius: 50%;
  animation: boot-pulse 2.4s var(--ease-soft) infinite;
}

.boot-mark-inner {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--white);
}

.boot-word {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.3em;
}

.boot-kicker {
  color: var(--text-3);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.24em;
}

.boot-text {
  margin-top: 18px;
  color: var(--text-3);
  font-size: 11px;
}

@keyframes boot-pulse {
  0%,
  100% {
    opacity: 0.45;
    transform: scale(0.96);
  }
  50% {
    opacity: 1;
    transform: scale(1);
  }
}

.noscript {
  max-width: 560px;
  margin: 15vh auto;
  padding: 32px;
  border: 1px solid var(--line-2);
  border-radius: var(--r-xl);
  background: var(--glass);
}

.noscript-title {
  font-size: 20px;
  font-weight: 600;
}

.noscript-text {
  margin-top: 12px;
  color: var(--text-2);
  font-size: 14px;
}

/* ------------------------------------------------------------------ */
/* Header                                                              */
/* ------------------------------------------------------------------ */

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  border-bottom: 1px solid transparent;
  background: rgba(5, 5, 5, 0.55);
  backdrop-filter: blur(18px) saturate(112%);
  -webkit-backdrop-filter: blur(18px) saturate(112%);
  transition:
    background-color var(--dur) var(--ease),
    border-color var(--dur) var(--ease);
}

.site-header.is-scrolled {
  border-bottom-color: var(--line);
  background: rgba(5, 5, 5, 0.82);
}

.header-inner {
  display: flex;
  height: var(--header-h);
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  flex: none;
}

.brand-mark {
  display: grid;
  width: 20px;
  height: 20px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 50%;
  transition: border-color var(--dur-fast) var(--ease);
}

.brand-mark-inner {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--white);
}

.brand:hover .brand-mark {
  border-color: var(--white);
}

.brand-text {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.brand-word {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.28em;
}

.brand-sub {
  color: var(--text-3);
  font-size: 8px;
  font-weight: 600;
  letter-spacing: 0.22em;
}

.brand-compact .brand-word {
  font-size: 11px;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 2px;
}

.nav-link {
  padding: 9px 13px;
  border-radius: 999px;
  color: var(--text-2);
  font-size: 12.5px;
  transition:
    color var(--dur-fast) var(--ease),
    background-color var(--dur-fast) var(--ease);
}

.nav-link:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.045);
}

.nav-link[aria-current='page'] {
  color: var(--text);
  background: rgba(255, 255, 255, 0.07);
}

.header-side {
  display: flex;
  align-items: center;
  gap: 10px;
}

.auth-slot {
  display: flex;
  align-items: center;
}

.auth-chip {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 5px 12px 5px 5px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.035);
  transition:
    background-color var(--dur-fast) var(--ease),
    border-color var(--dur-fast) var(--ease);
}

.auth-chip:hover {
  border-color: var(--line-2);
  background: rgba(255, 255, 255, 0.06);
}

.auth-chip-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.auth-chip-name {
  max-width: 150px;
  overflow: hidden;
  font-size: 12px;
  font-weight: 550;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.auth-chip-meta {
  color: var(--text-3);
  font-size: 9.5px;
}

.icon-btn.menu-toggle {
  display: none;
}

.mobile-menu {
  position: absolute;
  top: var(--header-h);
  right: 0;
  left: 0;
  padding: 12px var(--gutter) 24px;
  border-bottom: 1px solid var(--line);
  background: #070707;
  opacity: 0;
  transform: translateY(-8px);
  transition:
    opacity var(--dur-fast) var(--ease),
    transform var(--dur-fast) var(--ease);
}

.mobile-menu.is-open {
  opacity: 1;
  transform: translateY(0);
}

.mobile-nav-list {
  display: flex;
  flex-direction: column;
}

.mobile-nav-link {
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  color: var(--text-2);
  font-size: 17px;
  letter-spacing: -0.02em;
}

.mobile-nav-link[aria-current='page'] {
  color: var(--text);
}

.mobile-menu-auth {
  margin-top: 18px;
}

.mobile-menu-auth .btn {
  width: 100%;
  justify-content: flex-start;
}

/* ------------------------------------------------------------------ */
/* Connection banner                                                   */
/* ------------------------------------------------------------------ */

.connection-slot {
  position: sticky;
  top: var(--header-h);
  z-index: 35;
}

.connection-banner {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px var(--gutter);
  border-bottom: 1px solid var(--line-2);
  background: rgba(10, 10, 10, 0.94);
  backdrop-filter: blur(18px);
  color: var(--text-2);
  font-size: 12.5px;
}

.connection-banner-icon {
  display: grid;
  width: 28px;
  height: 28px;
  flex: none;
  place-items: center;
  border: 1px solid var(--line-2);
  border-radius: 50%;
}

.connection-banner-icon .icon {
  width: 14px;
  height: 14px;
}

.connection-banner-text {
  flex: 1;
  min-width: 0;
}

.connection-retry {
  flex: none;
}

/* ------------------------------------------------------------------ */
/* Buttons                                                             */
/* ------------------------------------------------------------------ */

.btn {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: transparent;
  color: var(--text);
  font-size: 13px;
  font-weight: 550;
  letter-spacing: 0.005em;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
  transition:
    transform var(--dur-fast) var(--ease),
    background-color var(--dur-fast) var(--ease),
    border-color var(--dur-fast) var(--ease),
    color var(--dur-fast) var(--ease),
    opacity var(--dur-fast) var(--ease);
}

.btn:hover {
  transform: translateY(-1px);
}

.btn:active {
  transform: scale(0.98);
}

.btn:disabled,
.btn.is-disabled {
  opacity: 0.38;
  cursor: not-allowed;
  transform: none;
}

.btn-primary {
  background: var(--white);
  color: #050505;
}

.btn-primary:hover {
  background: #f1f1f1;
}

.btn-secondary {
  border-color: var(--line-2);
  background: rgba(255, 255, 255, 0.055);
  color: var(--text);
}

.btn-secondary:hover {
  border-color: var(--line-3);
  background: rgba(255, 255, 255, 0.09);
}

.btn-ghost {
  color: var(--text-2);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
}

.btn-compact {
  min-height: 38px;
  padding: 0 14px;
  font-size: 12px;
}

.btn-block {
  width: 100%;
}

.btn .icon {
  width: 16px;
  height: 16px;
}

.btn-label {
  display: inline-flex;
  align-items: baseline;
  gap: 7px;
}

.btn-meta {
  color: currentColor;
  font-size: 9.5px;
  letter-spacing: 0.08em;
  opacity: 0.55;
}

.btn-download {
  min-height: 50px;
  padding: 0 22px;
}

.btn.is-busy {
  cursor: progress;
}

.icon-btn {
  display: inline-grid;
  width: 40px;
  height: 40px;
  flex: none;
  place-items: center;
  padding: 0;
  border: 1px solid transparent;
  border-radius: 50%;
  background: transparent;
  color: var(--text-2);
  transition:
    background-color var(--dur-fast) var(--ease),
    border-color var(--dur-fast) var(--ease),
    color var(--dur-fast) var(--ease),
    transform var(--dur-fast) var(--ease);
}

.icon-btn:hover {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
}

.icon-btn:active {
  transform: scale(0.94);
}

.icon-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.icon-btn-sm {
  width: 32px;
  height: 32px;
}

.icon-btn-lg {
  width: 46px;
  height: 46px;
}

.icon-btn-surface {
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.04);
}

.icon-btn-solid {
  background: var(--white);
  color: #050505;
}

.icon-btn .icon {
  width: 18px;
  height: 18px;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--text-2);
  font-size: 12.5px;
  text-decoration: underline;
  text-decoration-color: var(--line-3);
  text-underline-offset: 4px;
  transition: color var(--dur-fast) var(--ease);
}

.text-link:hover {
  color: var(--text);
  text-decoration-color: var(--text-3);
}

.text-link-small {
  font-size: 11.5px;
}

.inline-link {
  color: var(--text);
  text-decoration: underline;
  text-decoration-color: var(--line-3);
  text-underline-offset: 3px;
}

.inline-link:hover {
  text-decoration-color: var(--text);
}

/* ------------------------------------------------------------------ */
/* Shared glass surface                                                */
/* ------------------------------------------------------------------ */

.glass-panel {
  border: 1px solid var(--line-2);
  border-radius: var(--r-xl);
  background: var(--glass);
  box-shadow: var(--shadow-card);
  backdrop-filter: blur(var(--blur)) saturate(112%);
  -webkit-backdrop-filter: blur(var(--blur)) saturate(112%);
}

.auth-gate {
  display: flex;
  max-width: 720px;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  margin: clamp(32px, 6vw, 72px) auto;
  padding: clamp(32px, 5vw, 64px) clamp(20px, 4vw, 48px);
  text-align: center;
}

.auth-gate .state-actions {
  margin-top: 10px;
}

/* ------------------------------------------------------------------ */
/* Kickers, chips, labels                                              */
/* ------------------------------------------------------------------ */

.kicker {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-3);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.2em;
  line-height: 1.4;
  text-transform: uppercase;
}

.kicker-dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--white);
}

.status-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.035);
  color: var(--text-2);
  font-size: 10.5px;
  letter-spacing: 0.015em;
  white-space: nowrap;
}

.status-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--white);
}

.status-chip[data-status='PENDING'] .status-dot,
.status-chip[data-status='PROCESSING'] .status-dot {
  background: transparent;
  box-shadow: inset 0 0 0 1px var(--white);
}

.status-chip[data-status='PROCESSING'] .status-dot {
  animation: status-pulse 1.8s var(--ease-soft) infinite;
}

.status-chip[data-status='REJECTED'] .status-dot,
.status-chip[data-status='REMOVED'] .status-dot {
  background: transparent;
  box-shadow: inset 0 0 0 1px var(--text-3);
}

.status-chip[data-status='OPEN'] .status-dot {
  background: transparent;
  box-shadow: inset 0 0 0 1px var(--white);
}

@keyframes status-pulse {
  0%,
  100% {
    opacity: 0.35;
  }
  50% {
    opacity: 1;
  }
}

.role-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  width: fit-content;
  padding: 4px 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--text-3);
  font-size: 10.5px;
}

.genre-chip,
.filter-chip {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  color: var(--text-2);
  font-size: 12.5px;
  white-space: nowrap;
  transition:
    background-color var(--dur-fast) var(--ease),
    border-color var(--dur-fast) var(--ease),
    color var(--dur-fast) var(--ease);
}

.genre-chip:hover,
.filter-chip:hover {
  border-color: var(--line-2);
  color: var(--text);
}

.genre-chip[aria-pressed='true'],
.filter-chip[aria-pressed='true'] {
  border-color: var(--white);
  background: var(--white);
  color: #050505;
}

.dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--text-3);
}

/* ------------------------------------------------------------------ */
/* Page scaffolding                                                    */
/* ------------------------------------------------------------------ */

.site-main {
  min-height: 60vh;
}

.page {
  padding-bottom: clamp(40px, 6vw, 80px);
}

.page-inner {
  padding-top: clamp(24px, 4vw, 48px);
}

.page-intro {
  max-width: 920px;
  padding: clamp(40px, 6vw, 84px) 0 clamp(24px, 4vw, 44px);
}

.page-title {
  margin-top: 12px;
  font-size: clamp(2.4rem, 5vw, 4.4rem);
  font-weight: 600;
  letter-spacing: -0.045em;
  line-height: 0.98;
  overflow-wrap: anywhere;
}

.page-lede {
  max-width: 720px;
  margin-top: 18px;
  color: var(--text-2);
  font-size: clamp(14.5px, 1.3vw, 17px);
  line-height: 1.65;
}

.page-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.page-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 18px;
  color: var(--text-3);
  font-size: 12px;
}

.section {
  padding-block: clamp(48px, 7vw, 96px);
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: clamp(24px, 3vw, 40px);
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.section-head-text {
  min-width: 0;
}

.section-title {
  margin-top: 8px;
  font-size: clamp(1.7rem, 3vw, 2.6rem);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1.05;
}

.section-head-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex: none;
}

.section-count {
  color: var(--text-3);
  font-size: 11.5px;
  white-space: nowrap;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 28px;
  color: var(--text-3);
  font-size: 12px;
  transition: color var(--dur-fast) var(--ease);
}

.back-link:hover {
  color: var(--text);
}

.back-link .icon {
  width: 14px;
  height: 14px;
}

/* ------------------------------------------------------------------ */
/* Hero                                                                */
/* ------------------------------------------------------------------ */

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, 0.98fr);
  gap: clamp(32px, 5vw, 80px);
  align-items: center;
  padding: clamp(48px, 7vw, 96px) 0 clamp(56px, 8vw, 110px);
}

.hero-copy {
  max-width: 760px;
}

.hero-kicker {
  color: var(--text-2);
}

.hero-title {
  display: flex;
  flex-direction: column;
  margin-top: 20px;
  font-size: clamp(2.5rem, 5.6vw, 5.6rem);
  font-weight: 600;
  letter-spacing: -0.055em;
  line-height: 0.94;
}

.hero-line {
  display: block;
  white-space: nowrap;
}

.hero-line-last {
  padding-left: 0.55em;
  color: var(--text-2);
}

.hero-lede {
  max-width: 570px;
  margin-top: 28px;
  color: var(--text-2);
  font-size: clamp(15px, 1.3vw, 18px);
  line-height: 1.65;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 16px;
  margin-top: 32px;
}

.hero-download {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.download-host {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
}

.download-note {
  max-width: 340px;
  color: var(--text-3);
  font-size: 11px;
  line-height: 1.5;
}

.hero-facts {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(16px, 3vw, 40px);
  margin-top: 48px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.hero-fact {
  color: var(--text-2);
  font-size: 12px;
}

.hero-fact-key {
  margin-right: 8px;
  color: var(--text-4);
  font-size: 10px;
}

.hero-visual {
  position: relative;
  display: flex;
  min-height: 520px;
  align-items: center;
  justify-content: center;
}

.hero-bloom {
  position: absolute;
  width: 78%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.09), transparent 66%);
  filter: blur(30px);
  pointer-events: none;
}

.hero-grid-lines {
  position: absolute;
  inset: 4% 0;
  opacity: 0.5;
  background-image:
    linear-gradient(to right, var(--line) 1px, transparent 1px),
    linear-gradient(to bottom, var(--line) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(ellipse at center, #000 20%, transparent 72%);
  -webkit-mask-image: radial-gradient(ellipse at center, #000 20%, transparent 72%);
  pointer-events: none;
}

.hero-feature-host {
  position: relative;
  z-index: 1;
  display: flex;
  width: 100%;
  justify-content: center;
}

.hero-feature {
  position: relative;
  width: min(100%, 480px);
  padding: 18px;
  border: 1px solid var(--line-2);
  border-radius: var(--r-2xl);
  background: var(--glass);
  box-shadow: var(--shadow);
  backdrop-filter: blur(var(--blur)) saturate(112%);
  -webkit-backdrop-filter: blur(var(--blur)) saturate(112%);
}

.hero-feature::before {
  position: absolute;
  top: 0;
  right: 12%;
  left: 12%;
  height: 1px;
  content: '';
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.22), transparent);
}

.hero-feature-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.hero-cover-link {
  display: block;
  margin-top: 14px;
  border-radius: 24px;
  overflow: hidden;
}

.hero-cover {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 24px;
}

.hero-cover-link:hover .cover-image {
  transform: scale(1.025);
}

.hero-feature-body {
  margin-top: 16px;
}

.hero-feature-title-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.hero-feature-titles {
  min-width: 0;
}

.hero-track-title {
  display: block;
  overflow: hidden;
  font-size: 21px;
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.15;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hero-track-title:hover {
  text-decoration: underline;
  text-decoration-color: var(--line-3);
  text-underline-offset: 4px;
}

.hero-track-artist {
  margin-top: 3px;
  color: var(--text-2);
  font-size: 12.5px;
}

.hero-feature-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 12px;
  color: var(--text-3);
  font-size: 10.5px;
  letter-spacing: 0.01em;
}

.hero-feature-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 44px 28px;
  text-align: center;
}

.hero-empty-title {
  font-size: 24px;
  font-weight: 600;
  letter-spacing: -0.03em;
}

.hero-empty-text {
  max-width: 320px;
  color: var(--text-2);
  font-size: 13px;
}

.hero-skeleton-line {
  margin-top: 12px;
}

.skeleton-hero-cover {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 24px;
}

/* ------------------------------------------------------------------ */
/* Covers and avatars                                                  */
/* ------------------------------------------------------------------ */

.cover {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: #0b0b0c;
  isolation: isolate;
}

.cover-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition:
    transform var(--dur-slow) var(--ease),
    filter var(--dur) var(--ease);
}

.cover-fallback {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  overflow: hidden;
  background:
    radial-gradient(circle at 28% 18%, rgba(255, 255, 255, 0.13), transparent 52%),
    radial-gradient(circle at 74% 82%, rgba(255, 255, 255, 0.06), transparent 48%),
    #0b0b0c;
}

.cover-tone-1 {
  background:
    radial-gradient(circle at 72% 22%, rgba(255, 255, 255, 0.12), transparent 50%),
    radial-gradient(circle at 20% 78%, rgba(255, 255, 255, 0.05), transparent 46%),
    #0a0a0b;
}

.cover-tone-2 {
  background:
    radial-gradient(circle at 50% 0%, rgba(255, 255, 255, 0.1), transparent 55%),
    linear-gradient(160deg, #0d0d0e, #070708);
}

.cover-tone-3 {
  background:
    radial-gradient(circle at 18% 50%, rgba(255, 255, 255, 0.09), transparent 48%),
    radial-gradient(circle at 82% 50%, rgba(255, 255, 255, 0.05), transparent 48%),
    #0a0a0b;
}

.cover-tone-4 {
  background:
    radial-gradient(circle at 50% 100%, rgba(255, 255, 255, 0.1), transparent 55%),
    #09090a;
}

.cover-tone-5 {
  background:
    radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.08), transparent 40%),
    radial-gradient(circle at 70% 70%, rgba(255, 255, 255, 0.08), transparent 40%),
    #0b0b0c;
}

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

.cover-ring-1 {
  width: 78%;
  height: 78%;
}

.cover-ring-2 {
  width: 54%;
  height: 54%;
  border-color: rgba(255, 255, 255, 0.07);
}

.cover-ring-3 {
  width: 30%;
  height: 30%;
  border-color: rgba(255, 255, 255, 0.05);
}

.cover-initials {
  position: relative;
  z-index: 1;
  color: rgba(255, 255, 255, 0.55);
  font-size: clamp(1.8rem, 4.5vw, 3.6rem);
  font-weight: 600;
  letter-spacing: -0.05em;
}

.avatar {
  position: relative;
  display: grid;
  width: 40px;
  height: 40px;
  flex: none;
  place-items: center;
  overflow: hidden;
  border: 1px solid var(--line-2);
  border-radius: 50%;
  background: #0d0d0e;
}

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

.avatar-initials {
  color: var(--text-2);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.avatar-xs {
  width: 26px;
  height: 26px;
}

.avatar-xs .avatar-initials {
  font-size: 9px;
}

.avatar-sm {
  width: 34px;
  height: 34px;
}

.avatar-sm .avatar-initials {
  font-size: 10px;
}

.avatar-lg {
  width: 88px;
  height: 88px;
}

.avatar-lg .avatar-initials {
  font-size: 24px;
}

.avatar-xl {
  width: 96px;
  height: 96px;
}

.avatar-xl .avatar-initials {
  font-size: 26px;
}

/* ------------------------------------------------------------------ */
/* Track grid                                                          */
/* ------------------------------------------------------------------ */

.track-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(18px, 2.4vw, 30px);
}

.track-card {
  min-width: 0;
  animation: card-rise var(--dur-slow) var(--ease) both;
}

.track-card:nth-child(2) {
  animation-delay: 40ms;
}

.track-card:nth-child(3) {
  animation-delay: 80ms;
}

.track-card:nth-child(4) {
  animation-delay: 120ms;
}

.track-card:nth-child(5) {
  animation-delay: 160ms;
}

.track-card:nth-child(6) {
  animation-delay: 200ms;
}

.track-card:nth-child(7) {
  animation-delay: 240ms;
}

.track-card:nth-child(8) {
  animation-delay: 280ms;
}

@keyframes card-rise {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.track-card-link {
  display: block;
  min-width: 0;
}

.track-card-link:hover .cover {
  border-color: var(--line-3);
}

.track-card-link:hover .cover-image {
  transform: scale(1.025);
}

.track-card-body {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-top: 12px;
}

.track-card-title {
  overflow: hidden;
  color: var(--text);
  font-size: 15.5px;
  font-weight: 550;
  letter-spacing: -0.02em;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.track-card-artist {
  overflow: hidden;
  color: var(--text-2);
  font-size: 12.5px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.track-card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 8px;
}

.track-card-meta {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 8px;
  color: var(--text-3);
  font-size: 10.5px;
}

.track-card-genre {
  overflow: hidden;
  max-width: 120px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.track-card-duration {
  font-variant-numeric: tabular-nums;
}

.track-card-format {
  color: var(--text-4);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.1em;
}

/* ------------------------------------------------------------------ */
/* Landing sections                                                    */
/* ------------------------------------------------------------------ */

.manifesto-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(24px, 4vw, 56px);
}

.manifesto-item {
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.manifesto-number {
  color: var(--text-4);
  font-size: 10px;
  letter-spacing: 0.12em;
}

.manifesto-title {
  margin-top: 18px;
  font-size: clamp(1.15rem, 1.8vw, 1.45rem);
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.2;
}

.manifesto-text {
  max-width: 360px;
  margin-top: 12px;
  color: var(--text-2);
  font-size: 13.5px;
  line-height: 1.65;
}

.app-section {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: clamp(32px, 5vw, 80px);
  align-items: center;
}

.app-figure {
  min-width: 0;
}

.app-frame {
  overflow: hidden;
  border: 1px solid var(--line-2);
  border-radius: 24px;
  background: #0a0a0b;
  box-shadow: var(--shadow);
}

.app-preview {
  width: 100%;
  height: auto;
}

.app-caption {
  margin-top: 10px;
  color: var(--text-3);
  font-size: 10.5px;
  line-height: 1.5;
}

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

.app-lede {
  margin-top: 18px;
  color: var(--text-2);
  font-size: 14px;
  line-height: 1.7;
}

.feature-list {
  margin-top: 24px;
}

.feature-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 11px 0;
  border-bottom: 1px solid var(--line);
  color: var(--text-2);
  font-size: 13px;
}

.feature-icon {
  width: 15px;
  height: 15px;
  margin-top: 2px;
  color: var(--text);
}

.app-download {
  margin-top: 28px;
}

.publish-panel {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(28px, 5vw, 72px);
  overflow: hidden;
  padding: clamp(28px, 4vw, 56px);
  border: 1px solid var(--line-2);
  border-radius: var(--r-2xl);
  background: var(--glass);
  box-shadow: var(--shadow-card);
}

.publish-panel::after {
  position: absolute;
  top: -40%;
  right: -10%;
  width: 50%;
  aspect-ratio: 1;
  content: '';
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.07), transparent 66%);
  pointer-events: none;
}

.publish-copy {
  position: relative;
  z-index: 1;
}

.publish-title {
  margin-top: 12px;
  font-size: clamp(2rem, 3.6vw, 3.2rem);
  font-weight: 600;
  letter-spacing: -0.045em;
  line-height: 1;
}

.publish-text {
  max-width: 460px;
  margin-top: 18px;
  color: var(--text-2);
  font-size: 14px;
  line-height: 1.7;
}

.publish-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.publish-steps {
  position: relative;
  z-index: 1;
}

.publish-step {
  display: flex;
  gap: 16px;
  padding: 16px 0;
  border-top: 1px solid var(--line);
}

.publish-step:first-child {
  border-top: 0;
  padding-top: 0;
}

.publish-step-number {
  color: var(--text-4);
  font-size: 10px;
  letter-spacing: 0.1em;
}

.publish-step-text {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.publish-step-title {
  font-size: 14px;
  font-weight: 550;
}

.publish-step-detail {
  color: var(--text-3);
  font-size: 12px;
  line-height: 1.55;
}

.api-section {
  border-top: 1px solid var(--line);
}

.api-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.api-title {
  margin-top: 10px;
  font-size: clamp(1.6rem, 2.6vw, 2.2rem);
  font-weight: 600;
  letter-spacing: -0.035em;
}

.api-text {
  max-width: 560px;
  margin-top: 12px;
  color: var(--text-2);
  font-size: 13.5px;
  line-height: 1.65;
}

.api-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  flex: none;
}

.api-code {
  padding: 12px 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #0a0a0b;
  color: var(--text-2);
  font-size: 11px;
}

/* ------------------------------------------------------------------ */
/* Player                                                              */
/* ------------------------------------------------------------------ */

.player {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 24px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.035);
}

.player-row {
  display: flex;
  align-items: center;
  gap: 14px;
}

.player-toggle {
  display: grid;
  width: 52px;
  height: 52px;
  flex: none;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--white);
  color: #050505;
  transition:
    transform var(--dur-fast) var(--ease),
    background-color var(--dur-fast) var(--ease),
    opacity var(--dur-fast) var(--ease);
}

.player-toggle:hover {
  background: #f1f1f1;
  transform: scale(1.03);
}

.player-toggle:active {
  transform: scale(0.96);
}

.player-toggle:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.player-toggle-icon .icon {
  width: 22px;
  height: 22px;
}

.player-body {
  flex: 1;
  min-width: 0;
}

.player-heading {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 4px;
}

.player-title {
  overflow: hidden;
  font-size: 13.5px;
  font-weight: 550;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.player-subtitle {
  overflow: hidden;
  color: var(--text-3);
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.player-range-wrap {
  position: relative;
}

.player-progress {
  position: absolute;
  top: 50%;
  right: 0;
  left: 0;
  width: 100%;
  height: 3px;
  appearance: none;
  -webkit-appearance: none;
  border: 0;
  border-radius: 2px;
  background: transparent;
  transform: translateY(-50%);
  pointer-events: none;
}

.player-progress::-webkit-progress-bar {
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.16);
}

.player-progress::-webkit-progress-value {
  border-radius: 2px;
  background: var(--white);
}

.player-progress::-moz-progress-bar {
  border-radius: 2px;
  background: var(--white);
}

.player-range {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 20px;
  margin: 0;
  appearance: none;
  -webkit-appearance: none;
  background: transparent;
  cursor: pointer;
}

.player-range::-webkit-slider-runnable-track {
  height: 3px;
  border-radius: 2px;
  background: transparent;
}

.player-range::-webkit-slider-thumb {
  width: 12px;
  height: 12px;
  margin-top: -4.5px;
  appearance: none;
  -webkit-appearance: none;
  border: 0;
  border-radius: 50%;
  background: var(--white);
  box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.08);
  opacity: 0;
  transition: opacity var(--dur-fast) var(--ease);
}

.player-range:hover::-webkit-slider-thumb,
.player-range:focus-visible::-webkit-slider-thumb {
  opacity: 1;
}

.player-range::-moz-range-track {
  height: 3px;
  border-radius: 2px;
  background: transparent;
}

.player-range::-moz-range-thumb {
  width: 12px;
  height: 12px;
  border: 0;
  border-radius: 50%;
  background: var(--white);
}

.player-range:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.player-times {
  display: flex;
  justify-content: space-between;
  color: var(--text-3);
  font-family: var(--mono);
  font-size: 10px;
  font-variant-numeric: tabular-nums;
}

.player-status {
  color: var(--text-3);
  font-size: 11px;
}

.player-status:empty {
  display: none;
}

.player-error {
  padding-left: 10px;
  border-left: 2px solid var(--line-3);
  color: var(--text-2);
  font-size: 11.5px;
  line-height: 1.5;
}

.player[data-state='buffering'] .player-toggle {
  animation: status-pulse 1.6s var(--ease-soft) infinite;
}

.player[data-state='unavailable'] {
  opacity: 0.7;
}

.player-hero {
  margin-top: 14px;
  background: rgba(0, 0, 0, 0.24);
}

.player-admin {
  margin-top: 0;
  background: rgba(0, 0, 0, 0.22);
}

.player-preview {
  margin-top: 0;
}

.player-unavailable {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 24px;
  padding: 16px;
  border: 1px dashed var(--line-2);
  border-radius: 18px;
  color: var(--text-3);
  font-size: 12px;
}

.player-unavailable .icon {
  width: 16px;
  height: 16px;
  color: var(--text-2);
}

/* ------------------------------------------------------------------ */
/* States, skeletons, loading                                          */
/* ------------------------------------------------------------------ */

.state-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: clamp(36px, 6vw, 72px) 24px;
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  background: rgba(255, 255, 255, 0.018);
  text-align: center;
}

.state-icon {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  margin-bottom: 4px;
  border: 1px solid var(--line-2);
  border-radius: 50%;
  color: var(--text-2);
}

.state-icon .icon {
  width: 20px;
  height: 20px;
}

.state-icon-small {
  width: 38px;
  height: 38px;
}

.state-icon-small .icon {
  width: 16px;
  height: 16px;
}

.state-title {
  font-size: clamp(1.2rem, 2vw, 1.55rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.2;
}

.state-message {
  max-width: 540px;
  color: var(--text-2);
  font-size: 13px;
  line-height: 1.6;
}

.state-tech {
  color: var(--text-4);
  font-size: 10px;
  letter-spacing: 0.04em;
}

.state-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 8px;
}

.state-inline {
  padding: 28px 20px;
  border-radius: var(--r-lg);
}

.state-compact {
  padding: 24px 16px;
  border: 0;
  background: transparent;
}

.state-compact .state-icon {
  width: 38px;
  height: 38px;
}

.state-compact .state-title {
  font-size: 16px;
}

.state-compact .state-message {
  font-size: 12px;
}

.loading-block {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 64px 20px;
  color: var(--text-3);
  font-size: 12px;
}

.spinner {
  width: 18px;
  height: 18px;
  border: 2px solid var(--line-2);
  border-top-color: var(--white);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

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

.skeleton {
  position: relative;
  overflow: hidden;
  border-radius: var(--r-sm);
  background: rgba(255, 255, 255, 0.055);
}

.skeleton::after {
  position: absolute;
  inset: 0;
  content: '';
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.07), transparent);
  transform: translateX(-100%);
  animation: shimmer 1.8s var(--ease-soft) infinite;
}

@keyframes shimmer {
  to {
    transform: translateX(100%);
  }
}

.skeleton-card {
  min-width: 0;
}

.skeleton-cover {
  width: 100%;
  aspect-ratio: 1;
  border-radius: var(--r-lg);
}

.skeleton-line {
  height: 11px;
  margin-top: 10px;
}

.skeleton-line-20 {
  width: 20%;
}

.skeleton-line-25 {
  width: 25%;
}

.skeleton-line-35 {
  width: 35%;
}

.skeleton-line-40 {
  width: 40%;
}

.skeleton-line-45 {
  width: 45%;
}

.skeleton-line-50 {
  width: 50%;
}

.skeleton-line-60 {
  width: 60%;
}

.skeleton-line-65 {
  width: 65%;
}

.skeleton-line-70 {
  width: 70%;
}

.skeleton-stack {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.skeleton-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

.skeleton-thumb {
  width: 56px;
  height: 56px;
  flex: none;
  border-radius: 12px;
}

.skeleton-row-text {
  flex: 1;
}

.skeleton-track-art {
  width: 100%;
  aspect-ratio: 1;
  border-radius: var(--r-2xl);
}

.skeleton-track-title {
  width: 70%;
  height: 44px;
  margin-top: 18px;
}

.skeleton-player {
  width: 100%;
  height: 84px;
  margin-top: 24px;
  border-radius: 20px;
}

.skeleton-button {
  width: 120px;
  height: 44px;
  border-radius: 999px;
}

.skeleton-avatar-lg {
  width: 88px;
  height: 88px;
  flex: none;
  border-radius: 50%;
}

.skeleton-profile-name {
  width: 45%;
  height: 34px;
  margin-top: 14px;
}

/* ------------------------------------------------------------------ */
/* Forms                                                               */
/* ------------------------------------------------------------------ */

.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 20px;
}

.field-label {
  display: flex;
  align-items: baseline;
  gap: 8px;
  color: var(--text-2);
  font-size: 12px;
  font-weight: 550;
}

.field-required,
.field-optional {
  color: var(--text-3);
  font-size: 9.5px;
  font-weight: 450;
  letter-spacing: 0.01em;
}

.field-hint {
  color: var(--text-3);
  font-size: 11.5px;
  line-height: 1.5;
}

.field-hint-indent {
  padding-left: 32px;
}

.field-error {
  padding-left: 9px;
  border-left: 2px solid var(--line-3);
  color: var(--text);
  font-size: 11.5px;
  line-height: 1.5;
}

.field-counter {
  align-self: flex-end;
  color: var(--text-4);
  font-family: var(--mono);
  font-size: 10px;
}

.field-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 16px;
}

.input {
  width: 100%;
  min-height: 46px;
  padding: 11px 14px;
  border: 1px solid var(--line-2);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.035);
  color: var(--text);
  font-size: 14px;
  line-height: 1.4;
  transition:
    border-color var(--dur-fast) var(--ease),
    background-color var(--dur-fast) var(--ease),
    box-shadow var(--dur-fast) var(--ease);
}

.input::placeholder {
  color: var(--text-4);
}

.input:hover {
  border-color: var(--line-3);
}

.input:focus {
  border-color: rgba(255, 255, 255, 0.42);
  outline: none;
  background: rgba(255, 255, 255, 0.05);
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.07);
}

.input[aria-invalid='true'] {
  border-color: rgba(255, 255, 255, 0.5);
  border-style: dashed;
  background: rgba(255, 255, 255, 0.055);
}

.textarea {
  min-height: 120px;
  resize: vertical;
}

.select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 38px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5 6 6.5l5-5' fill='none' stroke='%23ffffff' stroke-opacity='0.55' stroke-width='1.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
}

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

.password-wrap {
  position: relative;
}

.input-password {
  padding-right: 48px;
}

.password-toggle {
  position: absolute;
  top: 4px;
  right: 4px;
}

.checkbox {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  cursor: pointer;
}

.checkbox-input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.checkbox-box {
  display: grid;
  width: 20px;
  height: 20px;
  flex: none;
  place-items: center;
  margin-top: 1px;
  border: 1px solid var(--line-3);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.03);
  color: #050505;
  transition:
    background-color var(--dur-fast) var(--ease),
    border-color var(--dur-fast) var(--ease);
}

.checkbox-box .icon {
  width: 12px;
  height: 12px;
  opacity: 0;
}

.checkbox-input:checked + .checkbox-box {
  border-color: var(--white);
  background: var(--white);
}

.checkbox-input:checked + .checkbox-box .icon {
  opacity: 1;
}

.checkbox-input:focus-visible + .checkbox-box {
  outline: 2px solid rgba(255, 255, 255, 0.85);
  outline-offset: 3px;
}

.checkbox-input[aria-invalid='true'] + .checkbox-box {
  border-style: dashed;
  border-color: rgba(255, 255, 255, 0.55);
}

.checkbox-text {
  color: var(--text-2);
  font-size: 12.5px;
  line-height: 1.55;
}

.field-checkbox {
  gap: 8px;
}

.form-summary {
  margin-bottom: 18px;
  padding: 12px 14px;
  border: 1px solid var(--line-2);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
  font-size: 12.5px;
  line-height: 1.5;
}

/* ------------------------------------------------------------------ */
/* Auth                                                                */
/* ------------------------------------------------------------------ */

.page-auth {
  padding-block: clamp(32px, 5vw, 64px);
}

.auth-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr);
  gap: clamp(32px, 6vw, 96px);
  align-items: center;
  min-height: calc(100vh - var(--header-h) - 120px);
}

.auth-card {
  width: 100%;
  max-width: 560px;
  justify-self: end;
  padding: clamp(26px, 4vw, 48px);
  border: 1px solid var(--line-2);
  border-radius: var(--r-2xl);
  background: var(--glass);
  box-shadow: var(--shadow);
  backdrop-filter: blur(var(--blur));
  -webkit-backdrop-filter: blur(var(--blur));
}

.auth-title {
  margin-top: 12px;
  font-size: clamp(2rem, 3.6vw, 3.2rem);
  font-weight: 600;
  letter-spacing: -0.045em;
  line-height: 0.98;
}

.auth-lede {
  margin-top: 14px;
  color: var(--text-2);
  font-size: 13.5px;
  line-height: 1.6;
}

.auth-form {
  margin-top: 28px;
}

.auth-switch {
  margin-top: 20px;
  color: var(--text-2);
  font-size: 12.5px;
}

.auth-fineprint {
  margin-top: 12px;
  color: var(--text-3);
  font-size: 11px;
  line-height: 1.55;
}

.auth-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.auth-footer {
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.auth-aside {
  max-width: 480px;
}

.auth-quote {
  margin-top: 16px;
  font-size: clamp(2.4rem, 4.5vw, 4.4rem);
  font-weight: 600;
  letter-spacing: -0.055em;
  line-height: 0.95;
}

.auth-aside-text {
  max-width: 380px;
  margin-top: 24px;
  color: var(--text-2);
  font-size: 13.5px;
  line-height: 1.7;
}

.auth-points {
  margin-top: 32px;
}

.auth-point {
  display: flex;
  gap: 14px;
  padding: 14px 0;
  border-top: 1px solid var(--line);
}

.auth-point-number {
  color: var(--text-4);
  font-size: 10px;
  letter-spacing: 0.1em;
}

.auth-point-text {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.auth-point-title {
  font-size: 13.5px;
  font-weight: 550;
}

.auth-point-detail {
  color: var(--text-3);
  font-size: 11.5px;
  line-height: 1.5;
}

.auth-tech {
  margin-top: 32px;
  color: var(--text-4);
  font-size: 9px;
  letter-spacing: 0.12em;
}

/* ------------------------------------------------------------------ */
/* Track page                                                          */
/* ------------------------------------------------------------------ */

.track-hero {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: start;
  margin-top: 28px;
}

.track-art-column {
  position: sticky;
  top: calc(var(--header-h) + 24px);
  min-width: 0;
}

.track-art-frame {
  min-width: 0;
}

.track-art {
  width: 100%;
  aspect-ratio: 1;
  border-radius: var(--r-2xl);
  box-shadow: var(--shadow);
}

.track-art-button {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  border-radius: var(--r-2xl);
  background: transparent;
  cursor: zoom-in;
}

.track-art-expand {
  position: absolute;
  top: 14px;
  right: 14px;
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid var(--line-2);
  border-radius: 50%;
  background: rgba(5, 5, 5, 0.55);
  color: var(--text);
  opacity: 0;
  backdrop-filter: blur(12px);
  transition: opacity var(--dur-fast) var(--ease);
}

.track-art-button:hover .track-art-expand,
.track-art-button:focus-visible .track-art-expand {
  opacity: 1;
}

.track-art-caption {
  margin-top: 12px;
  color: var(--text-4);
  font-size: 9.5px;
  letter-spacing: 0.12em;
}

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

.track-kicker-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.track-title {
  margin: 14px 0;
  font-size: clamp(2.4rem, 5vw, 4.6rem);
  font-weight: 600;
  letter-spacing: -0.05em;
  line-height: 0.96;
  overflow-wrap: anywhere;
}

.track-byline {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px;
  color: var(--text-2);
  font-size: 15px;
}

.track-artist {
  color: var(--text);
  font-weight: 500;
}

a.track-artist:hover {
  text-decoration: underline;
  text-decoration-color: var(--line-3);
  text-underline-offset: 4px;
}

.track-byline-sep {
  color: var(--text-4);
}

.track-album {
  color: var(--text-2);
}

.meta-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px 20px;
  margin: 28px 0 8px;
  padding: 18px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.meta-item {
  min-width: 0;
}

.meta-label {
  color: var(--text-3);
  font-size: 10px;
  font-weight: 550;
  letter-spacing: 0.02em;
}

.meta-value {
  margin-top: 4px;
  color: var(--text-2);
  font-size: 12.5px;
  overflow-wrap: anywhere;
}

.meta-grid-compact {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 12px 0;
  padding: 0;
  border: 0;
}

.track-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.action-count {
  padding-left: 8px;
  border-left: 1px solid var(--line-2);
  color: var(--text-3);
  font-size: 10px;
}

.action-like.is-liked {
  border-color: var(--line-3);
  background: rgba(255, 255, 255, 0.09);
}

.action-like.is-liked .icon path {
  fill: currentColor;
}

.track-hint {
  margin-top: 10px;
  color: var(--text-3);
  font-size: 11.5px;
}

.download-progress {
  margin-top: 12px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.03);
}

.download-progress-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 8px;
}

.download-progress-text {
  color: var(--text-3);
  font-size: 11px;
}

.download-cancel {
  min-height: 32px;
  padding: 0 10px;
  font-size: 11px;
}

.uploader-card {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 28px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.025);
  transition:
    border-color var(--dur-fast) var(--ease),
    background-color var(--dur-fast) var(--ease);
}

a.uploader-card:hover {
  border-color: var(--line-2);
  background: rgba(255, 255, 255, 0.045);
}

.uploader-text {
  min-width: 0;
}

.uploader-name {
  font-size: 13.5px;
  font-weight: 550;
}

.uploader-handle {
  color: var(--text-3);
  font-size: 11px;
}

.uploader-arrow {
  width: 16px;
  height: 16px;
  margin-left: auto;
  color: var(--text-3);
}

.uploader-card-empty {
  color: var(--text-2);
}

.track-lower {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: clamp(24px, 4vw, 48px);
  margin-top: clamp(48px, 6vw, 80px);
  padding-top: 32px;
  border-top: 1px solid var(--line);
}

.track-section {
  min-width: 0;
}

.track-section-title {
  margin-bottom: 14px;
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.025em;
}

.prose {
  color: var(--text-2);
  font-size: 13.5px;
  line-height: 1.7;
  white-space: pre-line;
  overflow-wrap: anywhere;
}

.prose-small {
  font-size: 12.5px;
}

.track-section-action {
  margin-top: 14px;
}

.moderation-reason {
  margin: 14px 0;
  padding-left: 12px;
  border-left: 2px solid var(--line-3);
}

.lightbox {
  display: grid;
  place-items: center;
}

.lightbox-image {
  max-width: 100%;
  max-height: 76vh;
  border-radius: 18px;
}

/* ------------------------------------------------------------------ */
/* Library                                                             */
/* ------------------------------------------------------------------ */

.catalog-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 12px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: rgba(255, 255, 255, 0.025);
}

.search-box {
  position: relative;
  display: flex;
  flex: 1 1 320px;
  align-items: center;
}

.search-icon {
  position: absolute;
  left: 14px;
  width: 16px;
  height: 16px;
  color: var(--text-3);
  pointer-events: none;
}

.search-input {
  width: 100%;
  min-height: 46px;
  padding: 0 42px;
  border: 1px solid var(--line-2);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.035);
  color: var(--text);
  font-size: 14px;
  transition:
    border-color var(--dur-fast) var(--ease),
    background-color var(--dur-fast) var(--ease);
}

.search-input::placeholder {
  color: var(--text-4);
}

.search-input:focus {
  border-color: rgba(255, 255, 255, 0.42);
  outline: none;
  background: rgba(255, 255, 255, 0.05);
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.07);
}

.search-input::-webkit-search-cancel-button {
  display: none;
}

.search-clear {
  position: absolute;
  right: 6px;
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--text-3);
}

.search-clear:hover {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
}

.toolbar-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.toolbar-label {
  color: var(--text-3);
  font-size: 10.5px;
}

.toolbar-select {
  min-width: 180px;
  min-height: 46px;
}

.toolbar-reset {
  min-height: 46px;
}

.genre-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 18px 0 8px;
}

.catalog-status {
  margin-top: 14px;
}

.catalog-summary {
  color: var(--text-3);
  font-size: 12px;
}

.catalog-results {
  margin-top: 20px;
}

.load-more-host {
  display: flex;
  justify-content: center;
  margin-top: 32px;
}

/* ------------------------------------------------------------------ */
/* Artist profile                                                      */
/* ------------------------------------------------------------------ */

.profile-head {
  display: flex;
  align-items: flex-start;
  gap: clamp(20px, 3vw, 36px);
  padding: clamp(28px, 4vw, 48px) 0;
  border-bottom: 1px solid var(--line);
}

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

.profile-name {
  margin-top: 10px;
  font-size: clamp(2.2rem, 4.4vw, 4rem);
  font-weight: 600;
  letter-spacing: -0.05em;
  line-height: 0.98;
  overflow-wrap: anywhere;
}

.profile-handle {
  margin-top: 6px;
  color: var(--text-3);
  font-size: 12.5px;
}

.profile-bio {
  max-width: 640px;
  margin-top: 16px;
  color: var(--text-2);
  font-size: 13.5px;
  line-height: 1.7;
  white-space: pre-line;
  overflow-wrap: anywhere;
}

.profile-bio-empty {
  color: var(--text-3);
}

.profile-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 18px;
  color: var(--text-3);
  font-size: 11.5px;
}

.profile-meta-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.profile-actions {
  margin-top: 20px;
}

.artist-section {
  padding-top: clamp(32px, 4vw, 56px);
}

/* ------------------------------------------------------------------ */
/* Account                                                             */
/* ------------------------------------------------------------------ */

.account-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(24px, 4vw, 48px);
  align-items: start;
}

.account-profile {
  padding: clamp(20px, 3vw, 32px);
  border: 1px solid var(--line-2);
  border-radius: var(--r-2xl);
  background: var(--glass);
  box-shadow: var(--shadow-card);
}

.account-profile-head {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.account-profile-titles {
  min-width: 0;
}

.account-name {
  margin-top: 8px;
  font-size: clamp(1.5rem, 2.4vw, 2rem);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1.1;
  overflow-wrap: anywhere;
}

.account-joined {
  margin-top: 4px;
  color: var(--text-3);
  font-size: 11.5px;
}

.account-profile-titles .role-chip {
  margin-top: 10px;
}

.account-profile-form {
  margin-top: 24px;
}

.account-form-actions {
  display: flex;
  justify-content: flex-end;
}

.account-session {
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.account-session-text {
  margin-top: 8px;
  color: var(--text-3);
  font-size: 11.5px;
  line-height: 1.6;
}

.account-logout {
  margin-top: 14px;
}

.account-uploads {
  min-width: 0;
}

.uploads-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 16px 0;
}

.uploads-summary {
  color: var(--text-3);
  font-size: 11.5px;
}

.uploads-list {
  margin-top: 8px;
}

.upload-row {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 14px 0;
  border-top: 1px solid var(--line);
}

.upload-cover {
  width: 64px;
  flex: none;
  border-radius: 12px;
}

.upload-row-main {
  flex: 1;
  min-width: 0;
}

.upload-row-title-line {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.upload-row-title {
  font-size: 14.5px;
  font-weight: 550;
  letter-spacing: -0.015em;
  overflow-wrap: anywhere;
}

a.upload-row-title:hover {
  text-decoration: underline;
  text-decoration-color: var(--line-3);
  text-underline-offset: 3px;
}

.upload-row-artist {
  margin-top: 2px;
  color: var(--text-2);
  font-size: 12px;
}

.upload-row-meta {
  margin-top: 4px;
  color: var(--text-4);
  font-size: 10px;
}

.upload-row-reason {
  margin-top: 6px;
  color: var(--text-2);
  font-size: 11.5px;
}

.upload-row-note {
  margin-top: 4px;
  color: var(--text-3);
  font-size: 11px;
}

.upload-row-open {
  display: grid;
  width: 36px;
  height: 36px;
  flex: none;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--text-3);
}

.upload-row-open:hover {
  border-color: var(--line-2);
  color: var(--text);
}

/* ------------------------------------------------------------------ */
/* Upload                                                              */
/* ------------------------------------------------------------------ */

.upload-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: clamp(24px, 4vw, 48px);
  align-items: start;
}

.upload-card {
  padding: clamp(20px, 3vw, 36px);
  border: 1px solid var(--line-2);
  border-radius: var(--r-2xl);
  background: var(--glass);
  box-shadow: var(--shadow-card);
}

.upload-aside {
  position: sticky;
  top: calc(var(--header-h) + 20px);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.upload-info {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: rgba(255, 255, 255, 0.022);
}

.upload-info-title {
  margin-top: 10px;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.upload-info-text {
  margin-top: 8px;
  color: var(--text-2);
  font-size: 12.5px;
  line-height: 1.65;
}

.upload-req-list {
  margin-top: 10px;
}

.upload-req-list li {
  padding: 7px 0;
  border-top: 1px solid var(--line);
  color: var(--text-2);
  font-size: 12px;
}

.upload-pipeline {
  margin-top: 10px;
}

.upload-pipeline-item {
  display: flex;
  gap: 12px;
  padding: 9px 0;
  border-top: 1px solid var(--line);
}

.upload-pipeline-number {
  color: var(--text-4);
  font-size: 9.5px;
}

.upload-pipeline-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.upload-pipeline-title {
  font-size: 12.5px;
  font-weight: 550;
}

.upload-pipeline-detail {
  color: var(--text-3);
  font-size: 11px;
  line-height: 1.5;
}

.upload-fieldset {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.upload-fieldset:disabled {
  opacity: 0.62;
}

.dropzone {
  display: flex;
  min-height: 200px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 32px 24px;
  border: 1px dashed var(--line-3);
  border-radius: var(--r-lg);
  background: rgba(255, 255, 255, 0.022);
  text-align: center;
  cursor: pointer;
  transition:
    border-color var(--dur-fast) var(--ease),
    background-color var(--dur-fast) var(--ease);
}

.dropzone:hover,
.dropzone.is-dragover {
  border-color: rgba(255, 255, 255, 0.5);
  background: rgba(255, 255, 255, 0.05);
}

.field-file:focus-within .dropzone {
  outline: 2px solid rgba(255, 255, 255, 0.85);
  outline-offset: 3px;
}

.dropzone-icon {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  margin-bottom: 4px;
  border: 1px solid var(--line-2);
  border-radius: 50%;
  color: var(--text-2);
}

.dropzone-title {
  font-size: 15px;
  font-weight: 550;
}

.dropzone-hint {
  color: var(--text-3);
  font-size: 11.5px;
}

.dropzone-or {
  color: var(--text-4);
  font-size: 10.5px;
}

.selected-file {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--line-2);
  border-radius: var(--r-md);
  background: rgba(255, 255, 255, 0.035);
}

.selected-file-icon {
  display: grid;
  width: 40px;
  height: 40px;
  flex: none;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--text-2);
}

.selected-file-text {
  flex: 1;
  min-width: 0;
}

.selected-file-name {
  overflow: hidden;
  font-size: 13px;
  font-weight: 550;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.selected-file-size {
  color: var(--text-3);
  font-size: 10.5px;
}

.selected-file-actions {
  display: flex;
  gap: 4px;
  flex: none;
}

.selected-file-player {
  margin-top: 12px;
}

.cover-picker {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.cover-preview {
  display: flex;
  align-items: center;
  gap: 10px;
}

.cover-preview-image {
  width: 72px;
  height: 72px;
  border: 1px solid var(--line-2);
  border-radius: 12px;
  object-fit: cover;
}

.license-description {
  margin-top: -8px;
  margin-bottom: 20px;
  color: var(--text-3);
  font-size: 11.5px;
}

.upload-form-actions {
  margin-top: 8px;
}

.upload-form-note {
  margin-top: 10px;
  color: var(--text-3);
  font-size: 11px;
  text-align: center;
}

.upload-progress {
  margin-top: 20px;
  padding: 16px;
  border: 1px solid var(--line-2);
  border-radius: var(--r-md);
  background: rgba(255, 255, 255, 0.035);
}

.upload-progress-text {
  margin-top: 8px;
  color: var(--text-2);
  font-size: 11.5px;
}

.upload-progress .btn {
  margin-top: 10px;
}

.upload-success {
  max-width: 760px;
  margin: clamp(32px, 6vw, 72px) auto;
  padding: clamp(28px, 5vw, 56px);
  border: 1px solid var(--line-2);
  border-radius: var(--r-2xl);
  background: var(--glass);
  box-shadow: var(--shadow);
  text-align: center;
}

.upload-success-icon {
  display: grid;
  width: 64px;
  height: 64px;
  margin: 0 auto 18px;
  place-items: center;
  border: 1px solid var(--line-2);
  border-radius: 50%;
  color: var(--text);
}

.upload-success-icon .icon {
  width: 28px;
  height: 28px;
}

.upload-success-title {
  margin-top: 12px;
  font-size: clamp(1.8rem, 3.4vw, 2.8rem);
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1.05;
}

.upload-success-text {
  max-width: 520px;
  margin: 14px auto 0;
  color: var(--text-2);
  font-size: 13px;
  line-height: 1.65;
}

.upload-success-track {
  margin-top: 24px;
  padding: 18px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.upload-success-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.upload-success-name {
  font-size: 16px;
  font-weight: 550;
}

.upload-success-artist {
  color: var(--text-2);
  font-size: 12.5px;
}

.upload-id {
  margin-top: 10px;
  color: var(--text-4);
  font-size: 9.5px;
  letter-spacing: 0.08em;
}

.upload-success-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 24px;
}

/* ------------------------------------------------------------------ */
/* Progress bars                                                       */
/* ------------------------------------------------------------------ */

.download-progress-bar,
.upload-progress-bar,
.admin-audio-progress {
  width: 100%;
  height: 4px;
  appearance: none;
  -webkit-appearance: none;
  border: 0;
  border-radius: 2px;
  background: transparent;
}

.download-progress-bar::-webkit-progress-bar,
.upload-progress-bar::-webkit-progress-bar,
.admin-audio-progress::-webkit-progress-bar {
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.14);
}

.download-progress-bar::-webkit-progress-value,
.upload-progress-bar::-webkit-progress-value,
.admin-audio-progress::-webkit-progress-value {
  border-radius: 2px;
  background: var(--white);
}

.download-progress-bar::-moz-progress-bar,
.upload-progress-bar::-moz-progress-bar,
.admin-audio-progress::-moz-progress-bar {
  border-radius: 2px;
  background: var(--white);
}

/* ------------------------------------------------------------------ */
/* Admin                                                               */
/* ------------------------------------------------------------------ */

.admin-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 32px;
  padding: clamp(36px, 5vw, 72px) 0 24px;
  border-bottom: 1px solid var(--line);
}

.admin-head-copy {
  max-width: 820px;
}

.admin-user {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: none;
  padding: 8px 12px 8px 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
}

.admin-user-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.admin-user-name {
  font-size: 12px;
  font-weight: 550;
}

.admin-user-role {
  color: var(--text-3);
  font-size: 9.5px;
}

.admin-tabs {
  position: sticky;
  top: var(--header-h);
  z-index: 20;
  display: flex;
  gap: 4px;
  overflow-x: auto;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  background: rgba(5, 5, 5, 0.82);
  backdrop-filter: blur(16px);
  scrollbar-width: none;
}

.admin-tabs::-webkit-scrollbar {
  display: none;
}

.admin-tab {
  min-height: 40px;
  padding: 0 16px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: transparent;
  color: var(--text-3);
  font-size: 12.5px;
  white-space: nowrap;
  transition:
    background-color var(--dur-fast) var(--ease),
    color var(--dur-fast) var(--ease);
}

.admin-tab:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.05);
}

.admin-tab[aria-selected='true'] {
  background: var(--white);
  color: #050505;
}

.admin-panel {
  padding-top: 28px;
}

.admin-panel-section {
  min-width: 0;
}

.admin-panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 16px;
}

.admin-panel-head-text {
  min-width: 0;
}

.admin-panel-title {
  margin-top: 6px;
  font-size: clamp(1.5rem, 2.6vw, 2.1rem);
  font-weight: 600;
  letter-spacing: -0.035em;
}

.admin-summary {
  margin-top: 6px;
  color: var(--text-3);
  font-size: 11.5px;
}

.admin-panel-note {
  margin-bottom: 20px;
  padding-left: 12px;
  border-left: 2px solid var(--line-2);
  color: var(--text-3);
  font-size: 11.5px;
  line-height: 1.6;
}

.admin-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.admin-card {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  background: rgba(255, 255, 255, 0.022);
}

.admin-card-top {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.admin-cover {
  width: 104px;
  flex: none;
  border-radius: 18px;
}

.admin-card-main {
  flex: 1;
  min-width: 0;
}

.admin-card-title-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.admin-card-title {
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -0.025em;
  overflow-wrap: anywhere;
}

.admin-card-artist {
  margin-top: 4px;
  color: var(--text-2);
  font-size: 12.5px;
}

.admin-uploader {
  color: var(--text-2);
  text-decoration: underline;
  text-decoration-color: var(--line-3);
  text-underline-offset: 3px;
}

.admin-card-meta {
  margin-top: 6px;
  color: var(--text-4);
  font-size: 10px;
}

.admin-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}

.admin-tag {
  padding: 4px 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--text-3);
  font-size: 10px;
}

.admin-review {
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.admin-review-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.admin-review-endpoint {
  color: var(--text-4);
  font-size: 9px;
  letter-spacing: 0.08em;
}

.admin-review-host {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.admin-hint {
  color: var(--text-3);
  font-size: 11px;
  line-height: 1.5;
}

.admin-audio-loading {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.025);
}

.admin-audio-text {
  color: var(--text-3);
  font-size: 11px;
}

.admin-audio-loading .btn {
  align-self: flex-start;
  min-height: 32px;
  padding: 0 10px;
  font-size: 11px;
}

.admin-inline-error {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--line-2);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.035);
}

.admin-inline-error > .icon {
  margin-top: 2px;
  color: var(--text-2);
}

.admin-inline-error-text {
  flex: 1;
  min-width: 0;
}

.admin-inline-error-title {
  font-size: 12px;
  font-weight: 550;
}

.admin-inline-error-message {
  margin-top: 2px;
  color: var(--text-2);
  font-size: 11.5px;
}

.admin-inline-error-code {
  margin-top: 4px;
  color: var(--text-4);
  font-size: 9.5px;
}

.admin-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.admin-filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 12px 0 20px;
}

.report-card {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: rgba(255, 255, 255, 0.022);
}

.report-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.report-reason {
  color: var(--text-2);
  font-size: 11px;
  font-weight: 550;
}

.report-date {
  margin-left: auto;
  color: var(--text-4);
  font-size: 9.5px;
}

.report-title-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 10px;
}

.report-title {
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.report-track-link {
  color: var(--text);
}

a.report-track-link:hover {
  text-decoration: underline;
  text-decoration-color: var(--line-3);
  text-underline-offset: 3px;
}

.report-meta {
  margin-top: 4px;
  color: var(--text-4);
  font-size: 10px;
  overflow-wrap: anywhere;
}

.report-details {
  margin-top: 12px;
  color: var(--text-2);
  font-size: 12.5px;
  line-height: 1.6;
  white-space: pre-line;
  overflow-wrap: anywhere;
}

.report-resolution {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.report-resolution-note {
  margin-top: 4px;
  color: var(--text-2);
  font-size: 12px;
}

.report-resolution-date {
  margin-top: 4px;
  color: var(--text-4);
  font-size: 9.5px;
}

.report-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 14px;
}

.report-context {
  margin-bottom: 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.report-context-title {
  margin-top: 4px;
  font-size: 15px;
  font-weight: 550;
}

.report-context-meta {
  margin-top: 2px;
  color: var(--text-3);
  font-size: 11px;
}

.admin-warning {
  margin-bottom: 16px;
  padding: 10px 12px;
  border: 1px solid var(--line-2);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-2);
  font-size: 11.5px;
  line-height: 1.55;
}

.stats-groups {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.metric-group {
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.metric-group-title {
  margin-top: 6px;
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.025em;
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 10px;
  margin-top: 14px;
}

.metric {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.022);
}

.metric-label {
  color: var(--text-3);
  font-size: 10.5px;
}

.metric-value {
  font-size: 26px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.metric-hint {
  color: var(--text-4);
  font-size: 9.5px;
}

.audit-list {
  display: flex;
  flex-direction: column;
}

.audit-row {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 18px;
  padding: 14px 0;
  border-top: 1px solid var(--line);
}

.audit-time {
  color: var(--text-4);
  font-size: 10px;
}

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

.audit-title-row {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 10px;
}

.audit-action {
  color: var(--text);
  font-size: 11.5px;
  letter-spacing: 0.02em;
}

.audit-entity {
  color: var(--text-4);
  font-size: 9.5px;
  overflow-wrap: anywhere;
}

.audit-meta {
  margin-top: 3px;
  color: var(--text-3);
  font-size: 11px;
}

.audit-details {
  margin-top: 8px;
}

.audit-details summary {
  width: fit-content;
  color: var(--text-3);
  font-size: 10.5px;
  cursor: pointer;
}

.audit-details summary:hover {
  color: var(--text);
}

.audit-json {
  max-height: 320px;
  margin-top: 8px;
  padding: 12px;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #0a0a0b;
  color: var(--text-2);
  font-size: 10px;
  line-height: 1.5;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.audit-empty {
  margin-top: 6px;
  color: var(--text-4);
  font-size: 10.5px;
}

/* ------------------------------------------------------------------ */
/* Legal                                                               */
/* ------------------------------------------------------------------ */

.legal-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: clamp(32px, 5vw, 80px);
  align-items: start;
  padding: 32px 0 80px;
}

.legal-article {
  max-width: 780px;
  min-width: 0;
}

.legal-title {
  margin-top: 12px;
}

.legal-summary {
  max-width: 680px;
  margin-top: 18px;
  color: var(--text-2);
  font-size: 15px;
  line-height: 1.7;
}

.legal-version {
  margin-top: 14px;
  color: var(--text-3);
  font-size: 9.5px;
  letter-spacing: 0.01em;
}

.legal-section {
  margin-top: 36px;
}

.legal-heading {
  margin-bottom: 12px;
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.025em;
}

.legal-paragraph {
  margin-top: 10px;
  color: var(--text-2);
  font-size: 13.5px;
  line-height: 1.75;
}

.legal-list {
  margin-top: 10px;
  padding-left: 18px;
  list-style: disc;
}

.legal-list li {
  margin-top: 6px;
  color: var(--text-2);
  font-size: 13.5px;
  line-height: 1.7;
}

.legal-contact-line {
  margin-top: 4px;
  font-size: 13.5px;
}

.legal-disclaimer {
  margin-top: 40px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  color: var(--text-3);
  font-size: 11px;
  line-height: 1.6;
}

.legal-sidebar {
  position: sticky;
  top: calc(var(--header-h) + 24px);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.legal-nav,
.legal-contact {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: rgba(255, 255, 255, 0.022);
}

.legal-nav-link {
  display: block;
  padding: 8px 0;
  border-top: 1px solid var(--line);
  color: var(--text-2);
  font-size: 12.5px;
}

.legal-nav-link:first-of-type {
  margin-top: 10px;
}

.legal-nav-link:hover {
  color: var(--text);
}

.legal-nav-link[aria-current='page'] {
  color: var(--text);
}

.legal-contact-label {
  margin-top: 12px;
  color: var(--text-3);
  font-size: 10.5px;
}

.legal-contact-value {
  margin-top: 2px;
  font-size: 12.5px;
}

.legal-contact-note {
  margin-top: 14px;
  color: var(--text-3);
  font-size: 10.5px;
  line-height: 1.55;
}

/* ------------------------------------------------------------------ */
/* 404                                                                 */
/* ------------------------------------------------------------------ */

.page-notfound {
  display: grid;
  min-height: 62vh;
  place-items: center;
  padding-block: 48px;
}

.notfound-inner {
  max-width: 720px;
  text-align: center;
}

.notfound-code {
  margin-top: 12px;
  color: transparent;
  font-size: clamp(5rem, 18vw, 13rem);
  font-weight: 600;
  letter-spacing: -0.08em;
  line-height: 0.8;
  -webkit-text-stroke: 1px rgba(255, 255, 255, 0.22);
}

.notfound-title {
  margin-top: 18px;
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 600;
  letter-spacing: -0.045em;
}

.notfound-text {
  max-width: 520px;
  margin: 14px auto 0;
  color: var(--text-2);
  font-size: 13.5px;
  line-height: 1.65;
}

.notfound-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 26px;
}

.notfound-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 18px;
  margin-top: 28px;
}

/* ------------------------------------------------------------------ */
/* Footer                                                              */
/* ------------------------------------------------------------------ */

.site-footer {
  margin-top: clamp(60px, 8vw, 120px);
  padding: clamp(40px, 5vw, 72px) 0 24px;
  border-top: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.012);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, minmax(0, 0.7fr));
  gap: clamp(24px, 4vw, 56px);
}

.footer-brand {
  min-width: 0;
}

.footer-tagline {
  max-width: 320px;
  margin-top: 16px;
  color: var(--text-3);
  font-size: 12px;
  line-height: 1.6;
}

.connection-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: 18px;
  padding: 6px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  color: var(--text-3);
  font-size: 10.5px;
  transition:
    border-color var(--dur-fast) var(--ease),
    color var(--dur-fast) var(--ease);
}

.connection-chip:hover {
  border-color: var(--line-2);
  color: var(--text-2);
}

.connection-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--text-4);
}

.connection-chip[data-state='online'] .connection-dot {
  background: var(--white);
}

.connection-chip[data-state='offline'] .connection-dot {
  background: transparent;
  box-shadow: inset 0 0 0 1px var(--text-3);
}

.connection-chip[data-state='degraded'] .connection-dot {
  background: transparent;
  box-shadow: inset 0 0 0 1px var(--white);
}

.footer-col {
  min-width: 0;
}

.footer-heading {
  color: var(--text-3);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.footer-link {
  display: block;
  padding: 5px 0;
  color: var(--text-2);
  font-size: 12px;
}

.footer-link:hover {
  color: var(--text);
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 40px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  color: var(--text-3);
  font-size: 10px;
  letter-spacing: 0.01em;
}

.footer-build {
  color: var(--text-4);
}

/* ------------------------------------------------------------------ */
/* Toasts                                                              */
/* ------------------------------------------------------------------ */

.toast-region {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 80;
  display: flex;
  width: min(360px, calc(100vw - 40px));
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}

.toast {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--line-2);
  border-radius: 18px;
  background: rgba(12, 12, 12, 0.95);
  box-shadow: var(--shadow-card);
  backdrop-filter: blur(20px);
  pointer-events: auto;
  animation: toast-in var(--dur) var(--ease) both;
}

.toast.is-leaving {
  opacity: 0;
  transform: translateY(8px);
  transition:
    opacity var(--dur-fast) var(--ease),
    transform var(--dur-fast) var(--ease);
}

@keyframes toast-in {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.toast-icon {
  display: grid;
  width: 32px;
  height: 32px;
  flex: none;
  place-items: center;
  border: 1px solid var(--line-2);
  border-radius: 50%;
  color: var(--text-2);
}

.toast-icon .icon {
  width: 15px;
  height: 15px;
}

.toast-text {
  flex: 1;
  min-width: 0;
}

.toast-title {
  font-size: 12.5px;
  font-weight: 550;
}

.toast-message {
  margin-top: 2px;
  color: var(--text-2);
  font-size: 11.5px;
  line-height: 1.5;
}

.toast .icon-btn {
  width: 28px;
  height: 28px;
  margin: -4px -4px 0 0;
}

/* ------------------------------------------------------------------ */
/* Modal                                                               */
/* ------------------------------------------------------------------ */

body.dialog-open {
  overflow: hidden;
}

dialog.modal {
  width: 100%;
  max-width: min(640px, calc(100vw - 32px));
  max-height: 88vh;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--text);
}

dialog.modal::backdrop {
  background: rgba(0, 0, 0, 0.68);
  backdrop-filter: blur(4px);
}

dialog.modal[open] {
  animation: modal-in var(--dur) var(--ease) both;
}

@keyframes modal-in {
  from {
    opacity: 0;
    transform: translateY(10px) scale(0.99);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.modal-sm {
  max-width: min(460px, calc(100vw - 32px));
}

.modal-lg {
  max-width: min(980px, calc(100vw - 32px));
}

.modal-card {
  display: flex;
  max-height: 88vh;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--line-2);
  border-radius: var(--r-xl);
  background: #09090a;
  box-shadow: var(--shadow);
}

.modal-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 24px;
  border-bottom: 1px solid var(--line);
}

.modal-head-text {
  min-width: 0;
}

.modal-title {
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.modal-description {
  margin-top: 6px;
  color: var(--text-2);
  font-size: 12px;
  line-height: 1.55;
}

.modal-body {
  padding: 24px;
  overflow: auto;
}

.modal-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
  padding: 16px 24px;
  border-top: 1px solid var(--line);
}

.modal-text {
  color: var(--text-2);
  font-size: 13.5px;
  line-height: 1.65;
}

/* ------------------------------------------------------------------ */
/* Responsive                                                          */
/* ------------------------------------------------------------------ */

@media (max-width: 1200px) {
  .track-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .hero-title {
    font-size: clamp(2.8rem, 6.4vw, 5.6rem);
  }
}

@media (max-width: 1100px) {
  .app-section {
    grid-template-columns: 1fr;
  }

  .app-preview-wrap {
    order: 2;
  }

  .app-copy {
    order: 1;
  }

  .stats-groups {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 980px) {
  .desktop-nav {
    display: none;
  }

  .icon-btn.menu-toggle {
    display: inline-grid;
  }

  .hero {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .hero-visual {
    min-height: auto;
    overflow: hidden;
  }

  .hero-grid-lines {
    inset: 4% 0;
  }

  .hero-feature {
    width: min(100%, 560px);
  }

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

  .track-art-column {
    position: static;
    max-width: 560px;
  }

  .auth-layout {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .auth-card {
    max-width: 640px;
    justify-self: start;
  }

  .auth-aside {
    max-width: 640px;
  }

  .account-grid,
  .upload-grid {
    grid-template-columns: 1fr;
  }

  .upload-aside {
    position: static;
  }

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

  .legal-sidebar {
    position: static;
  }

  .legal-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
  }

  .legal-nav .kicker {
    width: 100%;
  }

  .legal-nav-link {
    padding: 8px 12px;
    border: 1px solid var(--line);
    border-radius: 999px;
  }

  .legal-nav-link:first-of-type {
    margin-top: 0;
  }
}

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

  .manifesto-grid {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .manifesto-item {
    padding: 20px 0;
  }

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

  .api-panel {
    flex-direction: column;
    align-items: flex-start;
  }

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

  .footer-brand {
    grid-column: 1 / -1;
  }

  .admin-head {
    flex-direction: column;
  }

  .admin-user {
    align-self: flex-start;
  }
}

@media (max-width: 760px) {
  :root {
    --header-h: 64px;
  }

  .page-title {
    font-size: clamp(2.1rem, 8vw, 3.2rem);
  }

  .hero-title {
    font-size: clamp(2.6rem, 11vw, 4.4rem);
  }

  .hero-line-last {
    padding-left: 0.3em;
  }

  .section-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }

  .section-head-actions {
    width: 100%;
    justify-content: space-between;
  }

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

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

  .genre-row {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 6px;
    scrollbar-width: none;
  }

  .genre-row::-webkit-scrollbar {
    display: none;
  }

  .genre-chip {
    flex: none;
  }

  .catalog-toolbar {
    align-items: stretch;
  }

  .toolbar-field {
    flex: 1 1 180px;
  }

  .toolbar-select {
    width: 100%;
    min-width: 0;
  }

  .toolbar-reset {
    flex: 1 1 100%;
  }

  .admin-card-top {
    flex-direction: column;
  }

  .admin-cover {
    width: 132px;
  }

  .audit-row {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 560px) {
  .hero-line {
    white-space: normal;
  }

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

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

  .hero-actions .btn {
    width: 100%;
  }

  .hero-download {
    width: 100%;
  }

  .hero-facts {
    gap: 12px 20px;
  }

  .profile-head {
    flex-direction: column;
  }

  .account-profile-head {
    flex-direction: column;
  }

  .upload-row {
    flex-wrap: wrap;
  }

  .upload-row-open {
    margin-left: auto;
  }

  .admin-actions {
    justify-content: stretch;
  }

  .admin-actions .btn {
    flex: 1 1 100%;
  }

  .admin-panel-head {
    flex-direction: column;
  }

  .admin-panel-head .btn {
    align-self: flex-start;
  }

  .modal-head,
  .modal-body,
  .modal-actions {
    padding-inline: 18px;
  }

  .toast-region {
    right: 12px;
    bottom: 12px;
    width: calc(100vw - 24px);
  }

  .connection-banner {
    flex-wrap: wrap;
  }

  .connection-banner-text {
    flex-basis: calc(100% - 44px);
  }

  .connection-retry {
    margin-left: 40px;
  }
}

@media (max-width: 420px) {
  .header-inner {
    gap: 12px;
  }

  .auth-slot .auth-chip-text {
    display: none;
  }

  .auth-chip {
    padding: 4px;
  }

  .page-intro {
    padding-top: 32px;
  }

  .hero {
    padding-top: 36px;
  }

  .hero-title {
    font-size: clamp(2.3rem, 12vw, 3.4rem);
  }

  .hero-lede {
    font-size: 14px;
  }

  .hero-feature {
    padding: 14px;
  }

  .hero-track-title {
    font-size: 18px;
  }

  .track-title {
    font-size: clamp(2rem, 10vw, 3rem);
  }

  .player {
    padding: 12px;
  }

  .player-toggle {
    width: 46px;
    height: 46px;
  }

  .player-row {
    gap: 10px;
  }

  .meta-grid {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }

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

  .footer-brand {
    grid-column: auto;
  }

  .notfound-links {
    flex-direction: column;
    align-items: center;
    gap: 10px;
  }
}

/* ------------------------------------------------------------------ */
/* Reduced motion                                                      */
/* ------------------------------------------------------------------ */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }

  .skeleton::after {
    display: none;
  }

  .track-card {
    animation: none;
  }

  .boot-mark {
    animation: none;
  }

  .hero-bloom {
    filter: none;
  }
}
