@font-face {
  font-family: "Inter";
  src: url("/assets/InterVariable-884c49a1.woff2") format("woff2");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}

/* Shared header, including the optional environment banner. */
.app-header {
  position: sticky;
  top: 0;
  z-index: 200;
}
.environment-indicator {
  padding: 6px 16px;
  background: #fef3c7;
  color: #78350f;
  border-bottom: 1px solid #f59e0b;
  font-size: 13px;
  line-height: 1.4;
  text-align: center;
  overflow-wrap: anywhere;
}

/* ── App Navigation ──────────────────────────────────────────── */
.app-nav {
  --nav-surface: #f2f7ff;
  --nav-active: #277dc9;
  --nav-gradient: linear-gradient(90deg, var(--bsc-blue), var(--plum-dark));
  position: relative;
  background: var(--panel);
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
  font-family: "Inter", "Segoe UI", Arial, sans-serif;
  /* Match the design's dimensions without changing the legacy page zoom. */
  zoom: calc(1 / var(--app-zoom));
}
.app-nav::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 1px;
  background: var(--nav-gradient);
}
.app-nav-inner {
  width: calc(100% - 48px);
  max-width: 1172px;
  margin: 0 auto;
  min-height: 82px;
  padding: 19px 0;
  display: flex;
  align-items: center;
}
.app-nav-brand { display: flex; align-items: center; text-decoration: none; flex-shrink: 0; }
.app-nav-logo { display: block; }

.app-nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  margin-left: 79px;
}
.app-nav-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  padding: 8px 16px;
  border-radius: 10px;
  font-size: 16px;
  font-weight: 400;
  line-height: normal;
  color: #000;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.15s, color 0.15s;
}
.app-nav-link--live { min-width: 69px; }
.app-nav-link--streams { min-width: 106px; }
.app-nav-link--cases { min-width: 87px; }
.app-nav-link--playlists { min-width: 107px; }
.app-nav-link:hover { background: var(--nav-surface); color: var(--nav-active); }
.app-nav-link.active { color: var(--nav-active); font-size: 18px; font-weight: 700; }
.app-nav a:focus-visible,
.app-nav summary:focus-visible,
.app-nav button:focus-visible {
  outline: 2px solid var(--nav-active);
  outline-offset: 3px;
}
.app-nav-inner--admin .app-nav-links { margin-left: 32px; gap: 8px; }

.app-nav-right {
  display: flex;
  align-items: center;
  margin-left: auto;
  padding-left: 24px;
  flex-shrink: 0;
}
@media (max-width: 1100px) {
  .app-nav-links,
  .app-nav-inner--admin .app-nav-links { margin-left: 24px; gap: 8px; }
  .app-nav-link { padding-inline: 12px; min-width: auto; }
}

@media (max-width: 1000px) {
  .app-nav-inner {
    width: calc(100% - 32px);
    flex-wrap: wrap;
    row-gap: 12px;
    padding: 16px 0 12px;
  }
  .app-nav-right { padding-left: 12px; }
  .app-nav-links,
  .app-nav-inner--admin .app-nav-links {
    order: 3;
    flex-basis: 100%;
    margin-left: 0;
    padding: 4px;
    overflow-x: auto;
    scrollbar-width: thin;
  }
}

@media (prefers-reduced-motion: reduce) {
  .app-nav-link { transition: none; }
}
