/* Voiceover CType feature menu (webReader-like toggles) */

/* Default layout: full player bar. Modern: Listen chip until clicked. */
.nst3aa-vo-design-default .nst3aa-vo-chip {
  display: none !important;
}

.nst3aa-voiceover.is-collapsed .nst3aa-vo-bar {
  display: none !important;
}

.nst3aa-voiceover.is-active .nst3aa-vo-chip,
.nst3aa-vo-design-modern.is-active .nst3aa-vo-chip {
  display: none !important;
}

.nst3aa-voiceover .nst3aa-vo-float {
  display: block;
}

.nst3aa-voiceover {
  display: block;
  width: 100%;
}

.nst3aa-vo-theme-light {
  color-scheme: light;
  --nst3aa-vo-shade: #000;
  --nst3aa-vo-panel-bg: #fff;
  --nst3aa-vo-panel-fg: #222;
  --nst3aa-vo-panel-muted: #888;
  --nst3aa-vo-panel-border: rgba(0, 0, 0, 0.12);
  --nst3aa-vo-panel-hover: #f3f3f3;
  --nst3aa-vo-panel-hover-fg: #17529f;
}

.nst3aa-vo-theme-dark {
  color-scheme: dark;
  --nst3aa-vo-shade: #fff;
  --nst3aa-vo-panel-bg: #2a2f36;
  --nst3aa-vo-panel-fg: #f3f5f8;
  --nst3aa-vo-panel-muted: #9aa3ad;
  --nst3aa-vo-panel-border: rgba(255, 255, 255, 0.14);
  --nst3aa-vo-panel-hover: rgba(255, 255, 255, 0.12);
  --nst3aa-vo-panel-hover-fg: #f3f5f8;
}

