/* Scoped to playback help. Matches Zhuijuba's blue controls in both templates. */
.zj-help-host { position: relative; }
.zj-playback-help[hidden], .zj-playback-assist[hidden], .zj-playback-help button[hidden], .zj-playback-assist button[hidden] { display: none !important; }
.zj-playback-help { position: absolute; inset: 0; z-index: 100000; display: flex; align-items: center; justify-content: center; padding: 14px; pointer-events: none; }
.zj-playback-help__card { position: relative; box-sizing: border-box; width: min(100%, 360px); padding: 24px 22px 20px; border: 1px solid #343c4c; border-radius: 14px; background: rgba(19, 25, 36, .97); color: #f5f7fc; box-shadow: 0 12px 36px rgba(0, 0, 0, .22); text-align: center; font-family: inherit; pointer-events: auto; }
.zj-playback-help__icon { display: inline-grid; place-items: center; width: 34px; height: 34px; margin-bottom: 10px; border-radius: 50%; background: #233654; color: #a8c8ff; font-size: 22px; font-weight: 600; }
.zj-playback-help__title { display: block; font-size: 18px; font-weight: 600; line-height: 1.4; }
.zj-playback-help__copy { margin: 9px 0 17px; color: #c0cadb; font-size: 13px; line-height: 1.7; }
.zj-playback-help__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 9px; }
.zj-playback-help button, .zj-playback-assist button { box-sizing: border-box; cursor: pointer; font-family: inherit; font-size: 13px; font-weight: 500; line-height: 1.4; }
.zj-playback-help__actions button { min-height: 40px; padding: 9px 14px; border: 1px solid #45526a; border-radius: 8px; background: #252f40; color: #f5f7fc; }
.zj-playback-help__actions .zj-playback-help__sources { border-color: #4e88ff; background: #4e88ff; color: #fff; }
.zj-playback-help .zj-playback-help__close { position: absolute; top: 3px; right: 3px; width: 36px; height: 36px; padding: 0; border: 0; border-radius: 8px; background: transparent; color: #bdc9dc; font-size: 23px; }
.zj-playback-assist { box-sizing: border-box; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px 14px; width: 100%; margin: 10px 0; padding: 10px 12px; border: 1px solid #d4e2fc; border-radius: 10px; background: #eef4ff; color: #344c73; font-size: 13px; line-height: 1.6; }
.zj-playback-assist > div { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.zj-playback-assist button { min-height: 36px; padding: 7px 9px; border: 1px solid #c3d6f9; border-radius: 7px; background: transparent; color: #245bc0; }
.zj-playback-assist .zj-playback-help__close { min-width: 36px; font-size: 20px; border-color: transparent; }
.zj-playback-help button:focus-visible, .zj-playback-assist button:focus-visible { outline: 3px solid #9abaff; outline-offset: 3px; }
.zj-lines-highlight { outline: 3px solid #4e88ff !important; outline-offset: 5px; border-radius: 9px; scroll-margin: 100px 0; }
[data-theme="dark"] .zj-playback-assist, .dark .zj-playback-assist { background: #1b2940; color: #d2dff4; border-color: #334967; }
[data-theme="dark"] .zj-playback-assist button, .dark .zj-playback-assist button { color: #adcbff; border-color: #455f86; }
@media (max-width: 600px) {
  .zj-playback-help { padding: 8px; }
  .zj-playback-help__card { max-width: 320px; padding: 12px 13px; border-radius: 10px; }
  .zj-playback-help__icon { display: none; }
  .zj-playback-help__title { padding: 0 21px; font-size: 15px; }
  .zj-playback-help__copy { margin: 6px 0 9px; font-size: 12px; }
  .zj-playback-help__actions button { min-height: 40px; padding: 8px 11px; }
}
@media (pointer: coarse) {
  .zj-playback-help__actions button, .zj-playback-assist button { min-height: 44px; }
  .zj-playback-help .zj-playback-help__close { width: 44px; height: 44px; top: 0; right: 0; }
}
