/* ============================== yoru v8 ============================== */

/* ---------- header search: show its label whenever there's room ---------- */
@media (max-width:1180px) and (min-width:821px){.hsearch span{display:inline!important}.hsearch{padding:0 18px!important;justify-content:flex-start!important;gap:10px}}

/* ---------- watch: one calm Playback card ---------- */
.wbar:has(#lang){display:none!important}
.pb{display:flex;flex-direction:column;gap:2px;padding:6px 18px 10px!important;border-radius:22px!important}
.pb-h{display:flex;align-items:center;gap:8px;flex-wrap:wrap;padding:10px 0 8px}
.pb-h b{font-size:15.5px;letter-spacing:-.02em;margin-right:auto}
.pb-ok{display:inline-flex;align-items:center;gap:5px;height:26px;padding:0 9px;border-radius:8px;font-size:12px;font-weight:600;color:#7ee6a8;background:rgba(126,230,168,.1)}
.pb-ok.alt{color:var(--accent);background:color-mix(in srgb,var(--accent) 10%,transparent)}
.pb-row{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:54px;border-top:1px solid rgba(255,255,255,.06)}
.pb-k{font-size:14px;color:var(--text2)}
.pb-seg{display:flex;padding:4px;border-radius:13px;background:rgba(255,255,255,.05);border:1px solid rgba(255,255,255,.08)}
.pb-seg button{height:34px;padding:0 14px;border-radius:9px;font-size:13.5px;font-weight:600;color:var(--muted);transition:background .2s,color .2s}
.pb-seg button.on{background:#fff;color:#08080b}
.pb-seg button:disabled{opacity:.35;cursor:not-allowed}
.pb-dd{position:relative}
.pb-sel{display:inline-flex;align-items:center;gap:8px;height:40px;padding:0 14px;border-radius:12px;font-size:14px;font-weight:600;background:rgba(255,255,255,.06);border:1px solid rgba(255,255,255,.1)}
.pb-menu{position:absolute;right:0;top:calc(100% + 6px);z-index:30;min-width:200px;max-height:280px;overflow:auto;padding:6px;border-radius:16px;background:rgba(18,18,24,.98);border:1px solid rgba(255,255,255,.12);box-shadow:0 26px 60px -20px rgba(0,0,0,.9);animation:qmIn .2s var(--ease);scrollbar-width:none}
.pb-menu button{display:flex;width:100%;height:38px;align-items:center;padding:0 12px;border-radius:10px;font-size:14px;color:var(--text2);text-align:left}
.pb-menu button:hover{background:rgba(255,255,255,.07);color:#fff}
.pb-menu button.on{color:var(--accent-ink);background:var(--accent)}
.pb-wait{display:block;padding:10px 12px;font-size:13px;color:var(--muted)}
.pb-help{border-top:1px solid rgba(255,255,255,.06);padding-top:6px}
.pb-help summary{display:flex;align-items:center;gap:8px;min-height:44px;font-size:13.5px;font-weight:600;color:var(--text2);list-style:none;cursor:pointer}
.pb-help summary::-webkit-details-marker{display:none}
.pb-help[open] summary{color:#fff}
.pb-help p{font-size:13.5px;line-height:1.6;color:var(--text2);padding:0 0 8px 23px}
.pb-help b{color:#fff}

/* ---------- exclusive animated icons ---------- */
.yi-box{background:none!important;box-shadow:none!important;color:inherit!important}
.yi-box::before,.yi-box::after{display:none!important}
.yi{width:46px;height:46px;overflow:visible}
.yi-fresh rect{fill:none;stroke-width:1.6}
.yi-fresh .f3{stroke:rgba(163,247,224,.35);fill:rgba(163,247,224,.06);animation:fr 3.2s var(--ease) infinite}
.yi-fresh .f2{stroke:rgba(163,247,224,.6);fill:rgba(163,247,224,.1);animation:fr 3.2s var(--ease) .15s infinite}
.yi-fresh .f1{stroke:none;fill:url(#none);fill:var(--accent)}
.yi-fresh .pl{fill:#04120d}
.yi-fresh .dot{fill:#ff6b8a;stroke:#000;stroke-width:1.6;animation:blink 2s ease-in-out infinite}
@keyframes fr{0%,100%{transform:translateY(0)}50%{transform:translateY(-1.4px)}}
@keyframes blink{0%,100%{opacity:1}50%{opacity:.35}}
.yi-next .trk{fill:rgba(200,184,255,.08);stroke:rgba(200,184,255,.18);stroke-width:2.6}
.yi-next .arc{fill:none;stroke:#c8b8ff;stroke-width:2.6;stroke-linecap:round;filter:drop-shadow(0 0 4px rgba(200,184,255,.55))}
.yi-next .hand{fill:none;stroke:#fff;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.yi-next .orb{transform-origin:16px 16px;animation:orbit 6s linear infinite}
.yi-next .orb circle{fill:#fff}
@keyframes orbit{to{transform:rotate(360deg)}}
.yi-live .c{fill:#46e39c}
.yi-live .r1,.yi-live .r2{fill:none;stroke:#46e39c;stroke-width:1.6;transform-origin:16px 16px}
.yi-live .r1{animation:ping 2.4s ease-out infinite}
.yi-live .r2{animation:ping 2.4s ease-out 1.2s infinite}
@keyframes ping{from{opacity:.9;transform:scale(.55)}to{opacity:0;transform:scale(1.15)}}
.yi-picks .moon{fill:var(--accent);filter:drop-shadow(0 0 6px color-mix(in srgb,var(--accent) 60%,transparent))}
.yi-picks .s1,.yi-picks .s2,.yi-picks .s3{fill:#fff;transform-box:fill-box;transform-origin:center;animation:tw 2.6s ease-in-out infinite}
.yi-picks .s2{animation-delay:.6s}.yi-picks .s3{animation-delay:1.2s}
@keyframes tw{0%,100%{opacity:1;transform:scale(1)}50%{opacity:.3;transform:scale(.6)}}
.tune-ico.yi-box{width:46px!important;height:46px!important}
@media (prefers-reduced-motion:reduce){.yi *{animation:none!important}}

/* ---------- magnetic glass hover ---------- */
.mag{transition:transform .14s ease-out,background .25s,box-shadow .25s!important}
#hdr .ib,#hdr .btn,.hsearch,.btn,.ib{transition:transform .5s var(--spring),background .25s,box-shadow .25s,color .2s}
#hdr .ib .i,#hdr .ib svg,.ib .i,.btn .i,.hsearch .i{transition:transform .5s var(--spring)}
.mag .i,.mag svg{transition:transform .14s ease-out!important}
.ib.mag,.hsearch.mag,.btn.lg.mag,.btn.ghost.mag{color:#fff!important;
  background:radial-gradient(120px circle at var(--mx,50%) var(--my,50%),rgba(255,255,255,.34),rgba(255,255,255,.1) 55%,rgba(255,255,255,.06))!important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.45),inset 0 -1px 0 rgba(255,255,255,.12),0 0 0 1px rgba(255,255,255,.22),0 12px 30px -12px rgba(255,255,255,.25)!important}
.btn.white.mag{box-shadow:0 0 0 4px rgba(255,255,255,.12),0 16px 36px -14px rgba(255,255,255,.45)!important}

/* ---------- GIFs ---------- */
img.gif{display:block;max-width:min(280px,100%);max-height:240px;border-radius:12px;margin:6px 0 2px;background:#111}
.wa-bb img.gif,.msg img.gif{max-width:220px}
.gif-btn{flex:none;height:32px;padding:0 10px;border-radius:9px;font:800 11.5px var(--f);letter-spacing:.06em;color:var(--text2);background:rgba(255,255,255,.07);border:1px solid rgba(255,255,255,.12);transition:color .2s,background .2s}
.gif-btn:hover{color:#fff;background:rgba(255,255,255,.14)}
#waIn,#wtF,#cF,.composer form,.composer{position:relative}
#waIn .gif-btn,#wtF .gif-btn,#cF .gif-btn{height:44px;border-radius:14px}
.gif-pop{position:absolute;left:10px;right:10px;bottom:calc(100% + 8px);z-index:40;display:flex;flex-direction:column;gap:6px;padding:14px;border-radius:18px;background:rgba(18,18,24,.98);border:1px solid rgba(255,255,255,.12);box-shadow:0 26px 60px -20px rgba(0,0,0,.95);animation:qmIn .2s var(--ease)}
.gif-pop b{font-size:14px}.gif-pop p{font-size:12.5px;color:var(--text2)}
.gif-pop a{color:var(--accent);text-decoration:underline}
.gif-pop div{display:flex;gap:8px}
.gif-pop input{flex:1;min-width:0;height:40px;padding:0 12px;border-radius:11px;background:rgba(255,255,255,.06);border:1px solid rgba(255,255,255,.12);outline:0;color:#fff;font-size:14px}

/* ---------- tour ---------- */
.tour{position:fixed;inset:0;z-index:410;display:grid;place-items:center;padding:16px;background:rgba(0,0,0,.72);animation:fade .3s}
.tour.out{opacity:0;transition:opacity .3s}
.tour-card{width:min(440px,100%);display:flex;flex-direction:column;align-items:center;text-align:center;padding:30px 26px 22px;border-radius:28px;
  background:linear-gradient(180deg,rgba(255,255,255,.07),rgba(255,255,255,.025)),#09090c;border:1px solid rgba(255,255,255,.1);box-shadow:0 50px 120px -30px rgba(0,0,0,1),inset 0 1px 0 rgba(255,255,255,.08);animation:qmIn .35s var(--ease)}
.tour-ico{display:grid;place-items:center;width:72px;height:72px;border-radius:24px;color:var(--accent-ink);background:var(--accent);box-shadow:0 18px 40px -14px color-mix(in srgb,var(--accent) 70%,transparent);margin-bottom:16px}
.tour-k{font:600 11.5px var(--fm);letter-spacing:.14em;color:var(--muted)}
.tour-card h2{font:800 26px/1.1 var(--f);letter-spacing:-.04em;margin:8px 0 10px}
.tour-card p{color:var(--text2);font-size:15px;line-height:1.6}
.tour-dots{display:flex;gap:6px;margin:20px 0 18px}
.tour-dots i{width:7px;height:7px;border-radius:4px;background:rgba(255,255,255,.18);transition:width .3s var(--ease),background .3s}
.tour-dots i.on{width:22px;background:var(--accent)}
.tour-nav{display:flex;align-items:center;gap:10px;width:100%}
.tour-skip{height:48px;padding:0 14px;font-weight:600;color:var(--muted)}
.tour-next{flex:1}

/* subtitle menu always floats above the cards below it */
.pb{position:relative;z-index:6;overflow:visible!important}
.pb-menu{z-index:60}


/* GIPHY picker: a viewport-safe glass panel shared by comments and chat. */
.gif-library {
  box-sizing:border-box;width:min(408px,calc(100% - 24px));max-height:calc(100dvh - 24px);
  position:fixed;inset:auto;margin:0;padding:13px;border:1px solid #ffffff24;border-radius:19px;
  background:linear-gradient(150deg,rgba(30,30,34,.91),rgba(10,10,13,.96));
  backdrop-filter:blur(22px) saturate(1.25);
  color:#fff;box-shadow:0 24px 90px #000b,inset 0 1px 0 #ffffff20;overflow:auto;
  font-family:var(--f,system-ui);color-scheme:dark;
}

.gif-library header,.gif-library form,.gif-library-tabs { display:flex;align-items:center;gap:8px; }
.gif-library header { justify-content:space-between;margin-bottom:12px; }
.gif-library header strong { font-size:15px;letter-spacing:-.02em; }
.gif-library button { color:inherit;font:inherit;cursor:pointer;border:1px solid #ffffff1d;background:#ffffff0c;border-radius:12px;min-height:36px;padding:0 11px; }
.gif-library button:hover { background:#ffffff1c; }
.gif-library button[data-close] { font-size:21px;line-height:1; }
.gif-library button[aria-pressed="true"],.gif-library form button { background:#fff;color:#14141a;font-weight:700; }
.gif-library-tabs { margin-bottom:10px; }
.gif-library input { min-width:0;flex:1;min-height:42px;background:#0003;border:1px solid #ffffff29;border-radius:12px;padding:0 12px;color:#fff;font:inherit; }
.gif-library :focus-visible { outline:2px solid var(--accent,#ddd);outline-offset:2px; }
.gif-library-status { margin:10px 0;color:#d1cfd8;font-size:13px; }
.gif-library-status:empty { display:none; }
.gif-library-results {
  display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;
  max-height:min(36dvh,240px);overflow:auto;overscroll-behavior:contain;margin-top:10px;
}
.gif-library-results:empty { display:none; }
.gif-library-results button { min-width:0;aspect-ratio:4/3;overflow:hidden;padding:0; }
.gif-library-results img { display:block;width:100%;height:100%;object-fit:contain; }
.gif-library-credit { display:inline-block;margin-top:10px;color:#dedce7;font-size:11px;font-weight:800; }
.gif-library-credit img { display:block;width:108px;height:auto; }
.gif-library details { margin-top:10px;color:#d1cfd8;font-size:13px; }
.gif-library details form { margin-top:8px; }
.gif-library [hidden] { display:none!important; }
@media(max-width:360px) { .gif-library-results { grid-template-columns:repeat(2,minmax(0,1fr)); } }
