/* Вид как у студии Luvi (/v3): токены, шрифты, кнопки и плашки взяты из public/v3 репо MusicAI.
   Тема одна, тёмная, как в самом Luvi. */
@import url(assets/fonts/fonts.css);

:root {
  --bg: #0C0B10;
  --surface-1: #15141B;
  --surface-2: #1C1B23;
  --surface-3: #24232C;
  --text-1: #F7F5F1;
  --text-2: #CFCCD6;
  --text-3: #A09CAA;
  --text-ph: #6E6A79;
  --border-1: rgba(255, 255, 255, .10);
  --border-2: rgba(255, 255, 255, .06);
  --accent: #FD429C;
  --accent-soft: rgba(253, 66, 156, .14);
  --grad: linear-gradient(115deg, #FF8A18 0%, #FB4595 62%, #E83B8A 100%);
  --success: #2FBE7A;
  --warning: #F5A65C;
  --error: #FF6B5E;
  --success-soft: rgba(47, 190, 122, .16);
  --warning-soft: rgba(245, 166, 92, .16);
  --error-soft: rgba(255, 107, 94, .14);
  --r-md: 12px; --r-lg: 16px; --r-full: 999px;
  --font-ui: "Mulish", -apple-system, "Segoe UI", sans-serif;
  --font-head: "Onest", "Mulish", sans-serif;
  --ease-out: cubic-bezier(.23, 1, .32, 1);
  --ring: 0 0 0 3px rgba(253, 66, 156, .22);
  color-scheme: dark;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text-1);
  font: 400 14px/1.5 var(--font-ui);
  -webkit-font-smoothing: antialiased;
}
[hidden] { display: none !important; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
:focus-visible { outline: none; box-shadow: var(--ring); }

.page { max-width: 760px; margin: 0 auto; padding: 32px 16px 64px; }
.top { display: flex; align-items: center; margin-bottom: 40px; }
.top img { height: 28px; width: auto; display: block; }
.head { margin-bottom: 24px; }
h1 { font: 800 28px/1.15 var(--font-head); letter-spacing: -.02em; margin: 0 0 4px; }
h1 a { color: inherit; }
h1 a:hover { text-decoration: none; }
h2 { font: 700 20px/1.2 var(--font-head); letter-spacing: -.01em; margin: 40px 0 12px; }
h3 { font: 700 11px/1 var(--font-ui); letter-spacing: .1em; text-transform: uppercase; color: var(--text-3); margin: 32px 0 12px; }
.muted { color: var(--text-2); margin: 0; }

.card { background: var(--surface-1); border: 1px solid var(--border-2); border-radius: var(--r-lg); padding: 24px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  height: 44px; padding: 0 20px; border: 1px solid transparent; border-radius: var(--r-full);
  background: var(--grad); color: #fff;
  font: 600 14px/1 var(--font-ui); white-space: nowrap; cursor: pointer;
  transition: transform 120ms var(--ease-out), filter 160ms;
}
.btn:hover { filter: brightness(1.08); text-decoration: none; }
.btn:active { transform: scale(.97); }

.login { display: grid; gap: 6px; max-width: 320px; }
.login label { font: 600 12px/1.35 var(--font-ui); color: var(--text-3); }
.login input {
  width: 100%; height: 44px; padding: 0 14px;
  border-radius: var(--r-md); background: var(--surface-2); border: 1px solid var(--border-1);
  color: var(--text-1); font: 400 15px/1.4 var(--font-ui); transition: border-color 160ms;
}
.login input:focus { border-color: var(--accent); outline: none; box-shadow: var(--ring); }
.login .btn { margin-top: 12px; justify-self: start; }
.login .error:empty { display: none; }
.error { color: var(--error); margin: 0; min-height: 1.4em; font-size: 13px; }

.drop {
  display: grid; justify-items: center; gap: 4px; text-align: center;
  padding: 40px 16px; cursor: pointer;
  background: var(--surface-1); border: 1px dashed var(--border-1); border-radius: var(--r-lg);
  transition: border-color 160ms, background 160ms;
}
.drop:hover { border-color: var(--text-3); }
.drop.over { border-color: var(--accent); background: var(--accent-soft); }
.drop input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.drop:focus-within { box-shadow: var(--ring); }
.drop-title { font: 700 18px/1.3 var(--font-head); }
.drop .muted { color: var(--text-3); font-size: 13px; }
.drop .btn { margin-top: 12px; }

.uploads, .list { list-style: none; margin: 0; padding: 0; }
.uploads li {
  margin-top: 8px; padding: 12px 14px;
  background: var(--surface-2); border: 1px solid var(--border-1); border-radius: var(--r-md);
}
.bar { height: 4px; margin-top: 8px; background: var(--surface-3); border-radius: 2px; overflow: hidden; }
.bar span { display: block; height: 100%; background: var(--grad); transition: width .2s; }

.list li + li { margin-top: 8px; }
.row {
  display: flex; align-items: center; gap: 16px; min-height: 64px; padding: 12px 16px;
  background: var(--surface-1); border: 1px solid var(--border-2); border-radius: var(--r-md);
  color: inherit; transition: border-color 160ms, background 160ms;
}
.row:hover { text-decoration: none; border-color: var(--border-1); background: var(--surface-2); }
.row-main { flex: 1; min-width: 0; }
.row-name { font: 600 14px/1.3 var(--font-ui); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.row-meta { margin-top: 2px; font-size: 12px; color: var(--text-3); font-variant-numeric: tabular-nums; }
.empty {
  padding: 24px; text-align: center; color: var(--text-3);
  background: var(--surface-1); border: 1px solid var(--border-2); border-radius: var(--r-md);
}

/* Плашки статуса — «pill» студии Luvi, чуть крупнее для списка. */
.chip {
  flex: none; display: inline-flex; align-items: center; height: 26px; padding: 0 11px;
  border-radius: var(--r-full); font: 600 12px/1 var(--font-ui); white-space: nowrap;
}
.green { color: var(--success); background: var(--success-soft); }
.yellow { color: var(--warning); background: var(--warning-soft); }
.red { color: var(--error); background: var(--error-soft); }
.grey { color: var(--text-2); background: var(--surface-3); }
.pulse { animation: pulse 1.6s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .55; } }

.back { display: inline-flex; align-items: center; min-height: 44px; margin-bottom: 8px; color: var(--text-2); font-weight: 600; }
.back:hover { color: var(--text-1); text-decoration: none; }
.verdict { padding: 24px; border-radius: var(--r-lg); }
.verdict h2 { margin: 0 0 6px; font: 800 24px/1.2 var(--font-head); color: inherit; }
.verdict p { margin: 0; color: var(--text-1); font-size: 15px; }
.verdict.grey h2 { color: var(--text-1); }
.file { margin: 16px 0 0; color: var(--text-3); font-size: 13px; }

.match { padding: 16px; background: var(--surface-1); border: 1px solid var(--border-2); border-radius: var(--r-md); }
.match + .match { margin-top: 8px; }
.match-head { display: flex; gap: 12px; align-items: center; justify-content: space-between; }
.match-title { font: 700 15px/1.3 var(--font-head); }
.match dl { display: grid; grid-template-columns: max-content 1fr; gap: 6px 16px; margin: 14px 0 0; }
.match dt { color: var(--text-3); }
.match dd { margin: 0; color: var(--text-2); font-variant-numeric: tabular-nums; }
.facts {
  margin: 0; padding: 0 16px; list-style: none;
  background: var(--surface-1); border: 1px solid var(--border-2); border-radius: var(--r-md);
}
.facts li { padding: 12px 0; color: var(--text-2); }
.facts li + li { border-top: 1px solid var(--border-2); }

@media (max-width: 560px) {
  .page { padding-top: 20px; }
  .top { margin-bottom: 28px; }
  .row { flex-wrap: wrap; gap: 8px; }
  .match-head { flex-direction: column; align-items: flex-start; gap: 6px; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}
