/*
 * Stormcrow WX — broadcast-intro visual system
 * Style source (primary):
 *   /workspace/stormcrow-review/pack-20260911-1000-v2/frames/intro.png
 *   → copied/compressed to assets/broadcast-intro.webp (+ .png)
 * Secondary HUD vibe:
 *   /workspace/stormcrow-review/pack-20260910-1800/frames/x_intro_wx.png
 *
 * Palette: deep charcoal/indigo/storm purple · neon cyan glow ·
 * purple→magenta title gradient · wide futuristic sans · script handle
 */

:root {
  --bg: #08060f;
  --bg-elev: rgba(18, 14, 32, 0.78);
  --storm: #2a2040;
  --indigo: #1a1430;
  --text: #e8eaef;
  --muted: #9aa3b8;
  --cyan: #00ffff;
  --cyan-soft: #5ef0f0;
  --cyan-dim: rgba(0, 255, 255, 0.55);
  --purple: #6b2d9b;
  --magenta: #c44dff;
  --title-top: #5b2d9e;
  --title-bot: #d946ef;
  --danger-soft: #fca5a5;
  --radius: 12px;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-display: "Orbitron", "Segoe UI", system-ui, sans-serif;
  --font-script: "Great Vibes", "Segoe Script", "Brush Script MT", cursive;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --glow-cyan: 0 0 8px rgba(0, 255, 255, 0.85), 0 0 24px rgba(0, 255, 255, 0.45),
    0 0 48px rgba(0, 255, 255, 0.25);
  --glow-title: 0 0 6px rgba(0, 255, 255, 0.95), 0 0 18px rgba(0, 255, 255, 0.55),
    0 0 40px rgba(0, 255, 255, 0.35), 0 0 72px rgba(110, 40, 180, 0.35);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  color-scheme: dark;
  overflow-x: clip;
  width: 100%;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow-x: clip;
  width: 100%;
  max-width: 100%;
}

img,
svg,
video {
  max-width: 100%;
  height: auto;
}

/* —— Atmosphere (intro frame as hero bg) —— */
.hero-atmosphere {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: -2%;
  background-color: var(--indigo);
  background-image: url("assets/broadcast-intro.webp");
  background-size: cover;
  background-position: center top;
  background-repeat: no-repeat;
  filter: saturate(1.05) contrast(1.05);
  transform: scale(1.02);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      180deg,
      rgba(8, 6, 15, 0.55) 0%,
      rgba(8, 6, 15, 0.72) 35%,
      rgba(8, 6, 15, 0.88) 70%,
      rgba(8, 6, 15, 0.96) 100%
    ),
    radial-gradient(ellipse 80% 50% at 50% 18%, rgba(0, 255, 255, 0.08), transparent 60%),
    radial-gradient(ellipse 70% 55% at 50% 45%, rgba(107, 45, 155, 0.18), transparent 65%);
}

.noise {
  position: absolute;
  inset: 0;
  opacity: 0.07;
  mix-blend-mode: soft-light;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 180px 180px;
}

.site-header,
.page,
.site-footer {
  position: relative;
  z-index: 1;
}

/* —— Header —— */
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
  padding: 1.25rem 1.5rem;
  max-width: 52rem;
  margin: 0 auto;
  width: 100%;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--text);
}

.mark {
  display: block;
  border-radius: 8px;
  box-shadow: 0 0 12px rgba(0, 255, 255, 0.35);
}

.wordmark-text {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.16em;
  font-size: 0.85rem;
  text-transform: uppercase;
}

.wordmark-text em {
  font-style: normal;
  color: var(--cyan);
  text-shadow: var(--glow-cyan);
}

.live-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-family: var(--font-display);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #041018;
  background: var(--cyan);
  border-radius: 999px;
  padding: 0.55rem 0.9rem;
  min-height: 2.5rem;
  box-shadow: var(--glow-cyan);
  white-space: nowrap;
  flex-shrink: 0;
}

a.live-chip:hover,
a.live-chip:focus-visible {
  filter: brightness(1.08);
  outline: 2px solid var(--cyan);
  outline-offset: 2px;
}

