/* ============================== yoru v35 — SF glyphs, filler badges, Messages-style chat, bug fixes ============================== */

/* ---------- local SF-style glyphs ---------- */
svg.i.sf{display:inline-block;flex:none;vertical-align:-.18em}
#hdr .ib svg.sf{width:20px;height:20px}
#hdr .ib{color:#fff!important}
.tabbar a svg.sf{width:23px;height:23px}
/* iOS notification badge: system red, white numerals */
#hdr .nbadge{background:#ff3b30!important;color:#fff!important;font:700 11px/18px var(--sf)!important;min-width:18px!important;height:18px!important;border-radius:9px!important;top:-2px!important;right:-2px!important;
  box-shadow:0 0 0 2px #000!important;font-style:normal!important;text-align:center}

/* ---------- bugs ---------- */
/* the route container gets focus for screen readers — never draw a ring across the page for it */
#app:focus,#app:focus-visible,main:focus,main:focus-visible,[tabindex="-1"]:focus{outline:none!important}
/* episode sidebar: the search, filters and range pills never get squeezed under the list */
.watch aside.side > div > :not(.eps){flex:none!important}
.watch aside.side .ranges{position:relative;z-index:1;padding-bottom:6px!important;margin-bottom:4px!important;overflow-x:auto;overflow-y:visible!important;scrollbar-width:none}
.watch aside.side .ranges::-webkit-scrollbar{display:none}
.watch aside.side .eps{padding-top:2px}
/* comment box: no native scroll arrows, it grows instead */
.comments .composer textarea{overflow:hidden!important;scrollbar-width:none}
.comments .composer textarea::-webkit-scrollbar{display:none}

/* ---------- canon / filler badges ---------- */
.flb{display:inline-flex;align-items:center;height:20px;padding:0 8px;border-radius:999px;font:700 10.5px/1 var(--sf);letter-spacing:.02em;color:#fff;
  background:rgba(0,0,0,.55);-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);border:1px solid rgba(255,255,255,.14)}
