:root{--fit-bottom:0px;--inset-b:max(env(safe-area-inset-bottom,0px),var(--fit-bottom,0px))}
html,body{min-height:100%;background:#e9ece8}
body{min-width:0;display:grid;place-items:center;overflow:hidden}
.app{position:relative;display:flex;flex-direction:column;width:min(100vw,56.25svh,540px);height:min(100svh,960px);max-width:none;min-height:0;aspect-ratio:9/16;overflow:hidden;border-radius:20px;background:var(--page);box-shadow:0 18px 70px #26352c30}
.topbar{flex:0 0 44px;height:44px;min-height:44px;padding:0 10px;gap:0;justify-content:space-between;align-items:center;background:var(--panel);border-bottom:1px solid var(--line)}
.top-nav,.sidebar,.right-rail,.welcome-row,.below-grid,.site-footer,.brand,.profile,.top-more{display:none!important}
.back-button{display:grid!important;place-items:center;width:30px;height:34px;padding:0;border:0;background:transparent;color:var(--green);font-size:24px}
.mobile-course-title{flex:1;min-width:0;padding:0 8px;text-align:center;font-size:12px;font-weight:600;color:var(--ink);white-space:nowrap;overflow:hidden;position:relative}
.mobile-course-title>.mobile-course-title-track{display:flex;gap:var(--title-gap,0px);width:max-content;max-width:none;margin:0 auto;white-space:nowrap;will-change:transform;backface-visibility:hidden}
.mobile-course-title-label{display:block;flex:none}
.mobile-course-title:not(.is-marquee) .mobile-course-title-label[aria-hidden="true"]{display:none}
.mobile-course-title:not(.is-marquee)>.mobile-course-title-track{width:auto;max-width:100%}
.mobile-course-title:not(.is-marquee) .mobile-course-title-label{flex:1 1 auto;min-width:0;overflow:hidden;text-overflow:ellipsis}
.mobile-course-title.is-marquee>.mobile-course-title-track{margin-left:0;animation:course-title-marquee var(--title-duration,10s) linear infinite reverse}
@keyframes course-title-marquee{from{transform:translateX(0)}to{transform:translateX(var(--title-distance))}}   /* 与「Aa」、主题按钮同样的圆形外框 */
.app.in-portal .topbar .back-button{visibility:hidden;pointer-events:none}
.workspace{display:block;flex:1;min-height:0;padding:0;overflow:hidden}
.main-column{height:100%;min-width:0;overflow-y:auto;overscroll-behavior:contain;padding:0 0 calc(112px + var(--inset-b));scrollbar-width:none}
.main-column::-webkit-scrollbar{display:none}
.lesson-card{margin:0;padding:0;border:0;border-radius:0;background:transparent;box-shadow:none}
.youtube-import{margin:8px 12px 9px;padding:8px 9px;border:1px solid var(--line);border-radius:9px;background:var(--panel)}
.youtube-import>label{font-size:10px;margin-bottom:5px}
.youtube-input-row{gap:6px}
.youtube-input-row input{height:32px;padding:0 8px;font-size:10px}
.youtube-input-row button{height:32px;padding:0 9px;font-size:9px}
.youtube-import>small{font-size:8px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.youtube-import-status{font-size:9px}
.lesson-heading{margin:0 14px 8px;min-height:0}
.lesson-heading h2{font-size:17px;line-height:1.35}
.lesson-heading h2{overflow-wrap:anywhere}
.lesson-heading .section-kicker{font-size:8px}
.lesson-subtitle{font-size:9px;margin-top:3px}
.player-layout{display:flex;flex-direction:column;gap:0}
.video-side{min-width:0}
.video-frame{width:100%;aspect-ratio:16/9;border-radius:0;background:#080c10}
/* Pin album art to the player bounds instead of sizing it through a grid row. */
@media(max-width:600px){
 #video-frame>.audio-cover{display:block;position:absolute;inset:0;width:100%;height:100%;margin:0;padding:0}
 #video-frame>.audio-cover>img{position:absolute;inset:0;display:block;width:100%;height:100%;min-width:0;min-height:0;margin:0;object-fit:cover;object-position:center top}
}
.video-bottom{display:none!important}
.youtube-open-link{top:8px;right:8px;padding:6px 8px;font-size:9px}
.video-bottom{bottom:5px;left:8px;right:8px}
.video-meta{height:25px;padding:0 13px}
.video-meta .source-badge{font-size:8px}
.video-duration{font-size:9px}
.transcript-panel{display:flex;flex-direction:column;height:clamp(235px,34svh,340px);min-height:0;max-height:none;margin:0;border:1px solid var(--line);border-left:0;border-right:0;border-radius:0;background:var(--panel);overflow:hidden}
.panel-top{position:sticky;top:0;z-index:2;display:flex;flex:0 0 43px;height:43px;justify-content:space-between;padding:0 9px;background:var(--panel);border-bottom:1px solid var(--line)}
.mode-tabs{display:flex;flex:1;min-width:0;justify-content:space-between;gap:0;overflow-x:auto;scrollbar-width:none;-webkit-overflow-scrolling:touch}
.mode-tabs::-webkit-scrollbar{display:none}
.mode-tab{flex:0 0 auto;display:flex;align-items:center;justify-content:center;gap:2px;padding:0 5px;font-size:10px;text-align:center;white-space:nowrap}
.mode-tab span{font-size:8px}
.translation-toggle{gap:4px;padding-left:5px;font-size:9px;white-space:nowrap}
.translation-toggle .translate-icon{font-size:11px}
.translation-toggle .switch{width:23px;height:13px}
.transcript-scroll{flex:1;min-height:0;max-height:none;padding:0 10px;overflow:auto;overscroll-behavior:contain}
.alignment-note{margin:7px 0 4px;font-size:8px}
.alignment-note-row{display:flex;align-items:center;gap:6px;min-width:0;margin:4px 0}
.alignment-note-row .alignment-note{flex:1;min-width:0;margin:0;padding:5px 7px;font-size:8px;line-height:1.35;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.nce-hard-practice{flex:0 0 auto;padding:5px 9px;border:1px solid #dce9dd;border-radius:999px;background:var(--green-wash);color:var(--green);font:700 9px/1.35 'Noto Sans SC',sans-serif;white-space:nowrap;cursor:pointer}
.nce-cache-audio{flex:0 0 auto;padding:5px 8px;border:1px solid #dce9dd;border-radius:999px;background:#fff;color:var(--green);font:600 9px/1.35 'Noto Sans SC',sans-serif;white-space:nowrap;cursor:pointer}
.nce-cache-audio:disabled{opacity:.72;cursor:default}
.nce-hard-practice:hover,.nce-hard-practice:focus-visible{border-color:var(--green);background:#e7f3e9}
.sentence{padding:10px 0 9px}
.sentence-tools{margin-bottom:4px}
.sentence-number{font-size:8px}
.english-line{font-size:13px;line-height:1.75}
.translation{margin-top:5px;padding-bottom:6px;font-size:10px;line-height:1.5}
.sentence-meta{margin-top:5px}
.timestamp,.sentence-actions button{font-size:9px}
.sentence-actions{gap:11px;opacity:1}
.sentence-play{width:23px;height:23px}
.transcript-footer{flex:0 0 27px;min-height:27px;padding:0 9px;font-size:8px}
/* .transcript-footer 在 styles.css 里某个断点写死了 display:flex，普通 [hidden] 压不过它（同 translation-toggle 的坑） */
#transcript-scroll[hidden],.transcript-footer[hidden]{display:none!important}
/* 精听「详情」标签页：LLM 生成的歌曲背景 / 歌词解读 / 值得学的表达 */
.detail-panel{flex:1;min-height:0;overflow-y:auto;padding:12px 14px 16px;font-size:11px;line-height:1.7;color:var(--ink)}
.detail-panel .detail-empty{padding:24px 10px;text-align:center;color:var(--muted)}
.detail-panel .detail-empty button{margin-top:10px;padding:7px 16px;border:0;border-radius:8px;background:var(--green);color:#fff;font-size:11px}
.detail-panel .detail-prompt-label{display:block;margin:0 0 12px;color:var(--muted);font-size:11px;text-align:left}
.detail-panel .detail-current-model{display:block;color:var(--green);font:600 11px/1.4 ui-monospace,Consolas,monospace}
.detail-panel .detail-empty .detail-prompt-label{margin-top:12px}
.detail-panel .detail-prompt-label textarea{display:block;box-sizing:border-box;width:100%;min-height:68px;margin-top:5px;padding:9px 10px;resize:vertical;border:1px solid var(--line);border-radius:8px;background:var(--panel);color:var(--ink);font:inherit;line-height:1.5}
.detail-panel .detail-prompt-label textarea:focus{outline:2px solid var(--green);outline-offset:1px}
.detail-panel .detail-ai-module{padding:12px;border:1px solid var(--line);border-radius:10px;background:var(--panel)}
.detail-panel .detail-ai-module>p,.detail-panel .detail-ai-module .detail-summary,.detail-panel .detail-phrase .phrase-meaning,.detail-panel .detail-phrase .phrase-example{font-size:var(--learning-content-font-size,18px)!important;line-height:1.75}
.detail-panel .detail-course-learning{margin-top:12px;padding:12px;border:1px solid var(--line);border-radius:10px;background:var(--panel);text-align:left}
.detail-panel .detail-course-learning-note{margin:7px 0 10px!important;color:var(--muted);font-size:10px}
.detail-panel .detail-course-table-scroll{max-width:100%;overflow-x:auto;margin:10px 0}
.detail-panel .detail-study-section{margin-top:12px}
.detail-panel .detail-study-section .detail-phrase{display:flex;flex-direction:column}
.detail-panel .detail-study-section .phrase-example{order:-1;margin:0 0 5px;color:var(--ink);font-size:12px;font-style:normal;font-weight:600;line-height:1.55}
.detail-panel .detail-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:10px}
.detail-panel .detail-tag{font-size:9px;padding:2px 7px;border-radius:8px;background:var(--green-wash);color:var(--green)}
.detail-panel .detail-refresh{font-size:10px;color:var(--muted);background:transparent;border:1px solid var(--line);border-radius:7px;padding:3px 8px}
.detail-panel h4{margin:14px 0 5px;font-size:11px;color:var(--green)}
.detail-panel h4:first-of-type{margin-top:0}
.detail-panel p{margin:0}
.detail-panel .detail-phrase{margin-bottom:10px;padding:8px 9px;border-radius:9px;background:var(--panel);border:1px solid var(--line)}
.detail-panel .phrase-section-head{display:flex;align-items:center;justify-content:space-between;gap:8px;flex-wrap:wrap;margin:14px 0 8px}
.detail-panel button.phrase-section-tag{display:inline-block;margin:0;padding:5px 10px;border:1px solid #dce9dd;border-radius:999px;background:var(--green-wash);color:var(--green);font:700 10px/1.4 'Noto Sans SC',sans-serif;cursor:pointer}
.detail-panel button.phrase-section-tag:hover,.detail-panel button.phrase-section-tag:focus-visible{border-color:var(--green);background:#e7f3e9}
.detail-panel .detail-phrase-head{display:flex;align-items:center;gap:7px;flex-wrap:wrap}
.detail-panel .detail-phrase-tag{display:inline-block;padding:4px 9px;border:1px solid #dce9dd;border-radius:999px;background:var(--green-wash);color:var(--green);font:700 11.5px/1.4 'Noto Sans SC',sans-serif}
.detail-panel button.phrase-practice-tag{padding:3px 8px;border:1px solid #dce9dd;border-radius:999px;background:var(--panel);color:var(--green);font:600 10px/1.4 'Noto Sans SC',sans-serif;cursor:pointer}
.detail-panel button.phrase-practice-tag:hover,.detail-panel button.phrase-practice-tag:focus-visible{border-color:var(--green);background:#e7f3e9}
.detail-panel .detail-phrase .phrase-meaning{display:block;margin-top:2px;color:var(--muted)}
.detail-panel .detail-phrase .phrase-example{display:block;margin-top:4px;font-style:italic;color:var(--green)}
.difficult-cloze-setting{display:flex;align-items:center;gap:4px;flex:0 0 auto;padding:4px 8px;border:1px solid var(--line);border-radius:999px;background:var(--panel);color:var(--muted);font-size:9px;white-space:nowrap;cursor:pointer}
.difficult-cloze-setting input{width:13px;height:13px;margin:0;accent-color:var(--green)}
.detail-panel .detail-summary{margin-top:12px;padding:9px;border-radius:9px;background:var(--green-wash);color:var(--green)}
.dark .detail-panel .detail-phrase{background:#111a22;border-color:#26323b}
.dark .detail-panel .difficult-cloze-setting{background:#111a22;border-color:#26323b}
.dark .detail-panel button.phrase-practice-tag{background:#111a22;border-color:#263b30}
.transcript-footer button{font-size:8px}
.player-controls{--pad-b:max(6px,var(--inset-b));position:absolute;z-index:8;right:0;bottom:0;left:0;display:grid;grid-template-columns:repeat(8,minmax(0,1fr));grid-template-rows:42px 48px;gap:0;width:auto;height:calc(94px + var(--pad-b));min-height:calc(94px + var(--pad-b));margin:0;padding:4px 9px var(--pad-b);border-top:1px solid var(--line);background:var(--panel);box-shadow:0 -6px 18px #29392f0b}
.timeline{grid-column:1/-1;grid-row:1;display:flex;order:0;gap:7px;width:100%;min-width:0;margin:0;font-size:9px}
.timeline input{height:4px}
.control-icon,.speed-button,.main-play{grid-row:2;justify-self:center;align-self:center}
.control-icon{display:flex;width:36px;height:36px;flex-direction:column;align-items:center;justify-content:center;padding:0;border:0;background:transparent;font-size:14px}
.control-icon em,.main-play em,.speed-button em{position:static;display:block;margin-top:1px;font:400 8px 'Noto Sans SC',sans-serif;color:var(--muted);white-space:nowrap}
.ab-control .ab-row{display:inline-flex;align-items:center;gap:2px;font-size:12px;font-weight:600}
.prev-control,.next-control{font-size:12px}
.main-play{display:flex;width:40px;height:40px;flex-direction:column;align-items:center;justify-content:center;gap:0;grid-column:4;grid-row:2;border-radius:50%;background:#2580da;box-shadow:0 3px 7px #1677ce3d}
.main-play svg{width:14px;height:14px}
.main-play em{color:#fff}
.speed-button{display:flex;width:36px;height:36px;flex-direction:column;align-items:center;justify-content:center;padding:0;border:0;background:transparent;font-size:11px}
.speed-button i{display:none}
.single-control{font-size:14px}
.single-control i{position:absolute;top:5px;left:19px;font-size:7px}
.track-mode-control{grid-column:8;font-size:14px}
.track-mode-control.enabled{color:var(--green)}
.dark .track-mode-control.enabled{color:#31cd9a}
.subtitle-control{font-size:0}
.subtitle-control:before{content:'文A';font-size:12px}
.subtitle-control small{display:none}
.volume-button,.fullscreen-button,.player-controls:after{display:none!important}
.dark .app{background:var(--page)}
.dark .video-frame{filter:none}
.dark .topbar,.dark .player-controls{background:#101820;border-color:#26323b}
.dark .transcript-panel,.dark .panel-top{background:#0d141b}
.dark .youtube-import{background:#111a22}
/* Keep every subtitle in the page scroll, instead of trapping lyrics in a short inner pane. */
.transcript-panel{height:auto;min-height:0;max-height:none;flex:0 0 auto;overflow:visible}
.transcript-scroll{flex:0 0 auto;min-height:0;max-height:none;overflow:visible;overscroll-behavior:auto}
.transcript-panel .panel-top{position:sticky;top:0}

/* Center the course title in its own lane; action buttons keep their own space. */
.topbar{display:grid;grid-template-columns:100px minmax(0,1fr) 100px;gap:0;position:relative;align-items:center}
.topbar .back-button{justify-self:start;align-self:center}
.mobile-course-title{width:100%;padding:0 4px;text-align:center;align-self:center;line-height:1.2}
.mobile-course-title>.mobile-course-title-track{position:relative;margin:0 auto}
.mobile-course-title.is-marquee>.mobile-course-title-track{margin-left:0}

/* Compact lyric cards so more lines fit above the fixed lower player. */
.alignment-note{margin:4px 0;padding:5px 7px;font-size:8px;line-height:1.35;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.dark .nce-hard-practice{background:#111a22;border-color:#263b30}
.dark .nce-cache-audio{background:#111a22;border-color:#263b30;color:#b5d4bd}
.sentence{padding:6px 7px 5px;margin:0 0 5px}
.sentence-tools{margin-bottom:2px}
.english-line{font-size:12px;line-height:1.42}
.translation{margin-top:3px;padding-bottom:3px;font-size:9px;line-height:1.3}
.translation.untranslated{display:none}
.sentence-meta{margin-top:3px}
.sentence-actions{gap:8px}
.test-course .sentence[data-index="2"],.test-course .sentence[data-index="3"]{display:block!important}

.video-config-dialog[open]{display:flex;position:fixed;inset:auto;width:min(100vw,56.25svh,540px);height:min(100svh,960px);max-width:none;max-height:none;top:50%;left:50%;margin:0;padding:0;flex-direction:column;overflow:hidden;border:1px solid var(--line);border-radius:20px;transform:translate(-50%,-50%)}
.video-config-dialog .config-dialog-head{flex:0 0 auto;min-height:68px;padding:max(12px,env(safe-area-inset-top)) 18px 12px}
.video-config-dialog .config-dialog-head h2{font-size:21px}
.video-config-dialog .config-dialog-body{flex:1;min-height:0;max-height:none;padding:0 18px calc(24px + env(safe-area-inset-bottom));overflow-y:auto;overscroll-behavior:contain}
.source-section{padding:18px 0;border-bottom:1px solid var(--line)}
.source-section-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:12px}
.source-section-head h3{margin:0;font-size:18px;color:var(--ink)}
.source-section-head p{margin:5px 0 0;color:var(--muted);font-size:13px;line-height:1.55}
.source-count{flex:none;padding:6px 10px;border-radius:999px;background:var(--green-wash);color:var(--green);font-size:13px}
.song-library-section details{border:0}
.song-library-section summary{list-style:none;cursor:pointer}
.song-library-section summary::-webkit-details-marker{display:none}
.song-library-section summary::after{content:'⌄';flex:none;margin-left:6px;color:var(--muted);font-size:15px;transition:transform .2s}
.song-library-section details[open] summary::after{transform:rotate(180deg)}
.song-library-section .program-source-list{margin-top:12px}
.song-source-filter{display:flex;gap:6px;margin-top:12px}
.nce-playlist-actions{display:flex;align-items:center;flex-wrap:wrap;gap:8px;margin-top:10px}
.nce-playlist-actions .source-form-hint{flex:1 1 100%;min-width:0;line-height:1.45}
.nce-playlist-actions>button{min-height:36px;padding:0 13px;border:1px solid var(--line);border-radius:8px;background:var(--panel);color:var(--muted);font-size:12px;font-weight:500}
.nce-playlist-actions>button:hover,.nce-playlist-actions>button:focus-visible{border-color:var(--green);background:var(--green-wash);color:var(--green)}
.nce-book-filter{margin:0 0 8px}
.nce-playlist-actions{display:flex;align-items:center;gap:10px;margin:0 0 9px;flex-wrap:wrap}
.nce-playlist-actions button{min-height:34px;padding:0 12px;border:1px solid var(--line);border-radius:8px;background:var(--panel);color:var(--ink);font-size:11px}
.nce-playlist-actions button:hover{border-color:var(--green);color:var(--green)}
.nce-lesson-card .program-source-meta{margin-top:4px}
.nce-lesson-card .source-load{white-space:nowrap}
.filter-tab{flex:1;padding:7px 4px;border:1px solid var(--line);border-radius:8px;background:var(--panel);color:var(--muted);font-size:12px;cursor:pointer;transition:background .15s,color .15s,border-color .15s}
.filter-tab.active{background:var(--green-wash);color:var(--green);border-color:var(--green)}
#fit-bottom-options[hidden]{display:none}
.video-source-settings .floating-lyrics-setting{margin-top:2px}
.program-source-list{display:grid;gap:10px}
.program-source-card{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:10px;padding:13px;border:1px solid var(--line);border-radius:12px;background:var(--panel)}
.program-source-card h4{margin:0;color:var(--ink);font-size:15px;line-height:1.5}
.program-source-meta{display:flex;flex-wrap:wrap;gap:6px;margin-top:7px}
.program-source-meta span{padding:4px 7px;border-radius:6px;background:var(--green-wash);color:var(--green);font-size:11px}
.program-source-meta .source-video-tag{border:0;font:inherit;padding:4px 7px;border-radius:6px;font-size:11px;background:#fef0f4;color:#fb7299;cursor:pointer;transition:filter .15s}
.program-source-meta .source-video-tag:hover{filter:brightness(.94)}
.program-source-meta .source-video-tag.yt{background:#fdeceb;color:#e0332a}
.program-source-meta .source-video-tag.disabled{cursor:default;opacity:.55}
.program-source-meta .source-video-tag.disabled:hover{filter:none}
.dark .program-source-meta .source-video-tag{background:#3a1f28;color:#ff8bab}
.dark .program-source-meta .source-video-tag.yt{background:#3a2220;color:#ff6b60}
.program-source-desc{margin:7px 0 0;color:var(--muted);font-size:13px;line-height:1.5}
.program-source-intro{margin-top:4px;color:var(--muted);font-size:12px;line-height:1.55}
.program-source-intro summary{display:inline-block;color:var(--green);cursor:pointer;text-decoration:underline;text-decoration-color:color-mix(in srgb,var(--green) 45%,transparent);text-underline-offset:2px}
.program-source-intro summary::-webkit-details-marker{display:none}
.program-source-intro p{margin:6px 0 0;padding:8px 9px;border-radius:8px;background:var(--green-wash);color:var(--ink)}
.dark .program-source-intro p{background:#15251d;color:#d6e2da}
.program-source-actions{display:flex;align-items:center;gap:7px}
.program-source-actions button,.source-refresh{min-height:42px;padding:0 12px;border:1px solid var(--line);border-radius:9px;background:var(--panel);color:var(--green);font-size:13px;white-space:nowrap}
.program-source-actions .source-load{border-color:var(--green);background:var(--green);color:#fff}
.program-source-actions .source-delete{padding:0 7px;color:#a45b52}
#open-music-results .program-source-actions{gap:5px;align-self:end;flex-wrap:wrap;justify-content:flex-end}
.program-source-meta .source-video-tag.mp3{cursor:default;background:#e8f4ee;color:#2f7a55}
.program-source-meta .source-video-tag.mp3:hover{filter:none}
.program-source-meta .source-video-tag.mp3.playable{cursor:pointer}
.program-source-meta .source-video-tag.mp3.playable:hover{filter:brightness(.94)}
.dark .program-source-meta .source-video-tag.mp3{background:#1f3329;color:#7fd4a6}
#country-song-list .program-source-actions{gap:5px;align-self:end}
#country-song-list .program-source-actions button{min-height:36px;height:36px;padding:0 9px;font-size:12px;border-radius:8px}
#country-song-list .program-source-actions .source-load{padding:0 11px}
.source-add-form{display:grid;grid-template-columns:1fr;gap:7px}
.source-add-form input{height:46px;min-width:0;padding:0 12px;border:1px solid var(--line);border-radius:9px;background:var(--panel);color:var(--ink);font-size:14px}
.source-add-form button{height:46px;border:0;border-radius:9px;background:var(--green);color:white;font-size:14px}
.source-empty{padding:14px;color:var(--muted);font-size:13px;text-align:center}
.personal-word-toolbar{display:flex;align-items:center;justify-content:space-between;gap:10px;margin:8px 0}
.personal-word-clear,.personal-word-action{min-height:32px;padding:5px 10px;border:1px solid var(--line);border-radius:8px;background:var(--panel);color:var(--ink);font-size:12px;white-space:nowrap}
.personal-word-clear{color:#b54646}
.personal-typing-word-list{display:grid;gap:6px;max-height:280px;overflow:auto}
.personal-word-row{display:flex;align-items:center;gap:8px;padding:7px 9px;border:1px solid var(--line);border-radius:9px;background:var(--panel-soft)}
.personal-word-name{flex:1;min-width:0;font:600 14px var(--display);overflow:hidden;text-overflow:ellipsis}
.personal-word-count{color:var(--muted);font-size:11px;white-space:nowrap}
.personal-word-row.ignored{opacity:.62}
.personal-word-options{display:grid;gap:6px;margin:8px 0;padding:9px 10px;border:1px solid var(--line);border-radius:9px;background:var(--panel-soft)}
.personal-word-options label{display:flex;align-items:center;gap:8px;color:var(--ink);font-size:12px}
.personal-word-options input{accent-color:var(--green)}
.personal-word-tags{display:flex;gap:4px;flex:0 0 auto}
.personal-word-tag{padding:2px 5px;border-radius:5px;background:var(--green-wash);color:var(--green);font-size:10px;white-space:nowrap}
.personal-word-tag.focus{background:#fff0d8;color:#a56a19}
.word-card-favorite{height:28px;padding:0 9px;border:1px solid #eadcc9;border-radius:999px;background:#fff;color:#8b6847;font-size:11px;white-space:nowrap}
.word-card-favorite.active{border-color:#efbc63;background:#fff0d8;color:#a56a19;font-weight:700}
.dark .word-card-favorite{border-color:#34473c;background:#17251e;color:#dbe7df}
.dark .word-card-favorite.active{border-color:#8e672e;background:#3a2d1d;color:#ffd28b}
.no-lyrics-state{padding:24px 18px;color:var(--muted);line-height:1.7;text-align:left}
.no-lyrics-state h3{margin:0 0 8px;color:var(--ink);font-size:17px;line-height:1.45}
.no-lyrics-state h3 span{color:var(--muted);font-size:.9em;font-weight:400}
.no-lyrics-state p{margin:8px 0;color:var(--muted);font-size:13px}
.no-lyrics-primary{padding:10px 11px;border-radius:9px;background:var(--green-wash);color:var(--ink)!important}
.no-lyrics-primary b{color:var(--green)}
.no-lyrics-actions{display:flex;flex-wrap:wrap;align-items:center;gap:10px;margin-top:12px}
.no-lyrics-actions a{font-size:12px;text-underline-offset:3px}
.lyrics-qq-link{padding:7px 10px;border-radius:7px;background:var(--green);color:#fff!important;text-decoration:none}
.lyrics-sync-link,.lyrics-search-link{color:var(--green);text-decoration:underline}
.lyrics-search-panel{margin-top:11px;padding-top:11px;border-top:1px solid var(--line)}
.lyrics-search-panel[hidden]{display:none}
.lyrics-search-row{grid-template-columns:1fr 1fr auto}
.lyrics-search-row input{height:38px;font-size:12px}
.lyrics-search-row button{height:38px;padding:0 12px;font-size:12px}
.no-lyrics-playback{display:flex;align-items:center;gap:7px;margin-top:14px;color:var(--muted);font-size:12px}
.no-lyrics-playback button{min-height:32px;padding:0 10px;border:1px solid var(--green);border-radius:7px;background:var(--panel);color:var(--green);font-size:12px;cursor:pointer}
.no-lyrics-playback button:hover{background:var(--green-wash)}
.dark .no-lyrics-primary{background:#1d3027}
.dark .lyrics-qq-link{background:#18c995;color:#041d15!important}
.dark .no-lyrics-playback button{background:#111a22;color:#9cd9ac;border-color:#348a69}
@media(max-width:560px){.lyrics-search-row{grid-template-columns:1fr}.no-lyrics-actions{align-items:stretch;flex-direction:column}.no-lyrics-actions a{text-align:center}}
.video-side{display:block!important;position:-webkit-sticky;position:sticky;top:0;z-index:5;align-self:flex-start;flex:0 0 auto;width:100%;background:var(--page)}
.app.in-portal .topbar .back-button{visibility:visible;pointer-events:auto}
.translation-error{cursor:pointer;text-decoration:underline;text-underline-offset:2px}
.subtitle-control.active{border-color:#d6e9d7;background:#eef6ed;color:var(--green)}
.dark .subtitle-control.active{border-color:#254c3b;background:#123126;color:#53d9a7}
.video-source-settings{padding-bottom:10px}
.video-source-settings .source-section-head{margin-bottom:12px}
.video-source-settings .floating-lyrics-setting{margin-top:0;padding-top:12px;padding-bottom:4px;line-height:1.45}
.video-source-settings .source-add-form{margin-top:12px}
.video-source-settings .source-add-form button{height:48px}
.song-collections-section .source-add-form{gap:10px;margin-top:10px}
.song-collections-section .source-add-form:first-of-type{margin-top:14px}
.song-collections-section .ai-pick-form{gap:10px;margin-top:14px;padding-top:12px;border-top:1px solid var(--line)}
.ai-pick-progress{min-height:20px;color:var(--green);font-size:12px;line-height:1.5;text-align:center}
#app .english-line{font-size:var(--caption-en-size,12px)!important}
#app .translation{font-size:var(--caption-zh-size,9px)!important}
.font-size-dialog{position:fixed;top:54px;right:max(10px,calc((100vw - 540px)/2 + 12px));width:210px;margin:0;padding:11px;border:1px solid var(--line);border-radius:12px;background:var(--panel);color:var(--ink);box-shadow:0 12px 36px #15231b2b}
.font-size-dialog::backdrop{background:#0d151044;backdrop-filter:blur(1px)}
.font-size-head{display:flex;align-items:center;justify-content:space-between;font-size:12px}
.font-size-head button{width:25px;height:25px;border:0;border-radius:50%;background:var(--green-wash);color:var(--muted);font-size:17px}
.dark .source-count,.dark .program-source-meta span{background:#1d3027;color:#9cd9ac}
.dark .program-source-card{background:#111a22;border-color:#26323b}
.dark .nce-playlist-actions button{border-color:#26323b;background:#111a22;color:#e5eaee}
.dark .program-source-actions button,.dark .source-add-form input{background:#111a22;border-color:#26323b;color:#b7c9be}
.dark .program-source-actions .source-load,.dark .source-add-form button{background:#18c995;color:#041d15}
.video-config-dialog{position:fixed;inset:auto auto 0 50%;transform:translateX(-50%);width:min(calc(100vw - 24px),480px);max-height:76svh;margin:0;padding:17px 15px max(16px,var(--inset-b));overflow:hidden;border:1px solid var(--line);border-bottom:0;border-radius:18px 18px 0 0;background:var(--panel);color:var(--ink);box-shadow:0 -16px 50px #15231b2b}
.video-config-dialog::backdrop{background:#0d1510a8;backdrop-filter:blur(2px)}
.config-dialog-head{display:flex;align-items:center;justify-content:space-between;padding:0 2px 9px;border-bottom:1px solid var(--line)}
.config-dialog-head h2{margin:3px 0 0;font-size:17px}
.config-dialog-head .section-kicker{font-size:8px;letter-spacing:1.2px;color:var(--muted)}
.config-dialog-head .dialog-close{position:static;width:32px;height:32px;border:1px solid var(--line);border-radius:50%;background:transparent;color:var(--muted);font-size:21px}
.config-dialog-body{max-height:calc(76svh - 72px);overflow:auto;overscroll-behavior:contain}
.video-config-dialog .youtube-import{margin:10px 0;padding:10px 0;border:0;border-bottom:1px solid var(--line);border-radius:0;background:transparent}
.video-config-dialog .lesson-heading{display:block;margin:10px 0 0}
.video-config-dialog .lesson-heading h2{font-size:16px;overflow-wrap:anywhere}
.video-config-dialog .lesson-subtitle{font-size:10px}
.dark .video-config-dialog{border-color:#26323b;background:#0d141b;color:#e5eaee}
.dark .config-dialog-head{border-color:#26323b}
.word-card-dialog{position:fixed;inset:auto auto 0 50%;transform:translateX(-50%);width:min(calc(100vw - 12px),480px);max-height:72svh;margin:0;padding:0;overflow:visible;border:0;border-radius:20px 20px 0 0;background:transparent;color:#20232b;animation:word-sheet-in .24s ease-out}
.word-card-dialog::backdrop{background:#07100db0;backdrop-filter:blur(2px)}
.course-word-card{position:relative;max-height:72svh;overflow:auto;padding:9px 19px max(18px,env(safe-area-inset-bottom));border:1px solid #eadcc9;border-bottom:0;border-radius:20px 20px 0 0;background:#fffaf2;color:#20232b;box-shadow:0 -8px 32px #18221a26}
.word-card-handle{width:38px;height:4px;margin:0 auto 15px;border-radius:8px;background:#d7c9b8}
.word-card-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}
.word-card-kicker{margin-bottom:4px;color:#a09284;font-size:10px;letter-spacing:.5px}
.word-card-title-row{display:flex;align-items:center;gap:8px}
.word-card-title-row h2{margin:0;color:#e86f25;font:800 25px 'Manrope','Noto Sans SC',sans-serif;line-height:1.2}
.word-card-audio{display:grid;width:30px;height:30px;place-items:center;border:1px solid #eadcc9;border-radius:50%;background:#fff;color:#6d6258;font-size:15px}
.word-card-close{display:grid;width:28px;height:28px;place-items:center;border:0;border-radius:50%;background:#f1e9df;color:#766d64;font-size:20px}
.word-card-phonetic{margin-top:3px;color:#737985;font-size:12px}
.word-card-pos{margin-top:14px;color:#a06a39;font-size:10px}
.word-card-meaning{margin-top:4px;font-size:16px;font-weight:700;line-height:1.55}
.word-card-tip{margin-top:7px;color:#75685d;font-size:12px;line-height:1.5}
.word-card-example{margin-top:13px;padding:10px 11px;border:1px solid #eee2d3;border-radius:10px;background:#fffdf9}
.word-card-example span{color:#9a8f83;font-size:9px}
.word-card-example p{margin:5px 0 0;color:#545b62;font-size:12px;line-height:1.55}
.word-card-source{margin-top:9px;color:#a09284;font-size:10px}
.dark .course-word-card{border-color:#314037;background:#101a17;color:#e8eee9}
.dark .word-card-handle{background:#52655a}
.dark .word-card-title-row h2{color:#f3a46a}
.dark .word-card-audio,.dark .word-card-close{border-color:#34473c;background:#17251e;color:#dbe7df}
.dark .word-card-example{border-color:#2c3d33;background:#142019}
.dark .word-card-example p{color:#c6d0c9}
@keyframes word-sheet-in{from{opacity:.5;transform:translate(-50%,100%)}to{opacity:1;transform:translate(-50%,0)}}
@media(max-width:540px){
  html,body{width:100%;height:100%;min-height:100%;background:var(--page)}
  body{display:block}
  .app{width:100vw;height:100svh;max-height:none;border-radius:0;box-shadow:none;aspect-ratio:auto}
  .video-config-dialog[open]{width:100vw;height:100svh;border:0;border-radius:0}
}
/* 实验室以 iframe 嵌入时，手机浏览器可能把 iframe 视口报告为 540px 以上；
   这时不能依赖 max-width:540px 断点，否则 .app 会按桌面卡片居中并留下两侧空白。 */
@media (max-width:900px){
  .app.in-portal{width:100%;height:100svh;max-width:none;max-height:none;border-radius:0;box-shadow:none;aspect-ratio:auto}
}
.release-section{padding-bottom:12px}
.release-section .source-section-head{align-items:flex-start}
.release-section .source-count{flex:0 0 auto;max-width:135px;overflow:hidden;text-overflow:ellipsis}
.release-details{margin-top:8px;border-top:1px solid var(--line);padding-top:8px;color:var(--muted);font-size:11px}
.release-details summary{cursor:pointer;color:var(--green);font-weight:600}
.release-entry{margin-top:10px;color:var(--ink);font-size:11px;line-height:1.55}
.release-entry ul{margin:5px 0 0;padding-left:18px;color:var(--muted)}
.release-entry li+li{margin-top:4px}
.release-empty{margin:8px 0 0}
.dark .release-details{border-color:#26323b}
.dark .release-entry ul{color:#aab6bd}
.loop-settings-section .source-section-head{margin-bottom:8px}
.loop-count-setting{display:flex;align-items:center;justify-content:space-between;gap:12px;padding-top:9px;border-top:1px solid var(--line);font-size:11px;color:var(--muted)}
.loop-count-setting select,.loop-count-setting input[type=number]{min-width:112px;max-width:55%;padding:7px 10px;border:1px solid var(--line);border-radius:9px;background:var(--panel);color:var(--ink);font:inherit}
.loop-count-setting input[type=number]{width:96px;min-width:0;text-align:center;font-weight:800}
.loop-count-setting .loop-count-hint{display:block;margin-top:2px;font-size:10px;font-weight:400;opacity:.8}
.dark .loop-count-setting{border-color:#26323b}
.dark .loop-count-setting select,.dark .loop-count-setting input[type=number]{border-color:#34434b;background:#111a22;color:#e5eaee}
.floating-lyrics[hidden]{display:none!important}
/* styles.css 里 .translation-toggle 在好几个断点各自设了 display:flex/none，
   普通的 [hidden] 选择器优先级打不过它们；用 !important 才能真正把它藏起来。 */
#translation-toggle[hidden]{display:none!important}
.video-side .floating-lyrics{position:relative;z-index:2;margin:-1px 0 8px;padding:8px 12px 10px;border:1px solid var(--line);border-top:0;border-left:0;border-right:0;border-radius:0;background:var(--panel);background:color-mix(in srgb,var(--panel) 91%,transparent);backdrop-filter:blur(16px);box-shadow:0 7px 20px #11151a12;overflow:hidden}
.floating-lyrics-label{display:flex;align-items:center;justify-content:flex-start;gap:8px;width:100%;min-width:0;margin-bottom:3px;overflow:hidden;color:var(--green);font:600 9px 'DM Sans','Noto Sans SC',sans-serif;letter-spacing:.4px;white-space:nowrap}
.floating-lyrics-label #floating-lyrics-title{display:block;flex:1 1 auto;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.floating-lyrics-label #floating-lyrics-counter{flex:0 0 auto;white-space:nowrap}
.floating-lyrics-label i{color:var(--muted);font-size:9px;font-style:normal;letter-spacing:.5px}
.floating-lyrics-en,.floating-lyrics-cn{line-height:1.35}
.floating-lyrics-en{color:var(--ink);font:700 clamp(19px,5.2vw,26px) var(--display);letter-spacing:-.45px}
.floating-lyrics-words{margin:0;border:0;background:none;color:inherit;font:inherit;line-height:inherit}
.floating-lyrics-en .word{cursor:pointer}   /* 悬浮歌词是从 .sentence 里克隆出来的，不在 .sentence 底下，得单独给指针样式 */
.floating-lyrics-en .word.active{border-radius:3px;background:#bdeaca;color:#1c6242;box-shadow:0 0 0 2px #bdeaca}
.floating-lyrics-cn{margin-top:3px;color:var(--muted);font:500 clamp(14px,3.8vw,19px) 'Noto Sans SC',sans-serif}
.floating-lyrics-settings .source-section-head{margin-bottom:8px}
.floating-lyrics-setting{display:flex;align-items:center;justify-content:space-between;gap:12px;padding-top:9px;border-top:1px solid var(--line);font-size:11px;color:var(--muted);cursor:pointer}
.floating-lyrics-setting input{position:absolute;width:1px;height:1px;opacity:0}
.floating-lyrics-setting i{position:relative;width:34px;height:20px;border-radius:12px;background:#cbd2cd;transition:background .18s;flex:0 0 auto}
.floating-lyrics-setting i:after{content:'';position:absolute;top:3px;left:3px;width:14px;height:14px;border-radius:50%;background:#fff;box-shadow:0 1px 3px #0002;transition:transform .18s}
.floating-lyrics-setting input:checked+i{background:var(--green)}
.floating-lyrics-setting input:checked+i:after{transform:translateX(14px)}
.floating-lyrics-setting input:focus-visible+i{outline:2px solid var(--green);outline-offset:2px}
.dark .video-side .floating-lyrics{border-color:#28363e;background:#0d141c;background:color-mix(in srgb,#0d141c 90%,transparent);box-shadow:0 7px 24px #0005}
.dark .floating-lyrics-en .word.active{background:#174d3a;color:#ddfff2;box-shadow:0 0 0 2px #174d3a}
.dark .floating-lyrics-setting{border-color:#26323b}
.auth-checking #app,.auth-required #app{visibility:hidden}
.auth-required #app{display:none}
.auth-gate{position:fixed;inset:0;z-index:1000;display:grid;place-items:center;padding:18px;background:var(--page);color:var(--ink)}
.auth-gate[hidden]{display:none!important}
.auth-card{width:min(100%,420px);padding:30px 25px;border:1px solid var(--line);border-radius:20px;background:var(--panel);box-shadow:var(--shadow)}
.auth-mark{width:42px;height:42px;display:grid;place-items:center;border-radius:14px;background:var(--green-wash);color:var(--green);font:800 22px var(--display)}
.auth-kicker{margin:17px 0 4px;color:var(--muted);font:600 9px 'DM Sans',sans-serif;letter-spacing:1.5px}
.auth-card h1{margin:0;font:700 23px var(--display);letter-spacing:-.6px}
.auth-lead{margin:8px 0 18px;color:var(--muted);font-size:12px;line-height:1.6}
.auth-tabs{display:grid;grid-template-columns:repeat(3,1fr);border-bottom:1px solid var(--line)}
.auth-tabs button{height:40px;border:0;background:none;color:var(--muted);font-size:13px;white-space:nowrap}
.auth-tabs button.active{border-bottom:2px solid var(--green);color:var(--green);font-weight:700}
.auth-form{display:grid;gap:11px;padding-top:16px}
.auth-form[hidden]{display:none}
.auth-form label{display:grid;gap:5px;color:var(--muted);font-size:11px}
.auth-form input{width:100%;height:40px;padding:0 11px;border:1px solid var(--line);border-radius:9px;background:var(--panel-soft);color:var(--ink);font-size:13px;outline-color:var(--green)}
.auth-code-row{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:7px}
.auth-code-row button{padding:0 10px;border:1px solid var(--line);border-radius:9px;background:var(--green-wash);color:var(--green);font-size:10px}
.auth-submit{height:43px;border:0;border-radius:10px;background:var(--green);color:white;font-size:13px;font-weight:700}
.auth-submit:disabled,.auth-code-row button:disabled{opacity:.55}
.auth-status{min-height:18px;margin:12px 0 4px;color:var(--muted);font-size:11px;line-height:1.5}
.dark .auth-card{border-color:#26323b;background:#0d141c}
.dark .auth-form input{border-color:#26323b;background:#111a22;color:#e5eaee}
.ui-icon{display:block;flex:0 0 auto;fill:none;stroke:currentColor;stroke-width:1.65;stroke-linecap:round;stroke-linejoin:round}
.subtitle-control,.ab-control{display:flex;align-items:center;justify-content:center;gap:3px;font-size:10px}
.subtitle-control:before,.ab-control:before{content:none!important}
.subtitle-control svg,.ab-control svg,.prev-control svg,.next-control svg,.single-control svg,.track-mode-control svg{width:16px;height:16px}
.sentence-actions .ui-icon{width:15px;height:15px}
.sentence-play .ui-icon{width:13px;height:13px}
.timestamp .ui-icon{display:inline-block;vertical-align:-2px}
.word-card-audio .ui-icon{width:17px;height:17px}
.word-card-close .ui-icon,.dialog-close .ui-icon{width:16px;height:16px}
.main-column .transcript-panel .panel-top{position:sticky;top:var(--pinned-player-height,0px);z-index:4}
.floating-lyrics-en,.floating-lyrics-cn{font-size:var(--floating-lyrics-size,20px)}
.floating-lyrics-en .word.freq-high{color:#21845b}
.floating-lyrics-en .word.freq-mid{color:#287eaf}
.floating-lyrics-en .word.freq-low{color:#c17a24}
.floating-lyrics-en .word.freq-rare{color:#a24f9a}
.dark .floating-lyrics-en .word.freq-high{color:#65d6a0}
.dark .floating-lyrics-en .word.freq-mid{color:#72c9f2}
.dark .floating-lyrics-en .word.freq-low{color:#f2bb68}
.dark .floating-lyrics-en .word.freq-rare{color:#e4a0dc}
.floating-lyrics-size-setting{display:grid;grid-template-columns:1fr;gap:8px;padding-top:9px;border-top:1px solid var(--line);font-size:11px;color:var(--muted)}
.floating-lyrics-size-setting span{display:flex;justify-content:space-between;align-items:center}
.floating-lyrics-size-setting b{color:var(--green);font-size:11px;font-weight:600}
.floating-lyrics-size-setting input{width:100%;accent-color:var(--green)}
.dark .floating-lyrics-size-setting{border-color:#26323b}
.cloze-input{display:inline-block;max-width:10ch;min-width:2.8ch;height:1.25em;margin:0 1px;padding:0 .15em;border:0;border-bottom:2px solid var(--green);border-radius:3px;outline:none;background:var(--green-wash);color:var(--ink);font:inherit;line-height:1;text-align:center;vertical-align:baseline}
/* ????????????????placeholder ????????????????? */
.floating-lyrics-words .cloze-input::placeholder{color:#7b8a80;opacity:var(--floating-hint-opacity,.3)}
.dark .floating-lyrics-words .cloze-input::placeholder{color:#9fb0a8}
.hint-opacity-row{display:flex;align-items:center;justify-content:space-between;gap:12px;padding-top:9px;font-size:11px;color:var(--muted)}
.hint-opacity-row input[type="range"]{flex:1;max-width:160px;accent-color:var(--green)}
.cloze-input:focus{box-shadow:0 2px 0 var(--green)}
.cloze-input.cloze-correct{border-color:#25845b;background:#e4f4e9;color:#17603f}
.cloze-input.cloze-wrong{border-color:#d56b61;background:#fff0ee}
.dark .cloze-input{background:#15271e;color:#e5eaee}
.dark .cloze-input.cloze-correct{background:#174d3a;color:#ddfff2}
.typing-practice-dialog{position:fixed;inset:auto auto 0 50%;transform:translateX(-50%);width:min(100vw,var(--typing-card-w,540px));max-height:88svh;margin:0;padding:0;overflow:visible;border:0;border-radius:20px 20px 0 0;background:transparent;color:var(--ink);animation:word-sheet-in .2s ease-out}
.typing-practice-dialog::backdrop{background:#07100db0;backdrop-filter:blur(2px)}
.typing-practice-card{max-height:88svh;overflow:auto;padding:13px 17px max(18px,env(safe-area-inset-bottom));border:1px solid var(--line);border-bottom:0;border-radius:20px 20px 0 0;background:var(--panel);box-shadow:0 -8px 32px #18221a26}
.typing-practice-card header{display:flex;align-items:center;justify-content:space-between}
.typing-practice-card header>div:first-child{min-width:0}
.typing-practice-card .section-kicker{font-size:9px;letter-spacing:1px;color:var(--muted)}
.typing-title-row{display:flex;align-items:baseline;gap:8px;min-width:0}
.typing-practice-card h2{margin:3px 0 0;font-size:18px;white-space:nowrap}
.typing-song-meta{margin:0;min-width:0;flex:1;color:var(--muted);font-size:11px;line-height:1.35;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.typing-close{width:30px;height:30px;border:1px solid var(--line);border-radius:50%;background:var(--panel);color:var(--muted);font-size:20px}
.typing-subtitle,.typing-practice-status{margin:8px 0;color:var(--muted);font-size:12px;line-height:1.5}
.typing-status-row{display:flex;align-items:center;justify-content:space-between;gap:8px}
.typing-common-skip{display:inline-flex;align-items:center;justify-content:center;flex:0 0 auto;height:22px;padding:0 7px;border:1px solid var(--line);border-radius:7px;background:var(--panel);color:var(--muted);font-size:12px;line-height:1.5;white-space:nowrap;cursor:pointer}
.typing-common-skip.active{border-color:var(--green);background:var(--green-wash);color:var(--green)}
.typing-levels{display:flex;gap:6px;margin:7px 0 10px}
.typing-levels button{flex:1;height:30px;border:1px solid var(--line);border-radius:8px;background:var(--panel);color:var(--muted);font-size:11px}
.typing-levels button.selected{border-color:var(--green);background:var(--green-wash);color:var(--green);font-weight:700}
.typing-practice-passage{min-height:86px;padding:13px 11px;border:1px solid var(--line);border-radius:12px;background:var(--panel-soft);overflow-wrap:anywhere}
.typing-practice-english{color:var(--ink);font:700 clamp(19px,5.2vw,26px)/1.35 var(--display);letter-spacing:-.45px}
.typing-practice-english .word.freq-high{color:#21845b}
.typing-practice-english .word.freq-mid{color:#287eaf}
.typing-practice-english .word.freq-low{color:#c17a24}
/* 字幕字号弹窗:屏幕居中 + 滑块 + 实时预览(与兑换/积分弹窗同一套样式) */
.caption-size-dialog.font-size-dialog{position:fixed;inset:0;top:0;right:0;margin:auto;width:min(92vw,420px);max-width:420px;height:fit-content;max-height:88svh;padding:16px 18px 20px;border:0;border-radius:18px;background:var(--panel,#fff);color:var(--ink,#25302a);box-shadow:0 18px 60px #0004;overflow:auto}
.caption-size-dialog::backdrop{background:rgba(15,23,42,.5);backdrop-filter:none}
.caption-size-dialog .font-size-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:10px;font-size:17px}
.caption-size-dialog .font-size-head button{outline:0;border:0;background:var(--panel-soft,#eef3ec);width:36px;height:36px;border-radius:50%;font-size:20px;line-height:1;cursor:pointer;color:inherit}
.caption-size-preview{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;min-height:84px;margin:0 0 16px;padding:12px;border:1px solid var(--line,#dfe7dc);border-radius:14px;background:var(--panel-soft,#f7faf5);text-align:center;overflow:hidden}
.caption-size-en{font-weight:700;font-size:var(--floating-lyrics-size,20px);line-height:1.35}
.caption-size-zh{color:var(--muted,#6b7a70);font-size:var(--floating-lyrics-size,20px);line-height:1.35}
.caption-size-row{display:flex;align-items:center;gap:12px;font-size:13px;color:var(--muted,#6b7a70)}
.caption-size-row input[type=range]{flex:1;min-width:0;margin:0;accent-color:var(--accent,#4e8062)}
.caption-size-value{margin-top:10px;text-align:center;font-weight:700;color:var(--accent,#4e8062)}
.dark .caption-size-dialog.font-size-dialog{background:#141d24;color:#dbe7df}.dark .caption-size-dialog .font-size-head button{background:#1b2830}.dark .caption-size-preview{background:#111a22;border-color:#26323b}
/* 兑换歌曲额度弹窗:屏幕居中、与积分中心同一套样式 */
.quota-redeem-dialog.font-size-dialog{position:fixed;inset:0;top:0;right:0;margin:auto;width:min(92vw,420px);max-width:420px;height:fit-content;max-height:88svh;padding:16px 18px 20px;border:0;border-radius:18px;background:var(--panel,#fff);color:var(--ink,#25302a);box-shadow:0 18px 60px #0004;overflow:auto}
.quota-redeem-dialog::backdrop{background:rgba(15,23,42,.5);backdrop-filter:none}
.quota-redeem-dialog .font-size-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:6px;font-size:17px}
.quota-redeem-dialog .font-size-head button{outline:0;border:0;background:var(--panel-soft,#eef3ec);width:36px;height:36px;border-radius:50%;font-size:20px;line-height:1;cursor:pointer;color:inherit}
.quota-redeem-dialog .source-form-hint{margin:4px 0 12px;font-size:13px;line-height:1.7;color:var(--muted,#6b7a70)}
.quota-redeem-dialog input{display:block;width:100%;box-sizing:border-box;min-height:46px;margin:0 0 12px;padding:10px 14px;border:1px solid var(--line,#dfe7dc);border-radius:12px;background:var(--panel-soft,#f7faf5);color:inherit;font:600 16px/1.2 'DM Sans','Noto Sans SC',sans-serif;letter-spacing:.04em}
.quota-redeem-dialog input:focus{outline:2px solid var(--accent,#4e8062);outline-offset:1px}
.quota-redeem-dialog .auth-submit{display:block;width:100%;min-height:48px;margin:0;border:0;border-radius:12px;background:var(--accent,#4e8062);color:#fff;font:700 16px/1 'Noto Sans SC',sans-serif;cursor:pointer}
.quota-redeem-dialog .auth-submit:disabled{opacity:.5;cursor:not-allowed}
.quota-redeem-dialog .auth-status{margin:10px 0 0;min-height:1.4em;text-align:center;font-size:13px;color:var(--muted,#6b7a70)}
.dark .quota-redeem-dialog.font-size-dialog{background:#141d24;color:#dbe7df}.dark .quota-redeem-dialog .font-size-head button{background:#1b2830}.dark .quota-redeem-dialog input{background:#111a22;border-color:#26323b}
#account-quota-label{margin:0;padding:0 14px 10px;font-size:13px;line-height:1.6;color:var(--muted,#6b7a70)}   /* 额度说明:与其他说明文字同一字号 */
.points-entry{display:flex;flex-wrap:wrap;align-items:center;gap:6px 10px;margin:0;padding:0 14px 12px}
.points-entry button{border:1px solid var(--accent,#4e8062);background:var(--panel-soft,#f3f7f1);color:var(--accent,#4e8062);border-radius:999px;padding:6px 14px;font:700 13px/1.2 'Noto Sans SC',sans-serif;cursor:pointer}
.points-entry #points-balance{font-weight:700;color:#b45309}
.points-hint{font-size:12px;color:var(--muted,#6b7a70)}
.points-dialog{border:0;border-radius:18px;padding:0;max-width:min(94vw,520px);width:100%;background:var(--panel,#fff);color:var(--ink,#25302a);box-shadow:0 18px 60px #0004}
.points-dialog::backdrop{background:rgba(15,23,42,.5)}
.points-card{padding:14px 16px 18px;max-height:88svh;overflow:auto}
.points-card header{display:flex;justify-content:space-between;align-items:center;margin-bottom:8px;font-size:17px}
.points-close{border:0;background:var(--panel-soft,#eef3ec);width:36px;height:36px;border-radius:50%;font-size:20px;cursor:pointer;color:inherit}
.points-off{background:#fef3c7;color:#92400e;border-radius:10px;padding:8px 12px;font-size:13px}
.points-summary{display:grid;grid-template-columns:repeat(4,1fr);gap:8px;margin:8px 0 12px}
.points-summary div{background:var(--panel-soft,#f3f7f1);border-radius:12px;padding:8px 4px;text-align:center}
.points-summary b{display:block;font-size:20px;color:var(--accent,#4e8062)}.points-summary span{font-size:11px;color:var(--muted,#6b7a70)}
.points-quota{border:1px solid var(--line,#dfe7dc);border-radius:12px;padding:10px 12px;margin-bottom:10px;font-size:13px;line-height:1.7}
.points-quota button{width:100%;min-height:44px;border:0;border-radius:12px;background:var(--accent,#4e8062);color:#fff;font:700 15px/1 'Noto Sans SC',sans-serif;cursor:pointer;margin:4px 0}
.points-quota button:disabled{opacity:.45;cursor:not-allowed}.points-quota small{color:var(--muted,#6b7a70)}
.points-msg{margin:4px 0 0;color:#b91c1c;font-size:12px}
.points-rules,.points-history{margin:8px 0;font-size:13px;line-height:1.7}.points-rules summary,.points-history summary{cursor:pointer;font-weight:700;color:var(--accent,#4e8062)}
.points-rules ul{margin:6px 0 0;padding-left:18px}.points-rules b{color:#b45309}
.points-tabs{display:flex;gap:6px;margin:10px 0 6px}.points-tabs button{flex:1;border:1px solid var(--line,#dfe7dc);background:var(--panel,#fff);border-radius:999px;padding:7px 0;font:600 13px/1 'Noto Sans SC',sans-serif;cursor:pointer;color:inherit}
.points-tabs button.active{background:var(--accent,#4e8062);border-color:var(--accent,#4e8062);color:#fff}
.points-board ol{list-style:none;margin:0;padding:0;max-height:260px;overflow:auto}.points-board li{display:flex;align-items:center;gap:10px;padding:8px 6px;border-bottom:1px solid var(--line,#e6ece3);font-size:14px}
.points-board li.me{background:#fff7e0;border-radius:8px}.points-board .rank{width:28px;text-align:center;font-weight:700}.points-board .name{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.points-mine{margin:8px 0 0;font-size:13px;color:var(--muted,#6b7a70)}.points-empty,.points-loading{color:var(--muted,#6b7a70);font-size:13px}
.points-record{display:flex;justify-content:space-between;padding:5px 2px;border-bottom:1px solid var(--line,#e6ece3)}.points-record b{color:#16a34a}.points-record b.neg{color:#b91c1c}
.dark .points-dialog{background:#141d24;color:#dbe7df}.dark .points-summary div,.dark .points-close{background:#1b2830}.dark .points-board li.me{background:#3a2f12}
.typing-grammar{max-width:560px;margin:8px auto 0;border:1px solid var(--line);border-radius:12px;background:var(--panel-soft)}
.typing-grammar[hidden]{display:none}
.typing-grammar summary{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:9px 12px;cursor:pointer;list-style:none;color:var(--accent,#4e8062);font-size:14px;font-weight:600;min-height:24px}
.typing-grammar summary::-webkit-details-marker{display:none}
.typing-grammar-arrow::before{content:'\25B2';font-size:12px}
.typing-grammar:not([open]) .typing-grammar-arrow::before{content:'\25BC'}
.typing-grammar-body{padding:0 12px 11px;color:var(--ink,#25302a);font-size:14px;line-height:1.7;white-space:pre-wrap;overflow-wrap:anywhere;max-height:32svh;overflow:auto}
.dark .typing-grammar{border-color:#26323b;background:#111a22}
.dark .typing-grammar-body{color:#cdd9d2}
.typing-practice-translation{margin:5px 0 0;padding:0;border:0;background:none;color:var(--muted);font:500 clamp(14px,3.8vw,19px)/1.35 'Noto Sans SC',sans-serif}
.typing-word-shell{display:inline-grid;vertical-align:baseline;margin:0 2px}
.typing-word-review{grid-area:1/1;z-index:2;align-self:center;justify-self:stretch;box-sizing:border-box;height:1.55em;padding:0 3px;border-bottom:2px solid #77997b;border-radius:3px;background:var(--green-wash);color:var(--ink);font:600 .82em/1.4 var(--display);text-align:center;white-space:pre;pointer-events:none}
.typing-word-shell.reviewing .typing-word{color:transparent;caret-color:transparent}
.typing-letter-wrong{color:#d64545}
.typing-word{grid-area:1/1;display:inline-block;width:7ch;min-width:2.4ch;height:1.55em;margin:0 2px;padding:0 3px;border:0;border-bottom:2px solid #77997b;border-radius:3px;background:var(--green-wash);color:var(--ink);vertical-align:baseline;font:600 .82em/1.4 var(--display);text-align:center;outline:none}
.typing-word::placeholder{color:#7b8a80;opacity:var(--typing-hint-opacity,.12)}
.typing-word.selected{background:#d9efdf;border-color:var(--green)}
.typing-word.correct{background:#e4f4e9;border-color:#25845b;color:#17603f}
.typing-word.incorrect{background:#fff0f0;border-color:#d64545;color:#c53737}
.typing-practice-status.is-correct{color:#25845b;font-weight:700}
.typing-practice-actions{display:flex;gap:8px;margin:8px 0 12px}
.typing-practice-actions button{flex:1;min-height:38px;border:1px solid var(--line);border-radius:9px;background:var(--panel);color:var(--ink);font-size:12px}
.typing-keyboard{display:grid;gap:6px;touch-action:manipulation}
.typing-keyboard>div{display:flex;justify-content:center;gap:5px}
.typing-keyboard button{flex:1;min-width:0;height:39px;border:1px solid var(--line);border-radius:7px;background:var(--panel-soft);color:var(--ink);font:500 15px var(--display);box-shadow:0 1px 1px #1111}
.typing-keyboard button.used{background:#fff3c8;border-color:#f0c34a;color:#a26b00}
.typing-keyboard button.next-key{background:#efe3ff;border-color:#b98af0;color:#6b21a8}
.typing-keyboard .space-key{max-width:70%;font:12px 'Noto Sans SC',sans-serif;white-space:nowrap}
.typing-keyboard [data-action="prev-sentence"],.typing-keyboard [data-action="next-sentence"],.typing-keyboard [data-action="enter"]{font:12px 'Noto Sans SC',sans-serif;white-space:nowrap}
.typing-levels,.typing-practice-passage,.typing-practice-actions,.typing-keyboard{max-width:560px;margin-left:auto;margin-right:auto}
.dark .typing-practice-card{border-color:#26323b;background:#0d141b;color:#e5eaee}
.dark .typing-practice-passage,.dark .typing-keyboard button,.dark .typing-practice-actions button,.dark .typing-close,.dark .typing-levels button{border-color:#26323b;background:#111a22;color:#e5eaee}
.dark .typing-practice-translation{background:none;color:#b9c9c0}
.dark .typing-practice-english .word.freq-high{color:#65d6a0}
.dark .typing-practice-english .word.freq-mid{color:#72c9f2}
.dark .typing-practice-english .word.freq-low{color:#f2bb68}
.dark .typing-keyboard button.used{background:#4a3a10;border-color:#c99a2e;color:#ffd97a}
.dark .typing-keyboard button.next-key{background:#3a1f52;border-color:#9b5fe0;color:#e2b8ff}
.dark .typing-word{background:#15271e;color:#e5eaee}
.dark .typing-word::placeholder{color:#9fb0a8}
.dark .typing-word.selected,.dark .typing-word.correct{background:#174d3a}
.dark .typing-word.incorrect{background:#452326;border-color:#ff7777;color:#ff9a9a}
.dark .typing-word-review{background:#15271e;border-color:#77997b;color:#e5eaee}
.dark .typing-letter-wrong{color:#ff7777}
.sentence-actions .save-sentence,.sentence-actions .report-sentence{width:25px;height:25px;display:grid;place-items:center;border-radius:50%;transition:background .16s,color .16s,transform .16s}
.sentence-actions .save-sentence.saved{background:#fff0f2;color:#c94365!important;transform:scale(1.06)}
.sentence-actions .save-sentence.saved .ui-icon{fill:#c94365}
.sentence-actions .report-sentence.in-difficult{background:var(--green);color:#fff!important;transform:scale(1.06)}
.sentence-actions .report-sentence:disabled{opacity:.5;cursor:wait}
.dark .sentence-actions .save-sentence.saved{background:#40202a;color:#ff8ca4!important}
.dark .sentence-actions .save-sentence.saved .ui-icon{fill:#ff8ca4}
.dark .sentence-actions .report-sentence.in-difficult{background:#1acb93;color:#061c14!important}
.sentence-actions button{transition:background-color .16s ease,color .16s ease,box-shadow .16s ease,transform .16s ease}
.sentence-actions button:hover,.sentence-actions button:focus-visible,.sentence-actions button:active{border-radius:50%;background:var(--green-wash);color:var(--green)!important;outline:none}
.sentence-actions button:focus-visible{box-shadow:0 0 0 2px color-mix(in srgb,var(--green) 35%,transparent)}
.sentence-actions .sentence-play:hover,.sentence-actions .sentence-play:focus-visible,.sentence-actions .sentence-play:active{background:var(--green)!important;color:#fff!important;box-shadow:0 3px 10px color-mix(in srgb,var(--green) 35%,transparent);transform:scale(1.12)}
.sentence-actions .save-sentence.saved:hover,.sentence-actions .save-sentence.saved:focus-visible,.sentence-actions .save-sentence.saved:active{background:#f8dfe5;color:#b93659!important}
.sentence-actions .save-sentence.saved:hover .ui-icon,.sentence-actions .save-sentence.saved:focus-visible .ui-icon,.sentence-actions .save-sentence.saved:active .ui-icon{fill:#b93659}
.sentence-actions .report-sentence.in-difficult:hover,.sentence-actions .report-sentence.in-difficult:focus-visible,.sentence-actions .report-sentence.in-difficult:active{background:#3c694c;color:#fff!important}
.dark .sentence-actions button:hover,.dark .sentence-actions button:focus-visible,.dark .sentence-actions button:active{background:#173d2e;color:#7be0b5!important}
.dark .sentence-actions .sentence-play:hover,.dark .sentence-actions .sentence-play:focus-visible,.dark .sentence-actions .sentence-play:active{background:#18c995!important;color:#062015!important}
.dark .sentence-actions .save-sentence.saved:hover,.dark .sentence-actions .save-sentence.saved:focus-visible,.dark .sentence-actions .save-sentence.saved:active{background:#56303a;color:#ffb2c2!important}
.account-session-actions{display:flex;flex-wrap:nowrap;gap:6px;padding:0 14px 12px}   /* 三个按钮固定一行,文字不换行 */
.account-session-actions button{flex:1 1 auto;min-width:0;white-space:nowrap;min-height:38px;padding:0 6px;font-size:clamp(10.5px,3.1vw,12px);border:1px solid var(--line);border-radius:9px;background:var(--green-wash);color:var(--green);font-weight:600}
.account-session-actions #account-logout-button{border-color:#efdddd;background:#fff8f7;color:#a34e4e}
.dark .account-session-actions button{border-color:#294536;background:#14271d;color:#74d9aa}
.dark .account-session-actions #account-logout-button{border-color:#4a3030;background:#271a1c;color:#f2aaaa}

/* Mobile settings layout: keep source tabs readable and stack song card actions. */
@media(max-width:600px){
  .video-config-dialog .source-section-head{align-items:flex-start;gap:8px}
  .video-config-dialog .source-section-head>div{min-width:0;flex:1}
  .video-config-dialog .source-section-head p{overflow-wrap:anywhere}
  .video-config-dialog .song-source-filter{overflow-x:auto;flex-wrap:nowrap;padding-bottom:2px;scrollbar-width:none}
  .video-config-dialog .song-source-filter::-webkit-scrollbar{display:none}
  .video-config-dialog .filter-tab{flex:0 0 auto;min-width:82px;white-space:nowrap;padding:8px 10px}
  .video-config-dialog .program-source-card{display:flex;flex-direction:column;align-items:stretch;gap:10px;padding:14px}
  .video-config-dialog .program-source-card>div:first-child{min-width:0}
  .video-config-dialog .program-source-card h4{font-size:16px;line-height:1.35;overflow-wrap:anywhere}
  .video-config-dialog .program-source-actions{width:100%;display:flex;flex-wrap:wrap;align-items:stretch;gap:8px}
  .video-config-dialog .program-source-actions button,
  .video-config-dialog .program-source-actions .source-link{flex:1 1 125px;min-width:0;justify-content:center;text-align:center;white-space:normal;padding:0 8px}
  .video-config-dialog #country-song-list .program-source-actions button{flex:1 1 110px;min-height:38px;height:auto}
}

/* Hidden settings/content must not reserve layout space when a switch disables it. */
.video-config-dialog [hidden],
.video-config-dialog .floating-lyrics[hidden],
.video-side .floating-lyrics[hidden]{display:none!important}

/* Vocabulary level colors */
.typing-levels button[data-level="primary"].selected{border-color:#83c5e8;background:#eaf7fd;color:#3d91bd}
.typing-levels button[data-level="middle"].selected{border-color:#79bb67;background:#eef8e9;color:#4e9b3d}
.typing-levels button[data-level="cet4"].selected{border-color:#e9a044;background:#fff4e4;color:#cb791c}
.typing-levels button[data-level="ielts"].selected{border-color:#55c6c2;background:#e8f9f8;color:#168f8b}
.cloze-input.level-primary,.typing-word.level-primary{--level-color:#83c5e8;--level-wash:#eaf7fd;--level-ink:#347fa4}
.cloze-input.level-middle,.typing-word.level-middle{--level-color:#79bb67;--level-wash:#eef8e9;--level-ink:#4e8c40}
.cloze-input.level-cet4,.typing-word.level-cet4{--level-color:#e9a044;--level-wash:#fff4e4;--level-ink:#b86c14}
.cloze-input.level-ielts,.typing-word.level-ielts{--level-color:#55c6c2;--level-wash:#e8f9f8;--level-ink:#16817e}
.cloze-input[class*="level-"],.typing-word[class*="level-"]{border-bottom-color:var(--level-color);background:var(--level-wash);color:var(--level-ink)}
.cloze-input[class*="level-"]:focus,.typing-word[class*="level-"]:focus{box-shadow:0 2px 0 var(--level-color)}
.dark .typing-levels button[data-level="primary"].selected{background:#1d3542;color:#9bd9f4}
.dark .typing-levels button[data-level="middle"].selected{background:#263c27;color:#a4dc91}
.dark .typing-levels button[data-level="cet4"].selected{background:#45331f;color:#f2bd75}
.dark .typing-levels button[data-level="ielts"].selected{background:#1d3b3a;color:#83dedb}
.dark .cloze-input[class*="level-"],.dark .typing-word[class*="level-"]{background:#16272b;color:var(--level-color)}
.typing-practice-english .word.freq-gre,.word.freq-gre{color:#8b45bd}
.cloze-input.freq-gre,.typing-word.freq-gre:not(.incorrect):not(.correct){border-bottom-color:#8b45bd;background:#f5ebfb;color:#8040ae}
.dark .typing-practice-english .word.freq-gre,.dark .word.freq-gre{color:#d29af2}
.dark .cloze-input.freq-gre,.dark .typing-word.freq-gre:not(.incorrect):not(.correct){border-bottom-color:#d29af2;background:#33223c;color:#d29af2}

.song-source-chip.playback-mode-chip{cursor:pointer}
.song-source-chip.playback-mode-chip.selected,.source-video-tag.mp3.playable.selected{background:#e8f4ee;border-color:#6caa83;color:#28764f;font-weight:700;box-shadow:0 0 0 1px #6caa8340}
.dark .song-source-chip.playback-mode-chip.selected,.dark .source-video-tag.mp3.playable.selected{background:#1f3329;border-color:#63ad7b;color:#8ce0ae}

.nce-assessment-tag{border:1px solid #78a986;border-radius:999px;background:#eef8ef;color:#397548;padding:2px 9px;font-size:11px;cursor:pointer}.nce-assessment-dialog{width:min(760px,94vw);max-height:90vh;overflow:auto;border:0;border-radius:18px;padding:18px;background:var(--panel,#fff);color:var(--text,#26332b)}.nce-assessment-dialog::backdrop{background:#142019aa}.nce-assessment-dialog>header,.nce-assessment-dialog>footer,.nce-assessment-question-head{display:flex;align-items:center;justify-content:space-between;gap:12px}.nce-assessment-dialog>header h2{margin:0}.nce-assessment-dialog>header p{margin:6px 0;color:#7d8981;font-size:13px}.nce-assessment-dialog>header button{font-size:22px;border:0;background:transparent}.nce-assessment-history-wrap{padding:10px 0;border-bottom:1px solid #e5ebe6}.nce-assessment-history-row{font-size:12px;color:#6d7a71;padding:3px}.nce-assessment-question{border:1px solid #e3e9e4;border-radius:12px;padding:12px;margin:10px 0}.nce-assessment-question p{font-size:16px;line-height:1.55}.nce-assessment-question textarea{display:block;width:100%;box-sizing:border-box;border:1px solid #d5ded7;border-radius:8px;padding:9px;margin-top:8px;resize:vertical}.nce-assessment-feedback{font-size:12px;color:#53665a;margin-top:8px;line-height:1.6}.nce-assessment-dialog>footer{position:sticky;bottom:0;padding:10px 0;background:inherit}.nce-assessment-dialog>footer button{border:0;border-radius:9px;padding:10px 18px;background:#438c55;color:#fff}


.personal-typing-word-count{border:0;font-family:inherit;font-size:13px;color:var(--green);cursor:pointer}.personal-typing-word-count::after{content:"\2304";margin-left:5px}.personal-typing-word-count[aria-expanded="true"]::after{content:"\2303"}.personal-typing-word-content[hidden]{display:none}

.nce-extension-rationale{margin:9px 0;padding:9px 10px;border-left:3px solid #d4a64d;border-radius:6px;background:#fff8eb;color:#6f5932;font-size:12px;line-height:1.6}.nce-extension-rationale small{display:block;margin-top:4px;color:#8a795e}.dark .nce-extension-rationale{background:#28251e;color:#e8d1a1}
.detail-panel .official-scene-entry{display:flex;align-items:center;gap:9px;margin-bottom:8px;color:var(--muted);font-size:12px}
.detail-panel .official-scene-entry-tag,.detail-panel .official-scene-entry-tab{min-height:30px;padding:5px 13px;border:1px solid #c8dccd;border-radius:999px;background:#edf5ee;color:#47785a;font:600 12px/1.3 'Noto Sans SC',sans-serif;cursor:pointer}
.detail-panel .official-scene-entry-tag[aria-expanded="true"]{background:#4f8061;color:#fff;border-color:#4f8061}
.detail-panel .official-scene-body{padding-top:8px}
.detail-panel .official-scene-head{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:10px 12px;border-radius:9px;background:#f0f5ef;color:#33473a;font-size:13px}
.detail-panel .official-scene-head>div{flex:1;min-width:0}.detail-panel .official-scene-head>div>b{display:block;overflow-wrap:anywhere}.detail-panel .official-scene-head small{display:block;margin-top:5px;color:#718276;line-height:1.5;overflow-wrap:anywhere}
.detail-panel .official-scene-footprint,.detail-panel .official-scene-status{margin:8px 0;color:var(--muted);font-size:12px}
.detail-panel .official-scene-source{margin:10px 0;padding:9px;border:1px solid var(--line);border-radius:9px}
.detail-panel .official-scene-source summary{cursor:pointer;color:var(--green);font-size:13px}
.detail-panel .official-fixed-player>button,.detail-panel .official-scene-generate,.detail-panel .official-scene-quiz>button{min-height:38px;margin:5px 6px 3px 0;padding:7px 12px;border:1px solid #dae6dc;border-radius:999px;background:#eef5ef;color:#47785a;font:600 13px/1.4 'Noto Sans SC',sans-serif;cursor:pointer}
.detail-panel .official-scene-actions{display:flex;flex-wrap:wrap;gap:8px;margin:10px 0}
.detail-panel .official-scene-quiz{margin-top:12px;padding:12px;border:1px solid var(--line);border-radius:10px;background:var(--panel);font-size:var(--learning-content-font-size,18px);line-height:1.7}

.official-scene-fullscreen{position:fixed!important;inset:0!important;z-index:10050;width:auto!important;height:100dvh!important;max-height:100dvh!important;margin:0!important;padding:12px 14px max(14px,env(safe-area-inset-bottom))!important;display:flex;flex-direction:column;gap:10px;overflow:hidden;background:#f2ecdf;color:#242a27;box-sizing:border-box}
.official-scene-fullscreen .official-scene-entry{display:none!important}
.official-scene-fullscreen .official-scene-page-header{height:54px;flex:0 0 54px;display:flex;align-items:center;justify-content:center;position:relative;border-radius:18px;background:#fff;color:#26302a;font-size:15px}
.official-scene-fullscreen .official-scene-page-header button{position:absolute;right:10px;top:7px;width:40px;height:40px;border:0;border-radius:50%;background:#fff;box-shadow:0 2px 9px #26302a18;color:#66716b;font-size:27px;line-height:1;cursor:pointer}
.official-scene-fullscreen .official-scene-body{display:flex!important;flex:1;min-height:0;flex-direction:column;gap:10px;overflow-y:auto;padding:16px;border-radius:26px;background:#fffaf3;scrollbar-width:thin}
.official-scene-fullscreen .official-scene-head{flex:none;background:transparent;padding:0;color:#242a27;font-size:20px}
.official-scene-fullscreen .official-scene-head>div{flex:1;min-width:0}.official-scene-fullscreen .official-scene-head>div>b{display:block;overflow-wrap:anywhere;font-size:clamp(20px,5vw,30px);line-height:1.35}
.official-scene-fullscreen .official-scene-head small{font-size:14px;line-height:1.6;color:#66716b}
.official-scene-fullscreen .official-scene-head>span,.official-scene-fullscreen .official-scene-footprint{display:none}
.official-scene-fullscreen .official-scene-source{margin-top:12px}
.official-scene-fullscreen .official-scene-actions{flex:none;margin:0}
.official-scene-fullscreen .official-scene-quiz{flex:none;background:#fff;border-color:#e7e5de}
.official-scene-fullscreen button:not(.official-scene-page-header button){min-height:40px;padding:8px 15px;border:1px solid #dfdfd7;border-radius:999px;background:#f3e8d6;color:#4c5c4f;font:600 14px/1.35 'Noto Sans SC',sans-serif;cursor:pointer}
.official-scene-fullscreen .official-scene-assess{background:#ff8422;color:#fff;border-color:#ff8422}
.official-scene-fullscreen .official-scene-quiz button{background:#fff}
.detail-panel #detail-scene-entry,.detail-panel #detail-generate{vertical-align:middle}
.detail-panel #detail-scene-entry{margin-left:10px}
.detail-panel .official-scene-generation{padding:20px 14px;border:1px solid #e7eae4;border-radius:14px;background:#fff;color:#3b473e;text-align:center}
.detail-panel .official-scene-generation strong{display:block;font-size:16px}
.detail-panel .official-scene-generation p{margin:9px 0;color:#78847b;font-size:13px;line-height:1.6}
.official-scene-fullscreen .official-scene-generation{width:min(100%,520px);margin:auto;padding:24px 18px;border:1px solid #eee5d8;border-radius:22px;background:#fffaf3;color:#303831;text-align:center;box-sizing:border-box}
.official-scene-fullscreen .official-scene-generation strong{display:block;font-size:20px;line-height:1.45}
.official-scene-fullscreen .official-scene-generation p{margin:12px 0 18px;color:#788078;font-size:15px;line-height:1.7}
@media(min-width:700px){.official-scene-fullscreen{align-items:center;padding:18px!important}.official-scene-fullscreen .official-scene-page-header,.official-scene-fullscreen .official-scene-body{width:min(100%,560px);box-sizing:border-box}.official-scene-fullscreen .official-scene-body{flex:none;height:calc(100dvh - 102px)}}
/* 场景教学 · 互动电子书 */
.scene-ebook-tabs{display:flex;gap:6px;margin:10px 0}
.scene-ebook-tabs button{flex:1;min-height:34px;border:1px solid #dae6dc;border-radius:10px;background:#eef5ef;color:#47785a;font:600 13px/1.3 'Noto Sans SC',sans-serif;cursor:pointer}
.scene-ebook-tabs button.active{background:#4f8061;color:#fff;border-color:#4f8061}
.scene-ebook-title{margin:14px 0 8px;font-size:15px;color:#33473a}
.scene-ebook-title small{font-weight:400;color:#8a978d;font-size:12px}
.scene-vocab{display:flex;flex-wrap:wrap;gap:7px}
.scene-vocab-chip{min-height:30px;padding:5px 12px;border:1px solid #c8dccd;border-radius:999px;background:#edf5ee;color:#47785a;font:600 13px/1.3 'Noto Sans SC',sans-serif}
.scene-listen-row{display:flex;gap:10px;align-items:flex-start;padding:8px 6px;border-bottom:1px solid #eceae2;border-radius:8px}
.scene-listen-row.active{background:#eef5ee}
.scene-listen-play{flex:0 0 auto;width:34px;height:34px;border-radius:50%;border:1px solid #c8dccd;background:#edf5ee;color:#47785a;cursor:pointer;font-size:13px}
.scene-listen-text{flex:1;min-width:0}
.scene-listen-en{margin:0;font-size:16px;line-height:1.65;color:#242a27;overflow-wrap:anywhere}
.scene-listen-zh{margin:4px 0 0;color:#71806f;font-size:13px;line-height:1.6}
.scene-listen-translate{margin-top:4px;border:0;background:none;color:#4f8061;font-size:12px;cursor:pointer;padding:0}
.scene-listen-tools{display:flex;flex-wrap:wrap;align-items:center;gap:6px}
.scene-word{color:#c2410c}
.official-scene-fullscreen .scene-ebook-page{overflow:auto}
/* ── 场景教学统一为「歌曲详情 · 值得学习的句子」卡片风格(2026-10-01)── */
.official-scene-fullscreen{background:var(--page,#f7f8f5);color:var(--ink)}
.official-scene-fullscreen .official-scene-page-header{background:var(--panel);border:1px solid var(--line);border-radius:10px;color:var(--ink);font-size:13px;font-weight:700}
.official-scene-fullscreen .official-scene-page-header button{top:8px;right:10px;width:32px;height:32px;border:1px solid var(--line);background:var(--panel);box-shadow:none;color:var(--muted);font-size:20px}
.official-scene-fullscreen .official-scene-body{gap:10px;padding:0;border-radius:0;background:transparent;color:var(--ink)}
.official-scene-fullscreen .official-scene-head{padding:12px;border:1px solid var(--line);border-radius:10px;background:var(--panel);color:var(--ink);font-size:13px}
.official-scene-fullscreen .official-scene-head>div>b{font-size:clamp(16px,4.6vw,20px)}
.official-scene-fullscreen .official-scene-head small{margin-top:4px;color:var(--muted);font-size:11px}
.official-scene-body .scene-ebook-tabs{gap:6px;margin:2px 0 4px}
.official-scene-body .scene-ebook-title{margin:14px 0 8px;font-size:12px;font-weight:700;color:var(--green)}
.official-scene-body .scene-ebook-title small{color:var(--muted);font-size:10px}
.official-scene-body .scene-vocab-chip,.official-scene-body .scene-note-tag{display:inline-block;min-height:0;padding:4px 9px;border:1px solid #dce9dd;border-radius:999px;background:var(--green-wash);color:var(--green);font:700 11.5px/1.4 'Noto Sans SC',sans-serif}
.official-scene-body .scene-note,.official-scene-body .scene-listen-row,.official-scene-body .official-scene-question,.official-scene-body .official-scene-source{margin:0 0 10px;padding:8px 9px;border:1px solid var(--line);border-radius:9px;background:var(--panel);color:var(--ink)}
.official-scene-body .scene-note-text{margin-top:4px;color:var(--muted);font-size:var(--learning-content-font-size,18px);line-height:1.75;overflow-wrap:anywhere}
.official-scene-body .scene-note>.scene-note-text:first-child{margin-top:0;color:var(--ink)}
.official-scene-body .scene-listen-row.active{border-color:var(--green);background:var(--green-wash)}
.official-scene-body .scene-listen-en{color:var(--ink);font-weight:600;line-height:1.6}
.official-scene-body .scene-listen-zh{color:var(--muted)}
.official-scene-body .official-scene-source summary{color:var(--green);font-size:12px;font-weight:700}
.official-scene-fullscreen .official-scene-body button:not(.official-scene-page-header button){min-height:30px;padding:5px 12px;border:1px solid #dce9dd;border-radius:999px;background:var(--green-wash);color:var(--green);font:700 12px/1.4 'Noto Sans SC',sans-serif}
.official-scene-fullscreen .official-scene-body .scene-ebook-tabs button:not(.official-scene-page-header button){flex:1}
.official-scene-fullscreen .official-scene-body .scene-ebook-tabs button.active:not(.official-scene-page-header button),.official-scene-fullscreen .official-scene-body .official-scene-assess:not(.official-scene-page-header button){border-color:var(--green);background:var(--green);color:#fff}
.official-scene-fullscreen .official-scene-body .scene-listen-play:not(.official-scene-page-header button){flex:0 0 auto;width:32px;min-height:32px;height:32px;padding:0;border-radius:50%;font-size:12px}
.official-scene-fullscreen .official-scene-body .scene-listen-translate:not(.official-scene-page-header button),.official-scene-fullscreen .official-scene-body [data-reveal-scene-answer]:not(.official-scene-page-header button){min-height:0;margin-top:5px;padding:3px 8px;background:var(--panel);font-size:10px;font-weight:600}
.official-scene-fullscreen .official-scene-body .official-scene-actions{gap:8px;margin:2px 0 4px}
.dark .official-scene-body .scene-vocab-chip,.dark .official-scene-body .scene-note-tag,.dark .official-scene-fullscreen .official-scene-body button:not(.official-scene-page-header button){border-color:#263b30}

/* ???????????? */
.scene-quiz-options{display:flex;flex-wrap:wrap;gap:8px;margin:10px 0}
.official-scene-body .scene-quiz-options .scene-quiz-option{min-height:36px;padding:7px 14px;border:1px solid var(--green);border-radius:999px;background:var(--green-wash);color:var(--green);cursor:pointer}
.official-scene-body .scene-quiz-options .scene-quiz-option.is-correct{background:#def3e4;border-color:#36834f;color:#205f35}
.official-scene-body .scene-quiz-options .scene-quiz-option.is-wrong{background:#ffe5e5;border-color:#c95454;color:#a52d2d}
.scene-quiz-option:focus-visible{outline:2px solid var(--green);outline-offset:3px}
.scene-quiz-feedback{font-weight:600;color:var(--ink)}
.word-card-meaning,.word-card-tip{white-space:pre-line}
.scene-vocab-chip[data-scene-vocab]{cursor:pointer}
.scene-vocab-chip[data-scene-vocab]:active{filter:brightness(.95)}
.official-scene-body .official-scene-question{padding:14px 16px}
.official-scene-body .official-scene-question>p{margin:0 0 12px;line-height:1.6}
.official-scene-body .official-scene-question>button{margin:0 8px 0 0}
.official-scene-body .official-scene-question [data-scene-answer]{margin-top:14px;padding-top:12px;border-top:1px dashed var(--line)}
.official-scene-body .official-scene-question [data-scene-answer] b{display:block;margin-bottom:8px}
.official-scene-body .official-scene-question [data-scene-answer] p{margin:0;line-height:1.7}
.official-scene-body .official-scene-question .scene-quiz-feedback{margin:0}
.scene-quiz-result{display:flex;flex-direction:column;gap:4px;padding:12px 14px;margin-bottom:10px;border:1px solid var(--line);border-radius:10px;background:var(--panel-soft);color:var(--ink)}
.scene-quiz-result strong{font-size:16px}
.scene-quiz-result span{font-size:13px;opacity:.8}

/* 场景教学与主页播放器同宽；填空复用打字练习键盘。 */
.official-scene-fullscreen .official-scene-page-header,.official-scene-fullscreen .official-scene-body{width:min(100%,var(--scene-player-width,560px));box-sizing:border-box}
.scene-fill-dialog .typing-practice-english{line-height:1.9}
.scene-fill-dialog .typing-word{max-width:100%;width:12ch}

.scene-lyric-grammar{margin-top:10px;border-top:1px solid var(--line,#e2e8e3);padding-top:8px}
.scene-lyric-grammar summary{cursor:pointer;color:var(--accent,#4e8062);font-size:14px;overflow-wrap:anywhere}
.scene-lyric-grammar .scene-note-text{white-space:pre-wrap}
[data-scene-lyric-row]{cursor:pointer}
[data-scene-lyric-row]:focus-visible{outline:2px solid var(--green);outline-offset:2px}
.hint-opacity-row[hidden]{display:none}
.points-title-line{margin:2px 14px 8px;padding:8px 12px;border-radius:12px;background:var(--panel-soft,#f3f7f1);font-size:13px;line-height:1.6;color:var(--ink,#25302a)}
.points-title-tag{display:inline-block;margin-left:4px;padding:0 7px;border-radius:999px;background:#fff3d6;color:#b45309;font-style:normal;font-size:11px;font-weight:700;line-height:18px;vertical-align:1px}
.dark .points-title-line{background:#111a22;color:#dbe7df}.dark .points-title-tag{background:#3a2e12;color:#f5c26b}
}