/* ==========================================================================
   Tiberius Gaming: site layout + components.
   Brand values come from css/tokens.css (Kira's kit, copied verbatim from
   /workspace/kira/tiberiusgaming/tokens.css; re-copy it when she updates).
   This file only uses the semantic slots (--bg, --surface, --text, --accent,
   --font-heading, --radius, ...) so .theme-jamz / .theme-nexus re-skin it.
   ========================================================================== */

*,*::before,*::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-size: 1.0625rem; line-height: 1.5; }
img { max-width: 100%; height: auto; display: block; }
p { margin: 0 0 1em; }
h1 { font-size: var(--tg-text-3xl); margin: 0 0 .35em; }
h2 { font-size: clamp(1.8rem, 4.5vw, var(--tg-text-2xl)); margin: 0 0 .5em; }
h3 { font-size: clamp(1.3rem, 3vw, var(--tg-text-xl)); margin: 0 0 .5em; }
.wrap { max-width: var(--tg-maxw); margin: 0 auto; padding: 0 20px; }
.muted { color: var(--text-muted); }
.accent { color: var(--tg-accent); }
.sr-only { position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; border:0; }
.skip { position:absolute; left:12px; top:-60px; z-index:100; }
.skip:focus { top:12px; }
.eyebrow { font: 600 var(--tg-text-xs)/1.2 var(--tg-font-body); letter-spacing: var(--tg-tracking-caps); text-transform: uppercase; color: var(--text-muted); margin: 0 0 1em; }
.btn svg { width: 1.1em; height: 1.1em; flex: none; }
.btn-row { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }

/* ---------- Header (umbrella) ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(22,19,29,.92); backdrop-filter: blur(8px); border-bottom: 1px solid var(--tg-border); }
.site-header .wrap { display: flex; align-items: center; gap: 12px 24px; flex-wrap: wrap; padding-top: 10px; padding-bottom: 10px; }
.logo { display: block; text-decoration: none; padding: 4px 0; }
.logo img { height: 40px; width: auto; }        /* lockup SVG has built-in clear space */
.main-nav { margin-left: auto; }
.main-nav ul { list-style: none; display: flex; gap: 2px; margin: 0; padding: 0; flex-wrap: wrap; }
.main-nav a { display: block; padding: 8px 12px; border-radius: var(--tg-radius-sm); color: var(--tg-text-muted); text-decoration: none; font-weight: 600; font-size: .95rem; }
.main-nav a:hover { color: var(--tg-text); background: var(--tg-surface-2); }
.main-nav a[aria-current="page"] { color: var(--tg-text); box-shadow: inset 0 -2px 0 var(--tg-accent); border-radius: 0; }
.social { display: flex; gap: 6px; flex-wrap: wrap; }
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: var(--tg-radius-pill); box-shadow: inset 0 0 0 1px var(--tg-border); color: var(--tg-text); text-decoration: none; font-size: .85rem; font-weight: 600; white-space: nowrap; }
.pill:hover { color: var(--tg-text); background: var(--tg-surface-2); box-shadow: inset 0 0 0 1px var(--tg-accent); }
.pill svg { width: 15px; height: 15px; flex: none; }
@media (max-width: 860px) {
  .site-header { position: static; }
  .main-nav { margin-left: 0; width: 100%; order: 3; }
  .main-nav ul { justify-content: space-between; }
  .main-nav a { padding: 8px 10px; }
  .social { order: 2; margin-left: auto; }
  .social .pill-label { display: none; }
  .social .pill { padding: 9px; }
  .social .pill svg { width: 18px; height: 18px; }
}

/* ---------- Umbrella sections ---------- */
.section { padding: var(--tg-space-7) 0; }
.hero { padding: var(--tg-space-8) 0 var(--tg-space-7); background: radial-gradient(900px 420px at 10% -10%, var(--tg-accent-soft), transparent 65%); }
.hero .lead { font-size: var(--tg-text-lg); color: var(--tg-text-muted); max-width: 44ch; margin-bottom: 1.5em; }
.page-head { padding: var(--tg-space-7) 0 var(--tg-space-3); }
.page-head p { max-width: 62ch; }

