/* Shared product navigation for the Suno Upload website and Music AI. */
:root {
  --header-height: 68px;
}

body > nav, .site-bridge {
  position: sticky !important;
  top: 0 !important;
  z-index: 100 !important;
  display: grid !important;
  grid-template-columns: minmax(210px, 1fr) auto minmax(210px, 1fr) !important;
  align-items: center !important;
  height: var(--header-height) !important;
  min-height: var(--header-height) !important;
  padding: 0 max(20px, calc((100vw - 1180px) / 2)) !important;
  border-bottom: 1px solid #ffffff12 !important;
  background: #0a0a10ed !important;
  box-shadow: 0 10px 35px #0005 !important;
  backdrop-filter: blur(18px) !important;
  box-sizing: border-box !important;
}

body > nav .brand, .site-bridge .brand, .site-bridge-brand {
  display: flex !important;
  align-items: center !important;
  gap: 11px !important;
  color: #fff !important;
  text-decoration: none !important;
  font-size: 17px !important;
  font-weight: 850 !important;
  letter-spacing: -.2px !important;
  flex: none !important;
}

body > nav .brand img, .site-bridge-brand img {
  width: 38px !important;
  height: 38px !important;
  border-radius: 12px !important;
  box-shadow: 0 0 30px #895cff45 !important;
  object-fit: cover !important;
}

body > nav .brand span, .site-bridge-brand span {
  display: block !important;
  font-size: 15px !important;
  font-weight: 850 !important;
  line-height: 1.15 !important;
}

body > nav .brand small, .site-bridge-brand small {
  display: block !important;
  margin-top: 2px !important;
  color: #ff805f !important;
  font-size: 6.5px !important;
  font-weight: 900 !important;
  letter-spacing: 1.25px !important;
  text-transform: uppercase !important;
}

.site-services {
  justify-self: center !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 5px !important;
  padding: 4px !important;
  border: 1px solid #ffffff12 !important;
  border-radius: 13px !important;
  background: #ffffff08 !important;
  margin: 0 auto !important;
}

.site-services a {
  display: flex !important;
  align-items: center !important;
  gap: 5px !important;
  min-height: 34px !important;
  padding: 7px 11px !important;
  border-radius: 9px !important;
  color: #aaa2af !important;
  font-size: 10px !important;
  font-weight: 800 !important;
  text-decoration: none !important;
  white-space: nowrap !important;
  transition: .16s ease !important;
}

.site-services a:hover {
  background: #ffffff0a !important;
  color: #fff !important;
}

.site-services a.active {
  background: linear-gradient(100deg, #ff68411f, #ed318e1b, #7950ef20) !important;
  color: #fff !important;
  box-shadow: inset 0 0 0 1px #ff805f30 !important;
}

.site-services a small {
  padding: 2px 4px !important;
  border-radius: 99px !important;
  background: #caff3d !important;
  color: #151219 !important;
  font-size: 6px !important;
  font-weight: 950 !important;
  letter-spacing: .5px !important;
}

#account, .site-bridge-account {
  justify-self: end !important;
  display: flex !important;
  align-items: center !important;
  gap: 9px !important;
}

#account b, .site-bridge-account b {
  display: inline-flex !important;
  align-items: center !important;
  min-height: 38px !important;
  padding: 8px 12px !important;
  border-radius: 10px !important;
  background: #211a2b !important;
  color: #d8c7ff !important;
  font-size: 11.5px !important;
  font-weight: 800 !important;
  white-space: nowrap !important;
}

#account button, #account a, .downloader-account, .site-account-btn, .site-account-link {
  display: inline-flex !important;
  align-items: center !important;
  min-height: 38px !important;
  padding: 8px 13px !important;
  border: 1px solid #ffffff17 !important;
  border-radius: 10px !important;
  background: #17171f !important;
  color: #f8f4f6 !important;
  font-size: 11px !important;
  font-weight: 850 !important;
  text-decoration: none !important;
  white-space: nowrap !important;
  cursor: pointer !important;
  box-shadow: none !important;
  transition: .16s ease !important;
}

#account button:hover, #account a:hover, .downloader-account:hover, .site-account-btn:hover, .site-account-link:hover {
  border-color: #ff765b66 !important;
  background: #20191e !important;
  color: #fff !important;
}

