/* WOW TV 1.5.21 - monochrome YouTube link after Smart TV. */
.site-header .youtube-header-link{
 display:inline-flex;align-items:center;justify-content:center;
 flex:0 0 46px;min-height:38px;padding:5px 7px;
 color:#f7fafc;text-decoration:none;border:1px solid rgba(255,255,255,.15);
 background:rgba(255,255,255,.035);border-radius:8px;
 transition:background-color .16s ease,border-color .16s ease
}
.site-header .youtube-header-link:hover{background:rgba(255,255,255,.09);border-color:rgba(255,255,255,.32)}
.site-header .youtube-header-link:focus-visible{outline:2px solid #49caff;outline-offset:3px}
.site-header .youtube-header-link[hidden]{display:none!important}
.site-header .youtube-header-icon{display:block;width:32px;height:23px;flex:0 0 32px}
.site-header .tv-link{white-space:nowrap;flex-shrink:0}
.site-header .tv-link>span{white-space:nowrap}
@media(max-width:1200px){
 .site-header .header-inner{column-gap:15px}
}
@media(max-width:850px){
 .site-header .header-inner{column-gap:13px}
 .site-header .header-inner>.brand{order:0}
 .site-header .header-inner>.menu-toggle{order:1}
 .site-header .header-inner>.lang-switcher{order:2}
 .site-header .header-inner>.tv-link{order:3}
 .site-header .header-inner>.youtube-header-link{order:4}
}
@media(max-width:560px){
 .site-header .header-inner{gap:8px 10px;padding-bottom:12px}
 .site-header .header-inner>.brand{order:0;margin-right:auto}
 .site-header .header-inner>.menu-toggle{order:0;margin-left:auto}
 .site-header .header-inner::before{content:"";order:1;flex-basis:100%;height:0}
 .site-header .header-inner>.lang-switcher{order:2;margin-left:auto}
 .site-header .header-inner>.tv-link{order:3;width:auto;min-width:98px;min-height:38px;padding:0 10px;gap:6px;font-size:12px}
 .site-header .header-inner>.tv-link>span{display:inline;font-size:12px}
 .site-header .header-inner>.tv-link>.icon{width:16px;height:16px}
 .site-header .header-inner>.youtube-header-link{order:4;flex:0 0 43px;min-height:38px;padding:5px}
 .site-header .header-inner>#main-nav{order:5}
}
@media(prefers-reduced-motion:reduce){.site-header .youtube-header-link{transition:none}}

/* WOW TV 1.5.22 - Hide Smart TV shortcut on phones, preserve YouTube link. */
@media (max-width: 767px) {
  .site-header .header-inner > .tv-link {
    display: none !important;
  }
}

/* WOW TV 1.5.23 -- minimal header: no language selector in top navigation.
   The full IT/EN sites and language metadata remain available at their URLs. */
.site-header .header-inner>.lang-switcher{display:none!important}
/* The YouTube control remains available beside Smart TV. */
.site-header .header-inner{position:relative}
.site-header .brand-caption{white-space:nowrap}
/* Desktop: center navigation across the actual header, rather than between
   differently sized groups on the left and right. */
@media(min-width:950px){
 .site-header #main-nav{
  position:absolute;left:50%;transform:translateX(-50%);
  margin:0;white-space:nowrap;justify-content:center
 }
 .site-header .header-inner>.tv-link{margin-left:auto}
}
/* The homepage uses a wider content grid than the inner pages.
   Match the header's left edge to the player's content grid exactly. */
@media(min-width:1051px){
 body.video-home:not(.tv-mode) .site-header .header-inner{
  width:calc(100% - 68px);max-width:1780px;
  padding-left:0;padding-right:0;margin-left:auto;margin-right:auto
 }
}
@media(min-width:561px) and (max-width:1050px){
 body.video-home:not(.tv-mode) .site-header .header-inner{
  width:calc(100% - 40px);max-width:none;
  padding-left:0;padding-right:0;margin-left:auto;margin-right:auto
 }
}
@media(max-width:560px){
 body.video-home:not(.tv-mode) .site-header .header-inner{
  width:calc(100% - 22px);max-width:none;
  padding-left:0;padding-right:0;margin-left:auto;margin-right:auto
 }
}
/* The mobile selector used to create a second empty header row.
   Keep logo, menu button, and YouTube shortcut compact on a single row. */
