:root {
  --gctv-shell-bg: #08080d;
  --gctv-shell-panel: #0d0d16;
  --gctv-shell-purple: #8b5cf6;
  --gctv-shell-purple-soft: #c4b5fd;
  --gctv-shell-border: rgba(124, 58, 237, .16);
  --gctv-shell-muted: #64748b;
}

body > nav.navbar,
body > nav.site-nav,
body > nav#mobileBottomNav,
body > footer.footer,
body > footer.site-footer,
#mm-overlay,
#mm-panel {
  display: none !important;
}

body.gctv-shell-mounted {
  min-height: 100vh;
  display: block;
  padding: 0 !important;
  overflow-x: hidden !important;
  overflow-y: auto !important;
}

body.gctv-error-shell > .container {
  width: min(100%, 640px);
  min-height: 58vh;
  margin: 0 auto;
  padding: 64px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

#gctvSiteHeader {
  position: sticky;
  top: 0;
  z-index: 9000;
  width: 100%;
  min-height: 72px;
  display: flex;
  align-items: center;
  color: #fff;
  background: linear-gradient(90deg, rgba(11, 12, 16, .97), rgba(0, 0, 0, .98), rgba(11, 12, 16, .97));
  border-bottom: 1px solid rgba(147, 51, 234, .1);
  box-shadow: 0 6px 24px rgba(0, 0, 0, .38);
  backdrop-filter: blur(18px);
}

#gctvSiteHeader * {
  box-sizing: border-box;
}

.gctv-header-inner {
  width: 100%;
  max-width: 1600px;
  min-height: 72px;
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: minmax(230px, 1fr) auto minmax(230px, 1fr);
  align-items: center;
  gap: 24px;
}

.gctv-header-brand {
  justify-self: start;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: #fff;
  text-decoration: none;
  font-size: 1.1rem;
  font-weight: 800;
  letter-spacing: .01em;
}

.gctv-header-brand img {
  width: 42px;
  height: 42px;
  border-radius: 999px;
  box-shadow: 0 0 0 2px rgba(124, 58, 237, .6), 0 0 0 6px rgba(124, 58, 237, .1);
}

.gctv-desktop-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 26px;
}

.gctv-header-link {
  position: relative;
  padding: 7px 0;
  color: #cbd5e1;
  text-decoration: none;
  font-size: .92rem;
  font-weight: 600;
  white-space: nowrap;
  transition: color .2s ease;
}

.gctv-header-link::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, #7c3aed, #c084fc);
  transform: scaleX(0);
  transition: transform .24s ease;
}

.gctv-header-link:hover,
.gctv-header-link.is-active {
  color: #c4b5fd;
}

.gctv-header-link:hover::after,
.gctv-header-link.is-active::after {
  transform: scaleX(1);
}

.gctv-header-actions {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 10px;
}

.gctv-header-action,
.gctv-menu-trigger,
.gctv-menu-close {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(148, 163, 184, .18);
  border-radius: 13px;
  background: rgba(255, 255, 255, .035);
  color: #64748b;
  text-decoration: none;
  cursor: pointer;
  transition: color .2s ease, background .2s ease, border-color .2s ease, transform .2s ease;
}

.gctv-header-action:hover,
.gctv-menu-trigger:hover,
.gctv-menu-close:hover {
  color: #f8fafc;
  background: rgba(124, 58, 237, .12);
  border-color: rgba(167, 139, 250, .35);
  transform: translateY(-1px);
}

.gctv-header-action:focus-visible,
.gctv-menu-trigger:focus-visible,
.gctv-menu-close:focus-visible,
.gctv-drawer-link:focus-visible,
.gctv-mobile-link:focus-visible {
  outline: 3px solid rgba(167, 139, 250, .42);
  outline-offset: 3px;
}

.gctv-header-action svg,
.gctv-menu-trigger svg,
.gctv-menu-close svg {
  width: 22px;
  height: 22px;
}

#siteMenuMobileTrigger {
  display: none;
}

#siteMenuOverlay {
  position: fixed;
  inset: 0;
  z-index: 10020;
  background: rgba(0, 0, 0, .7);
  backdrop-filter: blur(8px);
  opacity: 0;
  pointer-events: none;
  transition: opacity .28s ease;
}

#siteMenuOverlay.is-open {
  opacity: 1;
  pointer-events: auto;
}

