/* FC VEGA R10 HF16 — FULL HEIGHT MINI APPS / NAV ABOVE CARDS
 * Additive layout layer: no CMS routes, polls, accounts, chats or Recovery changes.
 * A detailed app becomes a naturally sized block in the normal page flow.
 */
html[data-vega-accent] .site-sticky-shell header.hf16-layout,
html[data-vega-accent] .site-sticky-shell .site-header.hf16-layout{display:block!important}
html[data-vega-accent] .site-sticky-shell header.hf16-layout>.brand-row:empty{
 display:none!important; padding:0!important; min-height:0!important;
}
html[data-vega-accent] .site-sticky-shell header.hf16-layout>.brand-row:not(:has(.vega-r10-identity,.vega-r10-brand-partners,.brand-link)){
 display:none!important;padding:0!important;min-height:0!important;
}
html[data-vega-accent] .site-sticky-shell header.hf16-layout>.nav-border{
 position:relative!important;z-index:9;order:1;
}
/* The six cards form the final header tier, immediately below the main nav. */
html[data-vega-accent] .site-sticky-shell header.hf16-layout>.vega-r10-hub{
 display:block!important;position:relative!important;width:100%!important;min-width:0!important;
 max-width:none!important;max-height:none!important;height:auto!important;min-height:0!important;
 margin:0!important;padding:6px clamp(8px,1.4vw,20px)!important;
 box-sizing:border-box!important;overflow:visible!important;border:0!important;
 background:rgba(6,13,26,.13)!important;box-shadow:none!important;
 backdrop-filter:none!important;-webkit-backdrop-filter:none!important;
}
html[data-vega-accent] header.hf16-layout>.vega-r10-hub .vega-hf08-grid{margin:0!important}
html[data-vega-accent] .vega-hf08-tile.hf09-tile{cursor:pointer}
html[data-vega-accent] .vega-hf08-tile :is(.hf09-action,.vega-hf08-arrow),
html[data-vega-accent] .vega-hf08-tile .hf09-foot .hf09-action{display:none!important}
html[data-vega-accent] .vega-hf08-tile .hf09-foot{justify-content:flex-start!important;gap:0!important}
/* Keep the entire selected app in document flow. No second scroll container. */
html[data-theme][data-vega-accent] .vega-r10-hub .vega-hub-drawer.hf11-inline-details,
html[data-theme][data-vega-accent] .vega-r10-hub .vega-hub-drawer.hf11-inline-details:not([hidden]),
html[data-theme][data-vega-accent] .vega-r10-hub .vega-hub-drawer.hf14-rich-app,
html[data-theme][data-vega-accent] .vega-r10-hub .vega-hub-drawer.hf14-rich-app:not([hidden]){
 position:relative!important;inset:auto!important;display:block;width:100%!important;
 height:auto!important;min-height:0!important;max-height:none!important;
 overflow:visible!important;overflow-x:visible!important;overflow-y:visible!important;
 overscroll-behavior:auto!important;scrollbar-gutter:auto!important;
 margin:7px 0 0!important;border-radius:16px!important;
 animation:hf16-reveal .31s cubic-bezier(.18,.74,.28,1) both!important;
 contain:none!important;
}
html[data-theme][data-vega-accent] .vega-r10-hub .vega-hub-drawer[hidden]{display:none!important}
/* Disable sticky positioning only while a large app is open: the page itself scrolls.
   This avoids cutting off media/poll controls beneath a viewport-sized sticky header. */
html.vega-hf11-expanded[data-vega-accent] .site-sticky-shell{
 position:relative!important;top:auto!important;max-height:none!important;height:auto!important;
 overflow:visible!important;
}
html.vega-hf11-expanded[data-vega-accent] body{overflow-y:auto!important}
html.vega-hf11-expanded[data-accent] #app,
html.vega-hf11-expanded[data-accent] .shell{
 padding-top:0!important;
}
html.vega-hf11-expanded[data-accent] .site-sticky-shell{
 left:auto!important;right:auto!important;transform:none!important;
 margin:0 auto!important;width:calc(100% - 24px)!important;
 max-width:1390px!important;
}

