/* «Узнать трек» (desktop/web/js/recog.js): ссылка на видео, «Слушать вокруг», карточка найденного.
   Пока трек узнаётся, от круга расходятся волны — цветами призмы, как свет в знаке Prisma. */

/* строка на экране поиска и кнопка в строке поиска */
.ls-hero { display: flex; align-items: center; gap: 16px; width: 100%; max-width: 640px; margin: 4px 0 30px; padding: 14px 18px 14px 14px; border-radius: 26px; text-align: left; transition: transform .35s var(--ease); }
.ls-hero:hover { transform: translateY(-2px); }
.ls-hero:active { transform: scale(.985); }
.ls-hero-orb { width: 54px; height: 54px; flex: none; display: grid; place-items: center; border-radius: 50%; color: #000;
  background: conic-gradient(from 200deg, #7df9ff, #8e9bff, #c689ff, #ff8ac4, #ffc978, #7df9ff); box-shadow: 0 10px 30px -10px rgba(198, 137, 255, .75); }
.ls-hero-orb .ico { width: 26px; height: 26px; }
.ls-hero-text { flex: 1; min-width: 0; display: grid; gap: 3px; }
.ls-hero-text b { font: 700 17px/1.2 var(--font-display); letter-spacing: -.01em; }
.ls-hero-text small { color: var(--ink-2); font-size: 13px; line-height: 1.4; }
.ls-hero > .ico { width: 18px; height: 18px; color: var(--ink-3); flex: none; }
.search-ear { flex: none; color: var(--ink-3); }
.search-ear:hover { color: var(--ink); }

/* ---------- экран ---------- */
.ls { max-width: 760px; }
.ls-lead { margin: -4px 0 22px; max-width: 560px; line-height: 1.5; }
.ls-link { position: relative; z-index: 2; display: flex; align-items: center; gap: 10px; height: 56px; padding: 0 8px 0 18px; border-radius: 999px; }   /* волны от круга уходят под строку */
.ls-link > .ico { width: 18px; height: 18px; flex: none; color: var(--ink-3); }
.ls-input { flex: 1; min-width: 0; height: 100%; border: 0; background: none; outline: none; color: var(--ink); font: 500 15px var(--font-text); user-select: text; -webkit-user-select: text; }
.ls-input::placeholder { color: var(--ink-3); }
.ls-link:focus-within { box-shadow: inset 0 1px 0 rgba(255, 255, 255, .4), inset 0 0 0 1px rgba(255, 255, 255, .3), 0 14px 40px -18px #000; }
.ls-go { height: 40px; padding: 0 20px; flex: none; }
.ls-paste { flex: none; }
.ls-note { margin: 18px auto 0; max-width: 520px; text-align: center; line-height: 1.5; }

/* круг «Слушать вокруг» */
.ls-pad { display: grid; justify-items: center; gap: 14px; margin: 46px 0 6px; }
.ls-orb { position: relative; width: 172px; height: 172px; display: grid; place-items: center; border-radius: 50%; isolation: isolate; color: #fff; -webkit-tap-highlight-color: transparent; }
.ls-orb::before { content: ''; position: absolute; inset: 0; z-index: -1; border-radius: 50%;
  background: radial-gradient(circle at 34% 28%, rgba(255, 255, 255, .24), rgba(255, 255, 255, .04) 62%), rgba(14, 14, 20, .62);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .45), inset 0 0 0 1px rgba(255, 255, 255, .12), 0 34px 90px -34px rgba(var(--tint), .85), 0 20px 40px -24px #000;
  transition: transform .45s var(--spring), box-shadow .4s var(--ease); }
.ls-orb:hover::before { transform: scale(1.04); }
.ls-orb:active::before { transform: scale(.95); }
.ls-orb:disabled { opacity: .35; }
.ls-orb:disabled::before { transform: none; }
.ls-core { display: grid; place-items: center; transition: transform .4s var(--spring); }
.ls-core .ico { width: 54px; height: 54px; }
.ls-rings { position: absolute; inset: 0; z-index: -2; pointer-events: none; }
.ls-rings i { position: absolute; inset: 0; border-radius: 50%; opacity: 0;
  background: conic-gradient(from 0deg, #7df9ff, #8e9bff, #c689ff, #ff8ac4, #ffc978, #7df9ff);
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 2.5px), #000 calc(100% - 2px)); mask: radial-gradient(farthest-side, transparent calc(100% - 2.5px), #000 calc(100% - 2px)); }
.ls.busy .ls-rings i { animation: ls-wave 2.4s var(--ease) infinite; }
.ls.busy .ls-rings i:nth-child(2) { animation-delay: .8s; }
.ls.busy .ls-rings i:nth-child(3) { animation-delay: 1.6s; }
.ls.busy .ls-core { animation: ls-breathe 1.6s ease-in-out infinite; }
@keyframes ls-wave { from { transform: scale(1); opacity: .95; } to { transform: scale(2.05); opacity: 0; } }
@keyframes ls-breathe { 50% { transform: scale(1.1); } }
/* запись с микрофона: по краю круга бежит, сколько осталось */
.ls-meter { position: absolute; inset: -7px; z-index: -1; border-radius: 50%; opacity: 0; transition: opacity .3s;
  background: conic-gradient(#fff calc(var(--k, 0) * 360deg), rgba(255, 255, 255, .12) 0);
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 3px), #000 calc(100% - 2.5px)); mask: radial-gradient(farthest-side, transparent calc(100% - 3px), #000 calc(100% - 2.5px)); }
.ls.rec .ls-meter { opacity: 1; }
@media (prefers-reduced-motion: reduce) { .ls.busy .ls-rings i, .ls.busy .ls-core { animation-duration: 6s; } }
.ls-say { min-height: 21px; color: var(--ink-2); font: 600 15px/1.35 var(--font-text); text-align: center; }
.ls-steps { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; }
.ls-step { padding: 5px 11px; border-radius: 999px; background: var(--fill-1); color: var(--ink-3); font-size: 12px; font-weight: 600; transition: color .3s, background .3s; }
.ls-step.done { color: var(--ink-2); }
.ls-step.done::before { content: '✓ '; }
.ls-step.on { color: #000; background: #fff; }
.ls-more { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 6px; }
.ls.busy .ls-more { opacity: .4; pointer-events: none; }

/* карточка найденного */
.ls-out { margin-top: 30px; scroll-margin-top: 90px; }
.ls-out:empty { display: none; }
.rc { display: grid; gap: 16px; padding: 18px; border-radius: 28px; animation: page-in .45s var(--ease) both; }
.rc-top { display: flex; align-items: center; gap: 18px; min-width: 0; }
.rc-art { width: 116px; height: 116px; flex: none; display: grid; place-items: center; overflow: hidden; border-radius: 20px; background: var(--fill-2); box-shadow: 0 22px 54px -22px rgba(var(--tint), .75), 0 14px 30px -18px #000; }
.rc-art img { width: 100%; height: 100%; object-fit: cover; }
.rc-art > .ico { width: 38px; height: 38px; color: var(--ink-3); }
.rc-text { min-width: 0; display: grid; gap: 4px; }
.rc-by { display: inline-flex; align-items: center; gap: 6px; color: var(--ink-2); font-size: 12.5px; font-weight: 600; }
.rc-by .ico { width: 13px; height: 13px; }
.rc-title { font: 800 clamp(22px, 2.6vw, 30px)/1.1 var(--font-display); letter-spacing: -.02em; overflow-wrap: anywhere; padding-bottom: .05em; }
.rc-artist { color: var(--ink-2); font-size: 16px; overflow-wrap: anywhere; }
.rc-sub { color: var(--ink-3); font-size: 13px; }
.rc-acts { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.rc-play { gap: 8px; }
.rc-play .ico { width: 15px; height: 15px; }
.rc-like { width: 40px; height: 40px; }
.rc-video { display: flex; align-items: center; gap: 8px; min-width: 0; padding-top: 12px; border-top: 1px solid var(--line); color: var(--ink-3); font-size: 12.5px; }
.rc-video .ico { width: 14px; height: 14px; flex: none; }
.rc-miss { gap: 10px; }
.rc-miss p { margin: 0; line-height: 1.5; }
.rc-miss .btn { justify-self: start; margin-top: 4px; }
.ls-recent { margin-top: 44px; }
.ls-recent .section-head { justify-content: space-between; }
.ls-misses { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.ls-misses .chip { max-width: 100%; }
.ls.deaf .ls-pad { opacity: .5; }

/* телефон */
body.phone .ls-link { height: 52px; gap: 8px; padding-left: 15px; }
body.phone .ls-paste { padding: 0 12px; }
body.phone .ls-go { padding: 0 16px; }
body.phone .ls-pad { margin-top: 38px; }
body.phone .ls-orb { width: 156px; height: 156px; }
body.phone .rc { padding: 16px; border-radius: 24px; }
body.phone .rc-top { gap: 14px; }
body.phone .rc-art { width: 90px; height: 90px; border-radius: 16px; }
body.phone .rc-title { font-size: 21px; }
body.phone .rc-artist { font-size: 15px; }
body.phone .ls-hero { margin-bottom: 24px; }
@media (max-width: 380px) { body.phone .ls-paste { display: none; } }
