/* ============================== yoru v21 — black hole backdrop, card flip, beam search, library, chat ============================== */

/* ---------- the black hole sits behind everything, quiet and dark ---------- */
body::after{display:none!important}
#bh{position:fixed;inset:0;width:100vw;height:100vh;z-index:-2;pointer-events:none;opacity:0;transition:opacity 1.2s ease;background:#000}
#bh.on{opacity:.72}
html.bh-off #bh{opacity:0!important;transition:opacity .4s}
/* a veil keeps text crisp: dark on the reading side and toward the bottom */
body::before{content:""!important;display:block!important;position:fixed;inset:0;z-index:-1;pointer-events:none;
  background:linear-gradient(90deg,rgba(0,0,0,.55),rgba(0,0,0,.1) 55%,transparent),linear-gradient(0deg,rgba(0,0,0,.75),transparent 45%)!important;filter:none!important;opacity:1!important}
html.bh-off body::before{background:#000!important}
@media (max-width:760px){#bh.on{opacity:.6}}

/* ---------- glass cards (subtle) + the flip face ---------- */
.pc{background:linear-gradient(160deg,rgba(255,255,255,.06),rgba(255,255,255,.015))!important;box-shadow:inset 0 0 0 1px rgba(255,255,255,.08),0 18px 40px -24px rgba(0,0,0,.9)!important;transform-style:preserve-3d;will-change:auto}
.pc-bk{position:absolute!important;inset:0!important;left:0!important;top:0!important;width:100%!important;height:100%!important;margin:0!important;padding:0!important;z-index:6;display:none;flex-direction:column;border-radius:inherit;overflow:hidden;background:#f4f4f6;color:#0b0b0f}
.pc.bk-on .pc-bk{display:flex}
.pc-bk-art{position:relative;flex:1 1 58%;min-height:0;overflow:hidden;background:#ddd}
.pc-bk-art img{width:100%;height:100%;object-fit:cover;object-position:center 20%;display:block}
.pc-bk-in{flex:0 0 auto;display:flex;flex-direction:column;gap:4px;padding:12px 12px 12px;background:#f4f4f6}
.pc-bk-in b{font:800 14.5px/1.2 var(--f);letter-spacing:-.02em;color:#0b0b0f;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.pc-bk-in small{font:600 11.5px var(--fm);color:#55555f;letter-spacing:.02em}
.pc-bk-in em{font-style:normal;font-size:12.5px;line-height:1.4;color:#2a2a33;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.pc-bk-go{align-self:flex-start;margin-top:4px;display:inline-flex;align-items:center;gap:6px;height:30px;padding:0 12px;border-radius:999px;background:#0b0b0f;color:#fff;font:700 12.5px var(--f)}
.pc.bk-on .pc-top{z-index:7}

/* ---------- search: liquid glass with a travelling beam ---------- */
@property --bb{syntax:"<angle>";initial-value:0deg;inherits:false}
#hdr .hsearch{position:relative;isolation:isolate;overflow:visible!important;
  background:linear-gradient(180deg,rgba(255,255,255,.09),rgba(255,255,255,.03))!important;border:1px solid rgba(255,255,255,.1)!important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.14),inset 0 0 40px rgba(255,255,255,.03)!important}
#hdr .hsearch::before{content:"";position:absolute;inset:-1px;border-radius:inherit;padding:1.5px;pointer-events:none;z-index:-1;
  background:conic-gradient(from var(--bb),transparent 0 62%,#6ad7ff 70%,#b79bff 78%,#ff8fb8 86%,#ffd27a 92%,transparent 98%);
  -webkit-mask:linear-gradient(#000 0 0) content-box,linear-gradient(#000 0 0);-webkit-mask-composite:xor;mask:linear-gradient(#000 0 0) content-box exclude,linear-gradient(#000 0 0);
  animation:bbSpin 3.1s linear infinite}
#hdr .hsearch::after{content:"";position:absolute;inset:-6px;border-radius:inherit;z-index:-2;pointer-events:none;opacity:.35;filter:blur(10px);
  background:conic-gradient(from var(--bb),transparent 0 66%,#6ad7ff 74%,#b79bff 82%,#ff8fb8 90%,transparent 98%);animation:bbSpin 3.1s linear infinite}
@keyframes bbSpin{to{--bb:360deg}}
html.is-scrolling #hdr .hsearch::before,html.is-scrolling #hdr .hsearch::after{animation-play-state:paused}
@media (prefers-reduced-motion:reduce){#hdr .hsearch::before,#hdr .hsearch::after{animation:none}}

/* ---------- genres: one calm, monochrome style ---------- */
.g20-x{background:linear-gradient(160deg,rgba(255,255,255,.07),rgba(255,255,255,.015))!important;border:1px solid rgba(255,255,255,.1)!important}
.g20-x:hover{border-color:rgba(255,255,255,.28)!important}
.g20-t{background:linear-gradient(160deg,rgba(255,255,255,.06),rgba(255,255,255,.015))!important;border:1px solid rgba(255,255,255,.08)!important}
.g20-t.lit .g20-art img{opacity:.42;filter:saturate(.75)}
.g20-t:hover .g20-art img{opacity:.62;filter:saturate(1)}
.gc .gc-flash{background:#fff!important}

/* ---------- library: big banner + history ---------- */
.lhero.lh-big{min-height:min(78vh,640px)!important;display:flex;align-items:flex-end;padding-bottom:36px}
.lhero.lh-big .lhero-in{display:grid!important;grid-template-columns:minmax(0,1fr) minmax(0,440px);align-items:end;gap:28px;width:100%}
.lh-cont{grid-column:2;grid-row:1 / span 2;display:block;border-radius:24px;overflow:hidden;color:#fff;background:rgba(10,10,14,.72);border:1px solid rgba(255,255,255,.12);box-shadow:0 30px 70px -30px rgba(0,0,0,.95);transition:transform .4s var(--spring),border-color .2s}
.lh-cont:hover{transform:translateY(-4px);border-color:rgba(255,255,255,.3)}
.lh-thumb{position:relative;display:block;aspect-ratio:16/9;background:#111}
.lh-thumb img{width:100%;height:100%;object-fit:cover;display:block}
.lh-play{position:absolute;left:50%;top:50%;translate:-50% -50%;width:58px;height:58px;border-radius:50%;display:grid;place-items:center;background:#fff;color:#000;box-shadow:0 10px 30px rgba(0,0,0,.5)}
.lh-txt{display:flex;flex-direction:column;gap:4px;padding:16px 18px 18px}
.lh-txt small{font:600 11.5px var(--fm);letter-spacing:.12em;text-transform:uppercase;color:var(--accent)}
.lh-txt b{font:800 21px/1.15 var(--f);letter-spacing:-.03em}
.lh-txt > span:not(.lh-bar){color:rgba(255,255,255,.65);font-size:13.5px}
.lh-bar{display:block;height:4px;border-radius:4px;background:rgba(255,255,255,.12);overflow:hidden;margin-top:8px}
.lh-bar i{display:block;height:100%;background:var(--accent);border-radius:4px}
@media (max-width:900px){.lhero.lh-big .lhero-in{grid-template-columns:minmax(0,1fr)}.lh-cont{grid-column:auto;grid-row:auto}.lhero.lh-big{min-height:0!important}}
@media (max-width:600px){
  .lhero .lstats{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:8px!important}
  .lhero .lstat{padding:10px 12px!important;border-radius:16px!important}
  .lhero .lstat b{font-size:20px!important}
  .lhero .lstat > span{width:30px!important;height:30px!important;border-radius:10px!important;margin-bottom:6px}
}
.hx-sec .sh{align-items:center}
.hx-g{margin-top:18px}
.hx-g h3{font:600 12px var(--fm);letter-spacing:.12em;text-transform:uppercase;color:rgba(255,255,255,.5);margin:0 0 10px}
.hx{display:grid;grid-template-columns:150px minmax(0,1fr) auto;align-items:center;gap:16px;padding:10px;border-radius:18px;margin-bottom:8px;background:rgba(255,255,255,.03);border:1px solid rgba(255,255,255,.06);transition:background .2s}
.hx:hover{background:rgba(255,255,255,.06)}
.hx-th{position:relative;display:block;aspect-ratio:16/9;border-radius:12px;overflow:hidden;background:#111}
.hx-th img{width:100%;height:100%;object-fit:cover}
.hx-th .lh-bar{position:absolute;left:8px;right:8px;bottom:6px;margin:0;height:3px}
.hx-t b{display:block;font-size:15.5px;color:#fff;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.hx-t small{color:rgba(255,255,255,.55);font-size:13px}
.hx-a{display:flex;gap:8px;align-items:center}
@media (max-width:600px){.hx{grid-template-columns:104px minmax(0,1fr);gap:12px}.hx-a{grid-column:1 / -1;justify-content:flex-end}}

/* ---------- live chat: proper bubbles and a calmer panel ---------- */
.chat{border-radius:24px!important;box-shadow:0 40px 90px -30px rgba(0,0,0,.95),0 0 0 1px rgba(255,255,255,.08)!important}
.chat .msg{gap:10px!important;padding:6px 14px!important;align-items:flex-start}
.chat .msg b{font-size:13px!important;color:#fff}
.chat .msg time{font-size:11px!important;color:rgba(255,255,255,.4)!important;margin-left:6px}
.chat .msg p{display:inline-block;max-width:100%;margin:4px 0 0!important;padding:8px 12px;border-radius:4px 16px 16px 16px;background:rgba(255,255,255,.07);color:rgba(255,255,255,.92);font-size:14px;line-height:1.45;word-break:break-word}
.chat .msg p img.gif{margin:2px 0}
.up-btn{display:inline-grid;place-items:center;padding:0 10px!important}
.up-btn.busy{opacity:.5;pointer-events:none}
#cF .up-btn,#waIn .up-btn,#wtF .up-btn{height:44px;border-radius:14px}

/* ---------- community + together ---------- */
.chub-in h1,.wt-hero h1{letter-spacing:-.05em}
main .rm{transition:transform .35s var(--spring),border-color .2s!important}
main .rm:hover{transform:translateY(-3px)}
html.touch main .rm:hover{transform:none}
