/* H70_MOBILE_V14_SINGLE_NAV: strict mobile-only shared menu */
@media(max-width:768px){
 #h70v9-nav{
  position:fixed!important;left:0!important;right:0!important;bottom:0!important;top:auto!important;
  z-index:2147483000!important;display:grid!important;visibility:visible!important;opacity:1!important;
  grid-template-columns:repeat(6,minmax(0,1fr))!important;align-items:center!important;
  min-height:calc(69px + env(safe-area-inset-bottom))!important;
  padding:7px 3px max(8px,env(safe-area-inset-bottom))!important;
  margin:0!important;border:0!important;border-radius:0!important;
  background:#242424!important;color:#fff!important;box-shadow:0 -3px 16px #0008!important;
  font-family:system-ui,-apple-system,'Segoe UI',sans-serif!important;
  box-sizing:border-box!important;transform:none!important;max-height:none!important;width:100%!important
 }
 #h70v9-nav a{
  display:flex!important;flex-direction:column!important;align-items:center!important;justify-content:center!important;
  min-width:0!important;min-height:49px!important;gap:4px!important;padding:0 2px!important;
  color:#fff!important;text-decoration:none!important;background:transparent!important;
  font-size:10px!important;font-weight:550!important;line-height:1.15!important;white-space:nowrap!important
 }
 #h70v9-nav a svg{display:block!important;flex:none!important;width:25px!important;height:25px!important;fill:none!important;stroke:currentColor!important}
 #h70v9-nav a span{font-size:10px!important;white-space:nowrap!important}
 #h70v9-nav a.h70v14-active,#h70v9-nav a[data-h70-active="1"],
 #h70v9-nav a.h70v14-active span,#h70v9-nav a[data-h70-active="1"] span,
 #h70v9-nav a.h70v14-active svg,#h70v9-nav a[data-h70-active="1"] svg{
  color:#3096ff!important;stroke:#3096ff!important;font-weight:750!important
 }
 .h70v14-hide-categories,.h70v14-hide-old-nav,
 #h70v6nav,#h70v7-nav,#h70v8-nav,#h70n-bottom,
 .h70-mobile-tabs,.h70v7-old-nav,.h70v9-legacy-nav{display:none!important}
 body.h70v14-enabled{padding-bottom:calc(81px + env(safe-area-inset-bottom))!important}
 .shorts-public .viewer.open{bottom:calc(69px + env(safe-area-inset-bottom))!important}
}
@media(min-width:769px){#h70v9-nav{display:none!important}}
#h70v14-message{position:fixed;bottom:calc(100px + env(safe-area-inset-bottom));left:50%;transform:translateX(-50%);opacity:0;transition:opacity .2s;z-index:2147483001;pointer-events:none;background:#24303c;color:#fff;padding:10px 14px;border-radius:14px;font:13px system-ui;white-space:nowrap}
#h70v14-message.visible{opacity:1}


/* H70_V15_FIX: respect genuine full screen Shorts viewer on mobile. */
@media(max-width:768px){
 body.h70v15-video-open #h70v9-nav{display:none!important;visibility:hidden!important;pointer-events:none!important}
 body.h70v15-video-open{padding-bottom:0!important}
 body.h70v15-video-open .shorts-public .viewer.open{bottom:0!important;height:100dvh!important;max-height:100dvh!important}
 body.h70v15-video-open .shorts-public .viewer.open .stage{height:100%!important}
}


/* H70_V16_SHORTS_FIRST_TAP: larger reliable touch target + blue active state. */
@media(max-width:768px){
 #h70v9-nav{pointer-events:auto!important}
 #h70v9-nav a{touch-action:manipulation!important;pointer-events:auto!important;position:relative!important;min-height:56px!important;min-width:0!important;-webkit-tap-highlight-color:transparent}
 #h70v9-nav a[data-h70-section="shorts"]{cursor:pointer!important}
 #h70v9-nav a[data-h70-section="shorts"][aria-current="page"],
 #h70v9-nav a[data-h70-section="shorts"][aria-current="page"] span,
 #h70v9-nav a[data-h70-section="shorts"][aria-current="page"] svg,
 #h70v9-nav a[data-h70-section="shorts"][data-h70-active="1"]{color:#3096ff!important;stroke:#3096ff!important}
 /* Keep shared menu visible on Shorts page, so its active blue icon can be seen. */
 body.shorts-public.h70v15-video-open #h70v9-nav,
 body.h70v15-video-open:has(.shorts-public) #h70v9-nav{
   display:grid!important;visibility:visible!important;opacity:1!important;pointer-events:auto!important;
 }
 body.shorts-public.h70v15-video-open,
 body.h70v15-video-open:has(.shorts-public){padding-bottom:calc(81px + env(safe-area-inset-bottom))!important}
 body.shorts-public.h70v15-video-open .viewer.open,
 body.h70v15-video-open .shorts-public .viewer.open{
   bottom:calc(69px + env(safe-area-inset-bottom))!important;
   height:calc(100dvh - 69px - env(safe-area-inset-bottom))!important;
   max-height:calc(100dvh - 69px - env(safe-area-inset-bottom))!important;
 }
}

/* H70_V82_NO_PROFILE: mobile bottom nav 5 equal columns */
@media(max-width:768px){
 #h70v9-nav{grid-template-columns:repeat(5,minmax(0,1fr))!important;}
 #h70v9-nav a[data-h70-section="profile"],
 #h70v9-nav a[aria-label="Profil"]{display:none!important;}
}

/* H70_V83_MOBILE_MENU */
@media(max-width:768px){#h70v9-nav{grid-template-columns:repeat(5,minmax(0,1fr))!important}#h70v9-nav a[aria-label="Profil"]{display:none!important}}
