.header-inner {
  max-width: 1480px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  padding: 0 15px;
  height: 62px;
  gap: 24px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 9px;
  text-decoration: none;
  flex-shrink: 0;
}

.logo-egg {
  width: 34px;
  height: 40px;
  background: radial-gradient(ellipse at 38% 32%, #555, #181818 65%);
  border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
  box-shadow: inset -3px -3px 8px rgba(255,255,255,.06), 0 3px 10px rgba(0,0,0,.5);
  position: relative;
  flex-shrink: 0;
  animation: rock 4s ease-in-out infinite;
}

.logo-egg::after {
  content: "";
  position: absolute;
  top: 7px;
  left: 7px;
  width: 8px;
  height: 6px;
  background: rgba(255,255,255,.14);
  border-radius: 50%;
  transform: rotate(-25deg);
}

@keyframes rock {
  0%,
  100% {
    transform: rotate(-3deg);
  }
  50% {
    transform: rotate(3deg);
  }
}

.logo-name {
  font-size: 1.25rem;
  font-weight: 900;
  color: #fff;
  letter-spacing: -.02em;
}

.logo-name em {
  color: var(--orange);
  font-style: normal;
}

.cat-nav-wrap {
  flex: 1;
  position: relative;
  overflow: hidden;
  min-width: 0;
}

.cat-nav-wrap::before,
.cat-nav-wrap::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 40px;
  pointer-events: none;
  z-index: 2;
  transition: opacity .2s;
}

.cat-nav-wrap::before {
  left: 0;
  background: linear-gradient(to right, var(--dark), transparent);
  opacity: 0;
}

.cat-nav-wrap::after {
  right: 0;
  background: linear-gradient(to left, var(--dark), transparent);
}

.cat-nav-wrap.scrolled-left::before {
  opacity: 1;
}

.cat-nav-wrap.scrolled-right::after {
  opacity: 0;
}

.cat-nav {
  display: flex;
  align-items: center;
  gap: 2px;
  overflow-x: auto;
  scrollbar-width: none;
  padding: 0 4px;
  scroll-behavior: smooth;
}

.cat-nav::-webkit-scrollbar {
  display: none;
}

.cat-nav a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  color: rgba(255,255,255,.52);
  text-decoration: none;
  height: 34px;
  padding: 6px 13px;
  border-radius: 7px;
  font-size: .75rem;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
  flex-shrink: 0;
  transition: all .18s;
}

.cat-nav a:hover {
  color: #fff;
  background: rgba(255,255,255,.08);
}

.cat-nav a.active {
  color: #fff;
  background: var(--orange);
}

.cat-nav a .ico {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: .9rem;
  width: 1rem;
  min-width: 1rem;
  height: 1rem;
  line-height: 1;
  transform: translateY(1px);
}

.cat-nav a .ico i {
  display: block;
  line-height: 1;
}

.cat-more-btn {
  flex-shrink: 0;
  position: relative;
}

.more-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.12);
  color: rgba(255,255,255,.6);
  padding: 6px 13px;
  border-radius: 7px;
  font-family: "Montserrat", sans-serif;
  font-size: .75rem;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: all .18s;
}

.more-btn:hover {
  background: rgba(255,255,255,.12);
  color: #fff;
}

.more-btn svg {
  width: 12px;
  height: 12px;
  stroke: currentColor;
  fill: none;
  transition: transform .2s;
}

.more-btn.open svg {
  transform: rotate(180deg);
}

.header-right {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.btn-ghost {
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.11);
  color: rgba(255,255,255,.75);
  padding: 7px 15px;
  border-radius: 8px;
  font-family: "Montserrat", sans-serif;
  font-size: .75rem;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  transition: all .18s;
}

.btn-ghost:hover {
  background: rgba(255,255,255,.12);
  color: #fff;
}

.btn-orange {
  background: var(--orange);
  border: none;
  color: #fff;
  padding: 8px 16px;
  border-radius: 8px;
  font-family: "Montserrat", sans-serif;
  font-size: .75rem;
  font-weight: 800;
  cursor: pointer;
  transition: all .18s;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.btn-orange:hover {
  background: #c94f15;
  transform: translateY(-1px);
}

.reel-mode-btn,
.classic-mode-btn {
  display: none;
  width: 36px;
  height: 36px;
  border-radius: 9px;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.07);
  color: rgba(255,255,255,.84);
  text-decoration: none;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all .18s;
}

.reel-mode-btn:hover,
.classic-mode-btn:hover {
  color: #fff;
  background: rgba(255,255,255,.12);
}

.reel-mode-btn i,
.classic-mode-btn i {
  font-size: .92rem;
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: rgba(255,255,255,.7);
  border-radius: 2px;
}

.mob-menu {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 500;
  background: var(--dark);
  flex-direction: column;
  padding: 20px 24px;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}

.mob-menu.open {
  display: flex;
}

.mob-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 28px;
}

.mob-close {
  background: rgba(255,255,255,.08);
  border: none;
  cursor: pointer;
  color: #fff;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mob-menu > a {
  color: rgba(255,255,255,.7);
  text-decoration: none;
  font-size: 1rem;
  font-weight: 700;
  padding: 13px 0;
  border-bottom: 1px solid rgba(255,255,255,.06);
  display: flex;
  align-items: center;
  gap: 10px;
  transition: color .18s;
}

.mob-menu > a:hover {
  color: var(--orange);
}

.mob-link-group {
  border-bottom: 1px solid rgba(255,255,255,.06);
}

.mob-link-group summary {
  list-style: none;
  color: rgba(255,255,255,.7);
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  padding: 13px 0;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: color .18s;
}

.mob-link-group summary:hover {
  color: var(--orange);
}

.mob-link-group summary::-webkit-details-marker {
  display: none;
}

.mob-link-group summary::after {
  content: "+";
  margin-left: auto;
  color: rgba(255,255,255,.55);
  font-size: 1rem;
  line-height: 1;
}

.mob-link-group[open] summary::after {
  content: "-";
}

.mob-sub-link {
  display: block;
  color: rgba(255,255,255,.62);
  text-decoration: none;
  font-size: .9rem;
  font-weight: 600;
  padding: 8px 0 10px 30px;
}

.mob-sub-link:hover {
  color: #fff;
}

.mob-actions {
  display: flex;
  gap: 10px;
  margin-top: 24px;
  flex-wrap: wrap;
}

.mob-actions .btn-ghost,
.mob-actions .btn-orange {
  padding: 11px 16px;
  justify-content: center;
  border-bottom: none;
}

@media (max-width: 768px) {
  .header-inner {
    padding: 10px 16px 12px;
    height: auto;
    min-height: 62px;
    gap: 12px;
    flex-wrap: wrap;
  }

  .logo-name {
    font-size: 1.08rem;
  }

  .cat-nav-wrap {
    display: block;
    order: 4;
    flex-basis: 100%;
    overflow: visible;
  }

  .cat-nav-wrap::before,
  .cat-nav-wrap::after {
    display: none;
  }

  .cat-nav {
    gap: 8px;
    padding: 0;
  }

  .cat-nav a {
    height: 34px;
    padding: 0 12px;
    border: 1px solid rgba(255,255,255,.08);
    background: rgba(255,255,255,.04);
    font-size: .72rem;
  }

  .header-right {
    display: none;
  }

  .cat-more-btn {
    display: none;
  }

  .reel-mode-btn,
  .classic-mode-btn {
    display: inline-flex;
    margin-left: auto;
  }

  .hamburger {
    display: flex;
    margin-left: 8px;
  }
}

@media (max-width: 480px) {
  .header-inner {
    padding: 10px 14px 12px;
  }
}
