/* Lecture flow: list → detail → watch → my classroom, one quiet design.
 * One thing leads each screen: the thumbnail (list), the video (watch), the resume line (classroom).
 * Colour comes from the photographs; type, space and hairlines do the rest. Presentation only. */
:root{
 --lf-font:system-ui,-apple-system,"Apple SD Gothic Neo","Noto Sans KR","Malgun Gothic",sans-serif;
 --lf-thumb:128px;--lf-radius:10px;--lf-gap:14px;--lf-gutter:20px;
 --lf-paper:#fbfaf7;--lf-bg:#fff;--lf-surface:#f4f1eb;--lf-line:#e8e3da;
 --lf-text:#17181c;--lf-body:#3b3c42;--lf-muted:#6c6b73;
 --lf-accent:#11795a;--lf-accent-soft:#e6f2ed;--lf-scrim:#0b0d10b8;--lf-red:#b3261e;
}
html[data-pg-theme=dark]{
 --lf-paper:#101215;--lf-bg:#15181d;--lf-surface:#1c2026;--lf-line:#2a2f37;
 --lf-text:#eef0f3;--lf-body:#c9cdd3;--lf-muted:#98a0aa;
 --lf-accent:#41d29b;--lf-accent-soft:#41d29b1f;--lf-red:#ff8f86;
}
@media(max-width:850px){:root{--lf-thumb:104px;--lf-gap:12px}}

/* ---------- Thumbnail with its number; progress hairline ---------- */
.lesson-media{position:relative;display:block;flex:none;width:var(--lf-thumb);aspect-ratio:16/9;border-radius:var(--lf-radius);overflow:hidden;background:#1b1f26}
html body .lesson-media img,html body .lesson-media .lesson-thumb{display:block;width:100%!important;height:100%!important;aspect-ratio:auto!important;border-radius:0!important;box-shadow:none!important;object-fit:cover}
.lesson-media .number,#detail #lessons .lesson .no::before{
 position:absolute;left:6px;top:6px;z-index:1;min-width:22px;padding:1px 6px;border-radius:999px;
 background:var(--lf-scrim);color:#fff;font:700 11px/18px var(--lf-font);text-align:center;font-variant-numeric:tabular-nums
}
.lesson-media::after{content:"";position:absolute;left:0;bottom:0;height:3px;width:calc(100% * var(--seen,0));background:var(--lf-accent);pointer-events:none}

/* =====================================================================
   WATCH
   ===================================================================== */
body.watch-page{
 --w-bg:var(--lf-paper);--w-text:var(--lf-text);--w-muted:var(--lf-muted);--w-line:var(--lf-line);
 --w-soft:var(--lf-surface);--w-selected:var(--lf-accent-soft);--w-accent:var(--lf-accent);--w-primary:var(--lf-text);
 --classroom-paper:var(--lf-paper);--watch-accent-border:var(--lf-line);
 background:var(--lf-paper);color:var(--lf-text);font-family:var(--lf-font)
}
html body.watch-page .watch-shell{background:transparent}

/* Header: same mark, wordmark and menu as the rest of the site. */
html body.watch-page .watch-header{background:var(--lf-paper);border-bottom:1px solid var(--lf-line);min-height:56px}
html body.watch-page .watch-back{color:var(--lf-text);font-weight:650;gap:6px}
html body.watch-page .watch-brand{display:inline-flex;align-items:center;gap:8px;color:var(--lf-text);font:800 17px/1 var(--lf-font);letter-spacing:-.02em;text-decoration:none}
html body.watch-page .watch-brand .pg-g-symbol{width:26px;height:26px;display:inline-grid;place-items:center}
html body.watch-page .watch-brand .pg-g-symbol svg{width:100%;height:100%}
html body.watch-page .watch-brand .pg-brand-wordmark{font:inherit}

