/* ==========================================================================
   508 Ministry · "Beyond Belief" Broadcast Poster Card + Blue Radio Player
   Self-hosted Cormorant + Figtree fonts only (SIL OFL 1.1). Zero external CDN.
   RULE: Never hide a media element (<video>/<audio>) with display:none when
   you intend to call play() on it. Keep the media rendered underneath the
   poster overlay and keep the shell properly sized so mobile browsers never
   reject play() or leave the player stuck at 00:00 / 00:00.
   ========================================================================== */

.bb-stage {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 310px;
  border-radius: 18px;
  overflow: hidden;
  background: #061429;
  container-type: inline-size;
  container-name: bbcard;
  isolation: isolate;
}

/* Native video ALWAYS stays rendered (display: block, never display: none).
   While the poster overlay is up, video sits underneath at z-index 1 so it
   stays laid out and loadable on mobile without adding extra vertical space. */
.bb-stage > video {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  background: #040c1a;
}

.bb-stage:not(.bb-playing) > video {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  background: #040c1a;
}

.bb-stage.bb-playing {
  aspect-ratio: 16 / 9;
  height: auto;
  min-height: 180px;
  align-self: center;
  overflow: hidden;
}

.bb-stage.bb-playing > video {
  position: relative;
  inset: auto;
  z-index: 1;
  width: 100%;
  height: 100%;
  display: block;
}

/* Re-open cover pill (only visible when video is paused so playback is 100% unobstructed) */
.bb-cover-return {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 6;
  display: none;
  align-items: center;
  gap: 6px;
  min-height: 36px;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid rgba(240, 205, 120, 0.55);
  background: rgba(7, 22, 46, 0.88);
  color: #f9e7b2;
  font: 700 12px/1 'Figtree', system-ui, sans-serif;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  backdrop-filter: blur(6px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.45);
  transition: background 0.18s ease, transform 0.18s ease;
}
.bb-cover-return:hover {
  background: rgba(14, 42, 82, 0.96);
  transform: translateY(-1px);
}
.bb-stage.bb-playing.bb-paused .bb-cover-return {
  display: inline-flex;
}

/* Visible fallback banner when playback is blocked or fails to load */
.bb-play-error {
  position: absolute;
  left: 10px;
  right: 10px;
  top: 10px;
  z-index: 7;
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 12px;
  border: 1px solid rgba(240, 205, 120, 0.78);
  background: rgba(7, 22, 46, 0.95);
  color: #fffdf7;
  font: 600 13px/1.35 'Figtree', system-ui, sans-serif;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.55);
}
.bb-play-error.is-visible {
  display: flex;
}
.bb-play-error-msg {
  flex: 1 1 auto;
  min-width: 0;
}
.bb-play-error-btn {
  flex: 0 0 auto;
  min-height: 36px;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid #f0d07a;
  background: #175498;
  color: #ffffff;
  font: 700 12px/1 'Figtree', system-ui, sans-serif;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  touch-action: manipulation;
}
.bb-play-error-btn:hover {
  background: #1f68b8;
}

/* ==========================================================================
   BEYOND BELIEF BROADCAST POSTER OVERLAY (Matches Signature Navy + Gold + CD)
   ========================================================================== */
