/**
 * GKZiD global navigation spine — mobile-first, white icons (currentColor).
 */

:root {
  --gkz-spine-h: 52px;
  --gkz-spine-bg: rgba(3, 5, 8, 0.92);
  --gkz-spine-border: rgba(255, 255, 255, 0.08);
  --gkz-spine-text: #f4f8fb;
  --gkz-spine-muted: rgba(244, 248, 251, 0.55);
  --gkz-spine-gk: #00ff9d;
}

/* Stacking above page heroes and fixed rails */
.gkz-spine-portal {
  position: relative;
  z-index: 600;
}

.gkz-spine-wrap {
  position: relative;
  z-index: 200;
}

.gkz-spine {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--gkz-spine-h);
  min-height: var(--gkz-spine-h);
  padding: 0 max(10px, env(safe-area-inset-right)) 0 max(10px, env(safe-area-inset-left));
  padding-top: env(safe-area-inset-top);
  box-sizing: content-box;
  display: flex;
  align-items: center;
  background: var(--gkz-spine-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--gkz-spine-border);
}

.gkz-spine-spacer {
  height: calc(var(--gkz-spine-h) + env(safe-area-inset-top));
  flex-shrink: 0;
}

.gkz-spine__left {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.gkz-spine__menu-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin: 0;
  padding: 0;
  border: none;
  border-radius: 12px;
  background: transparent;
  color: #fff;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.gkz-spine__menu-btn:hover,
.gkz-spine__menu-btn:focus-visible {
  background: rgba(255, 255, 255, 0.08);
}

.gkz-spine__menu-btn:focus-visible {
  outline: 2px solid var(--gkz-spine-gk);
  outline-offset: 2px;
}

.gkz-spine__logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  font-family: "Syne", system-ui, sans-serif;
  font-weight: 800;
  font-size: clamp(1.215rem, 2.7vw, 1.665rem);
  line-height: 1;
  letter-spacing: -0.02em;
}

.gkz-spine__logo-gkz {
  color: var(--gkz-spine-gk);
}

.gkz-spine__logo-id {
  color: #fff;
  font-weight: 700;
}

.gkz-spine__center {
  flex: 1;
  min-width: 0;
  text-align: center;
  padding: 0 6px;
}

.gkz-spine__center-label {
  font-family: "Syne", system-ui, sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gkz-spine-muted);
}

a.gkz-spine__center-label--link {
  color: inherit;
  text-decoration: none;
  cursor: pointer;
  transition: color 0.15s ease;
}

a.gkz-spine__center-label--link:hover,
a.gkz-spine__center-label--link:focus-visible {
  color: var(--gkz-spine-gk);
}

a.gkz-spine__center-label--link:focus-visible {
  outline: 2px solid var(--gkz-spine-gk);
  outline-offset: 3px;
  border-radius: 4px;
}

/* Hub / landing: YouTube-style search (submit prevented in JS until search ships) */
.gkz-spine__center--hub {
  flex: 1;
  min-width: 0;
  max-width: min(720px, 52vw);
  margin: 0 auto;
  text-align: left;
}

.gkz-spine__search-form {
  display: flex;
  align-items: stretch;
  gap: 0;
  width: 100%;
  height: 40px;
  border-radius: 999px;
  border: 1px solid var(--gkz-spine-border);
  background: rgba(255, 255, 255, 0.06);
  overflow: hidden;
}

.gkz-spine__search-input {
  flex: 1;
  min-width: 0;
  border: none;
  background: transparent;
  padding: 0 16px;
  font-family: "Outfit", system-ui, sans-serif;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--gkz-spine-text);
  outline: none;
}

.gkz-spine__search-input::placeholder {
  color: var(--gkz-spine-muted);
}

.gkz-spine__search-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  flex-shrink: 0;
  border: none;
  border-left: 1px solid var(--gkz-spine-border);
  background: rgba(255, 255, 255, 0.06);
  color: var(--gkz-spine-text);
  cursor: pointer;
  transition:
    background 0.15s ease,
    color 0.15s ease;
}

.gkz-spine__search-btn:hover,
.gkz-spine__search-btn:focus-visible {
  background: rgba(0, 255, 157, 0.12);
  color: var(--gkz-spine-gk);
}

