/* ANIMXS V5.46.2 — unified mobile-web shell */
:root{--ax-safe-top:env(safe-area-inset-top,0px);--ax-safe-bottom:env(safe-area-inset-bottom,0px)}
html,body{max-width:100%;overflow-x:hidden}
body{overscroll-behavior-y:none;-webkit-tap-highlight-color:transparent}
button,a,input,textarea,select{touch-action:manipulation}
@media (max-width: 820px){
  body.social-app{background:var(--bg,#fff);padding:0 0 calc(76px + var(--ax-safe-bottom))}
  .social-shell{display:block;min-height:100dvh;width:100%}
  .social-rail,.desktop-account-dock{display:none!important}
  .mobile-appbar{display:flex!important;position:sticky;top:0;z-index:1200;min-height:56px;padding:calc(8px + var(--ax-safe-top)) 14px 8px;background:color-mix(in srgb,var(--surface,#fff) 92%,transparent);backdrop-filter:blur(18px);-webkit-backdrop-filter:blur(18px);border-bottom:1px solid var(--border,#e7e7ea)}
  .mobile-appbar .brand{min-height:40px;display:flex;align-items:center;gap:9px}
  .mobile-head-actions{display:flex;align-items:center;gap:8px}
  .mobile-head-actions>a,.mobile-head-actions>button{min-width:40px;min-height:40px;display:grid;place-items:center}
  .social-main{width:100%!important;max-width:100%!important;margin:0!important;padding:10px 12px 24px!important;min-height:calc(100dvh - 120px)}
  .content-shell,.feed-shell,.page-shell,.creator-shell,.settings-shell,.discover-shell,.communities-shell{width:100%!important;max-width:100%!important;margin:0!important}
  .bottom-nav{display:grid!important;grid-template-columns:repeat(5,minmax(0,1fr));position:fixed;left:0;right:0;bottom:0;z-index:1400;height:calc(64px + var(--ax-safe-bottom));padding:6px 8px var(--ax-safe-bottom);background:color-mix(in srgb,var(--surface,#fff) 94%,transparent);backdrop-filter:blur(20px);-webkit-backdrop-filter:blur(20px);border-top:1px solid var(--border,#e5e7eb)}
  .bottom-nav a{min-height:52px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;border-radius:14px;font-size:11px;text-decoration:none}
  .bottom-nav .create{transform:none}
  .bottom-nav .bottom-icon{font-size:20px;line-height:1}
  .post-card,.home-post,.video-card,.community-card,.anime-card,.settings-card,.create-card{max-width:100%!important;border-radius:16px}
  .post-card img,.post-card video,.home-post img,.home-post video,.video-card video,.ax-watch-video{max-width:100%;height:auto}
  .post-actions,.ax-watch-actions{display:flex;align-items:center;gap:4px;overflow-x:auto;scrollbar-width:none}
  .post-actions::-webkit-scrollbar,.ax-watch-actions::-webkit-scrollbar{display:none}
  .post-actions button,.post-actions a,.ax-watch-actions button,.ax-watch-actions a{min-width:44px;min-height:44px}
  input,textarea,select{font-size:16px!important}
  textarea{min-height:96px}
  button,.button,[role="button"]{min-height:42px}
  dialog.interaction-dialog,.ax-comments-dialog,.comments-dialog{position:fixed!important;inset:auto 0 0 0!important;width:100%!important;max-width:none!important;max-height:min(82dvh,760px)!important;margin:0!important;border-radius:22px 22px 0 0!important;padding-bottom:var(--ax-safe-bottom)!important}
  dialog::backdrop{background:rgba(0,0,0,.48);backdrop-filter:blur(2px)}
  .ax-comments-panel,.short-comments-panel{position:fixed!important;left:0!important;right:0!important;bottom:0!important;top:auto!important;width:100%!important;max-width:none!important;height:min(78dvh,720px)!important;border-radius:22px 22px 0 0!important;z-index:1600!important;padding-bottom:var(--ax-safe-bottom)!important}
  .account-dropdown{position:fixed!important;left:12px!important;right:12px!important;top:calc(58px + var(--ax-safe-top))!important;width:auto!important;max-height:72dvh;overflow:auto;border-radius:18px}
  .verification-banner{margin:6px 0 10px;border-radius:14px}
  .flash{position:fixed;left:12px;right:12px;top:calc(64px + var(--ax-safe-top));z-index:1800}
  .page-videos .social-main,.page-watch .social-main{padding-left:0!important;padding-right:0!important}
  .page-create .social-main{padding-bottom:24px!important}
  .create-media-picker,.video-upload-box,[data-video-upload-box]{min-height:120px;border-radius:18px}
}
@media (max-width: 480px){
  .social-main{padding:8px 8px 20px!important}
  .mobile-appbar{padding-left:10px;padding-right:10px}
  .bottom-nav{padding-left:4px;padding-right:4px}
  .bottom-nav a{border-radius:12px}
}
@media (display-mode: standalone){
  .mobile-appbar{padding-top:calc(8px + var(--ax-safe-top))}
  body.social-app{user-select:none}
  input,textarea{user-select:text}
}
