/* Homepage preview: headline and hashtag. */
#jux-home-title {
  display: block !important;
  margin: 0 auto !important;
  padding: 0 !important;
  width: 100% !important;
  color: #fff !important;
  font-family: Montserrat, Arial, sans-serif !important;
  font-size: clamp(38px, 6.5vw, 78px) !important;
  font-weight: 900 !important;
  line-height: 1.08 !important;
  letter-spacing: -.045em !important;
  text-align: center !important;
  text-transform: none !important;
  text-shadow: 0 2px 18px rgba(0,0,0,.3) !important;
}
#jux-home-title > span { display: block; white-space: nowrap; }
#jux-home-title strong { color: #ff0054; font-weight: 900; }
#jux-home-badge {
  transform: rotate(-7deg) skewX(-7deg) !important;
  font-family: Montserrat, Arial, sans-serif !important;
  font-weight: 800 !important;
  font-style: italic !important;
  font-size: clamp(19px, 2.3vw, 29px) !important;
  letter-spacing: -.035em !important;
  background: #ff0054 !important;
  color: #fff !important;
  border-radius: 5px !important;
  padding: 8px 16px !important;
  text-shadow: none !important;
}
@media (max-width: 600px) {
  #jux-home-title { font-size: clamp(30px, 8.5vw, 51px) !important; }
}
/* Reserve space below the fixed header and compact the desktop hero. */
@media (min-width: 601px) {
  #jux-home-stage {
    box-sizing: border-box !important;
    display: flex !important;
    flex-direction: column !important;
    flex-wrap: nowrap !important;
    justify-content: center !important;
    align-items: center !important;
    height: auto !important;
    min-height: 100svh !important;
    padding: 108px 16px 24px !important;
  }
  #jux-home-stage > * { flex-shrink: 0 !important; }
  #jux-home-stage .jux-headline-kicker {
    height: auto !important;
    min-height: 0 !important;
    margin: 0 0 24px !important;
    padding: 0 !important;
    overflow: visible !important;
  }
  #jux-home-stage .jux-headline-brand { margin: 0 !important; }
  #jux-home-stage .jux-headline-brand + .player {
    margin-top: 22px !important;
    width: 100% !important;
  }
  #jux-home-title { font-size: clamp(38px, 4.4vw, 58px) !important; }
  #jux-home-badge { font-size: clamp(19px, 1.8vw, 24px) !important; }
}
@media (min-width: 601px) and (max-height: 740px) {
  #jux-home-stage { padding-top: 96px !important; padding-bottom: 18px !important; }
  #jux-home-title { font-size: clamp(36px, 4vw, 48px) !important; }
  #jux-home-badge { font-size: 20px !important; padding: 6px 13px !important; }
  #jux-home-stage .jux-headline-kicker { margin-bottom: 20px !important; }
  #jux-home-stage .jux-headline-brand + .player { margin-top: 16px !important; }
}

/* Fade only the overflowing text viewport; keep cover, heart and width intact. */
@media (prefers-reduced-motion: no-preference) {
  body.jux-home .player .playing_now .info .jux-ticker-overflow {
    -webkit-mask-image: linear-gradient(to right, transparent, #000 8px, #000 calc(100% - 8px), transparent);
    mask-image: linear-gradient(to right, transparent, #000 8px, #000 calc(100% - 8px), transparent);
  }
}

/* Non-interactive decorative layer; no change to page size or scrolling. */
#jux-home-stage { position: relative; isolation: isolate; }
#jux-home-stage > :not(.jux-ambient) { position: relative; z-index: 1; }
#jux-home-stage > .jux-ambient {
  position: absolute; inset: 0; z-index: 0; overflow: hidden;
  pointer-events: none; border-radius: inherit;
}
.jux-ambient canvas { display: block; position: absolute; inset: 0; width: 100%; height: 100%; }
.jux-ambient-glow {
  position: absolute; left: 50%; top: var(--jux-ambient-y, 50%);
  width: min(720px, 130%); height: 480px;
  transform: translate(-50%, -50%); border-radius: 50%;
  background: radial-gradient(ellipse, rgba(255,0,88,.3), rgba(192,0,74,.12) 38%, transparent 68%);
  opacity: .03; transition: opacity 1.7s ease;
}
.jux-ambient-playing .jux-ambient-glow { opacity: 1; }
@media (prefers-reduced-motion: reduce) {
  .jux-ambient-glow { transition: none; }
}
