/* ZLOT V452 - Premium Mobile Layout */
@media (max-width: 900px){
  :root{
    --v452-gap:10px;
    --v452-radius:18px;
    --v452-panel:rgba(16,8,25,.88);
    --v452-line:rgba(255,255,255,.10);
    --v452-purple:#9d3cff;
    --v452-cyan:#34e4ff;
  }

  html{background:#07020d!important;overflow-x:hidden!important}
  body{
    overflow-x:hidden!important;
    padding-bottom:calc(92px + env(safe-area-inset-bottom,0px))!important;
    background:
      radial-gradient(circle at 20% 0%,rgba(155,53,255,.22),transparent 30%),
      radial-gradient(circle at 85% 10%,rgba(255,88,215,.16),transparent 28%),
      linear-gradient(180deg,#12051a 0%,#07020d 52%,#05010a 100%)!important;
  }

  /* Desktop rails never overlap mobile content */
  html body .classic-side-rails,
  html body .v4-side-rails,
  html body .patron-side-rails,
  html body .patron-side-rails-toplayer,
  html body .v376-side-rails{
    display:none!important;
  }

  html body .z401-home{
    padding:6px 0 18px!important;
    min-height:100vh!important;
    overflow:visible!important;
  }
  html body .z401-bg{opacity:.72!important}

  /* Compact current-domain notice */
  html body .z401-notice-wrap{
    margin:0 0 8px!important;
    padding:0 6px!important;
  }
  html body .z401-notice-pill{
    width:100%!important;
    min-height:38px!important;
    padding:7px 11px!important;
    gap:7px!important;
    border-radius:14px!important;
    justify-content:center!important;
    background:rgba(10,4,17,.76)!important;
    border:1px solid rgba(218,118,255,.16)!important;
    box-shadow:0 10px 30px rgba(0,0,0,.24)!important;
    backdrop-filter:blur(14px)!important;
  }
  html body .z401-notice-label{font-size:9px!important;letter-spacing:.10em!important;flex:0 0 auto!important}
  html body .z401-notice-text{
    min-width:0!important;
    max-width:70vw!important;
    overflow:hidden!important;
    text-overflow:ellipsis!important;
    white-space:nowrap!important;
    font-size:11px!important;
  }

  /* Full-width premium shell */
  html body .z401-shell{
    width:calc(100vw - 12px)!important;
    max-width:none!important;
    margin:0 6px!important;
    border-radius:20px!important;
    overflow:visible!important;
  }

  /* Header */
  html body .z401-header{
    min-height:66px!important;
    padding:8px 12px!important;
    gap:10px!important;
    border-radius:18px!important;
    border:1px solid var(--v452-line)!important;
    background:linear-gradient(180deg,rgba(12,11,31,.94),rgba(9,7,24,.90))!important;
    box-shadow:0 16px 50px rgba(0,0,0,.34)!important;
    backdrop-filter:blur(18px)!important;
  }
  html body .z401-brand-panel{gap:8px!important;min-width:0!important}
  html body .z401-brand{min-width:0!important;max-width:190px!important}
  html body .z401-brand img{max-height:52px!important;width:auto!important}
  html body .z401-wordmark{font-size:46px!important}
  html body .z401-socials{gap:7px!important;flex:0 0 auto!important}
  html body .z401-socials a{
    width:32px!important;height:32px!important;font-size:15px!important;
    border-radius:11px!important;background:rgba(255,255,255,.055)!important;
    border:1px solid rgba(255,255,255,.09)!important;
  }

  /* Top slider/banner */
  html body .z401-promo-top{
    margin:9px 0!important;
    min-height:0!important;
    border-radius:16px!important;
    overflow:hidden!important;
    border:1px solid rgba(255,255,255,.09)!important;
    box-shadow:0 14px 42px rgba(0,0,0,.30)!important;
  }
  html body .z401-promo-top .v442-header-slider,
  html body .z401-promo-top .v442-slider,
  html body .z401-promo-top .ad-box,
  html body .z401-promo-top .ad-click,
  html body .z401-promo-top img,
  html body .z401-promo-top video{
    width:100%!important;
    max-width:100%!important;
  }
  html body .z401-promo-top img,
  html body .z401-promo-top video{object-fit:cover!important}
  html body .z401-fallback-banner{
    min-height:92px!important;
    padding:12px!important;
    grid-template-columns:1fr!important;
    border-radius:16px!important;
  }
  html body .z401-fallback-text strong{font-size:19px!important}
  html body .z401-fallback-text span{font-size:14px!important}
  html body .z401-fallback-ball{display:none!important}

  /* Player + side ads mobile grid */
  html body .z401-stage-wrap{
    display:flex!important;
    flex-direction:column!important;
    gap:var(--v452-gap)!important;
    background:transparent!important;
  }
  html body .z401-player-col{
    display:grid!important;
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
    gap:var(--v452-gap)!important;
    min-width:0!important;
    background:transparent!important;
  }
  html body .z401-player-card{
    grid-column:1/-1!important;
    order:1!important;
    overflow:hidden!important;
    border:1px solid rgba(219,100,255,.22)!important;
    border-radius:var(--v452-radius)!important;
    background:#030106!important;
    box-shadow:0 20px 58px rgba(0,0,0,.42),0 0 0 1px rgba(255,255,255,.02)!important;
  }
  html body .z401-player-shell{
    width:100%!important;
    height:auto!important;
    min-height:0!important;
    max-height:none!important;
    aspect-ratio:16/9!important;
    border-radius:0!important;
    background:#000!important;
  }
  html body .z401-player-mount,
  html body .z401-player-mount video,
  html body .z401-player-mount iframe,
  html body .z401-player-shell video,
  html body .z401-player-shell iframe{
    width:100%!important;height:100%!important;min-height:0!important;object-fit:contain!important;
  }
  html body .z401-player-brandmark{display:none!important}
  html body .z401-player-badge{
    right:8px!important;top:8px!important;max-width:65%!important;
    padding:7px 10px!important;border-radius:11px!important;
    background:rgba(7,4,13,.72)!important;backdrop-filter:blur(12px)!important;
  }
  html body .z401-player-badge small{font-size:8px!important}
  html body .z401-player-badge strong{font-size:12px!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important}
  html body .z401-player-watermark{
    inset:auto 12px 12px 12px!important;
    min-height:46px!important;padding:8px 12px!important;
    border-radius:13px!important;font-size:22px!important;
    background:rgba(8,3,14,.25)!important;
  }
  html body .z401-player-controls{
    min-height:52px!important;
    padding:8px 10px!important;
    gap:7px!important;
    flex-wrap:wrap!important;
    background:linear-gradient(180deg,#050508,#010102)!important;
  }
  html body .z401-live-text{font-size:14px!important}
  html body .z401-player-controls button,
  html body .z401-player-controls a{width:34px!important;height:34px!important;font-size:20px!important;border-radius:10px!important}
  html body .z401-source-pills{
    order:9!important;width:100%!important;margin:0!important;gap:6px!important;
  }
  html body .z401-source-pill{flex:1 1 auto!important;min-height:32px!important;padding:6px 9px!important;font-size:10px!important}
  html body .z401-player-status{font-size:9px!important;margin-left:auto!important}
  html body .z401-current-type{font-size:10px!important;padding:6px 9px!important;margin-left:auto!important}

  /* Bottom slider is directly below player */
  html body .z449-bottom-banner-wrap{
    grid-column:1/-1!important;
    order:2!important;
    margin:0!important;
    border-radius:16px!important;
    overflow:hidden!important;
    box-shadow:0 14px 40px rgba(0,0,0,.28)!important;
  }
  html body .z449-bottom-banner-wrap.has-v449-slider,
  html body .v449-bottom-slider,
  html body .v449-header-slider{
    height:clamp(96px,29vw,138px)!important;
    min-height:clamp(96px,29vw,138px)!important;
    max-height:138px!important;
  }

  /* Side banners become two premium sponsor cards */
  html body .v420-mobile-side-banner{
    display:block!important;
    position:relative!important;
    width:100%!important;
    max-width:none!important;
    min-width:0!important;
    height:250px!important;
    min-height:250px!important;
    max-height:250px!important;
    margin:0!important;
    padding:0!important;
    border-radius:16px!important;
    overflow:hidden!important;
    border:1px solid rgba(218,102,255,.20)!important;
    background:#13041c!important;
    box-shadow:0 16px 44px rgba(0,0,0,.34)!important;
    isolation:isolate!important;
  }
  html body .v420-mobile-side-left{grid-column:1!important;order:3!important}
  html body .v420-mobile-side-right{grid-column:2!important;order:4!important}
  html body .v420-mobile-side-banner::before{
    content:"";position:absolute;inset:-14px;z-index:0;
    background-image:var(--v452-ad-bg,linear-gradient(135deg,#3d0758,#12031b))!important;
    background-size:cover!important;background-position:center!important;
    filter:blur(18px) brightness(.55)!important;transform:scale(1.12)!important;opacity:.72!important;
  }
  html body .v420-mobile-side-banner::after{
    content:"SPONSOR";position:absolute;left:8px;top:8px;z-index:4;
    padding:4px 7px;border-radius:999px;background:rgba(5,1,10,.62);
    border:1px solid rgba(255,255,255,.13);color:#fff;font:800 8px/1 system-ui;letter-spacing:.09em;
  }
  html body .v420-mobile-side-banner .ad-box,
  html body .v420-mobile-side-banner .ad-v3-box,
  html body .v420-mobile-side-banner .ad-click,
  html body .v420-mobile-side-banner .ad-html,
  html body .v420-mobile-side-banner .ad-text-body{
    position:relative!important;z-index:2!important;
    display:flex!important;align-items:center!important;justify-content:center!important;
    width:100%!important;height:100%!important;min-height:0!important;max-height:none!important;
    margin:0!important;padding:0!important;border:0!important;border-radius:15px!important;
    background:rgba(5,1,10,.18)!important;overflow:hidden!important;
  }
  html body .v420-mobile-side-banner img:not(.ad-tracking-pixel),
  html body .v420-mobile-side-banner video{
    position:relative!important;z-index:2!important;
    display:block!important;width:100%!important;height:100%!important;max-height:none!important;
    object-fit:contain!important;object-position:center!important;background:transparent!important;
  }

  /* Modern sidebar/card below player */
  html body .z401-sidebar{
    order:2!important;
    width:100%!important;
    min-height:0!important;
    border:1px solid rgba(207,86,255,.18)!important;
    border-radius:20px!important;
    overflow:hidden!important;
    background:linear-gradient(180deg,rgba(38,18,48,.92),rgba(14,8,21,.96))!important;
    backdrop-filter:blur(20px)!important;
    box-shadow:0 18px 52px rgba(0,0,0,.34)!important;
  }
  html body .z401-side-head{
    position:sticky!important;top:0!important;z-index:7!important;
    padding:8px!important;gap:7px!important;height:auto!important;
    background:rgba(12,5,19,.86)!important;backdrop-filter:blur(18px)!important;
    border-bottom:1px solid rgba(255,255,255,.07)!important;
  }
  html body .z401-side-tab{
    min-height:46px!important;padding:8px!important;border-radius:13px!important;
    border:1px solid rgba(255,255,255,.07)!important;
    font-size:12px!important;line-height:1.12!important;
    background:rgba(255,255,255,.035)!important;
  }
  html body .z401-side-tab.is-active{
    background:linear-gradient(135deg,rgba(178,61,255,.34),rgba(91,37,190,.22))!important;
    border-color:rgba(207,102,255,.34)!important;
    box-shadow:inset 0 -3px 0 var(--v452-cyan)!important;
  }
  html body .z401-sport-strip{
    gap:8px!important;padding:9px!important;background:rgba(255,255,255,.02)!important;
  }
  html body .z401-sport-btn{
    height:42px!important;border-radius:13px!important;font-size:15px!important;
    border:1px solid rgba(255,255,255,.08)!important;
  }
  html body .z401-sport-btn.is-active{
    background:linear-gradient(135deg,rgba(193,69,255,.25),rgba(255,100,188,.10))!important;
    border-color:rgba(215,103,255,.30)!important;
  }
  html body .z401-search-wrap{padding:9px!important}
  html body .z401-search-wrap input{
    height:44px!important;padding:0 13px!important;border-radius:13px!important;
    background:rgba(4,2,8,.48)!important;border:1px solid rgba(255,255,255,.11)!important;
    font-size:13px!important;
  }
  html body .z401-scroll-list{
    height:auto!important;max-height:430px!important;min-height:0!important;
    padding:7px 9px 10px!important;
    overscroll-behavior:contain!important;
  }
  html body .z401-channel-item,
  html body .z401-match-item{
    min-height:66px!important;margin:0 0 8px!important;padding:9px!important;
    border-radius:15px!important;background:rgba(255,255,255,.045)!important;
    border:1px solid rgba(255,255,255,.075)!important;
    box-shadow:0 8px 22px rgba(0,0,0,.13)!important;
  }
  html body .z401-channel-logo{width:43px!important;height:43px!important;border-radius:12px!important}
  html body .z401-channel-copy small{font-size:10px!important}
  html body .z401-channel-copy strong{font-size:14px!important}
  html body .z401-status-badge{font-size:9px!important;padding:6px 8px!important}
  html body .z401-match-row b,
  html body .z401-match-row em{font-size:14px!important}

  /* Quick channels become a smooth horizontal rail */
  html body .z401-quick-links{
    display:flex!important;
    width:100%!important;
    gap:8px!important;
    margin:10px 0 0!important;
    padding:2px 1px 8px!important;
    overflow-x:auto!important;
    scroll-snap-type:x mandatory!important;
    scrollbar-width:none!important;
  }
  html body .z401-quick-links::-webkit-scrollbar{display:none!important}
  html body .z401-quick-links a{
    flex:0 0 124px!important;
    min-width:124px!important;
    min-height:76px!important;
    padding:9px!important;
    border-radius:16px!important;
    scroll-snap-align:start!important;
    background:linear-gradient(180deg,rgba(31,15,42,.88),rgba(13,7,21,.92))!important;
    border:1px solid rgba(255,255,255,.08)!important;
  }
  html body .z401-quick-links span{font-size:10px!important;line-height:1.2!important}

  /* Footer and floating notification cleanup */
  html body .footer{display:none!important}
  html body [data-v83-notifications],
  html body .v83-notification-widget{
    right:12px!important;
    bottom:calc(90px + env(safe-area-inset-bottom,0px))!important;
    max-width:calc(100vw - 24px)!important;
    z-index:9998!important;
  }

  /* Premium bottom navigation */
  html body .mobile-app-nav{
    left:8px!important;right:8px!important;
    bottom:calc(7px + env(safe-area-inset-bottom,0px))!important;
    z-index:10000!important;
    grid-template-columns:repeat(4,minmax(0,1fr))!important;
    gap:6px!important;
    padding:7px!important;
    border-radius:22px!important;
    background:linear-gradient(180deg,rgba(17,10,29,.90),rgba(6,3,13,.96))!important;
    border:1px solid rgba(222,125,255,.18)!important;
    box-shadow:0 22px 60px rgba(0,0,0,.52),inset 0 1px 0 rgba(255,255,255,.07)!important;
    backdrop-filter:blur(22px)!important;
  }
  html body .mobile-app-nav a{
    min-width:0!important;min-height:54px!important;
    padding:5px 2px!important;border-radius:16px!important;
    background:transparent!important;color:#e9def2!important;
    transition:transform .16s ease,background .16s ease,color .16s ease!important;
  }
  html body .mobile-app-nav a span{font-size:20px!important}
  html body .mobile-app-nav a strong{font-size:9px!important;letter-spacing:.01em!important}
  html body .mobile-app-nav a.is-active,
  html body .mobile-app-nav a:active{
    color:#fff!important;
    background:linear-gradient(135deg,rgba(173,53,255,.38),rgba(255,91,203,.18))!important;
    box-shadow:inset 0 0 0 1px rgba(226,137,255,.22)!important;
    transform:translateY(-1px)!important;
  }
}

@media (max-width: 520px){
  html body .z401-shell{width:calc(100vw - 8px)!important;margin:0 4px!important}
  html body .z401-header{min-height:60px!important;padding:7px 10px!important;border-radius:16px!important}
  html body .z401-brand img{max-height:46px!important}
  html body .z401-wordmark{font-size:41px!important}
  html body .z401-socials a{width:29px!important;height:29px!important;font-size:14px!important}
  html body .z401-player-col{gap:8px!important}
  html body .v420-mobile-side-banner{height:220px!important;min-height:220px!important;max-height:220px!important}
  html body .z401-scroll-list{max-height:390px!important}
  html body .z401-channel-item{grid-template-columns:43px minmax(0,1fr) auto!important}
}

@media (max-width: 380px){
  html body .z401-socials a:nth-child(2){display:none!important}
  html body .v420-mobile-side-banner{height:200px!important;min-height:200px!important;max-height:200px!important}
  html body .z401-side-tab{font-size:11px!important}
  html body .mobile-app-nav a strong{font-size:8px!important}
}

@media (prefers-reduced-motion:reduce){
  html body *{scroll-behavior:auto!important}
  html body .mobile-app-nav a{transition:none!important}
}