.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 28px; }
.card { overflow: hidden; display: flex; flex-direction: column; }
.card-body { padding: 20px 22px 24px; display: flex; flex-direction: column; flex: 1; }
.card-body .btn-row { margin-top: auto; padding-top: 12px; }
.card-art { aspect-ratio: 5 / 2; object-fit: cover; width: 100%; border-bottom: var(--border-width) solid var(--border); }
.card-head { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.card-head img { width: 52px; height: 52px; border-radius: 50%; flex: none; }
.card-head h3 { margin: 0; font-size: 1.15rem; }
.theme-nexus .card-head h3 { font-size: 1.8rem; }
.theme-jamz .card-head h3 { font-size: .95rem; }
.card-head .handle { color: var(--text-muted); font-size: .9em; }
.theme-jamz.card .card-body p { font-size: 1.35rem; line-height: 1.2; }

.callout { padding: 28px; display: flex; gap: 20px 32px; align-items: center; justify-content: space-between; flex-wrap: wrap; border-radius: var(--tg-radius-lg); }
.callout h2 { margin: 0 0 .2em; font-size: 1.6rem; }
.callout p { margin: 0; color: var(--text-muted); }

blockquote.bio { margin: 0 0 1.2em; padding: 16px 20px; border-left: 4px solid var(--accent); background: var(--surface); border-radius: 0 var(--tg-radius-sm) var(--tg-radius-sm) 0; font-size: 1.1em; }

/* ---------- About ---------- */
.about-grid { display: grid; grid-template-columns: 320px 1fr; gap: 40px; align-items: start; }
@media (max-width: 760px) { .about-grid { grid-template-columns: 1fr; } }
.about-grid h2 { margin-top: 1.2em; font-size: 1.75rem; }
.photo-slot { aspect-ratio: 4 / 5; border: 2px dashed var(--tg-border); border-radius: var(--tg-radius-lg); display: grid; place-items: center; text-align: center; padding: 20px; color: var(--tg-text-muted); background: var(--tg-surface); }
.photo-slot strong { display: block; color: var(--tg-text); font-family: var(--tg-font-heading); }

/* ---------- Merch ---------- */
.merch-note { margin: 0 0 28px; max-width: 52ch; }
.merch-brand { padding: 28px 22px 32px; margin-bottom: 32px; overflow: hidden; }
.merch-brand-head { display: flex; align-items: center; gap: 14px; margin-bottom: 4px; }
.merch-brand-head img { width: 64px; height: 64px; border-radius: 50%; flex: none; }
.merch-brand-head h2 { margin: 0; }
.merch-brand-head .tagline { margin: .2em 0 0; }
.theme-nexus.merch-brand { /* comic paper section already themed by tokens */ }
.theme-nexus .merch-brand-head img { border: 3px solid var(--nexus-black); }
.theme-nexus .merch-brand-head h2 { font-size: clamp(2rem, 5vw, 3rem); text-shadow: 3px 3px 0 var(--nexus-magenta); }
.products { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); gap: 20px; margin-top: 20px; }
.products:empty { display: none; }
.product { overflow: hidden; display: flex; flex-direction: column; min-width: 0; }
.product img { aspect-ratio: 1; object-fit: cover; width: 100%; height: auto; border-bottom: var(--border-width) solid var(--border); background: var(--surface-2); }
.product .product-body { padding: 14px 16px 18px; display: flex; flex-direction: column; flex: 1; gap: 6px; }
.product .product-body h3 { margin: 0; font-size: 1.25rem; }
.theme-nexus .product .product-body h3 { font-size: 1.55rem; }
.product .product-desc { margin: 0; color: var(--text-muted); font-size: .95em; }
.product .product-price {
  margin: 8px 0 0; margin-top: auto; padding-top: 8px;
  font: 700 var(--tg-text-sm)/1.2 var(--tg-font-body);
  letter-spacing: var(--tg-tracking-caps); text-transform: uppercase;
  color: var(--text-muted);
}
.theme-nexus .product .product-price {
  display: inline-block; align-self: flex-start;
  background: var(--nexus-belly); color: var(--nexus-black);
  border: 2px solid var(--nexus-black); border-radius: 999px;
  padding: .35em .75em; margin-top: 10px;
}
.product .brand-tag { font-size: var(--tg-text-xs); color: var(--text-muted); text-transform: uppercase; letter-spacing: var(--tg-tracking-caps); }
@media (max-width: 420px) {
  .merch-brand { padding: 20px 14px 24px; }
  .merch-brand-head img { width: 52px; height: 52px; }
}

