/* Profile comments («Комментарии») — profile_comments.js. Everything is scoped to .pc-wall: the profile shell
   styles every `.social-main button/textarea`, so the card starts from a neutral reset. */
.pc-wall{--o:99;--acc:var(--pv2-p500,#ef4d9d);--acc3:var(--pv2-p300,#ff9bcf);--tx:var(--pv2-tx,#f2f2f4);--tx2:var(--pv2-tx2,#a3a3ad);--tx3:var(--pv2-tx3,#8b8794);
  --line:var(--pv2-line,rgba(255,255,255,.06));--line2:var(--pv2-line2,rgba(255,255,255,.1));--panel:var(--pv2-panel,#0d0d10);--spring:cubic-bezier(.34,1.56,.64,1);--expo:cubic-bezier(.16,1,.3,1);
  scroll-margin-top:90px}
.pc-wall button{background:none;color:inherit;border:0;border-radius:0;padding:0;font:inherit;min-height:0;cursor:pointer}
.pc-wall button:hover{filter:none}.pc-wall button:disabled{opacity:1;cursor:default}
.pc-i{width:17px;height:17px;flex:none;fill:none;stroke:currentColor;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round}
.pc-wall .pc-head{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap;margin-bottom:14px}
.pc-wall .pc-head h2{display:flex;align-items:center;gap:9px;margin:0;font-size:16px;font-weight:800;letter-spacing:-.01em}
.pc-wall .pc-count{padding:1px 8px;border-radius:999px;background:rgba(239,77,157,.14);color:var(--acc3);font-size:12.5px;font-weight:800}
.pc-wall .pc-whobtn{display:inline-flex;align-items:center;gap:7px;min-height:32px;padding:0 10px 0 9px;border:1px solid var(--line2);border-radius:999px;color:var(--tx2);font-size:12.5px;transition:border-color .2s,color .2s}
.pc-wall .pc-whobtn:hover{border-color:rgba(239,77,157,.5);color:#fff}
.pc-wall .pc-whobtn b{color:#fff;font-weight:700}
.pc-wall .pc-whobtn .pc-i{width:15px;height:15px}

/* composer */
.pc-wall .pc-compose{display:flex;align-items:flex-start;gap:12px;margin-bottom:18px}
.pc-wall .pc-me{flex:none;margin-top:2px}
.pc-wall .pc-field{position:relative;flex:1;min-width:0;border:1px solid var(--line2);border-radius:16px;background:var(--panel);transition:border-color .2s,box-shadow .2s}
.pc-wall .pc-compose.is-active .pc-field,.pc-wall .pc-field:focus-within{border-color:rgba(239,77,157,.55);box-shadow:0 0 0 4px rgba(239,77,157,.1)}
.pc-wall .pc-field textarea{display:block;box-sizing:border-box;width:100%;min-height:46px;max-height:320px;padding:13px 14px 4px;border:0;border-radius:16px;background:none;color:var(--tx);font-family:inherit;font-size:15px;line-height:1.55;resize:none;outline:none;overflow-y:auto}
.pc-wall .pc-field textarea::placeholder{color:var(--tx3)}
.pc-wall .pc-tools{display:none;align-items:center;gap:8px;padding:4px 8px 8px 8px}
.pc-wall .pc-compose.is-active .pc-tools,.pc-wall .pc-compose--reply .pc-tools{display:flex}
.pc-wall .pc-tool{display:inline-flex;align-items:center;gap:6px;min-height:32px;padding:0 10px;border-radius:9px;color:var(--tx2);font-size:12.5px;font-weight:600}
.pc-wall .pc-tool:hover{background:rgba(255,255,255,.06);color:#fff}
.pc-wall .pc-tool .pc-i{width:16px;height:16px}
.pc-wall .pc-hint{margin-left:auto;color:var(--tx3);font-size:11.5px}
.pc-wall .pc-ring{position:relative;display:grid;place-items:center;width:30px;height:30px}
.pc-wall .pc-ring[hidden],.pc-wall .pc-count[hidden],.pc-wall .pc-who[hidden],.pc-wall .pc-more[hidden]{display:none}
.pc-wall .pc-ring svg{position:absolute;inset:0;transform:rotate(-90deg)}
.pc-wall .pc-ring circle{fill:none;stroke:rgba(255,255,255,.1);stroke-width:3}
.pc-wall .pc-ring .pc-ring__v{stroke:var(--acc3);stroke-dasharray:94.25;stroke-linecap:round;transition:stroke-dashoffset .2s}
.pc-wall .pc-ring b{font-size:9.5px;color:var(--tx2);font-weight:700}
.pc-wall .pc-ring.is-warn .pc-ring__v{stroke:#ffc061}.pc-wall .pc-ring.is-warn b{color:#ffc061}
.pc-wall .pc-send{display:inline-flex;align-items:center;gap:7px;min-height:36px;padding:0 15px;border-radius:11px;background:linear-gradient(135deg,var(--acc),#b81c6b);color:#fff;font-size:13.5px;font-weight:700;box-shadow:0 6px 18px rgba(239,77,157,.3);transition:transform .2s var(--spring),opacity .2s}
.pc-wall .pc-send:disabled{opacity:.4;box-shadow:none}
.pc-wall .pc-send:not(:disabled):active{transform:scale(.95)}
.pc-wall .pc-send .pc-i{width:16px;height:16px}
.pc-wall .pc-compose.is-sending .pc-send .pc-i{animation:pc-fly .6s var(--expo) infinite}
@keyframes pc-fly{50%{transform:translate(3px,-3px)}}
.pc-wall .pc-cancel{min-height:36px;padding:0 12px;border-radius:11px;color:var(--tx2);font-size:13px;font-weight:600}
.pc-wall .pc-cancel:hover{color:#fff;background:rgba(255,255,255,.06)}
.pc-wall .pc-compose--reply{margin:10px 0 4px}
.pc-wall .pc-compose--reply .pc-hint{display:none}
.pc-wall .pc-notice{display:flex;align-items:center;gap:10px;margin-bottom:18px;padding:12px 14px;border:1px dashed var(--line2);border-radius:14px;color:var(--tx2);font-size:14px}
.pc-wall .pc-notice .pc-i{color:var(--acc3)}
.pc-wall .pc-notice .pc-btn{margin-left:auto}

/* comments */
.pc-wall .pc-list{display:grid;gap:4px}
.pc-wall .pc-c{position:relative;display:grid;grid-template-columns:40px minmax(0,1fr);gap:12px;padding:12px;margin:0 -12px;border-radius:16px;scroll-margin-top:110px;transition:background .25s}
.pc-wall .pc-c--reply{grid-template-columns:30px minmax(0,1fr);gap:10px;padding:9px 10px;margin:0}
.pc-wall .pc-c.is-pinned{background:linear-gradient(135deg,rgba(239,77,157,.08),transparent 60%);box-shadow:inset 0 0 0 1px rgba(239,77,157,.18)}
.pc-wall .pc-c.is-new{animation:pc-in .5s var(--expo)}
.pc-wall .pc-c.is-leaving{opacity:0;transform:translateX(-8px);transition:opacity .3s,transform .3s}
.pc-wall .pc-c.is-ctx{background:rgba(255,255,255,.05);box-shadow:inset 0 0 0 1px rgba(239,77,157,.35)}
.pc-wall .pc-c.is-target{animation:pc-flash 2.2s var(--expo)}
@keyframes pc-in{from{opacity:0;transform:translateY(-8px)}}
@keyframes pc-flash{0%,35%{background:rgba(239,77,157,.16);box-shadow:inset 0 0 0 2px rgba(239,77,157,.55)}}
.pc-wall .pc-ava a,.pc-wall .pc-ava span{display:block;border-radius:50%}
.pc-ava-fallback{display:grid!important;place-items:center;border-radius:50%;background:linear-gradient(135deg,#402a32,#1d1720);color:#fff;font-weight:800}
.pc-wall .pc-main{min-width:0}
.pc-wall .pc-meta{display:flex;align-items:center;flex-wrap:wrap;gap:4px 8px;min-height:22px}
.pc-wall .pc-name{color:#fff;font-size:14.5px;font-weight:700;text-decoration:none}
.pc-wall .pc-name:hover{color:var(--acc3)}
.pc-wall .pc-name--gone{color:var(--tx3);font-weight:600}
.pc-wall .pc-title:empty{display:none}
.pc-wall .pc-title{display:inline-flex}.pc-wall .pc-title>*{zoom:.78}
.pc-wall .pc-chip{display:inline-flex;align-items:center;gap:4px;padding:2px 8px;border-radius:999px;font-size:11px;font-weight:700;letter-spacing:.02em}
.pc-wall .pc-chip .pc-i{width:12px;height:12px;stroke-width:2.2}
.pc-wall .pc-chip--owner{background:rgba(255,192,97,.13);color:#ffc061}
.pc-wall .pc-chip--pin{background:rgba(239,77,157,.14);color:var(--acc3)}
.pc-wall .pc-chip--first{background:linear-gradient(90deg,rgba(124,196,255,.18),rgba(247,164,194,.18));color:#b9d8ff;text-transform:uppercase;letter-spacing:.06em}
.pc-wall .pc-time{color:var(--tx3);font-size:12.5px;text-decoration:none}
.pc-wall .pc-time:hover{color:var(--tx2);text-decoration:underline}
.pc-wall .pc-edited{color:var(--tx3);font-size:12px;font-style:italic}
.pc-wall .pc-body{margin:4px 0 0;color:var(--tx);font-size:15px;line-height:1.55;overflow-wrap:anywhere}
.pc-wall .pc-c--reply .pc-body{font-size:14.5px}
.pc-wall .pc-body a{color:var(--acc3);text-decoration:underline;text-decoration-color:rgba(255,155,207,.35);text-underline-offset:3px}
.pc-wall .pc-body .pc-at{text-decoration:none;font-weight:700;background:rgba(239,77,157,.12);padding:0 4px;border-radius:5px}
.pc-wall .pc-body--gone{color:var(--tx3);font-style:italic}
.pc-wall .pc-spl{border-radius:4px;cursor:pointer;-webkit-box-decoration-break:clone;box-decoration-break:clone;transition:background-color .4s;
  background-image:radial-gradient(rgba(255,255,255,.8) .6px,transparent .9px),radial-gradient(rgba(255,155,207,.65) .6px,transparent .9px);
  background-size:5px 5px,7px 7px;background-color:rgba(255,255,255,.1);animation:pc-dust 1.6s linear infinite}
.pc-wall .pc-spl .s-tx{color:transparent;transition:color .4s}
.pc-wall .pc-spl.is-open{background:none;animation:none;cursor:auto}
.pc-wall .pc-spl.is-open .s-tx{color:inherit}
.pc-wall .pc-spl:focus-visible{outline:2px solid var(--acc3);outline-offset:2px}
@keyframes pc-dust{to{background-position:5px -5px,-7px 7px}}
.pc-wall .pc-spl a{pointer-events:none}.pc-wall .pc-spl.is-open a{pointer-events:auto}
.pc-wall .pc-acts{display:flex;align-items:center;flex-wrap:wrap;gap:4px;margin-top:7px}
.pc-wall .pc-reacts{display:contents}
.pc-wall .pc-react{position:relative;display:inline-flex;align-items:center;gap:5px;height:28px;padding:0 9px 0 6px;border-radius:999px;background:rgba(255,255,255,.05);box-shadow:inset 0 0 0 1px var(--line);color:var(--tx2);font-size:12.5px;font-weight:700;transition:background .2s,transform .2s var(--spring)}
.pc-wall .pc-react:hover{background:rgba(255,255,255,.09)}
.pc-wall .pc-react.is-mine{background:rgba(239,77,157,.16);box-shadow:inset 0 0 0 1px rgba(239,77,157,.5);color:#fff}
.pc-wall .pc-react .rx{width:20px;height:20px;flex:none;overflow:visible}
.pc-wall .pc-spark{position:absolute;left:14px;top:50%;width:5px;height:5px;margin:-2.5px;border-radius:50%;background:var(--acc3);pointer-events:none;animation:pc-spark .65s ease-out forwards}
@keyframes pc-spark{to{transform:rotate(var(--a)) translateX(22px) scale(.3);opacity:0}}
.pc-wall .pc-act{display:inline-flex;align-items:center;justify-content:center;gap:6px;min-width:30px;height:30px;padding:0 6px;border-radius:9px;color:var(--tx3);font-size:12.5px;font-weight:600;transition:background .15s,color .15s}
.pc-wall .pc-act:hover{background:rgba(255,255,255,.06);color:#fff}
.pc-wall .pc-act--text{padding:0 9px}
.pc-wall .pc-act .pc-i{width:16px;height:16px}
.pc-wall .pc-thread{position:relative;display:grid;gap:2px;margin-top:6px;margin-left:calc(-1 * var(--shift))}
/* Thread: --tail (set by the script) stops the line exactly at the last reply. */
.pc-wall{--pad:12px;--gap:12px;--ava:40px;--rpad:10px;--shift:0px;--thread:#2c2a31}
.pc-wall .pc-c.has-thread::after{content:"";position:absolute;left:calc(var(--pad) + var(--ava) / 2 - 1px);top:calc(var(--pad) + var(--ava) + 5px);bottom:var(--tail,0px);width:2px;border-radius:2px;background:var(--thread);transition:background .25s;pointer-events:none}
.pc-wall .pc-c--reply::before{content:"";position:absolute;left:calc(var(--shift) - (var(--ava) / 2 + var(--gap) + 1px));top:0;width:calc(var(--ava) / 2 + var(--gap) + var(--rpad) - 4px - var(--shift));height:24px;box-sizing:border-box;border:2px solid var(--thread);border-top:0;border-right:0;border-bottom-left-radius:14px;transition:border-color .25s;pointer-events:none}
.pc-wall .pc-c.has-thread:hover{--thread:#6a2f4f}
.pc-wall .pc-morereplies{justify-self:start;margin:4px 0 0 10px;padding:4px 10px;border-radius:8px;color:var(--acc3);font-size:13px;font-weight:700}
.pc-wall .pc-morereplies:hover{background:rgba(239,77,157,.1)}
.pc-wall .pc-editform{margin-top:6px}
.pc-wall .pc-editform textarea{display:block;box-sizing:border-box;width:100%;min-height:70px;padding:10px 12px;border:1px solid rgba(239,77,157,.5);border-radius:12px;background:var(--panel);color:var(--tx);font-family:inherit;font-size:15px;line-height:1.55;resize:none;outline:none}
.pc-wall .pc-editform div{display:flex;justify-content:flex-end;gap:6px;margin-top:8px}
.pc-wall .pc-confirm{display:flex;align-items:center;flex-wrap:wrap;gap:8px;margin-top:8px;padding:8px 10px;border-radius:12px;background:rgba(229,72,77,.08);box-shadow:inset 0 0 0 1px rgba(229,72,77,.3);font-size:13.5px}
.pc-wall .pc-confirm span{margin-right:auto}
.pc-wall .pc-btn,.pc-pop .pc-btn{display:inline-flex;align-items:center;justify-content:center;min-height:34px;padding:0 14px;border-radius:10px;background:linear-gradient(135deg,var(--acc,#ef4d9d),#b81c6b);color:#fff;font-size:13px;font-weight:700;text-decoration:none}
.pc-wall .pc-btn--ghost{background:rgba(255,255,255,.06);color:var(--tx)}
.pc-wall .pc-btn--danger{background:#e5484d}
.pc-wall .pc-more{display:block;width:100%;margin-top:10px;min-height:42px;border-radius:12px;background:rgba(255,255,255,.04);box-shadow:inset 0 0 0 1px var(--line);color:var(--tx2);font-size:13.5px;font-weight:700}
.pc-wall .pc-more:hover{color:#fff;background:rgba(255,255,255,.07)}
.pc-wall .pc-empty{display:grid;justify-items:center;gap:8px;padding:18px 10px 10px;text-align:center}
.pc-wall .pc-empty p{margin:0;max-width:340px;color:var(--tx2);font-size:14px;line-height:1.5}
.pc-wall .pc-empty__art{width:120px;height:80px}
.pc-wall .pc-empty__art .b1{fill:rgba(239,77,157,.16);stroke:rgba(239,77,157,.5);stroke-width:1.5}
.pc-wall .pc-empty__art .b2{fill:rgba(124,196,255,.12);stroke:rgba(124,196,255,.45);stroke-width:1.5}
.pc-wall .pc-empty__art circle{fill:#7cc4ff;animation:pc-dots 1.4s infinite}
.pc-wall .pc-empty__art circle:nth-of-type(2){animation-delay:.2s}.pc-wall .pc-empty__art circle:nth-of-type(3){animation-delay:.4s}
.pc-wall .pc-empty__art .ln{stroke:rgba(255,155,207,.6);stroke-width:3;stroke-linecap:round}
.pc-wall .pc-empty__art .sp{fill:#ffc061}
/* Closed wall with no comments: the lock art replaces the dashed notice. */
.pc-wall:has(.pc-empty--closed) .pc-top .pc-notice{display:none}
.pc-wall .pc-empty--closed{padding:6px 10px 12px}
.pc-wall .pc-empty--closed .pc-empty__art{width:132px;height:92px;overflow:visible}
.pc-wall .pc-empty--closed p b{display:block;margin-bottom:2px;color:var(--tx);font-size:15px;font-weight:700}
.pc-empty--closed .b1{fill:rgba(239,77,157,.1);stroke:rgba(239,77,157,.42);stroke-width:1.5}
.pc-empty--closed .sh{fill:rgba(239,77,157,.14)}
.pc-empty--closed .sk{fill:none;stroke:#ffb3d9;stroke-width:4;stroke-linecap:round}
.pc-empty--closed .kh{fill:#2a0f1d}.pc-empty--closed .kh2{stroke:#2a0f1d;stroke-width:2.6;stroke-linecap:round}
/* Calm loop: the lock floats, every few seconds its shackle lifts and clicks shut; the glow breathes. */
.pc-empty--closed .lk{animation:pc-float 4.8s ease-in-out infinite}
.pc-empty--closed .sk{transform-box:fill-box;transform-origin:center bottom;animation:pc-click 4.8s cubic-bezier(.3,0,.2,1) infinite}
.pc-empty--closed .gl{transform-box:fill-box;transform-origin:center;animation:pc-glow 4.8s ease-in-out infinite}
.pc-empty--closed .sp{transform-box:fill-box;transform-origin:center;animation:pc-twinkle 3.2s ease-in-out infinite}
.pc-empty--closed .sp2{animation-delay:1.6s}
@keyframes pc-float{0%,100%{transform:translateY(0)}50%{transform:translateY(-2.5px)}}
@keyframes pc-click{0%,62%,100%{transform:translateY(0)}70%,74%{transform:translateY(-3.5px)}80%{transform:translateY(.6px)}84%{transform:translateY(0)}}
@keyframes pc-glow{0%,100%{opacity:.55;transform:scale(.92)}50%{opacity:1;transform:scale(1.05)}}
@keyframes pc-twinkle{0%,100%{transform:scale(1) rotate(0);opacity:.9}50%{transform:scale(.5) rotate(45deg);opacity:.35}}
@media(prefers-reduced-motion:reduce){.pc-empty--closed .lk,.pc-empty--closed .sk,.pc-empty--closed .gl,.pc-empty--closed .sp{animation:none}}
@keyframes pc-dots{0%,60%,100%{opacity:.35;transform:translateY(0)}30%{opacity:1;transform:translateY(-2px)}}
.pc-wall .pc-skel{display:grid;gap:14px;padding:6px 0}
.pc-wall .pc-skel i{display:block;height:54px;border-radius:14px;background:linear-gradient(90deg,rgba(255,255,255,.03),rgba(255,255,255,.07),rgba(255,255,255,.03));background-size:200% 100%;animation:pc-shim 1.2s linear infinite}
@keyframes pc-shim{to{background-position:-200% 0}}
.pc-wall .pc-error{color:var(--tx2);font-size:14px}

/* popovers live in <body> */
.pc-pop{position:absolute;z-index:3000;display:grid;gap:2px;min-width:200px;padding:6px;border:1px solid rgba(255,255,255,.14);border-radius:14px;background:#24222b;box-shadow:0 18px 40px rgba(0,0,0,.6),0 0 0 1px rgba(0,0,0,.4);font-family:'Golos Text',system-ui,sans-serif;animation:pc-popin .18s var(--expo,ease)}
@keyframes pc-popin{from{opacity:0;transform:translateY(4px) scale(.97)}}
.pc-pop button{margin:0;min-height:0;box-shadow:none;display:flex;align-items:center;gap:10px;width:100%;min-height:38px;padding:0 10px;border:0;border-radius:9px;background:none;color:#eee4e8;font:600 13.5px 'Golos Text',system-ui,sans-serif;text-align:left;cursor:pointer}
.pc-pop button:hover,.pc-pop button:focus-visible{background:rgba(255,255,255,.07);outline:none;color:#fff}
.pc-pop button.is-danger{color:#ff8a96}
.pc-pop .pc-i{width:16px;height:16px;flex:none;fill:none;stroke:currentColor;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round}
.pc-pop--react{display:flex;min-width:0;gap:4px;padding:6px;border-radius:999px}
.pc-pop--react button{justify-content:center;width:44px;min-height:44px;padding:0;border-radius:50%;transition:transform .2s cubic-bezier(.34,1.56,.64,1),background .2s}
.pc-pop--react button:hover{transform:scale(1.25) translateY(-3px);background:rgba(255,255,255,.06)}
.pc-pop--react button.is-mine{background:rgba(239,77,157,.2)}
.pc-pop--react .pc-r{width:28px;height:28px}
.pc-pop--who{min-width:270px}
.pc-pop--who button{min-height:52px;align-items:center}
.pc-pop--who button span{display:grid;gap:2px}
.pc-pop--who button small{color:#8b8794;font-size:12px;font-weight:500}
.pc-pop--who button[aria-checked=true]{background:rgba(239,77,157,.14);color:#fff}
.pc-toast{position:fixed;left:50%;bottom:32px;z-index:3100;padding:12px 18px;border:1px solid rgba(255,255,255,.12);border-radius:14px;background:#1b1a20;color:#fff;font:600 14px 'Golos Text',system-ui,sans-serif;box-shadow:0 14px 40px rgba(0,0,0,.5);transform:translate(-50%,20px);opacity:0;pointer-events:none;transition:opacity .25s,transform .35s cubic-bezier(.16,1,.3,1)}
.pc-toast.is-on{opacity:1;transform:translate(-50%,0)}

@media(max-width:720px){
  .pc-wall .pc-me{display:none}
  .pc-wall .pc-hint{display:none}
  .pc-wall .pc-tools{flex-wrap:wrap}.pc-wall .pc-send{margin-left:auto}
  .pc-wall .pc-c:not(.pc-c--reply){gap:10px;padding:10px;margin:0 -10px}
  .pc-wall{--pad:10px;--gap:10px}
  .pc-toast{bottom:calc(112px + env(safe-area-inset-bottom))}
}
/* Phones: wider replies, the «⋯» button gives way (long press and the smile open the same menu). */
@media(max-width:560px){
  .pc-wall .pc-compose>.pc-me{display:none!important}
  .pc-wall .pc-compose{margin-bottom:14px}
  .pc-wall .pc-field textarea{min-height:44px;padding:11px 12px 4px;font-size:16px}
  .pc-wall .pc-tool span{display:none}.pc-wall .pc-tool{width:36px;padding:0;justify-content:center}
  .pc-wall .pc-send{min-height:38px;padding:0 14px}
  .pc-wall .pc-head{margin-bottom:12px}
  .pc-wall .pc-whobtn{min-height:30px;font-size:12px}
  .pc-wall .pc-meta{gap:2px 6px}
  .pc-wall .pc-name{font-size:14px}
  .pc-wall .pc-title>*{zoom:.68}
  .pc-wall .pc-chip{padding:2px 6px}
  .pc-wall .pc-chip--owner,.pc-wall .pc-chip--pin{font-size:0;gap:0;padding:3px 5px}
  .pc-wall .pc-chip--owner .pc-i,.pc-wall .pc-chip--pin .pc-i{width:12px;height:12px}
  .pc-wall .pc-time{font-size:12px}
  .pc-wall .pc-body{font-size:15px}
  .pc-wall .pc-act{min-width:36px;height:36px}
  .pc-wall .pc-react{height:30px}
  .pc-wall .pc-c{-webkit-touch-callout:none}
}
/* Phone sheet: a handle, larger emoji, grid of six, safe area. */
.pc-ctx.is-sheet{padding:8px 8px calc(10px + env(safe-area-inset-bottom));border-radius:22px;max-height:82dvh;overflow-y:auto}
.pc-ctx.is-sheet::before{content:"";display:block;width:38px;height:4px;margin:2px auto 8px;border-radius:4px;background:rgba(255,255,255,.22)}
.pc-ctx.is-sheet .pc-rxb{width:46px;height:46px}
.pc-ctx.is-sheet .pc-rxb .rx{width:34px;height:34px}
.pc-ctx.is-sheet .pc-rgrid .pc-rxb{width:46px;height:46px}
.pc-ctx.is-sheet .pc-cacts button{min-height:48px;font-size:15px}
.pc-scrim.is-sheet{background:rgba(5,4,6,.6)}
@media(max-width:560px){.pc-wall{--shift:20px}.pc-wall .pc-c--reply::before{border-bottom-left-radius:10px}.pc-wall .pc-acts{gap:2px}.pc-wall .pc-act--text{padding:0 7px}}
@media(max-width:560px),(hover:none){.pc-wall .pc-act[aria-label="Ещё"]{display:none}}
/* Touch: a long press opens our menu — no system text selection, callout or tap flash (copy is in the menu). */
@media(hover:none){.pc-wall .pc-c{-webkit-user-select:none;user-select:none;-webkit-touch-callout:none;-webkit-tap-highlight-color:transparent}.pc-wall .pc-c textarea{-webkit-user-select:text;user-select:text}}
@media(prefers-reduced-motion:reduce){.pc-wall *,.pc-pop{animation:none!important;transition:none!important}}

/* Context menu on a comment (right click / long press), styled after the room chat menu. */
.pc-scrim{position:fixed;inset:0;z-index:3000;background:rgba(5,4,6,.35);animation:pc-fade .2s}
@keyframes pc-fade{from{opacity:0}}
.pc-ctx{position:fixed;z-index:3001;width:288px;padding:6px;border:1px solid rgba(255,255,255,.12);border-radius:18px;background:#1d1b22;box-shadow:0 24px 60px rgba(0,0,0,.7);color:#eee4e8;
  font-family:'Golos Text',system-ui,sans-serif;transform-origin:var(--ox,0) var(--oy,0);animation:pc-ctxin .3s cubic-bezier(.34,1.56,.64,1);-webkit-user-select:none;user-select:none}
@keyframes pc-ctxin{from{opacity:0;transform:scale(.85)}}
.pc-ctx{max-height:calc(100dvh - 16px);overflow-x:hidden;overflow-y:auto;scrollbar-width:none}
.pc-ctx button{margin:0;padding:0;min-width:0;min-height:0;border:0;border-radius:0;background:none;box-shadow:none;color:inherit;font:inherit;font-weight:inherit;cursor:pointer}
.pc-ctx .pc-rrow{display:flex;align-items:center;justify-content:space-between;gap:2px;padding:2px 2px 6px}
.pc-ctx .pc-rxb{display:grid;place-items:center;flex:none;justify-self:center;width:38px;height:38px;border-radius:50%;transition:transform .3s cubic-bezier(.34,1.56,.64,1),background .15s}
.pc-ctx .pc-rxb .rx{width:28px;height:28px;overflow:visible}
.pc-ctx .pc-rxb:hover,.pc-ctx .pc-rxb:focus-visible{transform:scale(1.16);background:rgba(255,255,255,.08);outline:none}
.pc-ctx .pc-rxb.is-on{background:rgba(239,77,157,.24);box-shadow:inset 0 0 0 1px rgba(239,77,157,.5)}
.pc-ctx .pc-rmore{flex:none;display:grid;place-items:center;width:28px;height:38px;border-radius:50%;color:#8b8794}
.pc-ctx .pc-rmore:hover{color:#fff;background:rgba(255,255,255,.06)}
.pc-ctx .pc-rmore .pc-i{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:2.2;transition:transform .3s cubic-bezier(.34,1.56,.64,1)}
.pc-ctx.is-full .pc-rmore .pc-i{transform:rotate(180deg)}
.pc-ctx .pc-rgrid{display:none;grid-template-columns:repeat(6,1fr);gap:2px;padding:0 2px 6px}
.pc-ctx.is-full .pc-rgrid{display:grid;animation:pc-fade .25s}
.pc-ctx .pc-rgrid .pc-rxb{width:38px;height:38px}
.pc-ctx .pc-rnote{margin:0 8px 6px;padding-bottom:6px;border-bottom:1px solid rgba(239,77,157,.16);color:#8b8794;font-size:11.5px}
.pc-ctx .pc-cacts{display:grid}
.pc-ctx .pc-cacts button{display:flex;align-items:center;gap:11px;min-height:40px;padding:0 10px;border-radius:10px;font-size:14px;font-weight:600;text-align:left}
.pc-ctx .pc-cacts button:hover,.pc-ctx .pc-cacts button:focus-visible{background:rgba(255,255,255,.07);color:#fff;outline:none}
.pc-ctx .pc-cacts button.is-danger{color:#ff8a96}
.pc-ctx .pc-i{width:17px;height:17px;flex:none;fill:none;stroke:currentColor;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round}
.pc-ctx .pc-cconfirm{display:grid;gap:8px;padding:10px}
.pc-ctx .pc-cconfirm b{font-size:15px}.pc-ctx .pc-cconfirm p{margin:0;color:#a8a3b0;font-size:13px;line-height:1.45}
.pc-ctx .pc-cconfirm div{display:flex;justify-content:flex-end;gap:6px;margin-top:4px}
.pc-ctx .pc-btn{display:inline-flex;align-items:center;min-height:36px;padding:0 14px;border-radius:10px;background:rgba(255,255,255,.07);color:#fff;font-weight:700;font-size:13px}
.pc-ctx .pc-btn--danger{background:#e5484d}
.pc-ctx.is-sheet{left:8px!important;right:8px;top:auto!important;bottom:calc(10px + env(safe-area-inset-bottom));width:auto;transform-origin:50% 100%;animation:pc-sheet .35s cubic-bezier(.16,1,.3,1)}
@keyframes pc-sheet{from{transform:translateY(40px);opacity:0}}
.pc-ctx.is-sheet .pc-rxb .rx{width:32px;height:32px}

/* Reactions are animated Noto emoji images (profile_reactions.js); still frame at rest. */
.rx{display:block;object-fit:contain;-webkit-user-drag:none;user-select:none;pointer-events:none}
@media(prefers-reduced-motion:reduce){.pc-ctx,.pc-scrim{animation:none!important}}

/* ---------- Title discussion (title_comments.py): the same widget under the player on /anime/title/… ---------- */
.tc-wall{--panel:#16151a;margin:18px 0 0;padding:20px 22px 14px;border:1px solid rgba(255,255,255,.045);border-radius:14px;background:var(--surface-2,#111114);color:var(--tx);font-family:'Golos Text',system-ui,sans-serif;font-size:15px;line-height:1.45;text-align:left}
.tc-wall .pc-head h2{font-size:18px}
.tc-wall .tc-sort{display:inline-flex;gap:2px;padding:3px;border:1px solid var(--line2);border-radius:12px;background:rgba(255,255,255,.02)}
.tc-wall .tc-sort button{min-height:30px;padding:0 12px;border-radius:9px;color:var(--tx2);font-size:13px;font-weight:600;transition:background .2s,color .2s}
.tc-wall .tc-sort button:hover{color:#fff}
.tc-wall .tc-sort button[aria-selected=true]{background:rgba(239,77,157,.16);color:#fff}
.tc-wall .tc-sort button:focus-visible,.tc-wall .tc-rate:focus-visible,.tc-wall .tc-reveal:focus-visible{outline:2px solid var(--acc3);outline-offset:2px}
/* Monikora score: users' ratings from their lists, separate from Shikimori. */
.tc-wall .tc-score{display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:22px;margin:0 0 18px;padding:14px 18px;border:1px solid var(--line);border-radius:14px;background:linear-gradient(120deg,rgba(239,77,157,.07),rgba(255,255,255,.015) 55%)}
.tc-wall .tc-score[hidden]{display:none}
.tc-wall .tc-score__main{display:grid;grid-template-columns:auto auto;align-items:center;column-gap:10px;row-gap:2px}
.tc-wall .tc-score__main>b{grid-row:span 2;font-size:34px;font-weight:800;line-height:1;letter-spacing:-.02em;color:#fff;font-variant-numeric:tabular-nums}
.tc-wall .tc-score__main small{color:var(--tx3);font-size:12px}
.tc-wall .tc-stars{position:relative;display:inline-block;color:rgba(255,255,255,.14);font-size:15px;letter-spacing:2px;line-height:1}
.tc-wall .tc-stars::before{content:"★★★★★";position:absolute;inset:0;width:var(--v);overflow:hidden;color:#ffc061;white-space:nowrap}
.tc-wall .tc-score__bars{display:grid;gap:3px;max-width:340px}
.tc-wall .tc-score__bars div{display:grid;grid-template-columns:10px minmax(0,1fr) 26px;align-items:center;gap:8px;color:var(--tx3);font-size:11px;font-variant-numeric:tabular-nums}
.tc-wall .tc-score__bars i{height:5px;border-radius:5px;background:rgba(255,255,255,.06);overflow:hidden}
.tc-wall .tc-score__bars i b{display:block;height:100%;border-radius:5px;background:linear-gradient(90deg,#ef4d9d,#ff9bcf)}
.tc-wall .tc-score__bars em{font-style:normal}
.tc-wall .tc-rate{display:inline-flex;align-items:center;gap:7px;min-height:36px;padding:0 14px;border:1px solid rgba(255,192,97,.35);border-radius:11px;color:#ffc061;font-size:13px;font-weight:700;transition:background .2s}
.tc-wall .tc-rate:hover{background:rgba(255,192,97,.1)}
.tc-wall .tc-rate.is-rated{flex-direction:column;align-items:flex-start;gap:1px;min-height:44px;padding:5px 14px;color:var(--tx3);font-size:11px;font-weight:600}
.tc-wall .tc-rate.is-rated b{color:#ffc061;font-size:15px;letter-spacing:1.5px;line-height:1.1}
.tc-wall .tc-rate.is-rated b i{font-style:normal;color:rgba(255,255,255,.16)}
.tc-wall .tc-rate .pc-i{width:16px;height:16px}
/* Composer: episode tag (opens the episode picker). */
.tc-wall .tc-ep.is-set{background:rgba(124,196,255,.13);color:#b9d8ff}
.tc-wall .tc-ep.is-set:hover{background:rgba(124,196,255,.2);color:#d6e8ff}
.tc-wall .tc-ep.is-ctx{background:rgba(255,255,255,.08);color:#fff}
.tc-wall .tc-ep__x{display:inline-grid;place-items:center;width:18px;height:18px;margin:0 -4px 0 2px;border-radius:50%;font-style:normal;font-size:14px;line-height:1;color:inherit;opacity:.7}
.tc-wall .tc-ep__x:hover{opacity:1;background:rgba(255,255,255,.12)}
.tc-wall .tc-ep__x[hidden]{display:none}
/* Comment chips: episode, «лучший», author's rating/status from the list. */
.tc-wall .tc-chip-ep{background:rgba(124,196,255,.12);color:#b9d8ff}
.tc-wall .tc-chip-best{background:linear-gradient(90deg,rgba(255,192,97,.2),rgba(239,77,157,.18));color:#ffd28a}
.tc-wall .tc-list{display:inline-flex;align-items:center;gap:3px;color:var(--tx3);font-size:12px;font-weight:600;white-space:nowrap}
.tc-wall .tc-list .pc-i{width:12px;height:12px;color:#ffc061;fill:#ffc061;stroke:none}
/* Spoiler protection: comments about episodes the viewer has not finished. */
.tc-wall .tc-gate{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin-top:2px;padding:10px 12px;border:1px dashed rgba(255,255,255,.12);border-radius:12px;background:repeating-linear-gradient(135deg,rgba(255,255,255,.025) 0 8px,transparent 8px 16px);color:var(--tx2);font-size:13.5px}
.tc-wall .tc-gate .pc-i{width:16px;height:16px;flex:none;color:var(--tx3)}
.tc-wall .tc-gate span{flex:1;min-width:150px}
.tc-wall .tc-reveal{min-height:30px;padding:0 12px;border-radius:9px;background:rgba(255,255,255,.07);color:#fff;font-size:12.5px;font-weight:700}
.tc-wall .tc-reveal:hover{background:rgba(255,255,255,.12)}
.tc-wall .tc-hidden[hidden]{display:none}
/* Time codes jump the player to the moment. */
.pc-wall .pc-tc{display:inline-flex;align-items:center;gap:3px;padding:0 6px 0 4px;border-radius:7px;background:rgba(239,77,157,.13);color:var(--acc3);font-weight:600;text-decoration:none;font-variant-numeric:tabular-nums;white-space:nowrap;transition:background .2s}
.pc-wall .pc-tc:hover{background:rgba(239,77,157,.24);color:#fff}
.pc-wall .pc-tc .pc-i{width:11px;height:11px;fill:currentColor;stroke:none}
/* Monikora score next to the Shikimori one in the title header. */
.title-rating .tc-mrating{display:inline-flex;align-items:center;gap:8px;margin-left:6px}
.title-rating .tc-mrating strong{border-color:rgba(239,77,157,.3);background:rgba(239,77,157,.09);color:#ff9bcf}
@media(max-width:720px){
  .tc-wall .tc-score{grid-template-columns:auto minmax(0,1fr);gap:14px 18px}
  .tc-wall .tc-rate{grid-column:1/-1;justify-content:center}
  .tc-wall .tc-rate.is-rated{align-items:center}
}
@media(max-width:560px){
  .tc-wall{margin-top:12px;padding:16px 14px 10px;border-radius:12px}
  .tc-wall .pc-head{gap:12px}
  .tc-wall .tc-sort{width:100%}.tc-wall .tc-sort button{flex:1;padding:0 6px}
  .tc-wall .tc-score{grid-template-columns:1fr;padding:12px 14px}
  .tc-wall .tc-score__bars{max-width:none}
  .tc-wall .tc-ep.is-set{width:auto;padding:0 10px}.tc-wall .tc-ep.is-set span{display:inline}
}
.tc-wall .user-avatar .avatar-face{display:grid;place-items:center;text-align:center}
.tc-wall a.pc-tc,.tc-wall a.pc-tc:hover{text-decoration:none}

/* Panels from the discussion (episode picker, rating): the context-menu shell with their own content. */
.pc-ctx.tc-panel{width:320px;padding:14px;color:#eee4e8}
.tc-panel .tc-panel__h{display:grid;gap:3px;margin:0 2px 12px}
.tc-panel .tc-panel__h b{font-size:14.5px;font-weight:800;color:#fff}
.tc-panel .tc-panel__h small{font-size:12px;line-height:1.4;color:#8b8794}
.tc-panel .tc-panel__f{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-top:12px;padding-top:10px;border-top:1px solid rgba(255,255,255,.07)}
.pc-ctx.tc-panel .tc-panel__none{min-height:32px;padding:0 12px;border-radius:9px;background:rgba(255,255,255,.06);color:#d9d4df;font-size:12.5px;font-weight:700}
.pc-ctx.tc-panel .tc-panel__none:hover{background:rgba(255,255,255,.11);color:#fff}
/* Episode picker: a grid like the player's episode bar. */
.tc-eppick .tc-epgrid{display:grid;grid-template-columns:repeat(auto-fill,minmax(42px,1fr));gap:6px;max-height:228px;padding:2px;margin:-2px;overflow-y:auto;scrollbar-width:thin;scrollbar-color:#493039 transparent}
.pc-ctx.tc-eppick .tc-epgrid button{height:40px;border:1px solid rgba(255,255,255,.07);border-radius:10px;background:rgba(255,255,255,.03);color:#b5aebe;font-size:13px;font-weight:700;font-variant-numeric:tabular-nums;transition:background .15s,border-color .15s,color .15s,transform .15s}
.pc-ctx.tc-eppick .tc-epgrid button:hover{border-color:rgba(255,255,255,.2);background:rgba(255,255,255,.07);color:#fff}
.pc-ctx.tc-eppick .tc-epgrid button.is-seen{background:linear-gradient(rgba(189,96,130,.18),rgba(189,96,130,.18));color:#edb1c7}
.pc-ctx.tc-eppick .tc-epgrid button.is-on{border-color:rgba(124,196,255,.7);background:rgba(124,196,255,.18);color:#fff;box-shadow:0 0 0 3px rgba(124,196,255,.12)}
.pc-ctx.tc-eppick .tc-epgrid button:focus-visible{outline:2px solid #ff9bcf;outline-offset:1px}
.tc-eppick .tc-seen{display:inline-flex;align-items:center;gap:6px;color:#8b8794;font-size:11.5px}
.tc-eppick .tc-seen i{width:12px;height:12px;border-radius:4px;background:rgba(189,96,130,.35)}
/* Rating: five stars with words, optional list status. */
.tc-ratepick .tc-starpick{display:flex;justify-content:center;gap:6px;margin:2px 0 4px}
.pc-ctx.tc-ratepick .tc-starpick button{display:grid;place-items:center;width:48px;height:48px;border-radius:14px;color:rgba(255,255,255,.14);transition:transform .25s cubic-bezier(.34,1.56,.64,1),color .15s}
.pc-ctx.tc-ratepick .tc-starpick button svg{width:36px;height:36px;fill:currentColor;stroke:rgba(255,255,255,.08);stroke-width:1}
.pc-ctx.tc-ratepick .tc-starpick button.is-lit{color:#ffc061}
.pc-ctx.tc-ratepick .tc-starpick button.is-lit svg{stroke:none;filter:drop-shadow(0 0 10px rgba(255,192,97,.35))}
.pc-ctx.tc-ratepick .tc-starpick button:hover{transform:scale(1.14)}
.pc-ctx.tc-ratepick .tc-starpick button:focus-visible{outline:2px solid #ff9bcf;outline-offset:0}
.pc-ctx.tc-ratepick .tc-starpick button.is-pop{animation:tc-pop .45s cubic-bezier(.34,1.56,.64,1)}
@keyframes tc-pop{40%{transform:scale(1.35) rotate(-8deg)}}
.tc-ratepick .tc-rateword{min-height:22px;text-align:center;font-size:15px;font-weight:800;color:#ffc061}
.tc-ratepick .tc-rateword[data-v="0"]{color:#8b8794;font-size:13px;font-weight:600}
.tc-ratepick .tc-ratestatus{display:grid;gap:8px;margin-top:12px;padding:10px;border-radius:12px;background:rgba(255,255,255,.035)}
.tc-ratepick .tc-ratestatus>span{font-size:12px;color:#a3a3ad}
.tc-ratepick .tc-ratestatus div{display:flex;flex-wrap:wrap;gap:6px}
.pc-ctx.tc-ratepick .tc-ratestatus button{min-height:30px;padding:0 11px;border:1px solid rgba(255,255,255,.1);border-radius:999px;color:#c9c3d1;font-size:12.5px;font-weight:600}
.pc-ctx.tc-ratepick .tc-ratestatus button:hover{border-color:rgba(255,255,255,.25);color:#fff}
.pc-ctx.tc-ratepick .tc-ratestatus button[aria-pressed=true]{border-color:rgba(239,77,157,.6);background:rgba(239,77,157,.15);color:#fff}
.tc-ratepick .tc-ratenote{margin-left:auto;font-size:11px;line-height:1.35;color:#8b8794;text-align:right}
.tc-ratepick.is-busy{pointer-events:none}.tc-ratepick.is-busy .tc-starpick{opacity:.7}
.pc-ctx.tc-panel.is-sheet{width:auto;padding:8px 16px calc(16px + env(safe-area-inset-bottom))}
.pc-ctx.tc-eppick.is-sheet .tc-epgrid{grid-template-columns:repeat(auto-fill,minmax(48px,1fr));max-height:46dvh}
.pc-ctx.tc-eppick.is-sheet .tc-epgrid button{height:46px}
.pc-ctx.tc-ratepick.is-sheet .tc-starpick button{width:54px;height:54px}
.pc-ctx.tc-ratepick.is-sheet .tc-starpick button svg{width:40px;height:40px}
@media(prefers-reduced-motion:reduce){.pc-ctx.tc-ratepick .tc-starpick button,.pc-ctx.tc-ratepick .tc-starpick button.is-pop{transition:none;animation:none}}
.pc-ctx.tc-ratepick .tc-starpick button,.pc-ctx.tc-ratepick .tc-starpick button:hover,.pc-ctx.tc-ratepick .tc-starpick button:focus{background:none;box-shadow:none}