.nst3aa-vo-chip {
  align-items: center;
  background: var(--plyr-audio-controls-background, #e8eef4);
  border: 0;
  border-radius: 999px;
  box-sizing: border-box;
  color: var(--plyr-audio-control-color, #243040);
  cursor: pointer;
  display: flex;
  font: inherit;
  gap: 12px;
  max-width: 100%;
  min-height: 52px;
  padding: 10px 18px 10px 16px;
  text-align: left;
  transition: background-color 0.15s ease, filter 0.15s ease;
  width: 100%;
}

.nst3aa-vo-chip:hover,
.nst3aa-vo-chip:focus-visible {
  background: color-mix(in srgb, var(--plyr-audio-controls-background, #e8eef4) 88%, var(--nst3aa-vo-shade, #000) 12%);
  outline: 2px solid var(--plyr-audio-control-color, #243040);
  outline-offset: 2px;
}

.nst3aa-vo-chip__play {
  align-items: center;
  display: inline-flex;
  flex: 0 0 auto;
  line-height: 0;
}

.nst3aa-vo-chip__play svg {
  display: block;
}

.nst3aa-vo-chip__title {
  display: block;
  flex: 1 1 auto;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.3;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.nst3aa-vo-chip__meta {
  align-items: center;
  display: inline-flex;
  flex: 0 0 auto;
  font-size: 14px;
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  gap: 8px;
  letter-spacing: 0.01em;
}

.nst3aa-vo-chip__spark {
  align-items: center;
  display: inline-flex;
  line-height: 0;
  opacity: 0.9;
}

.nst3aa-vo-chip__spark svg {
  display: block;
}

.nst3aa-vo-chip__duration:empty,
.nst3aa-vo-chip__meta:has(.nst3aa-vo-chip__duration:empty) {
  display: none;
}

.nst3aa-voiceover .nst3aa-vo-bar {
  align-items: stretch;
  display: flex;
  gap: 8px;
  position: relative;
  width: 100%;
}

.nst3aa-vo-design-modern.is-active .nst3aa-vo-bar {
  align-items: center;
  background: var(--plyr-audio-controls-background, #e8eef4);
  border-radius: 999px;
  gap: 0;
  min-height: 52px;
  overflow: visible;
  padding: 4px 12px 4px 6px;
}

.nst3aa-vo-design-modern.is-active .nst3aa-vo-menu-btn {
  background: transparent;
  border-radius: 999px;
  color: var(--plyr-audio-control-color, var(--nst3aa-vo-menu-color, #243040));
  min-height: 40px;
  min-width: 40px;
}

.nst3aa-vo-design-modern.is-active .nst3aa-vo-menu-btn:hover,
.nst3aa-vo-design-modern.is-active .nst3aa-vo-menu-btn--open {
  background: color-mix(in srgb, var(--plyr-audio-control-color, #243040) 10%, transparent);
  color: var(--plyr-audio-control-color, var(--nst3aa-vo-menu-color, #243040));
}

.nst3aa-vo-design-modern.is-active .plyr,
.nst3aa-vo-design-modern.is-active .plyr--audio {
  background: transparent;
  min-width: 0;
}

.nst3aa-vo-design-modern.is-active .plyr--audio .plyr__controls {
  align-items: center;
  background: transparent !important;
  color: var(--plyr-audio-control-color, #243040);
  gap: 2px;
  padding: 0;
}

.nst3aa-vo-design-modern.is-active .plyr__controls .plyr__controls__item:first-child {
  margin-right: 0;
}

.nst3aa-vo-design-modern.is-active .plyr__control,
.nst3aa-vo-design-modern.is-active .plyr__time {
  color: var(--plyr-audio-control-color, #243040);
}

.nst3aa-vo-design-modern.is-active .plyr__control {
  padding: 6px;
}

.nst3aa-vo-design-modern.is-active [data-plyr="rewind"],
.nst3aa-vo-design-modern.is-active [data-plyr="fast-forward"] {
  padding: 4px;
}

.nst3aa-vo-design-modern.is-active .plyr__control .nst3aa-vo-skip-icon {
  display: block;
  fill: none;
  height: 28px !important;
  overflow: visible !important;
  width: 28px !important;
}

.nst3aa-vo-design-modern.is-active .nst3aa-vo-skip-icon [data-fill] {
  fill: currentColor;
}

.nst3aa-vo-design-modern.is-active .nst3aa-vo-skip-icon text {
  fill: currentColor;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 8px !important;
  font-weight: 700;
  letter-spacing: -0.35px;
  stroke: none;
}

.nst3aa-vo-design-modern.is-active .plyr__time {
  font-size: 13px;
  font-variant-numeric: tabular-nums;
  min-width: 0;
  padding: 0 2px;
  white-space: nowrap;
}

.nst3aa-vo-design-modern.is-active .plyr__time + .plyr__time {
  display: inline !important;
}

.nst3aa-vo-design-modern.is-active .plyr__time + .plyr__time::before {
  content: " / ";
  margin-right: 0;
}

.nst3aa-vo-design-modern.is-active .plyr__progress__container {
  flex: 1 1 auto;
  margin: 0 8px 0 10px;
  min-width: 80px;
  padding-left: 0;
}

.nst3aa-vo-design-modern.is-active .plyr__volume input,
.nst3aa-vo-design-modern.is-active .plyr__volume .plyr__control + input,
.nst3aa-vo-design-modern.is-active .plyr__volume input[type="range"] {
  display: none !important;
  max-width: 0;
  min-width: 0;
  width: 0;
}

.nst3aa-vo-design-modern.is-active .plyr__volume {
  max-width: 36px;
  min-width: 0;
}

.nst3aa-vo-design-modern.is-active .nst3aa-vo-speed {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
  min-width: 36px;
  padding: 6px 8px;
}

.nst3aa-voiceover .nst3aa-vo-bar .audio-player,
.nst3aa-voiceover .nst3aa-vo-bar .plyr {
  flex: 1 1 auto;
  min-width: 0;
}

.nst3aa-vo-menu-wrap {
  flex: 0 0 auto;
  overflow: visible;
  position: relative;
}

/* Floating mini bar — compact chip, inset from viewport edges so page top stays visible */
.nst3aa-vo-float {
  position: fixed;
  z-index: 9999;
}

.nst3aa-vo-mini {
  --nst3aa-vo-mini-fg: var(--nst3aa-vo-mini-control, var(--plyr-audio-control-color, #243040));
  --nst3aa-vo-mini-bg: var(--plyr-audio-controls-background, #e8eef4);
  --nst3aa-vo-mini-line: color-mix(in srgb, var(--nst3aa-vo-mini-fg) 72%, #000);
  align-items: stretch;
  background: var(--nst3aa-vo-mini-bg);
  border: 1px solid var(--nst3aa-vo-mini-line);
  border-radius: 0;
  box-shadow:
    0 0 0 1px color-mix(in srgb, var(--nst3aa-vo-mini-fg) 35%, transparent),
    0 6px 20px rgba(15, 23, 42, 0.16);
  box-sizing: border-box;
  color: var(--nst3aa-vo-mini-fg);
  display: inline-flex;
  gap: 0;
  max-width: calc(100vw - 24px);
  overflow: visible;
}

/* TYPO3 icon markup is unreliable on FE without backend icon CSS — force visible size */
.nst3aa-vo-mini .icon,
.nst3aa-vo-mini__btn .icon,
.nst3aa-vo-mini .play-button .icon {
  --icon-size: 16px;
  align-items: center;
  color: inherit;
  display: inline-flex !important;
  flex: 0 0 auto;
  height: var(--icon-size);
  justify-content: center;
  line-height: 0;
  width: var(--icon-size);
}

.nst3aa-vo-mini .icon-markup {
  display: flex !important;
  height: 100%;
  line-height: 0;
  width: 100%;
}

.nst3aa-vo-mini .icon svg,
.nst3aa-vo-mini__btn .icon svg,
.nst3aa-vo-mini .play-button .icon svg {
  display: block !important;
  fill: currentColor;
  height: 100% !important;
  max-height: 16px;
  max-width: 16px;
  width: 100% !important;
}

/* play-icon.svg uses a shifted viewBox — keep triangle centered */
.nst3aa-vo-mini .icon-play-icon svg {
  transform: translateX(2px);
}

.nst3aa-vo-mini .icon-actions-play,
.nst3aa-vo-mini .icon-actions-pause {
  align-items: center;
  height: 16px;
  justify-content: center;
  width: 16px;
}

.nst3aa-vo-mini .icon-actions-play {
  display: inline-flex;
}

.nst3aa-vo-mini .icon-actions-pause {
  display: none;
}

.nst3aa-voiceover.played .nst3aa-vo-mini .icon-actions-play {
  display: none !important;
}

.nst3aa-voiceover.played .nst3aa-vo-mini .icon-actions-pause {
  display: inline-flex !important;
}

.nst3aa-vo-mini .play-button {
  align-items: center;
  background: transparent !important;
  border: 0;
  border-radius: 0;
  border-right: 1px solid var(--nst3aa-vo-mini-line);
  color: var(--nst3aa-vo-mini-fg);
  display: inline-flex;
  flex: 0 0 auto;
  height: 40px;
  justify-content: center;
  left: auto !important;
  opacity: 1;
  padding: 0;
  position: relative !important;
  right: auto !important;
  top: auto !important;
  bottom: auto !important;
  width: 40px;
  z-index: auto;
}

.nst3aa-vo-mini .play-button:hover {
  background: color-mix(in srgb, var(--nst3aa-vo-mini-fg) 14%, transparent) !important;
  opacity: 1;
}

.nst3aa-vo-mini__btn {
  align-items: center;
  background: transparent;
  border: 0;
  border-right: 1px solid var(--nst3aa-vo-mini-line);
  color: var(--nst3aa-vo-mini-fg);
  cursor: pointer;
  display: inline-flex;
  flex: 0 0 auto;
  height: 40px;
  justify-content: center;
  padding: 0;
  position: relative;
  width: 40px;
}

.nst3aa-vo-mini button[aria-label]::after {
  background: #111;
  border-radius: 4px;
  color: #fff;
  content: attr(aria-label);
  font-size: 12px;
  font-weight: 600;
  left: 50%;
  letter-spacing: 0.01em;
  line-height: 1.2;
  opacity: 0;
  padding: 5px 8px;
  pointer-events: none;
  position: absolute;
  top: calc(100% + 8px);
  transform: translateX(-50%);
  visibility: hidden;
  white-space: nowrap;
  z-index: 10002;
}

.nst3aa-vo-mini button:first-child[aria-label]::after {
  left: 0;
  transform: none;
}

.nst3aa-vo-mini button:last-child[aria-label]::after {
  left: auto;
  right: 0;
  transform: none;
}

.nst3aa-vo-mini button[aria-label]:hover::after,
.nst3aa-vo-mini button[aria-label]:focus-visible::after {
  opacity: 1;
  visibility: visible;
}

.nst3aa-vo-mini__svg,
.nst3aa-vo-mini__btn svg,
.nst3aa-vo-mini .play-button svg {
  display: block;
  fill: currentColor;
  height: 14px;
  pointer-events: none;
  width: 14px;
}

.nst3aa-voiceover .plyr [data-plyr="rewind"] svg,
.nst3aa-voiceover .plyr [data-plyr="fast-forward"] svg,
.nst3aa-voiceover .plyr [data-plyr="rewind"] .icon,
.nst3aa-voiceover .plyr [data-plyr="fast-forward"] .icon {
  pointer-events: none;
}

.nst3aa-vo-mini__btn:hover {
  background: color-mix(in srgb, var(--nst3aa-vo-mini-fg) 14%, transparent);
}

.nst3aa-vo-autoscroll {
  align-items: center;
  background: transparent;
  border: 0;
  color: var(--nst3aa-vo-mini-fg);
  cursor: pointer;
  display: inline-flex;
  flex: 0 0 auto;
  font: inherit;
  font-size: 12px;
  font-weight: 600;
  gap: 5px;
  height: 40px;
  line-height: 1.2;
  padding: 0 10px;
  position: relative;
  white-space: nowrap;
}

.nst3aa-vo-autoscroll:hover {
  background: color-mix(in srgb, var(--nst3aa-vo-mini-fg) 14%, transparent);
}

.nst3aa-vo-autoscroll__label {
  color: inherit;
}

.nst3aa-vo-autoscroll__state {
  border: 1px solid var(--nst3aa-vo-mini-line);
  border-radius: 0;
  font-weight: 700;
  padding: 1px 6px;
}

.nst3aa-vo-design-modern .nst3aa-vo-mini {
  border-radius: 999px;
}

.nst3aa-vo-design-modern .nst3aa-vo-mini .play-button {
  border-bottom-left-radius: 999px;
  border-top-left-radius: 999px;
}

.nst3aa-vo-design-modern .nst3aa-vo-mini .nst3aa-vo-autoscroll {
  border-bottom-right-radius: 999px;
  border-top-right-radius: 999px;
}

.nst3aa-vo-design-modern .nst3aa-vo-autoscroll__state {
  border-radius: 999px;
}

.nst3aa-vo-design-default .nst3aa-vo-menu-btn,
.nst3aa-vo-design-default .plyr,
.nst3aa-vo-design-default .plyr--audio,
.nst3aa-vo-design-default .plyr--audio .plyr__controls {
  border-radius: 0;
}

.nst3aa-vo-design-default .plyr--audio .plyr__controls {
  background: var(--plyr-audio-controls-background, #e8eef4) !important;
  color: var(--plyr-audio-control-color, #243040);
}

.nst3aa-vo-autoscroll.is-on .nst3aa-vo-autoscroll__state {
  background: color-mix(in srgb, var(--nst3aa-vo-mini-fg) 16%, transparent);
  color: var(--nst3aa-vo-mini-fg);
}

.nst3aa-vo-autoscroll.is-off .nst3aa-vo-autoscroll__state {
  color: var(--nst3aa-vo-mini-fg);
  opacity: 0.78;
}

.nst3aa-vo-menu-btn {
  align-items: center;
  background: var(--nst3aa-vo-menu-bg, var(--plyr-audio-controls-background, #4a5464));
  border: 0;
  border-radius: 4px;
  color: var(--nst3aa-vo-menu-color, var(--plyr-audio-control-color, #4a5464));
  cursor: pointer;
  display: inline-flex;
  height: 100%;
  justify-content: center;
  min-height: 42px;
  min-width: 42px;
  padding: 8px;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.nst3aa-vo-menu-btn__icon {
  display: inline-flex;
  line-height: 0;
}

.nst3aa-vo-menu-btn__icon svg {
  display: block;
  height: 24px;
  shape-rendering: geometricPrecision;
  width: 24px;
}

.nst3aa-vo-menu-btn:hover,
.nst3aa-vo-menu-btn--open {
  background: color-mix(
    in srgb,
    var(--nst3aa-vo-menu-bg, var(--plyr-audio-controls-background, #4a5464)) 88%,
    var(--nst3aa-vo-shade, #000) 12%
  );
  color: var(--nst3aa-vo-menu-color, var(--plyr-audio-control-color, #4a5464));
}

.nst3aa-vo-menu {
  background: var(--nst3aa-vo-panel-bg, #fff);
  border: 1px solid var(--nst3aa-vo-panel-border, rgba(0, 0, 0, 0.12));
  border-radius: 6px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  left: 0;
  min-width: 240px;
  overflow: visible;
  padding: 6px 0;
  position: absolute;
  top: calc(100% + 6px);
  z-index: 10050;
}

.nst3aa-vo-menu:has(.nst3aa-vo-voice-panel:not([hidden])) {
  /* Keep sidebar width; voice list opens as a flyout to the right. */
  min-width: 240px;
  width: auto;
}

.nst3aa-vo-menu__list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.nst3aa-vo-menu__item {
  align-items: center;
  display: flex;
  gap: 12px;
  justify-content: space-between;
  padding: 8px 12px;
}

.nst3aa-vo-menu__item--toggle {
  border-bottom: 1px solid var(--nst3aa-vo-panel-border, rgba(0, 0, 0, 0.06));
}

.nst3aa-vo-menu__label {
  color: var(--nst3aa-vo-panel-fg, #222);
  font-size: 14px;
  line-height: 1.3;
}

.nst3aa-vo-menu__item:hover {
  background: var(--nst3aa-vo-panel-hover, #f3f3f3);
}

.nst3aa-vo-menu__action {
  background: transparent;
  border: 0;
  color: var(--nst3aa-vo-panel-fg, #222);
  cursor: pointer;
  font: inherit;
  padding: 0;
  text-align: left;
  width: 100%;
}

.nst3aa-vo-menu__action:hover {
  color: var(--nst3aa-vo-panel-hover-fg, var(--nst3aa-vo-panel-fg, #222));
}

.nst3aa-vo-switch {
  cursor: pointer;
  display: inline-flex;
  flex: 0 0 auto;
  position: relative;
}

.nst3aa-vo-switch input {
  height: 1px;
  opacity: 0;
  position: absolute;
  width: 1px;
}

.nst3aa-vo-switch__ui {
  background: #5a5a5a;
  border-radius: 999px;
  display: block;
  height: 22px;
  position: relative;
  transition: background 0.2s ease;
  width: 40px;
}

.nst3aa-vo-switch__ui::after {
  background: #fff;
  border-radius: 50%;
  content: "";
  height: 16px;
  left: 3px;
  position: absolute;
  top: 3px;
  transition: transform 0.2s ease;
  width: 16px;
}

.nst3aa-vo-switch--on .nst3aa-vo-switch__ui,
.nst3aa-vo-switch input:checked + .nst3aa-vo-switch__ui {
  background: #2e7d32;
}

.nst3aa-vo-switch--on .nst3aa-vo-switch__ui::after,
.nst3aa-vo-switch input:checked + .nst3aa-vo-switch__ui::after {
  transform: translateX(18px);
}

.nst3aa-vo-block-active {
  background-color: rgba(37, 99, 235, 0.22) !important;
  border-radius: 3px;
  outline: 1px solid rgba(37, 99, 235, 0.28);
}

.nst3aa-vo-enlarge {
  bottom: 0;
  left: 0;
  position: fixed;
  right: 0;
  z-index: 10055;
}

.nst3aa-vo-enlarge[hidden] {
  display: none !important;
}

.nst3aa-vo-enlarge__bar {
  align-items: flex-end;
  background: #111;
  display: flex;
  justify-content: flex-start;
  min-height: 26px;
  padding: 0 0 0 6px;
}

.nst3aa-vo-enlarge__toolbar {
  background: #f4f4f4;
  border: 2px solid #7dce7a;
  display: inline-flex;
  margin-bottom: -2px;
  position: relative;
  z-index: 1;
}

.nst3aa-vo-enlarge__btn {
  align-items: center;
  background: #f7f7f7;
  border: 0;
  border-right: 1px solid #c8c8c8;
  box-sizing: border-box;
  color: #222;
  cursor: pointer;
  display: inline-flex;
  height: 26px;
  justify-content: center;
  line-height: 1;
  margin: 0;
  min-width: 26px;
  padding: 0 5px;
}

.nst3aa-vo-enlarge__btn:last-child {
  border-right: 0;
}

.nst3aa-vo-enlarge__btn:hover,
.nst3aa-vo-enlarge__btn:focus-visible {
  background: #fff;
  outline: none;
}

.nst3aa-vo-enlarge__btn:focus-visible {
  box-shadow: inset 0 0 0 2px #111;
}

.nst3aa-vo-enlarge__btn:disabled {
  cursor: default;
  opacity: 0.38;
}

.nst3aa-vo-enlarge__icon {
  display: inline-flex;
  line-height: 0;
}

.nst3aa-vo-enlarge__icon svg {
  display: block;
}

.nst3aa-vo-enlarge__icon--play {
  display: none;
}

.nst3aa-vo-enlarge.is-paused .nst3aa-vo-enlarge__icon--play {
  display: inline-flex;
}

.nst3aa-vo-enlarge.is-paused .nst3aa-vo-enlarge__icon--pause {
  display: none;
}

.nst3aa-vo-enlarge__btn--pause {
  color: #2e7d32;
}

.nst3aa-vo-enlarge__btn--stop {
  color: #d32f2f;
}

.nst3aa-vo-enlarge__size {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1;
}

.nst3aa-vo-enlarge__size sup {
  font-size: 9px;
  font-weight: 700;
  line-height: 0;
  top: -0.35em;
}

.nst3aa-vo-enlarge__size--sm {
  font-size: 11px;
}

.nst3aa-vo-enlarge__text {
  background: var(--nst3aa-vo-sentence-color, #c8e6c9);
  color: #111;
  font-size: var(--nst3aa-vo-enlarge-size, 32px);
  font-weight: 400;
  line-height: 1.25;
  margin: 0;
  overflow-wrap: anywhere;
  padding: 8px 16px calc(10px + env(safe-area-inset-bottom, 0px));
  text-align: left;
  width: 100%;
}

.nst3aa-vo-enlarge__word {
  border-radius: 2px;
}

.nst3aa-vo-enlarge__word.is-active {
  background-color: var(--nst3aa-vo-word-color, #90caf9);
}

.nst3aa-vo-force-text-color .nst3aa-vo-enlarge__text,
.nst3aa-vo-force-text-color .nst3aa-vo-enlarge__word {
  color: var(--nst3aa-vo-text-color, #000) !important;
}

.nst3aa-vo-help {
  align-items: center;
  background: rgba(0, 0, 0, 0.45);
  display: flex;
  inset: 0;
  justify-content: center;
  padding: 20px;
  position: fixed;
  z-index: 10060;
}

.nst3aa-vo-help[hidden] {
  display: none !important;
}

.nst3aa-vo-help__panel {
  background: var(--nst3aa-vo-panel-bg, #fff);
  border-radius: 8px;
  color: var(--nst3aa-vo-panel-fg, #222);
  max-width: 420px;
  padding: 20px 22px;
  position: relative;
  width: 100%;
}

.nst3aa-vo-help__close {
  background: transparent;
  border: 0;
  color: inherit;
  cursor: pointer;
  font-size: 22px;
  line-height: 1;
  position: absolute;
  right: 10px;
  top: 8px;
}

.nst3aa-vo-help__title {
  font-size: 18px;
  margin: 0 0 12px;
}

.nst3aa-vo-help__list {
  margin: 0;
  padding-left: 18px;
}

.nst3aa-vo-help__list li {
  margin-bottom: 8px;
}

.nst3aa-vo-menu__action--submenu {
  align-items: center;
  display: flex;
  justify-content: space-between;
  gap: 8px;
}

.nst3aa-vo-menu__action--submenu:hover,
.nst3aa-vo-menu__action--submenu[aria-expanded="true"] {
  background: var(--nst3aa-vo-panel-hover, #f3f3f3);
  color: var(--nst3aa-vo-panel-hover-fg, var(--nst3aa-vo-panel-fg, #222));
}

.nst3aa-vo-menu__chevron {
  color: var(--nst3aa-vo-panel-muted, #888);
  font-size: 18px;
  line-height: 1;
}

.nst3aa-vo-menu__item--submenu {
  align-items: stretch;
  display: block;
  padding: 0;
  position: relative;
}

.nst3aa-vo-menu__item--submenu > .nst3aa-vo-menu__action {
  box-sizing: border-box;
  padding: 8px 12px;
  width: 100%;
}

/* ReadSpeaker-style flyout to the right of the menu */
.nst3aa-vo-voice-panel {
  background: var(--nst3aa-vo-panel-bg, #fff);
  border: 1px solid var(--nst3aa-vo-panel-border, #2f2f2f);
  border-radius: 2px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.18);
  left: calc(100% + 2px);
  max-height: min(420px, 70vh);
  overflow: auto;
  padding: 6px 4px;
  position: absolute;
  top: 0;
  width: min(560px, 72vw);
  z-index: 10060;
}

.nst3aa-vo-voice-panel[hidden] {
  display: none !important;
}

.nst3aa-vo-voice-list {
  column-gap: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nst3aa-vo-voice-list__item {
  margin: 0;
  min-width: 0;
}

.nst3aa-vo-voice-list__btn {
  align-items: center;
  background: transparent;
  border: 0;
  box-sizing: border-box;
  color: var(--nst3aa-vo-panel-fg, #1a1a1a);
  cursor: pointer;
  display: flex;
  font: inherit;
  font-size: 13px;
  gap: 8px;
  line-height: 1.35;
  max-width: 100%;
  padding: 7px 12px 7px 22px;
  position: relative;
  text-align: left;
  width: 100%;
}

.nst3aa-vo-voice-list__btn:hover,
.nst3aa-vo-voice-list__btn.is-active {
  background: var(--nst3aa-vo-panel-hover, #ececec);
  color: var(--nst3aa-vo-panel-hover-fg, var(--nst3aa-vo-panel-fg, #1a1a1a));
}

.nst3aa-vo-voice-list__btn.is-active::before,
.nst3aa-vo-voice-list__btn:hover::before {
  color: var(--nst3aa-vo-panel-fg, #333);
  content: "›";
  font-size: 16px;
  font-weight: 700;
  left: 7px;
  line-height: 1;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
}

.nst3aa-vo-voice-list__flag {
  flex: 0 0 auto;
  font-size: 15px;
  line-height: 1;
  width: 1.25em;
}

.nst3aa-vo-voice-list__label {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

@media (max-width: 720px) {
  .nst3aa-vo-voice-panel {
    left: 0;
    top: calc(100% + 2px);
    width: min(340px, 90vw);
  }

  .nst3aa-vo-voice-list {
    grid-template-columns: 1fr;
  }
}

/* Force Pause icon while browser-voice speech is active (MP3 stays paused). */
.nst3aa-voiceover.nst3aa-vo-speech-playing .plyr [data-plyr="play"].plyr__control--pressed .icon--pressed,
.nst3aa-voiceover.nst3aa-vo-speech-playing .plyr [data-plyr="play"] .icon--pressed {
  display: block !important;
}

.nst3aa-voiceover.nst3aa-vo-speech-playing .plyr [data-plyr="play"] .icon--not-pressed {
  display: none !important;
}

/* Highlight styles */
.nst3aa-vo-sentence-active {
  background-color: var(--nst3aa-vo-sentence-color, #c8e6c9) !important;
  border-radius: 3px;
}

.nst3aa-vo-sentence-active.nst3aa-vo-sentence-underline {
  background-color: transparent !important;
  text-decoration: underline;
  text-decoration-color: var(--nst3aa-vo-sentence-color, #c8e6c9);
  text-decoration-thickness: 2px;
  text-underline-offset: 2px;
}

.nst3aa-vo-word-active {
  background-color: var(--nst3aa-vo-word-color, #90caf9) !important;
  border-radius: 2px;
}

.nst3aa-vo-word-active.nst3aa-vo-word-underline {
  background-color: transparent !important;
  text-decoration: underline;
  text-decoration-color: var(--nst3aa-vo-word-color, #90caf9);
  text-decoration-thickness: 2px;
  text-underline-offset: 2px;
}

.nst3aa-vo-force-text-color .nst3aa-vo-sentence-active,
.nst3aa-vo-force-text-color .nst3aa-vo-word-active {
  color: var(--nst3aa-vo-text-color, #000) !important;
}
