/* GoWatch TEST08 – opt-in custom header 5, no effects on other headers. */
#header .airkit_header-style5.gw-h5-custom,
#header .airkit_header-style5.gw-h5-custom.fixed {
  background: var(--gw-h5-brand-bg, #112332);
  color: var(--gw-h5-brand-foreground, #fff);
  border-bottom: 2px solid var(--gw-h5-brand-accent, #D50022);
  box-shadow: 0 5px 18px rgba(9,18,29,.22);
}
#header .airkit_header-style5.gw-h5-custom .gw-h5-brand-link,
#header .airkit_header-style5.gw-h5-custom .gw-h5-text-brand {
  color: var(--gw-h5-brand-foreground, #fff);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
}
#header .airkit_header-style5.gw-h5-custom .gw-h5-text-brand {
  font-weight: 800; font-size: 21px; line-height: 1.1; letter-spacing: -.3px;
}
#header .airkit_header-style5.gw-h5-custom .gw-h5-brand-image {
  display: block; max-width: 160px; max-height: 66px; width: auto; height: auto; object-fit: contain;
}
#header .airkit_header-style5.gw-h5-custom .sb-menu-toggle .hamburger-inner,
#header .airkit_header-style5.gw-h5-custom .sb-menu-toggle .hamburger-inner::before,
#header .airkit_header-style5.gw-h5-custom .sb-menu-toggle .hamburger-inner::after {
  background-color: var(--gw-h5-brand-foreground, #fff);
}
#header .airkit_header-style5.gw-h5-custom .user-element,
#header .airkit_header-style5.gw-h5-custom .user-element a:not(.btn),
#header .airkit_header-style5.gw-h5-custom .user-element > .user-image i {
  color: var(--gw-h5-brand-foreground, #fff);
}
#header .airkit_header-style5.gw-h5-custom .searchbox.style-input .hidden-form-search input[type="text"] {
  background-color: var(--gw-h5-brand-search-bg, #263C50);
  color: var(--gw-h5-brand-foreground, #fff);
  border: 1px solid rgba(255,255,255,.20);
}
#header .airkit_header-style5.gw-h5-custom .searchbox.style-input .hidden-form-search .searchbutton {
  color: var(--gw-h5-brand-foreground, #fff);
}
#header .airkit_header-style5.gw-h5-custom .searchbox.style-input .hidden-form-search input[type="text"]:focus {
  outline: 2px solid var(--gw-h5-brand-accent,#D50022);
  outline-offset: 1px;
}
#header .airkit_header-style5.gw-h5-custom .searchbox.style-input .hidden-form-search input[type="text"]::placeholder {
  color: rgba(255,255,255,.78);
}
@media only screen and (max-width: 768px) {
  /* Keep existing GoWatch elements, but regroup search and account at the right. */
  #header .airkit_header-style5.gw-h5-custom .container {width:100%;}
  #header .airkit_header-style5.gw-h5-custom .airkit_table-content {
    display:flex !important; flex-wrap:nowrap; align-items:center;
    gap: var(--gw-h5-brand-mobile-gap, 8px);
    width:100%; min-width:0;
    padding:0 12px !important; box-sizing:border-box;
  }
  #header .airkit_header-style5.gw-h5-custom .airkit_table-content > .cell-item {
    display:flex !important; align-items:center; flex:0 0 auto;
    width:auto !important; min-width:0; padding:0 !important;
    float:none !important;
  }
  #header .airkit_header-style5.gw-h5-custom .airkit_table-content > .cell-item:first-child {
    flex:0 0 29px; width:29px !important;
  }
  #header .airkit_header-style5.gw-h5-custom .airkit_table-content > .cell-item:nth-child(2) {
    flex:1 1 auto; justify-content:flex-start; min-width:0;
  }
  #header .airkit_header-style5.gw-h5-custom .airkit_table-content > .cell-item:nth-child(3) {
    flex:0 0 44px; margin-left:auto;
  }
  #header .airkit_header-style5.gw-h5-custom .airkit_table-content > .cell-item:nth-child(4) {
    flex:0 0 var(--gw-h5-brand-account-size,32px);
    width:var(--gw-h5-brand-account-size,32px) !important;
  }
  #header .airkit_header-style5.gw-h5-custom .gw-h5-brand-image,
  #header .airkit_header-style5.gw-h5-custom .logo img {max-width:125px; max-height:55px;}
  #header .airkit_header-style5.gw-h5-custom .gw-h5-text-brand {font-size:16px;}
  #header .airkit_header-style5.gw-h5-custom .searchbox.style-input .search-trigger {
    background: rgba(255,255,255,.11);
    border:1px solid rgba(255,255,255,.23);
    color:var(--gw-h5-brand-foreground,#fff) !important;
    width:44px; height:44px;
  }
  #header .airkit_header-style5.gw-h5-custom .searchbox.style-input .search-trigger[aria-expanded="true"] {
    background:var(--gw-h5-brand-accent,#D50022);
    border-color:var(--gw-h5-brand-accent,#D50022);
  }
  #header .airkit_header-style5.gw-h5-custom .mini-user-login {
    display:flex !important; align-items:center; justify-content:center;
    width:var(--gw-h5-brand-account-size,32px);
    height:var(--gw-h5-brand-account-size,32px);
    line-height:1; background:rgba(255,255,255,.09);
    border-radius:50%; margin:0;
  }
  #header .airkit_header-style5.gw-h5-custom .user-element {margin:0;}
  /* The mobile search PANEL remains light for readability (TEST07). */
  #header .airkit_header-style5.gw-h5-custom .searchbox.style-input .hidden-form-search input[type="text"] {
    color:var(--gw-h5-search-text,#172635) !important;
    background:#f5f7fa !important;
    border:1px solid #bdc9d4 !important;
    outline:0;
  }
  #header .airkit_header-style5.gw-h5-custom .searchbox.style-input .hidden-form-search .searchbutton {
    color:var(--gw-h5-search-text,#172635) !important;
  }
  #header .airkit_header-style5.gw-h5-custom .searchbox.style-input .hidden-form-search input[type="text"]::placeholder {
    color:#526477 !important;
    opacity:1;
  }
}
@media only screen and (max-width: 360px) {
  #header .airkit_header-style5.gw-h5-custom .airkit_table-content > .cell-item:first-child {flex-basis:26px;width:26px !important;}
  #header .airkit_header-style5.gw-h5-custom .gw-h5-brand-image {max-width:105px;}
}


