/* A crisp, tactile navigation bar that adapts to Luna's selected accent. */
.header nav {
  gap: clamp(5px, .65vw, 11px);
}

.header nav a {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 44px;
  min-height: 44px;
  padding: 0 15px;
  overflow: hidden;
  border: 1px solid transparent;
  border-radius: 14px;
  color: color-mix(in srgb, var(--text) 68%, transparent);
  font-size: 13px;
  font-weight: 650;
  letter-spacing: -.01em;
  transition: transform .2s ease, color .2s ease, background .2s ease,
    border-color .2s ease, box-shadow .2s ease;
}

.header nav a::before {
  display: grid;
  width: 19px;
  height: 19px;
  flex: 0 0 19px;
  place-items: center;
  border-radius: 6px;
  background: color-mix(in srgb, var(--accent) 11%, transparent);
  color: color-mix(in srgb, var(--accent) 78%, var(--text));
  content: "";
  font-size: 14px;
  line-height: 1;
  transition: background .2s ease, color .2s ease, transform .2s ease;
}

.header nav a[data-nav="home"]::before { content: "⌂"; }
.header nav a[data-nav="movies"]::before { content: "▰"; font-size: 11px; }
.header nav a[data-nav="series"]::before { content: "▤"; font-size: 13px; }
.header nav a[data-nav="live"]::before { content: "▣"; font-size: 13px; }
.header nav a[data-nav="list"]::before { content: "♡"; font-size: 16px; }
.header nav a[data-nav="community"]::before { content: "✣"; font-size: 13px; }
.header nav a:not([data-nav])::before { content: "↗"; font-size: 12px; }

.header nav a:hover {
  transform: translateY(-2px);
  border-color: color-mix(in srgb, var(--accent) 25%, transparent);
  background: color-mix(in srgb, var(--accent) 9%, transparent);
  color: var(--text);
  box-shadow: 0 7px 22px color-mix(in srgb, var(--accent) 9%, transparent);
}

.header nav a:hover::before {
  transform: scale(1.08) rotate(-5deg);
  background: color-mix(in srgb, var(--accent) 18%, transparent);
  color: var(--accent);
}