.bb-poster {
  --bb-accent: #58c4ff;
  --bb-accent-glow: rgba(56, 189, 248, 0.42);
  --bb-ribbon-bg: linear-gradient(90deg, rgba(11, 27, 58, 0.92), rgba(21, 52, 102, 0.92));
  --bb-ribbon-border: rgba(240, 205, 120, 0.65);
  --bb-ribbon-text: #f9e39e;
  --bb-rad: rgba(30, 98, 178, 0.34);

  position: absolute;
  inset: 0;
  z-index: 4;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: clamp(10px, 2.2cqi, 18px) clamp(12px, 2.5cqi, 22px);
  background:
    radial-gradient(65% 60% at 72% 48%, var(--bb-rad) 0%, transparent 72%),
    radial-gradient(48% 55% at 22% 55%, rgba(212, 168, 75, 0.12) 0%, transparent 70%),
    linear-gradient(155deg, #071934 0%, #0d2549 52%, #06152c 100%);
  color: #f8f5ec;
  text-align: left;
  cursor: pointer;
  box-sizing: border-box;
  border-radius: inherit;
  border: 1.5px solid rgba(212, 168, 75, 0.62);
  box-shadow:
    inset 0 0 0 1px rgba(244, 213, 134, 0.16),
    0 18px 42px -18px rgba(0, 0, 0, 0.65);
  transition: opacity 0.26s ease, transform 0.26s ease, border-color 0.2s ease;
  user-select: none;
  overflow: hidden;
  touch-action: manipulation;
}

/* Full-card real <button type="button"> launch hit-target beneath visual content
   so tapping anywhere on the poster activates a real button; .bb-play-btn and
   .bb-ctrl-pills sit above it at z-index 3 with pointer-events: auto. */
.bb-poster-launch {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: inherit;
  background: transparent !important;
  box-shadow: none !important;
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  touch-action: manipulation;
}
.bb-poster-launch:focus-visible {
  outline: 2px solid #f6dc8a;
  outline-offset: -4px;
}

/* Inner fine gold hairline frame (signature detail from reference artwork) */
.bb-poster::before {
  content: '';
  position: absolute;
  inset: 7px;
  border-radius: 12px;
  border: 1px solid rgba(226, 190, 99, 0.32);
  pointer-events: none;
  z-index: 0;
}

.bb-poster:hover {
  border-color: rgba(246, 217, 136, 0.9);
}
.bb-poster:hover .bb-play-btn {
  transform: scale(1.06);
  box-shadow:
    0 0 0 4px rgba(88, 196, 255, 0.26),
    0 0 26px rgba(56, 189, 248, 0.68),
    inset 0 1px 1px rgba(255, 255, 255, 0.38);
}

/* Dismiss completely when real walkthrough video is playing */
.bb-stage.bb-playing .bb-poster {
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
  display: none;
}

/* Episode Color Themes (subtle tasteful differentiation per conversation) */
.bb-poster[data-bb-theme="sanctuary-gold"] {
  --bb-rad: rgba(28, 96, 178, 0.36);
  --bb-accent: #5bc6ff;
}
.bb-poster[data-bb-theme="heritage-sapphire"] {
  --bb-rad: rgba(34, 114, 206, 0.38);
  --bb-accent: #67d0ff;
  --bb-ribbon-bg: linear-gradient(90deg, rgba(9, 36, 78, 0.94), rgba(22, 74, 146, 0.94));
}
.bb-poster[data-bb-theme="clara-pearl"] {
  --bb-rad: rgba(56, 130, 214, 0.38);
  --bb-accent: #7dd3fc;
  --bb-ribbon-bg: linear-gradient(90deg, rgba(16, 42, 86, 0.94), rgba(40, 86, 148, 0.94));
}
.bb-poster[data-bb-theme="vault-emerald"] {
  --bb-rad: rgba(16, 118, 128, 0.34);
  --bb-accent: #5eead4;
  --bb-accent-glow: rgba(94, 234, 212, 0.38);
  --bb-ribbon-bg: linear-gradient(90deg, rgba(8, 44, 56, 0.94), rgba(14, 88, 92, 0.94));
}
.bb-poster[data-bb-theme="grants-amber"] {
  --bb-rad: rgba(34, 102, 176, 0.34);
  --bb-accent: #68cbff;
  --bb-ribbon-bg: linear-gradient(90deg, rgba(56, 36, 10, 0.94), rgba(114, 78, 18, 0.94));
}
.bb-poster[data-bb-theme="profile-cobalt"] {
  --bb-rad: rgba(38, 108, 198, 0.38);
  --bb-accent: #60c8ff;
  --bb-ribbon-bg: linear-gradient(90deg, rgba(12, 34, 76, 0.94), rgba(28, 70, 142, 0.94));
}
.bb-poster[data-bb-theme="stroll-teal"] {
  --bb-rad: rgba(20, 112, 152, 0.36);
  --bb-accent: #67d5ff;
  --bb-ribbon-bg: linear-gradient(90deg, rgba(9, 44, 68, 0.94), rgba(18, 86, 122, 0.94));
}

/* ==========================================================================
   TOP BROADCAST HEADER STRIP
   ========================================================================== */
.bb-head {
  position: relative;
  z-index: 2;
  pointer-events: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding-bottom: clamp(6px, 1.4cqi, 11px);
  margin-bottom: clamp(6px, 1.4cqi, 12px);
  border-bottom: 1px solid rgba(226, 190, 99, 0.34);
}
.bb-brand {
  display: flex;
  align-items: center;
  gap: clamp(6px, 1.4cqi, 10px);
  min-width: 0;
}
.bb-medallion {
  width: clamp(24px, 5.2cqi, 40px);
  height: clamp(24px, 5.2cqi, 40px);
  border-radius: 50%;
  object-fit: cover;
  flex: 0 0 auto;
  filter: drop-shadow(0 3px 8px rgba(0, 0, 0, 0.5));
}
.bb-brand-text {
  font: 700 clamp(8.5px, 1.8cqi, 13px)/1.1 'Figtree', system-ui, sans-serif;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #f3d78a;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.bb-series-pill {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: clamp(4px, 0.85cqi, 7px) clamp(8px, 1.7cqi, 15px);
  border-radius: 999px;
  background: linear-gradient(180deg, #f8e196 0%, #d8ad4d 100%);
  color: #091a36;
  font: 800 clamp(7.5px, 1.45cqi, 11px)/1 'Figtree', system-ui, sans-serif;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.55);
  white-space: nowrap;
}
.bb-series-pill svg {
  width: clamp(10px, 1.9cqi, 14px);
  height: clamp(10px, 1.9cqi, 14px);
  flex: 0 0 auto;
}

/* ==========================================================================
   MAIN TWO-COLUMN STAGE (CD JEWEL CASE LEFT | EPISODE & BLUE RADIO RIGHT)
   ========================================================================== */
.bb-main {
  position: relative;
  z-index: 2;
  pointer-events: none;
  flex: 1 1 auto;
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: clamp(12px, 2.8cqi, 28px);
  align-items: center;
  min-height: 0;
}

/* Left: Clear Acrylic CD Jewel Case */
.bb-cd-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 0;
}
.bb-cd-frame {
  position: relative;
  width: 100%;
  max-width: 495px;
  aspect-ratio: 448 / 424;
  border-radius: 10px;
  box-shadow:
    0 18px 34px -8px rgba(0, 0, 0, 0.72),
    0 0 28px -10px var(--bb-accent-glow);
  transition: transform 0.32s ease, box-shadow 0.32s ease;
}
.bb-poster:hover .bb-cd-frame {
  transform: translateY(-2px) scale(1.015);
  box-shadow:
    0 22px 40px -8px rgba(0, 0, 0, 0.78),
    0 0 34px -6px var(--bb-accent-glow);
}
.bb-cd-img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  border-radius: 10px;
}
.bb-cd-ribbon {
  position: absolute;
  left: 9.5%;
  right: 4%;
  bottom: 5.2%;
  padding: clamp(3px, 0.75cqi, 6px) clamp(7px, 1.4cqi, 12px);
  border-radius: 999px;
  background: var(--bb-ribbon-bg);
  border: 1px solid var(--bb-ribbon-border);
  color: var(--bb-ribbon-text);
  font: 800 clamp(7px, 1.35cqi, 10.5px)/1.1 'Figtree', system-ui, sans-serif;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  backdrop-filter: blur(4px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.45);
}