/* Remove title/switcher stripe. Compact close control floats over the app itself. */
html[data-vega-accent] .vega-hub-drawer .vega-hub-drawer-top,
html[data-vega-accent] .vega-hub-drawer .hf13-app-switch{display:none!important}
html[data-vega-accent] .vega-hub-drawer .hf11-detail-columns{
 position:relative;min-height:0!important;height:auto!important;
 padding:18px clamp(12px,1.6vw,23px) 24px!important;
 align-items:stretch!important;
}
html[data-vega-accent] .vega-hub-drawer .hf16-closer{
 position:absolute;z-index:30;top:10px;right:10px;width:28px;height:28px;
 min-width:28px;min-height:28px;display:grid!important;place-items:center;
 font:600 22px/1 system-ui,Arial,sans-serif;color:#fff;
 border:1px solid #ffffff5e!important;background:rgba(18,29,54,.8)!important;
 border-radius:9px!important;cursor:pointer;box-shadow:0 4px 16px #0005;
 backdrop-filter:blur(8px);
}
html[data-vega-accent] .vega-hub-drawer .hf16-closer:is(:hover,:focus-visible){
 background:#e3eeff!important;color:#132244!important;outline:2px solid #8fc5ff;outline-offset:2px;
}
html[data-vega-accent] .vega-hub-drawer .vega-hub-drawer-inner{
 padding-top:27px!important;min-height:0!important;max-height:none!important;
 height:auto!important;overflow:visible!important;
}
html[data-vega-accent] .vega-hub-drawer :is(.hf11-video-queue,.hf14-gallery-photos){
 overflow:visible!important;overflow-y:visible!important;max-height:none!important;height:auto!important;
}
html[data-vega-accent] .vega-hub-drawer .hf14-tabs,
html[data-vega-accent] .vega-hub-drawer .hf14-media-tabs{flex-wrap:wrap!important;overflow:visible!important}
/* Media area gets a true usable viewing size, without clipping its player controls. */
html[data-vega-accent] .vega-hub-drawer[data-hf11-kind="media"] .hf11-detail-columns{
 grid-template-columns:minmax(0,1.2fr) minmax(0,1.15fr)!important;gap:clamp(13px,2vw,28px)!important;
}
html[data-vega-accent] .vega-hub-drawer[data-hf11-kind="media"] .hf11-extra{
 min-height:clamp(320px,29vw,440px)!important;height:auto!important;overflow:hidden;
}
html[data-vega-accent] .vega-hub-drawer[data-hf11-kind="media"] :is(.hf11-media-scene,.hf11-video-art,.hf11-native-video,.hf15-player-scene){
 min-height:clamp(300px,27vw,410px)!important;max-height:none!important;
}
html[data-vega-accent] .vega-hub-drawer .hf15-native-dock{box-sizing:border-box}
html[data-vega-accent] .vega-hub-drawer .hf11-video-select strong{white-space:normal!important;text-overflow:clip!important}
html[data-vega-accent] .vega-hub-drawer .hf14-gallery-photos{grid-template-columns:repeat(5,minmax(0,1fr))!important}
html[data-vega-accent] .vega-hub-drawer[data-hf11-kind="weather"] .hf11-extra{min-height:320px!important}
html[data-vega-accent] .vega-hub-drawer[data-hf11-kind="pulse"] .hf11-extra{min-height:315px!important}
html[data-vega-accent] .vega-hub-drawer[data-hf11-kind="challenge"] .hf11-extra,
html[data-vega-accent] .vega-hub-drawer[data-hf11-kind="history"] .hf11-extra,
html[data-vega-accent] .vega-hub-drawer[data-hf11-kind="poll"] .hf11-extra{min-height:285px!important}
html[data-vega-accent] .vega-r10-hub.hf11-has-detail .vega-hf08-grid{gap:clamp(5px,.65vw,10px)!important}
html[data-vega-accent] .vega-hf08-tile.hf09-tile.hf11-is-expanded{
 border-radius:15px!important;box-shadow:0 0 0 2px #ffffff90,0 10px 28px #0010264a!important;
}
@keyframes hf16-reveal{from{opacity:.5;transform:translateY(-9px)}to{opacity:1;transform:translateY(0)}}
@media(max-width:900px){
 html[data-vega-accent] .vega-hub-drawer[data-hf11-kind="media"] .hf11-detail-columns{
  grid-template-columns:minmax(0,1fr)!important;
 }
 html[data-vega-accent] .vega-hub-drawer[data-hf11-kind="media"] .hf11-extra{min-height:320px!important}
 html[data-vega-accent] .vega-hub-drawer[data-hf11-kind="media"] :is(.hf11-media-scene,.hf11-video-art,.hf11-native-video,.hf15-player-scene){min-height:300px!important}
}
@media(max-width:620px){
 html[data-vega-accent] .site-sticky-shell header.hf16-layout>.vega-r10-hub{padding:5px 7px!important}
 html[data-vega-accent] .vega-hub-drawer .hf11-detail-columns{display:flex!important;flex-direction:column!important;padding:9px 9px 16px!important;gap:13px!important}
 html[data-vega-accent] .vega-hub-drawer .hf16-closer{top:12px;right:12px}
 html[data-vega-accent] .vega-hub-drawer .vega-hub-drawer-inner{padding:29px 2px 4px!important}
 html[data-vega-accent] .vega-hub-drawer[data-hf11-kind="media"] .hf11-extra{min-height:230px!important;height:auto!important}
 html[data-vega-accent] .vega-hub-drawer[data-hf11-kind="media"] :is(.hf11-media-scene,.hf11-video-art,.hf11-native-video,.hf15-player-scene){min-height:210px!important;height:auto}
 html[data-vega-accent] .vega-hub-drawer[data-hf11-kind="weather"] .hf11-extra,
 html[data-vega-accent] .vega-hub-drawer[data-hf11-kind="pulse"] .hf11-extra{min-height:250px!important;height:auto!important}
 html[data-vega-accent] .vega-hub-drawer[data-hf11-kind="challenge"] .hf11-extra,
 html[data-vega-accent] .vega-hub-drawer[data-hf11-kind="history"] .hf11-extra,
 html[data-vega-accent] .vega-hub-drawer[data-hf11-kind="poll"] .hf11-extra{min-height:220px!important;height:auto!important}
 html[data-vega-accent] .vega-hub-drawer .hf14-gallery-photos{grid-template-columns:repeat(3,minmax(0,1fr))!important}
 html[data-vega-accent] .vega-hub-drawer .hf14-gallery-photos button{height:84px!important}
 html[data-vega-accent] .vega-hub-drawer .hf14-gallery-photos img{height:60px!important}
 html[data-vega-accent] .vega-hub-drawer .hf11-video-select strong{font-size:11px}
}
@media(prefers-reduced-motion:reduce){html[data-vega-accent] .vega-hub-drawer.hf11-inline-details{animation:none!important;transition:none!important}}

