.word-highlight{border-bottom:4px solid var(--theme-word-mark, #90EE90);text-decoration:none;cursor:pointer;transition:all .2s ease;padding:2px 2px 0;margin:0 1px;border-radius:2px;position:relative;z-index:1}.word-highlight:after{content:"";position:absolute;bottom:-2px;left:0;right:0;height:4px;background-color:var(--theme-word-mark, #90EE90);border-radius:2px;z-index:-1;transition:all .2s ease}.word-highlight:hover:after{background-color:var(--theme-word-mark-strong, #32CD32);height:5px}.word-highlight:hover{background-color:#f0f8ff4d}.phrase-highlight{border-bottom:4px solid var(--theme-word-mark, #90EE90);text-decoration:none;cursor:pointer;transition:all .2s ease;padding:2px 2px 0;margin:0 1px;border-radius:2px;background-color:color-mix(in srgb,var(--theme-word-mark, #90EE90) 14%,transparent);position:relative;z-index:1}.phrase-highlight:after{content:"";position:absolute;bottom:-2px;left:0;right:0;height:4px;background-color:var(--theme-word-mark, #90EE90);border-radius:2px;z-index:-1;transition:all .2s ease}.phrase-highlight:hover:after{background-color:var(--theme-word-mark-strong, #32CD32);height:5px}.phrase-highlight:hover{background-color:color-mix(in srgb,var(--theme-word-mark, #90EE90) 24%,transparent)}.highlight-toggle-btn{display:inline-flex;align-items:center;gap:6px;padding:6px 12px;margin-left:12px;background:transparent;border:1px solid #e5e7eb;border-radius:6px;font-size:14px;font-weight:500;color:var(--theme-text-muted,#6b7280);cursor:pointer;transition:all .2s ease}.highlight-toggle-btn:hover{background-color:#f9fafb;border-color:#d1d5db;color:var(--theme-text,#374151)}.highlight-toggle-btn.active{background-color:var(--theme-learning-accent, #10b981);border-color:var(--theme-learning-accent, #10b981);color:#fff}.highlight-toggle-btn svg{width:20px;height:20px;fill:none;stroke:currentColor}@media (max-width: 768px){.highlight-toggle-btn{padding:4px 8px;font-size:12px;margin-left:8px}.highlight-toggle-btn svg{width:16px;height:16px}}.dark .word-highlight:after,.dark .phrase-highlight:after{background-color:#84cc16}.dark .word-highlight:hover:after,.dark .phrase-highlight:hover:after{background-color:#65a30d}.dark .word-highlight:hover{background-color:#84cc161a}.dark .phrase-highlight:hover{background-color:#84cc1626}.dark .highlight-toggle-btn{border-color:var(--theme-text,#374151);color:var(--theme-text-muted,#9ca3af)}.dark .highlight-toggle-btn:hover{background-color:var(--theme-text,#374151);border-color:#4b5563;color:#d1d5db}.dark .highlight-toggle-btn.active{background-color:#16a34a;border-color:#16a34a}.cloze-on .word-highlight,.cloze-on .phrase-highlight{color:transparent;text-shadow:none;border-bottom:none;background-color:var(--cloze-bg, #fdecc8);border-radius:6px;padding:2px 6px;cursor:pointer;-webkit-user-select:none;-moz-user-select:none;user-select:none}.cloze-on .word-highlight:after,.cloze-on .phrase-highlight:after{display:none!important}.cloze-on .word-highlight.revealed,.cloze-on .phrase-highlight.revealed{color:var(--cloze-fg, #1f2937);background-color:var(--cloze-revealed-bg, #fff3d6)}.cloze-on .word-highlight{--cloze-bg: #d1fae5;--cloze-revealed-bg: #ecfdf5}.cloze-on .word-highlight.revealed{--cloze-fg: #166534}.cloze-on .phrase-highlight{--cloze-bg: #ffedd5;--cloze-revealed-bg: #fff7ed}.cloze-on .phrase-highlight.revealed{--cloze-fg: #9a3412}.dark .cloze-on .word-highlight{--cloze-bg: #334155;--cloze-revealed-bg: #1f2937}.dark .cloze-on .phrase-highlight{--cloze-bg: #3f2d1c;--cloze-revealed-bg: #2b1f14}.subtitle-text-selectable{-moz-user-select:text;user-select:text;-webkit-user-select:text}.cloze-on .subtitle-text-selectable{-moz-user-select:none;user-select:none;-webkit-user-select:none}.video-preview{position:absolute;inset:0;z-index:1;overflow:hidden;pointer-events:none;background:#eef2ed}.video-preview--waiting:before{content:"";position:absolute;inset:0;background:linear-gradient(125deg,#e4ebe4,#f4f6f1 50%,#e4ebe4);animation:video-preview-breathe 1.8s ease-in-out infinite}.video-preview__blur,.video-preview__image{position:absolute;inset:0;width:100%;height:100%;-o-object-fit:cover;object-fit:cover}.video-preview__blur{filter:blur(8px);transform:scale(1.08)}.video-preview__image{transition:opacity .18s ease-out}.video-preview--cached .video-preview__image{transition:none}@keyframes video-preview-breathe{0%,to{opacity:.45}50%{opacity:1}}@media (prefers-reduced-motion: reduce){.video-preview--waiting:before{animation:none}.video-preview__image{transition:none}}.subtitle-export-overlay{position:fixed;inset:0;z-index:9998;background:#0a101bad;-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px);animation:subtitleExportFadeIn .18s ease-out}.subtitle-export-dialog{position:fixed;inset:4vh auto auto 50%;z-index:9999;display:flex;width:min(1180px,94vw);height:92vh;transform:translate(-50%);flex-direction:column;overflow:hidden;border:1px solid rgba(255,255,255,.42);border-radius:20px;background:var(--theme-page-bg, #f5f7f2);box-shadow:0 32px 90px #050c1957;animation:subtitleExportRise .22s ease-out}.subtitle-export-dialog-header{display:flex;align-items:center;justify-content:space-between;padding:22px 28px 18px;border-bottom:1px solid var(--theme-border, #dce8df);background:var(--theme-surface, #fff)}.subtitle-export-dialog-header h2{margin:0;color:var(--theme-text, #2f3d35);font-size:22px;font-weight:720;letter-spacing:-.02em}.subtitle-export-close,.subtitle-export-cancel{border:0;border-radius:9px;background:var(--theme-surface-muted, #f8fbf8);color:var(--theme-text-muted, #718076);cursor:pointer;font-size:14px;font-weight:650;transition:background .16s ease,color .16s ease}.subtitle-export-close{padding:10px 16px}.subtitle-export-close:hover,.subtitle-export-cancel:hover{background:var(--theme-accent-soft, #e8f3ea);color:var(--theme-accent-strong, #3f8a5b)}.subtitle-export-controls{display:flex;align-items:center;justify-content:space-between;gap:32px;padding:15px 28px;border-bottom:1px solid var(--theme-border, #dce8df);background:var(--theme-surface, #fff)}.subtitle-export-control-group,.subtitle-export-language-row{display:flex;align-items:center;gap:14px}.subtitle-export-control-label{color:var(--theme-text-muted, #718076);font-size:12px;font-weight:700;white-space:nowrap}.subtitle-export-version-options,.subtitle-export-language-options{display:inline-flex;padding:4px;border:1px solid var(--theme-border, #dce8df);border-radius:10px;background:var(--theme-surface-muted, #f8fbf8)}.subtitle-export-version{min-width:112px;padding:9px 22px;border:0;border-radius:7px;background:transparent;color:var(--theme-text-muted, #718076);cursor:pointer;font-size:14px;font-weight:650;transition:background .16s ease,color .16s ease,box-shadow .16s ease}.subtitle-export-version:hover{color:var(--theme-accent-strong, #3f8a5b)}.subtitle-export-version.is-active{background:var(--theme-surface, #fff);color:var(--theme-accent-strong, #3f8a5b);box-shadow:0 2px 8px var(--theme-shadow-color, rgba(73, 111, 84, .1)),inset 0 0 0 1px rgba(var(--theme-accent-rgb, 77, 160, 108),.34)}.subtitle-export-language-row{justify-content:flex-end}.subtitle-export-language-btn{padding:8px 12px;border:0;border-radius:7px;background:transparent;color:var(--theme-text-muted, #718076);cursor:pointer;font-size:12px;font-weight:650}.subtitle-export-language-btn.is-active{background:var(--theme-surface, #fff);color:var(--theme-accent-strong, #3f8a5b);box-shadow:0 2px 8px var(--theme-shadow-color, rgba(73, 111, 84, .1)),inset 0 0 0 1px rgba(var(--theme-accent-rgb, 77, 160, 108),.28)}.subtitle-export-version:focus-visible,.subtitle-export-language-btn:focus-visible,.subtitle-export-close:focus-visible,.subtitle-export-cancel:focus-visible,.subtitle-export-primary:focus-visible{outline:3px solid rgba(var(--theme-accent-rgb, 77, 160, 108),.22);outline-offset:2px}.subtitle-export-preview-shell{flex:1;min-height:0;overflow:auto;padding:24px;background:linear-gradient(rgba(255,255,255,.2) 1px,transparent 1px),linear-gradient(90deg,rgba(255,255,255,.2) 1px,transparent 1px),#e5e8ed;background-size:20px 20px}.subtitle-export-compact-document{display:flex;flex-direction:column;align-items:center;gap:20px}.subtitle-export-compact-page{position:relative;box-sizing:border-box;width:794px;height:1123px;flex:0 0 auto;overflow:hidden;padding:52px 62px 44px;background:var(--theme-surface,#fff);box-shadow:0 10px 28px #151e2f1f;color:#172034}.subtitle-export-compact-page h1{margin:0 0 30px;color:#172034;font-size:28px;font-weight:760;letter-spacing:-.025em;line-height:1.25;text-align:center}.subtitle-export-compact-list{display:flex;flex-direction:column;gap:15px}.subtitle-export-compact-item{-moz-column-break-inside:avoid;break-inside:avoid}.subtitle-export-compact-item p{margin:0}.subtitle-export-compact-en{color:#172034;font-family:Arial,Helvetica Neue,sans-serif;font-size:18px;line-height:1.5}.subtitle-export-compact-cn{margin-top:4px!important;color:#748096;font-family:PingFang SC,Microsoft YaHei,sans-serif;font-size:16px;line-height:1.5}.subtitle-export-page-number{position:absolute;right:62px;bottom:24px;color:#a1a9b6;font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:10px}.subtitle-export-status{display:flex;min-height:340px;align-items:center;justify-content:center;gap:12px;color:#667085;font-size:14px}.subtitle-export-status.is-error{color:#bd3f3f}.subtitle-export-spinner{width:18px;height:18px;border:2px solid #ccd2dc;border-top-color:#172034;border-radius:50%;animation:subtitleExportSpin .7s linear infinite}.subtitle-export-reading-stage{width:100%;min-width:1080px}.subtitle-export-reading-document{width:1080px;margin:0 auto;overflow:hidden;background:var(--theme-surface,#fff);color:#172034;box-shadow:0 12px 36px #151e2f24;font-family:Arial,Helvetica Neue,PingFang SC,Microsoft YaHei,sans-serif}.subtitle-export-reading-cover{position:relative;height:560px;overflow:hidden;background:radial-gradient(circle at 72% 30%,#667085 0,transparent 34%),linear-gradient(135deg,#4b5565,#172034)}.subtitle-export-cover-image{position:absolute;inset:0;width:100%;height:100%;-o-object-fit:cover;object-fit:cover}.subtitle-export-cover-shade{position:absolute;inset:0;background:linear-gradient(180deg,#080d1805 30%,#080d18c7),linear-gradient(90deg,rgba(8,13,24,.28),transparent 68%)}.subtitle-export-reading-cover h1{position:absolute;right:270px;bottom:50px;left:46px;margin:0;color:#fff;font-size:49px;font-weight:800;letter-spacing:-.035em;line-height:1.08;text-shadow:0 2px 14px rgba(0,0,0,.32)}.subtitle-export-cover-watermark{position:absolute;right:38px;bottom:38px;color:#ffffffd6;font-size:15px;font-weight:500;letter-spacing:.02em;text-shadow:0 2px 9px rgba(0,0,0,.58)}.subtitle-export-cover-watermark strong{color:#fff;font-weight:760}.subtitle-export-reading-body{padding:4px 46px 40px}.subtitle-export-reading-row{display:grid;min-height:138px;grid-template-columns:minmax(0,1.82fr) minmax(270px,.96fr);gap:34px;align-items:start;padding:26px 0;border-bottom:1px solid #dbe0e8}.subtitle-export-reading-row:last-child{border-bottom:0}.subtitle-export-reading-copy p{margin:0}.subtitle-export-reading-en{color:#172034;font-size:26px;font-weight:730;letter-spacing:-.018em;line-height:1.42}.subtitle-export-reading-highlight{color:var(--highlight-text-color)}.subtitle-export-reading-cn{margin-top:9px!important;color:#748096;font-size:21px;font-weight:480;line-height:1.5}.subtitle-export-reading-cards{display:flex;flex-direction:column;gap:9px}.subtitle-export-reading-card{padding:14px 15px 13px;border:1px solid #d5dbe5;border-left:7px solid var(--card-color);background:var(--theme-surface,#fff)}.subtitle-export-reading-card-heading{display:flex;align-items:baseline;justify-content:space-between;gap:12px}.subtitle-export-reading-card-heading strong{color:#172034;font-size:18px;font-weight:800;line-height:1.2}.subtitle-export-reading-card-heading span{color:#7f8999;font-size:9px;font-weight:800;letter-spacing:.14em}.subtitle-export-reading-card p{margin:6px 0 0;color:#2f394b;font-size:13px;line-height:1.45}.subtitle-export-reading-card small{display:block;margin-top:7px;color:#7b8493;font-size:10px;line-height:1.4}.subtitle-export-dialog-footer{display:flex;align-items:center;justify-content:flex-end;gap:20px;padding:16px 28px;border-top:1px solid var(--theme-border, #dce8df);background:var(--theme-surface, #fff)}.subtitle-export-actions{display:flex;gap:10px}.subtitle-export-cancel,.subtitle-export-primary{min-width:98px;padding:11px 18px;border:0;border-radius:9px;cursor:pointer;font-size:14px;font-weight:700}.subtitle-export-primary{min-width:140px;background:var(--theme-accent, #4da06c);color:#fff;box-shadow:0 7px 15px rgba(var(--theme-accent-rgb, 77, 160, 108),.2);transition:transform .16s ease,background .16s ease}.subtitle-export-primary:hover:not(:disabled){transform:translateY(-1px);background:var(--theme-accent-strong, #3f8a5b)}.subtitle-export-primary:disabled{cursor:not-allowed;opacity:.55}@keyframes subtitleExportFadeIn{0%{opacity:0}to{opacity:1}}@keyframes subtitleExportRise{0%{opacity:0;transform:translate(-50%,12px)}to{opacity:1;transform:translate(-50%)}}@keyframes subtitleExportSpin{to{transform:rotate(360deg)}}@media (max-width: 800px){.subtitle-export-dialog{inset:2vh auto auto 50%;width:96vw;height:96vh}.subtitle-export-controls{flex-direction:column;align-items:stretch;gap:12px;padding:14px 16px}.subtitle-export-control-group,.subtitle-export-language-row{justify-content:space-between}.subtitle-export-version-options,.subtitle-export-language-options,.subtitle-export-version,.subtitle-export-language-btn{flex:1}.subtitle-export-preview-shell{padding:14px}.subtitle-export-dialog-header,.subtitle-export-dialog-footer{padding-right:16px;padding-left:16px}.subtitle-export-dialog-footer{justify-content:flex-end}}.notes-export-overlay{position:fixed;inset:0;background:#0009;-webkit-backdrop-filter:blur(4px);backdrop-filter:blur(4px);z-index:9998;animation:nxFadeIn .2s ease-out}.notes-export-dialog{position:fixed;top:50%;left:50%;transform:translate(-50%,-50%);background:#ececec;border-radius:12px;box-shadow:0 20px 60px #0000004d;z-index:9999;max-width:960px;width:92%;max-height:92vh;display:flex;flex-direction:column;animation:nxSlideUp .3s ease-out}@keyframes nxFadeIn{0%{opacity:0}to{opacity:1}}@keyframes nxSlideUp{0%{opacity:0;transform:translate(-50%,-45%)}to{opacity:1;transform:translate(-50%,-50%)}}.notes-export-header{display:flex;justify-content:space-between;align-items:center;padding:1.25rem 1.5rem;background:var(--theme-surface,#fff);border-bottom:1px solid #e5e7eb;border-radius:12px 12px 0 0}.notes-export-header h2{margin:0;font-size:1.15rem;font-weight:600;color:#111827}.notes-export-close{padding:.5rem 1rem;background:var(--theme-surface-muted,#f3f4f6);border:none;border-radius:6px;color:var(--theme-text-muted,#6b7280);cursor:pointer;font-size:.875rem;font-weight:500;transition:all .2s}.notes-export-close:hover{background:var(--theme-border,#e5e7eb);color:var(--theme-text,#374151)}.notes-export-body{flex:1;overflow:auto;padding:24px 0}.notes-export-empty,.notes-export-loading{text-align:center;padding:80px 20px;color:var(--theme-text-muted,#6b7280);font-size:14px}.notes-export-footer{display:flex;justify-content:flex-end;gap:.75rem;padding:1rem 1.5rem;background:var(--theme-surface,#fff);border-top:1px solid #e5e7eb;border-radius:0 0 12px 12px}.notes-export-btn{padding:.625rem 1.5rem;border-radius:6px;font-size:.875rem;font-weight:500;cursor:pointer;border:none;transition:all .2s}.notes-export-btn.cancel{background:var(--theme-surface-muted,#f3f4f6);color:var(--theme-text,#374151)}.notes-export-btn.cancel:hover{background:var(--theme-border,#e5e7eb)}.notes-export-btn.primary{background:#0fa05f;color:#fff}.notes-export-btn.primary:hover{background:#0a7d49}.notes-export-btn.primary:disabled{background:#93c5b3;cursor:not-allowed}.notes-export-pdf-doc{--nx-brand: #0fa05f;--nx-brand-dark: #0a7d49;--nx-ink: #1f2d2a;--nx-ink-soft: #4a5552;--nx-ink-muted: #93a09c;--nx-rule: #e6f0ea;--nx-row-alt: #f1faf4;width:210mm;margin:0 auto;padding:0;font-family:Inter,Noto Sans SC,-apple-system,BlinkMacSystemFont,PingFang SC,sans-serif;-webkit-font-smoothing:antialiased;color:var(--nx-ink)}.notes-export-pdf-doc .page{background:var(--theme-surface,#fff);width:210mm;height:297mm;padding:9mm 12mm;position:relative;display:flex;flex-direction:column;overflow:hidden;margin:0 auto 20px;box-shadow:0 4px 16px #0000001f;box-sizing:border-box}.notes-export-pdf-doc .page-body{flex:1;min-height:0;overflow:hidden}.notes-export-pdf-doc .page:last-child{margin-bottom:0}.notes-export-pdf-doc .page-header{text-align:center;margin-bottom:24px;padding-bottom:12px;border-bottom:1px solid var(--nx-rule);flex-shrink:0}.notes-export-pdf-doc .page-header .title{font-family:Noto Sans SC,sans-serif;font-size:28px;font-weight:700;color:var(--nx-brand);letter-spacing:.4em;margin:0 0 14px;padding-left:.4em;line-height:1.2}.notes-export-pdf-doc .page-header .meta-row{display:flex;justify-content:space-between;align-items:center;gap:16px;font-size:12.5px;color:var(--nx-ink-soft)}.notes-export-pdf-doc .page-header .brand{display:inline-flex;align-items:center;gap:6px}.notes-export-pdf-doc .page-header .xhs-logo{display:inline-flex;align-items:center;justify-content:center;width:18px;height:18px;flex-shrink:0}.notes-export-pdf-doc .page-header .xhs-logo svg{width:100%;height:100%;display:block}.notes-export-pdf-doc .page-header .source{color:var(--nx-ink-muted);text-align:right;letter-spacing:.02em}.notes-export-pdf-doc .word-table{width:100%;border-collapse:separate;border-spacing:0;border:1px solid var(--nx-rule);border-radius:10px;overflow:hidden}.notes-export-pdf-doc .word-table thead th{background:var(--nx-brand);color:#fff;font-weight:600;text-align:left;padding:10px 14px;font-size:14px;letter-spacing:.02em}.notes-export-pdf-doc .word-table thead th.col-no{width:48px;text-align:center}.notes-export-pdf-doc .word-table thead th.col-word{width:170px;font-style:italic}.notes-export-pdf-doc .word-table thead th.col-meaning{font-style:italic}.notes-export-pdf-doc .word-table tbody tr.entry-row>td{padding:10px 14px;vertical-align:top;border-top:1px solid var(--nx-rule)}.notes-export-pdf-doc .word-table tbody tr.entry-row:nth-child(4n+1)>td{background:var(--nx-row-alt)}.notes-export-pdf-doc .cell-no{text-align:center;color:var(--nx-ink-soft);font-size:14px;font-weight:500}.notes-export-pdf-doc .cell-word .w{font-weight:700;font-size:17px;color:var(--nx-brand-dark);line-height:1.2}.notes-export-pdf-doc .cell-word .ph{color:var(--nx-ink-muted);font-size:12.5px;margin-top:4px}.notes-export-pdf-doc .cell-meaning{color:var(--nx-ink);font-size:14px;line-height:1.7}.notes-export-pdf-doc .cell-meaning .pos{color:var(--nx-ink-soft);margin-right:4px}.notes-export-pdf-doc .example-sub{margin-top:8px;border:1px solid var(--nx-rule);border-radius:6px;overflow:hidden}.notes-export-pdf-doc .example-sub .ex-en,.notes-export-pdf-doc .example-sub .ex-cn{padding:6px 10px;font-size:12.5px;line-height:1.55}.notes-export-pdf-doc .example-sub .ex-en{background:#f5fbf7;color:var(--nx-ink);font-style:italic;border-bottom:1px dashed var(--nx-rule)}.notes-export-pdf-doc .example-sub .ex-cn{background:var(--theme-surface,#fff);color:var(--nx-ink-soft)}.notes-export-pdf-doc .example-sub .ex-label{display:inline-block;color:var(--nx-brand);font-weight:600;font-size:11px;margin-right:8px;font-style:normal;letter-spacing:.05em}.notes-export-pdf-doc .exp-grid{display:grid;grid-template-columns:1fr;gap:14px}.notes-export-pdf-doc .exp-card{border-radius:12px;padding:16px 20px 14px;border:1px dashed rgba(0,0,0,.06)}.notes-export-pdf-doc .exp-card.c1{background:#fde9e4}.notes-export-pdf-doc .exp-card.c2{background:#fef6d8}.notes-export-pdf-doc .exp-card.c3{background:#e3f3df}.notes-export-pdf-doc .exp-card.c4{background:#dfeefa}.notes-export-pdf-doc .exp-card.c5{background:#eae3f5}.notes-export-pdf-doc .exp-card.c6{background:#fce4ec}.notes-export-pdf-doc .exp-card .exp-title{font-size:15px;font-weight:700;line-height:1.35;color:var(--nx-ink);margin:0 0 10px}.notes-export-pdf-doc .exp-block{margin-bottom:8px}.notes-export-pdf-doc .exp-block:last-child{margin-bottom:0}.notes-export-pdf-doc .exp-block .ex-row{font-size:12.5px;line-height:1.65;color:var(--nx-ink)}.notes-export-pdf-doc .exp-block .ex-row+.ex-row{margin-top:4px}.notes-export-pdf-doc .exp-block .ex-label{display:inline-flex;align-items:center;gap:4px;font-weight:600;color:var(--nx-ink);margin-right:4px}.notes-export-pdf-doc .exp-block .ex-body{color:var(--nx-ink-soft)}.notes-export-pdf-doc .exp-rich-html{font-size:12.5px;line-height:1.65;color:var(--nx-ink)}.notes-export-pdf-doc .exp-rich-html p{margin:0 0 6px}.notes-export-pdf-doc .exp-rich-html p:last-child{margin-bottom:0}.notes-export-pdf-doc .exp-rich-html p:empty{margin:0;height:4px}.notes-export-pdf-doc .exp-rich-html br{line-height:1.6}.notes-export-pdf-doc .exp-rich-html strong,.notes-export-pdf-doc .exp-rich-html b{font-weight:600;color:var(--nx-ink)}.notes-export-pdf-doc .exp-rich-html em,.notes-export-pdf-doc .exp-rich-html i{font-style:italic}.notes-export-pdf-doc .exp-sub{margin-top:4px;padding-left:14px;border-left:2px solid rgba(0,0,0,.08)}.notes-export-pdf-doc .exp-sub .k{font-weight:600;color:var(--nx-ink);margin-right:4px}.notes-export-pdf-doc .exp-sub .l{color:var(--nx-ink-soft)}.notes-export-pdf-doc .exp-sub .item{margin-top:4px;font-size:12px;line-height:1.6}.notes-export-pdf-doc .exp-sub .item .cn{color:var(--nx-ink-muted);display:block;margin-top:2px}.notes-export-pdf-doc .page-footer{padding-top:14px;border-top:1px solid var(--nx-rule);display:flex;justify-content:space-between;font-size:11px;color:var(--nx-ink-muted);letter-spacing:.05em;flex-shrink:0}@media (max-width: 768px){.notes-export-dialog{width:96%;max-height:96vh}.notes-export-body{padding:12px 0}}.word-popup-overlay{position:fixed;inset:0;z-index:10000;background-color:#0f172a59;display:flex;align-items:center;justify-content:center;animation:overlayFadeIn .2s ease-out}.word-popup-overlay.closing{animation:overlayFadeOut .2s ease-out forwards}@keyframes overlayFadeIn{0%{opacity:0}to{opacity:1}}@keyframes overlayFadeOut{0%{opacity:1}to{opacity:0}}.word-popup-card{position:absolute;background:var(--theme-surface,#fff);border-radius:20px;box-shadow:0 18px 45px #0f172a40;padding:24px 20px 20px;min-width:290px;max-width:360px;animation:popupSlideIn .2s cubic-bezier(.34,1.56,.64,1);z-index:10001}@media (min-width: 769px){.word-popup-card{left:var(--popup-x);top:var(--popup-y)}.word-popup-card.word-popup-top{transform:translate(-50%,calc(-100% - 10px))}.word-popup-card.word-popup-bottom{transform:translate(-50%)}}@media (max-width: 768px){.word-popup-card{position:fixed;left:50%;top:50%;transform:translate(-50%,-50%);margin:0;max-width:calc(100vw - 40px)}.word-popup-card.closing{animation:popupSlideOutMobile .2s cubic-bezier(.4,0,.6,1) forwards}}@keyframes popupSlideIn{0%{opacity:0;transform:translate(-50%,calc(-100% - 10px)) scale(.9)}to{opacity:1;transform:translate(-50%,calc(-100% - 10px)) scale(1)}}@keyframes popupSlideInBottom{0%{opacity:0;transform:translate(-50%) scale(.9)}to{opacity:1;transform:translate(-50%) scale(1)}}.word-popup-card.word-popup-bottom{animation:popupSlideInBottom .2s cubic-bezier(.34,1.56,.64,1)}@media (max-width: 768px){@keyframes popupSlideIn{0%{opacity:0;transform:translate(-50%,-45%) scale(.92)}to{opacity:1;transform:translate(-50%,-50%) scale(1)}}@keyframes popupSlideOutMobile{0%{opacity:1;transform:translate(-50%,-50%) scale(1)}to{opacity:0;transform:translate(-50%,-45%) scale(.95)}}}@media (min-width: 769px){.word-popup-card.word-popup-top.closing{animation:popupSlideOutTop .2s cubic-bezier(.4,0,.6,1) forwards}.word-popup-card.word-popup-bottom.closing{animation:popupSlideOutBottom .2s cubic-bezier(.4,0,.6,1) forwards}@keyframes popupSlideOutTop{0%{opacity:1;transform:translate(-50%,calc(-100% - 10px)) scale(1)}to{opacity:0;transform:translate(-50%,calc(-100% - 15px)) scale(.95)}}@keyframes popupSlideOutBottom{0%{opacity:1;transform:translate(-50%) scale(1)}to{opacity:0;transform:translate(-50%,5px) scale(.95)}}}.word-popup-header{display:flex;justify-content:space-between;align-items:flex-start;margin-bottom:14px}.word-popup-title{font-size:26px;font-weight:700;color:var(--theme-text,#1f2937);margin:0;flex:1}.word-popup-close{background:transparent;border:none;margin-left:12px;padding:4px;border-radius:999px;cursor:pointer;color:var(--theme-text-muted,#9ca3af);display:inline-flex;align-items:center;justify-content:center}.word-popup-close:active{background:var(--theme-surface-muted,#f3f4f6)}.word-popup-phonetic{display:flex;align-items:center;gap:8px;margin-bottom:16px;justify-content:flex-start;width:100%}.phonetic-text{font-size:17px;color:var(--theme-text-muted,#6b7280);font-style:italic;font-family:Arial,Helvetica Neue,Noto Sans,Segoe UI,sans-serif;font-feature-settings:"liga" 0;display:inline-block;flex:0 1 auto;min-width:0;max-width:100%;line-height:1.55;white-space:normal;overflow-wrap:anywhere}.part-of-speech{display:inline-block;font-size:13px;font-style:normal;font-weight:600;color:#16a34a;background:#dcfce7;padding:2px 8px;border-radius:4px}.phonetic-button{border:none;background:var(--theme-surface-muted,#f3f4f6);border-radius:999px;padding:4px;width:28px;height:28px;cursor:pointer;display:inline-flex;align-items:center;justify-content:center;color:var(--theme-text-muted,#6b7280);transition:all .2s ease;flex:0 0 auto}.phonetic-button:hover{background:var(--theme-border,#e5e7eb)}.phonetic-button:active{transform:scale(.96)}.phonetic-button svg{display:block}.word-popup-chinese{font-size:17px;font-weight:600;color:var(--theme-text,#1f2937);margin-bottom:14px;line-height:1.5}.word-popup-english{margin-bottom:18px;padding:10px 12px;border-radius:10px;background:var(--theme-learning-action-soft,#e8f5e9);border-left:3px solid var(--theme-learning-accent,#2FBFA0);display:flex;align-items:center;gap:10px}.word-popup-english-text{font-size:14px;color:var(--theme-learning-accent-strong,#065f46);line-height:1.6;flex:1}.phrase-popup-title{line-height:1.35}.phrase-popup-token-btn{border:none;background:transparent;color:inherit;font:inherit;line-height:inherit;padding:0 1px;margin:0;cursor:pointer;border-radius:4px}.phrase-popup-token-btn:hover{color:var(--theme-learning-accent-strong,#047857)}.phrase-popup-token-btn:active{color:var(--theme-learning-accent-strong,#065f46)}.phrase-popup-token-btn:focus-visible{outline:2px solid var(--theme-learning-action-soft-strong,#86efac);outline-offset:1px}.word-popup-footer{display:flex;align-items:center;justify-content:space-between;border-top:1px solid var(--theme-border,#f3f4f6);padding-top:12px;margin-top:4px}.word-popup-footer-text{font-size:14px;color:var(--theme-text-muted,#6b7280)}.word-popup-footer-back{border:none;background:transparent;color:var(--theme-text-muted,#6b7280);padding:4px 6px;border-radius:8px;cursor:pointer;display:inline-flex;align-items:center;gap:2px;font-size:14px;font-weight:600}.word-popup-footer-back:hover{background:var(--theme-surface-muted,#f3f4f6);color:var(--theme-text,#374151)}.word-popup-footer-back:active{background:var(--theme-border,#e5e7eb)}.word-popup-footer-back:focus-visible{outline:2px solid var(--theme-learning-action-soft-strong,#86efac);outline-offset:1px}.word-popup-fav-btn{background:transparent;border:none;padding:8px;width:44px;height:44px;border-radius:999px;cursor:pointer;display:inline-flex;align-items:center;justify-content:center;transition:background .15s ease}.word-popup-fav-btn:hover,.word-popup-fav-btn:active{background:var(--theme-surface-muted,#f3f4f6)}.word-popup-fav-btn:disabled{opacity:.6;cursor:default}@media (max-width: 768px){.word-popup-card{padding:22px 18px 18px;min-width:270px}.word-popup-title{font-size:24px}.word-popup-chinese{font-size:16px}.word-popup-english{margin-bottom:16px}}@media (max-width: 380px){.word-popup-card{min-width:240px}.word-popup-title{font-size:20px}}.selection-toolbar-backdrop{position:fixed;inset:0;z-index:9998}.selection-toolbar{display:inline-flex;background:#1f2937;border-radius:20px;padding:4px 6px;box-shadow:0 4px 16px #00000040;animation:selectionToolbarIn .15s ease-out}.selection-toolbar-btn{display:inline-flex;align-items:center;gap:4px;background:transparent;border:none;color:#fff;font-size:13px;font-weight:500;padding:6px 12px;border-radius:16px;cursor:pointer;white-space:nowrap}.selection-toolbar-pill{display:inline-flex;align-items:center;justify-content:center;font-size:11px;font-weight:700;line-height:1;padding:2px 6px;border-radius:999px;background:var(--theme-surface,#fff)fff2e}.selection-toolbar-word{display:inline-block;max-width:180px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:13px;font-weight:600;letter-spacing:.2px}.selection-toolbar-btn:active{background:var(--theme-surface,#fff)fff26}@keyframes selectionToolbarIn{0%{opacity:0;transform:translate(-50%) translateY(4px) scale(.9)}to{opacity:1;transform:translate(-50%) translateY(0) scale(1)}}.dict-popup-card{max-height:80vh;overflow-y:auto}.dict-loading{display:flex;align-items:center;gap:10px;padding:20px 0;color:var(--theme-text-muted,#6b7280);font-size:14px}.dict-spinner{width:20px;height:20px;border:2px solid #e5e7eb;border-top-color:var(--theme-learning-accent,#10b981);border-radius:50%;animation:dictSpin .6s linear infinite}@keyframes dictSpin{to{transform:rotate(360deg)}}.dict-error{padding:16px 0;color:var(--theme-text-muted,#9ca3af);font-size:14px;text-align:center}.dict-chinese-list{display:flex;flex-direction:column;gap:10px}.dict-chinese-line{word-break:break-word}.dict-definitions-list{margin:12px 0 16px;display:flex;flex-direction:column;gap:8px;max-height:180px;overflow-y:auto}.dict-save-btn{background:#10b981;color:#fff;border:none;border-radius:8px;padding:6px 16px;font-size:13px;font-weight:500;cursor:pointer;transition:background .2s}.dict-save-btn:hover:not(:disabled){background:#059669}.dict-save-btn:disabled{opacity:.6;cursor:default}.dict-save-btn.saved{background:#d1fae5;color:var(--theme-learning-accent-strong,#065f46)}.subtitle-recording-controls{display:flex;align-items:center;gap:12px;padding:8px 12px;background:#f1f3f5;border-radius:8px;margin-top:8px;transition:all .2s}.subtitle-recording-controls:hover{background:#e9ecef}.recording-btn{display:flex;align-items:center;justify-content:center;width:36px;height:36px;border:none;border-radius:50%;cursor:pointer;transition:all .2s;background:var(--theme-surface,#fff);box-shadow:0 2px 4px #0000001a;position:relative;touch-action:manipulation;-webkit-tap-highlight-color:transparent;-webkit-user-select:none;-moz-user-select:none;user-select:none;overflow:hidden}.recording-btn:hover{transform:translateY(-1px);box-shadow:0 4px 8px #00000026}.recording-btn:active{transform:translateY(0);box-shadow:0 2px 4px #0000001a}.recording-btn.active{transform:scale(.92);box-shadow:0 1px 2px #0000001f}.recording-btn.play{background:#3b82f6;color:#fff}.recording-btn.play:hover{background:#2563eb}.recording-btn.play:active{background:#1d4ed8}.recording-btn.play.playing{background:#1d4ed8;box-shadow:0 0 0 4px #3b82f62e,0 6px 12px #1d4ed847}.recording-btn.record{background:#ef4444;color:#fff}.recording-btn.record:hover{background:#dc2626}.recording-btn.record:active{background:#b91c1c}.recording-btn.record.recording{box-shadow:0 0 0 4px #ef444433}@keyframes pulse{0%,to{transform:scale(1);opacity:1}50%{transform:scale(1.05);opacity:.9}}.recording-animation{display:flex;align-items:center;justify-content:center;width:100%;height:100%}.recording-stop-icon{width:12px;height:12px;border-radius:3px;background:currentColor}.recording-animation .pulse,.recording-stop-icon{animation:iconPulse 1s infinite}@keyframes iconPulse{0%,to{opacity:1}50%{opacity:.7}}.recording-btn.playback{background:var(--theme-learning-accent, #10b981);color:#fff}.recording-btn.playback:hover{background:var(--theme-learning-accent-strong, #059669)}.recording-btn.playback:active{background:var(--theme-learning-accent-strong, #047857)}.recording-btn.playback.playing{background:var(--theme-learning-accent-strong, #047857);box-shadow:0 0 0 4px rgba(var(--theme-learning-accent-rgb, 16, 185, 129),.18),0 6px 12px rgba(var(--theme-learning-accent-rgb, 16, 185, 129),.28)}.recording-btn.playback.disabled{background:#d1d5db;color:var(--theme-text-muted,#9ca3af);cursor:not-allowed;opacity:.5}.recording-btn.playback.disabled:hover{transform:none;box-shadow:0 2px 4px #0000001a;background:#d1d5db}.playback-rate-selector-mobile{display:flex;align-items:center;margin:0 4px}.playback-rate-select-mobile{width:60px;height:36px;border:none;border-radius:18px;background:#6366f1;color:#fff;font-size:12px;font-weight:500;text-align:center;cursor:pointer;transition:all .2s;box-shadow:0 2px 4px #0000001a;-webkit-appearance:none;-moz-appearance:none;appearance:none;outline:none;touch-action:manipulation;-webkit-tap-highlight-color:transparent}.playback-rate-select-mobile:hover{background:#4f46e5;transform:translateY(-1px);box-shadow:0 4px 8px #00000026}.playback-rate-select-mobile:active{transform:translateY(0);box-shadow:0 2px 4px #0000001a}.playback-rate-select-mobile:focus-visible{outline:2px solid #3b82f6;outline-offset:2px}.recording-waveform{display:inline-flex;align-items:center;justify-content:center;flex-shrink:0;gap:3px;height:30px;margin-left:auto;padding:0 6px;color:#ef4444}.recording-waveform>span{width:3px;border-radius:3px;background:currentColor;transform-origin:center;animation:recordingWave .8s ease-in-out infinite}@keyframes recordingWave{0%,to{transform:scaleY(.25)}50%{transform:scaleY(1)}}@media (prefers-reduced-motion: reduce){.recording-waveform>span{animation:none;transform:scaleY(.65)}}.read-badge{margin-left:auto;padding:4px 12px;background:var(--theme-learning-accent, #10b981);color:#fff;border-radius:12px;font-size:12px;font-weight:500;white-space:nowrap;animation:fadeInBadge .3s ease-in}.processing-badge{margin-left:auto;padding:4px 12px;background:#f59e0b;color:#fff;border-radius:12px;font-size:12px;font-weight:500;white-space:nowrap;animation:fadeInBadge .3s ease-in,processingPulse 1.5s infinite}@keyframes fadeInBadge{0%{opacity:0;transform:scale(.8)}to{opacity:1;transform:scale(1)}}@keyframes processingPulse{0%,to{opacity:1}50%{opacity:.7}}@media (max-width: 768px){.subtitle-recording-controls{padding:8px 10px;gap:10px}.recording-btn{width:44px;height:44px}.recording-btn svg{width:18px;height:18px}.read-badge{font-size:11px;padding:4px 10px}.recording-btn:hover{transform:none;box-shadow:0 2px 4px #0000001a}.recording-btn:active,.recording-btn.active{transform:scale(.92)}.playback-rate-selector-mobile{margin:0 2px}.playback-rate-select-mobile{width:54px;height:44px;font-size:11px;border-radius:22px}.playback-rate-select-mobile:hover{background:#6366f1;transform:none;box-shadow:0 2px 4px #0000001a}.playback-rate-select-mobile:active{transform:scale(.95);background:#4f46e5}}.floating-video-window{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,sans-serif}.floating-video-window.dragging{cursor:grabbing!important}.floating-video-window.mobile{box-shadow:0 12px 48px #0006}.floating-video-window.desktop{box-shadow:0 8px 32px #0000004d}.recording-uploading{position:relative}.recording-uploading:after{content:"";position:absolute;top:50%;left:50%;width:20px;height:20px;margin:-10px 0 0 -10px;border:2px solid rgba(255,255,255,.3);border-top-color:#fff;border-radius:50%;animation:spin .8s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}.reading-progress-bar{position:relative;height:4px;background:var(--theme-border,#e5e7eb);border-radius:2px;overflow:hidden;margin:8px 0}.reading-progress-bar .progress-fill{height:100%;background:linear-gradient(90deg,var(--theme-learning-accent, #10b981),var(--theme-learning-accent-strong, #059669));transition:width .3s ease;border-radius:2px}.reading-progress-bar .progress-text{position:absolute;top:-20px;right:0;font-size:11px;color:var(--theme-text-muted,#6b7280)}.recording-btn:focus-visible{outline:2px solid #3b82f6;outline-offset:2px}.recording-btn[aria-disabled=true]{cursor:not-allowed;opacity:.5}.settings-item{display:flex;align-items:center;justify-content:space-between;padding:16px 20px;background:var(--theme-surface,#fff);border-radius:12px;margin-bottom:8px}.settings-item-left{display:flex;align-items:center;gap:12px}.settings-item-left svg{flex-shrink:0;color:#4b5563}.settings-item-label{font-size:16px;font-weight:500;color:var(--theme-text,#1f2937)}.settings-item input[type=range]{accent-color:var(--theme-learning-accent, #10b981)}.toggle-switch{position:relative;display:inline-block;width:51px;height:31px;margin:0}.toggle-switch input{opacity:0;width:0;height:0}.toggle-slider{position:absolute;cursor:pointer;inset:0;background-color:#d1d5db;transition:.3s;border-radius:31px}.toggle-slider:before{position:absolute;content:"";height:27px;width:27px;left:2px;bottom:2px;background-color:#fff;transition:.3s;border-radius:50%;box-shadow:0 2px 4px #0003}.toggle-switch input:checked+.toggle-slider{background-color:var(--theme-learning-accent, #10b981)}.toggle-switch input:checked+.toggle-slider:before{transform:translate(20px)}.mobile-bottom-toolbar .toolbar-icon-btn.active svg{color:var(--theme-learning-accent, #10b981)}.mobile-bottom-toolbar .toolbar-icon-btn.mode-active{position:relative}.mobile-bottom-toolbar .toolbar-icon-btn.mode-active:after{content:"";position:absolute;bottom:0;left:50%;transform:translate(-50%);width:32px;height:3px;background:var(--theme-learning-accent, #10b981);border-radius:2px 2px 0 0;animation:slideUpIndicator .3s ease-out}@keyframes slideUpIndicator{0%{opacity:0;transform:translate(-50%) translateY(4px)}to{opacity:1;transform:translate(-50%) translateY(0)}}.mobile-bottom-toolbar .toolbar-icon-btn.mode-active svg{color:var(--theme-learning-accent, #10b981)}.mobile-bottom-toolbar .toolbar-icon-btn.reading-active{position:relative}.mobile-bottom-toolbar .toolbar-icon-btn.reading-active:after{content:"";position:absolute;bottom:0;left:50%;transform:translate(-50%);width:32px;height:3px;background:var(--theme-learning-accent, #10b981);border-radius:2px 2px 0 0;animation:slideUpIndicator .3s ease-out}.mobile-bottom-toolbar .toolbar-icon-btn.reading-active svg{color:var(--theme-learning-accent, #10b981)}@media (prefers-color-scheme: dark) and (min-width: 769px){html:not([data-app-theme]) .subtitle-recording-controls{background:#1f2937}html:not([data-app-theme]) .subtitle-recording-controls:hover{background:#374151}html:not([data-app-theme]) .recording-btn{background:#374151;box-shadow:0 2px 4px #0000004d}html:not([data-app-theme]) .read-badge{background:#059669}html:not([data-app-theme]) .reading-progress-bar{background:#374151}html:not([data-app-theme]) .reading-progress-bar .progress-text{color:var(--theme-text-muted,#9ca3af)}html:not([data-app-theme]) .playback-rate-select-mobile{background:#4f46e5;color:#fff}html:not([data-app-theme]) .playback-rate-select-mobile:hover{background:#3730a3}html:not([data-app-theme]) .playback-rate-select-mobile:active{background:#312e81}}

.account-required-backdrop{position:fixed;inset:0;z-index:1400;display:grid;place-items:center;padding:20px;background:#141f1994;backdrop-filter:blur(8px);-webkit-backdrop-filter:blur(8px)}.account-required-dialog{position:relative;width:min(390px,100%);padding:44px 32px 28px;border:1px solid rgba(63,138,91,.16);border-radius:20px;background:radial-gradient(circle at 100% 0%,rgba(77,160,108,.11),transparent 38%),#fffefb;box-shadow:0 28px 70px #0a1c1147;color:#293a30;font-family:Poppins,PingFang SC,Hiragino Sans GB,Microsoft YaHei,sans-serif;text-align:center}.account-required-close{position:absolute;top:14px;right:14px;width:36px;height:36px;border:0;border-radius:50%;background:#293a3012;color:#5f6d64;font:400 25px/1 sans-serif;cursor:pointer}.account-required-dialog h2{margin:0;color:#24352c;font-size:26px;font-weight:700;line-height:1.3}.account-required-copy{margin:14px auto 26px;color:#69766e;font-size:15px;line-height:1.75}.account-required-purchase,.account-required-login{width:100%;min-height:50px;border-radius:11px;font-family:inherit;font-size:15px;font-weight:700;cursor:pointer}.account-required-purchase{border:0;background:linear-gradient(135deg,#50aa72,#358b58);box-shadow:0 12px 25px #358b583d;color:#fff}.account-required-login{min-height:40px;margin-top:8px;border:0;background:transparent;color:#627067;font-size:14px;font-weight:500}@media (max-width: 480px){.account-required-backdrop{align-items:end;padding:12px}.account-required-dialog{padding:42px 24px 22px;border-radius:20px}.account-required-dialog h2{font-size:22px}}.subtitle-actions{position:absolute;top:6px;right:8px;z-index:2}.subtitle-item .subtitle-time{padding-right:44px;min-height:28px}.subtitle-more-btn{display:inline-flex;align-items:center;justify-content:center;width:40px;height:40px;padding:0;border:0;border-radius:50%;color:var(--theme-text-secondary, #64748b);background:transparent;cursor:pointer}.subtitle-more-btn:hover,.subtitle-more-btn[aria-expanded=true]{background:#94a3b824}.subtitle-more-btn.saved{color:var(--theme-accent-strong, #3f8a5b);background:var(--theme-accent-soft, #e8f3ea)}.subtitle-more-btn.saved:hover,.subtitle-more-btn.saved[aria-expanded=true]{background:var(--theme-accent-soft-strong, #dcecdf)}.subtitle-more-btn:focus-visible,.subtitle-actions-menu.keyboard-navigation button:focus-visible{outline:2px solid var(--theme-learning-accent, #10b981);outline-offset:-2px}.subtitle-actions-menu{position:fixed;outline:none;z-index:10000;width:160px;padding:8px;background:var(--theme-surface, #fff);color:var(--theme-text-primary, #334155);border:1px solid rgba(148,163,184,.2);border-radius:12px;box-shadow:0 8px 28px #0f172a29}.subtitle-actions-menu button{display:flex;align-items:center;gap:10px;width:100%;min-height:36px;padding:0 10px;border:0;border-radius:8px;outline:none;color:inherit;background:transparent;font-size:14px;font-family:inherit;font-weight:400;line-height:20px;text-align:left;cursor:pointer}.subtitle-actions-menu button:hover{background:#94a3b81f}.subtitle-actions-menu button.saved{color:#fdba22}.subtitle-action-icon{width:20px;height:20px;flex-shrink:0}@media (pointer: coarse){.subtitle-actions-menu button{min-height:44px}}.subtitle-actions-menu button:disabled,.subtitle-more-btn:disabled{opacity:.5;cursor:wait}.subtitle-action-toast{bottom:calc(200px + env(safe-area-inset-bottom,0px));z-index:10001;pointer-events:none}html.video-desktop-layout .subtitle-action-toast{bottom:24px}

/* ---- 短语/单词卡弹层（逐字复刻原站 useVideoLayerSuppression CSS） ---- */
.word-popup-overlay{position:fixed;inset:0;z-index:10000;background-color:#0f172a59;display:flex;align-items:center;justify-content:center;animation:overlayFadeIn .2s ease-out}

.word-popup-overlay.closing{animation:overlayFadeOut .2s ease-out forwards}

@keyframes overlayFadeIn{0%{opacity:0}to{opacity:1}}

@keyframes overlayFadeOut{0%{opacity:1}to{opacity:0}}

.word-popup-card{position:absolute;background:var(--theme-surface,#fff);border-radius:20px;box-shadow:0 18px 45px #0f172a40;padding:24px 20px 20px;min-width:290px;max-width:360px;animation:popupSlideIn .2s cubic-bezier(.34,1.56,.64,1);z-index:10001}

@media (min-width: 769px){.word-popup-card{left:var(--popup-x);top:var(--popup-y)}.word-popup-card.word-popup-top{transform:translate(-50%,calc(-100% - 10px))}.word-popup-card.word-popup-bottom{transform:translate(-50%)}}

@media (max-width: 768px){.word-popup-card{position:fixed;left:50%;top:50%;transform:translate(-50%,-50%);margin:0;max-width:calc(100vw - 40px)}.word-popup-card.closing{animation:popupSlideOutMobile .2s cubic-bezier(.4,0,.6,1) forwards}}

@keyframes popupSlideIn{0%{opacity:0;transform:translate(-50%,calc(-100% - 10px)) scale(.9)}to{opacity:1;transform:translate(-50%,calc(-100% - 10px)) scale(1)}}

@keyframes popupSlideInBottom{0%{opacity:0;transform:translate(-50%) scale(.9)}to{opacity:1;transform:translate(-50%) scale(1)}}

.word-popup-card.word-popup-bottom{animation:popupSlideInBottom .2s cubic-bezier(.34,1.56,.64,1)}

@media (max-width: 768px){@keyframes popupSlideIn{0%{opacity:0;transform:translate(-50%,-45%) scale(.92)}to{opacity:1;transform:translate(-50%,-50%) scale(1)}}@keyframes popupSlideOutMobile{0%{opacity:1;transform:translate(-50%,-50%) scale(1)}to{opacity:0;transform:translate(-50%,-45%) scale(.95)}}}

@media (min-width: 769px){.word-popup-card.word-popup-top.closing{animation:popupSlideOutTop .2s cubic-bezier(.4,0,.6,1) forwards}.word-popup-card.word-popup-bottom.closing{animation:popupSlideOutBottom .2s cubic-bezier(.4,0,.6,1) forwards}@keyframes popupSlideOutTop{0%{opacity:1;transform:translate(-50%,calc(-100% - 10px)) scale(1)}to{opacity:0;transform:translate(-50%,calc(-100% - 15px)) scale(.95)}}@keyframes popupSlideOutBottom{0%{opacity:1;transform:translate(-50%) scale(1)}to{opacity:0;transform:translate(-50%,5px) scale(.95)}}}

.word-popup-header{display:flex;justify-content:space-between;align-items:flex-start;margin-bottom:14px}

.word-popup-title{font-size:26px;font-weight:700;color:var(--theme-text,#1f2937);margin:0;flex:1}

.word-popup-close{background:transparent;border:none;margin-left:12px;padding:4px;border-radius:999px;cursor:pointer;color:var(--theme-text-muted,#9ca3af);display:inline-flex;align-items:center;justify-content:center}

.word-popup-close:active{background:var(--theme-surface-muted,#f3f4f6)}

.word-popup-phonetic{display:flex;align-items:center;gap:8px;margin-bottom:16px;justify-content:flex-start;width:100%}

.phonetic-text{font-size:17px;color:#6b7280;font-style:italic;font-family:Arial,Helvetica Neue,Noto Sans,Segoe UI,sans-serif;font-feature-settings:"liga" 0;display:inline-block;flex:0 1 auto;min-width:0;max-width:100%;line-height:1.55;white-space:normal;overflow-wrap:anywhere}

.phonetic-button{border:none;background:#f3f4f6;border-radius:999px;padding:4px;width:28px;height:28px;cursor:pointer;display:inline-flex;align-items:center;justify-content:center;color:#6b7280;transition:all .2s ease;flex:0 0 auto}

.phonetic-button:hover{background:#e5e7eb}

.phonetic-button:active{transform:scale(.96)}

.phonetic-button svg{display:block}

.word-popup-chinese{font-size:17px;font-weight:600;color:var(--theme-text,#1f2937);margin-bottom:14px;line-height:1.5}

.word-popup-english{margin-bottom:18px;padding:10px 12px;border-radius:10px;background:var(--theme-learning-action-soft,#e8f5e9);border-left:3px solid var(--theme-learning-accent,#2FBFA0);display:flex;align-items:center;gap:10px}

.word-popup-english-text{font-size:14px;color:var(--theme-learning-accent-strong,#065f46);line-height:1.6;flex:1}

.phrase-popup-title{line-height:1.35}

.phrase-popup-token-btn{border:none;background:transparent;color:inherit;font:inherit;line-height:inherit;padding:0 1px;margin:0;cursor:pointer;border-radius:4px}

.phrase-popup-token-btn:hover{color:var(--theme-learning-accent-strong,#047857)}

.phrase-popup-token-btn:active{color:var(--theme-learning-accent-strong,#065f46)}

.phrase-popup-token-btn:focus-visible{outline:2px solid var(--theme-learning-action-soft-strong,#86efac);outline-offset:1px}

.word-popup-footer{display:flex;align-items:center;justify-content:space-between;border-top:1px solid var(--theme-border,#f3f4f6);padding-top:12px;margin-top:4px}

.word-popup-footer-text{font-size:14px;color:var(--theme-text-muted,#6b7280)}

.word-popup-footer-back{border:none;background:transparent;color:var(--theme-text-muted,#6b7280);padding:4px 6px;border-radius:8px;cursor:pointer;display:inline-flex;align-items:center;gap:2px;font-size:14px;font-weight:600}

.word-popup-footer-back:hover{background:var(--theme-surface-muted,#f3f4f6);color:var(--theme-text,#374151)}

.word-popup-footer-back:active{background:var(--theme-border,#e5e7eb)}

.word-popup-footer-back:focus-visible{outline:2px solid var(--theme-learning-action-soft-strong,#86efac);outline-offset:1px}

.word-popup-fav-btn{background:transparent;border:none;padding:8px;width:44px;height:44px;border-radius:999px;cursor:pointer;display:inline-flex;align-items:center;justify-content:center;transition:background .15s ease}

.word-popup-fav-btn:hover,.word-popup-fav-btn:active{background:var(--theme-surface-muted,#f3f4f6)}

.word-popup-fav-btn:disabled{opacity:.6;cursor:default}

@media (max-width: 768px){.word-popup-card{padding:22px 18px 18px;min-width:270px}.word-popup-title{font-size:24px}.word-popup-chinese{font-size:16px}.word-popup-english{margin-bottom:16px}}

@media (max-width: 380px){.word-popup-card{min-width:240px}.word-popup-title{font-size:20px}}

/* ---- 实时查词弹窗加载/错误/多行释义（原版 useVideoLayerSuppression CSS） ---- */
.dict-loading{display:flex;align-items:center;gap:10px;padding:20px 0;color:#6b7280;font-size:14px}
.dict-spinner{width:20px;height:20px;border:2px solid #e5e7eb;border-top-color:var(--theme-learning-accent,#10b981);border-radius:50%;animation:dictSpin .6s linear infinite}
@keyframes dictSpin{to{transform:rotate(360deg)}}
.dict-error{padding:16px 0;color:#9ca3af;font-size:14px;text-align:center}
.dict-chinese-list{display:flex;flex-direction:column;gap:10px}
.dict-chinese-line{word-break:break-word}

/* ---- 未标注单词点选工具条（逐字复刻原站 useVideoLayerSuppression CSS） ---- */
.selection-toolbar-backdrop{position:fixed;inset:0;z-index:9998}
.selection-toolbar{display:inline-flex;background:#1f2937;border-radius:20px;padding:4px 6px;box-shadow:0 4px 16px #00000040;animation:selectionToolbarIn .15s ease-out}
.selection-toolbar-btn{display:inline-flex;align-items:center;gap:4px;background:transparent;border:none;color:#fff;font-size:13px;font-weight:500;padding:6px 12px;border-radius:16px;cursor:pointer;white-space:nowrap}
.selection-toolbar-pill{display:inline-flex;align-items:center;justify-content:center;font-size:11px;font-weight:700;line-height:1;padding:2px 6px;border-radius:999px;background:#ffffff2e}
.selection-toolbar-word{display:inline-block;max-width:180px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:13px;font-weight:600;letter-spacing:.2px}
.selection-toolbar-btn:active{background:#ffffff26}
@keyframes selectionToolbarIn{0%{opacity:0;transform:translate(-50%) translateY(4px) scale(.9)}to{opacity:1;transform:translate(-50%) translateY(0) scale(1)}}

/* ---- 移动端：底部工具栏弹层（桌面版同名规则在 min-width:769px 媒体内，移动端需镜像） ---- */
@media (max-width: 768px) {
.desktop-loop-popover{pointer-events:auto;position:fixed;z-index:10050;min-width:0;background:#fff;border:1px solid #e5e7eb;border-radius:10px;box-shadow:0 8px 24px #0000001f;padding:8px;overflow:hidden}
.dlp-title{color:#6b7280;font-size:12px;padding:6px 8px 4px}
.dlp-item{display:flex;align-items:center;gap:10px;height:36px;padding:0 10px;border-radius:8px;cursor:pointer}
.dlp-item:hover{background:#f3f4f6}
.dlp-item-button{width:100%;border:0;background:transparent;font:inherit;text-align:left}
.dlp-item-button:disabled{cursor:wait;opacity:.58}
.dlp-item-button:focus-visible{outline:3px solid rgba(16,185,129,.22);outline-offset:-2px}
.dlp-icon{width:20px;display:flex;align-items:center;justify-content:center;color:#4a4a4a}
.dlp-text{flex:1;color:#111827;font-size:14px}
.dlp-check{width:18px;display:flex;align-items:center;justify-content:center;color:var(--theme-learning-accent, #10b981)}
.dlp-divider{height:1px;background:#eef2f7;margin:6px 0}
.dlp-settings{padding:6px 8px 2px;display:flex;align-items:center;gap:10px}
.dlp-settings label{color:#6b7280;font-size:12px}
.dlp-select{border:1px solid #e5e7eb;border-radius:8px;background:#fff;height:30px;padding:0 8px;font-size:12px;color:#111827;-webkit-appearance:none;-moz-appearance:none;appearance:none}
.dlp-settings .ios-switch{transform:scale(.9)}
}

/* ---- 跟读练习：逐句录音控件（复刻原站 subtitle-recording-controls） ---- */
.subtitle-recording-controls{display:flex;align-items:center;gap:12px;padding:8px 12px;background:#f1f3f5;border-radius:8px;margin-top:8px;transition:all .2s}
.subtitle-recording-controls:hover{background:#e9ecef}
.recording-btn{display:flex;align-items:center;justify-content:center;width:36px;height:36px;border:none;border-radius:50%;cursor:pointer;transition:all .2s;background:#fff;box-shadow:0 2px 4px #0000001a;position:relative;touch-action:manipulation;-webkit-tap-highlight-color:transparent;-webkit-user-select:none;-moz-user-select:none;user-select:none;overflow:hidden}
.recording-btn:hover{transform:translateY(-1px);box-shadow:0 4px 8px #00000026}
.recording-btn:active{transform:translateY(0);box-shadow:0 2px 4px #0000001a}
.recording-btn.active{transform:scale(.92);box-shadow:0 1px 2px #0000001f}
.recording-btn.play{background:#3b82f6;color:#fff}
.recording-btn.play:hover{background:#2563eb}
.recording-btn.play:active{background:#1d4ed8}
.recording-btn.play.playing{background:#1d4ed8;box-shadow:0 0 0 4px #3b82f62e,0 6px 12px #1d4ed847}
.recording-btn.record{background:#ef4444;color:#fff}
.recording-btn.record:hover{background:#dc2626}
.recording-btn.record:active{background:#b91c1c}
.recording-btn.record.recording{box-shadow:0 0 0 4px #ef444433}
.recording-animation{display:flex;align-items:center;justify-content:center;width:100%;height:100%}
.recording-stop-icon{width:12px;height:12px;border-radius:3px;background:currentColor}
.recording-animation .pulse,.recording-stop-icon{animation:iconPulse 1s infinite}
@keyframes iconPulse{0%,to{opacity:1}50%{opacity:.7}}
.recording-btn.playback{background:var(--theme-learning-accent, #10b981);color:#fff}
.recording-btn.playback:hover{background:var(--theme-learning-accent-strong, #059669)}
.recording-btn.playback:active{background:var(--theme-learning-accent-strong, #047857)}
.recording-btn.playback.playing{background:var(--theme-learning-accent-strong, #047857);box-shadow:0 0 0 4px rgba(var(--theme-learning-accent-rgb, 16, 185, 129),.18),0 6px 12px rgba(var(--theme-learning-accent-rgb, 16, 185, 129),.28)}
.recording-btn.playback.disabled{background:#d1d5db;color:#9ca3af;cursor:not-allowed;opacity:.5}
.recording-btn.playback.disabled:hover{transform:none;box-shadow:0 2px 4px #0000001a;background:#d1d5db}
.recording-waveform{display:inline-flex;align-items:center;justify-content:center;flex-shrink:0;gap:3px;height:30px;margin-left:auto;padding:0 6px;color:#ef4444}
.recording-waveform>span{width:3px;border-radius:3px;background:currentColor;transform-origin:center;animation:recordingWave .8s ease-in-out infinite}
@keyframes recordingWave{0%,to{transform:scaleY(.25)}50%{transform:scaleY(1)}}
.processing-badge{margin-left:auto;padding:4px 12px;background:#f59e0b;color:#fff;border-radius:12px;font-size:12px;font-weight:500;white-space:nowrap;animation:fadeInBadge .3s ease-in,processingPulse 1.5s infinite}
@keyframes fadeInBadge{0%{opacity:0;transform:scale(.8)}to{opacity:1;transform:scale(1)}}
@keyframes processingPulse{0%,to{opacity:1}50%{opacity:.7}}
.recording-btn:focus-visible{outline:2px solid #3b82f6;outline-offset:2px}
.recording-btn[aria-disabled=true]{cursor:not-allowed;opacity:.5}
@media (max-width: 768px){.subtitle-recording-controls{padding:8px 10px;gap:10px}.recording-btn{width:44px;height:44px}.recording-btn svg{width:18px;height:18px}.recording-btn:hover{transform:none;box-shadow:0 2px 4px #0000001a}.recording-btn:active,.recording-btn.active{transform:scale(.92)}.recording-btn:focus-visible{outline:2px solid #3b82f6;outline-offset:2px}.recording-btn[aria-disabled=true]{cursor:not-allowed;opacity:.5}}
@media (prefers-reduced-motion: reduce){.recording-waveform>span{animation:none;transform:scaleY(.65)}}
@media (prefers-color-scheme: dark) and (min-width: 769px){html:not([data-app-theme]) .subtitle-recording-controls{background:#1f2937}html:not([data-app-theme]) .subtitle-recording-controls:hover{background:#374151}html:not([data-app-theme]) .recording-btn{background:#374151;box-shadow:0 2px 4px #0000004d}}

/* ---- 内容精读：加载失败重试（原站 error-message 样式已在 app.css，此处补按钮） ---- */
.content-study-section .retry-button{margin-top:8px;padding:6px 16px;border:none;border-radius:6px;background:var(--primary-color,#2563eb);color:#fff;font-size:13px;cursor:pointer}
.content-study-section .retry-button:hover{background:var(--primary-hover,#1d4ed8)}

/* ---- 单词跟读高亮（karaoke）：播放时逐词突出当前读音 ----
   权重计时在 video.js 运行时算（数据无单词级时间戳）。
   高亮块用「背景色 + 同色 box-shadow 扩散」模拟内边距——阴影不参与布局，
   加/去高亮零 reflow（早期用 padding+负 margin，行尾词仍会抖动 ±3px）。
   配色：深主题色底 + 白字（2026-10-17 用户要求）；四主题色走 restyle.css 变量。 */
.sub-word{border-radius:5px;box-shadow:0 0 0 0 var(--theme-accent-strong,#E05B39);transition:color .12s ease,background-color .12s ease,box-shadow .12s ease}
.sub-word.on{color:#fff;background-color:var(--theme-accent-strong,#E05B39);box-shadow:0 0 0 3px var(--theme-accent-strong,#E05B39);box-decoration-break:clone;-webkit-box-decoration-break:clone}
/* 填空练习：未揭示的卡片词不能因跟读高亮泄题；已揭示的照常高亮（同样用阴影模拟内边距） */
.cloze-on .word-highlight.sub-word.on:not(.revealed),.cloze-on .phrase-highlight.sub-word.on:not(.revealed){color:transparent;background-color:var(--cloze-bg,#fdecc8);box-shadow:0 0 0 3px var(--cloze-bg,#fdecc8)}
.cloze-on .word-highlight.revealed.sub-word.on,.cloze-on .phrase-highlight.revealed.sub-word.on{color:var(--theme-accent-strong,#E05B39);background-color:var(--theme-accent-soft,#FFE3D6);box-shadow:0 0 0 3px var(--theme-accent-soft,#FFE3D6)}
@media (prefers-reduced-motion:reduce){.sub-word{transition:none}}

/* ---- 主题色切换圆点：桌面头部「时长/难度」行右侧 / 移动标题栏最右 ----
   15px 纯色小圆点（无图案），点击出纵向 4 圆点面板。底色跟随当前主题 accent。 */
.video-theme-dot{width:15px;height:15px;flex:0 0 auto;display:block;padding:0;border:0;border-radius:50%;background:var(--theme-accent);cursor:pointer;box-shadow:0 1px 4px var(--theme-shadow-color);transition:transform .15s ease,background-color .2s ease;-webkit-tap-highlight-color:transparent}
.video-theme-dot:hover{transform:scale(1.25)}
.video-meta .video-theme-dot{margin-left:6px}
.mobile-top-tab .video-theme-dot{margin-left:auto}
/* 面板：纵向 4 个小圆点，无文字（title 提供无障碍名称） */
.video-theme-panel{position:fixed;z-index:1200;display:flex;flex-direction:column;align-items:center;gap:10px;padding:10px;border:1px solid var(--theme-border-subtle);border-radius:20px;background:var(--theme-surface);box-shadow:0 18px 42px var(--theme-shadow-color);animation:videoThemePanelIn .14s ease-out}
@keyframes videoThemePanelIn{from{opacity:0;transform:translateY(-4px)}to{opacity:1;transform:none}}
.video-theme-opt{width:26px;height:26px;display:grid;place-items:center;padding:0;border:0;border-radius:50%;background:transparent;cursor:pointer}
.video-theme-opt i{width:16px;height:16px;border-radius:50%;box-shadow:inset 0 0 0 1px #0000001f;transition:transform .12s ease}
.video-theme-opt:hover i{transform:scale(1.18)}
/* 当前主题：外圈环标记 */
.video-theme-opt.on i{box-shadow:inset 0 0 0 1px #0000001f,0 0 0 2px var(--theme-surface),0 0 0 4px var(--theme-accent-strong)}
@media (prefers-reduced-motion:reduce){.video-theme-panel{animation:none}}

/* CC BY 署名合规：简介标题右侧「作者：xxx」小字 + 点击弹出的来源说明。
   仅在 sidecar 带 source 时由 video.js 注入（占位符替换为空串），无数据时零像素影响。
   许可协议不在界面显示 —— 只在 HTML 源码里保留 rel=license 链接（机器可读）。
   颜色全部走主题变量，四主题自适应。 */
.video-src-wrap{float:right;position:relative;z-index:61;margin:-2px 0 0 10px;display:inline-block}
/* 弱化：无下划线、无 hover 变色，只比正文更淡一点；保留 cursor:pointer 提示可点 */
.video-src-chip{padding:1px 0;border:0;background:none;font-family:inherit;font-size:12px;font-weight:400;line-height:1.5;color:var(--theme-text-muted,#7A6B8A);opacity:.72;cursor:pointer;text-decoration:none;outline:none}
.video-src-chip:hover{color:var(--theme-text-muted,#7A6B8A);opacity:.72}
.video-src-pop{display:none;position:absolute;top:calc(100% + 8px);right:0;z-index:60;min-width:250px;max-width:320px;padding:12px 14px;border:1px solid var(--theme-border,#F2E5DA);border-radius:10px;background:var(--theme-surface,#FFFFFF);box-shadow:0 8px 24px rgba(64,48,78,.16);font-size:12px;font-weight:400;line-height:1.75;color:var(--theme-text-muted,#7A6B8A);text-align:left;white-space:normal}
.video-src-pop:not([hidden]){display:block}
.video-src-pop-title{display:block;font-weight:500;color:var(--theme-text,#40304E);margin-bottom:2px}
.video-src-pop-row{display:block;word-break:break-word}
/* 弹层内链接与正文同色、无下划线、hover 不变色（同样走弱化） */
.video-src-pop a{color:inherit;text-decoration:none;cursor:pointer;outline:none}
.video-src-pop a:hover{color:inherit;text-decoration:none;border-bottom-color:transparent}
.video-src-license{display:none}
@media (max-width:768px){.video-src-chip{font-size:11px}.video-src-pop{min-width:210px;max-width:260px;padding:10px 12px}}