/* Right: Broadcast Info + Sapphire Blue Play + Hosts + Waveform + Topic Pills */
.bb-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: clamp(5px, 1.25cqi, 11px);
  min-width: 0;
}

.bb-kicker {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font: 800 clamp(8px, 1.6cqi, 12px)/1.1 'Figtree', system-ui, sans-serif;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: #e9f2ff;
}
.bb-live-dot {
  width: clamp(6px, 1.2cqi, 9px);
  height: clamp(6px, 1.2cqi, 9px);
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 10px rgba(34, 197, 94, 0.85);
  flex: 0 0 auto;
  animation: bbDotPulse 2.2s ease-in-out infinite;
}
@keyframes bbDotPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7), 0 0 8px rgba(34, 197, 94, 0.85); }
  60% { box-shadow: 0 0 0 6px rgba(34, 197, 94, 0), 0 0 12px rgba(34, 197, 94, 0.95); }
}

.bb-title {
  margin: 0;
  font-family: 'Cormorant', Georgia, serif;
  font-size: clamp(19px, 4.35cqi, 42px);
  font-weight: 700;
  line-height: 1.04;
  color: #fffdf7;
  letter-spacing: -0.01em;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.35);
}

.bb-sub {
  margin: 0;
  font-family: 'Cormorant', Georgia, serif;
  font-style: italic;
  font-weight: 600;
  font-size: clamp(12px, 2.25cqi, 21px);
  line-height: 1.18;
  color: #e7d8b4;
}

/* Sapphire Blue Play Button + Circular Clara & Marcus Portraits */
.bb-hosts-row {
  display: flex;
  align-items: center;
  gap: clamp(8px, 1.7cqi, 14px);
  margin-top: 2px;
}

.bb-play-btn {
  position: relative;
  z-index: 3;
  pointer-events: auto;
  flex: 0 0 auto;
  width: clamp(44px, 7.6cqi, 64px);
  height: clamp(44px, 7.6cqi, 64px);
  min-width: 44px;
  min-height: 44px;
  border-radius: 50%;
  border: 2px solid #f0d07a;
  background: radial-gradient(circle at 36% 28%, #2176c7 0%, #0d4682 58%, #072244 100%);
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
  appearance: none;
  -webkit-appearance: none;
  touch-action: manipulation;
  box-shadow:
    0 0 0 2px rgba(88, 196, 255, 0.22),
    0 0 20px rgba(56, 189, 248, 0.45),
    inset 0 1px 1px rgba(255, 255, 255, 0.32);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.bb-play-btn:focus-visible {
  outline: 2px solid #f6dc8a;
  outline-offset: 3px;
}
.bb-play-btn svg {
  width: 42%;
  height: 42%;
  margin-left: 3px;
  fill: currentColor;
  pointer-events: none;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.4));
}
.bb-poster.is-audio-playing .bb-play-btn svg {
  margin-left: 0;
}

