/* XMulti 8.4.5 — menu inferior de cinco destinos e cabecalho mobile sem cortes no scroll. */
.xm-bottom-nav,.xm-mobile-actions,.xm-mobile-search-panel{display:none}
@media(max-width:850px){
  :root{--xm-mobile-bar-height:60px;--xm-bottom-nav-size:calc(66px + env(safe-area-inset-bottom,0px));--xm-mobile-offer-offset:0px}
  /* overflow:clip nao cria outro scroll container, ao contrario de overflow:hidden.
     Cabecalho sticky participa do fluxo: ao retornar ao topo a logo reaparece inteira. */
  html,body{overflow-x:clip!important}
  body,body.xmv-channel-page,body.xm-cinema-shell{padding-top:var(--xm-mobile-offer-offset)!important;padding-bottom:var(--xm-bottom-nav-size)!important}
  #header{position:sticky!important;top:var(--xm-mobile-offer-offset)!important;left:auto!important;right:auto!important;width:100%!important;z-index:9998!important;min-height:var(--xm-mobile-bar-height);background:#081220!important;border:0!important;border-bottom:1px solid #294365!important;box-shadow:0 6px 19px rgba(0,0,0,.24)!important;color:#f7faff!important;transform:none!important}
  #header>.wrap.xm-header-main{display:flex!important;align-items:center!important;justify-content:space-between!important;gap:10px!important;height:var(--xm-mobile-bar-height)!important;min-height:var(--xm-mobile-bar-height)!important;max-width:1140px!important;padding:0 14px!important}
  #header .logo{display:flex!important;align-items:center!important;flex:0 1 auto;min-width:0;height:100%!important;min-height:0!important}
  #header .logo .site-title{margin:0!important;display:flex!important;align-items:center!important;min-width:0}
  #header .logo img{display:block!important;width:min(61vw,205px)!important;max-width:205px!important;max-height:40px!important;height:auto!important;object-fit:contain!important;padding:0!important;margin:0!important}
  #header>.menu,#header #open_search{display:none!important}
  #xm-cinema-header{position:sticky!important;top:var(--xm-mobile-offer-offset)!important;z-index:9998!important;transform:none!important}
  #xm-cinema-header .xm-cinema-header__inner{min-height:var(--xm-mobile-bar-height)!important;height:var(--xm-mobile-bar-height)!important;gap:10px!important;width:calc(100% - 28px)!important}
  #xm-cinema-header .xm-cinema-header__brand img{max-width:min(61vw,205px)!important;width:min(61vw,205px)!important;height:auto!important;max-height:40px!important}
  #xm-cinema-header .xm-cinema-header__nav{display:none!important}
  #header .xm-mobile-actions,#xm-cinema-header .xm-mobile-actions{display:flex!important;flex:none;align-items:center;justify-content:flex-end}
  #header .xm-mobile-search-trigger,#xm-cinema-header .xm-mobile-search-trigger{width:42px;height:42px;display:grid!important;place-items:center!important;flex:none;border-radius:13px!important;background:#14253e!important;border:1px solid #294262!important;color:#edf4ff!important;padding:0!important;cursor:pointer}
  #xm-cinema-header .xm-mobile-search-trigger{background:#1b2031!important;border-color:#36354b!important}
  #header .xm-mobile-search-trigger svg,#xm-cinema-header .xm-mobile-search-trigger svg{display:block;width:21px!important;height:21px!important;max-width:none;stroke:currentColor;fill:none}
  #header .xm-mobile-search-panel:not([hidden]),#xm-cinema-header .xm-mobile-search-panel:not([hidden]){display:block!important;position:absolute;top:calc(100% + 7px);left:12px;right:12px;z-index:10000;padding:10px!important;border:1px solid #2a435f;background:#101b2b;box-shadow:0 10px 36px #000a;border-radius:15px}
  #header .xm-mobile-search-panel form,#xm-cinema-header .xm-mobile-search-panel form{display:flex!important;align-items:center;gap:8px;height:auto!important;margin:0!important;min-width:0!important;width:100%!important;padding:0!important}
  #header .xm-mobile-search-panel input,#xm-cinema-header .xm-mobile-search-panel input{min-width:0!important;flex:1!important;width:1px!important;height:42px!important;padding:0 12px!important;margin:0!important;background:#fff!important;color:#101828!important;border:0!important;border-radius:9px!important;font-size:12px!important;box-shadow:none!important}
  #header .xm-mobile-search-panel button,#xm-cinema-header .xm-mobile-search-panel button{height:42px;min-width:63px;flex:none;padding:0 11px!important;border-radius:9px!important;background:#7136de!important;color:#fff!important;font-weight:800!important;font-size:12px!important}
  .xm-mobile-search-trigger:focus-visible,.xm-bottom-nav__item:focus-visible,.xm-mobile-search-panel input:focus-visible,.xm-mobile-search-panel button:focus-visible{outline:2px solid #9bbdff!important;outline-offset:2px!important}
  .xm-bottom-nav{box-sizing:border-box!important;display:block!important;position:fixed!important;bottom:0!important;left:0!important;right:0!important;width:100%!important;height:var(--xm-bottom-nav-size);z-index:9997!important;padding:5px max(8px,env(safe-area-inset-right,0px)) calc(4px + env(safe-area-inset-bottom,0px)) max(8px,env(safe-area-inset-left,0px));background:rgba(9,14,27,.97);background:color-mix(in srgb,#0a0f20 96%,transparent);border-top:1px solid #25334f;box-shadow:0 -8px 26px rgba(0,0,0,.32);-webkit-backdrop-filter:blur(18px);backdrop-filter:blur(18px);color:#aab6d0}
  .xm-bottom-nav__inner{display:grid!important;grid-template-columns:repeat(5,minmax(0,1fr))!important;align-items:stretch!important;gap:2px;max-width:500px!important;height:100%;margin:0 auto!important;padding:0!important}
  .xm-bottom-nav__item{box-sizing:border-box!important;min-width:0!important;min-height:48px!important;display:flex!important;flex-direction:column!important;align-items:center!important;justify-content:center!important;gap:3px!important;position:relative;isolation:isolate;border-radius:12px;padding:5px 1px!important;text-decoration:none!important;color:#a5aec6!important;font-family:Montserrat,Arial,sans-serif!important;transition:color .16s,background .16s}
  .xm-bottom-nav__item svg{display:block!important;width:22px!important;height:22px!important;max-width:22px!important;stroke:currentColor!important;fill:none!important}
  .xm-bottom-nav__symbol{display:grid!important;place-items:center!important;width:25px!important;height:25px!important;flex:none}
  .xm-bottom-nav__text{display:block!important;max-width:100%;white-space:nowrap;font-size:10px!important;font-weight:750!important;line-height:1.15!important;letter-spacing:0!important}
  .xm-bottom-nav__item.is-active,.xm-bottom-nav__item[aria-current=page]{color:#fff!important;background:linear-gradient(145deg,rgba(128,66,231,.36),rgba(90,54,150,.18))!important}
  .xm-bottom-nav__item.is-active::before{content:"";position:absolute;top:-5px;left:30%;right:30%;height:3px;border-radius:0 0 5px 5px;background:#b27cff;box-shadow:0 0 9px #bd7cff99}
  .xm-bottom-nav__item:active{background:#203151!important}
  body.xm-player-lock .xm-bottom-nav{display:none!important}
  body:has(.xm-premium-player:fullscreen) .xm-bottom-nav,body:has(.xm-media-embed-shell:fullscreen) .xm-bottom-nav{display:none!important}
  html{scroll-padding-top:calc(var(--xm-mobile-bar-height) + var(--xm-mobile-offer-offset) + 8px)}
  body.admin-bar #header,body.admin-bar #xm-cinema-header{top:calc(32px + var(--xm-mobile-offer-offset))!important}
  /* CTA flutuante nao deve tapar a navegacao inferior. */
  #iptv-float{bottom:calc(var(--xm-bottom-nav-size) + 12px)!important}
}
@media(max-width:782px){body.admin-bar #header,body.admin-bar #xm-cinema-header{top:calc(46px + var(--xm-mobile-offer-offset))!important}}
@media(max-width:600px){body.admin-bar #header,body.admin-bar #xm-cinema-header{top:var(--xm-mobile-offer-offset)!important}}
@media(max-width:360px){
  #header>.wrap.xm-header-main{padding:0 10px!important}
  .xm-bottom-nav{padding-left:max(3px,env(safe-area-inset-left,0px));padding-right:max(3px,env(safe-area-inset-right,0px))}
  .xm-bottom-nav__inner{gap:0}
  .xm-bottom-nav__text{font-size:9.5px!important}
}
@media(min-width:851px){.xm-bottom-nav,#header .xm-mobile-actions,#xm-cinema-header .xm-mobile-actions,.xm-mobile-search-panel{display:none!important}}
@media(prefers-reduced-motion:reduce){.xm-bottom-nav__item{transition:none!important}}

/* v8.4.5: o menu de cima é substituído pela barra inferior em TODO o site mobile. */
@media screen and (max-width:850px){
  body #header > .menu,
  body #header .menu,
  body #xm-cinema-header .xm-cinema-header__nav {display:none!important;visibility:hidden!important;}
  body #header #open_search {display:none!important;}
  body .xm-bottom-nav {display:block!important;visibility:visible!important;}
  body.xm-player-lock .xm-bottom-nav,
  body:has(.xm-premium-player:fullscreen) .xm-bottom-nav,
  body:has(.xm-media-embed-shell:fullscreen) .xm-bottom-nav,
  body:has(.xm-premium-player.xm-css-fullscreen) .xm-bottom-nav,
  body:has(.xm-media-embed-shell.xm-embed-expanded) .xm-bottom-nav{display:none!important;}
  body.xm-cinema-shell #main, body #main {scroll-margin-top:72px;}
}