/* Stage: video first, edge to edge on phones. */
html body.watch-page .watch-main{padding-inline:0}
html body.watch-page .watch-video{width:100%;margin:0;border-radius:0}
html body.watch-page .watch-meta,html body.watch-page .watch-study,html body.watch-page .watch-lesson-utilities,html body.watch-page #watchStudentNoticeSlot{padding-inline:var(--lf-gutter)}
html body.watch-page .pgv-played,html body.watch-page .pgv:not(.fs):not(:fullscreen) .pgv-seek .pgv-played{background:var(--lf-accent)!important}
html body.watch-page .pgv-menu .pgv-item.on,html body.watch-page .pgv-end-kicker{color:var(--lf-accent)}
html body.watch-page .pgv-end-practice{background:var(--lf-accent)!important;color:#fff!important}

/* Title block */
html body.watch-page .watch-meta{padding-top:22px;padding-bottom:0}
html body.watch-page .watch-lesson-context{margin:0 0 6px;font-size:13px;font-weight:650;letter-spacing:0;color:var(--lf-accent)}
html body.watch-page .watch-title-row{display:block;margin:0}
html body.watch-page #lessonTitle{margin:0;font-size:clamp(23px,5.6vw,32px);font-weight:760;line-height:1.32;letter-spacing:-.035em;color:var(--lf-text);word-break:keep-all;overflow-wrap:anywhere}
html body.watch-page #chapterIndex{display:block;margin-top:8px;padding:0;background:transparent;font-size:12.5px;font-weight:600;color:var(--lf-muted);font-variant-numeric:tabular-nums}
html body.watch-page .watch-meta .watch-status:empty{display:none;margin:0}
html body.watch-page .watch-meta .watch-status{margin-top:8px;font-size:12.5px;color:var(--lf-muted)}

/* The reading: one page, no tabs, no boxes. */
html body.watch-page #watchStudy,html body.watch-page #watchStudy[data-study-mode]:not([hidden]){margin:26px 0 0;padding:22px var(--lf-gutter) 0;border-top:1px solid var(--lf-line);max-width:none}
html body.watch-page .watch-study-heading{margin:0 0 14px;font-size:12.5px;font-weight:700;letter-spacing:.04em;color:var(--lf-muted)}
html body.watch-page #studySummary{max-width:36rem;line-height:1.8}
html body.watch-page #studyLead{margin:0;font-size:clamp(18px,4.6vw,21px);font-weight:700;line-height:1.55;letter-spacing:-.02em;color:var(--lf-text);word-break:keep-all}
html body.watch-page #studyPoints{margin:16px 0 0;padding:0;list-style:none;counter-reset:pt;font-size:16px;line-height:1.85;color:var(--lf-body)}
html body.watch-page #studyPoints li{position:relative;margin:0 0 12px;padding-left:28px;counter-increment:pt;word-break:keep-all}
html body.watch-page #studyPoints li::before{content:counter(pt);position:absolute;left:0;top:.08em;font-size:13px;font-weight:700;line-height:1.85;color:var(--lf-accent);font-variant-numeric:tabular-nums}
html body.watch-page #studySource[hidden],html body.watch-page #studySource:empty{display:none}
html body.watch-page #studySource{margin-top:6px;font-size:12.5px;color:var(--lf-muted)}
html body.watch-page #studyOopDrill{margin:22px 0 0;padding:18px 0 0;border:0;border-top:1px solid var(--lf-line);border-radius:0;background:transparent}
html body.watch-page #studyOopDrill button{border-color:var(--lf-line);background:transparent;color:var(--lf-text)}
html body.watch-page #studyOopDrill button:hover{background:var(--lf-surface)}

/* Own notes: a ruled line, not a form. */
html body.watch-page .watch-notes{max-width:36rem;margin:24px 0 0;padding:0}
html body.watch-page .watch-notes label{display:block;margin:0 0 6px;font-size:12.5px;font-weight:700;letter-spacing:.04em;color:var(--lf-muted)}
html body.watch-page #lessonNote{display:block;width:100%;min-height:0;padding:8px 0;border:0;border-bottom:1px solid var(--lf-line);border-radius:0;background:transparent;color:var(--lf-text);font:400 15.5px/1.75 var(--lf-font);resize:vertical}
html body.watch-page #lessonNote:focus{outline:0;border-bottom-color:var(--lf-accent)}
html body.watch-page #lessonNote::placeholder{color:var(--lf-muted);opacity:.8}
html body.watch-page #lessonNoteStatus{margin:6px 0 0;font-size:12px;color:var(--lf-muted)}

/* Quiet extras: a real drill (only when it exists), offline saving, support. */
html body.watch-page .watch-lesson-utilities{display:grid!important;gap:6px;margin:22px 0 0;padding-top:6px;padding-bottom:12px;border-top:1px solid var(--lf-line)}
html body.watch-page .watch-lesson-utilities>:is(.watch-offline[hidden],section[hidden]){display:none}
html body.watch-page .watch-training{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:12px 0;border:0;border-radius:0;background:transparent}
html body.watch-page .watch-training[hidden]{display:none}
html body.watch-page .watch-training #watchTrainingLead{display:block;font-size:12px;font-weight:650;color:var(--lf-muted)}
html body.watch-page .watch-training #watchTrainingTitle{margin:2px 0 0;font-size:15px;font-weight:700;line-height:1.45;color:var(--lf-text)}
html body.watch-page .watch-training #watchTrainNow,html body.watch-page .watch-training.is-complete #watchTrainNow{flex:none;min-height:44px;padding:0;border:0;background:transparent;color:var(--lf-accent);font-size:14.5px;font-weight:750;text-align:right}
html body.watch-page .watch-training #watchTrainNow:hover{text-decoration:underline;text-underline-offset:3px}
html body.watch-page .watch-training #watchTrainingStatus:empty{display:none}
html body.watch-page .watch-lesson-utilities .watch-offline.wo{margin:0;border:0;background:transparent;box-shadow:none;border-radius:0}
html body.watch-page .watch-lesson-utilities .wo-disclosure>summary{padding-inline:0;min-height:44px}
html body.watch-page .watch-support{justify-self:start;display:inline-flex;align-items:center;min-height:44px;font-size:12.5px;color:var(--lf-muted);text-decoration:underline;text-underline-offset:3px}

/* ---------- Curriculum: always visible, current lesson and completion live here ---------- */
html body.watch-page .watch-curriculum{background:transparent;border:0;border-radius:0;padding:0}
html body.watch-page .watch-curriculum .watch-list-head{padding:0 0 10px}
html body.watch-page .watch-curriculum h2{margin:0;font-size:16px;font-weight:760;letter-spacing:-.02em;color:var(--lf-text)}
html body.watch-page #count{font-size:12.5px;color:var(--lf-muted);font-weight:600}
html body.watch-page .watch-curriculum:not(.is-expanded) .watch-lessons,html body.watch-page .watch-curriculum .watch-lessons{display:grid!important;gap:2px;max-height:none;overflow:visible}
html body.watch-page .watch-curriculum:not(.is-expanded) .watch-search:not([hidden]){display:block!important}
html body.watch-page .watch-search[hidden]{display:none!important}
html body.watch-page .watch-lessons .lesson-row{position:relative;border-radius:12px;content-visibility:visible}
html body.watch-page .watch-lessons .lesson-row.is-current{background:var(--lf-accent-soft)}
html body.watch-page .watch-lessons .lesson-row .lesson{
 display:grid;grid-template-columns:var(--lf-thumb) minmax(0,1fr);align-items:center;gap:var(--lf-gap);
 width:100%;min-height:0;margin:0;padding:8px 56px 8px 8px;border:0;border-radius:12px;background:transparent;text-align:left;color:var(--lf-text)
}
html body.watch-page .watch-lessons .lesson-row:not(.is-current) .lesson:hover{background:var(--lf-surface)}
html body.watch-page .watch-lessons .lesson-row .lesson::after{display:none}
html body.watch-page .watch-lessons .lesson .lesson-media .number{position:absolute;grid-column:auto;width:auto;font-size:11px}
html body.watch-page .watch-lessons .lesson .lessontext{grid-column:auto;font-size:15px;font-weight:650;line-height:1.45;letter-spacing:-.015em;word-break:keep-all;overflow-wrap:anywhere}
html body.watch-page .watch-lessons .lesson .lessontext small{display:block;margin-top:3px;font-size:12px;font-weight:600;color:var(--lf-muted)}
html body.watch-page .watch-lessons .lesson-row.is-current .lessontext small{color:var(--lf-accent)}
html body.watch-page .watch-lessons .lesson.active .lesson-media{box-shadow:0 0 0 2px var(--lf-accent)}
html body.watch-page .watch-lessons .lesson .status{position:absolute;right:16px;top:50%;transform:translateY(-50%);width:20px;grid-column:auto;font-size:15px;color:var(--lf-muted);text-align:center}
html body.watch-page .watch-lessons .lesson-row.is-done .status{color:var(--lf-accent);font-weight:800}
html body.watch-page .watch-lessons .lesson-row.is-current:not(.is-done) .status{display:none}
html body.watch-page .watch-lessons .lesson-check{position:absolute;right:8px;top:50%;transform:translateY(-50%);display:grid;place-items:center;width:44px;height:44px;padding:0;border:0;background:transparent;cursor:pointer;color:var(--lf-muted)}
html body.watch-page .watch-lessons .lesson-check::before{content:"✓";display:grid;place-items:center;width:26px;height:26px;border:1.5px solid currentColor;border-radius:50%;font-size:13px;font-weight:800;line-height:1}
html body.watch-page .watch-lessons .lesson-check:hover:not(:disabled),html body.watch-page .watch-lessons .lesson-check:focus-visible{color:var(--lf-accent)}
html body.watch-page .watch-lessons .lesson-check:disabled{opacity:.35;cursor:default}
html body.watch-page .watch-lessons .watch-unit-label{padding:0 8px;color:var(--lf-muted)}

@media(max-width:850px){
 html body.watch-page .watch-curriculum{margin:26px 0 0;padding:22px var(--lf-gutter) 28px;border-top:1px solid var(--lf-line)}
 html body.watch-page .watch-lessons .lesson-row .lesson{padding-right:56px}
 html body.watch-page .watch-lessons .lesson-row{margin-inline:-8px}
}
@media(max-width:359px){
 :root{--lf-thumb:88px;--lf-gutter:16px}
 html body.watch-page .watch-lessons .lesson .lessontext{font-size:14px}
}
@media(min-width:851px){
 html body.watch-page .watch-shell{max-width:1320px}
 html body.watch-page .watch-layout{grid-template-columns:minmax(0,1fr) 360px;gap:40px}
 html body.watch-page .watch-main{padding-inline:0}
 html body.watch-page .watch-video{border-radius:12px}
 html body.watch-page .watch-meta,html body.watch-page #watchStudy,html body.watch-page #watchStudy[data-study-mode]:not([hidden]),html body.watch-page .watch-lesson-utilities,html body.watch-page #watchStudentNoticeSlot{padding-inline:0}
 html body.watch-page .watch-lessons{max-height:calc(100dvh - 190px);overflow:auto!important}
 html body.watch-page .watch-curriculum{position:sticky;top:20px;align-self:start}
}

/* =====================================================================
   DETAIL (classes.html): photo, one promise, then intro → curriculum → guide
   ===================================================================== */
html body.pg-catalog.academy.gc-clean #detail .gp-detail-hero{box-shadow:none}
html body.pg-catalog.academy.gc-clean #detail #detailTitle{font-weight:760;letter-spacing:-.035em;line-height:1.3}
html body.pg-catalog.academy.gc-clean #detail .gp-promise{color:var(--lf-body);font-weight:500;line-height:1.6}
html body.pg-catalog.academy.gc-clean #detail .gp-hero-price strong{font-weight:760;letter-spacing:-.03em}
html body.pg-catalog.academy.gc-clean #detail .gp-course-sections{display:flex;gap:22px;margin:6px 0 0;padding:0;border:0;border-bottom:1px solid var(--lf-line);border-radius:0;background:transparent;box-shadow:none}
html body.pg-catalog.academy.gc-clean #detail .gp-course-sections a{flex:none;display:inline-flex;align-items:center;min-height:48px;padding:0;border:0;border-bottom:2px solid transparent;border-radius:0;background:transparent;font-size:14.5px;font-weight:700;color:var(--lf-muted)}
html body.pg-catalog.academy.gc-clean #detail .gp-course-sections a:hover{color:var(--lf-text)}
/* Introduction: plain reading, no cards. */
html body.pg-catalog.academy.gc-clean #detail .gs-story{display:grid;gap:26px;margin:28px 0 0;padding:0;border:0;background:transparent}
html body.pg-catalog.academy.gc-clean #detail .gs-story .gs-label{display:block;margin:0 0 8px;font-size:12.5px;font-weight:700;letter-spacing:.04em;color:var(--lf-accent);background:transparent;padding:0}
html body.pg-catalog.academy.gc-clean #detail .gs-hook h2{margin:0 0 10px;font-size:clamp(22px,5.4vw,28px);font-weight:760;line-height:1.35;letter-spacing:-.035em;color:var(--lf-text)}
html body.pg-catalog.academy.gc-clean #detail .gs-hook p{margin:0;font-size:16px;line-height:1.8;color:var(--lf-body)}
html body.pg-catalog.academy.gc-clean #detail .gs-pains{display:grid;gap:0;border-top:1px solid var(--lf-line)}
html body.pg-catalog.academy.gc-clean #detail .gs-card{padding:16px 0;border:0;border-bottom:1px solid var(--lf-line);border-radius:0;background:transparent;box-shadow:none}
html body.pg-catalog.academy.gc-clean #detail .gs-card strong{display:block;font-size:16.5px;font-weight:720;color:var(--lf-text);letter-spacing:-.02em}
html body.pg-catalog.academy.gc-clean #detail .gs-card p{margin:4px 0 0;font-size:15px;line-height:1.7;color:var(--lf-muted)}
html body.pg-catalog.academy.gc-clean #detail .gs-outcomes,html body.pg-catalog.academy.gc-clean #detail .gs-who{padding:0;border:0;border-radius:0;background:transparent;box-shadow:none}
html body.pg-catalog.academy.gc-clean #detail .gs-outcomes ul{margin:0;padding:0;list-style:none;display:grid;gap:12px}
html body.pg-catalog.academy.gc-clean #detail .gs-outcomes li{position:relative;padding-left:22px;font-size:16px;line-height:1.7;color:var(--lf-text);font-weight:600;background:none}
html body.pg-catalog.academy.gc-clean #detail .gs-outcomes li::before{content:"";position:absolute;left:0;top:.72em;width:10px;height:1.5px;background:var(--lf-accent);border:0;border-radius:0;box-shadow:none}
html body.pg-catalog.academy.gc-clean #detail .gs-outcomes li::after{display:none}
html body.pg-catalog.academy.gc-clean #detail .gs-who p{margin:0;font-size:15.5px;line-height:1.8;color:var(--lf-body)}
/* Curriculum rows share the watch page's vocabulary. */
html body.pg-catalog.academy.gc-clean #detail #lessons{border:0!important;border-radius:0!important;background:transparent!important;overflow:visible!important}
html body.pg-catalog.academy.gc-clean #detail #lessons .lesson{gap:var(--lf-gap)!important;padding:10px 4px!important;border-top:1px solid var(--lf-line)!important}
html body.pg-catalog.academy.gc-clean #detail #lessons .lesson:first-child{border-top:0!important}
html body.pg-catalog.academy.gc-clean #detail #lessons .lesson.has-thumb .no{position:relative!important;width:var(--lf-thumb)!important;aspect-ratio:16/9;height:auto!important;overflow:hidden;border-radius:var(--lf-radius);font-size:0!important}
html body.pg-catalog.academy.gc-clean #detail #lessons .lesson.has-thumb .no::before{content:attr(data-n);font-size:11px}
html body.pg-catalog.academy.gc-clean #detail #lessons .lesson .no .lesson-thumb{position:absolute;inset:0}
html body.pg-catalog.academy.gc-clean #detail #lessons .lesson:not(.has-thumb) .no::before{display:none}
html body.pg-catalog.academy.gc-clean #detail #lessons .lesson b,html body.pg-catalog.academy.gc-clean #detail #lessons .lesson.has-thumb b{font-size:15.5px!important;font-weight:680!important;line-height:1.45!important;letter-spacing:-.015em;color:var(--lf-text);word-break:keep-all}
html body.pg-catalog.academy.gc-clean #detail #lessons .lesson-access{font-size:12.5px!important;font-weight:650;color:var(--lf-accent)!important}
html body.pg-catalog.academy.gc-clean #detail #lessons a.lesson:hover{background:var(--lf-surface)!important}
/* 수강 안내: three short lines. */
html body.pg-catalog.academy.gc-clean #detail .gp-mc1-details .gp-highlight-chips{display:grid;gap:0;margin:8px 0 0;padding:0;list-style:none}
html body.pg-catalog.academy.gc-clean #detail .gp-mc1-details .gp-highlight-chip{display:block;padding:13px 0;border:0;border-top:1px solid var(--lf-line);border-radius:0;background:transparent;font-size:15px;font-weight:600;color:var(--lf-text)}
html body.pg-catalog.academy.gc-clean #detail .gp-mc1-details .gp-highlight-chip.is-rating{color:var(--lf-text)}
@media(max-width:700px){
 html body.pg-catalog.academy.gc-clean #detail #lessons .lesson.has-thumb .no{width:var(--lf-thumb)!important}
 html body.pg-catalog.academy.gc-clean #detail #lessons .lesson-access{display:none!important}
 html body.pg-catalog.academy.gc-clean #detail #lessons a.lesson::after{content:"›";flex:none;color:var(--lf-muted);font-size:18px}
}

/* =====================================================================
   MY CLASSROOM: where you stopped, one tap
   ===================================================================== */
.academy .owned-detail{display:flex;flex-direction:column}
.academy .owned-detail .owned-course-name{order:0;margin:0 0 4px;font-size:13px;font-weight:650;letter-spacing:0;line-height:1.4;color:var(--lf-muted)}
.academy .owned-detail .owned-resume-lesson{order:1;display:grid;gap:3px;margin:0}
.academy .owned-detail .owned-resume-lesson[hidden]{display:none}
.academy .owned-resume-lesson strong{font-size:clamp(21px,5.4vw,26px);font-weight:760;line-height:1.35;letter-spacing:-.035em;color:var(--lf-text);word-break:keep-all}
.academy .owned-resume-lesson span{font-size:14px;font-weight:650;color:var(--lf-accent)}
.academy .owned-detail small{order:3;margin-top:10px;font-size:12.5px;font-weight:500;color:var(--lf-muted)!important}
.academy .owned-detail .course-meter{order:2;margin:14px 0 0;height:3px;background:var(--lf-line)}
.academy .course-meter>span{background:var(--lf-accent)!important}
.academy .owned-resume-action{min-height:44px;margin-top:6px;font-size:15px;font-weight:750;color:var(--lf-accent)}
.academy .owned-thumbnail-link{border-radius:12px}
html body.watch-page .watch-lessons .lesson-row.is-done .lesson.active .status{font-size:15px;width:20px}
html body.watch-page .watch-lessons .lesson-row.is-done .lesson.active .status::before{display:none}
html body.watch-page .watch-curriculum{margin-top:18px}
html body.academy details.settingbox{padding:6px 0!important;margin-top:30px!important;border:0!important;border-top:1px solid var(--lf-line)!important;border-radius:0!important;background:transparent!important;box-shadow:none!important}
html body.academy details.settingbox>summary{display:flex;align-items:center;justify-content:space-between;min-height:48px;padding:0!important;font-size:14px;font-weight:650}
/* Detail intro overrides (the older sales sheets use !important). */
html body.pg-catalog.academy.gc-clean #detail .gs-pains{gap:0!important;margin:0}
html body.pg-catalog.academy.gc-clean #detail .gs-pains .gs-card{display:block!important;padding:16px 0!important;border:0!important;border-bottom:1px solid var(--lf-line)!important;border-radius:0!important;background:transparent!important}
html body.pg-catalog.academy.gc-clean #detail .gs-pains .gs-card strong{font-size:16.5px!important;font-weight:720!important}
html body.pg-catalog.academy.gc-clean #detail .gs-pains .gs-card p{margin:4px 0 0!important;color:var(--lf-muted)!important}
html body.pg-catalog.academy.gc-clean #detail .gs-outcomes{padding:0!important;border:0!important;border-radius:0!important;background:transparent!important}
html body.pg-catalog.academy.gc-clean #detail .gs-outcomes li{display:block;position:relative;padding-left:22px;font-size:16px;font-weight:620;line-height:1.7;color:var(--lf-text)}
html body.pg-catalog.academy.gc-clean #detail .gs-outcomes .gs-check{display:none}
html body.pg-catalog.academy.gc-clean #detail .gs-who{padding:0!important;border-radius:0!important;background:transparent!important}
html body.pg-catalog.academy.gc-clean #detail .gs-close{padding:8px 0!important;border:0!important;border-radius:0!important;background:transparent!important;box-shadow:none!important;text-align:left}
html body.pg-catalog.academy.gc-clean #detail .gp-detail-copy .gp-hero-price strong{font-size:clamp(24px,6vw,32px)!important}
/* =====================================================================
   LIST (classes.html): the photograph first, then a title and one line
   ===================================================================== */
html body.pg-catalog .cl-cover-wrap{border-radius:12px;overflow:hidden}
html body.pg-catalog .cl-card .cl-title{font-size:clamp(19px,5vw,21px);font-weight:760;letter-spacing:-.035em;line-height:1.3;color:var(--lf-text)}
html body.pg-catalog .cl-card .cl-line{font-size:15px;line-height:1.6;color:var(--lf-body)}
html body.pg-catalog .cl-card.is-soon .cl-line{color:var(--lf-muted)}
html body.pg-catalog .cl-card .cl-meta{font-size:12.5px;font-weight:500;color:var(--lf-muted)}
html body.pg-catalog .cl-card .cl-resume{display:inline-flex;align-items:center;min-height:44px;padding:0;border:0;border-radius:0;background:transparent;font-size:14.5px;font-weight:750;color:var(--lf-accent)}
html body.pg-catalog .cl-card .cl-resume::after{content:" →"}
html body.pg-catalog .cl-card .cl-resume:hover{text-decoration:underline;text-underline-offset:3px}

/* =====================================================================
   PLAYER, YouTube style (inline only; fullscreen keeps its full control bar)
   Controls sit on the video: play in the middle, time bottom-left, fullscreen bottom-right,
   a hairline progress bar on the bottom edge that grows when controls show.
   ===================================================================== */
html body.watch-page .watch-video:has(.pgv:not([data-state=idle])),
html body.watch-page .pgv:not(.fs):not(:fullscreen){--watch-control-dock:0px}
html body.watch-page .pgv:not(.fs):not(:fullscreen){--pgv-show:0}
html body.watch-page .pgv:not(.fs):not(:fullscreen):not(.clean):is(.ui,[data-state=paused],[data-state=ended],.menu-open){--pgv-show:1}

/* Before play: one round control exactly in the middle of the picture. */
html body.watch-page .pgv:not(.fs):not(:fullscreen)[data-state=idle] .pgv-start,
html body.watch-page #player.has-deck-poster .pgv:not(.fs):not(:fullscreen)[data-state=idle] .pgv-start,
html body.watch-page #player.has-deck-poster #posterPlay svg,
html body.watch-page #player #posterPlay svg{
 position:absolute;left:50%;top:50%;right:auto;bottom:auto;width:68px;height:68px;padding:0;display:grid;place-items:center;
 border-radius:50%!important;background:#00000080!important;box-shadow:0 0 0 1px #ffffff59;transform:translate(-50%,-50%)
}
html body.watch-page .pgv:not(.fs):not(:fullscreen)[data-state=idle] .pgv-start svg{width:38px;height:38px;padding:0 0 0 3px;margin:0}
html body.watch-page #player #posterPlay svg{padding:15px 12px 15px 18px;box-sizing:border-box;fill:#fff}
html body.watch-page .pgv:not(.fs):not(:fullscreen)[data-state=idle] .pgv-start:hover,html body.watch-page #player #posterPlay:hover svg{background:#000000cc!important}