.bb-avatars {
  display: flex;
  align-items: center;
  gap: clamp(5px, 1cqi, 9px);
  flex: 0 0 auto;
}
.bb-av {
  width: clamp(34px, 6.7cqi, 56px);
  height: clamp(34px, 6.7cqi, 56px);
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid rgba(235, 242, 252, 0.88);
  background: #0c2344;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.45);
  flex: 0 0 auto;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}
.bb-av img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
  display: block;
}
.bb-poster.is-audio-playing .bb-av.is-speaking {
  border-color: #f4d274;
  box-shadow: 0 0 0 3px rgba(88, 196, 255, 0.35), 0 0 16px rgba(244, 210, 116, 0.55);
}

.bb-hosted {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.bb-hosted-lbl {
  font: 600 clamp(9px, 1.55cqi, 13px)/1.1 'Figtree', system-ui, sans-serif;
  color: #cbd9ec;
}
.bb-hosted-names {
  font: 700 clamp(10.5px, 1.9cqi, 16px)/1.2 'Figtree', system-ui, sans-serif;
  color: #f4d67c;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.bb-hosted-names u {
  text-decoration: underline;
  text-decoration-color: rgba(244, 214, 124, 0.65);
  text-underline-offset: 3px;
}

/* ==========================================================================
   GLOWING SAPPHIRE-BLUE AUDIO WAVEFORM
   ========================================================================== */
.bb-wave-box {
  position: relative;
  width: 100%;
  height: clamp(24px, 5.2cqi, 44px);
  display: flex;
  align-items: center;
  pointer-events: none;
}
.bb-wave-cv {
  width: 100%;
  height: 100%;
  display: block;
  pointer-events: none;
}

/* ==========================================================================
   BROADCAST TIMECODE + BLUE RADIO CONTROL STRIP
   ========================================================================== */
.bb-ctrl-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding-bottom: clamp(5px, 1.1cqi, 10px);
  border-bottom: 1px solid rgba(226, 190, 99, 0.28);
}
.bb-time {
  font: 700 clamp(10px, 1.9cqi, 15px)/1 'Figtree', system-ui, sans-serif;
  color: #e9f2ff;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
}
.bb-ctrl-pills {
  position: relative;
  z-index: 3;
  pointer-events: auto;
  display: flex;
  align-items: center;
  gap: clamp(4px, 0.9cqi, 8px);
}
.bb-ctrl-pill {
  padding: clamp(3px, 0.65cqi, 6px) clamp(7px, 1.5cqi, 13px);
  border-radius: 999px;
  border: 1px solid rgba(232, 197, 112, 0.62);
  background: rgba(8, 26, 54, 0.85);
  color: #f5efe0;
  font: 700 clamp(9px, 1.55cqi, 13px)/1 'Figtree', system-ui, sans-serif;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  touch-action: manipulation;
  transition: background 0.16s ease, border-color 0.16s ease;
}
.bb-ctrl-pill:hover {
  background: rgba(21, 68, 128, 0.92);
  border-color: #f9df8e;
}

/* ==========================================================================
   EPISODE TOPIC PILLS (Warm Ivory + Gold Dot + Deep Navy Text)
   ========================================================================== */
.bb-pills {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(4px, 0.95cqi, 8px);
}
.bb-pill {
  display: inline-flex;
  align-items: center;
  gap: clamp(4px, 0.85cqi, 7px);
  padding: clamp(3.5px, 0.75cqi, 7px) clamp(8px, 1.65cqi, 14px);
  border-radius: 999px;
  background: linear-gradient(180deg, #fcf6e6 0%, #f1e4c4 100%);
  border: 1px solid rgba(212, 168, 75, 0.52);
  color: #0c1f3f;
  font: 700 clamp(8.5px, 1.55cqi, 13px)/1.15 'Figtree', system-ui, sans-serif;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.26);
  white-space: nowrap;
}
.bb-pill-dot {
  width: clamp(5px, 0.9cqi, 7px);
  height: clamp(5px, 0.9cqi, 7px);
  border-radius: 50%;
  background: #c8962e;
  flex: 0 0 auto;
}

/* ==========================================================================
   CONTAINER QUERY ADAPTATIONS (Compact Cards & Mobile <= 440px)
   ========================================================================== */
@container bbcard (max-width: 610px) {
  .bb-poster {
    padding: 10px 13px 11px;
  }
  .bb-head {
    padding-bottom: 6px;
    margin-bottom: 6px;
  }
  .bb-brand-text {
    letter-spacing: 0.08em;
  }
  .bb-info {
    gap: 5px;
  }
  .bb-title {
    font-size: clamp(18px, 4.1cqi, 26px);
  }
  .bb-sub {
    font-size: clamp(11.5px, 2.2cqi, 15px);
  }
  .bb-wave-box {
    height: 24px;
  }
  .bb-ctrl-row {
    padding-bottom: 5px;
  }
  .bb-pills .bb-pill:nth-child(n + 5) {
    display: none;
  }
}

