/*--------------------------------------------------------------
# Header
--------------------------------------------------------------*/
.site-header {
  background-color: var(--color-main) !important;
  padding: 1.5em 0;
  position: relative;
  z-index: 1100;
}

.header-container {
  max-width: 1216px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: nowrap;
  gap: 24px;
}

.site-branding {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.site-title,
.site-description {
  clip: rect(1px, 1px, 1px, 1px);
  position: absolute;
}

.site-title a,
.site-description {
  color: var(--color-white);
  text-decoration: none;
}

.custom-logo {
  max-height: 50px;
  max-width: 210px;
  width: auto;
}

/*--------------------------------------------------------------
# Main Navigation - Mega Menu
--------------------------------------------------------------*/
.main-navigation {
  display: flex;
  align-items: flex-start;
  flex: 1;
  justify-content: flex-end;
}

.main-navigation ul {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 8px;
  align-items: center;
}

.mega-menu {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 8px;
  align-items: center;
}

.mega-menu-item {
  position: relative;
  margin: 0;
  z-index: 1002;
}

/* Invisible hover bridge to connect menu item to dropdown */
.mega-menu-item.has-mega-dropdown::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  height: 100px; /* Enough height to bridge the gap to dropdown */
  background: transparent;
  pointer-events: none;
}

.mega-menu-item.has-mega-dropdown:hover::after {
  pointer-events: auto;
}

.mega-menu-item > a {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--color-white);
  text-decoration: none;
  font-weight: 500;
  font-size: 15px;
  padding: 10px 16px;
  border-radius: 4px;
  transition: all 0.2s ease;
  position: relative;
  z-index: 1003;
}

.mega-menu-item > a:hover {
  color: var(--color-gold);
}

.mega-menu-item > a .dropdown-arrow {
  transition: transform 0.2s ease;
}

.mega-menu-item:hover > a .dropdown-arrow {
  transform: rotate(180deg);
}

/*--------------------------------------------------------------
# Mega Dropdown - Full Width Style
--------------------------------------------------------------*/
.mega-dropdown {
  display: none !important;
  position: fixed;
  top: 95px; /* Positioned below the header */
  left: 0;
  right: 0;
  width: 100vw;
  background: var(--color-white);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  padding: 32px 0;
  z-index: 1101;
  border-top: 1px solid #e5e5e5;
}

.mega-menu-item:hover > .mega-dropdown {
  display: block !important;
}

/* No arrow on dropdown - removed ::before pseudo-element */

.mega-dropdown-container {
  max-width: 1216px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  gap: 60px;
  flex-wrap: wrap;
}

.mega-dropdown-column {
  min-width: 150px;
  flex: 0 0 auto;
}

.mega-dropdown-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--color-navy);
  margin: 0 0 16px 0;
  padding: 0;
  border-bottom: none;
}

.mega-dropdown-title a {
  color: var(--color-navy);
  text-decoration: none;
}

.mega-dropdown-title a:hover {
  color: var(--color-main);
}

.mega-dropdown-column ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: block;
  flex-direction: column;
}

.mega-dropdown-column ul li {
  margin: 0 0 10px 0;
}

.mega-dropdown-column ul li:last-child {
  margin-bottom: 0;
}

.mega-dropdown-column ul li a {
  color: #444;
  text-decoration: none;
  font-size: 16px;
  font-weight: 400;
  transition: color 0.2s ease;
  display: block;
  padding: 2px 0;
}

.mega-dropdown-column ul li a:hover {
  color: var(--color-main);
}

.mega-dropdown-column .mt-3 {
  margin-top: 24px;
}

/*--------------------------------------------------------------
# Header Actions
--------------------------------------------------------------*/
.header-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-shrink: 0;
}

.header-actions .search-form {
  position: relative;
}

.header-actions .search-form .search-field {
  background-color: var(--color-white);
  border: none;
  border-radius: 8px;
  padding: 0.6em 2.5em 0.6em 1em;
  color: var(--main-blue-950);
  width: 220px;
  height: 44px;
  font-size: 16px;
}

.header-actions .search-form .search-field::placeholder {
  color: #666;
}

.header-actions .search-form .search-submit {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
}