.header nav a.active {
  border-color: color-mix(in srgb, var(--accent) 42%, transparent);
  background: linear-gradient(135deg,
    color-mix(in srgb, var(--accent) 20%, transparent),
    color-mix(in srgb, var(--accent) 7%, #111522));
  color: var(--text);
  box-shadow: inset 0 1px 0 color-mix(in srgb, var(--text) 12%, transparent),
    0 5px 18px color-mix(in srgb, var(--accent) 10%, transparent);
}

.header nav a.active::before {
  background: color-mix(in srgb, var(--accent) 24%, transparent);
  color: var(--accent);
  text-shadow: 0 0 10px color-mix(in srgb, var(--accent) 55%, transparent);
}

.header nav a.active::after {
  position: absolute;
  right: 13px;
  bottom: 5px;
  left: 13px;
  display: block;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  box-shadow: 0 0 10px color-mix(in srgb, var(--accent) 60%, transparent);
  content: "";
}

.header nav a:active { transform: translateY(0) scale(.97); }
.header nav a:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

@media (max-width: 800px) {
  .header nav { gap: 6px; }
  .header nav a { height: 38px; min-height: 38px; padding: 0 12px; border-radius: 12px; font-size: 12px; }
  .header nav a::before { width: 17px; height: 17px; flex-basis: 17px; }
}

@media (max-width: 580px) {
  .header nav { gap: 4px; }
  .header nav a { gap: 6px; padding-inline: 10px; font-size: 11px; }
}

@media (prefers-reduced-motion: reduce) {
  .header nav a, .header nav a::before { transition: none; }
}

/* Keep the navigation clear while giving the page more room to breathe. */
.header {
  height: 74px;
  gap: clamp(18px, 2.2vw, 36px);
  background: rgb(8 11 20 / 82%);
  border-color: rgb(255 255 255 / 7%);
  backdrop-filter: blur(16px);
}

.brand img { width: 108px; height: 54px; filter: brightness(1.28); }
.header nav { gap: clamp(2px, .35vw, 7px); }
.header nav a {
  height: 38px;
  min-height: 38px;
  padding-inline: 11px;
  gap: 6px;
  border-radius: 11px;
  font-size: 12px;
  font-weight: 580;
  letter-spacing: 0;
}
.header nav a::before {
  width: 16px;
  height: 16px;
  flex-basis: 16px;
  border-radius: 5px;
  background: transparent;
  color: color-mix(in srgb, var(--text) 60%, var(--accent));
  font-size: 13px;
}
.header nav a:hover {
  transform: translateY(-1px);
  border-color: transparent;
  background: rgb(255 255 255 / 5%);
  box-shadow: none;
}
.header nav a:hover::before,
.header nav a.active::before { background: transparent; }
.header nav a.active {
  border-color: color-mix(in srgb, var(--accent) 20%, transparent);
  background: color-mix(in srgb, var(--accent) 7%, transparent);
  box-shadow: none;
}
.header nav a.active::after { display: none; }
.header-actions { gap: 16px; }
.header-actions .notification-bell {
  width: 38px;
  height: 38px;
  border-radius: 12px;
}
.notification-bell svg { width: 18px; height: 18px; }
.header-actions .profile-menu-trigger { gap: 7px; }
.header-actions .avatar { width: 31px; height: 31px; }

@media (min-width: 1600px) {
  .header { height: 78px; }
  .brand img { width: 114px; height: 57px; }
  .header nav a { font-size: 13px; }
}

@media (max-width: 800px) {
  .header { min-height: 74px; padding-top: 8px; }
  .header nav { height: 46px; }
  .header nav a { height: 35px; min-height: 35px; padding-inline: 10px; }
}

@media (max-width: 580px) {
  .header { min-height: 70px; }
  .brand img { width: 94px; height: 47px; }
  .header-actions { gap: 10px; }
  .header-actions .notification-bell { width: 35px; height: 35px; border-radius: 11px; }
  .header nav { height: 42px; }
  .header nav a { height: 33px; min-height: 33px; padding-inline: 9px; }
}
/* Keep the web app wordmark at the source asset's natural proportions. */
.header .brand img{width:136px;height:auto;max-height:58px;object-fit:contain;filter:none}
.welcome-logo{width:152px;height:auto;max-height:68px;object-fit:contain;filter:none}
@media(max-width:700px){.header .brand img{width:102px;height:auto;max-height:48px}}
.install-header-action{display:inline-flex!important;align-items:center;justify-content:center;gap:7px;min-height:38px;padding:0 12px;border:1px solid color-mix(in srgb,var(--accent) 38%,var(--line));border-radius:999px;background:color-mix(in srgb,var(--accent) 9%,transparent);color:var(--text);font-size:12px;font-weight:700;text-decoration:none;white-space:nowrap;transition:background .18s,border-color .18s,transform .18s}
.install-header-action:hover{background:color-mix(in srgb,var(--accent) 18%,transparent);border-color:var(--accent);transform:translateY(-1px)}
.install-header-action:focus-visible{outline:2px solid var(--accent);outline-offset:3px}
.install-header-action[hidden]{display:none!important}
@media(max-width:700px){.install-header-action{min-height:36px;padding:0 10px;font-size:11px}.header-actions{gap:clamp(4px,1.5vw,10px)}}
.header nav a.install-header-action{height:36px;min-height:36px;margin-left:4px;padding:0 13px;border:1px solid color-mix(in srgb,var(--accent) 38%,var(--line));border-radius:999px;background:color-mix(in srgb,var(--accent) 9%,transparent);color:var(--text);font-size:12px;font-weight:700;letter-spacing:0}
.header nav a.install-header-action::before{content:"↧";width:16px;height:16px;flex-basis:16px;background:transparent;color:var(--accent);font-size:13px}
.header nav a.install-header-action:hover{transform:translateY(-1px);border-color:var(--accent);background:color-mix(in srgb,var(--accent) 16%,transparent);box-shadow:none}
@media(max-width:800px){.header nav a.install-header-action{height:35px;min-height:35px;padding-inline:11px}}
@media(max-width:580px){.header nav a.install-header-action{height:33px;min-height:33px;padding-inline:9px;margin-left:2px}}
@media(max-width:580px){.header-actions>a:first-child>span:first-child{font-size:inherit}}