@container bbcard (max-width: 440px) {
  .bb-poster {
    position: relative !important;
    inset: auto !important;
    padding: 14px 14px 15px;
    gap: 8px;
    justify-content: flex-start;
  }
  .bb-poster::before {
    inset: 6px;
  }
  .bb-series-pill {
    display: none;
  }
  .bb-main {
    grid-template-columns: 1fr;
    gap: 11px;
    flex: 0 0 auto;
  }
  .bb-cd-col {
    flex-direction: row;
    justify-content: center;
  }
  .bb-cd-frame {
    max-width: 196px;
    margin: 0 auto;
  }
  .bb-info {
    gap: 8px;
  }
  .bb-title {
    font-size: 24px;
    line-height: 1.08;
  }
  .bb-sub {
    font-size: 15.5px;
  }
  .bb-play-btn {
    width: 48px;
    height: 48px;
    min-width: 48px;
    min-height: 48px;
  }
  .bb-av {
    width: 40px;
    height: 40px;
  }
  .bb-hosted-lbl {
    font-size: 11px;
  }
  .bb-hosted-names {
    font-size: 13px;
  }
  .bb-wave-box {
    height: 28px;
  }
  .bb-time {
    font-size: 12px;
  }
  .bb-ctrl-pill {
    font-size: 11px;
    padding: 4px 9px;
  }
  .bb-pills {
    gap: 6px;
  }
  .bb-pills .bb-pill:nth-child(n + 5) {
    display: inline-flex;
  }
  .bb-pill {
    font-size: 11px;
    padding: 4.5px 9.5px;
  }
  .bb-foot {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    margin-top: 8px;
    padding-top: 9px;
  }
}

