@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700;800&family=Unbounded:wght@500;600;700;800&display=swap');

:root {
  --bg: #fff8f1;
  --bg-2: #fdf0e4;
  --card: #ffffff;
  --ink: #2b2140;
  --ink-2: #6b6380;
  --ink-3: #a59fb5;
  --line: #f0e6dc;
  --coral: #ff6b5b;
  --peach: #ffb36b;
  --lav: #8b7cf6;
  --lav-soft: #efeaff;
  --mint: #2fc59a;
  --mint-soft: #e2f8f0;
  --sun: #ffd166;
  --rose-soft: #ffe9e5;
  --grad: linear-gradient(135deg, #ff6b5b 0%, #ff8f6b 45%, #ffb36b 100%);
  --grad-lav: linear-gradient(135deg, #8b7cf6 0%, #b38bfa 100%);
  --shadow: 0 10px 30px -12px rgba(76, 45, 30, .18);
  --shadow-sm: 0 4px 14px -6px rgba(76, 45, 30, .15);
  --r: 20px;
  --r-sm: 12px;
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  font-family: 'Manrope', system-ui, sans-serif;
  color: var(--ink);
  background:
    radial-gradient(1200px 500px at 10% -10%, #ffe3d3 0%, transparent 60%),
    radial-gradient(900px 500px at 100% 0%, #ece6ff 0%, transparent 55%),
    var(--bg);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, .display { font-family: 'Unbounded', 'Manrope', sans-serif; letter-spacing: -.01em; margin: 0; }
a { color: inherit; }
button { font: inherit; cursor: pointer; }
input, textarea, select { font: inherit; color: inherit; }
.muted { color: var(--ink-2); }
.tiny { font-size: 12px; }
.hidden { display: none !important; }

.container { max-width: 1380px; margin: 0 auto; padding: 0 24px; }
@media (max-width: 768px) {
  .container { padding: 0 14px; }
}

/* ---------- кнопки ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 0; border-radius: 999px; padding: 11px 20px; font-weight: 700; font-size: 14px;
  background: var(--card); color: var(--ink); box-shadow: var(--shadow-sm);
  transition: transform .15s ease, box-shadow .15s ease, background .15s; text-decoration: none; white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); box-shadow: var(--shadow); }
.btn:active { transform: translateY(0); }
.btn:disabled { opacity: .55; cursor: not-allowed; transform: none; }
.btn-primary { background: var(--grad); color: #fff; }
.btn-lav { background: var(--grad-lav); color: #fff; }
.btn-ghost { background: transparent; box-shadow: none; border: 1.5px solid var(--line); }
.btn-ghost:hover { background: #fff; }
.btn-sm { padding: 7px 13px; font-size: 13px; }
.btn-lg { padding: 15px 28px; font-size: 16px; }
.btn-icon { width: 36px; height: 36px; padding: 0; border-radius: 50%; }

.chip {
  display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px; border-radius: 999px;
  font-size: 12px; font-weight: 700; background: var(--bg-2); color: var(--ink-2); white-space: nowrap;
}
.chip-ai { background: var(--lav-soft); color: #6a58e8; }
.chip-ext { background: var(--rose-soft); color: #e0503f; }
.chip-platform { background: #fff1d6; color: #b7791f; }
.chip-viewer { background: var(--mint-soft); color: #13976f; }
.chip-18 { background: #fee2e2; color: #dc2626; border: 1px solid #fca5a5; font-weight: 800; letter-spacing: 0.5px; }

.card { background: var(--card); border-radius: var(--r); box-shadow: var(--shadow); }

/* ---------- поля ---------- */
.field { display: flex; flex-direction: column; gap: 8px; }
.field label { font-weight: 700; font-size: 14px; display: flex; align-items: center; gap: 8px; }
.field .num {
  width: 24px; height: 24px; border-radius: 50%; display: inline-grid; place-items: center;
  background: var(--grad); color: #fff; font-size: 12px; font-weight: 800;
}
.input, .textarea, .select {
  width: 100%; border: 1.5px solid var(--line); background: #ffffff !important; border-radius: var(--r-sm);
  padding: 13px 15px; font-size: 15px; outline: none; transition: border .15s, box-shadow .15s;
  color: #2b2140 !important;
  caret-color: #ff6b5b !important;
  -webkit-text-fill-color: #2b2140 !important;
}
.input:focus, .textarea:focus, .select:focus { border-color: var(--peach); box-shadow: 0 0 0 4px #ffb36b26; }
.textarea { resize: vertical; min-height: 120px; line-height: 1.55; }
.hint { font-size: 12.5px; color: var(--ink-3); }

/* ---------- шапка ---------- */
.topbar { padding: 18px 0; }
.topbar .container { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.logo { display: flex; align-items: center; gap: 10px; font-family: 'Unbounded'; font-weight: 800; font-size: 20px; text-decoration: none; }
.logo-mark { width: 38px; height: 38px; border-radius: 12px; background: var(--grad); display: grid; place-items: center; color: #fff; font-size: 18px; box-shadow: 0 6px 16px -6px #ff6b5b99; }
.nav { display: flex; gap: 6px; align-items: center; }
.nav a { text-decoration: none; padding: 9px 14px; border-radius: 999px; font-weight: 600; font-size: 14px; color: var(--ink-2); }
.nav a:hover, .nav a.active { background: #fff; color: var(--ink); box-shadow: var(--shadow-sm); }

/* ---------- обложки ---------- */
.cover {
  width: 46px; height: 46px; border-radius: 12px; object-fit: cover; flex: none;
  background: var(--grad-lav); display: grid; place-items: center; color: #fff; font-size: 18px;
}
.cover-lg { width: 100%; aspect-ratio: 1; border-radius: var(--r); }

/* ---------- эквалайзер ---------- */
.eq { display: inline-flex; gap: 2px; align-items: flex-end; height: 14px; }
.eq i { width: 3px; background: var(--coral); border-radius: 2px; animation: eq 1s ease-in-out infinite; }
.eq i:nth-child(2) { animation-delay: .2s; } .eq i:nth-child(3) { animation-delay: .4s; } .eq i:nth-child(4) { animation-delay: .1s; }
@keyframes eq { 0%,100% { height: 30%; } 50% { height: 100%; } }
.paused .eq i { animation-play-state: paused; }

.live-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--coral); box-shadow: 0 0 0 0 #ff6b5b80; animation: pulse 1.8s infinite; display: inline-block; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 #ff6b5b80; } 70% { box-shadow: 0 0 0 10px #ff6b5b00; } 100% { box-shadow: 0 0 0 0 #ff6b5b00; } }

/* ---------- тосты ---------- */
.toasts { position: fixed; right: 20px; bottom: 100px; display: flex; flex-direction: column; gap: 10px; z-index: 100; }
.toast { background: var(--ink); color: #fff; padding: 12px 16px; border-radius: 14px; box-shadow: var(--shadow); max-width: 360px; font-size: 14px; animation: slideIn .3s ease; }
.toast.err { background: #d9473a; }
@keyframes slideIn { from { transform: translateY(10px); opacity: 0; } to { transform: none; opacity: 1; } }

/* ---------- мини-плеер сайта ---------- */
.miniplayer {
  position: fixed; left: 50%; bottom: 18px; transform: translateX(-50%); width: min(840px, calc(100% - 24px));
  background: rgba(255,255,255,.94); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border-radius: 22px; box-shadow: 0 20px 50px -16px rgba(43,33,64,.32); border: 1.5px solid rgba(240, 230, 220, 0.85);
  display: flex; align-items: center; gap: 14px; padding: 11px 18px; z-index: 50;
}
.miniplayer .meta { min-width: 0; flex: 1; }
.miniplayer .meta b { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.progress { height: 6px; background: var(--bg-2); border-radius: 99px; overflow: hidden; cursor: pointer; margin-top: 6px; }
.progress > div { height: 100%; background: var(--grad); width: 0%; border-radius: 99px; transition: width .25s linear; }

.spinner { width: 18px; height: 18px; border: 2.5px solid #ffffff66; border-top-color: #fff; border-radius: 50%; animation: spin .8s linear infinite; display: inline-block; }
.spinner.dark { border-color: #2b214033; border-top-color: var(--coral); }
@keyframes spin { to { transform: rotate(360deg); } }

@media (max-width: 760px) {
  .nav a { padding: 8px 10px; font-size: 13px; }
  .logo span.txt { display: none; }
}