@media(max-width:850px){
 .site-header .header-inner{flex-wrap:wrap;gap:10px}
 .site-header .header-inner::before{display:none!important;content:none!important}
 .site-header .header-inner>.brand{order:0;margin-right:auto}
 .site-header .header-inner>.menu-toggle{order:1;margin-left:0}
 .site-header .header-inner>.tv-link{order:2;margin-left:0}
 .site-header .header-inner>.youtube-header-link{order:3;margin-left:0}
 .site-header .header-inner>#main-nav{order:9;flex-basis:100%;justify-content:center;margin:0}
 .site-header #main-nav.expanded{justify-content:center}
}
@media(max-width:767px){
 .site-header .header-inner>.tv-link{display:none!important}
}

/* WOW TV 1.5.24 — no horizontal navigation; one compact menu at far right.
   The existing navigation markup and site.js menu toggle are preserved. */
.site-header .header-inner>.brand{order:0}
.site-header .header-inner>.brand-caption{order:1}
.site-header .header-inner>.tv-link{order:3;margin-left:auto!important}
.site-header .header-inner>.youtube-header-link{order:4}
.site-header .header-inner>.menu-toggle{
 display:inline-flex!important;order:5;align-items:center;justify-content:center;
 flex:0 0 40px;width:40px;height:40px;min-height:40px;
 margin:0!important;padding:8px;border:1px solid rgba(71,161,209,.3);
 border-radius:8px;background:#0b1a2b;color:#e8f6ff
}
.site-header .header-inner>.menu-toggle:hover,
.site-header .header-inner>.menu-toggle[aria-expanded="true"]{
 border-color:#42c7ff;background:#102b43;color:#61d6ff
}
.site-header .header-inner>.menu-toggle:focus-visible{
 outline:2px solid #47cfff;outline-offset:3px
}
.site-header #main-nav{
 display:none!important;position:absolute!important;top:calc(100% - 3px);left:auto!important;
 right:0;transform:none!important;z-index:160;
 width:min(286px,calc(100vw - 24px));margin:0!important;
 padding:9px;border:1px solid rgba(66,168,220,.36);border-radius:10px;
 background:#081522;box-shadow:0 20px 54px rgba(0,0,0,.6);
 flex:none!important;flex-direction:column;align-items:stretch;justify-content:flex-start;
 gap:2px;white-space:normal
}
.site-header #main-nav.expanded{display:flex!important}
.site-header #main-nav a{
 display:block;width:100%;padding:12px 14px;border-radius:6px;
 color:#d9eafa;font-size:13px;line-height:1.35
}
.site-header #main-nav a:hover,
.site-header #main-nav a:focus-visible{background:#10314a;color:#64d5ff}
@media(max-width:850px){
 .site-header .header-inner::before{display:none!important;content:none!important}
 .site-header .header-inner>.brand{order:0;margin-right:0}
 .site-header .header-inner>.tv-link{order:3;margin-left:auto!important}
 .site-header .header-inner>.youtube-header-link{order:4;margin-left:0!important}
 .site-header .header-inner>.menu-toggle{order:5;margin-left:0!important}
 .site-header .header-inner>#main-nav{
  order:9;flex-basis:auto!important;justify-content:flex-start!important
 }
}
@media(max-width:767px){
 .site-header .header-inner>.youtube-header-link{margin-left:auto!important}
 .site-header .header-inner>.tv-link{display:none!important}
}

/* WOW TV 1.5.44 - compact dropdown for the two sections. */
.site-header #main-nav{
 width:min(204px,calc(100vw - 24px))!important;
 padding:7px 6px!important;
 align-items:stretch!important;
 text-align:center!important;
}
.site-header #main-nav a{
 text-align:center!important;
 width:100%!important;
 padding:10px 8px!important;
 font-weight:700;
}
@media(max-width:560px){
 .site-header #main-nav{width:min(192px,calc(100vw - 22px))!important}
}

/* Admin-created sections: allow many menu entries without covering the whole screen. */
.site-header #main-nav.expanded{max-height:min(68vh,640px);overflow-y:auto;overscroll-behavior:contain}
