:root {
  color-scheme: light;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #202124;
  background: #fff;
}
* { box-sizing: border-box; }
body { margin: 0; line-height: 1.55; color: #202124; background: #fff; }
.playback-page { max-width: 58rem; margin: 0 auto; padding: 1.25rem clamp(1rem, 4vw, 2.5rem) 3rem; }
.playback-skip { position: absolute; left: 1rem; top: -5rem; z-index: 10; background: #fff; color: #111; padding: .6rem .8rem; border: 2px solid #164f9b; }
.playback-skip:focus { top: 1rem; }
.playback-page a { color: #164f9b; }
.playback-page :focus-visible { outline: 3px solid #164f9b; outline-offset: 3px; }
.playback-header { border-bottom: 1px solid #c8c8c8; padding-bottom: 1rem; }
.playback-back { display: inline-block; margin: .2rem 0 .5rem; }
.playback-header h1 { margin: .25rem 0 .75rem; line-height: 1.2; }
.playback-subtitle { margin: -.35rem 0 .5rem; color: #45484d; font-size: .98rem; }
.playback-warning { border-left: 4px solid #7b3f00; background: #fff5e8; color: #3b260e; padding: .75rem 1rem; margin: .75rem 0 0; }
.playback-controls { position: sticky; top: 0; z-index: 5; background: #fff; display: grid; grid-template-columns: auto auto minmax(8rem, 1fr) auto; grid-template-areas: "toggle label progress count" "status status status status" "retry retry retry retry"; align-items: center; gap: .7rem 1rem; padding: 1rem 0; }
.playback-controls > button:first-child { grid-area: toggle; }
.playback-controls button { min-height: 2.6rem; padding: .4rem 1rem; color: #202124; background: #fff; border: 1px solid #777; border-radius: .25rem; font: inherit; cursor: pointer; }
.playback-controls button:disabled { color: #555; cursor: wait; }
.playback-controls label { grid-area: label; font-weight: 600; }
.playback-speed { display: flex; flex-wrap: nowrap; gap: .35rem; margin: 1rem 0; }
.playback-speed button { min-height: 2.2rem; min-width: 3rem; padding: .25rem .55rem; color: #202124; background: #fff; border: 1px solid #777; border-radius: .25rem; font: inherit; cursor: pointer; }
.playback-speed button[aria-pressed="true"] { font-weight: 700; border: 2px solid #202124; }
.playback-speed button:disabled { color: #555; cursor: wait; }
.playback-controls input[type="range"] { grid-area: progress; width: 100%; accent-color: #164f9b; }
.playback-controls output { grid-area: count; font-variant-numeric: tabular-nums; white-space: nowrap; }
#playback-status { grid-area: status; min-height: 1.5em; margin: 0; }
#playback-retry { grid-area: retry; justify-self: start; }
#playback-main { min-width: 0; }
.playback-document { position: relative; isolation: isolate; min-height: 12rem; overflow-wrap: anywhere; padding: clamp(1rem, 3vw, 2rem); background: #fff; border: 1px solid #bbb; }
.playback-document::before { content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none; background-image: repeating-conic-gradient(rgba(225,225,225,.30) 0% 25%, rgba(255,255,255,.30) 0% 50%); background-position: 0 0; background-size: 16px 16px; }
.playback-document-content { position: relative; z-index: 1; min-width: 0; overflow-wrap: anywhere; color: #202124; }
.playback-document-content img, .playback-document-content video, .playback-document-content iframe { max-width: 100%; }
.playback-document-content pre { max-width: 100%; overflow-x: auto; }
.playback-page noscript { display: block; margin-top: 1rem; }
/* Blend the enclosing stacking context with the article, not merely its
   children with their transparent isolated backdrop. This preserves glyphs
   beneath the initially opaque light-blue backgrounds. Carets do not fade. */
.playback-cue-layer { position: absolute; inset: 0; z-index: 3; overflow: visible; pointer-events: none; mix-blend-mode: multiply; }
.playback-cue-highlight, .playback-cue-caret { position: absolute; pointer-events: none; }
.playback-cue-highlight { background: lightblue; border-radius: 2px; mix-blend-mode: normal; animation: playback-cue-fade 300ms linear forwards; }
.playback-cue-block { background: rgba(133, 191, 255, .32); outline: 2px solid rgba(22, 79, 155, .65); }
.playback-cue-caret { z-index: 1; width: 0; border-left: 2px solid #164f9b; }
@keyframes playback-cue-fade { from { opacity: 1; } to { opacity: 0; } }
@media (prefers-reduced-motion: reduce) {
  .playback-cue-highlight { animation: none; opacity: 1; }
}
@media (max-width: 36rem) {
  .playback-page { padding-inline: .75rem; }
  .playback-controls {
    grid-template-columns: auto minmax(0, 1fr);
    grid-template-areas: "toggle count" "label label" "progress progress" "status status" "retry retry";
  }
}

/* Benchmark diffs are inert readable text, including long hostile strings. */
[data-playback-benchmark] .playback-header {
  overflow-wrap: anywhere;
}
[data-playback-benchmark] .playback-header pre {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  text-align: left;
}