.header-actions .search-form .search-submit::before {
  content: "";
  display: block;
  width: 20px;
  height: 20px;
  background-image: url("../images/search.svg");
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
}

/*--------------------------------------------------------------
# Login Button
--------------------------------------------------------------*/
.header-login-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--color-white);
  text-decoration: none;
  font-weight: 500;
  font-size: 16px;
  padding: 10px 16px;
  border-radius: 4px;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.header-login-btn:hover {
  color: var(--color-gold);
}

.header-login-btn svg {
  stroke: currentColor;
}

/*--------------------------------------------------------------
# Auth Skeleton (fragment caching placeholder)
--------------------------------------------------------------*/
#header-auth-placeholder {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  min-width: 200px;
  min-height: 40px;
  flex-shrink: 0;
}

.header-auth-skeleton {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  width: 100%;
}

.header-auth-skeleton__icon {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  flex-shrink: 0;
}

.header-auth-skeleton__text {
  width: 140px;
  height: 14px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.12);
}

/*--------------------------------------------------------------
# User Dropdown (Logged In)
--------------------------------------------------------------*/
.header-user-dropdown {
  position: relative;
}

.header-user-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--color-white);
  background: none;
  border: none;
  cursor: pointer;
  font-weight: 500;
  font-size: 16px;
  padding: 10px 16px;
  border-radius: 4px;
  transition: all 0.2s ease;
  white-space: nowrap;
  font-family: inherit;
}

.header-user-btn:hover {
  color: var(--color-gold);
}

.header-user-name {
  max-width: 120px;
  overflow: hidden;
  text-overflow: ellipsis;
}

.header-user-arrow {
  transition: transform 0.2s ease;
}

.header-user-btn.active .header-user-arrow {
  transform: rotate(180deg);
}

.header-user-menu {
  position: absolute;
  top: 100%;
  right: 0;
  margin-top: 8px;
  background: var(--color-white);
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  min-width: 180px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.2s ease;
  z-index: 1000;
}

.header-user-menu.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.header-user-menu__item {
  display: block;
  padding: 12px 16px;
  color: var(--main-blue-950, #1a1a1a);
  text-decoration: none;
  font-size: 16px;
  transition: background-color 0.2s ease;
}

.header-user-menu__item:first-child {
  border-radius: 8px 8px 0 0;
}

.header-user-menu__item:last-child {
  border-radius: 0 0 8px 8px;
}

.header-user-menu__item:hover {
  background: #f5f5f5;
}

.header-user-menu__item--logout {
  color: #d32f2f;
  border-top: 1px solid #e0e0e0;
}

/* Mobile user styles */
.mobile-user-info {
  margin-bottom: 12px;
}

.mobile-user-name {
  color: var(--color-white);
  font-size: 16px;
  font-weight: 600;
}

.mobile-logout-btn {
  display: block;
  margin-top: 8px;
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  font-size: 16px;
}

.mobile-logout-btn:hover {
  color: var(--color-white);
}

/*--------------------------------------------------------------
# Secondary Header Navigation
--------------------------------------------------------------*/
.secondary-header {
  background-color: var(--color-navy-light, #0d2240);
  padding: 12px 0;
}

.secondary-header .header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.secondary-nav ul {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 32px;
}

.secondary-nav ul li {
  margin: 0;
}

.secondary-nav ul li a {
  color: var(--color-white);
  text-decoration: none;
  font-size: 16px;
  font-weight: 500;
  transition: color 0.2s ease;
}

.secondary-nav ul li a:hover {
  color: var(--color-gold);
}

.secondary-header-social {
  display: flex;
  align-items: center;
  gap: 16px;
}

.secondary-header-social a {
  display: flex;
  align-items: center;
  justify-content: center;
}

.secondary-header-social img {
  width: 20px;
  height: 20px;
  filter: brightness(0) saturate(100%) invert(76%) sepia(68%) saturate(489%)
    hue-rotate(4deg) brightness(103%) contrast(94%);
}

.secondary-header-social a:hover img {
  filter: brightness(0) invert(1);
}

/*--------------------------------------------------------------
# Mobile Menu
--------------------------------------------------------------*/

/* Mobile Menu Toggle Button (Hamburger) */
.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 24px;
  height: 18px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 1001;
}

.mobile-menu-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background-color: var(--color-white);
  transition: all 0.3s ease;
}

