/* Commentator studio: a broadcast screen, a live energy ladder and the commentator's board. */
.studio .st-top { background: var(--field-2); color: #fff; padding: 56px 0 44px; }
.studio .st-top .crumb { color: #b9cbe6; font-size: 16px; }
.studio .st-top .crumb a { text-decoration: underline; text-underline-offset: 3px; }
.studio .st-top h1 { font-size: var(--d1); line-height: 1.1; margin: 10px 0 16px; }
.studio .st-top .say { max-width: 62ch; font-size: 20px; color: #dfe8f6; }

.studio .st-main { background: var(--paper); padding: 40px 0 64px; }
.st-grid { display: grid; grid-template-columns: 250px minmax(0, 1fr) 270px; gap: 28px; align-items: start; }
.st-grid h2 { font-size: 22px; margin-bottom: 14px; }

/* Scene list */
.st-scenes ol { list-style: none; padding: 0; display: grid; gap: 8px; }
.st-scenes button { width: 100%; text-align: start; font: inherit; cursor: pointer; border: 0; background: #fff; color: var(--ink); padding: 14px 16px; display: grid; gap: 2px; }
.st-scenes button b { font-size: 17px; }
.st-scenes button span { font-size: 14px; color: var(--ink-2); }
.st-scenes button[aria-pressed="true"] { background: var(--field); color: #fff; }
.st-scenes button[aria-pressed="true"] span { color: #c9d7ee; }
.st-opts { margin-top: 22px; display: grid; gap: 10px; }
.sw { display: flex; align-items: center; gap: 10px; font-weight: 700; cursor: pointer; }
.sw input { width: 20px; height: 20px; accent-color: var(--blue); }
.mini { font-size: 14px; color: var(--ink-2); line-height: 1.6; }

/* Broadcast screen */
.screen { position: relative; background: #0b2a19; aspect-ratio: 111 / 74; overflow: hidden; }
#pitch { position: absolute; inset: 0; width: 100%; height: 100%; }
.bug { position: absolute; top: 12px; inset-inline-start: 12px; z-index: 2; display: flex; align-items: stretch; font-weight: 800; font-size: 15px; direction: rtl; }
.bug > * { padding: 6px 10px; }
.bug .t.h { background: var(--blue); color: #fff; }
.bug .t.a { background: var(--red); color: #fff; }
.bug b { background: #fff; color: var(--ink); font-family: "Archivo", sans-serif; direction: ltr; }
.bug .clock { background: var(--ink); color: var(--yellow); font-family: "Archivo", sans-serif; direction: ltr; }
.rec { position: absolute; top: 14px; inset-inline-end: 14px; z-index: 2; background: var(--red); color: #fff; font: 800 14px "Archivo", sans-serif; padding: 5px 10px; animation: blink 1.2s steps(2) infinite; }
@keyframes blink { 50% { opacity: .35; } }
.ovl { position: absolute; inset-inline: 12px; bottom: 12px; z-index: 2; background: rgba(14, 23, 38, .88); color: #fff; font-weight: 800; font-size: clamp(15px, 2vw, 20px); padding: 10px 14px; }
.count { position: absolute; inset: 0; z-index: 3; display: grid; place-items: center; background: rgba(14, 23, 38, .55); color: var(--yellow); font: 800 clamp(64px, 12vw, 140px) "Archivo", sans-serif; }
.pl-num { font: 800 2.6px "Archivo", sans-serif; fill: #fff; text-anchor: middle; dominant-baseline: central; pointer-events: none; }
.pl-name { font: 700 2.6px "Tajawal", sans-serif; fill: #fff; text-anchor: middle; paint-order: stroke; stroke: rgba(0,0,0,.6); stroke-width: .5px; }
.brief { margin: 14px 0 0; font-size: 17px; }
.brief b { color: var(--field); }
.st-ctrl { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 16px; }
.st-ctrl .btn-p { padding: 15px 22px; font-size: 17px; }
.btn-p.light { background: #fff; color: var(--field); }
.btn-p.dark { background: var(--ink); color: #fff; }
.err { color: var(--red); font-weight: 700; width: 100%; }

/* Board */
.st-board .meter { background: var(--ink); color: #fff; padding: 16px; margin-bottom: 16px; }
.st-board .meter p { font-size: 14px; color: #b9cbe6; }
.st-board .meter ol { list-style: none; padding: 0; margin: 10px 0; display: grid; gap: 5px; }
.st-board .meter li { height: 26px; display: flex; align-items: center; padding-inline: 10px; font: 800 14px "Archivo", sans-serif; background: #253247; color: #6f7e96; transition: background-color .08s; }
.st-board .meter li.on:nth-child(1) { background: var(--red); color: #fff; }
.st-board .meter li.on:nth-child(2) { background: #f08a2c; color: #fff; }
.st-board .meter li.on:nth-child(3) { background: var(--yellow); color: #1a1400; }
.st-board .meter li.on:nth-child(4) { background: var(--green); color: #fff; }
.st-board .meter li.on:nth-child(5) { background: var(--sky); color: #fff; }
.st-board .wpm { font-size: 15px; }
.st-board .wpm b { font: 800 28px "Archivo", sans-serif; color: var(--yellow); margin-inline-end: 6px; }
.roster .team { background: #fff; padding: 12px 14px; margin-bottom: 12px; }
.roster h3 { font-size: 16px; margin-bottom: 6px; display: flex; align-items: center; gap: 8px; }
.roster h3 i { width: 14px; height: 14px; display: inline-block; }
.roster ul { list-style: none; padding: 0; columns: 2; column-gap: 12px; font-size: 15px; }
.roster li { break-inside: avoid; padding: 2px 0; }
.roster li b { display: inline-block; min-width: 22px; font-family: "Archivo", sans-serif; }
.roster li.hot { color: var(--blue); font-weight: 800; }

/* Results */
.st-result { background: #fff; padding: 24px; margin-top: 24px; }
.st-result h2 { font-size: 26px; margin-bottom: 14px; }
.st-result h3 { font-size: 19px; margin: 26px 0 10px; }
.st-result audio { width: 100%; }
.cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-top: 16px; }
.cards div { background: var(--paper); padding: 14px; }
.cards b { display: block; font: 800 30px "Archivo", sans-serif; color: var(--field); }
.cards span { font-size: 14px; color: var(--ink-2); }
#curve { width: 100%; height: auto; background: var(--paper); }
.checks { list-style: none; padding: 0; display: grid; gap: 8px; }
.checks li { padding: 10px 14px; background: var(--paper); display: flex; gap: 10px; }
.checks li::before { content: "✓"; font-weight: 800; color: var(--green); }
.checks li.no::before { content: "✗"; color: var(--red); }
.checks li.no { background: #fdeeee; }
#transcript { width: 100%; font: inherit; font-size: 17px; padding: 12px; border: 2px solid var(--paper-2); background: #fff; }
.ok-note { color: var(--green); font-weight: 700; margin-top: 10px; }
.coach { margin-top: 20px; border-top: 4px solid var(--yellow); padding-top: 16px; }
.coach ul { padding-inline-start: 22px; display: grid; gap: 6px; }
.coach .model { background: var(--field-2); color: #fff; padding: 16px; font-size: 18px; line-height: 1.8; white-space: pre-line; }

.st-how { padding: 56px 0 72px; }
.st-how h2 { font-size: var(--d3); margin-bottom: 16px; }
.how { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; padding: 0; list-style: none; counter-reset: h; margin-bottom: 20px; }
.how li { background: var(--paper); padding: 18px; counter-increment: h; }
.how li::before { content: counter(h); display: block; font: 800 34px "Archivo", sans-serif; color: var(--blue); }

@media (max-width: 1100px) {
  .st-grid { grid-template-columns: minmax(0, 1fr); }
  .st-scenes ol { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .st-board { order: 3; }
  .how { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .how { grid-template-columns: minmax(0, 1fr); }
  .bug { font-size: 12px; }
}
@media (prefers-reduced-motion: reduce) { .rec { animation: none; } }