.ep .flb.inl{margin-top:6px;height:18px;padding:0 7px;font-size:10px;-webkit-backdrop-filter:none;backdrop-filter:none;background:rgba(255,255,255,.06)}
.flb.fl-canon{color:#7ee6a8}.flb.fl-anime{color:#64d2ff}.flb.fl-mixed{color:#ffd60a}.flb.fl-filler{color:#ff9f0a;background:rgba(60,30,0,.65);border-color:rgba(255,159,10,.4)}
#wt .flb{vertical-align:2px;margin-left:6px}
.side.fl-hide .ep[data-fl="filler"]{display:none!important}
#flHide.on{background:#fff!important;color:#000!important}
#flHide.on small{color:rgba(0,0,0,.55)}
.fl-src{display:flex;align-items:center;flex-wrap:wrap;gap:4px 10px;margin:2px 4px 8px;font:500 11.5px var(--sf);color:rgba(255,255,255,.45)}
.fl-src a{margin-left:auto;color:rgba(255,255,255,.55);text-decoration:underline;text-underline-offset:2px}
.fl-dot{width:7px;height:7px;border-radius:50%;display:inline-block;margin-right:-4px}
.fl-dot.fl-canon{background:#30d158}.fl-dot.fl-mixed{background:#ffd60a}.fl-dot.fl-filler{background:#ff9f0a}

/* ---------- Specials · OVAs · Movies ---------- */
.sp35{grid-column:1 / -1;margin-top:16px;padding:18px 0 4px}
.sp35-h{display:flex;align-items:baseline;gap:10px;margin:0 2px 12px}
.sp35-h h3{margin:0;font:750 20px var(--sf);letter-spacing:-.02em}
.sp35-h span{font:600 13px var(--sf);color:rgba(255,255,255,.45)}
.sp35-r{display:grid;grid-auto-flow:column;grid-auto-columns:132px;gap:14px;overflow-x:auto;padding-bottom:8px;scrollbar-width:none;scroll-snap-type:x mandatory}
.sp35-r::-webkit-scrollbar{display:none}
.sp35-c{display:flex;flex-direction:column;gap:6px;scroll-snap-align:start;min-width:0}
.sp35-c img{width:100%;aspect-ratio:2/3;object-fit:cover;border-radius:14px;background:#111;box-shadow:0 0 0 1px rgba(255,255,255,.07);transition:transform .25s var(--spring,ease)}
.sp35-c:hover img{transform:scale(1.03)}
.sp35-c b{font:600 13.5px/1.25 var(--sf);display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.sp35-c small{font:500 12px var(--sf);color:rgba(255,255,255,.5)}
@media (max-width:640px){.sp35-r{grid-auto-columns:112px;gap:10px}}

/* ---------- community chat: Apple Messages ---------- */
.wa{display:grid!important;grid-template-columns:330px minmax(0,1fr);height:min(76vh,780px);border-radius:24px!important;overflow:hidden;background:#000!important;
  border:1px solid rgba(255,255,255,.1)!important;box-shadow:0 30px 80px -30px #000!important}
.wa-side{display:flex;flex-direction:column;min-height:0;background:#0d0d0f!important;border-right:.5px solid rgba(255,255,255,.1)!important;padding:12px 0 0!important}
.wa-search{display:flex!important;align-items:center;gap:8px;height:38px;margin:0 14px 10px!important;padding:0 12px!important;border-radius:11px!important;background:rgba(118,118,128,.24)!important;border:0!important;color:rgba(255,255,255,.55)}
.wa-search input{flex:1;min-width:0;background:none;border:0;outline:0;color:#fff;font:400 16px var(--sf)}
.wa-rooms{overflow-y:auto;min-height:0;flex:1;padding:0 8px 10px;scrollbar-width:none}
.wa-room{display:flex!important;align-items:center;gap:12px;min-height:72px;padding:0 10px!important;border-radius:14px!important;background:none!important;border:0!important;box-shadow:none!important;position:relative}
.wa-room + .wa-room::before{content:"";position:absolute;left:66px;right:10px;top:0;height:.5px;background:rgba(255,255,255,.1)}
.wa-room:hover{background:rgba(255,255,255,.05)!important}
.wa-room.on{background:#0a84ff!important}
.wa-room.on::before,.wa-room.on + .wa-room::before{display:none}
.wa-room .wa-ico{flex:none;width:46px!important;height:46px!important;border-radius:50%!important;display:grid;place-items:center;color:#fff!important;
  background:linear-gradient(180deg,hsl(var(--h,211) 60% 58%),hsl(var(--h,211) 55% 40%))!important;box-shadow:none!important}
.wa-rt{min-width:0;flex:1}
.wa-rt b{display:block;font:600 16px var(--sf)!important;color:#fff}
.wa-rt small{display:block;font:400 14px var(--sf)!important;color:rgba(255,255,255,.5)!important;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.wa-room.on .wa-rt small,.wa-room.on .wa-meta{color:rgba(255,255,255,.8)!important}
.wa-meta{align-self:flex-start;padding-top:14px;font:400 13px var(--sf);color:rgba(255,255,255,.45)}
.wa-meta em{display:inline-grid;place-items:center;min-width:18px;height:18px;margin-left:6px;border-radius:9px;background:#0a84ff;color:#fff;font:700 11px var(--sf);font-style:normal}
.wa-meta em:empty{display:none}
.wa{grid-template-rows:minmax(0,1fr)!important}
.wa > .wa-chat,.wa > .wa-side{height:auto!important;max-height:none!important;min-height:0!important}
.wa-chat{display:flex;flex-direction:column;min-height:0;min-width:0;background:#000!important;position:relative}
.wa-head{flex:none;display:flex!important;flex-direction:column;align-items:center;justify-content:center;gap:3px;height:86px;padding:8px 16px!important;text-align:center;position:relative;z-index:2;
  background:rgba(20,20,22,.72)!important;-webkit-backdrop-filter:blur(30px) saturate(1.6)!important;backdrop-filter:blur(30px) saturate(1.6)!important;border:0!important;border-bottom:.5px solid rgba(255,255,255,.1)!important}
.wa-head .wa-ico.big{width:42px!important;height:42px!important;border-radius:50%!important;display:grid;place-items:center;color:#fff!important;background:linear-gradient(180deg,hsl(var(--h,211) 60% 58%),hsl(var(--h,211) 55% 40%))!important;box-shadow:none!important}
.wa-head b{font:600 13px var(--sf)!important;color:#fff}
.wa-head small{font:400 11.5px var(--sf)!important;color:rgba(255,255,255,.5)!important}
.wa-head > div{display:flex;flex-direction:column;align-items:center}
.wa-msgs{flex:1;min-height:0;overflow-y:auto;padding:16px 18px 10px!important;background:#000!important;display:flex;flex-direction:column;gap:2px;scrollbar-width:thin;scrollbar-color:rgba(255,255,255,.15) transparent}
.wa-day{align-self:center;margin:14px 0 8px}
.wa-day span{font:600 11.5px var(--sf)!important;color:rgba(255,255,255,.45)!important;background:none!important;padding:0!important}
.wa-b{display:flex!important;align-items:flex-end;gap:8px;max-width:78%;margin-top:8px}
.wa-b.g{margin-top:2px}
.wa-b > .av,.wa-b > .wa-sp{flex:none;width:28px!important;height:28px!important;font-size:12px!important}
.wa-bb{position:relative;padding:8px 13px!important;border-radius:19px!important;background:#26252a!important;border:0!important;box-shadow:none!important;min-width:0}
.wa-bb b{display:block;margin:0 0 1px;font:500 11.5px var(--sf)!important;color:rgba(255,255,255,.5)!important}
.wa-bb b a{color:inherit!important}
.wa-bb p{margin:0;font:400 16px/1.35 var(--sf)!important;color:#fff!important;word-break:break-word;white-space:pre-wrap}
.wa-bb time{display:block;margin-top:2px;font:400 10.5px var(--sf)!important;color:rgba(255,255,255,.38)!important;text-align:right}
.wa-b.me{align-self:flex-end;flex-direction:row-reverse}
.wa-b.me .wa-bb{background:linear-gradient(180deg,#1a8cff,#0a7aff)!important}
.wa-b.me .wa-bb time{color:rgba(255,255,255,.7)!important}
/* bubble tails on the last bubble of a run */
.wa-b:not(.me) .wa-bb::before{content:"";position:absolute;left:-5px;bottom:0;width:14px;height:16px;background:#26252a;border-bottom-right-radius:12px;clip-path:inset(0 6px 0 0);-webkit-mask:radial-gradient(10px 10px at 0 4px,transparent 98%,#000);mask:radial-gradient(10px 10px at 0 4px,transparent 98%,#000)}
.wa-b.me .wa-bb::before{content:"";position:absolute;right:-5px;bottom:0;width:14px;height:16px;background:#0a7aff;-webkit-mask:radial-gradient(10px 10px at 100% 4px,transparent 98%,#000);mask:radial-gradient(10px 10px at 100% 4px,transparent 98%,#000)}
.wa-empty{margin:auto;display:flex;flex-direction:column;align-items:center;gap:6px;text-align:center;color:rgba(255,255,255,.55);font:400 15px var(--sf)}
.wa-empty b{font:600 17px var(--sf);color:#fff}
.wa-empty p{margin:0;max-width:34ch}
.wa-empty .wa-ico.big{width:64px!important;height:64px!important;border-radius:50%!important;display:grid;place-items:center;margin-bottom:6px;background:rgba(255,255,255,.08)!important;color:#fff}
.wa-in{flex:none;display:flex!important;align-items:center;gap:10px;padding:10px 14px calc(10px + env(safe-area-inset-bottom))!important;background:rgba(20,20,22,.8)!important;
  -webkit-backdrop-filter:blur(30px);backdrop-filter:blur(30px);border:0!important;border-top:.5px solid rgba(255,255,255,.1)!important}
.wa-in input{flex:1;min-width:0;height:38px;padding:0 16px!important;border-radius:19px!important;background:#000!important;border:1px solid rgba(255,255,255,.18)!important;color:#fff;font:400 16px var(--sf)!important;outline:0}
.wa-in input:focus{border-color:rgba(255,255,255,.35)!important}
.wa-send{flex:none;width:34px!important;height:34px!important;padding:0!important;border-radius:50%!important;display:grid;place-items:center;background:none!important;color:#0a84ff!important;border:0!important}
.wa-send svg{width:34px!important;height:34px!important}
.wa-in.wa-lock{justify-content:center;flex-wrap:wrap;font:400 14px var(--sf);color:rgba(255,255,255,.6)}
.wa-in.wa-lock .btn{height:36px!important;border-radius:999px!important;font:600 14px var(--sf)!important}
@media (max-width:860px){
  .wa{grid-template-columns:1fr;height:calc(100dvh - 190px);border-radius:20px!important}
  .wa-side{display:none!important}
}
@media (max-width:640px){
  .wa{height:calc(100dvh - 300px);min-height:380px;margin:0 -6px}
  .wa-in.wa-lock{gap:8px;padding:10px!important}
  .wa-in.wa-lock > span{flex-basis:100%;text-align:center;font-size:13px}
  .wa-b{max-width:86%}
}
