/* Twipe 1.9.1: истории, совместное прослушивание, подарки, платные каналы. */

/* ---------------------------------------------------------- общие */
.sx-mlist { display: grid; gap: 6px; }
.sx-mrow {
  display: flex; flex-direction: column; align-items: flex-start; gap: 2px; width: 100%;
  padding: 12px 14px; border: 0; border-radius: 14px; background: var(--bg-soft, #f3f4f6);
  color: var(--text); font: inherit; font-size: 15px; text-align: left; cursor: pointer;
}
.sx-mrow small { color: var(--muted); font-size: 12.5px; }
.sx-mrow:hover { filter: brightness(.97); }
.fx-link { border: 0; background: none; color: var(--primary); font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; padding: 4px 2px; }

.sx-ava {
  --h: 220;
  display: inline-grid; place-items: center; flex: none; width: 56px; height: 56px; border-radius: 50%;
  overflow: hidden; color: #fff; font-weight: 700; font-size: 18px;
  background: linear-gradient(135deg, hsl(var(--h) 70% 62%), hsl(calc(var(--h) + 50) 70% 52%));
}
.sx-ava img { width: 100%; height: 100%; object-fit: cover; }
.sx-ava.sm { width: 36px; height: 36px; font-size: 13px; }

/* ---------------------------------------------------------- лента историй */
.stories-strip.sx-strip { display: block; padding: 4px 0 8px; overflow: hidden; }
.sx-row { display: flex; gap: 12px; overflow-x: auto; padding: 4px 6px 2px; scrollbar-width: none; scroll-snap-type: x proximity; }
.sx-row::-webkit-scrollbar { display: none; }
.sx-item {
  position: relative; display: flex; flex-direction: column; align-items: center; gap: 5px; flex: none;
  width: 70px; padding: 0; border: 0; background: none; color: var(--text); font: inherit; cursor: pointer; scroll-snap-align: start;
}
.sx-ring { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; padding: 3px; background: var(--line, #d1d5db); }
.sx-ring .sx-ava { width: 100%; height: 100%; border: 2.5px solid var(--bg, #fff); }
.sx-ring.is-new { background: conic-gradient(from 210deg, #f59e0b, #ef4444, #d946ef, #6366f1, #06b6d4, #f59e0b); }
.sx-ring.is-own { background: linear-gradient(135deg, #a5b4fc, #c4b5fd); }
.sx-ring.is-empty { background: transparent; border: 2px dashed var(--line, #d1d5db); padding: 2px; }
.sx-ring.is-empty .sx-ava { border: 0; opacity: .9; }
.sx-add-dot {
  position: absolute; right: 2px; top: 44px; width: 22px; height: 22px; border-radius: 50%;
  display: grid; place-items: center; background: var(--primary, #3b82f6); color: #fff; font-weight: 700; font-size: 16px; line-height: 1;
  border: 2.5px solid var(--bg, #fff);
}
.sx-cap { max-width: 70px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; color: var(--muted); }
.sx-item:active .sx-ring { transform: scale(.95); }

/* ---------------------------------------------------------- просмотр */
html.sx-viewer-open { overflow: hidden; }
.sx-viewer {
  position: fixed; inset: 0; z-index: 100400; display: grid; place-items: center;
  background: rgba(5, 6, 10, .94); opacity: 0; transition: opacity .2s ease; touch-action: none; user-select: none;
}
.sx-viewer.is-open { opacity: 1; }
.sx-stage {
  position: relative; width: min(100vw, calc(100dvh * 9 / 16)); height: min(100dvh, calc(100vw * 16 / 9)); max-height: 100dvh;
  background: #0b0b10; overflow: hidden; display: flex; flex-direction: column;
}
@media (max-width: 699px) { .sx-stage { width: 100vw; height: 100dvh; } }
@media (min-width: 700px) { .sx-stage { height: min(92dvh, 860px); width: calc(min(92dvh, 860px) * 9 / 16); border-radius: 18px; box-shadow: 0 30px 80px rgba(0,0,0,.6); } }
.sx-bars { position: absolute; z-index: 4; top: 8px; left: 8px; right: 8px; display: flex; gap: 4px; }
.sx-bar { flex: 1; height: 3px; border-radius: 3px; background: rgba(255,255,255,.3); overflow: hidden; }
.sx-bar i { display: block; height: 100%; background: #fff; border-radius: 3px; }
.sx-head { position: absolute; z-index: 5; top: 18px; left: 8px; right: 8px; display: flex; align-items: center; gap: 4px; color: #fff; }
.sx-who { display: flex; align-items: center; gap: 10px; border: 0; background: none; color: #fff; font: inherit; text-align: left; cursor: pointer; padding: 4px; min-width: 0; }
.sx-who span:last-child { display: flex; flex-direction: column; min-width: 0; }
.sx-who b { font-size: 14px; text-shadow: 0 1px 4px rgba(0,0,0,.5); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sx-who small { font-size: 12px; opacity: .8; text-shadow: 0 1px 4px rgba(0,0,0,.5); }
.sx-sp { flex: 1; }
.sx-icon { width: 38px; height: 38px; border: 0; border-radius: 50%; background: rgba(0,0,0,.25); color: #fff; font-size: 17px; cursor: pointer; }
.sx-media { position: absolute; inset: 0; display: grid; place-items: center; overflow: hidden; }
.sx-media img, .sx-media > video { width: 100%; height: 100%; object-fit: contain; }
.sx-media--photo img { object-fit: cover; }
.sx-media--circle { background: radial-gradient(circle at 50% 40%, #312e81, #0b0b10 70%); }
.sx-circle { width: min(78%, 360px); aspect-ratio: 1; border-radius: 50%; overflow: hidden; box-shadow: 0 0 0 4px rgba(255,255,255,.15), 0 20px 60px rgba(0,0,0,.5); background: #111; }
.sx-circle video { width: 100%; height: 100%; object-fit: cover; }
.sx-text { padding: 28px; max-width: 92%; color: #fff; font-size: clamp(22px, 5.4vw, 34px); font-weight: 800; line-height: 1.2; text-align: center; white-space: pre-wrap; word-break: break-word; text-shadow: 0 2px 16px rgba(0,0,0,.25); }
.sx-music { --h: 260; display: flex; flex-direction: column; align-items: center; gap: 10px; width: 100%; height: 100%; justify-content: center; color: #fff;
  background: radial-gradient(circle at 30% 20%, hsl(var(--h) 80% 60%), hsl(calc(var(--h) + 60) 70% 30%) 60%, #0b0b10); }
.sx-disc { width: 170px; height: 170px; border-radius: 50%; display: grid; place-items: center; background: repeating-radial-gradient(circle, #111 0 2px, #1f1f25 2px 5px); box-shadow: 0 20px 60px rgba(0,0,0,.5); animation: sxSpin 6s linear infinite; }
.sx-disc span { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; font-size: 30px; background: linear-gradient(135deg, hsl(var(--h) 80% 65%), hsl(calc(var(--h) + 60) 80% 55%)); }
.sx-music b { font-size: 22px; margin-top: 14px; max-width: 86%; text-align: center; }
.sx-music small { font-size: 15px; opacity: .8; }
.sx-viewer.is-paused .sx-disc { animation-play-state: paused; }
@keyframes sxSpin { to { transform: rotate(360deg); } }
.sx-eq { display: flex; gap: 4px; align-items: flex-end; height: 22px; margin-top: 8px; }
.sx-eq i { width: 4px; background: #fff; border-radius: 2px; animation: sxEq .9s ease-in-out infinite; }
.sx-eq i:nth-child(2) { animation-delay: .15s; } .sx-eq i:nth-child(3) { animation-delay: .3s; } .sx-eq i:nth-child(4) { animation-delay: .45s; } .sx-eq i:nth-child(5) { animation-delay: .6s; }
@keyframes sxEq { 0%,100% { height: 5px; } 50% { height: 22px; } }
.sx-music-chip { position: absolute; top: 74px; left: 50%; transform: translateX(-50%); padding: 7px 14px; border-radius: 999px; background: rgba(0,0,0,.45); color: #fff; font-size: 13px; white-space: nowrap; max-width: 86%; overflow: hidden; text-overflow: ellipsis; }
.sx-caption { position: absolute; z-index: 3; left: 0; right: 0; bottom: 118px; padding: 10px 18px; color: #fff; font-size: 16px; line-height: 1.35; text-align: center; text-shadow: 0 1px 6px rgba(0,0,0,.6); }
.sx-tap { position: absolute; z-index: 2; top: 80px; bottom: 120px; border: 0; background: none; cursor: pointer; }
.sx-tap--prev { left: 0; width: 32%; }
.sx-tap--next { right: 0; width: 68%; }
.sx-foot { position: absolute; z-index: 5; left: 0; right: 0; bottom: 0; padding: 10px 12px calc(12px + env(safe-area-inset-bottom)); background: linear-gradient(transparent, rgba(0,0,0,.55)); }
.sx-reacts { display: flex; justify-content: center; gap: 6px; margin-bottom: 8px; }
.sx-reacts button { width: 42px; height: 42px; border: 0; border-radius: 50%; background: rgba(255,255,255,.14); font-size: 22px; cursor: pointer; transition: transform .15s; }
.sx-reacts button:active, .sx-reacts button.is-on { transform: scale(1.18); background: rgba(255,255,255,.32); }
.sx-reply-row { display: flex; gap: 8px; }
.sx-reply { flex: 1; min-width: 0; height: 44px; padding: 0 16px; border-radius: 999px; border: 1.5px solid rgba(255,255,255,.45); background: rgba(0,0,0,.25); color: #fff; font: inherit; font-size: 15px; outline: none; }
.sx-reply::placeholder { color: rgba(255,255,255,.7); }
.sx-send { width: 44px; height: 44px; border: 0; border-radius: 50%; background: var(--primary, #3b82f6); color: #fff; font-size: 17px; cursor: pointer; }
.sx-views { display: block; margin: 0 auto; padding: 10px 18px; border: 0; border-radius: 999px; background: rgba(255,255,255,.16); color: #fff; font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; }
.sx-spin { width: 36px; height: 36px; border-radius: 50%; border: 3px solid rgba(255,255,255,.25); border-top-color: #fff; animation: sxSpin .8s linear infinite; }
.sx-fly { position: absolute; z-index: 9; left: 50%; bottom: 140px; font-size: 64px; transform: translateX(-50%); animation: sxFly 1.1s ease-out forwards; pointer-events: none; }
@keyframes sxFly { from { opacity: 1; transform: translate(-50%, 0) scale(.6); } 60% { transform: translate(-50%, -160px) scale(1.3); } to { opacity: 0; transform: translate(-50%, -260px) scale(1); } }
.sx-vlist { display: grid; gap: 4px; }
.sx-vrow { display: flex; align-items: center; gap: 12px; padding: 8px 4px; }
.sx-vrow > span:not(.sx-ava) { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.sx-vrow small { color: var(--muted); font-size: 12px; }
.sx-vrow em { font-style: normal; font-size: 22px; }

/* ---------------------------------------------------------- создание */
.sx-create .fx-modal__card { max-width: 560px; }
.sx-tabs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin-bottom: 12px; }
.sx-tabs button { padding: 10px 4px; border: 0; border-radius: 12px; background: var(--bg-soft, #f3f4f6); color: var(--text); font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; }
.sx-tabs button.is-on { background: var(--primary, #3b82f6); color: #fff; }
.sx-drop { display: block; cursor: pointer; }
.sx-drop-in { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; height: 180px; border: 2px dashed var(--line); border-radius: 16px; color: var(--text); }
.sx-drop-in small { color: var(--muted); }
.sx-drop:hover .sx-drop-in { border-color: var(--primary); }
.sx-circle-host { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; padding: 18px 0; }
.sx-circle-host .btn { height: 44px; display: inline-flex; align-items: center; padding: 0 18px; border-radius: 999px; cursor: pointer; }
.sx-rec { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.sx-circle--rec { width: 220px; }
.sx-rec-t { font-variant-numeric: tabular-nums; color: var(--muted); }
.sx-tracks { display: grid; gap: 4px; max-height: 280px; overflow-y: auto; }
.sx-track { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 12px; cursor: pointer; }
.sx-track:has(input:checked) { background: color-mix(in srgb, var(--primary) 14%, transparent); }
.sx-track input { accent-color: var(--primary); }
.sx-track-ico { --h: 260; width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; color: #fff; background: linear-gradient(135deg, hsl(var(--h) 70% 60%), hsl(calc(var(--h) + 60) 70% 50%)); }
.sx-text-prev { display: grid; place-items: center; height: 220px; border-radius: 16px; padding: 18px; }
.sx-text-prev textarea { width: 100%; height: 100%; border: 0; background: none; resize: none; color: #fff; font: inherit; font-size: 24px; font-weight: 800; text-align: center; outline: none; }
.sx-text-prev textarea::placeholder { color: rgba(255,255,255,.75); }
.sx-bgs { display: flex; gap: 8px; margin-top: 10px; justify-content: center; }
.sx-bgs button { width: 32px; height: 32px; border-radius: 50%; border: 3px solid transparent; cursor: pointer; }
.sx-bgs button.is-on { border-color: var(--text); }
.sx-preview { display: flex; flex-direction: column; align-items: center; gap: 6px; margin-bottom: 8px; }
.sx-prev-box { width: 100%; max-height: 300px; border-radius: 16px; overflow: hidden; background: #000; display: grid; place-items: center; }
.sx-prev-box img, .sx-prev-box video { max-width: 100%; max-height: 300px; object-fit: contain; }
.sx-preview .sx-circle { width: 200px; }
.sx-cap-in { margin-top: 10px; }
.sx-aud { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 12px; font-size: 13px; color: var(--muted); }
.sx-chip { display: inline-flex; cursor: pointer; }
.sx-chip input { position: absolute; opacity: 0; pointer-events: none; }
.sx-chip span { padding: 7px 12px; border-radius: 999px; background: var(--bg-soft, #f3f4f6); color: var(--text); font-size: 13px; font-weight: 600; }
.sx-chip input:checked + span { background: var(--primary, #3b82f6); color: #fff; }
.sx-chip--hide input:checked + span { background: #e5484d; }
.sx-progress { margin-right: auto; align-self: center; color: var(--muted); font-size: 13px; }
.sx-psearch { margin: 8px 0; }
.sx-plist { display: grid; gap: 4px; max-height: 50vh; overflow-y: auto; }
.sx-prow { display: flex; align-items: center; gap: 10px; padding: 6px 2px; }
.sx-prow > span:not(.sx-ava) { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.sx-prow small { color: var(--muted); font-size: 12px; }

/* ответ на историю в чате */
.sx-msg-reply { display: flex; align-items: center; gap: 10px; padding: 8px 10px; margin-bottom: 6px; border-left: 3px solid #d946ef; border-radius: 8px; background: color-mix(in srgb, #d946ef 10%, transparent); }
.sx-msg-reply span:last-child { display: flex; flex-direction: column; }
.sx-msg-reply small { font-size: 11.5px; opacity: .75; }
.sx-msg-reply b { font-size: 13.5px; }
.sx-msg-ico { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; color: #fff; background: conic-gradient(#f59e0b, #ef4444, #d946ef, #6366f1, #f59e0b); }

/* ---------------------------------------------------------- совместное прослушивание */
.ls-pill {
  position: fixed; z-index: 9500; left: 50%; bottom: calc(96px + env(safe-area-inset-bottom)); transform: translateX(-50%);
  width: min(420px, calc(100vw - 20px)); border-radius: 22px; color: #fff;
  background: linear-gradient(135deg, #4f46e5, #9333ea 55%, #db2777); box-shadow: 0 14px 40px rgba(79,70,229,.35);
}
html:not(.layout-desktop) .ls-pill { z-index: 100150; bottom: calc(var(--rd-dock-h, 64px) + var(--rd-dock-gap, 10px) * 2 + 82px + env(safe-area-inset-bottom, 0px)); }
html:not(.layout-desktop).mirage-chat-open .ls-pill { top: calc(env(safe-area-inset-top, 0px) + 152px); bottom: auto; }
html.layout-desktop .ls-pill { left: auto; right: 24px; transform: none; bottom: 24px; }
.ls-main { display: flex; align-items: center; gap: 10px; width: 100%; padding: 10px 14px; border: 0; background: none; color: inherit; font: inherit; text-align: left; cursor: pointer; }
.ls-avas { display: flex; }
.ls-ava { --h: 220; width: 30px; height: 30px; border-radius: 50%; display: inline-grid; place-items: center; font-size: 13px; font-weight: 700; color: #fff; border: 2px solid rgba(255,255,255,.85); background: hsl(var(--h) 65% 55%); flex: none; }
.ls-avas .ls-ava + .ls-ava { margin-left: -9px; }
.ls-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.ls-txt b, .ls-txt small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ls-txt b { font-size: 14px; }
.ls-txt small { font-size: 12.5px; opacity: .85; }
.ls-eq { display: flex; gap: 3px; align-items: flex-end; height: 18px; }
.ls-eq i { width: 3px; height: 4px; border-radius: 2px; background: #fff; }
.ls-eq.is-on i { animation: sxEq .9s ease-in-out infinite; }
.ls-eq.is-on i:nth-child(2) { animation-delay: .2s; } .ls-eq.is-on i:nth-child(3) { animation-delay: .4s; }
.ls-more { display: none; padding: 0 14px 14px; }
.ls-pill.is-open .ls-more { display: block; }
.ls-reacts { display: flex; justify-content: space-between; gap: 4px; margin-bottom: 10px; }
.ls-reacts button { flex: 1; height: 40px; border: 0; border-radius: 12px; background: rgba(255,255,255,.16); font-size: 20px; cursor: pointer; }
.ls-people { display: flex; flex-wrap: wrap; gap: 6px 12px; font-size: 13px; }
.ls-person { display: inline-flex; align-items: center; gap: 6px; }
.ls-person .ls-ava { width: 24px; height: 24px; font-size: 11px; }
.ls-hint { margin: 10px 0; font-size: 12.5px; opacity: .85; line-height: 1.35; }
.ls-acts { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.ls-acts .btn { height: 34px; border-radius: 999px; padding: 0 14px; background: rgba(255,255,255,.18); color: #fff; border: 0; }
.ls-acts .fx-danger { color: #fff !important; background: rgba(0,0,0,.22); }
.ls-ctl { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; margin-right: auto; }
.ls-fly { position: absolute; bottom: 60px; font-size: 30px; pointer-events: none; animation: lsFly 1.5s ease-out forwards; }
@keyframes lsFly { from { opacity: 1; transform: translateY(0) scale(.7); } to { opacity: 0; transform: translateY(-140px) scale(1.3); } }
.ls-invite {
  position: fixed; z-index: 100300; top: calc(12px + env(safe-area-inset-top)); left: 50%; transform: translateX(-50%);
  display: flex; align-items: center; gap: 10px; width: min(440px, calc(100vw - 20px)); padding: 10px 10px 10px 14px; border-radius: 18px;
  background: var(--bg-elevated, #fff); color: var(--text); box-shadow: 0 16px 50px rgba(0,0,0,.22); animation: lsIn .25s ease-out;
}
@keyframes lsIn { from { opacity: 0; transform: translate(-50%, -14px); } }
.ls-invite-ico { font-size: 26px; }
.ls-invite > span:nth-child(2) { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.ls-invite b { font-size: 14px; }
.ls-invite small { font-size: 12.5px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ls-invite .btn { border-radius: 999px; }
.ls-x { border: 0; background: none; color: var(--muted); font-size: 15px; cursor: pointer; padding: 6px; }
.ls-tracks { display: grid; gap: 4px; max-height: 60vh; overflow-y: auto; }
.ls-track { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border: 0; border-radius: 12px; background: none; color: var(--text); font: inherit; text-align: left; cursor: pointer; }
.ls-track:hover { background: var(--bg-soft, #f3f4f6); }
.ls-track.is-busy { opacity: .6; }
.ls-track-ico { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; color: #fff; background: linear-gradient(135deg, #6366f1, #db2777); flex: none; }
.ls-card { display: flex; align-items: center; gap: 10px; min-width: 230px; padding: 10px 12px; border-radius: 14px; background: linear-gradient(135deg, rgba(79,70,229,.14), rgba(219,39,119,.14)); cursor: pointer; }
.ls-card-ico { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; font-size: 22px; background: linear-gradient(135deg, #4f46e5, #db2777); flex: none; }
.ls-card-t { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.ls-card-t small { font-size: 12px; opacity: .75; }
.ls-card-t b { font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ls-card .btn { border-radius: 999px; }

/* ---------------------------------------------------------- подарки */
.gf-art { position: relative; display: inline-grid; place-items: center; flex: none; border-radius: 22%; background: radial-gradient(circle at 30% 25%, rgba(255,255,255,.55), transparent 45%), linear-gradient(145deg, var(--g1), var(--g2)); box-shadow: inset 0 -6px 14px rgba(0,0,0,.18), 0 6px 16px color-mix(in srgb, var(--g2) 35%, transparent); }
.gf-art--md { width: 64px; height: 64px; }
.gf-art--lg { width: 84px; height: 84px; }
.gf-art--xl { width: 132px; height: 132px; }
.gf-emoji { font-size: 34px; line-height: 1; filter: drop-shadow(0 3px 4px rgba(0,0,0,.25)); }
.gf-art--lg .gf-emoji { font-size: 46px; }
.gf-art--xl .gf-emoji { font-size: 72px; }
.gf-num { position: absolute; right: -4px; bottom: -4px; padding: 1px 6px; border-radius: 999px; background: #111; color: #fff; font-size: 10.5px; font-weight: 700; }
.gf-shop .fx-modal__card { max-width: 620px; }
.gf-bal { margin-bottom: 10px; font-size: 14px; color: var(--muted); }
.gf-bal b { color: var(--text); }
.gf-tabs { display: flex; gap: 6px; margin-bottom: 10px; }
.gf-tabs button { padding: 8px 14px; border: 0; border-radius: 999px; background: var(--bg-soft, #f3f4f6); color: var(--text); font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; }
.gf-tabs button.is-on { background: var(--text); color: var(--bg, #fff); }
.gf-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(124px, 1fr)); gap: 10px; }
.gf-cell { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 14px 8px 12px; border: 0; border-radius: 18px; background: var(--bg-soft, #f3f4f6); color: var(--text); font: inherit; cursor: pointer; transition: transform .15s; }
.gf-cell:hover { transform: translateY(-2px); }
.gf-cell b { font-size: 14px; text-align: center; }
.gf-price { padding: 4px 10px; border-radius: 999px; background: var(--primary, #3b82f6); color: #fff; font-size: 12.5px; font-weight: 700; }
.gf-lim { font-size: 11.5px; color: #a855f7; font-weight: 600; }
.gf-cell.is-out { opacity: .5; cursor: default; }
.gf-form { display: grid; gap: 10px; }
.gf-picked { display: flex; align-items: center; gap: 14px; padding: 6px 0; }
.gf-picked > div { display: flex; flex-direction: column; gap: 2px; }
.gf-picked b { font-size: 17px; }
.gf-picked span { color: var(--muted); font-size: 13px; }
.gf-anon { display: flex; align-items: center; gap: 8px; font-size: 14px; flex-wrap: wrap; }
.gf-anon small { color: var(--muted); font-size: 12px; }
.gf-burst { position: fixed; z-index: 100700; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; pointer-events: none; background: rgba(0,0,0,.25); animation: lsIn .2s; }
.gf-burst > b { color: #fff; font-size: 20px; text-shadow: 0 2px 10px rgba(0,0,0,.4); }
.gf-burst .gf-art { animation: gfPop .5s cubic-bezier(.3,1.6,.5,1); }
.gf-burst i { position: absolute; left: 50%; top: 46%; width: 10px; height: 10px; border-radius: 3px; background: hsl(calc(var(--a) * 1) 90% 60%); animation: gfConf 1.1s ease-out forwards; }
.gf-burst.is-out { opacity: 0; transition: opacity .35s; }
@keyframes gfPop { from { transform: scale(.2) rotate(-20deg); } }
@keyframes gfConf { to { transform: rotate(var(--a)) translateY(calc(var(--d) * -1.6)); opacity: 0; } }
.peer-profile-gifts { margin: 14px 0 4px; text-align: left; }
.gf-shelf-h { display: flex; align-items: baseline; gap: 8px; margin-bottom: 8px; }
.gf-shelf-h b { font-size: 15px; }
.gf-shelf-h span { color: var(--muted); font-size: 13px; }
.gf-shelf { display: grid; grid-template-columns: repeat(auto-fill, minmax(78px, 1fr)); gap: 8px; }
.gf-sh { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 10px 4px 8px; border: 0; border-radius: 16px; background: var(--bg-soft, #f3f4f6); color: var(--text); font: inherit; cursor: pointer; }
.gf-sh small { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 11px; color: var(--muted); }
.gf-sh.is-hidden { opacity: .45; }
.gf-sh .gf-art--md { width: 54px; height: 54px; }
.gf-sh .gf-emoji { font-size: 28px; }
.gf-hero { display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; padding: 6px 0 4px; }
.gf-hero > b { font-size: 20px; margin-top: 6px; }
.gf-hero-num { color: #a855f7; font-size: 15px; }
.gf-hero > span { color: var(--muted); font-size: 13.5px; }
.gf-hero blockquote { margin: 6px 0 0; padding: 10px 14px; border-radius: 14px; background: var(--bg-soft, #f3f4f6); font-size: 15px; max-width: 100%; }
.gf-tag { padding: 4px 10px; border-radius: 999px; background: color-mix(in srgb, #a855f7 14%, transparent); color: #9333ea !important; font-size: 12px !important; font-weight: 600; }
.gf-acts { display: grid; gap: 8px; margin-top: 16px; }
.gf-acts .btn { height: 44px; border-radius: 999px; margin: 0; }
.gf-msg { display: flex; align-items: center; gap: 12px; min-width: 220px; padding: 10px 12px; border: 0; border-radius: 16px; background: linear-gradient(135deg, rgba(168,85,247,.16), rgba(236,72,153,.16)); color: inherit; font: inherit; text-align: left; cursor: pointer; }
.gf-msg-art { width: 58px; height: 58px; border-radius: 16px; display: grid; place-items: center; font-size: 34px; background: radial-gradient(circle at 30% 25%, rgba(255,255,255,.5), transparent 45%), linear-gradient(145deg, #a855f7, #ec4899); flex: none; }
.gf-msg-t { display: flex; flex-direction: column; min-width: 0; }
.gf-msg-t small { font-size: 12px; opacity: .75; }
.gf-msg-t b { font-size: 15px; }
.gf-msg-t em { font-style: normal; font-size: 12.5px; color: #9333ea; font-weight: 600; margin-top: 2px; }
.peer-gift-btn { background: linear-gradient(135deg, #a855f7, #ec4899) !important; color: #fff !important; border: 0 !important; }
.tg-item--gift { position: relative; }
.tg-item-emoji { position: absolute; right: 12px; top: 30px; font-size: 40px; filter: drop-shadow(0 3px 4px rgba(0,0,0,.2)); }
.tg-cover--gift { flex-direction: column; gap: 4px; }
.tg-cover-emoji { font-size: 54px; line-height: 1; filter: drop-shadow(0 4px 6px rgba(0,0,0,.25)); }

/* ---------------------------------------------------------- платные каналы */
.pc-hero { display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; padding: 4px 0 8px; }
.pc-lock { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; font-size: 30px; color: #fff; background: linear-gradient(135deg, #f59e0b, #a855f7); box-shadow: 0 10px 30px rgba(168,85,247,.35); }
.pc-hero b { font-size: 19px; }
.pc-price { font-size: 26px; font-weight: 800; }
.pc-price small { font-size: 14px; font-weight: 600; color: var(--muted); }
.pc-perks { margin: 2px 0 0; color: var(--muted); font-size: 14px; }
.pc-hero p { margin: 0; color: var(--muted); }
.pc-list { margin: 8px 0; padding-left: 20px; font-size: 14px; line-height: 1.6; }
.pc-auto, .pc-keep { display: flex; align-items: center; gap: 8px; font-size: 14px; margin: 8px 0; flex-wrap: wrap; }
.pc-keep small { flex-basis: 100%; padding-left: 26px; color: var(--muted); font-size: 12px; }
.pc-bal { font-size: 13.5px; color: var(--muted); }
.pc-bal b { color: var(--text); }
.pc-switch { display: flex; align-items: center; gap: 10px; padding: 12px 14px; margin: 10px 0; border-radius: 14px; background: var(--bg-soft, #f3f4f6); font-weight: 600; cursor: pointer; }
.pc-switch input { width: 20px; height: 20px; accent-color: var(--primary); }
.pc-fields { display: grid; gap: 10px; }
.pc-fields .fx-label { display: grid; gap: 6px; font-size: 13px; color: var(--muted); }
.pc-net { font-size: 13.5px; font-weight: 600; color: #16a34a; }
.pc-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 12px; }
.pc-stats div { display: flex; flex-direction: column; align-items: center; padding: 12px 6px; border-radius: 14px; background: var(--bg-soft, #f3f4f6); }
.pc-stats b { font-size: 17px; }
.pc-stats span { font-size: 12px; color: var(--muted); }
.pc-hint { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.pc-row b { font-size: 15px; }

/* ---------------------------------------------------------- тёмная тема */
[data-theme="dark"] .sx-ring .sx-ava,
[data-theme="dark"] .sx-add-dot { border-color: var(--bg, #0b0b10); }
[data-theme="dark"] .gf-num { background: #fff; color: #111; }
[data-theme="dark"] .ls-invite { box-shadow: 0 16px 50px rgba(0,0,0,.6); }
[data-theme="dark"] .gf-msg-t em, [data-theme="dark"] .gf-tag { color: #d8b4fe !important; }

/* Окна поверх мини-плеера (у него z-index 2147482000). */
.fx-modal { z-index: 2147482500; }
html.fx-modal-open #confirmSheet,
html.fx-modal-open .confirm-sheet { z-index: 2147482620 !important; }
html.fx-modal-open #overlayBackdrop { z-index: 2147482610 !important; }
.fx-menu { z-index: 2147482450 !important; }
.sx-viewer { z-index: 2147482300; }
.ls-invite { z-index: 2147482400; }
.ls-pill { z-index: 2147482050 !important; }
.gf-burst { z-index: 2147482700; }