/* Optional Hero Studio Footer Strip (fills tall hero containers cleanly with zero dead space) */
.bb-foot {
  position: relative;
  z-index: 2;
  pointer-events: none;
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid rgba(226, 190, 99, 0.28);
  font: 600 12px/1.2 'Figtree', system-ui, sans-serif;
  color: #cbd9ec;
}
.bb-foot-left {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
}
.bb-foot-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #58c4ff;
  box-shadow: 0 0 8px rgba(88, 196, 255, 0.85);
  flex: 0 0 auto;
}
.bb-foot-cta {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 11px;
  border-radius: 999px;
  background: rgba(33, 118, 199, 0.28);
  border: 1px solid rgba(103, 208, 255, 0.55);
  color: #dff4ff;
  font: 800 10.5px/1 'Figtree', system-ui, sans-serif;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* ==========================================================================
   PAGE-SPECIFIC INTEGRATION FIXES (ZERO DEAD NAVY SPACE ABOVE/BELOW!)
   ========================================================================== */

/* 1. Homepage Questionnaire Hero & 508 vs 501 (.cm-vid-card) */
.cm-vid-card.cm-vid-has-bb {
  max-width: 1120px !important;
  grid-template-columns: minmax(0, 1.56fr) minmax(0, 1fr) !important;
  align-items: stretch !important;
}
.cm-vid-card.cm-vid-has-bb .cm-vid-stage {
  aspect-ratio: auto !important;
  height: 100%;
  min-height: 410px;
  display: flex;
  flex-direction: column;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  overflow: visible !important;
}
.cm-vid-card.cm-vid-has-bb .bb-poster {
  padding: 18px 20px 16px;
}
.cm-vid-card.cm-vid-has-bb .bb-foot {
  display: flex;
}
.cm-vid-card.cm-vid-has-bb .cm-vid-stage.is-playing,
.cm-vid-card.cm-vid-has-bb .bb-stage.bb-playing {
  aspect-ratio: 16 / 9 !important;
  background: #040c1a !important;
  border-radius: 16px;
  overflow: hidden !important;
}
@media (max-width: 960px) {
  .cm-vid-card.cm-vid-has-bb {
    grid-template-columns: 1fr !important;
  }
  .cm-vid-card.cm-vid-has-bb .cm-vid-stage {
    min-height: 350px;
  }
}

/* 2. Outreach-Agent #hiw-video-grid (.hiw-stage) */
.hiw-stage.hiw-has-bb {
  aspect-ratio: 16 / 10.3 !important;
  background: #061429 !important;
}
.hiw-stage.hiw-has-bb.is-playing {
  aspect-ratio: 16 / 9 !important;
}

/* 3. Grants Briefing (.gr-bm-stage) */
.gr-bm-stage.gr-has-bb {
  aspect-ratio: 16 / 10.3 !important;
  background: #061429 !important;
}
.gr-bm-stage.gr-has-bb.is-playing {
  aspect-ratio: 16 / 9 !important;
}

/* 4. Companion App (.cmv2-player-shell) */
.cmv2-grid:has(.cmv2-has-bb) {
  grid-template-columns: minmax(0, 1.38fr) minmax(0, 1fr) !important;
  align-items: stretch !important;
}
.cmv2-grid:has(.cmv2-has-bb) > * {
  min-width: 0 !important;
}
.cmv2-player-shell.cmv2-has-bb {
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  height: 100%;
  min-height: 410px;
  background: transparent !important;
  overflow: hidden !important;
  border: 0 !important;
  box-shadow: none !important;
}
.cmv2-player-shell.cmv2-has-bb.is-playing {
  min-height: 180px;
}
.cmv2-player-shell.cmv2-has-bb .bb-foot {
  display: flex;
}
@media (max-width: 960px) {
  .cmv2-grid:has(.cmv2-has-bb) {
    grid-template-columns: 1fr !important;
  }
}

/* 5. Clara Landing Page (.cl-video-frame) */
.cl-video-frame.cl-has-bb {
  aspect-ratio: 16 / 10.3 !important;
  background: #061429 !important;
}
.cl-video-frame.cl-has-bb.is-playing {
  aspect-ratio: 16 / 9 !important;
}

/* 6. Outreach-Agent Base 508 Profile Guide (.b508-v4-player-wrap) */
.b508-v4-player-wrap .bb-stage {
  aspect-ratio: 16 / 10.3;
  height: auto;
}
.b508-v4-player-wrap .bb-stage.bb-playing {
  aspect-ratio: 16 / 9;
}

/* ==========================================================================
   MOBILE <= 520px (Placed last so page integration blocks cannot override it)
   RULE: Never hide <video> with display:none and never collapse the shell.
   Keep <video> rendered underneath the poster (position:absolute; inset:0;
   display:block) while letting each shell fit the stacked mobile poster
   without clipping, then lock to 16:9 once .is-playing / .bb-playing is set.
   ========================================================================== */
@media (max-width: 520px) {
  .bb-stage:not(.bb-playing) {
    height: auto !important;
    min-height: 220px !important;
    aspect-ratio: auto !important;
  }
  .bb-stage:not(.bb-playing) > video {
    position: absolute !important;
    inset: 0 !important;
    z-index: 1 !important;
    width: 100% !important;
    height: 100% !important;
    display: block !important;
  }
  .cm-vid-card.cm-vid-has-bb .cm-vid-stage:not(.is-playing),
  .hiw-stage.hiw-has-bb:not(.is-playing),
  .gr-bm-stage.gr-has-bb:not(.is-playing),
  .cmv2-player-shell.cmv2-has-bb:not(.is-playing),
  .cl-video-frame.cl-has-bb:not(.is-playing),
  .b508-v4-player-wrap:not(.is-playing) {
    display: block !important;
    aspect-ratio: auto !important;
    height: auto !important;
    min-height: 220px !important;
    overflow: hidden !important;
  }
  .cm-vid-card.cm-vid-has-bb .cm-vid-stage.is-playing,
  .hiw-stage.hiw-has-bb.is-playing,
  .gr-bm-stage.gr-has-bb.is-playing,
  .cmv2-player-shell.cmv2-has-bb.is-playing,
  .cl-video-frame.cl-has-bb.is-playing,
  .b508-v4-player-wrap.is-playing {
    display: block !important;
    aspect-ratio: 16 / 9 !important;
    height: auto !important;
    min-height: 180px !important;
    overflow: hidden !important;
  }
  .bb-stage.bb-playing {
    aspect-ratio: 16 / 9 !important;
    height: auto !important;
    min-height: 180px !important;
    overflow: hidden !important;
  }
  .bb-stage.bb-playing > video {
    position: relative !important;
    inset: auto !important;
    z-index: 1 !important;
    width: 100% !important;
    height: 100% !important;
    display: block !important;
  }
}

/* BB_SITE_EMBED_BAND_START */
/* 7. Sitewide Beyond Belief Broadcast Showcase Band (.bb-site-band) */
.bb-site-band {
  width: 100%;
  box-sizing: border-box;
  padding: 46px 20px;
  background: linear-gradient(180deg, #fbf8f1 0%, #f3ecde 100%);
  border-top: 1px solid rgba(201, 162, 75, 0.28);
  border-bottom: 1px solid rgba(201, 162, 75, 0.28);
  position: relative;
  z-index: 2;
}
.bb-site-band--navy {
  background: linear-gradient(180deg, #09172d 0%, #0e2343 100%);
  border-top-color: rgba(214, 173, 84, 0.28);
  border-bottom-color: rgba(214, 173, 84, 0.28);
}
.bb-site-band--inline {
  background: transparent;
  border: 0;
  padding: 28px 0 6px;
}
.bb-site-card {
  max-width: 1120px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.56fr) minmax(0, 1fr);
  gap: 26px;
  align-items: stretch;
  padding: 22px;
  border-radius: 22px;
  background: linear-gradient(145deg, #091a33 0%, #10284b 58%, #08172d 100%);
  border: 1.5px solid rgba(214, 173, 84, 0.48);
  box-shadow: 0 22px 52px rgba(7, 17, 34, 0.24);
  color: #f6f2e8;
  font-family: 'Figtree', system-ui, -apple-system, sans-serif;
  box-sizing: border-box;
  text-align: left;
}
.bb-site-card *,
.bb-site-card *::before,
.bb-site-card *::after {
  box-sizing: border-box;
}
.bb-site-stage {
  min-width: 0;
  width: 100%;
  height: 100%;
  min-height: 468px;
  display: flex;
  flex-direction: column;
  border-radius: 18px;
  background: transparent !important;
  overflow: visible !important;
}
.bb-site-stage .bb-poster {
  padding: 18px 20px 16px;
}
.bb-site-stage .bb-foot {
  display: flex;
}
.bb-site-stage.is-playing,
.bb-site-stage .bb-stage.bb-playing {
  aspect-ratio: 16 / 9 !important;
  background: #040c1a !important;
  border-radius: 16px;
  overflow: hidden !important;
}
.bb-site-meta {
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 13px;
  padding: 8px 6px 8px 2px;
}
.bb-site-pill {
  display: inline-block;
  align-self: flex-start;
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(214, 173, 84, 0.16);
  border: 1px solid rgba(214, 173, 84, 0.52);
  color: #f6dc8a;
  font: 800 11.5px/1.2 'Figtree', system-ui, sans-serif;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.bb-site-title {
  margin: 0 !important;
  padding: 0 !important;
  font-family: 'Cormorant', Georgia, serif !important;
  font-size: clamp(1.55rem, 2.25vw, 2.02rem) !important;
  font-weight: 700 !important;
  line-height: 1.15 !important;
  color: #fffdf8 !important;
  letter-spacing: -0.01em;
}
.bb-site-desc {
  margin: 0 !important;
  font: 400 15px/1.6 'Figtree', system-ui, sans-serif !important;
  color: #d6e3f4 !important;
}
.bb-site-points {
  list-style: none !important;
  margin: 2px 0 4px !important;
  padding: 0 !important;
  display: grid;
  gap: 7px;
}
.bb-site-points li {
  position: relative;
  padding-left: 20px !important;
  margin: 0 !important;
  font: 600 13.8px/1.45 'Figtree', system-ui, sans-serif !important;
  color: #eef4fc !important;
}
.bb-site-points li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 6px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #f9e49e, #c9972e);
  box-shadow: 0 0 8px rgba(246, 220, 138, 0.55);
}
.bb-site-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 4px;
}
.bb-site-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 11px 18px;
  border-radius: 999px;
  background: linear-gradient(135deg, #e5be63 0%, #c8972f 100%);
  color: #09172d !important;
  font: 800 13.5px/1.2 'Figtree', system-ui, sans-serif;
  text-decoration: none !important;
  border: 0;
  cursor: pointer;
  box-shadow: 0 8px 22px rgba(201, 151, 47, 0.32);
  transition: transform 0.16s ease, box-shadow 0.16s ease;
}
.bb-site-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 26px rgba(201, 151, 47, 0.44);
}
.bb-site-btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: #f6f2e8 !important;
  font: 700 13px/1.2 'Figtree', system-ui, sans-serif;
  text-decoration: none !important;
  border: 1px solid rgba(226, 190, 99, 0.48);
  cursor: pointer;
  transition: background 0.16s ease, border-color 0.16s ease;
}
.bb-site-btn-ghost:hover {
  background: rgba(214, 173, 84, 0.18);
  border-color: rgba(246, 220, 138, 0.78);
}
@media (max-width: 960px) {
  .bb-site-card {
    grid-template-columns: 1fr !important;
    padding: 16px;
    gap: 18px;
  }
  .bb-site-stage {
    min-height: 350px;
  }
}
@media (max-width: 520px) {
  .bb-site-band {
    padding: 32px 12px;
  }
  .bb-site-band--inline {
    padding: 20px 0 4px;
  }
  .bb-site-card {
    padding: 14px;
    border-radius: 18px;
  }
  .bb-site-stage.bb-site-has-bb:not(.is-playing) {
    display: block !important;
    aspect-ratio: auto !important;
    height: auto !important;
    min-height: 220px !important;
    overflow: hidden !important;
  }
  .bb-site-stage.bb-site-has-bb.is-playing {
    display: block !important;
    aspect-ratio: 16 / 9 !important;
    height: auto !important;
    min-height: 180px !important;
    overflow: hidden !important;
  }
  .bb-site-actions {
    flex-direction: column;
  }
  .bb-site-btn,
  .bb-site-btn-ghost {
    width: 100%;
  }
}
/* BB_SITE_EMBED_BAND_END */