#siteMenuPanel {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 10030;
  width: min(410px, 92vw);
  display: flex;
  flex-direction: column;
  color: #fff;
  background:
    radial-gradient(circle at 90% 0%, rgba(124, 58, 237, .15), transparent 36%),
    linear-gradient(175deg, #0e0e18 0%, #08080e 100%);
  border-left: 1px solid rgba(124, 58, 237, .2);
  box-shadow: -32px 0 90px rgba(0, 0, 0, .8);
  transform: translateX(105%);
  visibility: hidden;
  transition: transform .34s cubic-bezier(.16, 1, .3, 1), visibility .34s;
}

#siteMenuPanel.is-open {
  transform: translateX(0);
  visibility: visible;
}

.gctv-drawer-head {
  min-height: 88px;
  padding: max(18px, env(safe-area-inset-top)) 20px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(124, 58, 237, .13);
}

.gctv-drawer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #fff;
  text-decoration: none;
  font-weight: 800;
}

.gctv-drawer-brand img {
  width: 44px;
  height: 44px;
  border-radius: 999px;
  box-shadow: 0 0 0 2px rgba(124, 58, 237, .65), 0 0 24px rgba(124, 58, 237, .2);
}

.gctv-drawer-scroll {
  flex: 1;
  overflow-y: auto;
  padding: 20px 18px calc(28px + env(safe-area-inset-bottom));
  overscroll-behavior: contain;
}

.gctv-drawer-group + .gctv-drawer-group {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid rgba(124, 58, 237, .1);
}

.gctv-drawer-label {
  margin: 0 10px 8px;
  color: #475569;
  font-size: .65rem;
  font-weight: 800;
  letter-spacing: .15em;
  text-transform: uppercase;
}

.gctv-drawer-link {
  --gctv-icon-rgb: 100, 116, 139;
  min-height: 52px;
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 11px 13px;
  margin: 3px 0;
  border: 1px solid transparent;
  border-radius: 14px;
  color: #94a3b8;
  text-decoration: none;
  font-size: .9rem;
  font-weight: 650;
  transition: color .18s ease, background .18s ease, border-color .18s ease, transform .18s ease;
}

.gctv-drawer-link:hover {
  color: #f8fafc;
  background: rgba(124, 58, 237, .09);
  border-color: rgba(124, 58, 237, .17);
  transform: translateX(2px);
}

.gctv-drawer-link.is-active {
  color: #d8b4fe;
  background: linear-gradient(90deg, rgba(88, 28, 135, .26), rgba(76, 29, 149, .12));
  border-color: rgba(167, 139, 250, .18);
}

.gctv-drawer-icon {
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  border: 1px solid rgba(var(--gctv-icon-rgb), .13);
  background: rgba(var(--gctv-icon-rgb), .09);
  color: rgb(var(--gctv-icon-rgb));
}

.gctv-drawer-link:hover .gctv-drawer-icon,
.gctv-drawer-link.is-active .gctv-drawer-icon {
  color: rgb(var(--gctv-icon-rgb));
  background: rgba(var(--gctv-icon-rgb), .17);
  box-shadow: 0 0 22px rgba(var(--gctv-icon-rgb), .1);
}

.gctv-drawer-link[data-menu-key="home"] { --gctv-icon-rgb: 167, 139, 250; }
.gctv-drawer-link[data-menu-key="universe"] { --gctv-icon-rgb: 34, 211, 238; }
.gctv-drawer-link[data-menu-key="archive"] { --gctv-icon-rgb: 96, 165, 250; }
.gctv-drawer-link[data-menu-key="collection"] { --gctv-icon-rgb: 251, 191, 36; }
.gctv-drawer-link[data-menu-key="recommendations"] { --gctv-icon-rgb: 244, 114, 182; }
.gctv-drawer-link[data-menu-key="blog"] { --gctv-icon-rgb: 251, 146, 60; }
.gctv-drawer-link[data-menu-key="kick"] { --gctv-icon-rgb: 83, 252, 24; }
.gctv-drawer-link[data-menu-key="youtube"] { --gctv-icon-rgb: 248, 113, 113; }
.gctv-drawer-link[data-menu-key="sleep"] { --gctv-icon-rgb: 129, 140, 248; }
.gctv-drawer-link[data-menu-key="prediction"] { --gctv-icon-rgb: 192, 132, 252; }
.gctv-drawer-link[data-menu-key="dice"] { --gctv-icon-rgb: 250, 204, 21; }

.gctv-drawer-icon svg {
  width: 18px;
  height: 18px;
}

.gctv-drawer-icon.has-logo {
  overflow: hidden;
  background: rgba(var(--gctv-icon-rgb), .08);
}

.gctv-drawer-logo-image {
  width: 23px;
  height: 23px;
  display: block;
  object-fit: contain;
}

.gctv-drawer-link[data-menu-key="sleep"] .gctv-drawer-logo-image {
  width: 28px;
  height: 28px;
  border-radius: 7px;
}

