@font-face {
  font-family: "Space Grotesk";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("https://aveflix.com/fonts/spacegrotesk-vietnamese.woff2") format("woff2");
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}

@font-face {
  font-family: "Space Grotesk";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("https://aveflix.com/fonts/spacegrotesk-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "Space Grotesk";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("https://aveflix.com/fonts/spacegrotesk-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

.site-header {
  display: block;
  width: 100%;
  padding: 0;
  background: linear-gradient(90deg, rgba(18, 29, 40, 0.98), rgba(10, 18, 26, 0.9));
  border-bottom: 1px solid var(--line);
  position: fixed;
  top: 0;
  z-index: 30;
  backdrop-filter: blur(12px);
  box-shadow: 0 12px 30px rgba(7, 12, 18, 0.6);
  color: var(--text, #e6edf3);
  font-family: "Space Grotesk", "Segoe UI", sans-serif;
  font-size: var(--step-0, clamp(1rem, 0.95rem + 0.3vw, 1.125rem));
  line-height: 1.6;
}

.site-header,
.site-header * {
  box-sizing: border-box;
}

.header-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: var(--space-2, clamp(0.8rem, 0.7rem + 0.5vw, 1.25rem)) var(--space-3, clamp(1.25rem, 0.9rem + 1vw, 2rem));
}

.header-brand {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  min-width: 0;
}

.header-icon {
  height: clamp(2rem, 1.5rem + 1vw, 2.6rem);
  width: auto;
  display: inline-block;
  flex: 0 0 auto;
}

.site-title {
  margin: 0;
  font-size: clamp(1.9rem, 1.3rem + 1.6vw, 2.8rem);
  line-height: 1.6;
  letter-spacing: 0.04em;
}

.header-uptime {
  display: grid;
  grid-template-columns: auto auto;
  align-items: center;
  gap: 0.05rem 0.65rem;
  min-width: min(100%, 19rem);
  padding: 0.55rem 0.8rem;
  border: 1px solid rgba(72, 199, 255, 0.25);
  border-radius: 8px;
  background: rgba(16, 24, 34, 0.72);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.header-uptime-label,
.header-uptime-updated {
  color: var(--muted);
  font-size: var(--step--1, clamp(0.84rem, 0.8rem + 0.2vw, 0.95rem));
  line-height: 1.2;
}

.header-uptime-value {
  justify-self: end;
  font-size: var(--step-0, clamp(1rem, 0.95rem + 0.3vw, 1.125rem));
  line-height: 1.2;
  white-space: nowrap;
}

.header-uptime-value::before {
  content: "";
  display: inline-block;
  width: 0.55rem;
  height: 0.55rem;
  margin-right: 0.45rem;
  border-radius: 999px;
  background: currentColor;
  box-shadow: 0 0 12px currentColor;
  vertical-align: 0.05em;
}

.site-header .status-up {
  color: #a9e5b5;
}

.site-header .status-down {
  color: #f2a3a3;
}

.header-uptime-updated {
  grid-column: 1 / -1;
}

.site-header .site-nav {
  display: block;
  padding: 0 var(--space-3, clamp(1.25rem, 0.9rem + 1vw, 2rem)) var(--space-2, clamp(0.8rem, 0.7rem + 0.5vw, 1.25rem));
}

.site-header .site-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem 1.2rem;
}

.menu-bar {
  background: rgba(16, 24, 34, 0.95);
  border: 1px solid rgba(72, 199, 255, 0.25);
  border-radius: 999px;
  padding: 0.35rem 0.6rem;
  box-shadow: 0 8px 20px rgba(6, 10, 15, 0.45);
}

.menu-bar .nav-link {
  display: inline-flex;
  padding: 0.4rem 0.9rem;
  border: 1px solid transparent;
  border-radius: 999px;
  color: var(--text);
  white-space: nowrap;
  transition: border 200ms ease, color 200ms ease, background 200ms ease;
}

.menu-bar .nav-link.active {
  background: rgba(72, 199, 255, 0.18);
  border-color: rgba(72, 199, 255, 0.45);
  color: #eaf6ff;
}

.menu-bar .nav-link:hover {
  color: var(--text);
  text-decoration: none;
  background: rgba(72, 199, 255, 0.12);
  border-color: rgba(72, 199, 255, 0.4);
}

@media (max-width: 720px) {
  .header-top {
    align-items: stretch;
    flex-direction: column;
    gap: 0.7rem;
  }

  .header-uptime {
    width: 100%;
  }

  .site-title {
    font-size: clamp(1.6rem, 1.35rem + 1.5vw, 2rem);
  }

  .site-header .site-nav ul {
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .menu-bar {
    padding: 0.35rem 0.4rem;
  }

  .menu-bar .nav-link {
    padding: 0.35rem 0.7rem;
  }
}
