/* Styles for live.html only. The page background, font and header come from body.css and header.css. */

.live-page {
  /* The site's green. If your header is a slightly different green, change just this line. */
  --live-green: #2d8659;
  max-width: 960px;
  margin: 0 auto;
  padding: 16px;
}

.live-page h1 {
  margin: 8px 0;
}

.live-intro {
  margin: 0 0 16px;
}

/* ---------- the bar of channel buttons ---------- */
.live-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.live-tabs button {
  padding: 10px 16px;
  border: 2px solid var(--live-green);
  border-radius: 8px;
  background: transparent;
  color: inherit;
  font: inherit;
  cursor: pointer;
}

.live-tabs button:hover {
  background: rgba(45, 134, 89, 0.3);
}

/* the channel you are watching */
.live-tabs button[aria-pressed="true"] {
  background: var(--live-green);
  color: #ffffff;
}

.live-tabs button:focus-visible {
  outline: 3px solid #8ab4f8;
  outline-offset: 2px;
}

/* ---------- the video ---------- */
.live-player {
  aspect-ratio: 16 / 9;      /* keeps the video the right shape at any width */
  background: #000000;
  border-radius: 8px;
  overflow: hidden;
}

.live-player iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

/* ---------- credits ---------- */
.live-credit {
  margin: 12px 0 0;
  font-size: 0.9em;
  opacity: 0.85;
}

.live-credit a {
  color: var(--live-green);
  filter: brightness(1.4);   /* green links need to be lighter to read on a dark background */
}

/* ---------- phones: two buttons per row ---------- */
@media (max-width: 600px) {
  .live-tabs button {
    flex: 1 1 calc(50% - 8px);
  }
}