/* TEST09: profile dropdown contrast and responsive header refinements.
   The TEST08 header link color applied to *all* user links including a light
   dropdown. Keep the header icons white but use dark readable dropdown text. */
#header .airkit_header-style5.gw-h5-custom .user-element .user-dropdown {
  background: #FFFFFF !important;
  color: #172635 !important;
  border: 1px solid #D9E1E8;
  border-radius: 12px;
  box-shadow: 0 14px 35px rgba(12, 29, 45, .24);
  box-sizing: border-box;
  z-index: 100010;
  padding: 18px 14px;
}
#header .airkit_header-style5.gw-h5-custom .user-element .user-dropdown .user-info,
#header .airkit_header-style5.gw-h5-custom .user-element .user-dropdown .user-info .role,
#header .airkit_header-style5.gw-h5-custom .user-element .user-dropdown .user-info a,
#header .airkit_header-style5.gw-h5-custom .user-element .user-dropdown .user-menu li a,
#header .airkit_header-style5.gw-h5-custom .user-element .user-dropdown .user-menu li a:not(.btn),
#header .airkit_header-style5.gw-h5-custom .user-element .user-dropdown .user-menu li a i {
  color: #172635 !important;
}
#header .airkit_header-style5.gw-h5-custom .user-element .user-dropdown .user-info .role {
  opacity: .8;
}
#header .airkit_header-style5.gw-h5-custom .user-element .user-dropdown .user-menu li a {
  padding: 11px 13px;
  margin: 2px 0;
  border-radius: 7px;
  line-height: 1.45;
  text-decoration: none;
}
#header .airkit_header-style5.gw-h5-custom .user-element .user-dropdown .user-menu li a:hover,
#header .airkit_header-style5.gw-h5-custom .user-element .user-dropdown .user-menu li a:focus-visible {
  background: #EDF2F7 !important;
  color: #A6001A !important;
  outline-offset: 2px;
}
#header .airkit_header-style5.gw-h5-custom .user-element .user-dropdown .user-menu li a:hover i,
#header .airkit_header-style5.gw-h5-custom .user-element .user-dropdown .user-menu li a:focus-visible i {
  color: #A6001A !important;
}
#header .airkit_header-style5.gw-h5-custom .user-element .user-dropdown .user-menu {
  border-top-color: #E0E6EC;
}
/* No extra empty space around the dark branded header at phone sizes. */
@media only screen and (max-width: 768px) {
  #header .airkit_header-style5.gw-h5-custom {
    padding-top: 8px !important;
    padding-bottom: 8px !important;
    margin-bottom: 18px;
  }
  #header .airkit_header-style5.gw-h5-custom.fixed {
    padding-top: 6px !important;
    padding-bottom: 6px !important;
  }
  #header .airkit_header-style5.gw-h5-custom .row { margin-bottom: 0; }
  #header .airkit_header-style5.gw-h5-custom .airkit_table-content {
    min-height: 58px;
    align-items: center !important;
  }
  #header .airkit_header-style5.gw-h5-custom .airkit_table-content > .cell-item {
    align-self: center;
    justify-content: center;
    vertical-align: middle;
  }
  #header .airkit_header-style5.gw-h5-custom .airkit_table-content > .cell-item:nth-child(2) {
    justify-content: flex-start;
  }
  #header .airkit_header-style5.gw-h5-custom .gw-h5-brand-cell,
  #header .airkit_header-style5.gw-h5-custom .gw-h5-brand-link,
  #header .airkit_header-style5.gw-h5-custom .airkit_menu,
  #header .airkit_header-style5.gw-h5-custom .searchbox,
  #header .airkit_header-style5.gw-h5-custom .user-element {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
  }
  #header .airkit_header-style5.gw-h5-custom .gw-h5-brand-image {
    max-height: 52px;
    width: auto;
    object-fit: contain;
  }
  /* Keep the search overlay as wide as the tablet/phone screen allows. */
  #header .airkit_header-style5.gw-h5-custom .searchbox.style-input .hidden-form-search {
    max-width: none !important;
    left: 12px !important;
    right: 12px !important;
  }
  #header .airkit_header-style5.gw-h5-custom .user-element {
    position: relative;
    overflow: visible;
  }
  #header .airkit_header-style5.gw-h5-custom .user-element .user-dropdown {
    right: 0 !important;
    left: auto !important;
    min-width: 0 !important;
    width: min(310px, calc(100vw - 24px));
    max-width: calc(100vw - 24px) !important;
    max-height: calc(100dvh - 110px);
    overflow-y: auto;
    margin-top: 10px;
  }
}
/* Tablet landscape: the built-in GoWatch 50%-width search column is too narrow. */
@media only screen and (min-width: 769px) and (max-width: 1100px) {
  #header .airkit_header-style5.gw-h5-custom .airkit_table-content {
    display: flex !important;
    align-items: center;
    gap: 14px;
    min-width: 0;
    width: 100%;
  }
  #header .airkit_header-style5.gw-h5-custom .airkit_table-content > .cell-item {
    display: flex !important;
    flex: 0 0 auto;
    align-items: center;
    float: none !important;
    min-width: 0;
    width: auto !important;
    padding: 0 !important;
  }
  #header .airkit_header-style5.gw-h5-custom .airkit_table-content > .cell-item:first-child {
    flex-basis: 32px;
  }
  #header .airkit_header-style5.gw-h5-custom .airkit_table-content > .cell-item:nth-child(2) {
    flex-basis: 135px;
  }
  #header .airkit_header-style5.gw-h5-custom .airkit_table-content > .cell-item:nth-child(3) {
    flex: 1 1 auto;
    min-width: 0;
  }
  #header .airkit_header-style5.gw-h5-custom .airkit_table-content > .cell-item:nth-child(4) {
    flex-basis: 42px;
  }
  #header .airkit_header-style5.gw-h5-custom .airkit_table-content > .cell-item:nth-child(3) .searchbox,
  #header .airkit_header-style5.gw-h5-custom .airkit_table-content > .cell-item:nth-child(3) .hidden-form-search,
  #header .airkit_header-style5.gw-h5-custom .airkit_table-content > .cell-item:nth-child(3) form {
    width: 100%;
    min-width: 0;
  }
  #header .airkit_header-style5.gw-h5-custom .gw-h5-brand-image {max-width:135px;}
}