/* Balanced media stage: 16:9 video at natural height, two-column full playlist. */
@media(min-width:901px){
 html[data-vega-accent] .vega-hub-drawer[data-hf11-kind="media"] .hf11-detail-columns{align-items:start!important}
 html[data-vega-accent] .vega-hub-drawer[data-hf11-kind="media"] .hf11-extra{
  min-height:0!important;height:auto!important;align-self:start!important;}
 html[data-vega-accent] .vega-hub-drawer[data-hf11-kind="media"] :is(.hf11-media-scene,.hf15-player-scene,.hf11-video-art){
  aspect-ratio:16/9!important;min-height:0!important;height:auto!important;width:100%;}
 html[data-vega-accent] .vega-hub-drawer[data-hf11-kind="media"] .hf11-native-video{
  aspect-ratio:16/9!important;min-height:0!important;height:100%!important;}
 html[data-vega-accent] .vega-hub-drawer[data-hf11-kind="media"] .hf11-video-queue{
  display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px!important;}
 html[data-vega-accent] .vega-hub-drawer[data-hf11-kind="media"] .hf11-video-select{min-height:43px}
}
@media(max-width:900px){
 html[data-vega-accent] .vega-hub-drawer[data-hf11-kind="media"] .hf11-extra{align-self:stretch!important}
 html[data-vega-accent] .vega-hub-drawer[data-hf11-kind="media"] .hf11-media-scene{aspect-ratio:16/9!important;min-height:210px!important}
 html[data-vega-accent] .vega-hub-drawer[data-hf11-kind="media"] .hf11-native-video{aspect-ratio:16/9!important;min-height:0!important;height:100%!important}
}

/* HF16 fit-and-finish: no overlapping controls on narrow photo/video scenes. */
@media(max-width:620px){
 html[data-vega-accent] .vega-hub-drawer .hf11-detail-columns{
  padding-top:42px!important;
 }
 html[data-vega-accent] .vega-hub-drawer .hf16-closer{top:7px;right:10px}
}
html[data-vega-accent] .vega-hub-drawer[data-hf11-kind="media"] .hf11-video-source{display:none!important}

/* Final media chrome: no duplicate top-right labels and no collision with the close control. */
html[data-vega-accent] .vega-hub-drawer[data-hf11-kind="media"] .hf14-video-topline small{display:none!important}
@media(max-width:620px){
 html[data-vega-accent] .vega-hub-drawer[data-hf11-kind="media"] .hf15-source-pill{display:none!important}
}
