/* Wide layout: only when the viewport is wider than tall. Portrait is untouched.
   Slim top row (logo · Menu · Region · languages · Free Goolli · Profile),
   map/globe in the left 70%, Live Cams + Live Broadcasts in a scrollable right 30%. */
@media (min-aspect-ratio:10001/10000){
  html #space,html #globeGL,html #world{right:auto;width:70%}

  html .shell{grid-template-columns:minmax(0,70%) minmax(0,30%);grid-template-rows:auto minmax(0,1fr)}

  /* ---- top row ---- */
  html .shell>.top{grid-column:1/-1;grid-row:1;position:relative;flex-direction:row;flex-wrap:nowrap;align-items:center;align-content:center;
    gap:12px;row-gap:0;min-height:0;padding-block:calc(env(safe-area-inset-top,0px) + 4px) 4px;
    background:linear-gradient(to bottom,rgba(4,7,10,.97),rgba(4,7,10,.9));border-bottom:1px solid var(--line)}
  html .shell>.top .brand{order:0;width:auto;min-height:0;gap:10px}
  html .shell>.top .brand__mark{width:26px;height:26px}
  html .shell>.top .brand__name{font-size:16px;line-height:18px}
  html .shell>.top .brand__text{gap:3px}
  html .shell>.top .channels{order:0;flex:0 1 380px;width:auto;min-width:0;margin:0}
  html .shell>.top .mobile-pickers{padding:0}
  html .shell>.top .chanrow,html .shell>.top .regionbar{display:none!important}
  html .shell>.top>.ui-languages--site{order:0;margin-inline-start:auto;margin-block:0;align-self:center;flex:0 1 244px;min-width:176px;grid-template-columns:repeat(4,minmax(0,1fr))}
  html .shell>.top .top__actions{order:0;position:static;flex:none}
  html .shell>.top .goolli-user-counters{position:absolute;top:calc(100% + 2px);right:var(--gut-r);width:calc(30% - var(--gut-r) - 12px);flex:none;justify-content:flex-end;z-index:2}

  /* ---- left: map stage ---- */
  html .shell>.stage{grid-column:1;grid-row:2}
  #stage .bracket{display:none}
  #stage .legend{display:none}
  #stage .view-head{top:70px;left:16px;max-width:calc(100% - 290px)}
  #stage .minimap,#stage.is-region .minimap{left:12px;right:auto;top:auto;bottom:10px}
  #stage .viewswitch{top:auto;bottom:10px;right:12px}
  #stage .war-key{top:auto;bottom:58px;right:12px;max-width:220px}
  #stage .mi,#stage.is-region .mi{left:auto;right:12px;top:70px;bottom:auto;max-height:calc(100% - 172px)}
  #stage .mi:not(.is-collapsed){width:min(236px,45%);min-width:0}
  #stage>.gcountry-focus{top:10px;max-width:calc(100% - 24px)}
  #stage .country-tap-hint{top:10px}

  /* Map/event cards open wholly inside the right column, never over the globe. */
  #stage>.gcard{position:fixed!important;left:auto!important;right:0!important;top:var(--goolli-wide-top,56px)!important;bottom:0!important;
    width:30%!important;max-width:none!important;height:auto!important;max-height:none!important;
    --gcard-safe-height:calc(100dvh - var(--goolli-wide-top,56px))!important;z-index:20;border-radius:0;box-sizing:border-box}

  /* ---- right: feeds column ---- */
  html .shell>.deck{grid-column:2;grid-row:2;display:flex;flex-direction:column;gap:10px;min-height:0;
    padding:20px var(--gut-r) calc(env(safe-area-inset-bottom,0px) + 10px) 12px;
    background:linear-gradient(180deg,rgba(4,7,10,.96),rgba(4,7,10,.98));border-left:1px solid var(--line-2)}
  html .shell>.deck::after{display:none}
  html .deck .feed{flex:1 1 0;min-height:0}
  html .deck .feed__rail{display:grid;grid-auto-flow:row;grid-template-columns:minmax(0,1fr);grid-auto-columns:auto;grid-auto-rows:max-content;
    overflow-x:hidden;overflow-y:auto;overscroll-behavior:contain;scroll-snap-type:y proximity;padding:6px 4px;gap:10px;touch-action:pan-y}
  html .deck .tile{scroll-snap-align:start}
  html .deck .tile__screen{flex:none;aspect-ratio:16/9;min-height:0}
  html .deck #camsRail[data-lcx="1"]{grid-auto-columns:auto;touch-action:pan-y}
  html .deck .lcx-screen{flex:none;aspect-ratio:16/9}
}
@media (min-aspect-ratio:10001/10000) and (max-width:900px){
  html .shell>.top{gap:8px;padding-inline:8px}
  html .shell>.top .brand{gap:6px}
  html .shell>.top .brand__name{font-size:14px;letter-spacing:.2em}
  html .shell>.top .brand__mark{width:22px;height:22px}
  html .shell>.top .brand__sub{font-size:8px;gap:4px}
  html .shell>.top .channels{flex:1 1 230px;min-width:120px}
  html .shell>.top>.ui-languages--site{flex:0 1 184px;min-width:160px}
  html .shell>.top .top__actions{gap:5px}
  html .shell>.top .profile-btn{padding-inline:7px;gap:5px;font-size:11px}
}
@media (min-aspect-ratio:10001/10000) and (max-width:640px){
  html .shell>.top{gap:4px;padding-inline:6px}
  html .shell>.top .brand{gap:4px}
  html .shell>.top .brand__name{font-size:11px;letter-spacing:.12em}
  html .shell>.top .brand__mark{width:18px;height:18px}
  html .shell>.top .channels{min-width:106px}
  html .shell>.top>.ui-languages--site{min-width:128px;flex-basis:128px}
  html .shell>.top>.ui-languages--site button{padding-inline:1px;font-size:8px}
  html .shell>.top .profile-btn{padding-inline:4px;font-size:10px}
  html .shell>.top .profile-btn svg{width:12px;height:12px}
}
@media (min-aspect-ratio:10001/10000) and (max-height:520px){
  #stage .minimap canvas{width:120px;height:62px}
  #stage .minimap__bar{height:22px;padding:0 6px}
  #stage .minimap__bar .micro{display:none}
  #stage .view-head{top:64px}
  #stage .mi,#stage.is-region .mi{top:64px;max-height:calc(100% - 160px)}
}