/* TEST35 - CARP RUSH TV : sidebar menu navy finish.
   Only header 5 branded off-canvas menu; NOT site-wide dark mode.
   Styles must override the theme's per-menu dynamic colors, including mobile.
   The existing menu toggles, submenu JS and outside-click close remain intact. */
#header .airkit_header-style5.gw-h5-custom .airkit_sidebar-menu:not(.airkit_fullscreen-menu) .navbar-default,
#header .airkit_header-style5.gw-h5-custom .airkit_sidebar-menu:not(.airkit_fullscreen-menu) .navbar-default .dropdown-menu,
#header .airkit_header-style5.gw-h5-custom .airkit_sidebar-menu:not(.airkit_fullscreen-menu) .navbar-default .sub-menu {
  background-color: #142D3D !important;
  color: #F7FAFD !important;
  border-color: rgba(255,255,255,.12) !important;
}
/* Reserve a genuine header row for the close control. */
#header .airkit_header-style5.gw-h5-custom .airkit_sidebar-menu:not(.airkit_fullscreen-menu) .navbar-default {
  box-shadow: 10px 0 32px rgba(0,0,0,.27) !important;
}
#header .airkit_header-style5.gw-h5-custom .airkit_sidebar-menu:not(.airkit_fullscreen-menu) .navbar-default::before {
  content: 'MENU';
  position: absolute;
  top: 22px;
  left: 24px;
  z-index: 2;
  color: #B9CFDC;
  font-size: 12px;
  line-height: 22px;
  letter-spacing: .16em;
  font-weight: 700;
  pointer-events: none;
}
#header .airkit_header-style5.gw-h5-custom .airkit_sidebar-menu:not(.airkit_fullscreen-menu) .navbar-default .navbar-collapse {
  padding-top: 66px !important;
  padding-bottom: 24px !important;
}
#header .airkit_header-style5.gw-h5-custom .airkit_sidebar-menu:not(.airkit_fullscreen-menu) .navbar-default .navbar-collapse > ul > li > a,
#header .airkit_header-style5.gw-h5-custom .airkit_sidebar-menu:not(.airkit_fullscreen-menu) .navbar-default .dropdown-menu li > a,
#header .airkit_header-style5.gw-h5-custom .airkit_sidebar-menu:not(.airkit_fullscreen-menu) .navbar-default .nav-pills li > a {
  background-color: transparent !important;
  color: #F7FAFD !important;
  font-weight: 600;
  text-decoration: none;
}
#header .airkit_header-style5.gw-h5-custom .airkit_sidebar-menu:not(.airkit_fullscreen-menu) .navbar-default .navbar-collapse > ul > li > a {
  padding-left: 24px;
  padding-right: 44px;
}
#header .airkit_header-style5.gw-h5-custom .airkit_sidebar-menu:not(.airkit_fullscreen-menu) .navbar-default .navbar-collapse li.menu-item:not(:last-child) {
  border-color: rgba(224,236,244,.15) !important;
}
#header .airkit_header-style5.gw-h5-custom .airkit_sidebar-menu:not(.airkit_fullscreen-menu) .navbar-default .navbar-collapse > ul > li:first-child > a {
  color: #FF5771 !important;
}
#header .airkit_header-style5.gw-h5-custom .airkit_sidebar-menu:not(.airkit_fullscreen-menu) .navbar-default .navbar-collapse li.menu-item > a:hover,
#header .airkit_header-style5.gw-h5-custom .airkit_sidebar-menu:not(.airkit_fullscreen-menu) .navbar-default .navbar-collapse li.menu-item > a:focus-visible,
#header .airkit_header-style5.gw-h5-custom .airkit_sidebar-menu:not(.airkit_fullscreen-menu) .navbar-default .dropdown-menu li > a:hover {
  background-color: #26475B !important;
  color: #FFFFFF !important;
}
#header .airkit_header-style5.gw-h5-custom .airkit_sidebar-menu:not(.airkit_fullscreen-menu) .navbar-default .navbar-collapse li.current-menu-item > a,
#header .airkit_header-style5.gw-h5-custom .airkit_sidebar-menu:not(.airkit_fullscreen-menu) .navbar-default .navbar-collapse li.current-menu-ancestor > a {
  background-color: #203E50 !important;
  color: #FF7083 !important;
}
#header .airkit_header-style5.gw-h5-custom .airkit_sidebar-menu:not(.airkit_fullscreen-menu) .navbar-default .navbar-collapse li a > i,
#header .airkit_header-style5.gw-h5-custom .airkit_sidebar-menu:not(.airkit_fullscreen-menu) .navbar-default .navbar-collapse li a::after,
#header .airkit_header-style5.gw-h5-custom .airkit_sidebar-menu:not(.airkit_fullscreen-menu) .navbar-default .sub-menu--back {
  color: inherit !important;
}
/* Theme inserts the close span into .navbar and normally positions it below
   the panel on mobile. Keep the existing click handler; move it INSIDE the top. */