/* —— Page layout —— */
.page {
  flex: 1;
  max-width: 42rem;
  margin: 0 auto;
  padding: 1.5rem 1.5rem 3.5rem;
  width: 100%;
  min-width: 0;
}

.hero {
  text-align: center;
  margin-bottom: 2.25rem;
  padding: 1rem 0 0.5rem;
}

.live-label {
  font-family: var(--font-display);
  font-size: clamp(0.68rem, 2.8vw, 0.8rem);
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--cyan);
  text-shadow: var(--glow-cyan);
  margin: 0 0 0.85rem;
  padding-inline: 0.25rem;
  overflow-wrap: anywhere;
}

.brand-title {
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 7.2vw, 2.85rem);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin: 0 auto 0.35rem;
  max-width: 100%;
  overflow-wrap: anywhere;
  word-break: normal;
  hyphens: none;
  background: linear-gradient(180deg, var(--title-top) 0%, var(--magenta) 55%, var(--title-bot) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 0 6px rgba(0, 255, 255, 0.95))
    drop-shadow(0 0 18px rgba(0, 255, 255, 0.55))
    drop-shadow(0 0 36px rgba(0, 255, 255, 0.3));
}

.handle {
  font-family: var(--font-script);
  font-size: clamp(1.6rem, 4.5vw, 2.35rem);
  color: #7c3aed;
  margin: 0 0 1.25rem;
  text-shadow: var(--glow-cyan);
  letter-spacing: 0.02em;
}

.tagline {
  color: var(--muted);
  font-size: clamp(0.95rem, 3.6vw, 1.05rem);
  margin: 0 auto 1.75rem;
  max-width: 34rem;
  padding-inline: 0.15rem;
  overflow-wrap: break-word;
}

.cta-row {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.95rem 1.35rem;
  min-height: 2.75rem;
  width: 100%;
  max-width: 22rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(0.72rem, 3.2vw, 0.85rem);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: var(--radius);
  text-align: center;
  transition: filter 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}

.cta-primary {
  background: var(--cyan);
  color: #041018;
  box-shadow: var(--glow-cyan);
}

.cta:hover,
.cta:focus-visible {
  filter: brightness(1.08);
  outline: 2px solid var(--magenta);
  outline-offset: 3px;
}

.cta-note {
  margin: 0;
  font-size: 0.72rem;
  color: var(--muted);
  font-family: var(--mono);
  max-width: 100%;
  padding-inline: 0.5rem;
  overflow-wrap: anywhere;
  word-break: break-all;
  text-align: center;
}

/* —— Panels —— */
.panel {
  margin-bottom: 1.35rem;
  padding: 1.25rem 1.35rem;
  background: var(--bg-elev);
  border: 1px solid rgba(0, 255, 255, 0.18);
  border-radius: var(--radius);
  backdrop-filter: blur(8px);
  box-shadow: 0 0 24px rgba(0, 255, 255, 0.06), inset 0 0 0 1px rgba(107, 45, 155, 0.15);
  min-width: 0;
  overflow-wrap: break-word;
}

.section-heading {
  margin: 0 0 0.85rem;
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--cyan-soft);
  text-shadow: 0 0 10px rgba(0, 255, 255, 0.4);
}

.bio-text {
  margin: 0 0 0.75rem;
  color: var(--text);
  font-size: 0.98rem;
}

.bio-text:last-child {
  margin-bottom: 0;
}

.bio-text.muted,
.muted {
  color: var(--muted);
  font-size: 0.88rem;
}

.source-list {
  margin: 0 0 0.85rem;
  padding: 0 0 0 1.15rem;
  color: var(--text);
  font-size: 0.95rem;
}

.source-list li {
  margin-bottom: 0.55rem;
  padding-left: 0.2rem;
}

.source-list li::marker {
  color: var(--cyan-dim);
}

.source-list li:last-child {
  margin-bottom: 0.15rem;
}

.source-list strong {
  color: var(--cyan-soft);
  font-weight: 600;
}

.sources .muted,
.realtime .bio-text:last-child,
.ai .bio-text:last-child {
  margin-bottom: 0;
}