/* Mobile Login Toggle Button */
.mobile-login-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  background-color: var(--color-secondary);
  color: var(--color-main);
  text-decoration: none;
  font-weight: 700;
  font-size: 13px;
  line-height: 1;
  padding: 9px 16px;
  border-radius: 999px;
  white-space: nowrap;
  transition: opacity 0.2s ease;
}

.mobile-login-toggle:hover,
.mobile-login-toggle:focus {
  color: var(--color-main);
  text-decoration: none;
  opacity: 0.9;
}

/* Mobile Search Toggle Button */
.mobile-search-toggle {
  display: none;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  width: 24px;
  height: 24px;
}

.mobile-search-toggle img {
  width: 24px;
  height: 24px;
  filter: brightness(0) invert(1);
}

/* Mobile Drawer Overlay */
.mobile-drawer-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 1998;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.mobile-drawer-overlay.active {
  display: block;
  opacity: 1;
}

/* Mobile Drawer */
.mobile-drawer {
  position: fixed;
  top: 0;
  left: -100%;
  width: 100%;
  max-width: 375px;
  height: 100%;
  background-color: var(--color-white);
  z-index: 1999;
  overflow-y: auto;
  transition: left 0.3s ease;
  display: flex;
  flex-direction: column;
}

.mobile-drawer.active {
  left: 0;
}

/* Mobile Drawer Header */
.mobile-drawer-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  background-color: var(--color-main);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.mobile-drawer-logo {
  max-height: 40px;
  width: auto;
}

.mobile-drawer-close {
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-white);
}