.promo-banner {
  position: sticky !important;
  top: var(--header-height) !important;
  z-index: 99 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-height: 46px !important;
  gap: 16px !important;
  padding: 10px 20px !important;
  font-size: 12.5px !important;
  line-height: 1.35 !important;
  box-shadow: 0 10px 28px #0004 !important;
  background: linear-gradient(90deg, #ff713f, #ed3e83, #825cff) !important;
  color: #fff !important;
  box-sizing: border-box !important;
  text-align: center !important;
}

.promo-banner[hidden] {
  display: none !important;
}

.promo-banner b {
  font-size: 13px !important;
  font-weight: 850 !important;
  letter-spacing: .02em !important;
  white-space: nowrap !important;
  color: #fff !important;
}

.promo-banner span {
  max-width: 760px !important;
  font-size: 11.5px !important;
  font-weight: 700 !important;
  color: #fff !important;
}

.hero-music-ai {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 9px 13px;
  border: 1px solid #ff805f55;
  border-radius: 10px;
  background: linear-gradient(105deg, #ff684126, #ed318e1f, #7950ef22);
  color: #fff !important;
  font-size: 11px;
  font-weight: 900;
  text-decoration: none;
}

/* App shell integration across Music AI */
.site-bridge ~ .app-shell,
.site-bridge + .app-shell,
.site-bridge + #promoBanner + .app-shell {
  display: grid !important;
  max-width: 1180px !important;
  min-height: calc(100vh - var(--header-height)) !important;
  grid-template-columns: minmax(0, 1.12fr) minmax(370px, .88fr) !important;
  gap: 20px !important;
  margin: 0 auto !important;
  padding: 24px 22px 100px !important;
  box-sizing: border-box !important;
}

.site-bridge ~ .app-shell .sidebar,
.site-bridge + .app-shell .sidebar,
.site-bridge + #promoBanner + .app-shell .sidebar {
  position: static !important;
  grid-column: 1 / -1 !important;
  display: flex !important;
  width: auto !important;
  height: auto !important;
  block-size: auto !important;
  min-height: 76px !important;
  max-height: none !important;
  flex: 0 0 auto !important;
  flex-direction: row !important;
  align-items: center !important;
  align-self: start !important;
  gap: 11px !important;
  padding: 10px 12px !important;
  border: 1px solid #2d2933 !important;
  border-radius: 20px !important;
  background: linear-gradient(135deg, #17151d, #111117) !important;
  box-shadow: 0 18px 55px #0004 !important;
}

.site-bridge ~ .app-shell .creator,
.site-bridge + .app-shell .creator,
.site-bridge + #promoBanner + .app-shell .creator,
.site-bridge ~ .app-shell .results-pane,
.site-bridge + .app-shell .results-pane,
.site-bridge + #promoBanner + .app-shell .results-pane {
  min-width: 0 !important;
  padding: 22px !important;
  border: 1px solid #2d2933 !important;
  border-radius: 22px !important;
  background: linear-gradient(145deg, #17151d, #111117) !important;
  box-shadow: 0 18px 55px #0004 !important;
  display: block !important;
}

.site-bridge ~ .app-shell .creator,
.site-bridge + .app-shell .creator,
.site-bridge + #promoBanner + .app-shell .creator {
  border-right: 1px solid #2d2933 !important;
}

.site-bridge ~ .app-shell .results-pane,
.site-bridge + .app-shell .results-pane,
.site-bridge + #promoBanner + .app-shell .results-pane {
  background: linear-gradient(145deg, #131219, #0d0c12) !important;
}

@media(max-width: 850px) {
  body > nav, .site-bridge {
    grid-template-columns: 1fr auto !important;
    height: auto !important;
    min-height: 62px !important;
    gap: 10px !important;
    padding: 10px 16px !important;
  }
  body > nav .site-services, .site-bridge .site-services {
    grid-column: 1 / -1;
    width: 100%;
    overflow-x: auto;
    justify-content: flex-start !important;
  }
}

@media(max-width: 560px) {
  :root { --header-height: 62px; }
  body > nav, .site-bridge {
    height: auto !important;
    padding: 8px 12px !important;
  }
  .brand span, .site-bridge-brand span { font-size: 14px !important; }
  .brand img, .site-bridge-brand img { width: 34px !important; height: 34px !important; }
  #account b { display: none !important; }
  #account button, #account a { padding: 7px 10px !important; font-size: 10.5px !important; }
  .promo-banner {
    top: 62px !important;
    flex-direction: column !important;
    min-height: 58px !important;
    gap: 4px !important;
    padding: 8px 12px !important;
    text-align: center !important;
  }
  .promo-banner b { font-size: 12px !important; white-space: normal !important; }
  .promo-banner span { font-size: 10px !important; line-height: 1.35 !important; }
}