.todo-block {
  border-left: 3px solid var(--cyan-dim);
  padding-left: 0.85rem;
}

.todo-label,
.todo-inline {
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--cyan);
  opacity: 0.85;
}

.todo-label {
  margin: 0 0 0.5rem;
}

.todo-inline {
  display: inline-block;
  margin-left: 0.35rem;
  padding: 0.1rem 0.4rem;
  border: 1px dashed rgba(0, 255, 255, 0.35);
  border-radius: 4px;
}

/* —— Socials —— */
.social-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.social-link {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.5rem 0.85rem;
  padding: 0.85rem 0.95rem;
  min-height: 2.75rem;
  text-decoration: none;
  color: inherit;
  border-radius: 8px;
  border: 1px solid rgba(0, 255, 255, 0.12);
  background: rgba(8, 6, 15, 0.45);
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.social-link:hover,
.social-link:focus-visible {
  border-color: rgba(0, 255, 255, 0.45);
  box-shadow: 0 0 16px rgba(0, 255, 255, 0.2);
  background: rgba(0, 255, 255, 0.06);
  outline: none;
}

.social-link--pending {
  opacity: 0.65;
  cursor: not-allowed;
  pointer-events: none;
}

.social-platform {
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--cyan);
  min-width: 5.5rem;
}

.social-handle {
  color: var(--text);
  font-size: 0.95rem;
}

/* —— Latest Short —— */
.latest-card {
  display: flex;
  gap: 1rem;
  text-decoration: none;
  color: inherit;
  align-items: center;
}

.latest-card img {
  border-radius: 8px;
  object-fit: cover;
  background: var(--storm);
  flex-shrink: 0;
  box-shadow: 0 0 12px rgba(0, 255, 255, 0.15);
}

.latest-title {
  margin: 0 0 0.25rem;
  font-weight: 600;
}

.latest-meta {
  margin: 0;
  font-size: 0.8rem;
  color: var(--muted);
  font-family: var(--mono);
}

/* —— Disclaimer —— */
.disclaimer {
  font-size: 0.85rem;
  color: var(--muted);
  border-color: rgba(201, 70, 239, 0.35);
  border-left: 3px solid var(--magenta);
}

.disclaimer strong {
  color: var(--text);
}

/* —— Footer —— */
.site-footer {
  padding: 1.5rem;
  text-align: center;
  border-top: 1px solid rgba(0, 255, 255, 0.12);
  color: var(--muted);
  font-size: 0.8rem;
  background: rgba(8, 6, 15, 0.65);
}

.site-footer p {
  margin: 0.25rem 0;
}

.footer-alt {
  opacity: 0.7;
  font-family: var(--mono);
  font-size: 0.7rem;
}

/* mobile rules consolidated below */


/* Prefer PNG if WebP somehow fails (rare); browsers that support webp use it from .hero-bg */
@supports not (background-image: url("assets/broadcast-intro.webp")) {
  .hero-bg {
    background-image: url("assets/broadcast-intro.png");
  }
}



/* —— Lazy live stream slot —— */
.stream-slot {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 10px;
  overflow: hidden;
  background: rgba(8, 6, 15, 0.85);
  border: 1px solid rgba(0, 255, 255, 0.22);
  box-shadow: 0 0 20px rgba(0, 255, 255, 0.08);
  min-height: 12rem;
}

.stream-poster {
  position: absolute;
  inset: 0;
  background-image: url("assets/broadcast-intro.webp");
  background-size: cover;
  background-position: center 30%;
  filter: saturate(1.05) brightness(0.55);
  transform: scale(1.04);
}

.stream-poster::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(8, 6, 15, 0.35), rgba(8, 6, 15, 0.78)),
    radial-gradient(ellipse 70% 55% at 50% 40%, rgba(0, 255, 255, 0.12), transparent 65%);
}

.stream-play {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  margin: 0;
  padding: 1rem;
  border: 0;
  background: transparent;
  color: var(--text);
  cursor: pointer;
  font: inherit;
  min-height: 2.75rem;
}

