/* ==========================================================================
   ENLIGHTENED REPUBLIC — CHANNEL 7B BROADCASTS
   Builds on landing.css tokens. Used by broadcasts.html + the homepage card.
   ========================================================================== */

.b7-hero {
  padding: clamp(8rem, 18vh, 11rem) 0 2rem;
  position: relative;
  z-index: 2;
}
.b7-hero-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 3rem;
  align-items: center;
}
.b7-hud { justify-content: flex-start; }
.b7-val { color: var(--teal); text-shadow: 0 0 6px var(--teal-glow); }
.b7-live { color: var(--pink); text-shadow: 0 0 8px var(--pink-glow); }
.b7-live::before {
  content: '';
  display: inline-block;
  width: 0.55em;
  height: 0.55em;
  border-radius: 50%;
  background: var(--pink);
  box-shadow: 0 0 8px var(--pink);
  margin-right: 0.45em;
  vertical-align: 0.05em;
  animation: b7-blink 1.6s steps(2, start) infinite;
}
@keyframes b7-blink { to { visibility: hidden; } }

/* --- Algen co-anchor card --- */
.b7-anchor {
  border: 2px solid var(--teal);
  background: linear-gradient(160deg, rgba(0, 245, 212, 0.08), rgba(10, 10, 26, 0.95));
  box-shadow: 0 0 30px var(--teal-glow);
  padding: 1.6rem;
  position: relative;
}
.b7-anchor-tag {
  font-family: var(--hud);
  font-size: 0.6rem;
  letter-spacing: 0.3em;
  color: var(--yellow);
  margin-bottom: 0.9rem;
}
.b7-anchor-face {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(2.6rem, 6vw, 4rem);
  line-height: 1;
  color: var(--teal);
  text-shadow: 0 0 18px var(--teal-glow);
  letter-spacing: 0.06em;
  margin-bottom: 0.6rem;
}
.b7-wave { display: flex; gap: 4px; align-items: flex-end; height: 28px; margin-bottom: 1rem; }
.b7-wave span {
  flex: 1;
  background: var(--teal);
  opacity: 0.75;
  animation: b7-wave 1.1s ease-in-out infinite alternate;
}
.b7-wave span:nth-child(2n) { animation-delay: -0.3s; background: var(--purple); }
.b7-wave span:nth-child(3n) { animation-delay: -0.6s; }
.b7-wave span:nth-child(5n) { animation-delay: -0.85s; background: var(--pink); }
@keyframes b7-wave { from { height: 15%; } to { height: 100%; } }
.b7-anchor p { color: var(--ash); font-size: 0.92rem; line-height: 1.55; }
.b7-anchor strong { color: var(--bone); }

/* --- Main player --- */
.b7-section {
  padding: 2rem 0 clamp(4rem, 10vh, 6rem);
  position: relative;
  z-index: 2;
}
.b7-player {
  border: 2px solid var(--purple);
  background: linear-gradient(135deg, rgba(180, 79, 255, 0.08), rgba(10, 10, 26, 0.95));
  box-shadow: 0 0 40px var(--purple-glow);
  position: relative;
  scroll-margin-top: 90px;
}
.b7-player::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--teal), var(--purple), var(--pink), var(--yellow));
  z-index: 1;
}
.b7-screen {
  position: relative;
  aspect-ratio: 16 / 9;
  width: 100%;
  background: #000;
  overflow: hidden;
}
.b7-screen iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}
.b7-meta { padding: 1.4rem 1.6rem 1.6rem; }
.b7-meta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.6rem 1.2rem;
  margin-bottom: 0.4rem;
}
.b7-ep {
  font-family: var(--hud);
  font-size: 0.7rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--yellow);
}
.b7-date {
  font-family: var(--hud);
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  color: var(--ash);
}
.b7-meta h2 {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(1.3rem, 3vw, 1.9rem);
  line-height: 1.15;
  color: var(--bone);
  margin-bottom: 0.6rem;
}
.b7-meta p { color: var(--ash); font-size: 0.95rem; max-width: 75ch; margin-bottom: 1.2rem; }

