
    :root {
      --card: #ffffff;
      --card-subtle: #faf9f7;
      --card-border: #e2e0da;
      --background: #f3f2ee;
      --foreground: #111111;
      --muted-foreground: #65635f;
      --primary: #111111;
      --primary-foreground: #ffffff;
      --rail-bg: rgba(17, 17, 17, 0.14);
      --rail-fill: #111111;
      --chip-bg: #f1f0ec;
    }
    html[data-theme="dark"] {
      --card: #191918;
      --card-subtle: #20201e;
      --card-border: #2f2f2d;
      --background: #262624;
      --foreground: #f0efed;
      --muted-foreground: #9b9a97;
      --primary: #f0efed;
      --primary-foreground: #111111;
      --rail-bg: rgba(240, 239, 237, 0.18);
      --rail-fill: #f0efed;
      --chip-bg: #2a2a28;
    }
    *, *::before, *::after { box-sizing: border-box; }
    html, body {
      margin: 0;
      padding: 0;
      background: transparent;
      color: var(--foreground);
      font-family: Inter, "Noto Sans Arabic", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
      -webkit-font-smoothing: antialiased;
    }
    .sr-only {
      position: absolute;
      width: 1px;
      height: 1px;
      padding: 0;
      margin: -1px;
      overflow: hidden;
      clip: rect(0, 0, 0, 0);
      white-space: nowrap;
      border: 0;
    }
    .hidden { display: none !important; }

    /* Optional ?studio=1 QA bar — completely hidden for product users */
    .studio-bar {
      display: none;
      height: 36px;
      padding: 0 12px;
      margin-bottom: 8px;
      border-radius: 8px;
      border: 1px dashed var(--card-border);
      background: var(--card-subtle);
      align-items: center;
      justify-content: space-between;
      gap: 8px;
      font-size: 11px;
      color: var(--muted-foreground);
    }
    html[data-studio="1"] .studio-bar {
      display: flex;
    }
    .studio-meta {
      min-width: 0;
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
    }
    .studio-badge {
      color: var(--foreground);
      font-weight: 600;
    }
    .studio-right {
      display: flex;
      align-items: center;
      gap: 6px;
      flex-shrink: 0;
    }
    .lang-group {
      display: inline-flex;
      align-items: center;
      height: 28px;
      padding: 2px;
      border-radius: 6px;
      border: 1px solid var(--card-border);
      background: var(--card);
      gap: 2px;
      direction: ltr;
    }
    .lang-btn {
      height: 22px;
      min-width: 26px;
      padding: 0 6px;
      border-radius: 4px;
      border: 0;
      background: transparent;
      font: 600 11px/1 Inter, system-ui, sans-serif;
      color: var(--foreground);
      cursor: pointer;
    }
    .lang-btn.lang-active {
      background: var(--primary);
      color: var(--primary-foreground);
    }
    .studio-loop-btn {
      height: 28px;
      min-height: 28px;
      padding: 0 8px;
      border-radius: 6px;
      border: 1px solid var(--card-border);
      background: var(--card);
      color: var(--foreground);
      font: 500 11px/1 Inter, "Noto Sans Arabic", system-ui, sans-serif;
      cursor: pointer;
    }
    .studio-loop-btn.loop-active {
      border-color: var(--primary);
      font-weight: 600;
    }

    /* Clean Full-Width Product Player v3.4.0 (strict even pixel geometry) */
    .explainer-root {
      width: 100%;
    }
    .player-card {
      width: 100%;
      border-radius: 12px;
      border: 1px solid var(--card-border);
      background: var(--card);
      overflow: hidden;
      display: flex;
      flex-direction: column;
    }
    .stage-shell {
      position: relative;
      aspect-ratio: 16 / 9;
      width: 100%;
      background: #f7f7f5;
      overflow: hidden;
    }
    .stage-shell.cover-clickable {
      cursor: pointer;
    }
    .stage-svg {
      width: 100%;
      height: 100%;
      display: block;
      direction: ltr;
      user-select: none;
    }

    /* Unified Sleek Bottom Control Deck (62px desktop = 20px segmented chapter rail + 42px transport row) */
    .player-deck {
      background: var(--card);
      border-top: 1px solid var(--card-border);
      padding: 0 12px;
      display: flex;
      flex-direction: column;
      flex-shrink: 0;
    }
    .chapter-rail {
      position: relative;
      height: 20px;
      display: flex;
      align-items: center;
      gap: 4px;
      width: 100%;
      padding-top: 4px;
    }
    .ch-seg {
      position: relative;
      height: 20px;
      padding: 0;
      border: 0;
      background: transparent;
      display: flex;
      align-items: center;
      cursor: pointer;
      min-width: 16px;
      flex-basis: 0;
    }
    .ch-track {
      width: 100%;
      height: 4px;
      border-radius: 2px;
      background: var(--rail-bg);
      overflow: hidden;
      transition: height 0.14s ease;
    }
    .ch-seg:hover .ch-track,
    .ch-seg.ch-active .ch-track {
      height: 6px;
    }
    .ch-fill {
      display: block;
      height: 100%;
      width: 0%;
      background: var(--rail-fill);
      border-radius: 2px;
    }
    .ch-tip {
      position: absolute;
      bottom: 20px;
      inset-inline-start: 50%;
      transform: translateX(calc(-50% + var(--ch-tip-shift, 0px)));
      max-width: calc(100vw - 16px);
      overflow: hidden;
      text-overflow: ellipsis;
      padding: 4px 8px;
      border-radius: 6px;
      background: #111111;
      color: #ffffff;
      font: 500 11px/1.2 Inter, "Noto Sans Arabic", system-ui, sans-serif;
      white-space: nowrap;
      pointer-events: none;
      opacity: 0;
      transition: opacity 0.14s ease;
      z-index: 10;
    }
    html[dir="rtl"] .ch-tip {
      transform: translateX(calc(50% + var(--ch-tip-shift, 0px)));
    }
    html[dir="rtl"] .ch-seg:first-child .ch-tip,
    .ch-seg:first-child .ch-tip {
      inset-inline-start: 0;
      inset-inline-end: auto;
      transform: translateX(var(--ch-tip-shift, 0px));
    }
    html[dir="rtl"] .ch-seg:last-child .ch-tip,
    .ch-seg:last-child .ch-tip {
      inset-inline-start: auto;
      inset-inline-end: 0;
      transform: translateX(var(--ch-tip-shift, 0px));
    }
    .ch-seg:hover .ch-tip,
    .ch-seg:focus-visible .ch-tip {
      opacity: 1;
    }

    .transport-row {
      min-height: 42px;
      height: 42px;
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 8px;
      width: 100%;
      min-width: 0;
    }
    .transport-controls {
      display: flex;
      align-items: center;
      gap: 8px;
      flex-shrink: 0;
      min-width: 0;
    }
    .transport-caption {
      display: flex;
      align-items: center;
      gap: 6px;
      min-width: 0;
      flex: 1 1 auto;
    }
    .transport-end {
      display: flex;
      align-items: center;
      gap: 8px;
      flex-shrink: 0;
    }
    .icon-btn {
      width: 32px;
      height: 32px;
      min-width: 32px;
      min-height: 32px;
      padding: 0;
      border-radius: 8px;
      border: 1px solid var(--card-border);
      background: var(--card-subtle);
      color: var(--foreground);
      display: inline-flex;
      align-items: center;
      justify-content: center;
      cursor: pointer;
      flex-shrink: 0;
      transition: background-color 0.14s ease, border-color 0.14s ease, color 0.14s ease;
    }
    .icon-btn:hover {
      border-color: var(--primary);
      background: var(--background);
    }
    #btnAudio.audio-btn-on {
      background: var(--primary);
      color: var(--primary-foreground);
      border-color: var(--primary);
    }
    .ctrl-focus:focus-visible {
      outline: 2px solid var(--primary);
      outline-offset: 2px;
    }
    .step-chip {
      height: 24px;
      line-height: 24px;
      padding: 0 8px;
      border-radius: 6px;
      background: var(--chip-bg);
      color: var(--foreground);
      font: 600 11px/24px Inter, "Noto Sans Arabic", system-ui, sans-serif;
      white-space: nowrap;
      max-width: 180px;
      overflow: hidden;
      text-overflow: ellipsis;
      flex-shrink: 0;
    }
    .vo-eq {
      display: inline-flex;
      align-items: center;
      gap: 2px;
      height: 12px;
      flex-shrink: 0;
    }
    .vo-eq i {
      display: block;
      width: 2px;
      height: 4px;
      border-radius: 1px;
      background: var(--muted-foreground);
      transition: height 0.14s ease, background-color 0.14s ease;
    }
    .vo-eq.vo-live i { background: #2383e2; }
    .vo-eq.vo-live i:nth-child(1) { height: 6px; }
    .vo-eq.vo-live i:nth-child(2) { height: 12px; }
    .vo-eq.vo-live i:nth-child(3) { height: 8px; }
    .caption-line {
      font-size: 12px;
      line-height: 1.35;
      color: var(--muted-foreground);
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
      min-width: 0;
      flex: 1 1 auto;
    }
    .caption-line.vo-speaking {
      color: var(--foreground);
      font-weight: 500;
    }
    .time-readout {
      font-family: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
      font-size: 12px;
      color: var(--muted-foreground);
      font-variant-numeric: tabular-nums;
      direction: ltr;
      unicode-bidi: isolate;
      flex-shrink: 0;
    }

    @media (max-width: 520px) {
      .player-deck {
        padding: 0 8px;
      }
      .transport-row {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        grid-template-rows: 38px auto;
        align-items: center;
        column-gap: 6px;
        row-gap: 4px;
        height: auto;
        min-height: 76px;
        padding: 2px 0 8px;
      }
      .transport-controls {
        grid-column: 1;
        grid-row: 1;
        gap: 6px;
      }
      .transport-end {
        grid-column: 2;
        grid-row: 1;
        gap: 6px;
      }
      .transport-caption {
        grid-column: 1 / -1;
        grid-row: 2;
        align-items: flex-start;
      }
      .step-chip {
        flex: 0 1 auto;
        min-width: 0;
        max-width: min(180px, 100%);
        padding: 0 6px;
        font-size: 11px;
      }
      .time-readout {
        font-size: 11px;
      }
      .caption-line {
        font-size: 11px;
        line-height: 1.35;
        white-space: normal;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
        overflow-wrap: anywhere;
      }
    }
  

/* Wave C445/C450 v3.5.2: Clean Product Player flush iframe fit on canonical light paper (#F7F7F5 / #FFFFFF) */
html, body { height: 100%; background: #f7f7f5; color: #111111; overflow: hidden; }
#stageSvg { direction: ltr; }
.explainer-root { padding: 0; height: 100%; display: flex; flex-direction: column; min-width: 0; }
.player-card {
  flex: 1 1 auto;
  min-height: 0;
  height: 100%;
  border: 0;
  border-radius: 0;
  display: flex;
  flex-direction: column;
}
.stage-shell {
  flex: 1 1 auto;
  min-height: 120px;
  aspect-ratio: auto;
  width: 100%;
}
.player-deck {
  flex: 0 0 auto;
}
@media (max-width: 520px) {
  .player-deck { padding: 0 8px; }
  .chapter-rail { height: 18px; padding-top: 2px; }
  .ch-seg { height: 18px; min-width: 12px; }
  .transport-row { min-height: 74px; padding: 2px 0 6px; }
}