/* ---------- Stream hub ---------- */
.hub-jump { margin-top: 8px; }
.channel { padding: 56px 0 64px; }
.hub-divider { background: var(--tg-ink); padding: 26px 0; border-top: 1px solid var(--tg-border); border-bottom: 1px solid var(--tg-border); }
.hub-divider p { margin: 0; text-align: center; font: 600 var(--tg-text-xs)/1 var(--tg-font-body); letter-spacing: .2em; text-transform: uppercase; color: var(--tg-text-muted); }
.hub-divider p::before, .hub-divider p::after { content: ""; display: inline-block; vertical-align: middle; width: 48px; height: 2px; background: var(--tg-accent); margin: 0 14px; }
.channel-head { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; margin-bottom: 26px; }
.channel-head > div:not(.btn-row) { flex: 1 1 220px; min-width: 0; }
.channel-head img.badge { width: 84px; height: 84px; border-radius: 50%; flex: none; }
.channel-head h2 { margin: 0; }
.channel-head .tagline { color: var(--text-muted); }
.channel-head .btn-row { margin-left: auto; }
.channel-grid { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); gap: 28px; align-items: start; }
@media (max-width: 900px) { .channel-grid { grid-template-columns: 1fr; } }
@media (max-width: 600px) {
  .channel-head img.badge { width: 64px; height: 64px; }
  .channel-head .btn-row { margin-left: 0; width: 100%; }
}
.player { position: relative; aspect-ratio: 16 / 9; background: #000; }
.player iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.player-note { font-size: .9em; margin: 12px 0 18px; }
.panel { padding: 20px 22px; }
.panel h3 { margin-bottom: .7em; }
.schedule { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.schedule li, .schedule-empty { padding: 12px 14px; background: var(--surface-2); border-radius: calc(var(--radius) / 2); }
.schedule .when { font-weight: 700; display: block; color: var(--heading); }
.schedule .what { display: block; }
.schedule .cat { font-size: .85em; color: var(--text-muted); }
.schedule-empty { text-align: center; }
.schedule-empty p { margin: 0 0 12px; }
.tz-note { font-size: .85em; margin: 12px 0 0; color: var(--text-muted); }

/* jamz: Press Start 2P headings are big; keep them tidy */
.theme-jamz .channel-head h2 { font-size: clamp(1.1rem, 3.4vw, 1.75rem); }
.theme-jamz .panel h3 { font-size: 1rem; }
.theme-jamz .schedule .when { font-size: 1.15em; }
.theme-jamz blockquote.bio { border-left-color: var(--jamz-amber); font-size: 1.3rem; line-height: 1.25; }
.theme-jamz .tagline { font-family: "Press Start 2P", monospace; font-size: .6rem; text-transform: uppercase; color: var(--jamz-lilac); }
.theme-jamz .channel-head h2 { background: var(--jamz-sunset); -webkit-background-clip: text; background-clip: text; color: transparent; }
/* nexus */
.theme-nexus .channel-head h2 { font-size: clamp(2.4rem, 6vw, 3.4rem); text-shadow: 3px 3px 0 var(--nexus-magenta); }
.theme-nexus .channel-head img.badge { border: 3px solid var(--nexus-black); }
.theme-nexus .tagline { font-weight: 600; }
.theme-nexus blockquote.bio { border: 3px solid var(--nexus-black); border-left-width: 8px; border-left-color: var(--nexus-teal); border-radius: 12px; }
.theme-nexus .panel h3 { font-size: 2rem; }
.theme-nexus .schedule li, .theme-nexus .schedule-empty { border: 3px solid var(--nexus-black); }

/* ---------- Footer (umbrella) ---------- */
.site-footer { border-top: 1px solid var(--tg-border); background: var(--tg-surface); padding: 40px 0 28px; }
.footer-grid { display: flex; gap: 24px 56px; flex-wrap: wrap; justify-content: space-between; }
.footer-brand img { height: 36px; width: auto; margin: 0 0 12px -8px; }
.site-footer h2 { font: 600 var(--tg-text-xs)/1.2 var(--tg-font-body); letter-spacing: var(--tg-tracking-caps); text-transform: uppercase; color: var(--tg-text-muted); margin: 0 0 1em; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.site-footer ul a { color: var(--tg-text); text-decoration: none; }
.site-footer ul a:hover { color: var(--tg-accent-hover); text-decoration: underline; }
.site-footer .fine { margin-top: 28px; font-size: var(--tg-text-sm); color: var(--tg-text-muted); }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; } .btn:hover { transform: none; } }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }

/* fixes */
.callout.card { flex-direction: row; }
.theme-jamz.channel { font-size: 1.375rem; }
.theme-jamz .player-note, .theme-jamz .tz-note { font-size: 1.1rem; }

/* ---------- Channel art (approved finals from Kira) ---------- */
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 24px 40px; align-items: center; }
.hero-art { position: relative; max-width: 440px; justify-self: end; width: 100%; }
.hero-nexie { width: 100%; filter: drop-shadow(0 18px 30px rgba(0,0,0,.45)); }
.hero-jt { position: absolute; left: -14%; bottom: 2%; width: 38%; border-radius: 18px; box-shadow: 0 0 0 2px #7a4dff, 0 12px 28px rgba(0,0,0,.55); }
@media (max-width: 760px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-art { justify-self: center; max-width: 300px; }
  .hero-jt { left: -6%; width: 34%; border-radius: 12px; }
}
.channel-side { display: grid; gap: 20px; }
.channel-banner { width: 100%; aspect-ratio: 5 / 2; object-fit: cover; border-radius: var(--radius); border: var(--border-width) solid var(--border); }
.offline-poster { margin: 0 0 18px; flex-direction: row; align-items: center; }
.offline-poster img { width: 42%; max-width: 260px; flex: none; aspect-ratio: 16 / 9; object-fit: cover; }
.offline-poster figcaption { padding: 12px 16px; font-size: .9em; color: var(--text-muted); }
@media (max-width: 480px) { .offline-poster { flex-direction: column; align-items: stretch; } .offline-poster img { width: 100%; max-width: none; } }
.offline-poster figcaption strong { color: var(--heading, var(--text)); }
.theme-jamz .offline-poster figcaption { font-size: 1.1rem; line-height: 1.25; }
.how-it-works { margin-top: 40px; }
.theme-nexus .how-it-works h3 { font-size: 2rem; }
.scene-strip { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 20px; }
.art-fig { margin: 0; }
.art-fig img { width: 100%; border-radius: calc(var(--radius) / 1.5); border: var(--border-width) solid var(--border); background: var(--surface); }
.art-fig figcaption { margin-top: 8px; font-size: .9em; color: var(--text-muted); }
.art-fig figcaption span { opacity: .8; font-style: italic; }
.gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 16px; padding: 16px; margin-bottom: 20px; border-radius: var(--tg-radius-lg); background: var(--bg); }
.gallery .art-fig img { aspect-ratio: 16 / 10; object-fit: contain; background: var(--surface-2, var(--surface)); }
.gallery .art-fig figcaption { color: var(--text-muted); }
.how-icon { display: inline-block; width: 1.4em; height: 1.4em; vertical-align: -0.3em; margin-right: .3em; }

/* ==========================================================================
   LIVE NOW (js/live.js). Everything here is hidden unless a channel is live,
   so the offline page is unchanged.
   ========================================================================== */
.live-hero[hidden], [data-live-panel][hidden], [data-live-badge][hidden] { display: none !important; }

/* badges on nav pills, home cards, Stream Hub */
.pill { position: relative; }
.pill.is-live { box-shadow: inset 0 0 0 2px var(--tg-live); }
.pill-live { font-size: .62rem; padding: .25em .55em; margin-left: 2px; }
.card-live { margin-left: auto; align-self: center; flex: none; }
.hub-live { margin-left: .8em; vertical-align: middle; position: relative; top: -2px; }
@media (max-width: 860px) {
  .social .pill-live { position: absolute; top: -6px; right: -8px; margin: 0; font-size: .55rem; padding: .2em .45em; }
  .social .pill-live::before { display: none; }
}

