/* === Cam & Chat =============================================================
   A stream and a chat, side by side — the layout the thing is actually watched
   in. The old page centred a 640px player in a 1700px window.
   ========================================================================== */

.icrt-cam { padding: 2rem 0 3.5rem; }

.icrt-cam__head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem 2rem;
  margin-bottom: 1.5rem;
}

.icrt-cam__eyebrow {
  margin: 0 0 .5rem;
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
  color: var(--icrt-accent);
}

.icrt-cam__title {
  margin: 0;
  font-size: clamp(1.7rem, 3.4vw, 2.6rem);
  line-height: 1.1;
  letter-spacing: -.025em;
}

.icrt-cam__lead { margin: 0; max-width: 24rem; color: var(--icrt-ink-soft); font-size: .98rem; line-height: 1.55; }

/* --- the theatre ------------------------------------------------------------ */

.icrt-cam__theatre {
  display: grid;
  gap: 1rem;
  margin-bottom: 2.5rem;
}

@media (min-width: 68rem) {
  .icrt-cam__theatre { grid-template-columns: minmax(0, 1fr) 21rem; }
  .icrt-cam__theatre--solo { grid-template-columns: minmax(0, 1fr); }
}

.icrt-cam__stage {
  min-width: 0;
  overflow: hidden;
  border-radius: 1rem;
  background: #000;
}

/* The shortcode's height attribute is a fallback for browsers that get the
   iframe before this stylesheet; the ratio is what actually governs. */
.icrt-cam__stage .cw-twitch { position: relative; }

.icrt-cam__stage .cw-twitch iframe {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  height: auto;
  border: 0;
}

.icrt-cam__stage .cw-twitch__fallback {
  margin: 0;
  padding: .6rem .9rem;
  background: #000;
  font-size: .82rem;
}

.icrt-cam__stage .cw-twitch__fallback a { color: #93c5fd; }

/* --- chat ------------------------------------------------------------------- */

.icrt-cam__chat {
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
  border-radius: 1rem;
  border: 1px solid var(--icrt-line);
  background: var(--icrt-paper);
}

/* Twitch renders its own "Stream Chat" heading inside the frame, so ours is
   kept for the document outline and taken out of the picture. */
.icrt-cam__chatHead {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.icrt-cam__chat .cw-twitchchat { flex: 1 1 auto; min-height: 0; }

.icrt-cam__chat .cw-twitchchat iframe {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 26rem;
  border: 0;
}

/* On a narrow screen the chat sits under a full-width stage, where a
   full-height panel would be a scroll trap. */
@media (max-width: 67.99rem) {
  .icrt-cam__chat .cw-twitchchat iframe { height: 26rem; }
}

/* --- below the fold ---------------------------------------------------------- */

.icrt-cam__below { display: grid; gap: 1.5rem; align-items: start; }

@media (min-width: 64rem) {
  .icrt-cam__below { grid-template-columns: minmax(0, 1fr) 21rem; }
}

.icrt-cam__notes {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  min-width: 0;
}

.icrt-cam__note {
  padding: 1.15rem 1.25rem;
  border-radius: .9rem;
  background: var(--icrt-mist);
  border: 1px solid var(--icrt-line);
}

.icrt-cam__noteTitle { margin: 0 0 .4rem; font-size: 1rem; letter-spacing: -.01em; }
.icrt-cam__noteBody { margin: 0; font-size: .89rem; line-height: 1.6; color: var(--icrt-ink-soft); }

.icrt-cam__now {
  min-width: 0;
  padding: 1.15rem 1.25rem 1.35rem;
  border-radius: .9rem;
  background: var(--icrt-paper);
  border: 1px solid var(--icrt-line);
}

.icrt-cam__nowHead {
  margin: 0 0 .75rem;
  padding-bottom: .5rem;
  border-bottom: 0;
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
  color: var(--icrt-muted);
}

.icrt-cam__nowShow { margin: 0 0 .5rem; font-size: 1.15rem; font-weight: 700; line-height: 1.25; }
.icrt-cam__nowLink { display: inline-block; margin-bottom: 1rem; font-size: .85rem; font-weight: 700; color: var(--icrt-accent); text-decoration: none; }
.icrt-cam__nowLink:hover { text-decoration: underline; }