.stream-play:hover .stream-play-icon,
.stream-play:focus-visible .stream-play-icon {
  transform: scale(1.06);
  box-shadow: var(--glow-cyan);
}

.stream-play:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: -4px;
}

.stream-play-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 999px;
  background: var(--cyan);
  color: #041018;
  font-size: 1.15rem;
  line-height: 1;
  padding-left: 0.15rem;
  box-shadow: var(--glow-cyan);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.stream-play-label {
  font-family: var(--font-display);
  font-size: clamp(0.68rem, 2.8vw, 0.78rem);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-shadow: 0 0 12px rgba(0, 0, 0, 0.8);
  text-align: center;
}

.stream-hint {
  position: absolute;
  left: 0.75rem;
  right: 0.75rem;
  bottom: 0.65rem;
  z-index: 2;
  margin: 0;
  font-size: 0.72rem;
  text-align: center;
  pointer-events: auto;
}

.stream-hint a {
  color: var(--cyan-soft);
}

.stream-slot.is-loaded {
  background: #000;
}

.stream-frame {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

@media (max-width: 480px) {
  .stream-slot {
    min-height: 11rem;
    border-radius: 8px;
  }

  .stream-play-icon {
    width: 3.15rem;
    height: 3.15rem;
  }

  .stream-hint {
    font-size: 0.68rem;
    bottom: 0.5rem;
  }
}

/* SEO section anchors / in-page nav (added with SEO pass) */
.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.65rem;
  align-items: center;
  font-size: 0.82rem;
  min-width: 0;
}
.site-nav a {
  color: var(--muted);
  text-decoration: none;
  padding: 0.45rem 0.55rem;
  min-height: 2.5rem;
  display: inline-flex;
  align-items: center;
  border-radius: 6px;
}
.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--cyan);
  outline: 1px solid rgba(0, 255, 255, 0.35);
  outline-offset: 1px;
}
#stream,
#bio,
#sources,
#realtime,
#ai,
#links,
#latest {
  scroll-margin-top: 1.25rem;
}

/* —— Responsive: tablet / small laptop —— */
@media (max-width: 720px) {
  .site-header {
    padding: 1rem 1rem 0.85rem;
    row-gap: 0.65rem;
  }

  .wordmark {
    order: 1;
    min-width: 0;
    flex: 1 1 auto;
  }

  .wordmark-text {
    font-size: 0.72rem;
    letter-spacing: 0.1em;
  }

  .live-chip {
    order: 2;
    font-size: 0.62rem;
    letter-spacing: 0.1em;
    padding: 0.5rem 0.8rem;
  }

  .site-nav {
    order: 3;
    flex-basis: 100%;
    width: 100%;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.35rem;
    padding-top: 0.55rem;
    border-top: 1px solid rgba(0, 255, 255, 0.1);
  }

  .site-nav a {
    font-size: 0.78rem;
    padding: 0.55rem 0.35rem;
    min-height: 2.6rem;
    justify-content: center;
    text-align: center;
    background: rgba(8, 6, 15, 0.35);
    border: 1px solid rgba(0, 255, 255, 0.1);
  }

  .page {
    padding: 1rem 1rem 2.75rem;
  }

  .hero {
    margin-bottom: 1.65rem;
    padding: 0.5rem 0 0.25rem;
  }

  .hero-bg {
    background-position: center 28%;
    background-size: cover;
    transform: scale(1.12);
  }

  .hero-overlay {
    background:
      linear-gradient(
        180deg,
        rgba(8, 6, 15, 0.72) 0%,
        rgba(8, 6, 15, 0.84) 32%,
        rgba(8, 6, 15, 0.94) 68%,
        rgba(8, 6, 15, 0.98) 100%
      ),
      radial-gradient(ellipse 80% 50% at 50% 18%, rgba(0, 255, 255, 0.06), transparent 60%),
      radial-gradient(ellipse 70% 55% at 50% 45%, rgba(107, 45, 155, 0.16), transparent 65%);
  }

  .noise {
    opacity: 0.05;
  }

  .handle {
    font-size: clamp(1.35rem, 8vw, 2rem);
    margin-bottom: 1rem;
  }

  .cta-row {
    width: 100%;
    gap: 0.65rem;
    padding-inline: 0.15rem;
  }

  .cta {
    max-width: 100%;
  }

  .panel {
    padding: 1.1rem 1rem;
    margin-bottom: 1.1rem;
  }

  .source-list {
    padding-left: 1rem;
    font-size: 0.92rem;
  }

  .bio-text {
    font-size: 0.95rem;
  }
}

