html{-webkit-text-size-adjust:100%}
a,button,.card,.tab,.icon-btn{-webkit-tap-highlight-color:transparent;touch-action:manipulation}
@media (hover:none){
  .card:hover .poster{transform:none;box-shadow:none}
  .card:active .poster{transform:scale(.96);transition-duration:.1s}
  .logo:hover{transform:none}
}

@media (max-width:760px){
  body:not(.tv){min-height:100dvh;padding-bottom:calc(92px + env(safe-area-inset-bottom,0px))}

  body:not(.tv) .topbar{inset:auto 0 0 0;padding:0 12px calc(12px + env(safe-area-inset-bottom,0px));justify-content:center}
  body:not(.tv) .pill{
    width:auto;max-width:calc(100vw - 24px);gap:2px;padding:6px;border-radius:999px;justify-content:center;
    background:rgba(14,16,16,.94);border:1px solid rgba(255,255,255,.08);
    backdrop-filter:none;-webkit-backdrop-filter:none;box-shadow:0 10px 32px rgba(0,0,0,.55)
  }
  body:not(.tv) .pill .tab{
    flex:0 0 auto;width:46px;height:46px;min-height:0;padding:0;border-radius:50%;
    justify-content:center;gap:0;color:#aeb7b4;transition:background .2s,color .2s,transform .12s
  }
  body:not(.tv) .pill .tab:active,body:not(.tv) .pill .icon-btn:active{transform:scale(.9)}
  body:not(.tv) .pill .tab span{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
  body:not(.tv) .pill .tab svg{display:block;width:22px;height:22px}
  body:not(.tv) .pill .tab.active{background:rgba(255,255,255,.16);color:#fff}
  body:not(.tv) .pill .tab.active svg{stroke:#fff}
  body:not(.tv) .pill .sep{display:block;width:1px;height:24px;margin:0 6px;background:rgba(255,255,255,.14)}
  body:not(.tv) .pill .icon-btn{flex:0 0 auto;width:46px;height:46px;border-radius:50%;color:#aeb7b4}
  body:not(.tv) .pill .icon-btn svg{width:22px;height:22px}
  body:not(.tv) .search-wrap{flex:0 0 auto;overflow:visible;justify-content:center}
  body:not(.tv) .search-wrap .icon-btn{width:46px}

  body:not(.tv) .search-wrap.open input{
    position:fixed;top:calc(env(safe-area-inset-top,0px) + 12px);left:12px;right:12px;width:auto;height:50px;
    padding:0 20px;border-radius:999px;background:var(--bg-2);border:1px solid var(--line);
    box-shadow:0 12px 40px rgba(0,0,0,.55);opacity:1;z-index:60
  }

  .icon-btn{width:44px;height:44px}
  .modal .close{width:44px;height:44px;top:12px;right:12px}
  .vs-btn{width:44px;height:44px}
  .vs-pill{height:44px}
  .vs-bar{padding-top:calc(14px + env(safe-area-inset-top,0px))}
  .f-clear,.filters select{height:46px}

  input:not([type=range]):not([type=checkbox]):not([type=radio]),textarea,select{font-size:16px}

  .overlay{padding:calc(env(safe-area-inset-top,0px) + 28px) 0 0;-webkit-overflow-scrolling:touch}
  .modal,.modal.st{width:100%;margin:auto 0 0;border-radius:24px 24px 0 0;padding-bottom:env(safe-area-inset-bottom,0px)}
  .st-body{padding-bottom:calc(28px + env(safe-area-inset-bottom,0px))}

  .toast{bottom:calc(100px + env(safe-area-inset-bottom,0px));max-width:calc(100vw - 32px)}

  .card{width:min(var(--card-w),148px)}
  .row{scroll-snap-type:x mandatory}
  .error{margin-top:60px}
}

@media (max-width:900px) and (max-height:480px){
  body:not(.tv) .pill .tab,body:not(.tv) .pill .icon-btn{width:42px;height:42px}
  body:not(.tv){padding-bottom:calc(72px + env(safe-area-inset-bottom,0px))}
}

@media (max-width:1100px){
  html[style*="zoom"] .pill .tab span{display:none}
  html[style*="zoom"] .pill .tab{padding:0;width:44px;height:44px;justify-content:center}
}
@media (max-width:700px){
  html[style*="zoom"] .topbar{justify-content:center}
  html[style*="zoom"] .logo{display:none}
  html[style*="zoom"] .pill{max-width:calc(100*var(--vwu,1vw) - 16px);overflow-x:auto;scrollbar-width:none}
  html[style*="zoom"] .pill::-webkit-scrollbar{display:none}
}

@media (max-width:820px){
  body:not(.tv) .pill{background:var(--s-hi);border:1px solid rgba(255,255,255,.06)}
  body:not(.tv) .pill .tab.active{background:var(--accent);color:var(--accent-ink)}
  body:not(.tv) .pill .tab.active svg{stroke:var(--accent-ink)}
}