.gctv-drawer-copy {
  min-width: 0;
  flex: 1;
}

.gctv-drawer-copy strong {
  display: block;
  color: inherit;
  font-weight: 700;
}

.gctv-drawer-copy small {
  display: block;
  margin-top: 2px;
  color: #475569;
  font-size: .68rem;
  font-weight: 500;
}

.gctv-drawer-arrow {
  color: #334155;
  font-size: 1rem;
}

body.gctv-site-menu-open {
  overflow: hidden !important;
}

#gctvSharedFooter {
  position: relative;
  z-index: 2;
  width: 100%;
  margin-top: 72px;
  padding: 38px 20px calc(34px + env(safe-area-inset-bottom));
  color: #64748b;
  background: rgba(7, 7, 12, .97);
  border-top: 1px solid rgba(124, 58, 237, .1);
  text-align: center;
}

.gctv-footer-inner {
  max-width: 760px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

#gctvSharedFooter .gctv-footer-links {
  display: flex !important;
  flex-wrap: wrap;
  justify-content: center;
  gap: 7px 22px;
  margin-bottom: 4px;
}

.gctv-footer-links a,
.gctv-footer-legal a {
  color: #64748b;
  text-decoration: none;
  font-size: .78rem;
  transition: color .2s ease;
}

.gctv-footer-links a:hover,
.gctv-footer-legal a:hover {
  color: #c4b5fd;
}

.gctv-footer-email {
  color: #a78bfa;
  text-decoration: none;
  font-size: .82rem;
}

.gctv-footer-copy,
.gctv-footer-legal {
  color: #475569;
  font-size: .75rem;
}

#mobileBottomNav {
  display: none;
}

@media (max-width: 900px) {
  .gctv-header-inner {
    grid-template-columns: auto 1fr auto;
    gap: 16px;
  }

  .gctv-desktop-links {
    gap: 16px;
  }

  .gctv-header-link {
    font-size: .82rem;
  }

  .gctv-header-brand span {
    display: none;
  }
}

@media (max-width: 767px) {
  #gctvSiteHeader {
    display: none !important;
  }

  #siteMenuMobileTrigger {
    position: fixed;
    top: max(14px, env(safe-area-inset-top));
    right: 14px;
    z-index: 10010;
    width: 48px;
    height: 48px;
    display: inline-flex !important;
    background: rgba(10, 10, 16, .92);
    border-color: rgba(148, 163, 184, .24);
    box-shadow: 0 12px 30px rgba(0, 0, 0, .48);
    backdrop-filter: blur(16px);
  }

  body.gctv-shell-mounted {
    padding-bottom: 84px !important;
  }

  #mobileBottomNav {
    position: fixed !important;
    right: 0 !important;
    bottom: 0 !important;
    left: 0 !important;
    z-index: 9999 !important;
    height: calc(78px + env(safe-area-inset-bottom));
    display: flex !important;
    align-items: flex-start;
    justify-content: space-around;
    padding: 8px 8px env(safe-area-inset-bottom);
    background: rgba(8, 8, 12, .96);
    border-top: 1px solid rgba(124, 58, 237, .25);
    box-shadow: 0 -8px 32px rgba(0, 0, 0, .62);
    backdrop-filter: blur(20px);
  }

  .gctv-mobile-link {
    min-width: 0;
    flex: 1;
    height: 61px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    color: #64748b;
    text-decoration: none;
    font-size: .63rem;
    font-weight: 700;
  }

  .gctv-mobile-link svg {
    width: 20px;
    height: 20px;
  }

  .gctv-mobile-link.is-active {
    color: #c4b5fd;
  }

  .gctv-mobile-home {
    flex: 0 0 72px;
    transform: translateY(-22px);
  }

  .gctv-mobile-home span {
    width: 62px;
    height: 62px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: linear-gradient(135deg, #7c3aed, #ec4899);
    border: 3px solid rgba(255, 255, 255, .1);
    box-shadow: 0 0 20px rgba(124, 58, 237, .5), 0 0 40px rgba(236, 72, 153, .16);
  }

  .gctv-mobile-home img {
    width: 48px;
    height: 48px;
    border-radius: 999px;
  }

  #gctvSharedFooter {
    margin-top: 48px;
    padding-bottom: 34px;
  }
}

@media (prefers-reduced-motion: reduce) {
  #siteMenuOverlay,
  #siteMenuPanel,
  .gctv-header-link::after,
  .gctv-drawer-link,
  .gctv-menu-trigger,
  .gctv-menu-close {
    transition: none !important;
  }
}