/* —— Responsive: phones —— */
@media (max-width: 480px) {
  .site-header {
    padding: 0.85rem 1rem 0.7rem;
  }

  .mark {
    width: 34px;
    height: 34px;
  }

  .wordmark {
    gap: 0.55rem;
  }

  .wordmark-text {
    font-size: 0.68rem;
    letter-spacing: 0.08em;
  }

  .live-chip {
    font-size: 0.6rem;
    letter-spacing: 0.08em;
    padding: 0.5rem 0.7rem;
    min-height: 2.5rem;
  }

  .site-nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.4rem;
  }

  .site-nav a {
    min-height: 2.75rem;
    font-size: 0.8rem;
    padding: 0.55rem 0.5rem;
  }

  .live-label {
    letter-spacing: 0.14em;
  }

  .brand-title {
    font-size: clamp(1.2rem, 8.5vw, 1.85rem);
    letter-spacing: 0.03em;
    line-height: 1.15;
  }

  .page {
    padding: 0.9rem 1.1rem 2.5rem;
  }

  .panel {
    padding: 1.2rem 1.15rem;
    border-radius: 10px;
  }

  .section-heading {
    font-size: 0.72rem;
    letter-spacing: 0.12em;
  }

  .latest-card {
    flex-direction: column;
    align-items: flex-start;
  }

  .latest-card img {
    width: 100%;
    height: auto;
  }

  .social-link {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.2rem;
  }

  .social-platform {
    min-width: 0;
  }

  .site-footer {
    padding: 1.25rem 0.85rem;
    font-size: 0.75rem;
  }

  .footer-alt {
    overflow-wrap: anywhere;
  }

  .disclaimer {
    font-size: 0.8rem;
  }
}

/* —— Very narrow (≤360) —— */
@media (max-width: 360px) {
  .wordmark-text {
    /* keep brand; tighten tracking so header doesn't overflow */
    letter-spacing: 0.04em;
    font-size: 0.62rem;
  }

  .site-nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.35rem;
  }

  .site-nav a {
    font-size: 0.75rem;
    padding: 0.5rem 0.4rem;
    min-height: 2.6rem;
  }

  .page {
    padding: 0.85rem 0.95rem 2.25rem;
  }

  .brand-title {
    font-size: 1.15rem;
  }
}

/* —— Clip / Short pages (SEO video) —— */
.clip-page {
  padding-top: 1.25rem;
}

.clip-player {
  position: relative;
  width: 100%;
  margin: 0.75rem 0 1.25rem;
  border-radius: var(--radius);
  overflow: hidden;
  background: #000;
  border: 1px solid rgba(0, 255, 255, 0.22);
  box-shadow: 0 0 24px rgba(0, 255, 255, 0.12);
}

.clip-player-land {
  aspect-ratio: 16 / 9;
}

.clip-player-short {
  aspect-ratio: 9 / 16;
  max-width: 360px;
  margin-left: auto;
  margin-right: auto;
}

.clip-player video,
.clip-player iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
  background: #000;
}

.clip-index {
  list-style: none;
  margin: 0.75rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.55rem;
}

.clip-index li {
  margin: 0;
  padding: 0.55rem 0.75rem;
  background: rgba(18, 14, 32, 0.65);
  border: 1px solid rgba(0, 255, 255, 0.14);
  border-radius: 10px;
}

.clip-index a {
  color: var(--cyan-soft);
  text-decoration: none;
  font-weight: 600;
}

.clip-index a:hover,
.clip-index a:focus-visible {
  text-decoration: underline;
  color: var(--cyan);
}

.latest-more {
  margin-top: 0.9rem;
}

@media (max-width: 720px) {
  .clip-player-short {
    max-width: min(100%, 320px);
  }
}
