/* V13.3 — UCL mobile/desktop single-navigation sync
   The live UCL navigation is #uclSubnav. Legacy .ucl-nav rules are intentionally not used. */

@media (max-width: 900px){
  #uclSubnav{
    position:sticky!important;
    top:48px!important;
    z-index:142!important;
    width:100%!important;
    display:block;
  }
  #uclSubnav button{
    flex:0 0 auto!important;
    white-space:nowrap!important;
    scroll-snap-align:start;
  }
}

@media (max-width: 700px){
  /* Keep UCL sub-navigation in exactly the same mobile system as EPL. */
  #uclSubnav{
    top:48px!important;
    margin:0!important;
    padding:0!important;
    background:#17071f!important;
    border-radius:0!important;
  }
  #uclSubnav button{
    min-height:44px!important;
    height:44px!important;
    padding:0 10px!important;
    font-size:8px!important;
    line-height:1!important;
  }

  /* One UCL DOM for phone and desktop: only layout changes here. */
  #comp-ucl{min-width:0!important;max-width:100%!important;overflow:visible!important}
  #comp-ucl .panel{min-width:0!important;max-width:100%!important}

  #comp-ucl .table-scroll{overflow-x:auto!important;-webkit-overflow-scrolling:touch}
  #comp-ucl .ucl-table{min-width:650px!important}
}

@media (max-width: 700px) and (display-mode: standalone){
  #uclSubnav{top:calc(env(safe-area-inset-top) + 48px)!important}
}

@media (max-width: 390px){
  #uclSubnav button{padding-left:8px!important;padding-right:8px!important;font-size:7.5px!important}
}

/* V13.5 — hard mobile parity lock. Desktop and phone use the same #uclSubnav DOM. */
@media (max-width: 900px){
  #uclSubnav{
    display:none;
    max-width:100vw!important;
    overflow:hidden!important;
    contain:layout paint;
  }
  #uclSubnav button{visibility:visible!important;opacity:1!important}
}

/* V13.6 — UCL standings crests: visually match the compact SCHEDULE badges. */
@media (min-width: 701px){
  #comp-ucl #uclTableBox .table td.team .club-mark{
    width:34px!important;
    height:34px!important;
    flex:0 0 34px!important;
  }
  #comp-ucl #uclTableBox .table td.team .club-mark .crest-img,
  #comp-ucl #uclTableBox .table td.team .club-mark .nhl41-club-logo{
    width:100%!important;
    height:100%!important;
    object-fit:contain!important;
  }
}