/* --- Standby (empty state) screen --- */
.b7-standby {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 1.5rem;
  background:
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.025) 0 2px, transparent 2px 4px),
    radial-gradient(circle at 50% 45%, rgba(0, 245, 212, 0.16), transparent 62%),
    #000;
}
.b7-standby-inner { display: flex; flex-direction: column; align-items: center; gap: 0.8rem; }
.b7-standby-eyebrow {
  font-family: var(--hud);
  font-size: 0.68rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--pink);
}
.b7-standby-title {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(1.6rem, 5vw, 3.2rem);
  line-height: 1.05;
  color: var(--teal);
  text-shadow: 0 0 22px var(--teal-glow);
  text-transform: uppercase;
}
.b7-standby-sub {
  font-family: var(--hud);
  font-size: clamp(0.6rem, 1.4vw, 0.75rem);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(232, 228, 240, 0.7);
}

/* --- Episode grid --- */
.b7-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.5rem;
}
.b7-card {
  display: flex;
  flex-direction: column;
  text-align: left;
  font: inherit;
  color: inherit;
  cursor: pointer;
  text-decoration: none;
  border: 1px solid rgba(180, 79, 255, 0.25);
  background: linear-gradient(160deg, rgba(180, 79, 255, 0.06), rgba(10, 10, 26, 0.9));
  transition: border-color 180ms, transform 180ms, box-shadow 180ms;
  padding: 0;
}
.b7-card:hover, .b7-card:focus-visible {
  border-color: var(--purple);
  transform: translateY(-4px);
  box-shadow: 0 0 25px var(--purple-glow), 0 8px 30px rgba(0, 0, 0, 0.35);
  outline: none;
}
.b7-card[aria-current="true"] { border-color: var(--teal); box-shadow: 0 0 22px var(--teal-glow); }
.b7-thumb {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--deep);
  border-bottom: 1px solid rgba(180, 79, 255, 0.25);
}
.b7-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 300ms;
}
.b7-card:hover .b7-thumb img { transform: scale(1.04); }
.b7-play {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: 2.2rem;
  color: var(--teal);
  text-shadow: 0 0 16px var(--teal-glow), 0 0 4px #000;
  background: rgba(5, 5, 16, 0.25);
  opacity: 0.85;
  transition: opacity 180ms, background 180ms;
}
.b7-card:hover .b7-play { opacity: 1; background: rgba(5, 5, 16, 0.05); }
.b7-badge {
  position: absolute;
  left: 0.6rem;
  top: 0.6rem;
  font-family: var(--hud);
  font-size: 0.6rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  padding: 0.25rem 0.5rem;
  background: rgba(5, 5, 16, 0.85);
  border: 1px solid var(--yellow);
  color: var(--yellow);
}
.b7-card-body { padding: 1rem 1.1rem 1.2rem; display: flex; flex-direction: column; gap: 0.35rem; }
.b7-card-body h3 {
  font-family: var(--hud);
  font-size: 0.9rem;
  letter-spacing: 0.04em;
  line-height: 1.35;
  color: var(--pink);
  text-shadow: 0 0 6px var(--pink-glow);
}

.b7-empty {
  border: 1px dashed rgba(0, 245, 212, 0.3);
  padding: 1.6rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.2rem;
}
.b7-empty p { color: var(--ash); max-width: 60ch; }
.b7-empty strong { color: var(--bone); }

/* --- Homepage featured card visual --- */
.b7-feature-screen {
  display: block;
  position: relative;
  aspect-ratio: 16 / 9;
  border: 2px solid rgba(0, 245, 212, 0.4);
  background: #000;
  overflow: hidden;
  box-shadow: 0 0 25px var(--teal-glow);
  text-decoration: none;
}
.b7-feature-screen img { width: 100%; height: 100%; object-fit: cover; display: block; }
.b7-feature-screen .b7-play { font-size: 3rem; }
.b7-feature-screen:hover .b7-play { opacity: 1; background: rgba(5, 5, 16, 0.05); }
.b7-feature-caption {
  font-family: var(--hud);
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  color: var(--ash);
  margin-top: 0.8rem;
  text-transform: uppercase;
}
.b7-feature-caption strong { color: var(--bone); font-weight: 400; }

@media (max-width: 768px) {
  .b7-hero-grid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .b7-wave span, .b7-live::before { animation: none; }
}

/* Algen artwork */
.b7-anchor-img{display:block;width:100%;height:auto;border-radius:4px;border:1px solid rgba(0,245,212,.35);box-shadow:0 0 18px rgba(0,245,212,.18);margin:.4rem 0 .8rem;image-rendering:pixelated}
.b7-standby{background:linear-gradient(rgba(5,5,16,.55),rgba(5,5,16,.75)),url(algen/idle.jpg) center/cover no-repeat}