.bb-poster[data-bb-theme="royalties-gold"] {
  --bb-rad: rgba(44, 104, 190, 0.38);
  --bb-accent: #f6d884;
  --bb-ribbon-bg: linear-gradient(90deg, rgba(16, 38, 76, 0.94), rgba(114, 78, 18, 0.95));
}


/* BB_FULLSCREEN_CONTROLS_START */
/* ==========================================================================
   ACCESSIBLE PLAYER-WRAPPER FULLSCREEN CONTROL (2026-11-25)
   Applies to .bb-stage (How It Works, Base 508 Profile, public pages) and
   .se508-video-frame (Royalties Hub). >=44px tap target, keyboard-reachable,
   neutralizes ancestor overflow/transform/filter/contain blockers, and
   keeps video object-fit:contain with no download affordance.
   ========================================================================== */
.bb-fs-btn {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 8;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-width: 44px;
  min-height: 44px;
  padding: 0 13px;
  border-radius: 999px;
  border: 1.5px solid rgba(244, 213, 134, 0.78);
  background: rgba(7, 22, 46, 0.88);
  color: #fffdf7;
  font: 700 13px/1 'Figtree', system-ui, sans-serif;
  letter-spacing: 0.02em;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  touch-action: manipulation;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.48);
  transition: background 0.16s ease, border-color 0.16s ease, transform 0.16s ease;
}
.bb-fs-btn:hover {
  background: rgba(18, 54, 108, 0.96);
  border-color: #fbe49b;
  transform: translateY(-1px);
}
.bb-fs-btn:focus-visible {
  outline: 3px solid #fbe49b;
  outline-offset: 2px;
}
.bb-fs-btn svg {
  flex: 0 0 auto;
}
/* Inside .bb-stage, show the floating top-left Fullscreen button once video is active
   (while the poster is up, the poster's own Full screen pill launches + fullscreens cleanly). */
