/* ── STICKY HEADER ── */
#site-header {
  position: fixed;
  top: 0.5rem;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 0.75rem 5%;
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  background: #e11e16;
  border: 2px solid rgba(255,255,255,0.1);
  border-radius: 10px;
  padding: 0.5rem 1.5rem;
  max-width: 1400px;
  margin: 0 auto;
}

/* ── LOGO ── */
.header-logo {
  flex-shrink: 0;
  display: flex;
  align-items: center;
}

.header-logo img {
  height: 20px;
  width: auto;
  display: block;
}

/* ── HAMBURGER BUTTON ── */
.hamburger-btn {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 4px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 102;
}

.hamburger-btn span {
  display: block;
  width: 22px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: all 0.3s ease;
}

/* ── MOBILE MENU OVERLAY ── */
.mobile-menu-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,0.7);
  z-index: 101;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.mobile-menu-overlay.active {
  display: block;
  opacity: 1;
}

.mobile-menu {
  position: fixed;
  top: 0;
  right: -100%;
  width: 85%;
  max-width: 360px;
  height: 100vh;
  background: #1a0302;
  border-left: 2px solid rgba(255,255,255,0.1);
  padding: 1.5rem;
  overflow-y: auto;
  transition: right 0.3s ease;
  z-index: 102;
}

.mobile-menu-overlay.active .mobile-menu {
  right: 0;
}

.mobile-menu-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.mobile-menu-header .header-logo img {
  height: 18px;
}

.mobile-menu-close {
  background: none;
  border: none;
  color: #fff;
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
  padding: 0;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 5px;
}

.mobile-menu-close:hover {
  background: rgba(255,255,255,0.1);
}

/* ── MOBILE SEARCH ── */
.mobile-search {
  position: relative;
  margin-bottom: 1.5rem;
}

.mobile-search input {
  width: 100%;
  background: rgba(255,255,255,0.1);
  border: 2px solid rgba(255,255,255,0.2);
  border-radius: 5px;
  color: #fff;
  font-family: "Outfit", system-ui, sans-serif;
  font-size: 0.8rem;
  padding: 0.6rem 2.5rem 0.6rem 0.75rem;
  outline: none;
}

.mobile-search input::placeholder {
  color: rgba(255,255,255,0.5);
}

.mobile-search .search-icon-btn {
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
}

.mobile-search-results {
  display: none;
  position: absolute;
  top: calc(100% + 5px);
  left: 0;
  right: 0;
  background: #2a0a08;
  border: 2px solid rgba(255,255,255,0.1);
  border-radius: 5px;
  overflow: hidden;
  z-index: 103;
  max-height: 300px;
  overflow-y: auto;
}

/* ── MOBILE NAVIGATION ── */
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.mobile-nav-link {
  display: block;
  text-decoration: none;
  color: #fff;
  font-family: "Outfit", system-ui, sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  padding: 0.75rem 0.5rem;
  border-radius: 5px;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

.mobile-nav-link:hover {
  background: rgba(255,255,255,0.05);
}

.mobile-nav-section {
  margin-top: 0.5rem;
  padding-top: 0.5rem;
  border-top: 1px solid rgba(255,255,255,0.1);
}

.mobile-nav-label {
  font-family: "Outfit", system-ui, sans-serif;
  font-size: 0.7rem;
  font-weight: 600;
  color: rgba(255,255,255,0.5);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 0.5rem 0.5rem 0.25rem;
}

.mobile-nav-sub {
  display: block;
  text-decoration: none;
  color: rgba(255,255,255,0.8);
  font-family: "Outfit", system-ui, sans-serif;
  font-size: 0.85rem;
  font-weight: 500;
  padding: 0.6rem 1rem;
  border-radius: 5px;
}

.mobile-nav-sub:hover {
  background: rgba(255,255,255,0.05);
  color: #fff;
}

/* ── NAVIGATION ── */
.header-nav {
  display: flex;
  align-items: center;
  gap: 0.15rem;
  flex: 1;
}

.nav-link {
  text-decoration: none;
  color: #fff;
  font-family: "Outfit", system-ui, sans-serif;
  font-size: 0.72rem;
  font-weight: 600;
  line-height: 15px;
  padding: 0.3rem 0.5rem;
  border-radius: 5px;
  white-space: nowrap;
}

.nav-link:hover {
  background: #fff;
  color: #000;
}

/* ── DROPDOWNS ── */
.nav-dropdown {
  position: relative;
}

.nav-dropdown .dropdown-menu {
  display: none;
  position: absolute;
  top: calc(100% + 26px);
  left: 0;
  background: #e11e16;
  border: 2px solid rgba(255,255,255,0.1);
  border-radius: 5px;
  padding: 0.4rem 0;
  min-width: 120px;
  z-index: 101;
}

.dropdown-item {
  display: block;
  text-decoration: none;
  color: rgb(255, 255, 255);
  font-family: "Outfit", system-ui, sans-serif;
  font-size: 0.68rem;
  font-weight: 600;
  line-height: 15px;
  padding: 0.2rem 1rem;
  white-space: nowrap;
}

.dropdown-item:hover {
  background: rgba(255,255,255,0.08);
  color: #fff;
}

/* ── ACCOUNT DROPDOWN ── */
.account-dropdown .nav-link {
  background: #fff;
  color: #000;
  border-radius: 5px;
  padding: 0.3rem 0.5rem;
  margin-left: 0.5rem;
}

.account-dropdown .nav-link:hover {
  color: #e11e16;
}

.account-dropdown .dropdown-menu {
  right: 0;
  left: auto;
}

/* ── SEARCH ── */
.header-search {
  position: relative;
  flex-shrink: 0;
  width: 240px;
}

#site-search {
  width: 100%;
  background: rgba(255,255,255,0.15);
  border: 2px solid rgba(255,255,255,0.2);
  border-radius: 5px;
  color: #fff;
  font-family: "Outfit", system-ui, sans-serif;
  font-size: 0.72rem;
  font-weight: 400;
  line-height: 15px;
  padding: 0.45rem 2.5rem 0.45rem 0.75rem;
  outline: none;
}

