:root { color-scheme: only dark; }   /* (a TV or phone browser's automatic dark mode would otherwise repaint the channel's colours) */
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; background: #000; overflow: hidden; }
body { font-family: Barlow, system-ui, sans-serif; color: #fff; }
a { color: inherit; text-decoration: none; }

.stage {
  position: absolute; left: 50%; top: 50%; width: 1920px; height: 1080px;
  transform-origin: 50% 50%; overflow: hidden; background: var(--bg);
  transition: background-color .6s ease;
}
.cond { font-family: 'Barlow Condensed', system-ui, sans-serif; }

/* top */
.top { position: absolute; left: 96px; right: 96px; top: 56px; display: flex; justify-content: space-between; align-items: center; }
.bug { display: flex; font-family: 'Barlow Condensed', sans-serif; font-size: 36px; line-height: 1; }
.bug-name { background: #fff; color: #08121F; padding: 10px 18px; font-weight: 800; letter-spacing: 1px; }
.bug-name:has(img) { background: none; padding: 0 14px 0 0; }
.bug-name img { display: block; height: 52px; width: auto; max-width: 240px; object-fit: contain; }
.bumper-logo { display: inline-block; height: 1.25em; width: auto; vertical-align: middle; }
.sp-logo { display: block; max-height: 44px; max-width: 220px; width: auto; background: #fff; padding: 4px 8px; border-radius: 4px; }
.bug-live { background: var(--accent); color: #08121F; padding: 10px 16px; font-weight: 700; transition: background-color .6s; }
.top-right { display: flex; gap: 16px; align-items: center; font-family: 'Barlow Condensed', sans-serif; font-size: 30px; font-weight: 700; line-height: 1; }
.live-dot { display: flex; align-items: center; gap: 10px; background: #C8102E; padding: 10px 16px; }
.live-dot i { width: 13px; height: 13px; border-radius: 50%; background: #fff; animation: pulse 1.6s ease-in-out infinite; }
.clock { background: rgba(255,255,255,.08); padding: 10px 16px; font-weight: 600; }
@keyframes pulse { 50% { opacity: .35; } }

/* main */
.main { position: absolute; left: 96px; right: 96px; top: 168px; height: 600px; display: flex; gap: 64px; }
.story { flex: 1.25; display: flex; flex-direction: column; gap: 26px; padding-top: 20px; }
.kicker { display: flex; align-items: center; gap: 14px; font-family: 'Barlow Condensed', sans-serif; font-weight: 700; font-size: 32px; letter-spacing: 3px; color: var(--accent); text-transform: uppercase; }
.kicker .bar { width: 44px; height: 7px; background: var(--accent); }
.headline { font-family: 'Barlow Condensed', sans-serif; font-weight: 800; font-size: 84px; line-height: 1; text-transform: uppercase; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.headline:hover { text-decoration: underline; text-decoration-thickness: 4px; }
.headline.long { font-size: 70px; }
.chips { display: flex; flex-wrap: wrap; gap: 12px; }
.chip { border: 1px solid rgba(255,255,255,.28); padding: 7px 14px; font-size: 26px; color: rgba(255,255,255,.85); }
.chip.hot { background: #C8102E; border-color: #C8102E; color: #fff; font-weight: 700; }
@keyframes enter { from { opacity: 0; transform: translateY(26px); } }

.side { flex: 1; background: rgba(255,255,255,.06); padding: 26px 30px; display: flex; flex-direction: column; gap: 14px; overflow: hidden; }
.side-title { font-family: 'Barlow Condensed', sans-serif; font-weight: 700; font-size: 26px; letter-spacing: 3px; color: rgba(255,255,255,.7); }
.side-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.side-list li { display: flex; flex-direction: column; gap: 4px; padding: 14px 16px; background: rgba(0,0,0,.18); border-left: 6px solid transparent; }
.side-list li.now { border-left-color: var(--accent); background: rgba(255,255,255,.09); }
.side-list .t { font-family: 'Barlow Condensed', sans-serif; font-weight: 700; font-size: 30px; line-height: 1.12; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.side-list .m { font-size: 21px; color: rgba(255,255,255,.7); }
.side-list .st { font-family: 'Barlow Condensed', sans-serif; font-weight: 800; font-size: 22px; letter-spacing: 2px; color: var(--accent); }

/* panels: weather + air, markets, cricket */
.panel { position: absolute; inset: 0; display: flex; flex-direction: column; gap: 18px; padding-top: 10px; }
.panel[hidden], .side[hidden], .story[hidden] { display: none; }
.grid4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.card { background: rgba(255,255,255,.07); padding: 24px 28px; display: flex; flex-direction: column; gap: 8px; }
.card .c { font-family: 'Barlow Condensed', sans-serif; font-weight: 700; font-size: 34px; letter-spacing: 1px; }
.card .t { font-family: 'Barlow Condensed', sans-serif; font-weight: 800; font-size: 78px; line-height: 1; }
.card .d { font-size: 23px; color: rgba(255,255,255,.8); }
.aqi { display: flex; gap: 10px; align-items: baseline; font-size: 23px; color: rgba(255,255,255,.85); border-left: 8px solid var(--q); padding-left: 10px; }
.aqi b { font-family: 'Barlow Condensed', sans-serif; font-size: 28px; color: #fff; }
.card.mk { border-top: 6px solid #8A94A3; padding: 30px 32px; gap: 12px; }
.card.mk .t { font-size: 92px; }
.card.mk.up { border-top-color: #3FBF5F; } .card.mk.down { border-top-color: #E8323C; }
.chg { font-family: 'Barlow Condensed', sans-serif; font-weight: 700; font-size: 34px; }
.mk.up .chg { color: #6EE08A; } .mk.down .chg { color: #FF7A7F; }
.score { display: flex; flex-direction: column; gap: 8px; }
.score .row { display: flex; align-items: center; gap: 20px; background: rgba(255,255,255,.06); padding: 8px 22px; }
.score .row.live { background: rgba(255,255,255,.12); }
.score .tag { font-family: 'Barlow Condensed', sans-serif; font-weight: 800; font-size: 22px; letter-spacing: 2px; padding: 4px 10px; background: rgba(255,255,255,.18); min-width: 82px; text-align: center; }
.score .row.live .tag { background: #C8102E; }
.score b { font-family: 'Barlow Condensed', sans-serif; font-weight: 700; font-size: 36px; }
.panel-note { font-size: 21px; color: rgba(255,255,255,.65); }

/* markets strip (top bar) */
.bug, .top-right { flex-shrink: 0; white-space: nowrap; }
.mkt { flex: 1; min-width: 0; overflow: hidden; justify-content: center; margin: 0 28px; display: flex; align-items: center; gap: 22px; font-family: 'Barlow Condensed', sans-serif; font-size: 27px; font-weight: 600; white-space: nowrap; }
.mkt[hidden] { display: none; }
.mkt-state { font-size: 19px; letter-spacing: 2px; padding: 5px 9px; background: rgba(255,255,255,.12); color: rgba(255,255,255,.75); }
.mkt-state.open { background: #1E7A4C; color: #fff; }
.mkt-q b { font-weight: 700; color: rgba(255,255,255,.7); margin-right: 4px; }
.mkt-q i { font-style: normal; }
.mkt-q i.up { color: #6EE08A; } .mkt-q i.down { color: #FF7A7F; }

/* live cricket bug */
.cricket-bug { position: absolute; right: 96px; top: 124px; z-index: 2; display: flex; align-items: stretch; font-family: 'Barlow Condensed', sans-serif; font-size: 25px; max-width: 900px; }
.cricket-bug[hidden] { display: none; }
.cricket-bug span { background: #1E7A4C; padding: 4px 12px; font-weight: 800; letter-spacing: 2px; font-size: 19px; display: flex; align-items: center; }
.cricket-bug b { background: rgba(0,0,0,.45); padding: 4px 14px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* around the states: tile map */
.side-list .map-wrap { background: none; border: 0; padding: 0; gap: 14px; }
.tilemap { display: grid; grid-template-columns: repeat(10, 62px); grid-template-rows: repeat(7, 58px); gap: 6px; }
.tile { display: flex; align-items: center; justify-content: center; background: rgba(255,255,255,.07); font-family: 'Barlow Condensed', sans-serif; font-weight: 700; font-size: 21px; color: rgba(255,255,255,.4); }
.tile.news { background: rgba(255,255,255,.2); color: #fff; }
.tile.cur { background: var(--accent); color: #08121F; transform: scale(1.12); }
.map-note { font-size: 22px; color: rgba(255,255,255,.7); }
.map-note b { color: #fff; font-family: 'Barlow Condensed', sans-serif; font-size: 28px; }

/* special coverage */
.stage.is-special .bug-live { background: #E8323C; color: #fff; }
.stage.is-special .bug-live::after { content: ' · SPECIAL'; }

/* language editions: Indic scripts don't take capitals or condensed Latin type */
body.indic .headline, body.indic .side-list .t, body.indic .kicker, body.indic .crawl-track, body.indic .rail b, body.indic .bumper-text strong, body.indic .crawl-tag {
  font-family: 'Noto Sans Devanagari', 'Noto Sans Tamil', 'Noto Sans Telugu', 'Noto Sans Bengali', 'Noto Sans TC', 'Barlow Condensed', sans-serif; text-transform: none; letter-spacing: 0;
}
body.indic .headline { font-size: 68px; line-height: 1.22; font-weight: 700; }
body.indic .headline.long { font-size: 58px; }
body.indic .side-list .t { font-size: 26px; line-height: 1.35; }
body.indic .crawl-track { font-size: 28px; }

/* edition switcher (outside the 16:9 frame) */
.langs { position: fixed; left: 50%; bottom: 8px; transform: translateX(-50%); z-index: 10; display: flex; gap: 4px; padding: 4px; border-radius: 22px; background: rgba(255,255,255,.92); }
.langs a { min-height: 36px; display: flex; align-items: center; padding: 0 12px; border-radius: 18px; color: #08121F; font: 600 15px Barlow, 'Noto Sans Devanagari', sans-serif; }
.langs a[aria-current="true"] { background: #F2A33A; }
.langs a:focus-visible { outline: 3px solid #F2A33A; outline-offset: 2px; }
body.stream .langs, body.stream .voice-btn { display: none; }
.voice-btn.sound-btn { right: 236px; }
.langs, .voice-btn { transition: opacity .4s; }
body.idle .langs, body.idle .voice-btn { opacity: 0; pointer-events: none; }
body.stream { cursor: none; }

/* up next */
.rail { position: absolute; left: 96px; right: 96px; top: 800px; display: flex; gap: 14px; }
.rail div { flex: 1; background: rgba(255,255,255,.07); padding: 14px 20px; display: flex; flex-direction: column; gap: 4px; border-top: 5px solid var(--c, #fff); }
.rail small { font-family: 'Barlow Condensed', sans-serif; font-weight: 700; font-size: 21px; letter-spacing: 2px; color: rgba(255,255,255,.65); }
.rail b { font-family: 'Barlow Condensed', sans-serif; font-weight: 700; font-size: 30px; }

.stage.is-breaking .kicker { color: #fff; }
.stage.is-breaking .kicker .bar { background: #E8323C; }
.stage.is-breaking .kicker span:last-child { background: #E8323C; padding: 4px 14px; animation: pulse 1.6s ease-in-out infinite; }

/* crawl */
.crawl { position: absolute; left: 0; right: 0; bottom: 34px; height: 76px; background: #fff; color: #08121F; display: flex; align-items: center; }
.crawl-tag { position: relative; z-index: 1; height: 76px; padding: 0 26px; display: flex; align-items: center; background: var(--accent); font-family: 'Barlow Condensed', sans-serif; font-weight: 800; font-size: 32px; transition: background-color .6s; }
.crawl-window { flex: 1; overflow: hidden; height: 76px; display: flex; align-items: center; }
.crawl-track { display: flex; gap: 56px; white-space: nowrap; padding-left: 40px; font-family: 'Barlow Condensed', sans-serif; font-weight: 600; font-size: 34px; animation: crawl linear infinite; will-change: transform; }
.crawl-track em { font-style: normal; color: #5A6779; font-weight: 500; }
@keyframes crawl { to { transform: translateX(-50%); } }

.foot { position: absolute; left: 0; right: 0; bottom: 0; height: 34px; display: flex; align-items: center; padding: 0 96px; font-size: 18px; color: rgba(255,255,255,.7); background: rgba(0,0,0,.35); }

/* voice button (outside the 16:9 frame) */
.voice-btn { position: fixed; right: 16px; bottom: 8px; z-index: 10; display: flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px; border: 0; border-radius: 22px; background: rgba(255,255,255,.92); color: #08121F; font: 600 15px Barlow, sans-serif; cursor: pointer; }
.voice-btn[aria-pressed="true"] { background: #F2A33A; }
.voice-btn:focus-visible { outline: 3px solid #F2A33A; outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) { body:not(.stream) .crawl-track { animation-duration: 0s !important; } }

/* ================= the graphics package ================= */

/* moving background: two soft light beams drifting across, under everything */
.bg-motion { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.bg-motion i { position: absolute; top: -50%; left: -30%; width: 60%; height: 200%; transform: rotate(18deg); background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--accent) 9%, transparent), transparent); animation: beam 38s linear infinite; }
.bg-motion i + i { width: 30%; animation-duration: 55s; animation-delay: -20s; background: linear-gradient(90deg, transparent, rgba(255,255,255,.035), transparent); }
@keyframes beam { from { transform: translateX(-40%) rotate(18deg); } to { transform: translateX(260%) rotate(18deg); } }
.top, .main, .rail, .crawl, .foot, .cricket-bug, .countdown { z-index: 1; }

/* logo shine every 14 s */
.bug-name { position: relative; overflow: hidden; }
.bug-name::after { content: ''; position: absolute; top: 0; bottom: 0; width: 60px; left: -80px; transform: skewX(-20deg); background: linear-gradient(90deg, transparent, rgba(242,163,58,.55), transparent); animation: shine 14s ease-in-out infinite; }
@keyframes shine { 0%, 88% { left: -80px; } 100% { left: 110%; } }
.date { color: rgba(255,255,255,.8); }

/* story wipe: an accent slab sweeps in from the left, the new story lands under it, the slab leaves to the right */
.story { position: relative; }
.story::before, .story::after { content: ''; position: absolute; top: -8px; bottom: -8px; left: -96px; right: -40px; transform: scaleX(0); transform-origin: left; z-index: 2; pointer-events: none; }
.story::before { background: var(--accent); }
.story::after { background: #fff; height: 10px; top: auto; bottom: 22%; }
.story.wiping::before { animation: wipe .95s cubic-bezier(.75,0,.25,1) both; }
.story.wiping::after { animation: wipe .95s cubic-bezier(.75,0,.25,1) .06s both; }
@keyframes wipe { 0% { transform: scaleX(0); transform-origin: left; } 40% { transform: scaleX(1); transform-origin: left; } 41% { transform: scaleX(1); transform-origin: right; } 100% { transform: scaleX(0); transform-origin: right; } }

/* headline word by word, chips and the side list in a cascade */
.hl-row { display: flex; gap: 28px; align-items: flex-start; }
.hl-num { flex-shrink: 0; font-family: 'Barlow Condensed', sans-serif; font-weight: 800; font-size: 210px; line-height: .8; color: var(--accent); animation: numIn .6s cubic-bezier(.2,.8,.2,1) both; }
.hl-num[hidden] { display: none; }
@keyframes numIn { from { opacity: 0; transform: translateX(-40px) scale(.8); } }
.headline .w { display: inline-block; animation: wordIn .55s cubic-bezier(.2,.8,.2,1) both; animation-delay: calc(var(--i) * 45ms); }
@keyframes wordIn { from { opacity: 0; transform: translateY(.45em); filter: blur(4px); } }
.chips .chip { animation: chipIn .45s cubic-bezier(.2,.8,.2,1) both; animation-delay: calc(.35s + var(--i, 0) * 80ms); }
@keyframes chipIn { from { opacity: 0; transform: translateX(-18px); } }
.side-list li { animation: sideIn .5s cubic-bezier(.2,.8,.2,1) both; animation-delay: calc(.2s + var(--i, 0) * 70ms); }
@keyframes sideIn { from { opacity: 0; transform: translateX(30px); } }
.panel > * { animation: chipIn .5s cubic-bezier(.2,.8,.2,1) both; }
.panel .card, .panel .row { animation: panelIn .55s cubic-bezier(.2,.8,.2,1) both; }
.panel .card:nth-child(2), .panel .row:nth-child(2) { animation-delay: .07s; } .panel .card:nth-child(3), .panel .row:nth-child(3) { animation-delay: .14s; }
.panel .card:nth-child(4), .panel .row:nth-child(4) { animation-delay: .21s; } .panel .card:nth-child(5), .panel .row:nth-child(5) { animation-delay: .28s; }
.panel .card:nth-child(6), .panel .row:nth-child(6) { animation-delay: .35s; } .panel .card:nth-child(7), .panel .row:nth-child(7) { animation-delay: .42s; }
.panel .card:nth-child(8) { animation-delay: .49s; }
@keyframes panelIn { from { opacity: 0; transform: translateY(24px) scale(.97); } }

/* story timer */
.progress { height: 6px; background: rgba(255,255,255,.12); width: 100%; max-width: 760px; margin-top: 4px; }
.progress i { display: block; height: 100%; width: 100%; background: var(--accent); transform-origin: left; transform: scaleX(0); }
@keyframes progress { from { transform: scaleX(0); } to { transform: scaleX(1); } }

/* crawl section labels */
.crawl-track .cat { font-weight: 800; font-size: 22px; letter-spacing: 1.5px; color: #fff; background: var(--c); padding: 3px 9px; margin-right: 14px; vertical-align: 4px; }
.crawl-track > span { display: inline-flex; align-items: center; }

/* countdown (to the hourly headlines, or the next show) */
.countdown { position: absolute; left: 96px; top: 124px; display: flex; align-items: stretch; font-family: 'Barlow Condensed', sans-serif; animation: chipIn .5s both; }
.countdown[hidden] { display: none; }
.countdown small { background: #C8102E; padding: 4px 12px; font-weight: 800; letter-spacing: 2px; font-size: 19px; display: flex; align-items: center; }
.countdown b { background: rgba(0,0,0,.45); padding: 4px 14px; font-weight: 700; font-size: 25px; }
.countdown span { background: #fff; color: #08121F; padding: 4px 14px; font-weight: 800; font-size: 25px; min-width: 76px; text-align: center; font-variant-numeric: tabular-nums; }
.rail .soon { animation: soon 1.6s ease-in-out infinite; }
@keyframes soon { 50% { background: rgba(200,16,46,.35); } }

/* stings: three skewed slabs sweep in, the title lands, the slabs sweep out (timed by --dur) */
.bumper { position: absolute; inset: 0; z-index: 5; overflow: hidden; display: flex; align-items: center; padding-left: 160px; color: #fff; --dur: 3.2s; }
.bumper[hidden] { display: none; }
.bumper .slab { position: absolute; top: -10%; bottom: -10%; left: -25%; width: 150%; transform: translateX(-110%) skewX(-14deg); }
.bumper .s1 { background: var(--accent); }
.bumper .s2 { background: #08121F; }
.bumper .s3 { background: #fff; width: 24px; left: 30%; }
.bumper.play .s1 { animation: slab var(--dur) cubic-bezier(.7,0,.3,1) both; }
.bumper.play .s2 { animation: slab var(--dur) cubic-bezier(.7,0,.3,1) .12s both; }
.bumper.play .s3 { animation: bar var(--dur) cubic-bezier(.7,0,.3,1) .05s both; }
@keyframes slab { 0% { transform: translateX(-110%) skewX(-14deg); } 18%, 84% { transform: translateX(0) skewX(-14deg); } 100% { transform: translateX(110%) skewX(-14deg); } }
@keyframes bar { 0% { transform: translateX(-2000px) skewX(-14deg); } 22% { transform: translateX(0) skewX(-14deg); } 80% { transform: translateX(900px) skewX(-14deg); } 100% { transform: translateX(3000px) skewX(-14deg); } }
.bumper .rays { position: absolute; inset: 0; opacity: 0; background: repeating-linear-gradient(-76deg, transparent 0 60px, color-mix(in srgb, var(--accent) 22%, transparent) 60px 64px); }
.bumper.play .rays { animation: rays var(--dur) linear both; }
@keyframes rays { 0%, 15% { opacity: 0; transform: translateX(0); } 25%, 80% { opacity: 1; } 100% { opacity: 0; transform: translateX(-300px); } }
.bumper-text { position: relative; display: flex; flex-direction: column; gap: 8px; opacity: 0; }
.bumper.play .bumper-text { animation: btext var(--dur) cubic-bezier(.2,.8,.2,1) both; }
@keyframes btext { 0%, 16% { opacity: 0; transform: translateX(-60px); } 26%, 80% { opacity: 1; transform: none; } 92%, 100% { opacity: 0; transform: translateX(80px); } }
.bumper-text small { font-family: 'Barlow Condensed', sans-serif; font-weight: 700; font-size: 34px; letter-spacing: 6px; color: var(--accent); }
.bumper-text strong { font-family: 'Barlow Condensed', sans-serif; font-weight: 800; font-size: 150px; line-height: .92; text-transform: uppercase; }
.bumper-text em { font-style: normal; font-family: 'Barlow Condensed', sans-serif; font-weight: 600; font-size: 40px; letter-spacing: 2px; color: rgba(255,255,255,.85); }
.bumper-text em:empty { display: none; }
/* show open: bigger, with an accent rule */
.bumper.show strong { font-size: 168px; }
.bumper.show .bumper-text::before { content: ''; width: 140px; height: 12px; background: var(--accent); margin-bottom: 10px; }
/* breaking: red, flashing */
.bumper.breaking .s2 { background: #7A0614; }
.bumper.breaking small { color: #fff; }
.bumper.breaking strong { font-size: 190px; }
.bumper.breaking.play strong { animation: flash .5s steps(2) 4 .9s; }
@keyframes flash { 50% { color: #FFD3D8; } }
/* ident: the channel name, spaced out then settling */
.bumper.ident { justify-content: center; padding-left: 0; text-align: center; }
.bumper.ident .bumper-text { align-items: center; }
.bumper.ident.play strong { animation: ident var(--dur) cubic-bezier(.2,.8,.2,1) both; }
@keyframes ident { 0%, 18% { letter-spacing: 60px; } 45%, 100% { letter-spacing: 4px; } }
.bumper.promo strong, .bumper.bell strong { font-size: 136px; }

body.indic .bumper-text strong, body.indic .countdown b { font-family: 'Noto Sans Devanagari', 'Noto Sans Tamil', 'Noto Sans Telugu', 'Noto Sans Bengali', 'Barlow Condensed', sans-serif; text-transform: none; }
body.indic .bumper-text strong { font-size: 120px; line-height: 1.2; }

@media (prefers-reduced-motion: reduce) {
  body:not(.stream) .headline .w, body:not(.stream) .chips .chip, body:not(.stream) .side-list li, body:not(.stream) .panel *, body:not(.stream) .bg-motion i, body:not(.stream) .bug-name::after { animation: none !important; }
  body:not(.stream) .bumper .bumper-text { animation: none !important; opacity: 1; }
  body:not(.stream) .bumper .slab { animation: none !important; transform: none; }
  body:not(.stream) .bumper .s3, body:not(.stream) .bumper .rays { display: none; }
}

/* powered by (footer) and "presented by" on sponsored desks */
.foot { justify-content: space-between; gap: 24px; }
.foot #foot { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.powered { flex-shrink: 0; color: rgba(255,255,255,.75); }
.powered b { color: #fff; font-weight: 700; }
.presented { position: absolute; right: 96px; top: 772px; z-index: 2; display: flex; align-items: center; gap: 10px; font-family: 'Barlow Condensed', sans-serif; animation: chipIn .5s both; }
.presented[hidden] { display: none; }
.presented small { font-size: 17px; letter-spacing: 2px; font-weight: 700; color: rgba(255,255,255,.7); }
.presented b { font-size: 22px; font-weight: 800; letter-spacing: 1px; background: #fff; color: #08121F; padding: 2px 10px; }
.crawl-track em { margin-left: 10px; }

/* ================= event screens (public/events.js) ================= */
.panel.quiet, .panel.quiet * { animation: none !important; }
.stage.is-event .bug-live { background: var(--accent); color: #08121F; }
.bumper.calm .s1 { opacity: .6; } .bumper.calm .rays { display: none; }
.bumper.win .rays { background: repeating-conic-gradient(from 0deg at 30% 50%, transparent 0 8deg, color-mix(in srgb, var(--accent) 30%, transparent) 8deg 12deg); }
.bumper.win strong { font-size: 170px; }
.bumper.win em { font-size: 46px; color: #fff; }

/* seats board */
.ev-seats { display: grid; grid-template-columns: repeat(var(--cols), minmax(0, 1fr)); gap: 16px; }
.ev-seat { background: rgba(255,255,255,.07); border-top: 8px solid var(--p); padding: 16px 22px; display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.ev-seat-top { display: flex; justify-content: space-between; gap: 10px; align-items: baseline; font-family: 'Barlow Condensed', sans-serif; }
.ev-seat-top b { font-size: 34px; font-weight: 800; letter-spacing: .5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ev-seat-top span { font-size: 20px; color: rgba(255,255,255,.65); white-space: nowrap; }
.ev-seat-name { font-family: 'Barlow Condensed', sans-serif; font-weight: 700; font-size: 40px; line-height: 1.05; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ev-seat-row { display: flex; gap: 10px; align-items: center; font-family: 'Barlow Condensed', sans-serif; font-size: 24px; flex-wrap: wrap; }
.ev-party { background: var(--p); color: #08121F; font-weight: 800; padding: 2px 10px; }
.ev-status { font-weight: 800; letter-spacing: 2px; padding: 2px 10px; background: rgba(255,255,255,.15); }
.ev-seat.won .ev-status { background: #fff; color: #08121F; }
.ev-seat.leading .ev-status { animation: pulse 1.6s ease-in-out infinite; }
.ev-margin { color: rgba(255,255,255,.85); font-weight: 600; }
.ev-runner { font-size: 20px; color: rgba(255,255,255,.65); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* tally */
.ev-tally { display: flex; flex-direction: column; gap: 14px; }
.ev-bar { position: relative; display: flex; height: 64px; background: rgba(255,255,255,.08); }
.ev-bar i { display: block; height: 100%; transition: width .8s; }
.ev-bar i.lead { opacity: .45; }
.ev-bar em { position: absolute; top: -12px; bottom: -12px; width: 4px; margin-left: -2px; background: #fff; }
.ev-bar em span { position: absolute; top: -32px; left: 50%; transform: translateX(-50%); white-space: nowrap; font: 800 20px 'Barlow Condensed', sans-serif; letter-spacing: 2px; font-style: normal; }
.ev-bar-key { display: flex; gap: 24px; font-size: 21px; color: rgba(255,255,255,.75); }
.ev-bar-key i { display: inline-block; width: 18px; height: 18px; background: #fff; margin-right: 8px; vertical-align: -2px; }
.ev-bar-key i.lead { opacity: .45; }
.ev-table { width: 100%; border-collapse: collapse; font-family: 'Barlow Condensed', sans-serif; font-size: 30px; }
.ev-table.big { font-size: 34px; }
.ev-table th { text-align: left; font-size: 20px; letter-spacing: 2px; color: rgba(255,255,255,.65); font-weight: 700; padding: 6px 14px; }
.ev-table td { padding: 8px 14px; background: rgba(255,255,255,.06); border-bottom: 4px solid var(--bg); }
.ev-table td i, .ev-table th i { display: inline-block; width: 16px; height: 16px; margin-right: 10px; }
.ev-table tr.now td { background: rgba(255,255,255,.16); }
.ev-table td.up { color: #6EE08A; } .ev-table td.down { color: #FF7A7F; }

/* maps */
.ev-map { display: flex; gap: 48px; align-items: flex-start; }
.tilemap.big { grid-template-columns: repeat(10, 74px); grid-template-rows: repeat(7, 66px); gap: 6px; }
.tilemap.big .tile { font-size: 24px; }
.ev-legend { display: flex; flex-direction: column; gap: 10px; font-size: 26px; }
.ev-legend b { font-family: 'Barlow Condensed', sans-serif; font-size: 40px; }
.ev-legend i { display: inline-block; width: 20px; height: 20px; margin-right: 10px; vertical-align: -2px; }
.ev-legend p { margin: 6px 0 0; font-size: 24px; color: rgba(255,255,255,.85); max-width: 640px; }
.ev-legend small { font-size: 19px; color: rgba(255,255,255,.6); }

/* turnout bars */
.ev-bars { display: flex; flex-direction: column; gap: 12px; }
.ev-barrow { display: grid; grid-template-columns: 300px 1fr 120px 170px; gap: 18px; align-items: center; font-family: 'Barlow Condensed', sans-serif; }
.ev-barrow .l { font-size: 30px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ev-barrow .track { position: relative; height: 34px; background: rgba(255,255,255,.08); }
.ev-barrow .track i { display: block; height: 100%; background: var(--accent); }
.ev-barrow .track em { position: absolute; top: -6px; bottom: -6px; width: 4px; background: #fff; }
.ev-barrow b { font-size: 38px; font-weight: 800; }
.ev-barrow small { font-size: 20px; color: rgba(255,255,255,.65); }

/* polls lock, lists, columns */
.ev-locked { max-width: 1300px; padding: 40px 48px; background: rgba(255,255,255,.07); border-left: 10px solid var(--accent); }
.ev-locked b { display: block; font: 800 56px 'Barlow Condensed', sans-serif; }
.ev-locked p { font-size: 30px; line-height: 1.4; color: rgba(255,255,255,.85); margin: 12px 0 0; }
.ev-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.ev-list li { display: flex; gap: 22px; align-items: center; background: rgba(255,255,255,.07); padding: 12px 22px; }
.ev-list li b { font: 800 46px 'Barlow Condensed', sans-serif; color: var(--accent); min-width: 40px; }
.ev-list li span { font: 700 34px 'Barlow Condensed', sans-serif; line-height: 1.15; }
.ev-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.ev-col { background: rgba(255,255,255,.07); padding: 20px 28px; font: 700 32px 'Barlow Condensed', sans-serif; display: flex; flex-direction: column; gap: 8px; }
.ev-col h3 { margin: 0 0 6px; font-size: 44px; font-weight: 800; letter-spacing: 2px; }
.ev-col.down h3, .ev-col.down div { color: #6EE08A; } .ev-col.up h3, .ev-col.up div { color: #FF7A7F; }

/* RBI */
.ev-rate { display: grid; grid-template-columns: 560px 1fr; gap: 40px; align-items: start; }
.ev-rate-card { background: rgba(255,255,255,.07); padding: 30px 36px; display: flex; flex-direction: column; gap: 10px; font-family: 'Barlow Condensed', sans-serif; }
.ev-rate-card small { font-size: 26px; letter-spacing: 3px; font-weight: 700; color: rgba(255,255,255,.7); }
.ev-rate-card b { font-size: 150px; font-weight: 800; line-height: .95; }
.ev-rate-card span { font-size: 44px; font-weight: 800; letter-spacing: 1px; }
.ev-rate-card span.cut { color: #6EE08A; } .ev-rate-card span.hike { color: #FF7A7F; }
.ev-rate-card em { font-style: normal; font-size: 26px; color: rgba(255,255,255,.85); font-family: Barlow, sans-serif; }
.ev-chart { width: 100%; height: auto; }
.ev-chart text { fill: rgba(255,255,255,.7); font: 600 20px Barlow, sans-serif; }
.ev-chart text.v { fill: #fff; font: 800 24px 'Barlow Condensed', sans-serif; }
blockquote { margin: 16px 0 0; font: 600 italic 30px Barlow, sans-serif; color: rgba(255,255,255,.9); border-left: 6px solid var(--accent); padding-left: 20px; }

/* disaster helplines */
.card.ev-help .t { font-size: 64px; letter-spacing: 1px; }

/* cricket */
.ev-score { display: flex; flex-direction: column; gap: 18px; }
.ev-teams { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.ev-teams div { background: rgba(255,255,255,.07); padding: 18px 28px; display: flex; flex-direction: column; font-family: 'Barlow Condensed', sans-serif; }
.ev-teams small { font-size: 34px; font-weight: 700; }
.ev-teams b { font-size: 100px; font-weight: 800; line-height: 1; }
.ev-teams em { font-style: normal; font-size: 28px; color: rgba(255,255,255,.75); }
.ev-eq { font: 800 40px 'Barlow Condensed', sans-serif; background: var(--accent); color: #08121F; padding: 8px 22px; align-self: flex-start; }

/* national days */
.ev-greet { height: 560px; display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; gap: 12px; font-family: 'Barlow Condensed', sans-serif; }
.ev-greet.tricolour { background: linear-gradient(180deg, rgba(255,153,51,.85) 0 33%, rgba(255,255,255,.92) 33% 66%, rgba(19,136,8,.85) 66%); color: #08121F; }
.ev-greet.festive { background: radial-gradient(circle at 30% 30%, rgba(242,163,58,.55), transparent 50%), radial-gradient(circle at 70% 70%, rgba(224,86,155,.5), transparent 50%), rgba(255,255,255,.06); }
.ev-greet small { font-size: 32px; letter-spacing: 6px; font-weight: 700; }
.ev-greet b { font-size: 120px; font-weight: 800; line-height: 1; }
.ev-greet em { font-style: normal; font-size: 44px; font-weight: 600; }

/* live updates */
.ev-updates { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.ev-updates li { display: flex; gap: 20px; align-items: baseline; background: rgba(255,255,255,.06); padding: 12px 22px; font-size: 28px; }
.ev-updates li.latest { background: rgba(255,255,255,.14); border-left: 8px solid var(--accent); font-size: 36px; font-weight: 600; }
.ev-updates time { font: 800 30px 'Barlow Condensed', sans-serif; color: var(--accent); min-width: 80px; }
.ev-updates .tag { font: 800 18px 'Barlow Condensed', sans-serif; letter-spacing: 2px; background: #C8102E; padding: 2px 8px; }

/* the anchor is speaking (a generated voice): labelled, as the voice rules require */
.ai-voice { position: absolute; left: 96px; top: 772px; z-index: 2; display: flex; align-items: center; gap: 10px; background: rgba(0,0,0,.5); border: 1px solid rgba(255,255,255,.35); padding: 4px 12px; font: 800 19px 'Barlow Condensed', sans-serif; letter-spacing: 2px; animation: chipIn .4s both; }
.ai-voice[hidden] { display: none; }
.ai-voice i { width: 10px; height: 10px; border-radius: 50%; background: #6EE08A; animation: pulse 1s ease-in-out infinite; }

/* the 16:9 picture sits in a clipped screen, so it never widens the page (phones would lay out at its width) */
.screen { position: fixed; inset: 0; overflow: hidden; }

/* phones and narrow screens: the picture on top, the buttons in a bar below it, always there, big enough to tap */
@media (max-width: 760px), (hover: none) and (orientation: portrait) {
  .screen { bottom: 112px; }
  .voice-btn, .voice-btn.sound-btn { position: fixed; top: auto; bottom: 62px; min-height: 44px; font-size: 15px; width: calc(50% - 18px); justify-content: center; }
  .voice-btn span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .voice-btn[hidden] { display: none; }
  #voiceBtn { display: none !important; }                     /* (on phones the anchor is the voice) */
  .voice-btn.sound-btn { width: calc(100% - 24px); min-height: 48px; font-size: 17px; }
  .voice-btn.sound-btn { left: 12px; right: auto; }
  .voice-btn:not(.sound-btn) { right: 12px; }
  .langs { left: 12px; right: 12px; bottom: 10px; transform: none; overflow-x: auto; justify-content: flex-start; border-radius: 14px; scrollbar-width: none; }
  .langs a { flex-shrink: 0; min-height: 40px; }
}
@media (hover: none) { body.idle .langs, body.idle .voice-btn { opacity: 1; pointer-events: auto; } }

/* viewer controls: hold this story, previous, next (not in the stream) */
.viewer-controls { position: fixed; left: 16px; bottom: 8px; z-index: 10; display: flex; gap: 4px; padding: 4px; border-radius: 24px; background: rgba(255,255,255,.92); transition: opacity .4s; }
.viewer-controls button { min-height: 40px; min-width: 44px; display: flex; align-items: center; justify-content: center; gap: 6px; padding: 0 12px; border: 0; border-radius: 20px; background: transparent; color: #08121F; font: 600 15px Barlow, sans-serif; cursor: pointer; }
.viewer-controls button[aria-pressed="true"] { background: #F2A33A; }
.viewer-controls button:focus-visible { outline: 3px solid #F2A33A; outline-offset: 2px; }
body.idle .viewer-controls { opacity: 0; pointer-events: none; }
body.stream .viewer-controls { display: none; }
body.held .progress i { animation-play-state: paused !important; }
@media (max-width: 760px), (hover: none) and (orientation: portrait) {
  .screen { bottom: 168px; }
  .viewer-controls { left: 12px; right: 12px; bottom: 116px; justify-content: space-between; border-radius: 14px; }
  .viewer-controls button { flex: 1; min-height: 44px; }
}

/* Phones held upright: the picture across the top, then the controls right under it (where the thumb expects them),
   then sound, then the editions; a hint to turn the phone for a bigger picture fills the rest */
@media (hover: none) and (orientation: portrait), (max-width: 760px) and (orientation: portrait) {
  .screen { top: env(safe-area-inset-top); bottom: auto; height: min(56.25vw, 60vh); }
  .viewer-controls { top: calc(env(safe-area-inset-top) + min(56.25vw, 60vh) + 12px); bottom: auto; }
  .voice-btn, .voice-btn.sound-btn { top: calc(env(safe-area-inset-top) + min(56.25vw, 60vh) + 72px); bottom: auto; }
  .langs { top: calc(env(safe-area-inset-top) + min(56.25vw, 60vh) + 132px); bottom: auto; }
  body:not(.stream)::after { content: '⟳  Turn your phone sideways for the full picture'; position: fixed; left: 0; right: 0; top: calc(env(safe-area-inset-top) + min(56.25vw, 60vh) + 200px); text-align: center; color: rgba(255,255,255,.45); font: 500 14px Barlow, sans-serif; pointer-events: none; }
  body.app:not(.stream)::after { top: calc(env(safe-area-inset-top) + min(56.25vw, 60vh) + 140px); }
}

/* Phones on their side: the picture as big as the screen allows, the buttons as a column of round icons in the
   black band beside it (never over the picture), clear of the notch and the home bar */
@media (hover: none) and (orientation: landscape) and (max-height: 540px) {
  .screen { top: 0; bottom: 0; left: env(safe-area-inset-left); right: calc(env(safe-area-inset-right) + 72px); height: auto; }
  .viewer-controls { left: auto; right: calc(env(safe-area-inset-right) + 10px); top: 50%; bottom: auto; transform: translateY(-50%); flex-direction: column; gap: 8px; padding: 0; background: none; border-radius: 0; }
  .viewer-controls button { flex: none; width: 52px; height: 52px; min-height: 0; min-width: 0; padding: 0; border-radius: 50%; background: rgba(255,255,255,.92); }
  .viewer-controls button[aria-pressed="true"] { background: #F2A33A; }
  #holdLabel { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .voice-btn, .voice-btn.sound-btn { left: auto; right: calc(env(safe-area-inset-right) + 10px); top: 12px; bottom: auto; width: 52px; height: 52px; min-height: 0; padding: 0; justify-content: center; border-radius: 50%; }
  .voice-btn span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  #voiceBtn { display: none !important; }
  .langs { display: none; }
  .voice-btn.sound-btn:not([aria-pressed="true"]) { animation: soundNudge 2.4s ease-in-out 3; }
}
@keyframes soundNudge { 0%, 100% { box-shadow: 0 0 0 0 rgba(242,163,58,.0); } 50% { box-shadow: 0 0 0 8px rgba(242,163,58,.55); } }
@media (hover: none) { body.idle .viewer-controls { opacity: 1; pointer-events: auto; } }

/* Traditional Chinese: a little more space between lines, no word gaps to break on */
html[lang="zh-Hant"] body.indic .headline { line-height: 1.3; word-break: normal; }
html[lang="zh-Hant"] body.indic .headline, html[lang="zh-Hant"] body.indic .side-list .t, html[lang="zh-Hant"] body.indic .crawl-track, html[lang="zh-Hant"] body.indic .rail b, html[lang="zh-Hant"] body.indic .kicker, html[lang="zh-Hant"] body.indic .bumper-text strong, html[lang="zh-Hant"] body.indic .crawl-tag {
  font-family: 'Barlow', 'Noto Sans TC', sans-serif;      /* (Latin letters and punctuation in the channel's font, Chinese in Noto Sans TC) */
}

/* inside the iOS app's Live tab: no language row (the app chooses), the picture can use that space */
body.app .langs { display: none; }
@media (max-width: 760px), (hover: none) and (orientation: portrait) { body.app .screen { bottom: 116px; } body.app .viewer-controls { bottom: 64px; } body.app .voice-btn.sound-btn { bottom: 10px; } }
/* the app draws its own native controls around the picture: the page is only the picture, filling its view */
body.app .viewer-controls, body.app .voice-btn, body.app .langs { display: none !important; }
body.app .screen { inset: 0 !important; height: auto !important; }
body.app::after { content: none !important; }