.bb-stage:not(.bb-playing) > .bb-fs-btn {
  display: none;
}
.bb-stage.bb-playing > .bb-fs-btn {
  display: inline-flex;
}
.bb-ctrl-pill--fs {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 36px;
}
@media (max-width: 520px) {
  .bb-ctrl-pill--fs {
    min-height: 44px;
    min-width: 44px;
    padding: 0 11px;
  }
  .bb-fs-btn {
    padding: 0 12px;
    font-size: 12px;
  }
}

/* Native Fullscreen API + True Full-Viewport Fallback on .bb-stage & .se508-video-frame */
.bb-stage:fullscreen,
.bb-stage:-webkit-full-screen,
.bb-stage.is-fs-fallback,
.se508-video-frame:fullscreen,
.se508-video-frame:-webkit-full-screen,
.se508-video-frame.is-fs-fallback {
  width: 100vw !important;
  height: 100vh !important;
  height: 100dvh !important;
  max-width: none !important;
  max-height: none !important;
  min-height: 0 !important;
  aspect-ratio: auto !important;
  border-radius: 0 !important;
  border: 0 !important;
  background: #000000 !important;
  overflow: visible !important;
  container-type: normal !important;
  isolation: auto !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  box-shadow: none !important;
}
.bb-stage.is-fs-fallback,
.se508-video-frame.is-fs-fallback {
  position: fixed !important;
  inset: 0 !important;
  z-index: 2147483500 !important;
  margin: 0 !important;
  padding: 0 !important;
}
.bb-stage:fullscreen > video,
.bb-stage:-webkit-full-screen > video,
.bb-stage.is-fs-fallback > video,
.se508-video-frame:fullscreen > video,
.se508-video-frame:-webkit-full-screen > video,
.se508-video-frame.is-fs-fallback > video {
  position: relative !important;
  inset: auto !important;
  width: 100% !important;
  height: 100% !important;
  max-width: 100vw !important;
  max-height: 100vh !important;
  max-height: 100dvh !important;
  object-fit: contain !important;
  background: #000000 !important;
}
.bb-stage:fullscreen > .bb-fs-btn,
.bb-stage:-webkit-full-screen > .bb-fs-btn,
.bb-stage.is-fs-fallback > .bb-fs-btn,
.se508-video-frame:fullscreen > .bb-fs-btn,
.se508-video-frame:-webkit-full-screen > .bb-fs-btn,
.se508-video-frame.is-fs-fallback > .bb-fs-btn {
  display: inline-flex !important;
  top: max(14px, env(safe-area-inset-top, 14px));
  left: max(14px, env(safe-area-inset-left, 14px));
  z-index: 12;
  background: rgba(7, 22, 46, 0.92);
}
.bb-stage:fullscreen > .bb-cover-return,
.bb-stage:-webkit-full-screen > .bb-cover-return,
.bb-stage.is-fs-fallback > .bb-cover-return {
  top: max(14px, env(safe-area-inset-top, 14px));
  right: max(14px, env(safe-area-inset-right, 14px));
  z-index: 12;
}
[data-m508-fs-anc="1"] {
  overflow: visible !important;
  transform: none !important;
  filter: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  contain: none !important;
  container-type: normal !important;
}
html.m508-fs-lock,
body.m508-fs-lock {
  overflow: hidden !important;
}
html.m508-fs-lock #m508-chat-host,
html.m508-fs-lock #clara-stage,
html.m508-fs-lock #m508c-fab {
  visibility: hidden !important;
  pointer-events: none !important;
}
/* BB_FULLSCREEN_CONTROLS_END */
