/* FILE: site/sowetan/www/assets/live.css */
/* Self-contained Live Desk, including visual stage and shared toast. */
html.live-open { overflow: hidden; }
.live,.toast {
  --red: #ff2d2d;
  --red-2: #f40706;
  --red-d: #b50010;
  --bg: #040202;
  --panel: #141414;
  --panel-2: #1c1c1c;
  --line: #2a2a2a;
  --line-2: #454545;
  --ink: #fff;
  --ink-2: #c9c9cb;
  --mute: #a09f9f;
  --display: Poppins,Inter,system-ui,sans-serif;
  --cond: Poppins,Inter,system-ui,sans-serif;
  --serif: Poppins,Inter,system-ui,sans-serif;
  --ease: cubic-bezier(.2,.8,.2,1);
}
.live,.live *,.live *::before,.live *::after { box-sizing: border-box; }
.live {
  position: fixed;
  inset: 0;
  z-index: 400;
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: none;
  height: 100dvh;
  max-height: none;
  margin: 0;
  padding: 0;
  overflow: hidden;
  border: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 14px/1.5 var(--display);
}
.live[hidden],.live:not([open]) { display: none; }
.live::backdrop { background: #040202; }
.live :where(h2,h3,p,ol,ul) { margin: 0; padding: 0; }
.live :where(ol,ul) { list-style: none; }
.live :where(section,article,div,span) { min-width: 0; }
.live button { color: inherit; font: inherit; cursor: pointer; }
.live a { color: inherit; text-decoration: none; }
.live img { display: block; max-width: 100%; }
.live svg { display: block; flex: none; }
.live [hidden] { display: none !important; }
.live :focus-visible { outline: 2px solid white; outline-offset: 3px; }
.live ::selection { background: var(--red-d); color: #fff; }
.live-bg { display: none; }
.live .live-top {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: none;
  padding: 8px;
  border-bottom: 1px solid var(--line);
  background: #0a0a0a;
}
.live .lt-brand { display: flex; align-items: center; gap: 8px; flex: none; }
.live .lt-brand img { width: 136px; height: auto; }
.live .lt-brand b { font-size: 11px; letter-spacing: .12em; font-weight: 600; white-space: nowrap; }
.live .lang-seg { display: flex; gap: 4px; flex: none; padding: 3px; border: 1px solid var(--line); border-radius: 22px; }
.live .lang-seg button {
  min-height: 36px;
  padding: 4px 8px;
  border: 1px solid transparent;
  border-radius: 22px;
  background: transparent;
  font-size: 11px;
  font-weight: 600;
}
.live .lang-seg button:hover { border-color: var(--red); }
.live .lang-seg button[aria-pressed="true"] { background: var(--red); color: #fff; }
.live .steps { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.live .steps li { display: flex; align-items: center; gap: 8px; padding: 4px 8px; border: 1px solid var(--line); border-radius: 22px; color: var(--mute); font-size: 11px; }
.live .steps li span { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; border: 1px solid var(--line); }
.live .steps li.on { border-color: #ff2d2d70; color: #fff; background: #ff2d2d12; }
.live .steps li.on span { background: var(--red); border-color: var(--red); }
.live .steps li.done { color: var(--ink-2); }
.live .lt-right { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.live .lt-time { color: var(--mute); font-size: 11px; font-variant-numeric: tabular-nums; }
.live .lt-time.warn { color: #ff8a8a; }
.live :where(.btn,.cc,.lt-back,.lt-end,.lt-x,.back,.mini-r) {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 8px;
  border: 1px solid var(--line-2);
  border-radius: 10px;
  background: transparent;
  color: #fff;
  font: 600 12px/1.35 var(--display);
  text-align: center;
  transition: border-color .18s,background .18s,transform .18s;
}
.live :where(.btn,.cc,.lt-back,.lt-end,.lt-x,.back,.mini-r):hover { border-color: var(--red); }
.live :where(.btn,.cc,.lt-back,.lt-end,.lt-x,.back,.mini-r):active { transform: translateY(1px); }
.live :where(.btn,.cc,.lt-back,.lt-end,.lt-x,.back) svg { width: 17px; height: 17px; }
.live :where(.btn-red,.go,.mini-r) { background: var(--red); border-color: var(--red); }
.live :where(.btn-red,.go,.mini-r):hover { background: var(--red-2); }
.live button:disabled { opacity: .45; cursor: not-allowed; }
.live[data-step="h"] .lt-back { display: none; }

.live .live-main {
  flex: 1;
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(0,1fr) minmax(0,1.12fr);
  gap: 8px;
  padding: 8px;
  padding-bottom: max(8px,env(safe-area-inset-bottom,0px));
  overflow: hidden;
}
.live .live-cam {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
  min-height: 0;
}
.live .cam-frame {
  position: relative;
  flex: 1 0 auto;
  width: 100%;
  aspect-ratio: 3 / 2;
  overflow: hidden;
  border: 1px solid var(--line-2);
  border-radius: 18px;
  background: #141414 url("/today/poster.webp") center 25% / cover no-repeat;
}
.live .cam-frame video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 25%; }
.live .cam-live { opacity: 0; }
.live.cam-on .cam-live { opacity: 1; }
.live.cam-on .cam-idle { opacity: 0; }
.live .cam-state {
  position: absolute;
  top: 8px;
  left: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px 8px;
  max-width: calc(100% - 68px);
  border: 1px solid #ffffff50;
  border-radius: 22px;
  background: #040202dc;
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .06em;
}
.live .orb { width: 12px; height: 12px; display: grid; place-items: center; }
.live .orb i { width: 6px; height: 6px; border-radius: 50%; background: var(--mute); }
.live .cam-state:is([data-s="listening"],[data-s="speaking"]) .orb i { background: var(--red); }
.live .cam-state[data-s="connecting"] .orb i,
.live .cam-state[data-s="thinking"] .orb i { background: var(--red); animation: live-blink 1.2s ease-in-out infinite; }
.live .cam-lower { position: absolute; left: 8px; bottom: 8px; display: flex; overflow: hidden; border: 1px solid #ffffff40; border-radius: 10px; background: #040202df; }
.live .cam-lower .nm { padding: 6px 8px; background: var(--red); font-size: 13px; font-weight: 700; }
.live .cam-lower .role { display: flex; align-items: center; padding: 6px 8px; color: white; font-size: 10px; }
.live .frame-x {
  position: absolute;
  z-index: 8;
  top: 8px;
  right: 8px;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid #ffffff70;
  border-radius: 50%;
  background: #040202b8;
  color: #fff;
  backdrop-filter: blur(8px);
}
.live .frame-x:hover { background: var(--red); border-color: var(--red); }
.live .frame-x svg { width: 18px; height: 18px; }
.live .caption {
  display: block;
  flex: none;
  height: calc(6em + 18px);
  padding: 8px;
  overflow-y: auto;
  overscroll-behavior: contain;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--panel);
  color: var(--ink-2);
  font-size: 15px;
  line-height: 1.5;
  scrollbar-width: thin;
}
.live .caption.on { color: #fff; border-color: #555; }
.live .caption:empty::before { content: "Lerato’s words appear here as she speaks."; color: var(--mute); }
.live .caption .muted { color: var(--mute); font-size: 12px; }
.live .caption .mini-r { display: inline-flex; min-height: 32px; margin-inline: 4px; padding: 4px 8px; }
.live .you { color: var(--ink-2); font-size: 12px; max-height: 4.5em; overflow-y: auto; }
.live .you:empty { display: none; }
.live .you span { margin-right: 8px; color: #fff; font-weight: 600; }
.live .gloss { display: none; }
.live .gloss.on { display: flex; flex-wrap: wrap; gap: 8px; padding: 8px; border: 1px solid var(--line); border-radius: 14px; font-size: 12px; }
.live .gloss i { color: var(--ink-2); font-style: normal; }
.live .tips { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 8px; border: 1px solid var(--line); border-radius: 14px; }
.live .tips b { color: var(--mute); font-size: 10px; font-weight: 500; }
.live .tips span { padding: 2px 8px; border: 1px solid var(--line); border-radius: 22px; font-size: 10px; color: var(--ink-2); }
.live .cam-ctrls { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 8px; flex: none; }
.live .cc { min-width: 0; }
.live .cc span { overflow-wrap: anywhere; }
.live .mic-state { cursor: default; }
.live .mic-state.on,.live .mic-state.hot { border-color: var(--red); }
.live .mic-state.off { color: #ffaaaa; border-color: var(--red); }   /* sowetan_mic_hold_outline_v1: held mic keeps the hover red outline */
.live .mic-meter { display: inline-flex; align-items: center; gap: 2px; height: 14px; flex: none; }
.live .mic-meter b { width: 2px; height: 12px; border-radius: 2px; background: var(--red); transform: scaleY(calc(.2 + var(--mic,0) * .8)); }
.live .mic-meter b:nth-child(even) { height: 8px; }
.live.no-mic .mic-meter { display: none; }
.live.quiet-soon .cam-state { border-color: var(--red); }
.live.quiet-soon .cam-state .st::after { content: " · still there?"; }

.live .live-panel {
  position: relative;
  min-width: 0;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: #555 transparent;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #101010;
}
.live .live-panel > .frame-x { position: sticky; float: right; top: 8px; margin: 8px 8px -52px 0; }
.live .pv { display: grid; align-content: start; gap: 8px; padding: 8px; }
.live .pv-h { display: grid; gap: 8px; padding-right: 52px; }
.live .pv-h h2 { font-size: clamp(23px,2.3vw,34px); line-height: 1.15; font-weight: 700; letter-spacing: -.04em; }
.live .pv-h p { color: var(--mute); font-size: 12px; }
.live :where(.pv-date,.eyebrow) { display: inline-flex; align-items: center; flex-wrap: wrap; gap: 8px; font-size: 10px; color: var(--ink-2); font-weight: 500; }
.live .pv-date i,.live .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--red); flex: none; }
.live .hl-list { display: grid; gap: 8px; }
.live .hl-card {
  position: relative;
  width: 100%;
  display: grid;
  grid-template-columns: 26px 72px minmax(0,1fr) 16px;
  align-items: center;
  gap: 8px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: transparent;
  color: #fff;
  text-align: left;
  transition: border-color .2s,background .2s;
}
.live .hl-card:hover { border-color: #777; }
.live .hl-no { text-align: center; color: var(--mute); font-size: 20px; font-weight: 600; font-variant-numeric: tabular-nums; }
.live .hl-img { aspect-ratio: 4 / 3; overflow: hidden; border-radius: 10px; background: #1c1c1c url("/assets/brand/sowetan-icon.svg") center / 28px no-repeat; }
.live .hl-img img { width: 100%; height: 100%; object-fit: cover; }
.live .hl-tx { display: grid; gap: 4px; }
.live .hl-tx b { font-size: 13px; line-height: 1.4; font-weight: 600; }
.live .meta { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; font-size: 10px; }
.live .meta .k { color: var(--ink-2); }
.live .meta .t { color: var(--mute); }
.live .hl-go svg { width: 16px; height: 16px; color: var(--mute); }
.live .hl-now { display: none; align-items: center; gap: 6px; min-height: 20px; padding: 2px 6px; border-radius: 22px; background: var(--red); color: #fff; font-size: 9px; }
.live .hl-card.reading { border-color: var(--red); background: #ff2d2d12; }
.live .hl-card.reading .hl-now { display: inline-flex; }
.live .hl-card.reading .hl-no { color: var(--red); }
.live .hl-card.heard:not(.reading) .hl-no { color: var(--ink-2); }
.live .bars { display: inline-flex; align-items: center; gap: 2px; height: 12px; }
.live .bars i { width: 2px; height: 100%; border-radius: 2px; background: currentColor; animation: live-wave .9s ease-in-out infinite alternate; }
.live .bars i:nth-child(2) { animation-delay: -.3s; }
.live .bars i:nth-child(3) { animation-delay: -.6s; }
.live:not([data-call="speaking"]) .bars i { animation-play-state: paused; }
.live :where(.chip-c,.lchip,.f-who i) { display: inline-flex; align-items: center; gap: 6px; min-height: 22px; padding: 2px 8px; border: 1px solid var(--line); border-radius: 22px; font-size: 11px; font-style: normal; color: var(--ink-2); }
.live .chips { display: flex; gap: 8px; flex-wrap: wrap; }
.live .chip-c i { width: 5px; height: 5px; border-radius: 50%; background: var(--red); }
.live .tiles { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; }
.live .tile { padding: 8px; border: 1px solid var(--line); border-radius: 14px; background: transparent; text-align: left; }
.live .tile.on { border-color: var(--red); }
.live .tile-in { display: grid; gap: 8px; }

.live .pv-story { padding: 0; gap: 0; }
.live .st-hero { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: #141414 url("/assets/brand/sowetan-icon.svg") center / 64px no-repeat; }
.live .st-hero::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(0deg,#040202e6,transparent 75%); }
.live .st-hero img.vis { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 30%; opacity: 0; transition: opacity .4s; }
.live .st-hero img.vis.on { opacity: 1; }
.live .st-on { position: absolute; z-index: 2; top: 8px; left: 8px; display: flex; align-items: center; gap: 8px; max-width: calc(100% - 68px); padding: 4px 8px; border: 1px solid #ff2d2d70; border-radius: 22px; background: #040202cf; color: white; font-size: 10px; }
.live .st-progress { position: absolute; z-index: 4; inset: auto 0 0; height: 3px; background: #ffffff30; }
.live .st-progress i { display: block; height: 100%; background: var(--red); transform: scaleX(0); transform-origin: left; transition: transform .3s; }
.live .vis-cap { position: absolute; z-index: 2; left: 8px; right: 8px; bottom: 60px; display: none; gap: 4px; text-shadow: 0 1px 6px #000; }
.live .st-hero.has-cap .vis-cap { display: grid; }
.live .vis-cap b { font-size: 16px; line-height: 1.2; }
.live .vis-cap span { font-size: 11px; color: var(--ink-2); }
.live .vis-cap small { font-size: 10px; color: #fff; }
.live .vis-cap a { text-decoration: underline; text-underline-offset: 2px; }
.live .vis-strip { position: absolute; z-index: 3; bottom: 8px; right: 8px; left: 8px; display: flex; justify-content: flex-end; gap: 8px; }
.live .vis-dot { position: relative; width: 44px; height: 44px; flex: none; padding: 0; overflow: hidden; border: 2px solid #ffffff70; border-radius: 50%; background: transparent; }
.live .vis-dot img { width: 100%; height: 100%; object-fit: cover; }
.live .vis-dot.on { border-color: var(--red); box-shadow: 0 0 0 2px #040202; }
.live .vis-dot span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.live .st-body { display: grid; gap: 8px; padding: 8px; }
.live .st-body h2 { font-size: clamp(23px,2.1vw,32px); line-height: 1.2; font-weight: 600; letter-spacing: -.035em; }
.live .st-lede { color: var(--ink-2); font-size: 15px; line-height: 1.55; }
.live .st-lede:empty { display: none; }
.live .facts { display: flex; flex-wrap: wrap; gap: 8px; }
.live .facts:empty { display: none; }
.live .fact { flex: 1 1 180px; display: grid; align-content: start; gap: 8px; padding: 8px; border: 1px solid var(--line); border-radius: 14px; background: var(--panel-2); }
.live .fact.in { border-color: #ff2d2d70; }
.live .f-quote { flex-basis: 100%; }
.live .f-k { color: var(--mute); font-size: 10px; font-weight: 500; text-transform: uppercase; letter-spacing: .08em; }
.live .f-v { font-size: clamp(23px,2.2vw,32px); line-height: 1.2; overflow-wrap: anywhere; }
.live .f-l { color: var(--ink-2); font-size: 12px; }
.live .f-q { font-size: 14px; line-height: 1.55; }
.live .f-who { display: flex; flex-wrap: wrap; gap: 8px; }
.live .st-text { display: grid; gap: 8px; }
.live .st-text p { padding: 8px; border: 1px solid transparent; border-radius: 10px; font-size: 14px; line-height: 1.65; color: var(--ink-2); scroll-margin-top: 8px; }
.live .st-text p.reading { color: white; border-color: #ff2d2d70; background: #ff2d2d0c; }
.live .st-text a { text-decoration: underline; }
.live .st-text .muted { color: var(--mute); }
.live .pv-foot { display: flex; flex-wrap: wrap; gap: 8px; padding: 8px; border-top: 1px solid var(--line); }
.live .pv-foot .btn { flex: 1 1 auto; }
.live .sk { display: block; height: 12px; border-radius: 6px; background: #2a2a2a; }
.live .sk.short { width: 60%; }
.live .empty { display: grid; gap: 8px; padding: 8px; border: 1px solid var(--line); border-radius: 14px; color: var(--ink-2); }
.live.panel-off .live-panel { display: none; }
.live.panel-off .live-main { grid-template-columns: minmax(0,1fr); }
.live.panel-off .live-cam { display: grid; grid-template-columns: minmax(0,1.6fr) minmax(0,1fr); align-content: start; }
.live.panel-off .cam-frame { grid-column: 1; grid-row: 1 / 6; }
.live.panel-off .caption,.live.panel-off .gloss,.live.panel-off .you,.live.panel-off .tips,.live.panel-off .cam-ctrls { grid-column: 2; }

.toast {
  position: fixed;
  z-index: 500;
  left: 50%;
  bottom: calc(88px + env(safe-area-inset-bottom,0px));
  display: flex;
  align-items: center;
  gap: 8px;
  width: max-content;
  max-width: calc(100vw - 16px);
  padding: 8px;
  border: 1px solid #555;
  border-radius: 14px;
  background: #141414;
  color: #fff;
  font: 500 13px/1.5 var(--display);
  box-shadow: 0 8px 32px #0009;
  opacity: 0;
  transform: translate(-50%,8px);
  pointer-events: none;
  transition: opacity .2s,transform .2s;
}
.toast.show { opacity: 1; transform: translate(-50%,0); }
.toast i { width: 6px; height: 6px; flex: none; border-radius: 50%; background: var(--red); }
.live > .toast { bottom: 8px; }

@keyframes live-blink { 50% { opacity: .3; } }
@keyframes live-wave { to { transform: scaleY(.3); } }

@media (min-width:901px) and (min-height:760px) {
  .live .pv-story .st-hero { position: sticky; top: 0; z-index: 4; max-height: 30dvh; }
  .live .st-text p { scroll-margin-top: calc(30dvh + 8px); }
}
@media (max-width:1100px) {
  .live .lt-brand b { display: none; }
  .live .tips { display: none; }
  .live .mic-meter { display: none; }
}
@media (max-width:900px) {
  .live .live-top { flex-wrap: wrap; }
  .live .lt-brand img { width: 106px; }
  .live .steps,.live .lt-time { display: none; }
  .live .lang-seg { margin-left: auto; }
  .live .lang-seg button { padding-inline: 6px; font-size: 10px; }
  /* sowetan_langs5_v1: six languages get their own full-width row under the logo on a phone (never a squeezed header) */
  .live .lang-seg { order: 5; flex: 1 0 100%; margin-left: 0; justify-content: space-between; }
  .live .lang-seg button { flex: 1 1 0; min-width: 0; padding-inline: 2px; font-size: 11px; letter-spacing: .04em; }
  .live .lt-right { margin-left: auto; }
  .live .lt-back { min-height: 36px; font-size: 10px; padding: 4px 6px; gap: 4px; }
  .live .lt-back svg { width: 13px; }
  .live .live-main { display: flex; flex-direction: column; }
  .live .live-cam { flex: none; }
  .live .cam-frame { flex: none; aspect-ratio: 3 / 2; }
  .live .caption { font-size: 13px; }
  .live .cam-ctrls { gap: 8px; grid-template-columns: 1.2fr 1fr 1fr; }
  .live .cc { gap: 4px; padding: 6px 4px; font-size: 10px; }
  .live .cc svg { width: 14px; height: 14px; }
  .live .you { max-height: 3em; font-size: 11px; }
  .live .live-panel { flex: 1 1 auto; }
  .live .pv-h h2 { font-size: 23px; }
  .live .hl-card { grid-template-columns: 22px 56px minmax(0,1fr); gap: 8px; }
  .live .hl-go { display: none; }
  .live .hl-tx b { font-size: 12px; }
  .live .hl-no { font-size: 18px; }
  .live .meta { font-size: 9px; }
  .live .st-body h2 { font-size: 23px; }
  .live.panel-off .live-cam { display: flex; }
  .live.panel-off .live-main { overflow-y: auto; }
}
@media (max-height:700px) {
  .live .live-main { overflow-y: auto; align-items: start; }
  .live .live-cam { min-height: auto; }
  .live .live-panel { max-height: calc(100dvh - 76px); }
}
@media (max-width:900px) and (max-height:700px) {
  .live .live-main { display: block; }
  .live .live-panel { margin-top: 8px; max-height: none; overflow: visible; }
  .live .cam-frame { aspect-ratio: 3 / 2; }
}
@media (prefers-reduced-motion:reduce) {
  .live *,.live *::before,.live *::after,.toast {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
  .live .mic-meter b { transform: none; }
}
@media (forced-colors:active) {
  .live :where(button,.hl-card,.caption,.fact,.live-panel) { border: 1px solid ButtonText; }
  .live .hl-card.reading { outline: 2px solid Highlight; }
}

/* sowetan_snippets_v1 - the caption carries the image's background snippet; a viewer's question flashes the stage */
.live .vis-cap .vis-snip { margin: 4px 0 2px; max-width: 78%; font: 400 12.5px/1.45 Poppins, sans-serif; color: #e6e6e8; text-shadow: 0 1px 8px #000;
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden; }
.live .st-hero.asked { animation: vis-asked 1.1s ease-out 1; }
@keyframes vis-asked { 0% { box-shadow: inset 0 0 0 2px rgba(255,255,255,.55); } 100% { box-shadow: inset 0 0 0 2px rgba(255,255,255,0); } }
@media (max-width: 900px) { .live .vis-cap .vis-snip { max-width: 100%; -webkit-line-clamp: 2; font-size: 11.5px; } }
@media (prefers-reduced-motion: reduce) { .live .st-hero.asked { animation: none; } }

/* sowetan_cached_brief_v1: this morning's brief video, then a short cross-fade to the live Lerato at her last word */
.live .cam-brief { opacity: 0; }
.live.clip-on .cam-brief { opacity: 1; }
.live.clip-on .cam-idle, .live.clip-on .cam-live { opacity: 0; }
.live .cam-frame video { transition: opacity .25s ease; }
@media (prefers-reduced-motion: reduce) { .live .cam-frame video { transition: none; } }

/* sowetan_adbreak_v1: a TV-style ad break inside the recorded brief. The ad video sits above the newsroom canvas, whole
   (never cropped, never keyed), with the "AD 1 of 3 - brand - 0:09" tag, the legal line and an optional link button. */
.live .cam-frame .cam-ad { opacity: 0; object-fit: contain; object-position: 50% 50%; background: #000; pointer-events: none; }
.live.ad-on .cam-frame .cam-ad { opacity: 1; z-index: 2; }
.live .cam-adui { position: absolute; inset: 0; z-index: 3; pointer-events: none; }
.live .cam-adui[hidden] { display: none; }
.live .ad-tag { position: absolute; top: 8px; left: 8px; display: flex; align-items: center; gap: 8px; max-width: calc(100% - 68px); padding: 5px 10px 5px 5px;
  border: 1px solid #ffffff50; border-radius: 22px; background: #040202dc; color: #fff; font-size: 10px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; white-space: nowrap; }
.live .ad-tag b { padding: 2px 7px; border-radius: 12px; background: var(--red); font-weight: 700; }
.live .ad-tag span:empty { display: none; }
.live .ad-tag .ad-brand { overflow: hidden; text-overflow: ellipsis; }
.live .ad-tag .ad-brand::before, .live .ad-tag .ad-left::before { content: "·"; margin-right: 8px; opacity: .6; }
.live .ad-tag .ad-left { font-variant-numeric: tabular-nums; }
.live .ad-legal { position: absolute; left: 10px; bottom: 8px; max-width: 58%; color: #ffffffb8; font-size: 9px; line-height: 1.3; text-shadow: 0 1px 4px #000; }
.live .ad-cta { position: absolute; right: 8px; bottom: 8px; pointer-events: auto; padding: 8px 14px; border-radius: 10px; background: var(--red); color: #fff;
  font-size: 12px; font-weight: 700; text-decoration: none; box-shadow: 0 4px 14px #0009; }
.live .ad-cta[hidden] { display: none; }
/* sowetan_preroll_v1: "scan to talk to <agent>" - a white QR card in the ad's bottom-right corner (the frame's close
   button owns the top-right); it sits above the link button when the ad has one */
.live .ab-qr { position: absolute; top: auto; left: auto; bottom: 8px; right: 8px; display: block; text-align: center;
  width: clamp(76px, 17%, 132px); padding: 6px 6px 5px; border-radius: 10px; background: #fff; box-shadow: 0 6px 18px #000a; }
.live .ab-qr[hidden] { display: none; }
.live .cam-adui:has(.ad-cta:not([hidden])) .ab-qr { bottom: 52px; }
.live .ab-qr img { display: block; width: 100%; height: auto; aspect-ratio: 1; }
.live .ab-qr-t { display: block; margin-top: 4px; color: #0a0a0a; font-size: 9.5px; font-weight: 700; line-height: 1.15; text-align: center; }
.live .ad-cta:hover, .live .ad-cta:focus-visible { background: #fff; color: #0a0a0a; }
.live.ad-on .cam-state, .live.ad-on .cam-lower { visibility: hidden; }

/* ---------- sowetan_receipts_v1: where Lerato's words come from ----------
   A slim strip UNDER the cam frame (the frame never moves and nothing covers her face or the transcript), plus a
   Sources list at the end of each of her transcript rows. Red accent only; one line of meta, one headline. */
.live .rcpt {
  flex: none;
  display: grid;
  grid-template-columns: minmax(0,1fr) auto;
  align-items: center;
  gap: 3px 12px;
  padding: 8px 12px 9px 13px;
  border: 1px solid #2a2a2e;
  border-left: 3px solid var(--red);
  border-radius: 12px;
  background: linear-gradient(180deg,#151517,#101012);
  font-family: Poppins, Inter, system-ui, sans-serif;
  animation: rcpt-in .28s ease-out;
}
.live .rcpt[hidden] { display: none; }
@keyframes rcpt-in { from { opacity: 0; transform: translateY(-3px); } to { opacity: 1; transform: none; } }
.live .rc-k { grid-column: 1; display: inline-flex; align-items: center; gap: 7px; min-width: 0; font-size: 10px; font-weight: 600; line-height: 1.2; letter-spacing: .14em; text-transform: uppercase; color: #c9c9cb; }
.live .rc-k i { flex: none; width: 6px; height: 6px; border-radius: 50%; background: var(--red); }
.live .rc-m { grid-column: 1; display: flex; flex-wrap: wrap; gap: 2px 0; min-width: 0; font-size: 11px; line-height: 1.35; color: #9a9aa0; }
.live .rc-m > span + span::before { content: "\00b7"; margin: 0 6px; color: #5c5c62; }
.live .rc-m .rc-pos { color: #fff; font-weight: 600; font-variant-numeric: tabular-nums; }
.live .rc-h { grid-column: 1; min-width: 0; overflow: hidden; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; font-size: 13px; font-weight: 600; line-height: 1.3; color: #fff; }
.live .rc-a { grid-column: 2; grid-row: 1 / span 3; align-self: center; display: inline-flex; align-items: center; gap: 5px; min-height: 36px; padding: 6px 11px; border: 1px solid #3a3a3e; border-radius: 999px; color: #fff; font-size: 11px; font-weight: 600; line-height: 1; text-decoration: none; white-space: nowrap; }
.live .rc-a svg, .live .rc-l svg { flex: none; width: 12px; height: 12px; color: var(--red); }
.live .rc-a:hover, .live .rc-a:focus-visible { border-color: var(--red); }
.live .rc-l { grid-column: 1 / -1; display: grid; gap: 2px; margin: 2px 0 0; padding: 0; list-style: none; min-width: 0; }
.live .rc-l li { min-width: 0; }
.live .rc-l a, .live .rc-l .rc-nolink { display: grid; grid-template-columns: minmax(0,1fr) auto auto; align-items: baseline; gap: 10px; min-height: 26px; padding: 3px 0; color: #fff; text-decoration: none; border-top: 1px dashed #26262a; }
.live .rc-l li:first-child a, .live .rc-l li:first-child .rc-nolink { border-top: 0; }
.live .rc-l b { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12.5px; font-weight: 600; }
.live .rc-l span span, .live .rc-l a > span { font-size: 10.5px; color: #9a9aa0; white-space: nowrap; }
.live .rc-l a:hover b, .live .rc-l a:focus-visible b { text-decoration: underline; text-decoration-color: var(--red); text-underline-offset: 3px; }
.live .rc-l svg { align-self: center; }
.live.panel-off .rcpt { grid-column: 2; }

.live .sc-src { grid-column: 2; min-width: 0; margin-top: 2px; padding-left: 9px; border-left: 2px solid var(--red); font-family: Poppins, Inter, system-ui, sans-serif; }
.live .sc-src-k { display: block; font-size: 9.5px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: #9a9aa0; }
.live .sc-src ol { display: grid; gap: 1px; margin: 3px 0 0; padding: 0; list-style: none; }
.live .sc-src li { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 8px; min-width: 0; font-size: 12px; line-height: 1.45; color: #d6d6d9; }
.live .sc-src a { color: #fff; text-decoration: underline; text-decoration-color: #ff2d2d99; text-underline-offset: 3px; overflow-wrap: anywhere; }
.live .sc-src a:hover, .live .sc-src a:focus-visible { text-decoration-color: var(--red); }
.live .sc-src time { font-size: 10.5px; color: #8e8e94; white-space: nowrap; }
.live .sc-src-more { display: block; margin-top: 2px; font-size: 10.5px; color: #8e8e94; }

@media (max-width: 900px) {
  .live .rcpt { gap: 2px 8px; padding: 6px 9px 7px 10px; border-radius: 11px; }
  .live .rc-k { font-size: 9px; letter-spacing: .12em; }
  .live .rc-m { font-size: 10px; }
  .live .rc-h { font-size: 12px; -webkit-line-clamp: 1; }
  .live .rc-a { min-height: 34px; padding: 5px 9px; font-size: 10.5px; }
  .live .rc-l a, .live .rc-l .rc-nolink { gap: 8px; min-height: 24px; padding: 2px 0; }
  .live .rc-l b { font-size: 11.5px; }
  .live .sc-src li { font-size: 11px; }
}
@media (max-width: 380px) {
  .live .rc-l a, .live .rc-l .rc-nolink { grid-template-columns: minmax(0,1fr) auto; gap: 0 8px; }
  .live .rc-l a > span, .live .rc-l .rc-nolink > span { grid-column: 1; grid-row: 2; font-size: 10px; }
  .live .rc-l svg { grid-column: 2; grid-row: 1 / span 2; }
}
@media (prefers-reduced-motion: reduce) { .live .rcpt { animation: none; } }
@media (forced-colors: active) { .live .rcpt, .live .sc-src { border: 1px solid ButtonText; } }

/* sowetan_speak_off_v1: no talking - no mic state, no live-only bulletin */
html[data-speak="off"] #lvMic, html[data-speak="off"] .myd-card, html[data-speak="off"] [data-mybulletin],
html[data-speak="off"] [data-mybulletin-play] { display: none !important; }
html[data-speak="off"] .tips { display: none !important; }   /* no voice commands to suggest */