/* Mobile Drawer Search */
.mobile-drawer-search {
  padding: 20px;
  background-color: var(--color-main);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.mobile-drawer-search .search-form {
  position: relative;
}

.mobile-drawer-search label {
  width: 100%;
}

.mobile-drawer-search .search-field {
  width: 100%;
  background-color: var(--color-white);
  border: none;
  border-radius: 8px;
  padding: 12px 40px 12px 16px;
  font-size: 16px;
  color: var(--color-navy);
}

.mobile-drawer-search .search-submit {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
}

.mobile-drawer-search .search-submit::before {
  content: "";
  display: block;
  width: 20px;
  height: 20px;
  background-image: url("../images/search.svg");
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
}

/* Mobile Drawer Navigation */
.mobile-drawer-nav {
  flex: 1;
  padding: 0;
  overflow-y: auto;
}

.mobile-drawer-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.mobile-drawer-nav > ul {
  border-bottom: 1px solid #e5e5e5;
  background-color: #fff;
}

.mobile-drawer-nav li {
  border-bottom: 1px solid #e5e5e5;
  margin: 0;
}

.mobile-drawer-nav li.menu-item-has-children {
  display: flex;
  align-items: stretch;
  flex-wrap: wrap;
  width: 100%;
}

.mobile-drawer-nav li:last-child {
  border-bottom: none;
}

.mobile-drawer-nav li > a {
  display: flex;
  align-items: center;
  padding: 16px 20px;
  color: var(--color-navy);
  text-decoration: none;
  font-weight: 600;
  font-size: 16px;
  transition: background-color 0.2s ease;
  flex: 1;
}

.mobile-drawer-nav li > a .menu-link-text {
  position: relative;
  z-index: 1;
}

.mobile-drawer-nav li.menu-item-has-children > a {
  flex: 1 1 auto;
  min-width: 0;
}

.mobile-drawer-nav li > a:hover {
  background-color: #f5f5f5;
}

/* Submenu Styles */
.mobile-drawer-nav .menu-item-has-children > .submenu-toggle {
  width: 52px;
  border: 0;
  background-color: transparent;
  cursor: pointer;
  flex-shrink: 0;
  position: relative;
  align-self: stretch;
  margin-left: -8px;
}

.mobile-drawer-nav .menu-item-has-children > .submenu-toggle::before {
  content: "";
  position: absolute;
  inset: 0;
  margin: auto;
  width: 12px;
  height: 12px;
  background-image: url("data:image/svg+xml,%3Csvg width='12' height='12' viewBox='0 0 12 12' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M3 4.5L6 7.5L9 4.5' stroke='%231a2643' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  transition: transform 0.3s ease;
}

.mobile-drawer-nav .menu-item-has-children:hover > a,
.mobile-drawer-nav .menu-item-has-children:hover > .submenu-toggle {
  background-color: #f5f5f5;
}

.mobile-drawer-nav
  .menu-item-has-children.submenu-open
  > .submenu-toggle::before {
  transform: rotate(180deg);
}

.mobile-drawer-nav .sub-menu {
  display: none;
  background-color: transparent;
  padding: 0;
  width: 100%;
  border-top: 1px solid #ececec;
}

.mobile-drawer-nav .submenu-open > .sub-menu {
  display: block;
}

.mobile-drawer-nav .sub-menu li {
  border-bottom: 1px solid #e5e5e5;
}

.mobile-drawer-nav .sub-menu li:last-child {
  border-bottom: none;
}

.mobile-drawer-nav .sub-menu > li > a {
  padding: 12px 20px 12px 40px;
  color: var(--color-navy);
  text-decoration: none;
  font-size: 16px;
  font-weight: 400;
  transition: background-color 0.2s ease;
}

.mobile-drawer-nav .sub-menu > li > a:hover {
  background-color: #efefef;
}

.mobile-drawer-nav .mobile-menu-depth-1 {
  background-color: #f8f8f8;
}

.mobile-drawer-nav .mobile-menu-depth-1 > a,
.mobile-drawer-nav .mobile-menu-depth-1 > .submenu-toggle {
  background-color: #f8f8f8;
}

.mobile-drawer-nav .mobile-menu-depth-2 {
  background-color: #f1f1f1;
}

.mobile-drawer-nav .mobile-menu-depth-2 > a,
.mobile-drawer-nav .mobile-menu-depth-2 > .submenu-toggle {
  background-color: #f1f1f1;
}

.mobile-drawer-nav .sub-menu .sub-menu > li > a {
  padding-left: 60px;
  font-size: 15px;
}

.mobile-drawer-nav .sub-menu .menu-item-has-children > .submenu-toggle {
  margin-left: -8px;
}

.mobile-drawer-nav .menu-item-has-children:hover > a,
.mobile-drawer-nav .menu-item-has-children:hover > .submenu-toggle,
.mobile-drawer-nav .sub-menu > li:hover > a,
.mobile-drawer-nav .sub-menu > li:hover > .submenu-toggle {
  filter: brightness(0.98);
}

/* Mobile Drawer Footer */
.mobile-drawer-footer {
  padding: 20px;
  background-color: var(--color-white);
  border-top: 1px solid #e5e5e5;
}

.mobile-login-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 14px 20px;
  background-color: var(--color-main);
  color: var(--color-gold);
  text-decoration: none;
  font-weight: 600;
  font-size: 16px;
  border-radius: 8px;
  transition: background-color 0.2s ease;
}

.mobile-login-btn:hover {
  background-color: var(--color-navy);
  color: var(--color-gold);
}

.mobile-login-btn svg {
  stroke: currentColor;
}

/*--------------------------------------------------------------
# Mobile Responsive Styles
--------------------------------------------------------------*/

@media screen and (max-width: 1199px) {
  .mega-dropdown {
    min-width: 700px;
  }

  .mega-dropdown-container {
    gap: 24px;
    flex-wrap: wrap;
  }

  .mega-dropdown-column {
    min-width: 140px;
  }
}

@media screen and (max-width: 991px) {
  /* Show mobile menu toggle and hide desktop menu */
  .mobile-menu-toggle {
    display: flex;
  }

  .mobile-search-toggle {
    display: block;
  }

  .mobile-login-toggle {
    display: inline-flex;
  }

  /* Hide desktop navigation */
  .main-navigation {
    display: none !important;
  }

  /* Hide desktop search, login, user dropdown and auth skeleton */
  .header-actions .search-form,
  .header-login-btn,
  .header-user-dropdown,
  .header-auth-skeleton,
  #header-auth-placeholder {
    display: none;
  }

  /* Center logo on mobile via flex layout */
  .header-container {
    position: relative;
    justify-content: space-between;
  }

  .site-branding {
    flex: 1 1 auto;
    justify-content: center;
    min-width: 0;
  }

  .site-branding a {
    display: inline-flex;
    align-items: center;
    max-width: 100%;
  }

  .custom-logo {
    max-height: 40px;
    max-width: 160px;
    object-fit: contain;
  }

  /* Adjust header padding for mobile */
  .site-header {
    padding: 1em 0;
  }

  .header-container {
    padding: 0 16px;
  }

  /* Secondary header responsive */
  .secondary-header {
    display: none;
  }
}