.gkz-spine__search-btn:focus-visible {
  outline: 2px solid var(--gkz-spine-gk);
  outline-offset: -2px;
}

.gkz-spine__icon--search {
  width: 20px;
  height: 20px;
}

@media (max-width: 720px) {
  .gkz-spine-portal--hub .gkz-spine__center--hub {
    display: none;
  }
}

.gkz-spine__actions {
  position: relative;
  display: flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
}

.gkz-spine__overflow-panel .gkz-spine__overflow-row {
  display: block;
  width: 100%;
  box-sizing: border-box;
  padding: 12px 14px;
  margin-bottom: 4px;
  border-radius: 12px;
  border: none;
  background: rgba(255, 255, 255, 0.06);
  color: var(--gkz-spine-text);
  font-size: 0.9375rem;
  font-weight: 600;
  font-family: inherit;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
}

.gkz-spine__overflow-panel .gkz-spine__overflow-row:hover,
.gkz-spine__overflow-panel .gkz-spine__overflow-row:focus-visible {
  background: rgba(0, 255, 157, 0.12);
}

.gkz-spine__overflow-panel .gkz-spine__overflow-row.is-hidden {
  display: none !important;
}

/* Reel: “Music” in header — hidden on narrow screens (moved into Create menu) */
@media (max-width: 720px) {
  .gkz-spine-portal--reel .gkz-spine__reel-extra {
    display: none;
  }
}

/* Reel: Music under Create — mobile only (desktop uses header link) */
.gkz-spine__reel-music-panel {
  display: none !important;
}

@media (max-width: 720px) {
  .gkz-spine-portal--reel .gkz-spine__reel-music-panel {
    display: flex !important;
  }
}

.gkz-spine__reel-extra {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-right: 2px;
}

.gkz-spine__reel-extra a {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gkz-spine-muted);
  text-decoration: none;
  padding: 6px 8px;
  border-radius: 8px;
}

.gkz-spine__reel-extra a:hover {
  color: var(--gkz-spine-gk);
}

.gkz-spine__create-wrap {
  position: relative;
}

.gkz-spine__create-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-height: 40px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid rgba(0, 255, 157, 0.35);
  background: rgba(0, 255, 157, 0.12);
  color: var(--gkz-spine-gk);
  font-family: "Syne", system-ui, sans-serif;
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.gkz-spine__create-btn:hover,
.gkz-spine__create-btn:focus-visible {
  background: rgba(0, 255, 157, 0.2);
}

.gkz-spine__create-btn:focus-visible {
  outline: 2px solid var(--gkz-spine-gk);
  outline-offset: 2px;
}

.gkz-spine__create-panel {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  min-width: 11rem;
  padding: 8px;
  border-radius: 14px;
  background: rgba(12, 16, 22, 0.98);
  border: 1px solid var(--gkz-spine-border);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.5);
  z-index: 300;
}

.gkz-spine__create-panel.is-hidden {
  display: none !important;
}

.gkz-spine__create-panel a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 12px;
  border-radius: 10px;
  color: var(--gkz-spine-text);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 600;
}

.gkz-spine__create-panel a:hover {
  background: rgba(255, 255, 255, 0.06);
}

.gkz-spine__live-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ff2d2d;
  flex-shrink: 0;
  animation: gkz-spine-live-pulse 2s ease-in-out infinite;
}

@keyframes gkz-spine-live-pulse {
  0%,
  100% {
    opacity: 1;
    transform: scale(1);
    box-shadow:
      0 0 0 2px rgba(255, 45, 45, 0.4),
      0 0 10px rgba(255, 45, 45, 0.65),
      0 0 22px rgba(255, 45, 45, 0.35);
  }
  50% {
    opacity: 1;
    transform: scale(1.12);
    box-shadow:
      0 0 0 3px rgba(255, 70, 70, 0.55),
      0 0 18px rgba(255, 60, 60, 0.95),
      0 0 36px rgba(255, 50, 50, 0.55),
      0 0 52px rgba(255, 40, 40, 0.25);
  }
}