#header .airkit_header-style5.gw-h5-custom .airkit_sidebar-menu:not(.airkit_fullscreen-menu) .navbar .sb-menu-close {
  position: absolute !important;
  top: 12px !important;
  right: 12px !important;
  bottom: auto !important;
  left: auto !important;
  width: 42px !important;
  height: 42px !important;
  line-height: 40px !important;
  text-align: center;
  color: #FFFFFF !important;
  background-color: #29495D !important;
  border: 1px solid rgba(255,255,255,.32) !important;
  border-radius: 10px !important;
  z-index: 1005 !important;
  opacity: 1 !important;
  cursor: pointer;
  transition: background-color .2s ease, color .2s ease;
}
#header .airkit_header-style5.gw-h5-custom .airkit_sidebar-menu:not(.airkit_fullscreen-menu) .navbar .sb-menu-close:hover,
#header .airkit_header-style5.gw-h5-custom .airkit_sidebar-menu:not(.airkit_fullscreen-menu) .navbar .sb-menu-close:focus-visible {
  color: #FFFFFF !important;
  background-color: var(--gw-h5-brand-accent,#D50022) !important;
  outline: 2px solid #FFFFFF;
  outline-offset: 2px;
}
@media (max-width: 768px) {
  #header .airkit_header-style5.gw-h5-custom .airkit_sidebar-menu:not(.airkit_fullscreen-menu) .navbar-default .navbar-collapse {
    padding-top: 70px !important;
  }
  #header .airkit_header-style5.gw-h5-custom .airkit_sidebar-menu:not(.airkit_fullscreen-menu) .navbar-default .navbar-collapse > ul > li > a {
    font-size: 14px;
    line-height: 1.35;
  }
}


/* TEST36 - CARP RUSH TV : better contrast on the first mobile menu heading.
   The original GoWatch menu dims its .separator entries (opacity .7);
   reinforce ONLY the first heading/icon of the branded off-canvas menu.
   No change to other links, active state colors, submenu logic or desktop layout. */
#header .airkit_header-style5.gw-h5-custom
  .airkit_sidebar-menu:not(.airkit_fullscreen-menu)
  .navbar-default .navbar-collapse > ul > li:first-child {
  opacity: 1 !important;
}
#header .airkit_header-style5.gw-h5-custom
  .airkit_sidebar-menu:not(.airkit_fullscreen-menu)
  .navbar-default .navbar-collapse > ul > li:first-child > a,
#header .airkit_header-style5.gw-h5-custom
  .airkit_sidebar-menu:not(.airkit_fullscreen-menu)
  .navbar-default .navbar-collapse > ul > li:first-child > a i,
#header .airkit_header-style5.gw-h5-custom
  .airkit_sidebar-menu:not(.airkit_fullscreen-menu)
  .navbar-default .navbar-collapse > ul > li:first-child > a span {
  color: #FF91A5 !important;
  opacity: 1 !important;
}
