/* ============================== yoru v43 — swipeable tab bar, player blend ============================== */

/* images must always load: nested content-visibility (sections → cards → images) kept lazy posters from ever
   being requested, leaving blank cards. Render normally everywhere. */
html body .sec,html body main .sec,html body .pc,html body .ep,html body .lc,
html body .pc img,html body .lc img,html body .le-art img,html body .gc-stage img,html body .ep .th img{content-visibility:visible!important;contain-intrinsic-size:none!important}

/* ---------- phone tab bar: five at a time, swipe for more ---------- */
@media (max-width:760px){
  #tabbar.tb43{display:flex!important;justify-content:flex-start!important;overflow-x:auto!important;overflow-y:hidden;scroll-snap-type:x mandatory;scrollbar-width:none;
    overscroll-behavior-x:contain;-webkit-overflow-scrolling:touch;gap:0!important;-webkit-mask-image:none!important;mask-image:none!important}
  #tabbar.tb43::-webkit-scrollbar{display:none}
  #tabbar.tb43 > :is(a,button){flex:0 0 20%!important;min-width:0!important;max-width:none!important;scroll-snap-align:start;display:flex!important;flex-direction:column;align-items:center;justify-content:center;gap:3px}
  #tabbar.tb43 > :is(a,button) span{font:600 10.5px var(--sf)!important;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:100%}
}

/* ---------- glacial glass: tab bar + Continue watching bar ---------- */
@media (max-width:760px){
  html body #tabbar.tabbar,html body .cw39{
    background:linear-gradient(180deg,rgba(255,255,255,.2) 0%,rgba(255,255,255,.07) 55%,rgba(255,255,255,.04) 100%),rgba(150,175,210,.16)!important;
    -webkit-backdrop-filter:blur(40px) saturate(1.9) brightness(1.08)!important;backdrop-filter:blur(40px) saturate(1.9) brightness(1.08)!important;
    border:1px solid rgba(255,255,255,.3)!important;
    box-shadow:inset 0 1px 0 rgba(255,255,255,.55),inset 0 -1px 0 rgba(255,255,255,.1),inset 0 0 22px rgba(200,225,255,.08),0 18px 44px -14px rgba(0,0,0,.7)!important}
  html body #tabbar.tabbar > :is(a,button){color:rgba(255,255,255,.82)!important;text-shadow:0 1px 6px rgba(0,0,0,.35)}
  html body #tabbar.tabbar > :is(a,button) svg{filter:drop-shadow(0 1px 4px rgba(0,0,0,.3))}
  html body #tabbar.tabbar > :is(a,button).on,html body #tabbar.tabbar > :is(a,button)[aria-current]{color:#fff!important;
    background:linear-gradient(180deg,rgba(255,255,255,.34),rgba(255,255,255,.14))!important;border-radius:18px!important;
    box-shadow:inset 0 1px 0 rgba(255,255,255,.6),0 4px 14px -6px rgba(0,0,0,.4)!important}
  html body .cw39-t small{color:rgba(255,255,255,.75)!important}
}
@media (prefers-reduced-transparency:reduce){html body #tabbar.tabbar,html body .cw39{background:#1c1c20!important;-webkit-backdrop-filter:none!important;backdrop-filter:none!important}}

/* ---------- phone menu: the list never squashes — the whole sheet scrolls instead ---------- */
@media (max-width:760px){
  html body .sheet > *{flex-shrink:0!important}
  html body .sheet nav{overflow:visible!important;max-height:none!important;flex:none!important}
  html body .sheet nav a{overflow:hidden}
  html body .sheet{touch-action:pan-y;-webkit-overflow-scrolling:touch}
}

/* ---------- the player blends into the page on phones ---------- */
@media (max-width:760px){
  .watch .player{margin-left:calc(-1 * var(--pad,16px))!important;margin-right:calc(-1 * var(--pad,16px))!important;width:auto!important;box-shadow:none!important}
  .amb41{display:none!important}
  /* a soft fall-off from the video into the page, drawn under the player — never over it */
  .watch #wt.wt42{position:relative}
  .watch #wt.wt42::before{content:"";position:absolute;left:calc(-1 * var(--pad,16px));right:calc(-1 * var(--pad,16px));top:-18px;height:90px;z-index:-1;pointer-events:none;
    background:linear-gradient(180deg,rgba(255,255,255,.05),rgba(255,255,255,0))}
}