/* Controls on the video */
html body.watch-page .pgv:not(.fs):not(:fullscreen) .pgv-video{height:100%}
html body.watch-page .pgv:not(.fs):not(:fullscreen):not([data-state=idle]) .pgv-bar{position:absolute;inset:0;padding:0;background:none;opacity:1;transform:none;pointer-events:none}
html body.watch-page .pgv:not(.fs):not(:fullscreen) .pgv-row{position:static;display:block;height:auto}
html body.watch-page .pgv:not(.fs):not(:fullscreen) :is(.pgv-left,.pgv-right){position:absolute;inset:0;gap:0;min-width:0;opacity:var(--pgv-show);transition:opacity .2s;pointer-events:none}
html body.watch-page .pgv:not(.fs):not(:fullscreen) .pgv-right{display:flex;justify-content:flex-end;align-items:flex-start;gap:4px;padding:6px 8px}
html body.watch-page .pgv:not(.fs):not(:fullscreen):not(.clean):is(.ui,[data-state=paused],[data-state=ended],.menu-open) :is(.pgv-left,.pgv-right)>*{pointer-events:auto}
html body.watch-page .pgv:not(.fs):not(:fullscreen) .pgv-scrim{bottom:0;opacity:var(--pgv-show);background:linear-gradient(to top,#000000b3 0%,transparent 38%),linear-gradient(to bottom,#00000066,transparent 28%),#00000033}
html body.watch-page .pgv:not(.fs):not(:fullscreen)[data-state=idle] .pgv-scrim{opacity:0;background:none}
html body.watch-page .pgv:not(.fs):not(:fullscreen) :is(.pgv-spinner,.pgv-flash){top:50%}

/* Middle cluster: back 10 s, play/pause, forward 10 s */
html body.watch-page .pgv:not(.fs):not(:fullscreen) .pgv-btn.play{position:absolute;left:50%;top:50%;width:64px;height:64px;min-width:0;padding:0;border-radius:50%;background:#0000008f;transform:translate(-50%,-50%)}
html body.watch-page .pgv:not(.fs):not(:fullscreen) .pgv-btn.play svg{width:34px;height:34px}
html body.watch-page .pgv:not(.fs):not(:fullscreen) .pgv-btn.play:active{transform:translate(-50%,-50%) scale(.92)}
html body.watch-page .pgv:not(.fs):not(:fullscreen) :is(.pgv-btn.back,.pgv-btn.fwd){display:grid!important;position:absolute;top:50%;width:48px;height:48px;min-width:0;padding:0;border-radius:50%;background:#0000008f;transform:translate(-50%,-50%)}
html body.watch-page .pgv:not(.fs):not(:fullscreen) .pgv-btn.back{left:calc(50% - 96px)}
html body.watch-page .pgv:not(.fs):not(:fullscreen) .pgv-btn.fwd{left:calc(50% + 96px)}
html body.watch-page .pgv:not(.fs):not(:fullscreen) :is(.pgv-btn.back,.pgv-btn.fwd):active{transform:translate(-50%,-50%) scale(.92)}

/* Bottom: time on the left, fullscreen on the right, hairline progress on the edge */
html body.watch-page .pgv:not(.fs):not(:fullscreen) .pgv-time{position:absolute;left:12px;right:auto;top:auto;bottom:30px;width:auto;padding:2px 10px;border-radius:99px;background:#00000073;font-size:13px;font-weight:700;line-height:22px;text-align:left}
html body.watch-page .pgv:not(.fs):not(:fullscreen) .pgv-vol{display:none}
html body.watch-page .pgv:not(.fs):not(:fullscreen) .pgv-btn.full{position:absolute;right:8px;bottom:24px;width:40px;height:40px;min-width:0;padding:0;border-radius:50%;background:#00000073}
html body.watch-page .pgv:not(.fs):not(:fullscreen) .pgv-right>.pgv-btn:not(.full){width:40px;height:40px;min-width:40px;padding:0;border-radius:50%;background:#00000073}
html body.watch-page .pgv:not(.fs):not(:fullscreen) .pgv-rate{font-size:13px}
html body.watch-page .pgv:not(.fs):not(:fullscreen) .pgv-seek{position:absolute;left:0;right:0;bottom:0;height:28px;margin:0;z-index:1;pointer-events:none}
html body.watch-page .pgv:not(.fs):not(:fullscreen):not(.clean):is(.ui,[data-state=paused],[data-state=ended],.menu-open) .pgv-seek{pointer-events:auto}
html body.watch-page .pgv:not(.fs):not(:fullscreen) .pgv-seek::before,
html body.watch-page .pgv:not(.fs):not(:fullscreen) :is(.pgv-buffered,.pgv-played){top:auto;bottom:0;height:3px;margin:0;border-radius:0}
html body.watch-page .pgv:not(.fs):not(:fullscreen) .pgv-seek::before{background:#ffffff40}
html body.watch-page .pgv:not(.fs):not(:fullscreen) .pgv-buffered{background:#ffffff66}
html body.watch-page .pgv:not(.fs):not(:fullscreen):not(.clean):is(.ui,[data-state=paused]) .pgv-seek::before,
html body.watch-page .pgv:not(.fs):not(:fullscreen):not(.clean):is(.ui,[data-state=paused]) :is(.pgv-buffered,.pgv-played){height:4px}
html body.watch-page .pgv:not(.fs):not(:fullscreen) .pgv-knob{top:auto;bottom:-4px;width:12px;height:12px;margin:0 0 0 -6px;transform:scale(0)}
html body.watch-page .pgv:not(.fs):not(:fullscreen):not(.clean):is(.ui,[data-state=paused],[data-state=ended],.menu-open) .pgv-knob{transform:scale(1)}
html body.watch-page .pgv:not(.fs):not(:fullscreen) .pgv-hover{bottom:34px}
html body.watch-page .pgv:not(.fs):not(:fullscreen) .pgv-menu{bottom:60px;right:8px;max-height:calc(100% - 76px)}

@media(min-width:851px){
 html body.watch-page .pgv:not(.fs):not(:fullscreen) .pgv-vol{display:flex;position:absolute;left:8px;bottom:26px}
 html body.watch-page .pgv:not(.fs):not(:fullscreen) .pgv-time{left:56px}
}
@media(prefers-reduced-motion:reduce){html body.watch-page .pgv:not(.fs):not(:fullscreen) :is(.pgv-left,.pgv-right){transition:none}}

/* Phones: the video runs edge to edge with square corners, like a native player. */
@media(max-width:850px){
 html body.watch-page.watch-page .watch-video,html body.watch-page .watch-video .pgv,html body.watch-page #lessonPoster{border-radius:0}
 html body.watch-page #lessonNote{min-height:0;height:auto}
 html body.watch-page #watchStudy,html body.watch-page #watchStudy[data-study-mode]:not([hidden]){margin-top:22px;padding-top:18px}
}

/* Controls fade in and out smoothly, YouTube style; the picture never jumps. */
html body.watch-page .pgv:not(.fs):not(:fullscreen) :is(.pgv-left,.pgv-right){transition:opacity .28s cubic-bezier(.2,.7,.2,1)}
html body.watch-page .pgv:not(.fs):not(:fullscreen) .pgv-scrim{transition:opacity .28s cubic-bezier(.2,.7,.2,1)}
html body.watch-page .pgv:not(.fs):not(:fullscreen) .pgv-seek::before,
html body.watch-page .pgv:not(.fs):not(:fullscreen) :is(.pgv-buffered,.pgv-played){transition:height .2s ease}
html body.watch-page .pgv:not(.fs):not(:fullscreen) .pgv-knob{transition:transform .2s cubic-bezier(.2,.7,.2,1)}
html body.watch-page .pgv:not(.fs):not(:fullscreen)[data-state=idle] .pgv-start{transition:opacity .2s}
html body.watch-page .pgv.starting .pgv-start{opacity:0;pointer-events:none}
@media(prefers-reduced-motion:reduce){html body.watch-page .pgv:not(.fs):not(:fullscreen) :is(.pgv-left,.pgv-right,.pgv-scrim){transition:none}}

/* Tapping a paused picture clears the controls; the hairline progress stays, as on YouTube. */
html body.watch-page .pgv.clean:not(.fs):not(:fullscreen):not([data-state=ended]) :is(.pgv-left,.pgv-right,.pgv-scrim){opacity:0}
html body.watch-page .pgv.clean:not(.fs):not(:fullscreen) .pgv-btn{pointer-events:none}

/* =====================================================================
   PREMIUM POLISH: glass controls, soft depth, quiet loading
   ===================================================================== */
html body.watch-page{--lf-glass:#0f1216a3;--lf-glass-line:#ffffff24;--lf-ease:cubic-bezier(.22,.8,.24,1)}
/* Controls: frosted glass discs, thin light edge */
html body.watch-page .pgv:not(.fs):not(:fullscreen) :is(.pgv-btn.play,.pgv-btn.back,.pgv-btn.fwd,.pgv-btn.full,.pgv-btn.vol,.pgv-right>.pgv-btn,.pgv-time){
 background:var(--lf-glass)!important;box-shadow:inset 0 0 0 1px var(--lf-glass-line),0 6px 18px #0000004d;
 -webkit-backdrop-filter:blur(14px) saturate(1.25);backdrop-filter:blur(14px) saturate(1.25)}
html body.watch-page .pgv:not(.fs):not(:fullscreen) .pgv-btn.play{width:68px;height:68px}
html body.watch-page .pgv:not(.fs):not(:fullscreen) .pgv-btn.play svg{width:32px;height:32px}
html body.watch-page .pgv:not(.fs):not(:fullscreen) :is(.pgv-btn.back,.pgv-btn.fwd){width:46px;height:46px}
html body.watch-page .pgv:not(.fs):not(:fullscreen) :is(.pgv-btn.back,.pgv-btn.fwd) svg{width:22px;height:22px}
html body.watch-page .pgv:not(.fs):not(:fullscreen) .pgv-btn.back{left:calc(50% - 98px)}
html body.watch-page .pgv:not(.fs):not(:fullscreen) .pgv-btn.fwd{left:calc(50% + 98px)}
html body.watch-page .pgv:not(.fs):not(:fullscreen) .pgv-time{padding:0 12px;font-size:12.5px;font-weight:650;letter-spacing:.02em;line-height:28px;font-variant-numeric:tabular-nums}
/* They arrive with a small swell as they fade, and leave the same way */
html body.watch-page .pgv:not(.fs):not(:fullscreen) :is(.pgv-btn.play,.pgv-btn.back,.pgv-btn.fwd){scale:.9;transition:scale .32s var(--lf-ease),transform .2s var(--lf-ease),background .2s}
html body.watch-page .pgv:not(.fs):not(:fullscreen):not(.clean):is(.ui,[data-state=paused],[data-state=ended],.menu-open) :is(.pgv-btn.play,.pgv-btn.back,.pgv-btn.fwd){scale:1}
html body.watch-page .pgv:not(.fs):not(:fullscreen) :is(.pgv-left,.pgv-right){transition:opacity .34s var(--lf-ease)}
html body.watch-page .pgv:not(.fs):not(:fullscreen) .pgv-scrim{transition:opacity .4s var(--lf-ease);background:linear-gradient(to top,#000000b8 0%,#00000055 28%,transparent 52%),linear-gradient(to bottom,#00000073 0%,transparent 34%),#00000026}
/* Progress: a hairline that blooms, with a soft glow on the played part */
html body.watch-page .pgv:not(.fs):not(:fullscreen) .pgv-played{box-shadow:0 0 12px var(--lf-accent);border-radius:0 3px 3px 0}
html body.watch-page .pgv:not(.fs):not(:fullscreen) .pgv-knob{background:#fff;box-shadow:0 0 0 4px #ffffff33,0 2px 8px #0008;width:13px;height:13px}
/* Speed / quality menu */
html body.watch-page .pgv .pgv-menu{background:#10131ad9;-webkit-backdrop-filter:blur(18px) saturate(1.3);backdrop-filter:blur(18px) saturate(1.3);border:1px solid #ffffff1f;border-radius:16px;box-shadow:0 18px 40px #0000008c}
html body.watch-page .pgv .pgv-menu .pgv-item{border-radius:10px;font-weight:600;letter-spacing:-.01em}
/* Stage: a quiet lift under the picture */
html body.watch-page .watch-video{box-shadow:0 26px 50px -30px #0b0d1299,0 2px 0 #00000014;background:#0b0d10}
@media(min-width:851px){html body.watch-page .watch-video{box-shadow:0 34px 60px -34px #0b0d12a6,0 0 0 1px #00000012}}
/* Loading: no label, a slim ring on a deep gradient (the message appears only if something goes wrong) */
html body.watch-page .watch-placeholder{background:radial-gradient(120% 90% at 50% 40%,#1a1f27 0%,#0c0e12 70%)}
html body.watch-page .watch-placeholder:has(#playerSpinner:not([hidden])) #videoHelp{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
html body.watch-page .watch-spinner{width:34px;height:34px;border-width:2px;border-color:#ffffff22;border-top-color:var(--lf-accent)}
/* Typography: a little more air and a firmer hierarchy */
html body.watch-page #lessonTitle{font-weight:780;letter-spacing:-.04em}
html body.watch-page .watch-lesson-context{font-size:12.5px;font-weight:700;letter-spacing:.06em}
html body.watch-page #studyPoints li{margin-bottom:14px}
html body.watch-page .watch-curriculum h2{font-size:17px}
/* Curriculum: a thin accent edge on the current lesson, calmer thumbnails */
html body.watch-page .watch-lessons .lesson-row{transition:background .25s var(--lf-ease)}
html body.watch-page .watch-lessons .lesson-row.is-current::before{content:"";position:absolute;left:0;top:14px;bottom:14px;width:3px;border-radius:0 3px 3px 0;background:var(--lf-accent)}
html body.watch-page .watch-lessons .lesson-media{box-shadow:0 1px 0 #0000001f,0 8px 16px -10px #0000008c}
html body.watch-page .watch-lessons .lesson.active .lesson-media{box-shadow:0 0 0 2px var(--lf-accent),0 10px 20px -10px #0000008c}
html[data-pg-theme=dark] body.watch-page .watch-video{box-shadow:0 30px 60px -34px #000000cc,0 0 0 1px #ffffff12}
@media(prefers-reduced-motion:reduce){html body.watch-page .pgv:not(.fs):not(:fullscreen) :is(.pgv-btn.play,.pgv-btn.back,.pgv-btn.fwd){transition:none;scale:1}}
html body.watch-page .pgv:not(.fs):not(:fullscreen) .pgv-btn.vol{width:34px;height:34px;min-width:0;padding:0;border-radius:50%}

/* =====================================================================
   MINI PLAYER (picture keeps playing while you read; tap to return)
   ===================================================================== */
html body.watch-page #player[data-out="1"] .pgv:not([data-state=idle]){
 position:fixed;inset:auto;z-index:70;right:max(12px,env(safe-area-inset-right));bottom:max(14px,calc(env(safe-area-inset-bottom) + 8px));
 width:min(52vw,260px);height:auto;aspect-ratio:16/9;border-radius:14px;overflow:hidden;
 box-shadow:0 18px 40px -10px #000000b3,0 0 0 1px #ffffff1f;cursor:pointer;animation:lf-dock .34s var(--lf-ease,cubic-bezier(.22,.8,.24,1)) both}
@keyframes lf-dock{from{opacity:0;transform:translateY(14px) scale(.96)}to{opacity:1;transform:none}}
html body.watch-page #player[data-out="1"] .pgv .pgv-video{height:100%!important}
html body.watch-page #player[data-out="1"] .pgv{--pgv-show:1}
html body.watch-page #player[data-out="1"] .pgv :is(.pgv-right,.pgv-time,.pgv-vol,.pgv-btn.back,.pgv-btn.fwd,.pgv-hover,.pgv-menu,.pgv-knob,.pgv-end){display:none!important}
html body.watch-page #player[data-out="1"] .pgv .pgv-scrim{opacity:1;background:linear-gradient(to top,#0009,transparent 60%)}
html body.watch-page #player[data-out="1"] .pgv .pgv-btn.play{left:auto;right:8px;top:auto;bottom:10px;width:40px;height:40px;transform:none;scale:1;opacity:1;pointer-events:auto}
html body.watch-page #player[data-out="1"] .pgv .pgv-btn.play svg{width:20px;height:20px}
html body.watch-page #player[data-out="1"] .pgv .pgv-seek{height:14px}
@media(min-width:851px){html body.watch-page #player[data-out="1"] .pgv:not([data-state=idle]){width:340px;right:24px;bottom:24px}}
@media(prefers-reduced-motion:reduce){html body.watch-page #player[data-out="1"] .pgv:not([data-state=idle]){animation:none}}
/* The dock must sit above the curriculum rows it floats over (both paint and taps). */
html body.watch-page .watch-main:has(#player[data-out="1"]){position:relative;z-index:80}
html body.watch-page #player[data-out="1"]{position:relative;z-index:80}

/* Safari clips (or hides) fixed descendants of a clipping/isolated ancestor: free every ancestor while docked. */
html body.watch-page #player[data-out="1"],html body.watch-page #player[data-out="1"] #playerMount{overflow:visible!important;contain:none!important;isolation:auto!important;transform:none!important;filter:none!important;content-visibility:visible!important;border-radius:0!important;clip-path:none!important}
html body.watch-page #player[data-out="1"] .pgv:not([data-state=idle]){contain:none;isolation:auto;-webkit-transform:translate3d(0,0,0);transform:translate3d(0,0,0);height:calc(min(52vw,260px) * 9 / 16);animation:none}
@media(min-width:851px){html body.watch-page #player[data-out="1"] .pgv:not([data-state=idle]){height:calc(340px * 9 / 16)}}
html body.watch-page #player[data-out="1"] .pgv .pgv-video{width:100%;height:100%!important;object-fit:cover}
/* The picture-in-picture control must exist on phones too (the base sheet hides it in narrow players). */
html body.watch-page .pgv:not(.fs):not(:fullscreen) .pgv-btn.pip:not([hidden]){display:grid!important}
html body.watch-page .pgv .pgv-btn.pip.on{background:var(--lf-accent)!important;color:#07130e}

/* ±10 s: bare icons, no disc, ring or glass (like YouTube); a soft shadow keeps them legible on any frame. */
html body.watch-page .pgv:not(.fs):not(:fullscreen) :is(.pgv-btn.back,.pgv-btn.fwd){
 background:transparent!important;box-shadow:none!important;border:0!important;
 -webkit-backdrop-filter:none!important;backdrop-filter:none!important;width:56px;height:56px}
html body.watch-page .pgv:not(.fs):not(:fullscreen) :is(.pgv-btn.back,.pgv-btn.fwd) svg{width:32px;height:32px;filter:drop-shadow(0 1px 3px #000000b3) drop-shadow(0 0 10px #00000066)}
html body.watch-page .pgv:not(.fs):not(:fullscreen) :is(.pgv-btn.back,.pgv-btn.fwd):active svg{opacity:.7}
html body.watch-page .pgv:not(.fs):not(:fullscreen) .pgv-btn.back{left:calc(50% - 104px)}
html body.watch-page .pgv:not(.fs):not(:fullscreen) .pgv-btn.fwd{left:calc(50% + 104px)}

/* Centre play/pause: bare icon too. Smooth, springy press feedback; the icon pops when it changes. */
html body.watch-page .pgv:not(.fs):not(:fullscreen) .pgv-btn.play{
 background:transparent!important;box-shadow:none!important;border:0!important;
 -webkit-backdrop-filter:none!important;backdrop-filter:none!important;width:76px;height:76px}
html body.watch-page .pgv:not(.fs):not(:fullscreen) .pgv-btn.play svg{width:46px;height:46px;filter:drop-shadow(0 2px 6px #000000b3) drop-shadow(0 0 14px #00000066);animation:lf-pop .3s var(--lf-ease)}
@keyframes lf-pop{from{opacity:0;transform:scale(.72)}60%{opacity:1}to{opacity:1;transform:none}}
/* a soft halo appears under the finger and fades, so the tap is acknowledged without a permanent disc */
html body.watch-page .pgv:not(.fs):not(:fullscreen) :is(.pgv-btn.play,.pgv-btn.back,.pgv-btn.fwd)::after{
 content:"";position:absolute;inset:6px;border-radius:50%;background:#ffffff2e;opacity:0;transform:scale(.55);pointer-events:none;
 transition:opacity .38s var(--lf-ease),transform .38s var(--lf-ease)}
html body.watch-page .pgv:not(.fs):not(:fullscreen) :is(.pgv-btn.play,.pgv-btn.back,.pgv-btn.fwd):active::after{opacity:1;transform:scale(1);transition-duration:.08s}
html body.watch-page .pgv:not(.fs):not(:fullscreen) :is(.pgv-btn.play,.pgv-btn.back,.pgv-btn.fwd){position:absolute;overflow:visible}
html body.watch-page .pgv:not(.fs):not(:fullscreen) :is(.pgv-btn.play,.pgv-btn.back,.pgv-btn.fwd) svg{transition:transform .32s cubic-bezier(.34,1.56,.64,1),opacity .2s}
html body.watch-page .pgv:not(.fs):not(:fullscreen) .pgv-btn.play:active svg{transform:scale(.86)}
html body.watch-page .pgv:not(.fs):not(:fullscreen) .pgv-btn.back:active svg{transform:rotate(-24deg) scale(.9)}
html body.watch-page .pgv:not(.fs):not(:fullscreen) .pgv-btn.fwd:active svg{transform:rotate(24deg) scale(.9)}
html body.watch-page .pgv:not(.fs):not(:fullscreen) .pgv-btn.play:active{transform:translate(-50%,-50%)}
/* The docked mini player is small and busy: it keeps a quiet disc behind its one button. */
html body.watch-page #player[data-out="1"] .pgv .pgv-btn.play{background:#0b0d10a6!important;box-shadow:inset 0 0 0 1px #ffffff29!important;width:40px;height:40px}
html body.watch-page #player[data-out="1"] .pgv .pgv-btn.play svg{width:22px;height:22px;filter:none;animation:none}
@media(prefers-reduced-motion:reduce){html body.watch-page .pgv :is(.pgv-btn.play,.pgv-btn.back,.pgv-btn.fwd) svg{animation:none;transition:none}html body.watch-page .pgv :is(.pgv-btn.play,.pgv-btn.back,.pgv-btn.fwd)::after{transition:none}}

/* =====================================================================
   PC WATCH (>=1000px): a calm studio. Video first and large, the reading beside the notes, the curriculum a quiet card.
   ===================================================================== */
@media(min-width:1000px){
 html body.watch-page .watch-shell{max-width:1560px;padding:34px 56px 88px}
 html body.watch-page .watch-layout{grid-template-columns:minmax(0,1fr) 396px;gap:56px;align-items:start}
 html body.watch-page .watch-video{border-radius:18px;overflow:hidden}
 html body.watch-page .watch-video .pgv{border-radius:18px}

 /* Circle, not oval: every round control is a true circle on the same baseline. */
 html body.watch-page .pgv:not(.fs):not(:fullscreen) .pgv-vol{display:flex;align-items:center;position:absolute;left:14px;bottom:22px;gap:0;height:40px;border-radius:999px;background:var(--lf-glass);box-shadow:inset 0 0 0 1px var(--lf-glass-line),0 6px 18px #0000004d;-webkit-backdrop-filter:blur(14px) saturate(1.25);backdrop-filter:blur(14px) saturate(1.25);overflow:hidden;transition:width .3s var(--lf-ease)}
 html body.watch-page .pgv:not(.fs):not(:fullscreen) .pgv-vol .pgv-btn.vol{width:40px;height:40px;min-width:40px;padding:0;border-radius:50%;background:transparent!important;box-shadow:none!important;-webkit-backdrop-filter:none!important;backdrop-filter:none!important}
 html body.watch-page .pgv:not(.fs):not(:fullscreen) .pgv-vol .pgv-volrange{width:0;margin:0;opacity:0;transition:width .3s var(--lf-ease),opacity .2s,margin .3s var(--lf-ease)}
 html body.watch-page .pgv:not(.fs):not(:fullscreen) .pgv-vol:hover .pgv-volrange,html body.watch-page .pgv:not(.fs):not(:fullscreen) .pgv-vol:focus-within .pgv-volrange{width:76px;margin:0 14px 0 2px;opacity:1}
 html body.watch-page .pgv:not(.fs):not(:fullscreen) .pgv-time{left:auto;bottom:22px;height:40px;line-height:40px;padding:0 16px;font-size:13px;margin-left:0}
 html body.watch-page .pgv:not(.fs):not(:fullscreen) .pgv-vol+.pgv-time{left:62px}
 html body.watch-page .pgv:not(.fs):not(:fullscreen) .pgv-btn.full{right:14px;bottom:22px;width:40px;height:40px}
 html body.watch-page .pgv:not(.fs):not(:fullscreen) .pgv-right{padding:14px;gap:8px}
 html body.watch-page .pgv:not(.fs):not(:fullscreen) .pgv-right>.pgv-btn{width:40px;height:40px;min-width:40px;border-radius:50%}
 html body.watch-page .pgv:not(.fs):not(:fullscreen) .pgv-rate{width:auto;min-width:40px;padding:0 12px;border-radius:999px!important;font-size:13px;font-weight:700}
 /* On a large picture the centre cluster is larger and farther apart. */
 html body.watch-page .pgv:not(.fs):not(:fullscreen) .pgv-btn.play{width:92px;height:92px}
 html body.watch-page .pgv:not(.fs):not(:fullscreen) .pgv-btn.play svg{width:56px;height:56px}
 html body.watch-page .pgv:not(.fs):not(:fullscreen) :is(.pgv-btn.back,.pgv-btn.fwd){width:68px;height:68px}
 html body.watch-page .pgv:not(.fs):not(:fullscreen) :is(.pgv-btn.back,.pgv-btn.fwd) svg{width:40px;height:40px}
 html body.watch-page .pgv:not(.fs):not(:fullscreen) .pgv-btn.back{left:calc(50% - 150px)}
 html body.watch-page .pgv:not(.fs):not(:fullscreen) .pgv-btn.fwd{left:calc(50% + 150px)}
 html body.watch-page .pgv:not(.fs):not(:fullscreen) .pgv-seek{height:32px}
 html body.watch-page .pgv:not(.fs):not(:fullscreen) :is(.pgv-seek::before,.pgv-buffered,.pgv-played){height:4px}
 html body.watch-page .pgv:not(.fs):not(:fullscreen):not(.clean):is(.ui,[data-state=paused]) .pgv-seek:hover::before,
 html body.watch-page .pgv:not(.fs):not(:fullscreen):not(.clean):is(.ui,[data-state=paused]) .pgv-seek:hover :is(.pgv-buffered,.pgv-played){height:6px}

 /* Title block */
 html body.watch-page .watch-meta{padding-top:26px}
 html body.watch-page .watch-lesson-context{font-size:13.5px;margin-bottom:8px}
 html body.watch-page #lessonTitle{font-size:clamp(30px,2.4vw,40px);line-height:1.25;letter-spacing:-.045em}
 html body.watch-page #chapterIndex{margin-top:10px;font-size:13.5px}

 /* Reading beside the notes */
 html body.watch-page #watchStudy,html body.watch-page #watchStudy[data-study-mode]:not([hidden]){margin-top:30px;padding-top:28px;display:grid;grid-template-columns:minmax(0,1fr) minmax(260px,320px);column-gap:56px;align-items:start}
 html body.watch-page #watchStudy .watch-study-heading{grid-column:1 / -1;margin-bottom:18px}
 html body.watch-page #studySummary{max-width:none}
 html body.watch-page #studyLead{font-size:22px;line-height:1.5}
 html body.watch-page #studyPoints{font-size:16.5px;margin-top:20px}
 html body.watch-page .watch-notes{max-width:none;margin:0;padding:22px 24px;border:1px solid var(--lf-line);border-radius:18px;background:var(--lf-bg);position:sticky;top:24px}
 html body.watch-page #lessonNote{min-height:112px;font-size:15px}
 html body.watch-page .watch-lesson-utilities{margin-top:34px}

 /* Curriculum: a quiet card that scrolls on its own and stays in view */
 html body.watch-page .watch-curriculum{position:sticky;top:24px;align-self:start;padding:18px 14px 14px;background:var(--lf-bg);border:1px solid var(--lf-line);border-radius:22px;box-shadow:0 24px 50px -36px #0b0d1266}
 html body.watch-page .watch-curriculum .watch-list-head{padding:2px 8px 12px}
 html body.watch-page .watch-curriculum h2{font-size:18px}
 html body.watch-page .watch-lessons{max-height:calc(100dvh - 170px);overflow:auto!important;padding:2px;scrollbar-width:thin;scrollbar-color:var(--lf-line) transparent;scroll-behavior:smooth}
 html body.watch-page .watch-lessons .lesson-row{margin-inline:0}
 html body.watch-page .watch-lessons .lesson .lessontext{font-size:15px}
 html[data-pg-theme=dark] body.watch-page .watch-curriculum{box-shadow:0 24px 50px -30px #000000cc}
 /* Header: same width as the page so the logo and menu line up with the content */
 html body.watch-page header.watch-header.pg-site-header{padding-inline:max(56px,calc((100vw - 1560px) / 2 + 56px))!important}
}
@media(min-width:1000px) and (max-width:1279px){
 html body.watch-page{--lf-thumb:104px;--lf-gap:12px}
 html body.watch-page .watch-lessons .lesson .lessontext{font-size:14.5px}
 html body.watch-page .watch-layout{grid-template-columns:minmax(0,1fr) 340px;gap:36px}
 html body.watch-page #watchStudy,html body.watch-page #watchStudy[data-study-mode]:not([hidden]){display:block}
 html body.watch-page .watch-notes{margin-top:26px;position:static}
 html body.watch-page .watch-shell{padding-inline:32px}
 html body.watch-page header.watch-header.pg-site-header{padding-inline:32px!important}
}
@media(min-width:1000px) and (hover:hover){
 html body.watch-page .watch-lessons .lesson-row:not(.is-current) .lesson:hover .lesson-media{transform:translateY(-1px);box-shadow:0 12px 22px -10px #00000080}
 html body.watch-page .watch-lessons .lesson-media{transition:transform .25s var(--lf-ease),box-shadow .25s var(--lf-ease)}
}

/* =====================================================================
   PC, edge to edge: the picture and the list use the whole window (like YouTube),
   a quiet header without rules, the profile at the top right.
   ===================================================================== */
@media(min-width:1000px){
 html body.watch-page .watch-shell{max-width:none;padding:22px 28px 88px}
 html body.watch-page .watch-layout{grid-template-columns:minmax(0,1fr) clamp(420px,27vw,540px);gap:40px;justify-content:stretch}
 html body.watch-page header.watch-header.pg-site-header{padding-inline:28px!important;border-bottom:0!important}
 html body.watch-page #lessonTitle{font-size:clamp(22px,1.55vw,29px);line-height:1.3;letter-spacing:-.035em;font-weight:750}
 html body.watch-page .watch-meta{padding-top:20px}
 html body.watch-page .watch-lessons{max-height:calc(100dvh - 150px)}
}
@media(min-width:1500px){
 html body.watch-page{--lf-thumb:156px;--lf-gap:16px}
 html body.watch-page .watch-curriculum{padding:18px 12px 12px}
 html body.watch-page .watch-lessons .lesson .lessontext{font-size:15.5px;line-height:1.4;letter-spacing:-.02em;word-break:keep-all}
 html body.watch-page .watch-lessons .lesson .lesson-media .number{font-size:12px;left:8px;top:8px}
}
/* No rule under the header and no coloured edge on the current lesson: the tint says it. */
html body.watch-page .watch-header{border-bottom:0}
html body.watch-page .watch-lessons .lesson-row.is-current::before{display:none}

/* ---------- Profile button (top right) ---------- */
html body.watch-page .watch-header .topnav{display:flex;align-items:center;gap:6px}
.watch-profile-wrap{position:relative}
.watch-profile{width:36px;height:36px;padding:0;border:0;border-radius:50%;overflow:hidden;display:grid;place-items:center;cursor:pointer;color:#fff;font:700 15px var(--lf-font);box-shadow:0 0 0 1px #00000014;transition:transform .2s var(--lf-ease,ease),box-shadow .2s}
.watch-profile img,.wp-avatar img{width:100%;height:100%;object-fit:cover;display:block}
.watch-profile:hover{transform:scale(1.06);box-shadow:0 0 0 3px var(--lf-accent-soft)}
.watch-profile:focus-visible{outline:2px solid var(--lf-accent);outline-offset:2px}
.watch-profile-pop{position:absolute;right:0;top:calc(100% + 10px);z-index:90;width:min(300px,calc(100vw - 24px));padding:8px;background:var(--lf-bg);color:var(--lf-text);border:1px solid var(--lf-line);border-radius:16px;box-shadow:0 22px 44px -18px #0b0d1266;animation:lf-pop-in .22s var(--lf-ease,ease) both}
@keyframes lf-pop-in{from{opacity:0;transform:translateY(-6px) scale(.98)}to{opacity:1;transform:none}}
.watch-profile-pop[hidden]{display:none}
.wp-head{display:flex;align-items:center;gap:12px;padding:10px 10px 14px;margin-bottom:6px;border-bottom:1px solid var(--lf-line)}
.wp-head>div{min-width:0}.wp-head strong{display:block;font-size:15px;font-weight:700}
.wp-head small{display:block;margin-top:2px;font-size:12.5px;color:var(--lf-muted);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.wp-avatar{flex:none;width:44px;height:44px;border-radius:50%;overflow:hidden;display:grid;place-items:center;color:#fff;font:700 18px var(--lf-font)}
.watch-profile-pop a{display:flex;align-items:center;min-height:44px;padding:0 12px;border-radius:10px;font-size:14.5px;font-weight:600;color:var(--lf-text);text-decoration:none}
.watch-profile-pop a:hover{background:var(--lf-surface)}
@media(prefers-reduced-motion:reduce){.watch-profile-pop{animation:none}.watch-profile{transition:none}}

/* ---------- Description box (like a video description) ---------- */
html body.watch-page #watchStudy,html body.watch-page #watchStudy[data-study-mode]:not([hidden]){border-top:0}
html body.watch-page #studySummary{background:var(--lf-surface);border-radius:16px;padding:18px 20px 8px;max-width:none}
html body.watch-page #studySummary:hover{background:color-mix(in srgb,var(--lf-surface) 86%,var(--lf-text) 5%)}
html body.watch-page .watch-study-heading{margin:0 0 12px;font-size:13px;letter-spacing:.02em;color:var(--lf-text);font-weight:750}
html body.watch-page #studyLead{font-size:clamp(16px,1.1vw,19px)}
html body.watch-page #studyPoints{margin-top:12px}
html body.watch-page #studyPoints li{margin-bottom:10px}
@media(min-width:1000px){
 html body.watch-page #watchStudy,html body.watch-page #watchStudy[data-study-mode]:not([hidden]){margin-top:22px;padding-top:0;grid-template-columns:minmax(0,1fr) minmax(250px,320px);column-gap:28px}
 html body.watch-page #watchStudy .watch-study-heading{grid-column:1 / -1;margin-bottom:12px}
 html body.watch-page .watch-notes{padding:18px 20px;border-radius:16px;background:var(--lf-bg)}
}

/* ---------- Questions (like comments) ---------- */
.watch-qa{margin:34px 0 0;padding:0 var(--lf-gutter,20px)}
@media(min-width:1000px){.watch-qa{padding:0}}
.watch-qa[hidden]{display:none}
.watch-qa-title{margin:0 0 18px;font-size:19px;font-weight:760;letter-spacing:-.02em;color:var(--lf-text)}
.watch-qa-title #qaCount{margin-left:6px;color:var(--lf-muted);font-weight:600}
.watch-qa-form{display:flex;gap:14px;align-items:flex-start;margin-bottom:26px}
.qa-field{flex:1;min-width:0}
.qa-avatar{flex:none;width:40px;height:40px;border-radius:50%;display:grid;place-items:center;color:#fff;font:700 16px var(--lf-font);background:var(--lf-muted)}
#qaInput{display:block;width:100%;min-height:40px;max-height:180px;padding:9px 0;border:0;border-bottom:1px solid var(--lf-line);border-radius:0;background:transparent;color:var(--lf-text);font:400 15.5px/1.6 var(--lf-font);resize:none;overflow:hidden;transition:border-color .2s}
#qaInput:focus{outline:0;border-bottom:2px solid var(--lf-text);padding-bottom:8px}
#qaInput::placeholder{color:var(--lf-muted)}
.qa-actions{display:flex;align-items:center;justify-content:flex-end;gap:8px;margin-top:10px}
.qa-actions[hidden]{display:none}
.qa-actions #qaLeft{margin-right:auto;font-size:12px;color:var(--lf-muted);font-variant-numeric:tabular-nums}
.qa-actions button{min-height:38px;padding:0 18px;border:0;border-radius:999px;font:650 14px var(--lf-font);cursor:pointer;transition:background .2s,opacity .2s}
#qaCancel{background:transparent;color:var(--lf-text)}#qaCancel:hover{background:var(--lf-surface)}
#qaSubmit{background:var(--lf-accent);color:#fff}#qaSubmit:disabled{background:var(--lf-surface);color:var(--lf-muted);cursor:default}
html[data-pg-theme=dark] #qaSubmit:not(:disabled){color:#07130e}
#qaStatus{margin:8px 0 0;font-size:12.5px;color:var(--lf-muted)}#qaStatus:empty{display:none}
.watch-qa-list{list-style:none;margin:0;padding:0;display:grid;gap:22px}
.qa-item{display:flex;gap:14px;align-items:flex-start;animation:lf-pop-in .3s var(--lf-ease,ease) both}
.qa-body{min-width:0;flex:1}
.qa-head{display:flex;flex-wrap:wrap;align-items:center;gap:4px 8px;font-size:13px;color:var(--lf-muted)}
.qa-head strong{font-size:13.5px;font-weight:700;color:var(--lf-text)}
.qa-badge{padding:1px 8px;border-radius:999px;background:var(--lf-accent-soft);color:var(--lf-accent);font-size:11.5px;font-weight:700}
.qa-text{margin:4px 0 0;font-size:15.5px;line-height:1.7;color:var(--lf-body);white-space:pre-wrap;overflow-wrap:anywhere;word-break:keep-all}
.qa-del{margin:6px 0 0 -8px;min-height:36px;padding:0 8px;border:0;border-radius:8px;background:transparent;color:var(--lf-muted);font:600 13px var(--lf-font);cursor:pointer}
.qa-del:hover{background:var(--lf-surface);color:var(--lf-text)}
.watch-qa-empty{margin:4px 0 0;font-size:14.5px;color:var(--lf-muted)}
@media(prefers-reduced-motion:reduce){.qa-item{animation:none}}

/* Theatre height: the picture never grows taller than the window leaves room for; the title and the description stay in view.
   A wide window with a short height gets quiet side bars, as on YouTube. */
@media(min-width:1000px){
 html body.watch-page .watch-video{max-height:calc(100dvh - 150px);min-height:360px}
 html body.watch-page .watch-video .watch-poster{object-fit:contain;background:#0b0d10}
}

/* "소리 켜기": shown only when the browser made us start muted */
.pgv-unmute{position:absolute;left:50%;top:18px;z-index:6;display:inline-flex;align-items:center;gap:8px;height:40px;padding:0 16px 0 12px;border:0;border-radius:999px;background:#0b0d10b3;color:#fff;font:700 14px/1 system-ui,-apple-system,"Apple SD Gothic Neo","Noto Sans KR",sans-serif;cursor:pointer;transform:translateX(-50%);box-shadow:inset 0 0 0 1px #ffffff29,0 8px 22px #0006;-webkit-backdrop-filter:blur(14px);backdrop-filter:blur(14px);animation:lf-unmute .4s var(--lf-ease,ease) both}
.pgv-unmute[hidden]{display:none}
.pgv-unmute svg{width:20px;height:20px}
.pgv-unmute:hover{background:#0b0d10e6}
@keyframes lf-unmute{from{opacity:0;transform:translate(-50%,-8px)}to{opacity:1;transform:translateX(-50%)}}
html body.watch-page #player[data-out="1"] .pgv .pgv-unmute{display:none!important}
@media(prefers-reduced-motion:reduce){.pgv-unmute{animation:none}}

/* ---------- Less clutter: no "01 / 10", no resume line ---------- */
html body.watch-page #chapterIndex,html body.watch-page #resumeInfo[hidden]{display:none}
html body.watch-page .watch-meta{padding-bottom:2px}

/* ---------- Wide PC: description beside the video (tab "설명") ---------- */
.watch-side-tabs{display:flex;gap:4px;padding:4px;margin:0 8px 14px;background:var(--lf-surface);border-radius:12px}
.watch-side-tabs[hidden]{display:none}
.watch-side-tabs button{flex:1;min-height:38px;border:0;border-radius:9px;background:transparent;color:var(--lf-muted);font:650 14px var(--lf-font);cursor:pointer;transition:background .2s var(--lf-ease,ease),color .2s,box-shadow .2s}
.watch-side-tabs button[aria-selected=true]{background:var(--lf-bg);color:var(--lf-text);box-shadow:0 1px 2px #0000001f,0 0 0 1px var(--lf-line)}
.watch-side-tabs button:focus-visible{outline:2px solid var(--lf-accent);outline-offset:1px}
.watch-side-reading[hidden]{display:none}
@media(min-width:1280px){
 html body.watch-page .watch-side-reading{max-height:calc(100dvh - 190px);overflow:auto;padding:2px 8px 8px;scrollbar-width:thin;scrollbar-color:var(--lf-line) transparent}
 html body.watch-page .watch-side-reading #watchStudy,html body.watch-page .watch-side-reading #watchStudy[data-study-mode]:not([hidden]){display:block;margin:0;padding:0;border:0}
 html body.watch-page .watch-side-reading #watchStudy .watch-study-heading{margin:2px 0 12px}
 html body.watch-page .watch-side-reading #studySummary{padding:16px 18px 6px}
 html body.watch-page .watch-side-reading .watch-notes{position:static;margin:16px 0 0;padding:16px 18px}
 html body.watch-page .watch-side-reading #studyLead{font-size:17px}
 html body.watch-page .watch-side-reading #studyPoints{font-size:15.5px}
 html body.watch-page .watch-curriculum.has-side-tabs .watch-list-head{padding-top:0}
}

/* Side tabs: the hidden panel must really disappear (display rules above would otherwise win). */
html body.watch-page #watchCurriculum .watch-list-head[hidden],
html body.watch-page #watchCurriculum #lessons[hidden],
html body.watch-page #watchCurriculum #sideReading[hidden]{display:none!important}

/* ---------- Description & questions, the way a video page does it ---------- */
html body.watch-page{--lf-card-gap:10px}
html body.watch-page .watch-main>#watchStudy,html body.watch-page .watch-main>#watchStudy[data-study-mode]:not([hidden]){margin:16px 0 0;padding:14px 16px;border:0;border-radius:16px;background:var(--lf-surface);display:block}
html body.watch-page .watch-main>#watchStudy .watch-study-heading{margin:0 0 6px;font-size:13px;font-weight:750;letter-spacing:0;color:var(--lf-text)}
html body.watch-page .watch-main>#watchStudy #studySummary{padding:0;border:0;border-radius:0;background:transparent;box-shadow:none;max-width:none}
html body.watch-page .watch-main>#watchStudy #studyLead{font-size:15.5px;font-weight:650;line-height:1.6;letter-spacing:-.015em}
html body.watch-page .watch-main>#watchStudy #studyPoints{margin-top:12px;font-size:14.5px;line-height:1.75}
html body.watch-page .watch-main>#watchStudy #studyPoints li{margin-bottom:8px;padding-left:24px}
html body.watch-page .watch-main>#watchStudy #studyPoints li:last-child{margin-bottom:0}
html body.watch-page .watch-main>#watchStudy .watch-notes{max-width:none;margin:14px 0 0;padding:12px 14px 10px;border:0;border-radius:12px;background:var(--lf-bg);position:static}
html body.watch-page .watch-main>#watchStudy .watch-notes label{margin:0 0 2px;font-size:12px;letter-spacing:0}
html body.watch-page .watch-main>#watchStudy #lessonNote{resize:none;padding:4px 0;border:0;font-size:15px;line-height:1.65;min-height:60px}
html body.watch-page .watch-main>#watchStudy #lessonNote:focus{border:0}
html body.watch-page .watch-main>#watchStudy #lessonNoteStatus{margin:2px 0 0;font-size:11.5px}
html body.watch-page .study-more{display:block;margin:8px 0 -4px auto;min-height:36px;padding:0 4px;border:0;background:transparent;color:var(--lf-muted);font:700 13.5px var(--lf-font);cursor:pointer}
html body.watch-page .study-more[hidden]{display:none}
html body.watch-page .watch-main>#watchStudy.is-collapsed{cursor:pointer}
html body.watch-page .watch-main>#watchStudy.is-collapsed #studyLead{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:3;overflow:hidden}
html body.watch-page .watch-main>#watchStudy.is-collapsed :is(#studyPoints,#studySource,.watch-notes,#studyOopDrill){display:none}
html body.watch-page .watch-qa{margin:var(--lf-card-gap) 0 0;padding:14px 16px 12px;border:0;border-radius:16px;background:var(--lf-surface)}
html body.watch-page .watch-qa-title{margin:0 0 12px;font-size:15px;font-weight:750}
html body.watch-page .watch-qa-title #qaCount{margin-left:6px;font-weight:600}
html body.watch-page .watch-qa-form{gap:10px;align-items:center;margin-bottom:4px}
html body.watch-page .qa-avatar{width:32px;height:32px;font-size:13px}
html body.watch-page #qaInput{min-height:38px;padding:8px 16px;border:0;border-radius:19px;background:var(--lf-bg);font-size:14.5px}
html body.watch-page #qaInput:focus{padding:8px 16px;border:0;box-shadow:inset 0 0 0 1.5px var(--lf-accent)}
html body.watch-page .watch-qa-form:has(.qa-actions:not([hidden])){align-items:flex-start}
html body.watch-page .watch-qa-list{margin-top:14px;gap:18px}
html body.watch-page .watch-qa-empty{margin:8px 0 0;padding:2px 0 4px;font-size:13px;color:var(--lf-muted)}
html body.watch-page .watch-qa:has(.watch-qa-list:empty)>.watch-qa-list{display:none}
@media(max-width:850px){
 html body.watch-page .watch-main>#watchStudy,html body.watch-page .watch-main>#watchStudy[data-study-mode]:not([hidden]){margin:14px 16px 0}
 html body.watch-page .watch-qa{margin:var(--lf-card-gap) 16px 0}
 html body.watch-page .watch-lesson-utilities{gap:0;margin:var(--lf-card-gap) 0 0;padding:0 16px 8px;border-top:0}
 html body.watch-page .watch-lesson-utilities .watch-offline.wo{border:0;border-radius:16px;background:var(--lf-surface);padding-inline:16px}
 html body.watch-page .watch-lesson-utilities .wo-disclosure>summary{min-height:52px}
 html body.watch-page .watch-support{justify-self:center;min-height:40px;margin-top:2px;font-size:12px;text-decoration:none;color:var(--lf-muted);opacity:.85}
 html body.watch-page .watch-curriculum{margin-top:22px;padding-top:6px}
}
@media(min-width:851px) and (max-width:1279px){
 html body.watch-page .watch-lesson-utilities .watch-offline.wo{border:0;border-radius:16px;background:var(--lf-surface);padding-inline:16px}
}
/* In the side panel the reading is already inside a card: no second box */
html body.watch-page .watch-side-reading #watchStudy{margin:0;padding:0;border:0;background:transparent}

/* ---------- Page opened over the lesson (the lesson keeps playing in the corner) ---------- */
.watch-shell-frame{position:fixed;inset:0;width:100%;height:100%;border:0;z-index:79;background:var(--lf-paper,#fbfaf7);color-scheme:light dark}
html.shell-open,html.shell-open body{overflow:hidden}
html.shell-open body.watch-page .watch-header,
html.shell-open body.watch-page .watch-main>:not(#player),
html.shell-open body.watch-page .watch-curriculum,
html.shell-open body.watch-page .watch-locked{visibility:hidden}
html.shell-open body.watch-page #player{background:transparent!important;box-shadow:none!important;border-color:transparent!important}
html.shell-open body.watch-page #player>:not(#playerMount){visibility:hidden}