@keyframes gkz-spine-go-live-halo {
  0%,
  100% {
    box-shadow:
      0 0 0 0 rgba(255, 45, 45, 0),
      inset 0 0 0 1px rgba(255, 45, 45, 0.1);
  }
  50% {
    box-shadow:
      0 0 14px 2px rgba(255, 45, 45, 0.38),
      0 0 28px 6px rgba(255, 50, 50, 0.18),
      inset 0 0 0 1px rgba(255, 70, 70, 0.28);
  }
}

@media (prefers-reduced-motion: reduce) {
  .gkz-spine__live-dot {
    animation: none;
    transform: none;
    box-shadow:
      0 0 0 2px rgba(255, 45, 45, 0.35),
      0 0 12px rgba(255, 45, 45, 0.5);
  }

  .gkz-spine__go-live-link {
    animation: none;
    box-shadow: inset 0 0 0 1px rgba(255, 45, 45, 0.2);
  }
}

.gkz-spine__create-panel .gkz-spine__go-live-link {
  background: rgba(255, 45, 45, 0.06);
  animation: gkz-spine-go-live-halo 2s ease-in-out infinite;
  color: rgba(244, 248, 251, 0.92);
  cursor: pointer;
}

.gkz-spine__avatar-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.2);
  background: rgba(0, 255, 157, 0.15);
  color: #fff;
  font-family: "Syne", system-ui, sans-serif;
  font-size: 0.7rem;
  font-weight: 800;
  cursor: pointer;
  padding: 0;
  flex-shrink: 0;
  -webkit-tap-highlight-color: transparent;
}

.gkz-spine__avatar-btn:hover,
.gkz-spine__avatar-btn:focus-visible {
  border-color: var(--gkz-spine-gk);
}

.gkz-spine__avatar-btn:focus-visible {
  outline: 2px solid var(--gkz-spine-gk);
  outline-offset: 2px;
}

.gkz-spine__overflow-btn {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 0;
  border: none;
  border-radius: 12px;
  background: transparent;
  color: #fff;
  font-size: 1.35rem;
  line-height: 1;
  letter-spacing: 0.08em;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.gkz-spine__overflow-btn:hover,
.gkz-spine__overflow-btn:focus-visible {
  background: rgba(255, 255, 255, 0.08);
}

.gkz-spine__icon {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  color: #fff;
}

.gkz-spine__icon--sm {
  width: 18px;
  height: 18px;
}

/* Fullscreen menu */
.gkz-spine__backdrop {
  position: fixed;
  inset: 0;
  z-index: 400;
  background: rgba(0, 0, 0, 0.55);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.gkz-spine__backdrop.is-open {
  opacity: 1;
  pointer-events: auto;
}

.gkz-spine__panel {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: min(100vw - 48px, 320px);
  max-width: 100%;
  z-index: 401;
  background: #080b10;
  border-right: 1px solid var(--gkz-spine-border);
  transform: translateX(-100%);
  transition: transform 0.25s ease;
  display: flex;
  flex-direction: column;
  padding-top: env(safe-area-inset-top);
  box-shadow: 8px 0 40px rgba(0, 0, 0, 0.45);
}

.gkz-spine__panel.is-open {
  transform: translateX(0);
}

.gkz-spine__panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px 10px;
  border-bottom: 1px solid var(--gkz-spine-border);
}

.gkz-spine__panel-title {
  margin: 0;
  font-family: "Syne", system-ui, sans-serif;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gkz-spine-gk);
}

.gkz-spine__panel-close {
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  font-size: 1.25rem;
  cursor: pointer;
  line-height: 1;
}

.gkz-spine__panel-scroll {
  flex: 1;
  overflow-y: auto;
  padding: 12px 12px 24px;
  -webkit-overflow-scrolling: touch;
}

.gkz-spine__group-label {
  margin: 16px 8px 8px;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gkz-spine-muted);
}

.gkz-spine__group-label:first-child {
  margin-top: 4px;
}

.gkz-spine__nav-row {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 48px;
  padding: 10px 12px;
  margin-bottom: 4px;
  border-radius: 12px;
  color: var(--gkz-spine-text);
  text-decoration: none;
  font-size: 0.9375rem;
  font-weight: 600;
  border: none;
  width: 100%;
  text-align: left;
  background: rgba(255, 255, 255, 0.04);
  cursor: pointer;
  font-family: inherit;
}

.gkz-spine__nav-row:hover,
.gkz-spine__nav-row:focus-visible {
  background: rgba(0, 255, 157, 0.1);
}