/* hero layout */
.live-hero { padding: 28px 0 8px; }
.live-stack { display: grid; gap: 28px; }
.live-panel { border: var(--border-width) solid var(--border); border-radius: var(--radius); box-shadow: var(--card-shadow); overflow: hidden; background: var(--surface); }
/* player box = Kira's frame in the 1600x600 art (744,76 800x450) */
.live-stage { --pb-x: 46.5%; --pb-y: 12.667%; --pb-w: 50%; --pb-h: 75%;
  position: relative; aspect-ratio: 8 / 3; overflow: hidden; isolation: isolate; background: var(--bg); background-image: var(--bg-image); }
.live-art { position: absolute; inset: 0; z-index: 0; }
.live-art picture { display: block; width: 100%; height: 100%; }
.live-art img { width: 100%; height: 100%; object-fit: cover; }
.live-deco { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.live-title { position: absolute; z-index: 2; left: 4%; top: 50%; transform: translateY(-50%); width: 40%; }
.live-title h2 { margin: 0; line-height: 1; }
.live-title .live-now, .live-title .live-name { display: block; }
.live-kicker { margin: 0 0 14px; }
.live-kicker .badge-live { font-size: .8rem; }
@media (prefers-reduced-motion: no-preference) {
  .live-kicker .badge-live::before, .pill-live::before, .card-live::before, .hub-live::before { animation: live-blink 1.4s steps(2, jump-none) infinite; }
}
@keyframes live-blink { 50% { opacity: .25; } }
.has-art .live-title { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.live-slot { position: absolute; z-index: 3; left: var(--pb-x); top: var(--pb-y); width: var(--pb-w); height: var(--pb-h); display: grid; place-items: center; }
.live-slot iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: #000; }
.live-load { display: inline-flex; align-items: center; gap: 14px; cursor: pointer; border: 0; padding: 14px 22px 14px 16px; font: inherit; text-align: left;
  background: var(--accent); color: var(--on-accent); border-radius: var(--btn-radius); box-shadow: var(--btn-shadow); transition: transform .15s var(--tg-ease), box-shadow .15s var(--tg-ease); }
.live-load:hover { transform: translateY(-2px); box-shadow: var(--btn-shadow-hover); background: var(--accent-hover); }
.live-load-txt { font-family: var(--font-heading); line-height: 1.15; }
.live-load small { display: block; font-family: var(--tg-font-body); font-size: .75rem; font-weight: 600; opacity: .8; margin-top: 4px; text-transform: none; letter-spacing: 0; }
.live-play { width: 0; height: 0; border-style: solid; border-width: 11px 0 11px 18px; border-color: transparent transparent transparent currentColor; flex: none; }
.live-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; padding: 16px 22px; border-top: var(--border-width) solid var(--border); }
.live-bar p { margin: 0; color: var(--text-muted); }

/* ---- jamz: synthwave pixel ---- */
.theme-jamz.live-panel { font-size: 1.35rem; }
.theme-jamz .live-stage { background:
    radial-gradient(1.5px 1.5px at 12% 18%, #fff 60%, transparent 70%), radial-gradient(1.5px 1.5px at 31% 9%, #FFE86A 60%, transparent 70%),
    radial-gradient(1.5px 1.5px at 39% 34%, #B394FF 60%, transparent 70%), radial-gradient(2px 2px at 22% 42%, #fff 60%, transparent 70%),
    radial-gradient(1.5px 1.5px at 58% 6%, #fff 60%, transparent 70%), radial-gradient(1.5px 1.5px at 92% 14%, #FFA53A 60%, transparent 70%),
    radial-gradient(1.5px 1.5px at 98% 64%, #fff 60%, transparent 70%), radial-gradient(1.5px 1.5px at 7% 58%, #B394FF 60%, transparent 70%),
    linear-gradient(180deg, #0C0517 0%, #170A2C 55%, #361A5C 100%); }
.theme-jamz .live-deco .grid { position: absolute; left: -20%; right: -20%; bottom: 0; height: 26%; transform-origin: 50% 0; transform: perspective(160px) rotateX(48deg);
  background: repeating-linear-gradient(90deg, rgba(164,107,255,.55) 0 2px, transparent 2px 46px), repeating-linear-gradient(180deg, rgba(164,107,255,.55) 0 2px, transparent 2px 22px), #12082A;
  border-top: 3px solid #FF3D7F; }
.theme-jamz .live-deco .sun { position: absolute; left: 61.5%; width: 20%; top: calc(87.667% - 10%); aspect-ratio: 2 / 1; height: auto; border-radius: 999px 999px 0 0;
  background: repeating-linear-gradient(180deg, transparent 0 9px, #170A2C 9px 12px), var(--jamz-sunset); transform: translateY(-50%); opacity: .95; }
.theme-jamz .live-jt { position: absolute; left: 30%; bottom: 9%; width: 12%; image-rendering: pixelated; box-shadow: 0 0 0 4px var(--jamz-violet), 6px 6px 0 4px var(--jamz-indigo); }
.theme-jamz .live-title { top: 44%; }
.theme-jamz .live-now { font-size: clamp(1.6rem, 4.2vw, 3.5rem); line-height: 1.15; background: var(--jamz-sunset); -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(4px 4px 0 #6231B8); }
.theme-jamz .live-name { margin-top: 18px; font-size: clamp(.7rem, 1.4vw, 1.05rem); color: var(--jamz-gold); display: inline-block; padding: .7em .8em; background: #0C0517; box-shadow: 0 0 0 4px var(--jamz-violet); }
.theme-jamz:not(.has-art) .live-slot { background: rgba(12,5,23,.55); box-shadow: 0 0 0 4px var(--jamz-violet), 0 0 30px rgba(164,107,255,.45); }
.theme-jamz .live-load { font-size: .75rem; text-transform: uppercase; border: 4px solid var(--jamz-violet); padding: 14px 18px 14px 14px; }
.theme-jamz .live-load small { font-size: .9rem; font-family: "VT323", monospace; }
.theme-jamz .live-bar { border-top-width: 4px; }
.theme-jamz .live-bar .btn { border-color: var(--jamz-violet); }

/* ---- nexus: comic ---- */
.theme-nexus .live-stage { background: radial-gradient(rgba(20,20,20,.13) 1.3px, transparent 1.5px) 0 0 / 11px 11px, linear-gradient(180deg, #FFFBEF 0 72%, #25C2C9 72% 100%); }
.theme-nexus .live-deco::after { content: ""; position: absolute; left: 0; right: 0; top: 70%; height: 6%;
  background: radial-gradient(circle at 50% 100%, #25C2C9 62%, transparent 64%) 0 0 / 46px 100% repeat-x; }
.theme-nexus .live-deco::before { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 28%; background: repeating-linear-gradient(180deg, transparent 0 16px, rgba(255,255,255,.25) 16px 19px); }
.theme-nexus .live-deco .burst { position: absolute; left: 1%; top: 3%; width: 46%; height: 82%; background: var(--nexus-magenta);
  clip-path: polygon(50% 0,58% 18%,75% 5%,74% 25%,96% 18%,85% 37%,100% 50%,85% 62%,96% 82%,74% 75%,75% 95%,58% 82%,50% 100%,42% 82%,25% 95%,26% 75%,4% 82%,15% 62%,0 50%,15% 37%,4% 18%,26% 25%,25% 5%,42% 18%);
  filter: drop-shadow(0 0 0 #141414); opacity: .95; }
.theme-nexus .live-nexie { position: absolute; left: -2%; bottom: -14%; width: 21%; filter: drop-shadow(5px 5px 0 #141414); }
.theme-nexus .live-title { left: 11%; width: 34%; top: 42%; text-align: center; }
.theme-nexus .live-kicker .badge-live { border: 2px solid #141414; }
.theme-nexus .live-now { font-family: "Luckiest Guy", "Bangers", sans-serif; font-size: clamp(2.2rem, 6vw, 5.2rem); line-height: .95; color: var(--nexus-lime);
  -webkit-text-stroke: 3px #141414; paint-order: stroke fill; text-shadow: 5px 5px 0 #141414; transform: rotate(-4deg); }
.theme-nexus .live-name { margin-top: 12px; font-size: clamp(1.1rem, 2.4vw, 2rem); display: inline-block; background: #FFFBEF; padding: .15em .5em; border: 3px solid #141414; border-radius: 10px; box-shadow: 4px 4px 0 #141414; transform: rotate(2deg); }
.theme-nexus:not(.has-art) .live-slot { background: #141414; border-radius: 16px; box-shadow: 0 0 0 4px #141414, 8px 8px 0 4px var(--nexus-magenta); }
.theme-nexus .live-slot iframe { border-radius: 14px; }
.theme-nexus .live-load { font-size: 1.6rem; border: 3px solid #141414; }
.theme-nexus .live-bar { background: #FFFFFF; }
.theme-nexus .live-bar p { font-weight: 600; }

/* ---- narrow (< 900px): art/title on top, full-width 16:9 player underneath ---- */
@media (max-width: 899px) {
  .live-hero { padding-top: 18px; }
  .live-stage { aspect-ratio: auto; display: flex; flex-direction: column; padding: 0 0 16px; }
  .live-art, .live-deco { position: relative; inset: auto; }
  .live-deco { position: absolute; inset: 0; }
  .has-art .live-art { aspect-ratio: 1; }
  .has-art .live-art img { height: 100%; }
  .live-title { position: relative; left: auto; top: auto; transform: none; width: auto; padding: 22px 18px 16px; }
  .live-slot { position: relative; left: auto; top: auto; width: auto; height: auto; aspect-ratio: 16 / 9; margin: 0 14px; }
  .has-art .live-slot { margin-top: 14px; background: var(--surface-2); }
  .live-bar { padding: 14px 16px; }
  .live-bar .btn-row, .live-bar .btn { width: 100%; justify-content: center; }
  .theme-jamz .live-deco .grid { height: 40%; }
  .theme-jamz .live-deco .sun, .theme-jamz .live-jt { display: none; }
  .theme-jamz .live-title { top: auto; }
  .theme-jamz .live-now { font-size: 2rem; }
  .theme-jamz .live-name { font-size: .8rem; }
  .theme-nexus .live-stage { background: radial-gradient(rgba(20,20,20,.13) 1.3px, transparent 1.5px) 0 0 / 11px 11px, linear-gradient(180deg, #FFFBEF 0 60%, #25C2C9 60% 100%); }
  .theme-nexus .live-deco::after { top: 57%; height: 5%; }
  .theme-nexus .live-deco .burst { left: 8%; width: 84%; top: 0; height: 52%; }
  .theme-nexus .live-nexie { display: none; }
  .theme-nexus .live-title { left: auto; width: auto; top: auto; }
  .theme-nexus .live-now { font-size: 3rem; }
  .theme-nexus .live-name { font-size: 1.3rem; }
}

/* Kira's art: keep the pixel art crisp; pulse ring on the jamz LIVE dot (centre 70,178 @1600x600) */
.theme-jamz .live-art img { image-rendering: pixelated; }
.has-art .live-art img { display: block; }
.live-pulse { display: none; }
.theme-jamz.has-art .live-pulse { display: block; position: absolute; z-index: 1; left: 4.375%; top: 29.667%; width: 6.25%; aspect-ratio: 1; transform: translate(-50%, -50%);
  border-radius: 50%; box-shadow: 0 0 0 3px rgba(255, 61, 127, .8); opacity: 0; pointer-events: none; }
@media (prefers-reduced-motion: no-preference) { .theme-jamz.has-art .live-pulse { animation: live-pulse 1.6s ease-out infinite; } }
@keyframes live-pulse { 0% { transform: translate(-50%, -50%) scale(.45); opacity: .9; } 100% { transform: translate(-50%, -50%) scale(1); opacity: 0; } }
.has-art .live-load { opacity: .94; }
@media (max-width: 899px) {
  .has-art .live-stage { padding-bottom: 14px; }
  .theme-jamz.has-art .live-pulse { left: 16.75%; top: 28%; width: 12%; }   /* dot at ~134,224 in the 800x800 mobile art */
}
