.live-page {
  font-family: Inter, system-ui, sans-serif;
  color: var(--fg);
}

.live-wrap {
  width: min(1280px, 100%);
  margin-inline: auto;
  padding-inline: clamp(16px, 3vw, 28px);
}

.live-header { border-width: 0 0 1px; }
.live-header-inner, .live-footer, .live-nav, .live-stream-head {
  display: flex;
  align-items: center;
}

.live-header-inner {
  min-height: 68px;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 4px 24px;
  padding-block: 6px;
}

.live-brand { font-size: 34px; line-height: 1; color: var(--logo); padding: 6px 0; }
.live-brand span { color: var(--accent); }
.live-nav { flex-wrap: wrap; gap: 2px 16px; font-size: 14px; font-weight: 600; }
.live-nav a { display: inline-flex; align-items: center; min-height: 44px; }
.live-nav [aria-current="page"] { color: var(--eyebrow); }
.live-intro { padding-block: clamp(46px, 6vw, 88px) 32px; }
.live-intro h1 {
  margin: 0;
  font-size: clamp(56px, 8vw, 108px);
  font-weight: 800;
  letter-spacing: -.068em;
  line-height: .93;
}

.live-intro em { color: var(--eyebrow); letter-spacing: -.035em; }
.live-intro > p { margin: 20px 0 0; color: var(--muted); line-height: 1.6; }
.live-layout { display: grid; gap: 20px; }
.live-broadcast, .live-aside { min-width: 0; }

.live-broadcast, .live-card {
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--card);
}

.live-broadcast { overflow: hidden; }
.live-stream-head { justify-content: space-between; flex-wrap: wrap; gap: 8px 16px; padding: 18px 22px; }
.live-stream-head h2, .live-card h2 { margin: 0; font-size: 20px; letter-spacing: -.035em; }
.live-stream-head p, .live-card p { margin: 5px 0 0; font-size: 14px; line-height: 1.5; color: var(--muted); }

.live-stream-head .live-status {
  margin: 0;
  font-weight: 700;
  font-size: 13px;
}

.live-status[data-state="online"] { color: var(--eyebrow); }
.live-status[data-state]::before {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-right: 8px;
  border-radius: 50%;
  background: currentColor;
}

.live-viewer {
  display: grid;
  min-width: 0;
  min-height: 208px;
  border-block: 1px solid var(--line);
}

.live-viewer-fallback {
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 14px;
  padding: 22px;
  text-align: center;
  background: radial-gradient(ellipse at 35% 15%, #402027, #161215 60%, #100c0e);
  color: #f8eded;
}

.live-viewer-fallback p { margin: 0; }
#viewer-fallback[hidden], #twitch-player[hidden] { display: none; }
#twitch-player { width: 100%; min-height: 300px; aspect-ratio: 16/9; }
#twitch-player iframe { display: block; width: 100%; height: 100%; border: 0; }
.live-broadcast > .live-text-link { margin: 8px 22px; }

.live-aside { display: grid; align-content: start; gap: 16px; }
.live-card { padding: 22px; }
.live-card:not(.live-highlights) { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 16px; }
.live-host-img {
  position: relative;
  width: 88px;
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: 50%;
  background: var(--img);
}

/* Frame the face in Jerm’s full-length portrait. */
.live-host-img img {
  position: absolute;
  top: 0;
  left: -49%;
  width: 288%;
  max-width: none;
  height: auto;
}
.live-card .live-pill { grid-column: 1/-1; justify-self: start; }
.live-pill, .live-text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  font-size: 14px;
  font-weight: 700;
}

.live-pill { padding: 8px 16px; border-radius: 999px; border: 1px solid var(--field-line); }
.live-pill-primary { background: #faf1ef; color: #191012; }
.live-pill-primary:hover { background: #ead4d1; color: #191012; }
.live-highlights .live-text-link { margin-top: 6px; }
.live-footer { justify-content: space-between; gap: 16px; margin-top: 48px; padding-block: 20px; border-top: 1px solid var(--line); }
.live-footer > a:last-child { font-size: 14px; font-weight: 600; }

@media (min-width: 900px) {
  .live-layout { grid-template-columns: minmax(0, 1fr) minmax(240px, 28%); }
}

.crew-roster { margin-bottom: 36px; }
.crew-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
  gap: clamp(10px, 2vw, 20px);
}

.crew-card {
  --panel-accent: #ad272f;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--card);
}

.crew-card-cb { --panel-accent: #795326; }
.crew-card-jb { --panel-accent: #3f626a; }
.crew-card-kd { --panel-accent: #7c5133; }

.crew-card summary {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: 13px;
  list-style: none;
  cursor: pointer;
}

.crew-card summary::-webkit-details-marker { display: none; }
.crew-card summary:focus-visible { outline: 3px solid var(--fg); outline-offset: 3px; }
.crew-card[open] summary { border-radius: 13px 13px 0 0; }

.crew-art { display: block; position: relative; overflow: hidden; aspect-ratio: 4/3; background: var(--panel-accent); }
.crew-art img { width: 100%; height: 100%; object-fit: cover; object-position: center top; }
.crew-card-jerm .crew-art img { transform: scale(1.2); transform-origin: 32% 0; }
.crew-card-jb .crew-art img { transform: scale(1.18); transform-origin: 48% 0; }
.crew-art::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 34%;
  background-image: radial-gradient(ellipse, #f2e7d3 18%, transparent 20%);
  background-size: 6px 6px;
  mask-image: linear-gradient(transparent, #000);
  opacity: .48;
  pointer-events: none;
}

.crew-card-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-height: 68px;
  padding: 10px clamp(10px, 2vw, 16px);
  border-top: 3px solid var(--panel-accent);
  background: var(--card);
}

.crew-card-name {
  display: block;
  font-size: clamp(22px, 3.8vw, 40px);
  font-weight: 800;
  font-style: italic;
  letter-spacing: -.06em;
  text-transform: uppercase;
  line-height: 1;
}

.crew-card-status { display: block; margin-top: 5px; font-size: 12px; color: var(--muted); }
.crew-card-toggle {
  display: grid;
  place-items: center;
  flex: none;
  width: 28px;
  height: 28px;
  border: 1px solid var(--field-line);
  border-radius: 50%;
  font-size: 17px;
  line-height: 1;
}
.crew-card-toggle::before { content: "+"; }
.crew-card[open] .crew-card-toggle::before { content: "−"; }
.crew-card summary:hover .crew-card-toggle { background: var(--field-bg); }
.crew-card-details { padding: 12px clamp(10px, 2vw, 16px); border-top: 1px solid var(--line); font-size: 14px; }
.crew-card-details p { margin: 5px 0 0; color: var(--muted); line-height: 1.45; }
.crew-card-details .live-text-link { min-height: 34px; }
#stream { scroll-margin-top: 20px; }

@media (min-width: 760px) {
  .crew-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