.gkz-spine__nav-row:focus-visible {
  outline: 2px solid var(--gkz-spine-gk);
  outline-offset: 0;
}

.gkz-spine__nav-row--soon {
  opacity: 0.55;
  cursor: default;
}

.gkz-spine__nav-row.gkz-spine__go-live-link {
  opacity: 0.98;
  color: rgba(244, 248, 251, 0.92);
  background: rgba(255, 45, 45, 0.1);
  animation: gkz-spine-go-live-halo 2s ease-in-out infinite;
}

.gkz-spine__nav-row.gkz-spine__go-live-link:hover {
  background: rgba(255, 45, 45, 0.16);
}

.gkz-spine__nav-row--external::after {
  content: "↗";
  margin-left: auto;
  font-size: 0.75rem;
  opacity: 0.6;
}

.gkz-spine__sub {
  margin: 0 0 8px 48px;
  padding: 0;
  list-style: none;
  font-size: 0.8125rem;
  color: var(--gkz-spine-muted);
}

.gkz-spine__sub li {
  padding: 6px 0;
}

.gkz-spine__disclosure {
  margin-bottom: 4px;
}

.gkz-spine__disclosure-toggle {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  min-height: 48px;
  padding: 10px 12px;
  border: none;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  color: #fff;
  font-size: 0.9375rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  text-align: left;
}

.gkz-spine__disclosure-toggle .gkz-spine__chev {
  margin-left: auto;
  transition: transform 0.2s ease;
  opacity: 0.6;
}

.gkz-spine__disclosure-toggle[aria-expanded="true"] .gkz-spine__chev {
  transform: rotate(90deg);
}

.gkz-spine__disclosure-body {
  padding: 4px 0 8px 46px;
}

.gkz-spine__disclosure-body.is-hidden {
  display: none !important;
}

/* Bottom sheet (overflow) */
.gkz-spine__sheet-backdrop {
  position: fixed;
  inset: 0;
  z-index: 500;
  background: rgba(0, 0, 0, 0.5);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.gkz-spine__sheet-backdrop.is-open {
  opacity: 1;
  pointer-events: auto;
}

.gkz-spine__bottom-sheet {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 501;
  max-height: min(85vh, 520px);
  background: #0a0e14;
  border-radius: 20px 20px 0 0;
  border: 1px solid var(--gkz-spine-border);
  border-bottom: none;
  padding: 12px 16px max(20px, env(safe-area-inset-bottom));
  transform: translateY(100%);
  transition: transform 0.28s cubic-bezier(0.32, 0.72, 0, 1);
  box-shadow: 0 -12px 48px rgba(0, 0, 0, 0.45);
}

.gkz-spine__bottom-sheet.is-open {
  transform: translateY(0);
}

.gkz-spine__sheet-handle {
  width: 40px;
  height: 4px;
  margin: 0 auto 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.2);
}

.gkz-spine__sheet-title {
  margin: 0 0 12px;
  font-family: "Syne", system-ui, sans-serif;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gkz-spine-muted);
  text-align: center;
}

.gkz-spine__sheet-action {
  display: flex;
  align-items: center;
  width: 100%;
  min-height: 52px;
  padding: 14px 16px;
  margin-bottom: 6px;
  border: none;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--gkz-spine-text);
  font-size: 1rem;
  font-weight: 600;
  font-family: inherit;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
}

.gkz-spine__sheet-action:hover,
.gkz-spine__sheet-action:focus-visible {
  background: rgba(0, 255, 157, 0.12);
}

.gkz-spine__sheet-action:focus-visible {
  outline: 2px solid var(--gkz-spine-gk);
  outline-offset: 0;
}

.gkz-spine__sheet-action.is-hidden {
  display: none !important;
}

@media (min-width: 720px) {
  .gkz-spine__overflow-panel {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 220px;
    padding: 8px;
    border-radius: 14px;
    background: rgba(12, 16, 22, 0.98);
    border: 1px solid var(--gkz-spine-border);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.45);
    z-index: 350;
  }

  .gkz-spine__overflow-panel.is-hidden {
    display: none !important;
  }

  .gkz-spine__bottom-sheet,
  .gkz-spine__sheet-backdrop {
    display: none !important;
  }
}
