/* Lesson page: use a separate control dock so paused subtitles remain visible. */
.watch-page .watch-header{border-bottom-color:transparent;background:var(--classroom-paper)}
.watch-page .watch-shell{max-width:1320px}
.watch-page .watch-main{display:grid;align-content:start;gap:0;min-width:0}
.watch-page .watch-main>*{min-width:0;order:0}
.watch-page .watch-meta{padding-top:19px}
.watch-page .watch-title-row{align-items:flex-start;margin-block:1px 13px;gap:10px}
.watch-page #lessonTitle{font-size:clamp(20px,2.5vw,30px);line-height:1.32;letter-spacing:-.034em}
.watch-page #chapterIndex{padding:3px 8px;background:var(--w-soft);border-radius:999px;font-size:12px;font-weight:650;white-space:nowrap}
.watch-page .watch-listen:has(#backgroundListen[hidden]):has(#audioHint[hidden]),.watch-page:has(.pgv) .watch-listen:has(#audioHint[hidden]){display:none}
.watch-page .watch-status{margin-top:7px;font-size:12px}
.watch-page #watchStudy{margin:11px 0 0}
.watch-page .watch-study-tabs{gap:16px;margin:0 0 10px;border-bottom:0}
.watch-page .watch-study-tabs button{min-height:44px;padding:0 4px;border-bottom-width:2px}
.watch-page .watch-study-tabs button[aria-selected=true]{color:var(--w-accent);border-bottom-color:var(--w-accent)}
.watch-page #studyLead{margin:0 0 8px}
.watch-page #studyPoints li{margin:4px 0}
.watch-page #lessonNote{min-height:105px}
.watch-page #watchStudentNoticeSlot:empty{display:none}
.watch-page #watchStudentNoticeSlot .watch-lesson-context{margin:10px 0 0}
.watch-page #watchStudentNoticeSlot a{text-decoration:underline;text-underline-offset:2px;color:var(--w-accent)}
.watch-page .watch-lesson-utilities{margin:12px 0 0}
.watch-page .watch-lesson-utilities:has(.watch-offline[hidden]):has(#watchTraining[hidden]):has(#cashLessonMaterials[hidden]){display:none}
.watch-page .watch-lesson-utilities .watch-offline.wo{margin:0 0 5px;background:transparent;border-color:var(--w-line);box-shadow:none;border-radius:9px}
.watch-page .watch-lesson-utilities .wo-disclosure>summary{min-height:44px;padding:3px 8px;border-radius:9px}
.watch-page .watch-lesson-utilities .wo-icon{height:28px;width:28px;background:transparent}
.watch-page .watch-lesson-utilities .wo-icon svg{height:17px;width:17px}
.watch-page .watch-training{margin:0;padding:0;border:0;align-items:center}
html body.watch-page .watch-training button,html body.watch-page .watch-training.is-complete button{border-color:transparent;padding-inline:4px;background:transparent}
.watch-page .watch-curriculum{border:0;background:var(--w-bg);border-radius:14px;padding:12px}
.watch-page .watch-catalog-heading{margin:0}
.watch-page :is(a,button,input,summary,textarea):focus-visible{outline-color:var(--w-accent)}
.watch-page .pgv-played{background:#a6bcdf}
.watch-page .pgv-menu .pgv-item.on,.watch-page .pgv-end-kicker{color:#b7cbea}
.watch-page .pgv button:focus-visible{outline-color:#a6bcdf}
.watch-page .pgv-end-practice{background:#b7cbea!important;color:#18263b!important}

/* Only normal inline HLS. Keep native, fullscreen, and short landscape layouts as is. */
@media (orientation:portrait),(min-height:501px){
 .watch-page .watch-video:has(.pgv:not([data-state=idle])){--watch-control-dock:88px;aspect-ratio:auto}
 .watch-page .watch-video:has(.pgv:not([data-state=idle]))::before{content:"";display:block;aspect-ratio:16/9}
 .watch-page .watch-video:has(.pgv:not([data-state=idle]))::after{content:"";display:block;height:var(--watch-control-dock)}
 .watch-page .pgv:not(.fs):not(:fullscreen){--watch-control-dock:88px}
 .watch-page .pgv:not(.fs):not(:fullscreen) .pgv-video{height:calc(100% - var(--watch-control-dock))}
 .watch-page .pgv:not(.fs):not(:fullscreen)[data-state=idle]{background-position:center;background-size:contain}
 .watch-page .pgv:not(.fs):not(:fullscreen) .pgv-scrim{bottom:var(--watch-control-dock);background:linear-gradient(to bottom,#00000026,transparent 18%)}
 .watch-page .pgv:not(.fs):not(:fullscreen) .pgv-scrim{opacity:0}
 .watch-page .pgv:not(.fs):not(:fullscreen)[data-state=idle] .pgv-scrim{opacity:0;background:none}
 .watch-page .pgv:not(.fs):not(:fullscreen) :is(.pgv-spinner,.pgv-flash){top:calc(50% - (var(--watch-control-dock) / 2))}
 .watch-page .pgv:not(.fs):not(:fullscreen) .pgv-bar{background:#101722;padding-bottom:3px}
 .watch-page .pgv:not(.fs):not(:fullscreen):not([data-state=idle]) .pgv-bar{opacity:1;transform:none}
 .watch-page .pgv:not(.fs):not(:fullscreen) .pgv-btn{min-height:44px}
}
@media(max-width:850px){
 .watch-page .watch-main{padding-inline:max(14px,env(safe-area-inset-left,0px)) max(14px,env(safe-area-inset-right,0px))}
 .watch-page.watch-page .watch-video{width:100%;margin:8px auto 0;border-radius:13px}
 .watch-page .watch-meta{padding:12px 0 0}
 .watch-page .watch-title-row{margin-bottom:7px}
 .watch-page .watch-curriculum{margin:12px 14px 0}
 .watch-page #watchStudy{margin-top:6px}
 .watch-page .watch-lesson-context{font-size:12px}
}
@media(max-width:360px){
 .watch-page .pgv-btn{min-width:34px;padding-inline:4px}
 .watch-page .pgv:not(.fs):not(:fullscreen) .pgv-vol{display:none}
 .watch-page .pgv-time{font-size:11px;padding-inline:2px}
}
@media (orientation:landscape) and (max-height:500px) and (pointer:coarse){
 .watch-page.watch-page .watch-video{width:min(100%,calc(100dvh * 16 / 9));border-radius:0}
}

/* Reuse the site's actual settings menu; keep watch navigation separate. */
.watch-page .watch-header .topnav{display:flex;align-items:center;flex:none}
.watch-page .watch-header .pg-menu-button{min-width:44px;min-height:44px}
.watch-page .watch-lesson-nav{display:grid;gap:2px;max-width:660px}
.watch-page .watch-up-next{display:flex;align-items:center;justify-content:space-between;gap:10px;width:100%;padding:9px 12px;border:1px solid var(--w-line);border-radius:10px;background:var(--w-bg);text-align:left;color:var(--w-text)}
.watch-page .watch-up-next:hover{background:var(--w-selected)}
.watch-page .watch-up-next small{display:block;color:var(--w-muted);font-size:11px;line-height:1.35}
.watch-page .watch-up-next strong{display:block;margin-top:2px;font-size:14px;line-height:1.4;word-break:keep-all;overflow-wrap:anywhere}
.watch-page .watch-up-arrow{flex:none;color:var(--w-accent);font-size:18px}
.watch-page .watch-lesson-secondary{display:flex;align-items:center;gap:9px;min-height:44px}
.watch-page .watch-lesson-secondary #prev,.watch-page .watch-lesson-secondary #complete{min-height:44px;border:0;padding-inline:2px;background:transparent;color:var(--w-muted);font-size:12px;font-weight:650}
.watch-page .watch-lesson-secondary #complete{margin-left:auto;color:var(--w-accent)}
.watch-page .watch-lesson-secondary .watch-tools summary{font-size:20px}

.watch-page .watch-header{--ac-text:var(--w-text);--ac-bg:var(--w-bg);--ac-line:var(--w-line);--ac-raised:var(--w-soft);position:relative;z-index:41}
.watch-page .watch-header .accountmenu{position:relative}
.watch-page .watch-header .pg-menu-label{display:none}
.watch-page .watch-header .accountpop{position:absolute;right:0;top:calc(100% + 5px);width:min(258px,calc(100vw - 28px));padding:7px;background:var(--w-bg);color:var(--w-text);border:1px solid var(--w-line);border-radius:13px;box-shadow:0 16px 32px #0002}
.watch-page .watch-header .accountmenu:not([open]) .accountpop{display:none}
.watch-page .watch-header .accountpop a{display:flex;align-items:center;min-height:44px;border-radius:8px;padding:7px 12px;font-size:14px}
.watch-page .watch-header .accountpop a:hover{background:var(--w-soft)}
.watch-page .pg-menu-backdrop:not([hidden]){position:fixed;inset:0;z-index:40;background:#080c1430}
.watch-page .watch-lesson-secondary .watch-tools summary{width:auto;font-size:12px;color:var(--w-muted);padding-inline:4px}

/* Follow the reading with a quiet, clearly actionable practice card. */
.watch-page #studyOopDrill{margin:20px 0 4px;padding:clamp(13px,2.4vw,20px);border-radius:15px;border:1px solid var(--w-line);background:var(--w-soft)}
.watch-page #studyOopDrill h2{margin:0 0 5px;color:var(--w-text);font-size:18px;line-height:1.4}
.watch-page #studyOopDrill>p{margin:5px 0;color:var(--w-muted);line-height:1.6}
.watch-page #studyOopDrill h3{font-size:15px;margin:7px 0 11px;line-height:1.5}
.watch-page #studyOopDrill [role=group]{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,130px),1fr));gap:6px}
.watch-page #studyOopDrill button{min-height:44px;padding:6px 11px;border-radius:9px;border:1px solid var(--watch-accent-border);background:var(--w-bg);color:var(--w-text);font-size:13px;font-weight:700}
.watch-page #studyOopDrill button:hover{background:var(--w-selected)}
.watch-page #studyOopDrill button[aria-disabled=true]{opacity:.65;cursor:default}
.watch-page #studyOopDrill>p[data-result]{padding:8px 10px;border-radius:8px;background:var(--w-selected);color:var(--w-text);margin-block:8px}
.watch-page #studyOopDrill>p:empty{display:none}
.watch-page #studySummary{max-width:78ch}

/* A familiar watch timeline: one centered full-width track, then simple controls. */
@media (orientation:portrait),(min-height:501px){
 .watch-page .pgv:not(.fs):not(:fullscreen) .pgv-bar{padding:0 clamp(12px,2.6cqw,22px);background:#121923}
 .watch-page .pgv:not(.fs):not(:fullscreen) .pgv-seek{height:44px;margin:0;min-width:0}
 .watch-page .pgv:not(.fs):not(:fullscreen) .pgv-seek::before{background:#39465a}
 .watch-page .pgv:not(.fs):not(:fullscreen) .pgv-buffered{background:#60718a}
 .watch-page .pgv:not(.fs):not(:fullscreen) .pgv-played{background:#adc4ed}
 .watch-page .pgv:not(.fs):not(:fullscreen) .pgv-knob{width:12px;height:12px;margin:-6px 0 0 -6px;transform:scale(1);box-shadow:none}
 .watch-page .pgv:not(.fs):not(:fullscreen) .pgv-seek:focus-visible{outline:2px solid #c7d9ff;outline-offset:-3px;border-radius:6px}
 .watch-page .pgv:not(.fs):not(:fullscreen) .pgv-row{height:44px}
 .watch-page .pgv:not(.fs):not(:fullscreen) .pgv-btn{height:44px;min-width:44px}
 .watch-page .pgv:not(.fs):not(:fullscreen) .pgv-menu{bottom:var(--watch-control-dock);box-sizing:border-box;max-height:min(70%,calc(100% - var(--watch-control-dock) - 8px))}
 .watch-page .pgv:not(.fs):not(:fullscreen) .pgv-hover{bottom:38px}
 .watch-page .pgv:not(.fs):not(:fullscreen):not(.ui)[data-state=playing]{cursor:auto}
 .watch-page .pgv:not(.fs):not(:fullscreen) .pgv-time{font-weight:600}
}
.watch-page .watch-up-next{box-shadow:none;background:var(--w-soft);border-color:transparent;min-height:52px}
.watch-page .watch-up-next[hidden]{display:none}
.watch-page .watch-up-next strong{font-size:14px;font-weight:680}
.watch-page .watch-lesson-secondary{gap:12px}
.watch-page .watch-lesson-secondary .watch-tools summary{padding-inline:8px}
.watch-page .watch-video+.watch-meta .watch-lesson-context{margin-bottom:5px}
.watch-page #watchStudy{margin-inline:0;padding-top:8px;border-top:1px solid var(--w-line)}
.watch-page #watchStudy .watch-study-tabs{margin-bottom:8px}
.watch-page #studySummary{line-height:1.7}
.watch-page .watch-lesson-utilities .watch-offline.wo{border-color:transparent;background:var(--w-soft)}
.watch-page .watch-lesson-utilities .wo-disclosure>summary{padding-inline:8px}
@media(max-width:480px){
 .watch-page #lessonTitle{font-size:clamp(19px,5vw,23px)}
 .watch-page #chapterIndex{padding:2px 6px;font-size:11px}
 .watch-page .watch-up-next{padding-block:7px}
}
@container (max-width:410px){
 @media (orientation:portrait),(min-height:501px){
  .watch-page .pgv:not(.fs):not(:fullscreen) .pgv-time{position:absolute;top:1px;left:0;right:0;text-align:center;font-size:11px;line-height:14px;padding:0;pointer-events:none}
  .watch-page .pgv:not(.fs):not(:fullscreen) .pgv-row{gap:0}
  .watch-page .pgv:not(.fs):not(:fullscreen) :is(.pgv-left,.pgv-right){gap:0}
 }
}
.watch-page .watch-up-next:not(:disabled):hover{background:var(--w-selected)}

/* Before play: one dedicated thumbnail with a centered play affordance, no empty control shelf. */
@media (orientation:portrait),(min-height:501px){
 .watch-page .pgv:not(.fs):not(:fullscreen)[data-state=idle] .pgv-video{height:100%}
 .watch-page .pgv:not(.fs):not(:fullscreen)[data-state=idle] .pgv-spinner{top:50%}
 .watch-page .pgv:not(.fs):not(:fullscreen)[data-state=idle] .pgv-scrim{bottom:0}
}
.watch-page .pgv:not(.fs):not(:fullscreen)[data-state=idle] .pgv-start{position:absolute;left:50%;top:50%;right:auto;bottom:auto;display:grid;place-items:center;height:48px;width:64px;padding:0;transform:translate(-50%,-50%);gap:0;border-radius:16px!important;background:#111c2ef2!important;color:#fff!important;box-shadow:0 0 0 1px #ffffff58,0 4px 18px #0003}
.watch-page .pgv:not(.fs):not(:fullscreen)[data-state=idle] .pgv-start:hover{background:#213653!important}
.watch-page .pgv:not(.fs):not(:fullscreen)[data-state=idle] .pgv-start svg{width:30px;height:30px;padding:5px;background:transparent;box-shadow:none;color:#fff;fill:#fff}
.watch-page .pgv:not(.fs):not(:fullscreen)[data-state=idle] .pgv-start svg path{fill:#fff}
.watch-page .pgv:not(.fs):not(:fullscreen)[data-state=idle] .pgv-start :is(span,small){display:none}
.watch-page .pgv:not(.fs):not(:fullscreen)[data-state=idle] .pgv-bar{display:none}
.watch-page .watch-poster-play svg{width:64px;height:48px;padding:11px 20px;border:0;border-radius:15px;background:#121d2eeb;box-shadow:none}
.watch-page .watch-poster-play:hover svg{background:#213653}
.watch-page .watch-poster-play:focus-visible{outline:0}
.watch-page .watch-poster-play:focus-visible svg,.watch-page .pgv:not(.fs):not(:fullscreen)[data-state=idle] .pgv-start:focus-visible{outline:2px solid #fff;outline-offset:3px}
@media(prefers-reduced-motion:reduce){
 .watch-page .pgv:not(.fs):not(:fullscreen) :is(.pgv-btn,.pgv-start,.pgv-knob,.pgv-played,.pgv-buffered),
 .watch-page .pgv:not(.fs):not(:fullscreen) .pgv-seek::before{transition:none}
}

/* Preserve the existing MC1 lettering: play is horizontally centered, just below the title. */
.watch-page .watch-video:has(#lessonPoster[src*="cover-masterclass-1-local-light"]) .pgv:not(.fs):not(:fullscreen)[data-state=idle] .pgv-start{top:64%}
.watch-page .watch-video:has(#lessonPoster[src*="cover-masterclass-1-local-light"]) #posterPlay svg{position:absolute;top:64%;left:50%;transform:translate(-50%,-50%)}

/* Playback recovery: one compact, wrapping action group. */
.watch-page .watch-recovery-actions{display:flex;gap:6px;justify-content:center;flex-wrap:wrap}
.watch-page .watch-recovery-actions:not(:has(>button:not([hidden]))){display:none}
.watch-page .watch-recovery-actions button{padding:5px 10px;min-height:44px;font-size:12px;white-space:nowrap}
@media(max-width:420px){.watch-page .watch-placeholder{padding:10px;gap:7px}.watch-page .watch-placeholder p{line-height:1.45}}

