/* Raresix hero: layered, state-aware. Works without JS (static defaults). */
.hx { --hx-a: 34,230,255; --hx-b: 42,169,245; position: relative; overflow: hidden; isolation: isolate; background: #05080d; }
.hx[data-state="live"] { --hx-a: 255,59,78; --hx-b: 34,230,255; }
.hx[data-tod="night"] { --hx-b: 120,110,255; }
.hx[data-tod="dawn"] { --hx-b: 255,170,90; }

/* art layers belong to slide 1 only (.hb-home); the live glow is hero-wide (.hx-glob). CSS gradients underneath so missing images degrade gracefully. */
.hx-layers { position: absolute; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 14%, #000 72%, transparent 100%); mask-image: linear-gradient(to bottom, transparent 0, #000 14%, #000 72%, transparent 100%); }
.hx-glob { position: absolute; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.hx-l { position: absolute; inset: -3%; background-repeat: no-repeat; background-position: center; background-size: cover; will-change: transform; transition: transform .25s ease-out; }
.hx-bg { background-image: url(../img/hero/hero-bg.svg), radial-gradient(60% 70% at 78% 30%, rgba(var(--hx-b),.12), transparent 70%), radial-gradient(50% 60% at 10% 90%, rgba(var(--hx-a),.06), transparent 70%); opacity: .7; }
.hx-grid { background-image: url(../img/hero/hero-grid.svg); background-position: center bottom; opacity: .3; -webkit-mask-image: linear-gradient(to top, #000 10%, transparent 80%); mask-image: linear-gradient(to top, #000 10%, transparent 80%); }
.hx-orbs { background-image: url(../img/hero/hero-orbs.svg); opacity: .35; mix-blend-mode: screen; }
.hx-live { background-image: url(../img/hero/hero-live.svg), radial-gradient(70% 70% at 50% 40%, rgba(255,59,78,.12), transparent 70%); opacity: 0; transition: opacity .8s ease; mix-blend-mode: screen; -webkit-mask-image: linear-gradient(to bottom, #000 40%, transparent 100%); mask-image: linear-gradient(to bottom, #000 40%, transparent 100%); }
.hx[data-state="live"] .hx-live { opacity: .55; }
.hx .particles { z-index: 1; opacity: .35; }
.hx-in { position: relative; z-index: 2; }
.hx-in > div { width: 100%; }
.hx-in > div > * { min-width: 0; }

/* status + announcement */
.hx-top { margin-top: 1.25rem; display: flex; flex-wrap: wrap; align-items: center; gap: .5rem .75rem; }
.hx-pill { display: inline-flex; align-items: center; gap: .5rem; padding: .35rem .8rem; border-radius: 999px; font-size: .75rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; border: 1px solid rgba(var(--hx-a),.4); background: rgba(var(--hx-a),.08); color: #e6faff; }
.hx-pill[hidden] { display: none; }
.hx-dot { width: .5rem; height: .5rem; border-radius: 50%; background: rgb(var(--hx-a)); box-shadow: 0 0 10px rgb(var(--hx-a)); }
.hx-pill-live { border-color: rgba(255,59,78,.6); background: rgba(255,59,78,.14); color: #fff; }
.hx-pill-live .hx-dot { background: #ff3b4e; box-shadow: 0 0 12px #ff3b4e; animation: hxpulse 1.4s ease-in-out infinite; }
.hx-cd { font-variant-numeric: tabular-nums; font-weight: 600; color: #fff; letter-spacing: .04em; }
.hx-note { font-size: .875rem; color: #94a3b8; }
@keyframes hxpulse { 50% { opacity: .35; transform: scale(.75); } }

.hx-ann { position: relative; z-index: 3; display: none; align-items: center; gap: .75rem; padding: .55rem 1rem; font-size: .875rem; color: #e2e8f0; border-bottom: 1px solid rgba(255,255,255,.1); background: rgba(34,230,255,.1); }
.hx-ann.on { display: flex; justify-content: center; }
.hx-ann[data-style="promo"] { background: linear-gradient(90deg, rgba(166,239,60,.16), rgba(34,230,255,.14)); }
.hx-ann[data-style="alert"] { background: rgba(255,59,78,.2); border-color: rgba(255,59,78,.4); }
.hx-ann a { color: #fff; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.hx-ann button { margin-left: .5rem; width: 1.75rem; height: 1.75rem; border-radius: 50%; color: #cbd5e1; line-height: 1; }
.hx-ann button:hover { background: rgba(255,255,255,.12); color: #fff; }

.hx[data-state="live"] .btn-primary { background: linear-gradient(100deg, #e11d3a, #ff3b4e 55%, #ff6a3d); box-shadow: 0 10px 30px -10px rgba(255,59,78,.8); }

/* Rare Impact: contained glass panel; orbit rotates only inside its own frame */
.hx-impact { position: relative; max-width: 24rem; padding: 1.1rem 2.25rem 1.3rem; border-radius: 1.5rem; overflow: hidden; border: 1px solid rgba(255,255,255,.1); background: linear-gradient(160deg, rgba(14,22,34,.72), rgba(8,13,20,.72)); backdrop-filter: blur(12px); box-shadow: 0 30px 60px -40px rgba(0,0,0,.9), inset 0 1px 0 rgba(255,255,255,.06); }
.hx-impact-h { font-size: .7rem; font-weight: 600; letter-spacing: .22em; text-transform: uppercase; color: rgb(var(--hx-a)); text-align: center; margin-bottom: .25rem; }
.hx-impact .orbit { width: 100%; }
.hx-impact .orbit-glow { opacity: .6; animation-duration: 8s; }
.hx-impact .orbit-core { inset: 27%; }
.hx-views { font-family: 'Space Grotesk', sans-serif; font-size: clamp(1.9rem, 3.2vw, 2.6rem); font-weight: 700; line-height: 1; color: #fff; }
.hx-views-l { margin-top: .3rem; font-size: .75rem; color: #94a3b8; }
.hx-impact .sat-wrap { inset: 3%; animation-duration: 150s; }
.hx-impact .sat { animation-duration: 150s; }
.hx-impact .sat a { padding: .35rem .6rem; font-size: .78rem; gap: .35rem; box-shadow: none; }
.hx-impact .sat a em { display: none; }
.hx-impact .ring.dash { animation-duration: 160s; }
.hx[data-paused] .hx-impact *, .hx[data-paused] .hx-pill-live .hx-dot { animation-play-state: paused !important; }

/* slide 1 only: replay the headline stagger on every activation, pause orbit while hidden */
.hb-home:not(.on) .rise { animation: none; }
.hb-home:not(.on) .hx-impact * { animation-play-state: paused !important; }

.hx[data-state="live"] .orbit-glow { background: radial-gradient(circle, rgba(255,59,78,.2), transparent 70%); }

/* offline-forced / live-forced text swaps (stream.mode override) */
.hx[data-state="live"] [data-offline-only] { display: none !important; }
.hx[data-state="live"] [data-live-only] { display: revert !important; }
.hx[data-state="offline"] [data-live-only] { display: none !important; }
.hx[data-state="offline"] [data-offline-only] { display: revert !important; }

@media (prefers-reduced-motion: reduce) {
  .hx-l { transition: none; transform: none !important; }
  .hx-pill-live .hx-dot { animation: none; }
}

/* one-viewport hero: header + hero = 100svh; grows (min-height) when content cannot fit */
.hx { --hx-hh: 100px; min-height: calc(100vh - var(--hx-hh)); min-height: calc(100svh - var(--hx-hh)); display: flex; flex-direction: column; }
.hx .hb { flex: 1 1 auto; display: flex; flex-direction: column; }
.hx .hb-stage { flex: 1 1 auto; min-height: 0; }
.hx .hb-slide { align-items: center; }
.hx .hb-tabs { width: 100%; flex: none; margin-top: auto; padding-top: .5rem; padding-bottom: .75rem; }
.hx .hb-home .hx-in { padding-top: 1.5rem; padding-bottom: 1.5rem; }
.hx .hb-home .hx-grid2 { align-items: center; }
.hx-impact { align-self: center; }
@media (max-height: 800px) and (min-width: 1024px) {
  .hx .hb-home h1 { font-size: 3.6rem; }
  .hx .hb-home .hx-in p.rise { margin-top: 1rem; }
  .hx .hb-home .hx-in .rise.mt-8 { margin-top: 1.25rem; }
  .hx-impact { max-width: 21rem; }
}
