/* Аккаунты, профиль, исполнители, текст песни. Подключается после app.css. */
[hidden] { display: none !important; }

/* ---------------- шапка: назад/вперёд, поиск, аватар */
.top {
  display: flex; align-items: center; gap: 14px;
  background: transparent;
  transition: background .25s, box-shadow .25s;
}
.top.solid { background: rgba(8, 8, 10, .82); backdrop-filter: blur(22px) saturate(1.4); box-shadow: 0 1px 0 var(--line); }
.hist-btns { display: flex; gap: 6px; }
.icon-btn.round { background: rgba(0,0,0,.45); color: var(--text); width: 34px; height: 34px; }
.icon-btn.round:disabled { opacity: .35; cursor: default; }
.search { flex: 1; }
.top-me { margin-left: auto; border-radius: 50%; padding: 3px; background: rgba(0,0,0,.45); transition: transform .15s; }
.top-me:hover { transform: scale(1.06); }
.main.hero-page .ambient { display: none; }

/* ---------------- аватары */
.avatar { border-radius: 50%; object-fit: cover; display: grid; place-items: center; flex: none; background: var(--raise); }
.avatar.sm { width: 32px; height: 32px; font-size: 14px; }
.avatar.xl { width: 200px; height: 200px; font-size: 84px; box-shadow: 0 24px 60px rgba(0,0,0,.6); }
.av-ph { font-weight: 800; color: #fff; background: radial-gradient(circle at 30% 25%, hsl(var(--h) 70% 45%), hsl(calc(var(--h) + 30) 60% 18%)); }
.me-chip {
  margin-top: 10px; display: flex; align-items: center; gap: 10px;
  padding: 8px 10px; border-radius: 10px;
  transition: background .15s;
}
.me-chip:hover, .me-chip.on { background: var(--hover); }
.me-chip span { display: flex; flex-direction: column; min-width: 0; }
.me-chip b { font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.me-chip small { color: var(--mute); font-size: 12px; }
.pls { flex: 1; }

/* ---------------- карточки исполнителей */
.cv.round { border-radius: 50%; }
.artist-card .t, .artist-card .a { text-align: center; }
.av-letter { font-size: 56px; font-weight: 800; color: rgba(255,255,255,.85); }
.link-btn { color: var(--mute); font-weight: 750; font-size: 13px; padding: 10px 12px; letter-spacing: .02em; }
.link-btn:hover { color: var(--text); }
.plays { color: var(--mute); font-size: 13px; font-variant-numeric: tabular-nums; }
.pl-artists a:hover, .np-artist a:hover, .np-album a:hover { text-decoration: underline; }
.btn.follow { height: 34px; padding: 0 16px; border: 1px solid rgba(255,255,255,.25); background: transparent; color: var(--text); }
.btn.follow:hover { border-color: #fff; background: transparent; }
.btn.follow.on { border-color: var(--red); color: var(--red); }

/* ---------------- шапка исполнителя */
.a-hero {
  position: relative; margin: -76px -32px 22px; height: clamp(300px, 46vh, 460px);
  display: flex; align-items: flex-end; overflow: hidden;
}
.a-hero-bg { position: absolute; inset: 0; }
.a-hero-bg img { width: 100%; height: 100%; object-fit: cover; object-position: center 25%; animation: heroIn 1.2s cubic-bezier(.2,.8,.2,1); }
@keyframes heroIn { from { transform: scale(1.08); opacity: 0; } }
.a-hero-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(6,6,8,.25) 0%, rgba(6,6,8,.15) 40%, rgba(6,6,8,.85) 85%, var(--bg) 100%); }
.a-hero.loading .a-hero-bg { background: linear-gradient(120deg, #120508, #0b0b0e); }
.a-hero-ph { position: absolute; inset: 0; background: radial-gradient(90% 120% at 20% 0%, hsl(var(--h) 60% 25%), transparent 60%), radial-gradient(80% 100% at 100% 100%, rgba(255,43,61,.25), transparent 60%), #0b0b0e; }
.a-hero-body { position: relative; padding: 0 32px 22px; }
.a-name { font-size: clamp(44px, 7.5vw, 104px); font-weight: 800; letter-spacing: -.045em; line-height: .95; margin: 8px 0 12px; text-shadow: 0 6px 40px rgba(0,0,0,.5); }
.pl-kind .verified { width: 16px; height: 16px; padding: 2px; border-radius: 50%; background: #3d8bff; color: #fff; stroke-width: 3; vertical-align: -3px; margin-right: 4px; }
.about { max-width: 780px; color: rgba(255,255,255,.72); line-height: 1.65; font-size: 14.5px; }
.about p { margin: 0; display: -webkit-box; -webkit-line-clamp: 5; -webkit-box-orient: vertical; overflow: hidden; white-space: pre-line; }
.about.open p { -webkit-line-clamp: unset; display: block; }
.about .link-btn { padding-left: 0; }

/* ---------------- профиль */
.prof-hero { position: relative; isolation: isolate; display: flex; align-items: flex-end; gap: 30px; margin: -76px -32px 22px; padding: 110px 32px 26px; overflow: hidden; }
.prof-glow { position: absolute; inset: 0; z-index: -1; background: radial-gradient(70% 120% at 15% 0%, hsl(var(--h, 350) 70% 30% / .75), transparent 65%), radial-gradient(60% 100% at 100% 0%, rgba(255,43,61,.28), transparent 70%); }
.prof-info { min-width: 0; }
.bio { margin-top: 10px; max-width: 560px; color: rgba(255,255,255,.8); white-space: pre-line; }
.tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin: 6px 0 8px; }
.tile { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 18px 20px; display: flex; flex-direction: column; gap: 4px; }
.tile b { font-size: 34px; font-weight: 800; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.tile:first-child b { color: var(--red); }
.tile span { color: var(--mute); font-size: 13px; font-weight: 650; }
.mini-mosaic { width: 100%; height: 100%; box-shadow: none; border-radius: 0; }

/* ---------------- диалог профиля */
.prof-dlg form { width: 540px; }
.prof-edit { display: flex; gap: 22px; align-items: flex-start; }
.av-pick { position: relative; cursor: pointer; border-radius: 50%; flex: none; }
.av-pick .avatar.xl { width: 150px; height: 150px; font-size: 60px; }
.av-over { position: absolute; inset: 0; border-radius: 50%; display: grid; place-items: center; background: rgba(0,0,0,.55); opacity: 0; transition: opacity .15s; }
.av-over svg { width: 34px; height: 34px; }
.av-pick:hover .av-over { opacity: 1; }
.prof-fields { flex: 1; display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.fld { display: flex; flex-direction: column; gap: 6px; }
.fld span { color: var(--mute); font-size: 11.5px; font-weight: 750; letter-spacing: .06em; text-transform: uppercase; }
.fld input, .fld textarea {
  width: 100%; padding: 11px 14px; border-radius: 9px; height: auto;
  background: rgba(255,255,255,.06); border: 1px solid var(--line); outline: 0; user-select: text; resize: none;
  transition: border-color .15s, background .15s;
}
.fld input:focus, .fld textarea:focus { border-color: rgba(255,255,255,.35); background: rgba(255,255,255,.09); }
.pw summary { cursor: pointer; color: var(--mute); font-weight: 700; font-size: 13px; }
.pw[open] summary { margin-bottom: 10px; }
.pw .fld + .fld { margin-top: 10px; }

/* ---------------- вход */
.auth { position: fixed; inset: 0; z-index: 80; display: grid; place-items: center; background: #040405; overflow: hidden; }
.auth.leaving { animation: authOut .45s ease forwards; }
@keyframes authOut { to { opacity: 0; transform: scale(1.04); } }
.auth-glow i { position: absolute; border-radius: 50%; filter: blur(90px); opacity: .55; }
.auth-glow i:nth-child(1) { width: 60vmax; height: 60vmax; left: -20vmax; top: -25vmax; background: #b0001c; animation: drift 18s ease-in-out infinite alternate; }
.auth-glow i:nth-child(2) { width: 45vmax; height: 45vmax; right: -15vmax; bottom: -20vmax; background: #5a0012; animation: drift 22s ease-in-out infinite alternate-reverse; }
.auth-glow i:nth-child(3) { width: 30vmax; height: 30vmax; right: 20vw; top: -10vmax; background: #2a0a40; opacity: .4; animation: drift 26s ease-in-out infinite alternate; }
@keyframes drift { to { transform: translate(8vmax, 6vmax) scale(1.15); } }
.auth-bars { position: absolute; left: 0; right: 0; bottom: 0; height: 32vh; display: flex; align-items: flex-end; gap: 6px; padding: 0 6px; opacity: .22; mask-image: linear-gradient(transparent, #000); }
.auth-bars i { flex: 1; border-radius: 4px 4px 0 0; background: var(--red); animation: abar 1.3s ease-in-out infinite alternate; }
@keyframes abar { from { height: 8%; } to { height: 100%; } }
.auth-card {
  position: relative; width: min(400px, calc(100vw - 32px));
  display: flex; flex-direction: column; gap: 14px;
  padding: 34px 32px 26px; border-radius: 22px;
  background: rgba(16, 16, 20, .72); backdrop-filter: blur(30px) saturate(1.5);
  border: 1px solid rgba(255,255,255,.08);
  box-shadow: 0 40px 100px rgba(0,0,0,.6);
  animation: cardIn .6s cubic-bezier(.2,.9,.2,1);
}
@keyframes cardIn { from { opacity: 0; transform: translateY(24px) scale(.97); } }
.auth-card.shake { animation: shake .4s; }
@keyframes shake { 20%, 60% { transform: translateX(-8px); } 40%, 80% { transform: translateX(8px); } }
.logo.big { font-size: 40px; justify-content: center; padding: 0; }
.logo.big i { width: 12px; height: 12px; }
.auth-sub { margin: -6px 0 6px; text-align: center; color: var(--mute); font-weight: 600; }
.seg { position: relative; display: grid; grid-template-columns: 1fr 1fr; background: rgba(255,255,255,.06); border-radius: 11px; padding: 4px; margin-bottom: 4px; }
.seg button { position: relative; z-index: 1; height: 34px; border-radius: 8px; font-weight: 750; color: var(--mute); transition: color .2s; }
.seg button.on { color: var(--text); }
.seg i { position: absolute; top: 4px; bottom: 4px; left: 4px; width: calc(50% - 4px); border-radius: 8px; background: rgba(255,255,255,.12); transform: translateX(var(--x, 0%)); transition: transform .35s cubic-bezier(.3,1.3,.5,1); }
.auth-card .reg { display: none; }
.auth-card.is-reg .reg { display: flex; animation: fldIn .3s ease; }
@keyframes fldIn { from { opacity: 0; transform: translateY(-6px); } }
.auth-err { min-height: 18px; color: #ff6b76; font-weight: 650; font-size: 13px; }
.btn.red { background: var(--red); color: #fff; box-shadow: 0 10px 30px var(--red-glow); justify-content: center; }
.btn.red:hover { background: #ff4454; }
.btn.red:disabled { opacity: .6; }
.btn.wide { width: 100%; height: 46px; border-radius: 12px; font-size: 15px; }
.auth-note { margin: 2px 0 0; text-align: center; color: var(--dim); font-size: 12px; }

/* ---------------- во весь экран + текст песни */
.np-lyr, .icon-btn.np-lyr.on { position: absolute; top: 18px; right: 18px; z-index: 3; color: var(--text); background: rgba(0,0,0,.3); width: 42px; height: 42px; }
.icon-btn.np-lyr.on { color: #fff; background: rgba(255,43,61,.85); }
.np-lyr.on::after { display: none; }
.icon-btn.np-lyr.none.on { background: rgba(0,0,0,.3); color: var(--mute); }
.np-left { display: flex; align-items: center; gap: 56px; min-width: 0; }
.lyrics { display: none; }
.np.has-lyrics .np-body { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.25fr); grid-template-rows:minmax(0,1fr); min-height:0; gap: 5vw; padding: 70px 5vw 0 7vw; align-items: stretch; justify-content: stretch; }
.np.has-lyrics .np-left { flex-direction: column; align-items: flex-start; justify-content: center; gap: 26px; }
.np.has-lyrics .np-cover { width: min(40vh, 26vw); }
.np.has-lyrics .np-meta h1 { font-size: clamp(24px, 2.6vw, 38px); margin: 8px 0 8px; }
.np.has-lyrics .np-artist { font-size: 18px; }
.np.has-lyrics #viz { height: 120px; opacity: .55; }
.np.has-lyrics .lyrics { display: block; }
.lyrics {
  position: relative; height: 100%; min-height:0; min-width:0; overflow: hidden; cursor: default;
  mask-image: linear-gradient(transparent 0%, #000 16%, #000 62%, transparent 94%);
}
.ly-inner { position: relative; padding: 0 20px 0 0; }
.ly-line {
  --y: 0px; --d: 1;
  padding: 12px 0; margin: 0;
  font-size: clamp(24px, 2.5vw, 40px); font-weight: 800; line-height: 1.18; letter-spacing: -.02em;
  color: rgba(255,255,255,.3);
  transform-origin: left center;
  transform: translateY(var(--y)) scale(.955);
  filter: blur(calc(min(var(--d), 5) * .75px));
  opacity: calc(1 - min(var(--d), 6) * .1);
  transition: transform .75s cubic-bezier(.2,.9,.22,1), filter .5s ease, opacity .5s ease, color .4s ease;
  cursor: pointer; will-change: transform;
}
.ly-line:hover { color: rgba(255,255,255,.55); }
.ly-line.past { color: rgba(255,255,255,.42); }
.ly-line.active {
  transform: translateY(var(--y)) scale(1);
  filter: drop-shadow(0 0 22px rgba(255,255,255,.18));
  opacity: 1;
}
.lyrics.browsing .ly-line { filter: none; opacity: .85; }
.ly-line .w { display: inline-block; transition: transform .35s cubic-bezier(.3,1.6,.5,1); }
.ly-line.active .w {
  --p: 0;
  background: linear-gradient(90deg, #fff calc(var(--p) * 115% - 15%), rgba(255,255,255,.34) calc(var(--p) * 115%));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.ly-line.active .w { background:none;color:#fff;-webkit-text-fill-color:currentColor; }
.ly-line { transition:transform .38s cubic-bezier(.22,1,.36,1),filter .18s ease,opacity .12s ease,color .08s linear; }
.ly-line.active .w.on { transform:none; }
.ly-dots { display: flex; gap: 12px; padding: 22px 0; }
.ly-dots span { --p: 0; width: 14px; height: 14px; border-radius: 50%; background: rgba(255,255,255,calc(.22 + var(--p) * .78)); transform: scale(calc(.75 + var(--p) * .3)); transition: transform .3s; }
.ly-dots.active { animation: breathe 2.4s ease-in-out infinite; }
.ly-dots.active.ending { animation: none; transform: translateY(var(--y)) scale(.4); opacity: 0; transition: transform .35s ease-in, opacity .35s; }
@keyframes breathe { 0%, 100% { transform: translateY(var(--y)) scale(.96); } 50% { transform: translateY(var(--y)) scale(1.08); } }
.ly-src { margin-top: 30px; color: rgba(255,255,255,.3); font-size: 12px; font-weight: 700; }
.lyrics.plain-mode { overflow-y:auto;overflow-x:hidden;overscroll-behavior-y:contain;touch-action:pan-y;scrollbar-width:thin;scrollbar-color:#ffffff45 transparent;mask-image:none;padding:24px 0 32px; }
.lyrics.plain-mode .ly-inner { padding:0 20px 24px 0; }
.lyrics.plain-mode::-webkit-scrollbar { width:5px; }
.lyrics.plain-mode:focus-visible { outline:1px solid #ffffff40;outline-offset:4px;border-radius:8px; }
.ly-note { color: rgba(255,255,255,.4); font-size: 12px; font-weight: 750; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 18px; }
.ly-pl { font-size: clamp(20px, 1.9vw, 30px); font-weight: 800; line-height: 1.3; color: rgba(255,255,255,.78); letter-spacing: -.015em; }
.ly-instr { display: flex; flex-direction: column; justify-content: center; font-size: 36px; font-weight: 800; color: rgba(255,255,255,.5); padding-top: 25vh; }
.ly-instr span { font-size: 80px; color: var(--red); animation: breathe2 2.4s ease-in-out infinite; display: inline-block; width: max-content; }
@keyframes breathe2 { 50% { transform: scale(1.12) rotate(-6deg); } }
.ly-loading { padding-top: 22vh; display: flex; flex-direction: column; gap: 22px; }
.ly-loading i { height: 30px; border-radius: 8px; background: linear-gradient(90deg, rgba(255,255,255,.06), rgba(255,255,255,.14), rgba(255,255,255,.06)); background-size: 200% 100%; animation: sh 1.3s linear infinite; }

@media (max-width: 1000px) {
  .me-chip span { display: none; }
  .me-chip { justify-content: center; }
  .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .np.has-lyrics .np-body { grid-template-columns: 1fr; padding: 70px 24px 0; }
  .np.has-lyrics .np-left { display: none; }
}

textarea { font: inherit; color: inherit; }
#pTitle { display:block;max-width:100%;text-align:left;line-height:inherit; }
#pTitle:not(:disabled):is(:hover,:focus-visible) { text-decoration:underline;text-underline-offset:3px;text-decoration-thickness:1px; }
#pTitle:disabled { cursor:default; }