@media screen and (max-width: 767px) {
  .mobile-drawer {
    max-width: 100%;
  }

  .custom-logo {
    max-height: 36px;
    max-width: 140px;
  }

  .mobile-login-toggle {
    padding: 8px 14px;
    font-size: 12px;
  }
}

@media screen and (min-width: 992px) {
  /* Hide mobile elements on desktop */
  .mobile-drawer,
  .mobile-drawer-overlay,
  .mobile-menu-toggle,
  .mobile-search-toggle,
  .mobile-login-toggle {
    display: none !important;
  }
}

/*--------------------------------------------------------------
# Search Autocomplete
--------------------------------------------------------------*/
.search-form {
  position: relative;
}

.search-autocomplete {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  margin-top: 8px;
  background: var(--color-white, #fff);
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
  min-width: 380px;
  max-height: 480px;
  overflow-y: auto;
  z-index: 1002;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.2s ease;
}

.search-autocomplete.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* Section */
.search-autocomplete__section {
  display: none;
}

.search-autocomplete.is-visible:not(.is-loading):not(.is-empty)
  .search-autocomplete__section {
  display: block;
}

/* Header */
.search-autocomplete__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px 12px;
  border-bottom: 1px solid #e5e5e5;
}

.search-autocomplete__title {
  font-size: 16px;
  font-weight: 600;
  color: var(--color-navy, #1a2643);
}

.search-autocomplete__see-all {
  font-size: 16px;
  font-weight: 500;
  color: var(--color-main, #1e3a8a);
  text-decoration: none;
  transition: color 0.2s ease;
}

.search-autocomplete__see-all:hover {
  color: var(--color-gold, #d4af37);
}

/* Results */
.search-autocomplete__results {
  padding: 8px 0;
}

/* Result Item */
.search-autocomplete__item {
  transition: background-color 0.15s ease;
}

.search-autocomplete__item:hover,
.search-autocomplete__item.is-selected {
  background-color: #f5f5f5;
}

.search-autocomplete__item-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 20px;
  text-decoration: none;
  color: inherit;
}

/* Image */
.search-autocomplete__item-image {
  flex-shrink: 0;
  overflow: hidden;
  border-radius: 4px;
  background-color: #e0e0e0;
}

.search-autocomplete__item-image--poster {
  width: 48px;
  height: 72px;
}

.search-autocomplete__item-image--article {
  width: 56px;
  height: 56px;
  border-radius: 6px;
}

.search-autocomplete__item-image--person {
  width: 48px;
  height: 48px;
  border-radius: 50%;
}

.search-autocomplete__item-initials {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background-color: var(--color-main, #0a376e);
  color: var(--color-white, #ffffff);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 700;
  flex-shrink: 0;
  line-height: 1;
}

.search-autocomplete__item-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Content */
.search-autocomplete__item-content {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.search-autocomplete__item-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--color-navy, #1a2643);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.search-autocomplete__item-subtitle {
  font-size: 13px;
  font-weight: 400;
  color: #666;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Loading State */
.search-autocomplete__loading {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 32px 20px;
  font-size: 16px;
  color: #666;
}

.search-autocomplete.is-loading .search-autocomplete__loading {
  display: flex;
}

.search-autocomplete__spinner {
  width: 20px;
  height: 20px;
  border: 2px solid #e0e0e0;
  border-top-color: var(--color-main, #1e3a8a);
  border-radius: 50%;
  animation: search-spinner 0.8s linear infinite;
}

@keyframes search-spinner {
  to {
    transform: rotate(360deg);
  }
}

/* Empty State */
.search-autocomplete__empty {
  display: none;
  padding: 32px 20px;
  text-align: center;
  font-size: 16px;
  color: #666;
}

.search-autocomplete.is-empty .search-autocomplete__empty {
  display: block;
}

/* Header Actions - Positioning for desktop */
.header-actions .search-autocomplete {
  left: auto;
  right: 0;
  min-width: 420px;
}

/* Mobile Drawer - Search Autocomplete */
.mobile-drawer-search .search-autocomplete {
  position: fixed;
  top: auto;
  left: 16px;
  right: 16px;
  margin-top: 8px;
  min-width: auto;
  max-height: 60vh;
}

/*--------------------------------------------------------------
# Mobile Bottom Navigation
--------------------------------------------------------------*/
.mobile-bottom-nav {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  background: #0a376e;
  border-radius: 20px 20px 0 0;
  padding: 12px 8px 8px;
  justify-content: space-around;
  align-items: center;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.3);
}

.mobile-bottom-nav::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(240, 199, 45, 0.3),
    transparent
  );
}

.mobile-bottom-nav__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  text-decoration: none;
  color: var(--color-gold, #f0c72d);
  padding: 4px 8px;
  border-radius: 12px;
  transition:
    opacity 0.2s ease,
    transform 0.2s ease;
  -webkit-tap-highlight-color: transparent;
  min-width: 56px;
}

.mobile-bottom-nav__item span {
  font-size: 11px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.mobile-bottom-nav__icon {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
}

.mobile-bottom-nav__item:hover,
.mobile-bottom-nav__item:focus {
  color: var(--color-gold, #f0c72d);
  text-decoration: none;
  opacity: 0.8;
}

.mobile-bottom-nav__item:active {
  transform: scale(0.92);
}

.mobile-bottom-nav__item.active {
  color: #fff;
  background: rgba(240, 199, 45, 0.15);
}

@media screen and (max-width: 991px) {
  .mobile-bottom-nav {
    display: flex;
  }
}

@media screen and (min-width: 992px) {
  .mobile-bottom-nav {
    display: none !important;
  }
}

@media screen and (max-width: 360px) {
  .mobile-bottom-nav__item {
    min-width: 48px;
    padding: 4px 4px;
  }

  .mobile-bottom-nav__item span {
    font-size: 10px;
  }

  .mobile-bottom-nav__icon {
    width: 24px;
    height: 24px;
  }
}

/* Responsive adjustments */
@media screen and (max-width: 991px) {
  .header-actions .search-autocomplete {
    display: none;
  }
}

@media screen and (max-width: 480px) {
  .mobile-drawer-search .search-autocomplete {
    left: 8px;
    right: 8px;
  }

  .search-autocomplete__item-link {
    padding: 10px 16px;
    gap: 10px;
  }

  .search-autocomplete__item-image--poster {
    width: 40px;
    height: 60px;
  }

  .search-autocomplete__item-image--article {
    width: 48px;
    height: 48px;
  }

  .search-autocomplete__item-image--person {
    width: 40px;
    height: 40px;
  }

  .search-autocomplete__item-initials {
    width: 40px;
    height: 40px;
    font-size: 16px;
  }
}

/*--------------------------------------------------------------
# Fullscreen Search Modal
--------------------------------------------------------------*/
.search-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: #f5f6f8;
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.25s ease,
    visibility 0.25s ease;
  display: flex;
  flex-direction: column;
}

.search-modal-overlay.is-open {
  opacity: 1;
  visibility: visible;
}

/* Top bar */
.search-modal__bar {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px;
  background: var(--color-main, #0a2463);
}

.search-modal__input-wrap {
  flex: 1;
  position: relative;
  display: flex;
  align-items: center;
}

.search-modal__input {
  flex: 1;
  width: 100%;
  background-color: #fff;
  border: none;
  border-radius: 8px !important;
  padding: 0 44px 0 14px;
  color: #1a2643;
  height: 44px;
  font-size: 16px;
  font-family: inherit;
  outline: none;
}

.search-modal__input::placeholder {
  color: #999;
  padding-left: 10px;
}

.search-modal__search-icon {
  position: absolute;
  right: 10px;
  width: 24px;
  height: 24px;
  color: var(--color-main, #0a2463);
  background: none;
  border-radius: 0;
  padding: 0;
  pointer-events: auto;
  cursor: pointer;
}

.search-modal__close {
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 4px 0;
  color: rgba(255, 255, 255, 0.8);
  font-size: 16px;
  font-weight: 600;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: inherit;
  transition: color 0.15s;
}

.search-modal__close:hover {
  color: #fff;
}

/* Content */
.search-modal__content {
  flex: 1;
  overflow-y: auto;
  padding: 0 0 40px;
}

/* Section header */
.search-modal__section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 16px 10px;
}

.search-modal__section-title {
  font-size: 15px;
  font-weight: 700;
  color: #1a2643;
}

.search-modal__see-all {
  font-size: 16px;
  font-weight: 600;
  color: var(--color-main, #0a2463);
  text-decoration: none;
}

.search-modal__see-all:hover {
  text-decoration: underline;
}

/* Popular items — single card with dividers */
.search-modal__popular-list {
  list-style: none;
  margin: 0 16px;
  padding: 0;
  background: #fff;
  border-radius: 14px;
  overflow: hidden;
}

.search-modal__popular-item {
  border-bottom: 1px solid #e8e8e8;
}

.search-modal__popular-item:last-child {
  border-bottom: none;
}

.search-modal__popular-item a {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  color: #374151;
  text-decoration: none;
  font-size: 15px;
}

/* Search results */
.search-modal__results {
  display: none;
}

.search-modal-overlay.has-results .search-modal__results {
  display: block;
}

.search-modal-overlay.has-results .search-modal__popular {
  display: none;
}

.search-modal__result-section {
  margin-bottom: 8px;
}

/* Result items — single card with dividers */
.search-modal__result-list {
  margin: 0 16px;
  padding: 0;
  background: #fff;
  border-radius: 14px;
  overflow: hidden;
}

.search-modal__result-item {
  border-bottom: 1px solid #e8e8e8;
}

.search-modal__result-item:last-child {
  border-bottom: none;
}

.search-modal__result-item a {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  text-decoration: none;
  color: inherit;
}

.search-modal__result-thumb {
  flex-shrink: 0;
  overflow: hidden;
  background: #e5e7eb;
}

.search-modal__result-thumb--movie {
  width: 48px;
  height: 68px;
  border-radius: 8px;
}

.search-modal__result-thumb--person {
  width: 48px;
  height: 48px;
  border-radius: 50%;
}

.search-modal__result-thumb--article {
  width: 48px;
  height: 48px;
  border-radius: 8px;
}

.search-modal__result-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.search-modal__result-text {
  flex: 1;
  min-width: 0;
}

.search-modal__result-name {
  font-size: 16px;
  font-weight: 600;
  color: #1a2643;
  display: block;
  line-height: 1.3;
}

.search-modal__result-sub {
  font-size: 13px;
  color: #6b7280;
  display: block;
  margin-top: 3px;
}

/* Loading & empty */
.search-modal__loading,
.search-modal__empty {
  display: none;
  padding: 48px 16px;
  text-align: center;
  font-size: 16px;
  color: #6b7280;
}

.search-modal-overlay.is-loading .search-modal__loading {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.search-modal-overlay.is-loading .search-modal__popular,
.search-modal-overlay.is-loading .search-modal__results {
  display: none;
}

.search-modal-overlay.is-empty .search-modal__empty {
  display: block;
}

.search-modal-overlay.is-empty .search-modal__popular,
.search-modal-overlay.is-empty .search-modal__results {
  display: none;
}

.search-modal__spinner {
  width: 18px;
  height: 18px;
  border: 2px solid #d1d5db;
  border-top-color: var(--color-main, #0a2463);
  border-radius: 50%;
  animation: search-modal-spin 0.7s linear infinite;
}

@keyframes search-modal-spin {
  to {
    transform: rotate(360deg);
  }
}