#site-search::placeholder {
  color: rgba(255,255,255,0.5);
}

#site-search:focus {
  background: rgba(255,255,255,0.2);
  border-color: rgba(255,255,255,0.4);
}

.search-icon-btn {
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  display: flex;
  align-items: center;
}

.search-icon {
  height: 17px;
  width: auto;
  filter: brightness(0) invert(1);
  opacity: 1;
}

/* ── SEARCH RESULTS ── */
.search-results {
  display: none;
  position: absolute;
  top: calc(100% + 17px);
  left: 0;
  right: 0;
  background: #e11e16;
  border: 2px solid rgba(255,255,255,0.1);
  border-radius: 5px;
  overflow: hidden;
  z-index: 101;
}

.search-result-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.5rem 0.75rem;
  text-decoration: none;
}

.search-result-item:hover {
  background: rgba(255,255,255,0.05);
}

.search-result-item.no-results {
  color: rgb(255, 255, 255);
  font-family: "Outfit", system-ui, sans-serif;
  font-size: 0.8rem;
  line-height: 15px;
  cursor: default;
}

.search-result-poster {
  width: 32px;
  height: 48px;
  object-fit: cover;
  border-radius: 2px;
  flex-shrink: 0;
}

.search-result-info {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  min-width: 0;
}

.search-result-title {
  color: #fff;
  font-family: "Outfit", system-ui, sans-serif;
  font-size: 0.75rem;
  font-weight: 500;
  line-height: 15px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.search-result-meta {
  color: #ffb7b5;
  font-family: "Outfit", system-ui, sans-serif;
  font-size: 0.62rem;
  font-weight: 500;
  line-height: 15px;
}

.search-more-results {
  display: block;
  text-align: center;
  padding: 0.5rem;
  color: #ffb7b5;
  font-family: "Outfit", system-ui, sans-serif;
  font-size: 0.68rem;
  font-weight: 600;
  text-decoration: none;
  border-top: 1px solid rgba(255,255,255,0.08);
}

.search-more-results:hover {
  background: rgba(255,255,255,0.08);
  color: #fff;
}

/* ── PAGE CONTENT OFFSET ── */
#page-content {
  position: relative;
  z-index: 1;
}

/* ── RESPONSIVE HEADER (max-width: 768px) ── */
@media (max-width: 768px) {
  #site-header {
    padding: 0.5rem 1rem;
    top: 0.5rem;
  }
  
  .header-inner {
    gap: 0.75rem;
    padding: 0.4rem 0.75rem;
  }
  
  .header-logo img {
    height: 16px;
  }
  
  .hamburger-btn {
    display: flex;
    margin-left: auto;
  }
  
  .header-nav {
    display: none;
  }
  
  .header-search {
    display: none;
  }
  
  .search-results {
    top: calc(100% + 8px);
  }
  
  .mobile-menu {
    width: 85%;
    max-width: 360px;
    padding: 1.25rem;
  }
  
  .mobile-menu-header .header-logo img {
    height: 16px;
  }
  
  .mobile-nav-link {
    font-size: 0.85rem;
    padding: 0.7rem 0.5rem;
  }
  
  .mobile-nav-sub {
    font-size: 0.8rem;
    padding: 0.55rem 0.75rem;
  }
  
  .mobile-search input {
    font-size: 16px;
    padding: 0.55rem 2.2rem 0.55rem 0.65rem;
  }
}