/* Video bài giảng: slide 16:9 có lời giảng (giọng AI), phụ đề, điều khiển phát.
   Phong cách: nền kem, xanh navy, xanh ngọc, điểm nhấn vàng. */
.lec { --lc-cream: #F3EFE3; --lc-cream-2: #EAE3D2; --lc-navy: #0A1A4E; --lc-navy-2: #18306F; --lc-teal: #0F848E; --lc-teal-2: #DDF0EF;
  --lc-yellow: #F9C708; --lc-yellow-2: #FFF4C2; --lc-ink: #0A1A4E; --lc-gray: #6B7280; --lc-red: #C8102E;
  position: relative; margin: 0 0 18px; border-radius: 18px; overflow: hidden; container-type: inline-size; background: #0A1A4E; box-shadow: 0 14px 40px rgba(10, 26, 78, .18);
  font-family: 'Be Vietnam Pro', Inter, system-ui, sans-serif; user-select: none; }
.lec:fullscreen { border-radius: 0; display: flex; flex-direction: column; justify-content: center; background: #000; }
.lec-viewport { position: relative; width: 100%; aspect-ratio: 16 / 9; overflow: hidden; background: var(--lc-cream); cursor: pointer; }
.lec:fullscreen .lec-viewport { max-height: 100vh; max-width: calc(100vh * 16 / 9); margin: 0 auto; }
.lec:fullscreen .lec-bar { position: absolute; left: 0; right: 0; bottom: 0; z-index: 25; background: rgba(10, 26, 78, .88); backdrop-filter: blur(8px); transition: opacity .35s ease, transform .35s ease; }
.lec:fullscreen.fs-idle .lec-bar { opacity: 0; transform: translateY(100%); pointer-events: none; }
.lec:fullscreen.fs-idle .lec-viewport { cursor: none; }
.lec-stage { position: absolute; left: 0; top: 0; width: 1280px; height: 720px; transform-origin: 0 0; }

/* ---------- slide chung ---------- */
.lsl { position: absolute; inset: 0; background: var(--lc-cream); color: var(--lc-ink); padding: 54px 72px 70px; display: flex; flex-direction: column; opacity: 0; visibility: hidden; transition: opacity .45s ease; }
.lsl.on { opacity: 1; visibility: visible; }
.lsl::before { content: ''; position: absolute; right: -120px; top: -120px; width: 380px; height: 380px; border-radius: 50%; background: radial-gradient(circle, rgba(249, 199, 8, .14), transparent 70%); }
.lsl-tag { position: absolute; top: 26px; right: 36px; background: var(--lc-navy); color: #fff; font-weight: 800; font-size: 15px; letter-spacing: .06em; text-transform: uppercase; padding: 8px 18px; border-radius: 999px; }
.lsl-h { margin: 6px 0 0; font-size: 52px; line-height: 1.15; font-weight: 800; color: var(--lc-navy); letter-spacing: -.01em; max-width: 1000px; }
.lsl-h::after { content: ''; display: block; width: 110px; height: 7px; border-radius: 4px; background: var(--lc-yellow); margin-top: 14px; }
.lsl-body { flex: 1; display: flex; flex-direction: column; justify-content: center; gap: 18px; margin-top: 18px; min-height: 0; }
.lsl-foot { position: absolute; left: 72px; right: 40px; bottom: 22px; display: flex; justify-content: space-between; align-items: center; font-size: 15px; color: #8A8F9C; }
.lsl-foot b { color: var(--lc-navy); font-weight: 800; }
.lsl-foot .lf-brand { display: flex; align-items: center; gap: 8px; }
.lsl-foot .lf-brand i { width: 10px; height: 10px; border-radius: 3px; background: var(--lc-yellow); display: inline-block; }

/* phần hiện dần */
.lp { flex-shrink: 0; opacity: 0; transform: translateY(16px); transition: opacity .5s ease, transform .5s ease, box-shadow .3s; }
.lp.in { opacity: 1; transform: none; }
.lp.now { box-shadow: 0 0 0 4px rgba(249, 199, 8, .55), 0 10px 26px rgba(10, 26, 78, .12); }
.lp-p { font-size: 34px; line-height: 1.5; font-weight: 500; }
.lp-p.now { box-shadow: none; }
.lp-p.now::before { content: ''; display: inline-block; width: 10px; height: 10px; border-radius: 50%; background: var(--lc-yellow); margin: 0 12px 4px 0; }
.lp-f { align-self: center; min-width: 760px; background: #fff; border-radius: 16px; padding: 26px 48px; text-align: center; font-size: 52px; border-left: 12px solid var(--lc-teal); box-shadow: 0 10px 28px rgba(10, 26, 78, .10); }
.lp-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.lp-pair > div { border-radius: 16px; padding: 24px 30px; font-size: 38px; font-weight: 700; color: #fff; background: var(--lc-teal); text-align: center; }
.lp-pair > div + div { background: var(--lc-navy); }
.lp-note { background: var(--lc-teal-2); border-radius: 16px; padding: 22px 30px 22px 88px; font-size: 30px; line-height: 1.45; position: relative; color: #0B3B40; }
.lp-note::before { content: '💡'; position: absolute; left: 26px; top: 18px; font-size: 34px; }
.lp-warn, .lp-tip { background: var(--lc-yellow); border-radius: 12px; padding: 20px 32px; font-size: 30px; font-weight: 700; color: var(--lc-navy); line-height: 1.4; text-align: center; }
.lp-warn::before { content: '⚠  '; }
.lp-li { display: flex; align-items: center; gap: 22px; background: #fff; border-radius: 14px; padding: 16px 26px; font-size: 33px; font-weight: 600; box-shadow: 0 6px 18px rgba(10, 26, 78, .07); }
.lp-li .ln { flex: 0 0 54px; height: 54px; border-radius: 50%; display: grid; place-items: center; font-size: 27px; font-weight: 800; background: var(--lc-navy); color: #fff; }
.lp-li:nth-of-type(odd) .ln { background: var(--lc-yellow); color: var(--lc-navy); }
.lp-rule { display: grid; grid-template-columns: 440px 1fr; border-radius: 16px; overflow: hidden; box-shadow: 0 8px 22px rgba(10, 26, 78, .10); font-size: 36px; }
.lp-rule > div:first-child { white-space: nowrap; }
.lp-rule > div { padding: 24px 28px; display: flex; align-items: center; }
.lp-rule > div:first-child { background: var(--lc-navy); color: #fff; font-weight: 700; }
.lp-rule > div:last-child { background: #fff; font-weight: 600; }
.lp-rule + .lp-rule > div:first-child { background: var(--lc-teal); }

/* ví dụ */
.lsl-example .lsl-body { justify-content: center; gap: 14px; }
.lp-q { background: var(--lc-navy); color: #fff; border-radius: 16px; padding: 20px 30px; font-size: 32px; font-weight: 600; line-height: 1.45; }
.lp-q .katex { color: #fff; }
.lp-step { display: flex; align-items: center; gap: 20px; font-size: 32px; padding: 10px 24px 10px 10px; background: #fff; border-radius: 14px; box-shadow: 0 5px 16px rgba(10, 26, 78, .06); }
.lp-step .ln { flex: 0 0 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; font-size: 22px; font-weight: 800; background: var(--lc-teal); color: #fff; }
.lp-ans { background: var(--lc-yellow); border-radius: 14px; padding: 16px 30px; font-size: 34px; font-weight: 800; color: var(--lc-navy); display: flex; align-items: center; gap: 16px; }
.lp-ans::before { content: '✓'; flex: 0 0 46px; height: 46px; border-radius: 50%; background: var(--lc-navy); color: var(--lc-yellow); display: grid; place-items: center; font-size: 26px; }
.lsl.dense .lp-step, .lsl.dense .lp-q { font-size: 28px; }
.lsl.dense .lp-step { padding-top: 7px; padding-bottom: 7px; }
.lsl.dense .lp-ans { font-size: 30px; padding: 12px 26px; }

/* slide ảnh toàn khung 16:9 (từ bài giảng PowerPoint gốc) */
.lsl-image { padding: 0; background: #0B1936; align-items: center; justify-content: center; }
.lsl-image::before { display: none; }
.lsl-image .lsl-full-img { width: 100%; height: 100%; object-fit: contain; display: block; }
.lsl-image .lsl-img-num { position: absolute; right: 16px; top: 14px; background: rgba(10, 26, 78, .72); color: #fff; font-size: 14px; font-weight: 700; padding: 4px 12px; border-radius: 999px; backdrop-filter: blur(4px); }

/* ===== Khung mẫu chuẩn Hội thảo Trung tâm KĐ CLGD - ĐHĐN (CEA) ===== */
.lec-cea .lec-viewport { background: #fff; }
.lec-cea .lsl { background: #fff url('../img/ai_gv/cea_bg.jpg') center/100% 100% no-repeat; color: #13213C; padding: 106px 74px 92px; }
.lec-cea .lsl::before { display: none; }
.lec-cea .lsl-tag { top: 24px; right: 32px; background: rgba(11, 37, 69, .9); color: #fff; font-size: 13px; padding: 6px 16px; }
.lec-cea .lsl-h { font-size: 40px; color: #C8102E; text-shadow: 0 2px 6px rgba(0, 0, 0, .08); max-width: 1080px; line-height: 1.2; }
.lec-cea .lsl-h::after { width: 96px; height: 5px; background: #0284C7; margin-top: 10px; }
.lec-cea .lsl-body { gap: 20px; margin-top: 22px; }
.lec-cea .lsl-cover { background: #fff url('../img/ai_gv/cea_bg.jpg') center/100% 100% no-repeat; color: #13213C; padding: 112px 80px 92px; justify-content: center; align-items: center; text-align: center; }
.lec-cea .lsl-cover .lc-photo { display: none; }
.lec-cea .lsl-cover .lc-main { width: 100%; max-width: 1060px; align-items: center; justify-content: center; }
.lec-cea .lsl-cover .lc-badge { align-self: center; background: #0B2545; color: #fff; font-size: 17px; padding: 7px 22px; border-radius: 999px; }
.lec-cea .lsl-cover .lc-sub { color: #0369A1; font-size: 22px; font-weight: 700; margin-top: 14px; }
.lec-cea .lsl-cover h1 { color: #C8102E; font-size: 52px; line-height: 1.2; margin: 14px 0 24px; text-shadow: 0 3px 10px rgba(0, 0, 0, .10); }
.lec-cea .lsl-cover h1 em { color: #C8102E; }
.lec-cea .lsl-cover .lc-goals { width: 100%; margin-top: 10px; text-align: left; gap: 16px; }
.lec-cea .lsl-cover .lp-li { background: rgba(240, 249, 255, .94); color: #0B2545; border: 1.5px solid #BAE6FD; box-shadow: 0 4px 14px rgba(2, 132, 199, .08); font-size: 21px; padding: 14px 20px; line-height: 1.4; }
.lec-cea .lsl-cover .lp-li .ln { background: #0284C7; color: #fff; }
.lec-cea .lp-li { background: rgba(255, 255, 255, .95); border: 1.5px solid #E0F2FE; font-size: 28px; line-height: 1.44; padding: 16px 26px; gap: 20px; }
.lec-cea .lp-li .ln { background: #0284C7; color: #fff; flex-basis: 46px; height: 46px; font-size: 22px; }
.lec-cea .lp-li:nth-of-type(odd) .ln { background: #C8102E; color: #fff; }
.lec-cea .lp-step { background: rgba(255, 255, 255, .95); border: 1.5px solid #E0F2FE; font-size: 27px; line-height: 1.44; padding: 15px 24px 15px 16px; gap: 18px; }
.lec-cea .lp-rule { grid-template-columns: 340px 1fr; font-size: 27px; line-height: 1.45; border: 1.5px solid #E2E8F0; }
.lec-cea .lp-rule > div { padding: 20px 28px; }
.lec-cea .lp-rule > div:first-child { white-space: normal; font-size: 25px; line-height: 1.32; padding: 20px 24px; justify-content: center; text-align: center; }
.lec-cea .lp-rule > div:last-child { padding: 20px 30px; font-weight: 600; color: #13213C; }
.lec-cea .lp-vs { gap: 24px; font-size: 26px; line-height: 1.46; }
.lec-cea .lp-vs > div { padding: 20px 26px 22px; border: 1px solid #E2E8F0; }
.lec-cea .lp-note { padding: 18px 28px 18px 78px; font-size: 26px; line-height: 1.45; }
.lec-cea .lp-note::before { left: 24px; top: 16px; font-size: 32px; }
.lec-cea .lp-warn, .lec-cea .lp-tip { padding: 18px 28px; font-size: 26px; line-height: 1.44; }
.lec-cea .lp-q { padding: 18px 28px; font-size: 27px; line-height: 1.45; }
.lec-cea .lp-ans { padding: 16px 28px; font-size: 27px; line-height: 1.4; }
.lec-cea .lsl-image-cea { padding: 92px 46px 76px; background: #fff url('../img/ai_gv/cea_bg.jpg') center/100% 100% no-repeat; }
.lec-cea .cea-img-frame { width: 100%; height: 100%; border-radius: 12px; overflow: hidden; background: #fff; box-shadow: 0 8px 26px rgba(11, 37, 69, .14); border: 1.5px solid #CFE8F7; display: flex; align-items: center; justify-content: center; }
.lec-cea .lsl-thanks { justify-content: center; align-items: center; text-align: center; }
.lec-cea .lsl-thanks-h { font-size: 62px; font-weight: 800; color: #C8102E; letter-spacing: .02em; text-shadow: 0 3px 10px rgba(0, 0, 0, .10); margin: 0; }
.lec-cea .lsl-thanks-sub { font-size: 26px; font-weight: 600; color: #0B2545; margin-top: 18px; max-width: 860px; line-height: 1.45; }
.cea-num { position: absolute; right: 54px; bottom: 16px; font-size: 24px; font-weight: 800; color: #1E3A8A; font-family: Georgia, serif; }

/* Slide Kiểm tra nhanh & Suy nghĩ trên nền trắng CEA (chữ đậm tương phản cao) */
.lec-cea .lsl-check, .lec-cea .lsl-think { color: #0B2545; }
.lec-cea .lsl-check .lsl-h, .lec-cea .lsl-think .lsl-h { color: #C8102E; font-size: 38px; }
.lec-cea .lsl-check .lsl-tag, .lec-cea .lsl-think .lsl-tag { background: #C8102E; color: #fff; }
.lec-cea .lsl-check .lp-q, .lec-cea .lsl-think .lp-q { background: #0B2545; border: 2px solid #0284C7; color: #fff; font-size: 25px; line-height: 1.45; padding: 18px 26px; box-shadow: 0 8px 22px rgba(11, 37, 69, .15); }
.lec-cea .lsl-check .lk-opts { gap: 16px; }
.lec-cea .lsl-check .lk-o { font-size: 24px; line-height: 1.38; min-height: 82px; padding: 14px 20px; border: 2px solid #CBD5E1; box-shadow: 0 6px 16px rgba(11, 37, 69, .08); }
.lec-cea .lsl-check .lk-o:hover:not(:disabled) { border-color: #0284C7; }
.lec-cea .lsl-check .lk-msg { color: #0B2545; font-size: 22px; }
.lec-cea .lsl-check .lk-why { background: #E0F2FE; border: 1.5px solid #7DD3FC; color: #0B2545; font-size: 21px; padding: 12px 18px; }
.lec-cea .lsl-check .lk-why .katex { color: #0B2545; }
.lec-cea .lsl-check .lk-next { background: #C8102E; color: #fff; font-size: 22px; padding: 12px 28px; }

/* Slide 2 cột thực hành & minh họa (trái: hướng dẫn · phải: ảnh thật/minh họa phóng to được) */
.lsl-split-grid { flex: 1; display: grid; grid-template-columns: 1.24fr 0.9fr; gap: 30px; align-items: center; margin-top: 16px; min-height: 0; }
.lsl-split .lsl-body { margin-top: 0; gap: 16px; }
.lsl-split .lp-li, .lsl-split .lp-step { font-size: 29px; line-height: 1.4; padding: 16px 24px; gap: 16px; }
.lsl-split .lp-li .ln, .lsl-split .lp-step .ln { flex-basis: 46px; height: 46px; font-size: 22px; }
.lsl-split .lp-note, .lsl-split .lp-tip, .lsl-split .lp-warn { font-size: 26px; line-height: 1.42; padding: 17px 24px; }
.lsl-split .lp-rule { grid-template-columns: 235px 1fr; font-size: 27px; line-height: 1.4; }
.lsl-split .lp-rule > div:first-child { font-size: 24px; line-height: 1.28; padding: 18px 16px; }
.lsl-split .lp-rule > div:last-child { font-size: 26px; padding: 18px 22px; font-weight: 600; }
.lsl-split .lp-vs { grid-template-columns: 1fr; gap: 14px; font-size: 25px; line-height: 1.4; }
.lsl-split .lp-vs > div { padding: 16px 22px; }
.lsl-shot { position: relative; height: 100%; max-height: 440px; border-radius: 16px; overflow: hidden; background: #fff; border: 2px solid #BAE6FD; box-shadow: 0 14px 32px rgba(11, 37, 69, .14); display: flex; align-items: center; justify-content: center; cursor: zoom-in; transition: transform .35s ease, box-shadow .35s ease; }
.lsl-shot:hover { transform: scale(1.02); box-shadow: 0 18px 40px rgba(2, 132, 199, .24); border-color: #0284C7; }
.lsl-shot img { width: 100%; height: 100%; object-fit: contain; display: block; animation: ceaFocusZoom 14s ease-in-out infinite alternate; }
.lsl-shot img[src*="/ill/"] { object-fit: cover; }
@keyframes ceaFocusZoom { from { transform: scale(1); } to { transform: scale(1.045); } }
.lsl-zoom-pill { position: absolute; right: 12px; bottom: 12px; background: rgba(11, 37, 69, .86); color: #fff; font-size: 16px; font-weight: 700; padding: 6px 14px; border-radius: 999px; box-shadow: 0 4px 12px rgba(0, 0, 0, .2); }
.lec-lb { position: absolute; inset: 0; z-index: 40; background: rgba(5, 12, 28, .92); display: flex; align-items: center; justify-content: center; padding: 24px; cursor: zoom-out; }
.lec-lb[hidden] { display: none; }
.lec-lb img { max-width: 96%; max-height: 92%; object-fit: contain; border-radius: 10px; box-shadow: 0 20px 60px rgba(0, 0, 0, .5); background: #fff; }
.lec-lb-x { position: absolute; top: 16px; right: 18px; background: #fff; color: #0B2545; border: 0; border-radius: 999px; padding: 8px 18px; font-size: 15px; font-weight: 800; cursor: pointer; box-shadow: 0 4px 14px rgba(0, 0, 0, .3); }

/* bìa */
.lsl-cover { background: var(--lc-navy); color: #fff; padding: 60px 72px 78px; }
.lsl-cover::before { display: none; }
.lsl-cover .lc-photo { position: absolute; right: 0; top: 0; bottom: 0; width: 44%; background-size: cover; background-position: center; clip-path: polygon(16% 0, 100% 0, 100% 100%, 0 100%); }
.lsl-cover .lc-photo::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(10, 26, 78, .55), transparent 40%); }
.lsl-cover .lc-main { position: relative; width: 60%; display: flex; flex-direction: column; height: 100%; }
.lsl-cover .lc-badge { align-self: flex-start; background: var(--lc-yellow); color: var(--lc-navy); font-weight: 800; font-size: 20px; padding: 8px 20px; border-radius: 8px; letter-spacing: .05em; text-transform: uppercase; }
.lsl-cover .lc-sub { margin-top: 16px; font-size: 20px; color: #A9C9F2; font-weight: 600; line-height: 1.4; }
.lsl-cover h1 { margin: 10px 0 0; font-size: 66px; line-height: 1.1; font-weight: 800; color: #fff; letter-spacing: -.015em; }
.lsl-cover h1 em { font-style: normal; color: var(--lc-yellow); }
.lsl-cover .lc-goals { margin-top: auto; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.lsl-cover .lp-li { background: rgba(255, 255, 255, .1); color: #fff; box-shadow: none; font-size: 23px; padding: 12px 16px; gap: 14px; border: 1px solid rgba(255, 255, 255, .18); }
.lsl-cover .lp-li .ln { flex-basis: 40px; height: 40px; font-size: 19px; }
.lsl-cover .lp-li .katex { color: #fff; }
.lsl-cover .lp.now { box-shadow: 0 0 0 3px var(--lc-yellow); }
.lsl-cover .lsl-foot { color: rgba(255, 255, 255, .55); }
.lsl-cover .lsl-foot b { color: #fff; }

/* em thử nhé */
.lsl-think { background: linear-gradient(135deg, #0A1A4E, #123A7A 60%, #0F848E); color: #fff; }
.lsl-think .lsl-h { color: #fff; }
.lsl-think .lsl-tag { background: var(--lc-yellow); color: var(--lc-navy); }
.lsl-think .lp-q { background: rgba(255, 255, 255, .12); border: 2px solid rgba(255, 255, 255, .25); font-size: 34px; text-align: center; }
.lsl-think .lp-wait { align-self: center; width: 130px; height: 130px; border-radius: 50%; border: 8px solid rgba(255, 255, 255, .2); border-top-color: var(--lc-yellow); display: grid; place-items: center; font-size: 56px; font-weight: 800; }
.lsl-think .lp-wait.in { animation: lcSpin 1.4s linear infinite; }
.lsl-think .lp-wait span { animation: lcSpin 1.4s linear infinite reverse; }
@keyframes lcSpin { to { transform: rotate(360deg); } }
.lsl-think .lsl-foot { color: rgba(255, 255, 255, .55); }
.lsl-think .lsl-foot b { color: #fff; }

/* tổng kết */
.lsl-summary .lsl-body { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; align-content: center; }
.lsl-summary .lp-li { font-size: 29px; align-items: flex-start; padding: 20px 22px; min-height: 120px; }

/* ---------- phụ đề, nút phát lớn ---------- */
.lec-cc { position: absolute; left: 50%; bottom: 4.2%; transform: translateX(-50%); max-width: 86%; background: rgba(10, 16, 40, .82); color: #fff; font-size: clamp(11px, 2.3cqw, 22px); line-height: 1.45; padding: .35em .9em; border-radius: 10px; text-align: center; pointer-events: none; transition: opacity .2s; }
.lec-cc:empty, .lec.cc-off .lec-cc { opacity: 0; }
.lec-big { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(10, 26, 78, .25); transition: opacity .25s; }
.lec-big button { display: flex; align-items: center; gap: 14px; border: 0; border-radius: 999px; background: var(--lc-yellow); color: var(--lc-navy); font: 800 clamp(13px, 2.6cqw, 22px)/1 'Be Vietnam Pro', Inter, sans-serif; padding: .85em 1.5em .85em 1.1em; cursor: pointer; box-shadow: 0 12px 30px rgba(0, 0, 0, .3); }
.lec-big button svg { width: 1.6em; height: 1.6em; }
.lec.playing .lec-big, .lec.started .lec-big { opacity: 0; pointer-events: none; }

/* ---------- thanh điều khiển ---------- */
.lec-bar { display: flex; align-items: center; gap: 4px; padding: 6px 10px; background: #0A1A4E; color: #fff; flex-wrap: wrap; }
.lec-bar button, .lec-bar select { background: transparent; border: 0; color: #fff; height: 36px; min-width: 36px; border-radius: 8px; display: inline-grid; place-items: center; cursor: pointer; font: 600 13px/1 'Be Vietnam Pro', Inter, sans-serif; padding: 0 6px; }
.lec-bar button:hover, .lec-bar select:hover { background: rgba(255, 255, 255, .12); }
.lec-bar svg { width: 20px; height: 20px; }
.lec-bar select { appearance: none; padding: 0 10px; }
.lec-bar select option { color: #000; }
.lec-track { flex: 1 1 200px; display: flex; gap: 3px; height: 8px; cursor: pointer; padding: 8px 0; box-sizing: content-box; min-width: 120px; }
.lec-track i { flex: 1; background: rgba(255, 255, 255, .22); border-radius: 3px; position: relative; overflow: hidden; }
.lec-track i b { position: absolute; inset: 0; width: 0; background: var(--lc-yellow); }
.lec-track i.done b { width: 100%; }
.lec-time { font-size: 13px; font-variant-numeric: tabular-nums; opacity: .85; white-space: nowrap; }
.lec-voice { font-size: 12px; opacity: .7; white-space: nowrap; }
.lec.cc-off .lec-btn-cc { opacity: .5; }
@container (max-width: 760px) { .lec-voice { display: none; } }
@container (max-width: 520px) { .lec-track { order: -1; flex-basis: 100%; } .lec-bar .lec-time { margin-right: auto; } }
@media (max-width: 640px) { .lec { border-radius: 12px; } }

/* khối trong trang bài học */
.lec-wrap { margin: 0 0 18px; }
.lec-head { display: flex; align-items: center; gap: 12px; margin: 0 0 10px; }
.lec-head b { display: block; font-size: 17px; color: var(--ink, #0A1A4E); }
.lec-head small { color: var(--muted, #5D717E); font-size: 13px; }
.lec-head-ic { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: #F9C708; color: #0A1A4E; flex: 0 0 40px; }
.lec-head-ic svg { width: 20px; height: 20px; }

/* slide có hình minh họa bên phải */
.lsl-cols { flex: 1; display: grid; grid-template-columns: 1.22fr 1fr; gap: 34px; min-height: 0; margin-top: 18px; }
.lsl-cols .lsl-body { margin-top: 0; }
.lsl-fig { display: flex; align-items: center; justify-content: center; background: #fff; border-radius: 20px; box-shadow: 0 10px 28px rgba(10, 26, 78, .09); padding: 14px; }
.lsl-fig svg { width: 100%; height: auto; max-height: 470px; font-family: 'Be Vietnam Pro', Inter, sans-serif; }
.has-fig .lp-p { font-size: 30px; }
.has-fig .lp-f { min-width: 0; font-size: 42px; padding: 22px 26px; }
.has-fig .lp-li, .has-fig .lp-step { font-size: 28px; }
.has-fig .lp-q { font-size: 28px; }
.has-fig .lp-note, .has-fig .lp-warn, .has-fig .lp-tip { font-size: 26px; }
.has-fig .lp-ans { font-size: 29px; }
.has-fig .lp-rule { grid-template-columns: 1fr; font-size: 30px; }
.lsl-think .lsl-fig { background: rgba(255, 255, 255, .95); }

/* lỗi hay gặp: sai / đúng */
.lp-vs { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; font-size: 28px; line-height: 1.4; }
.lp-vs > div { border-radius: 16px; padding: 16px 24px 20px; background: #fff; box-shadow: 0 6px 18px rgba(10, 26, 78, .07); }
.lp-vs .vs-l { display: block; font-style: normal; font-weight: 800; font-size: 20px; letter-spacing: .05em; text-transform: uppercase; margin-bottom: 6px; }
.lp-vs .vs-w { border-top: 8px solid #D64545; } .lp-vs .vs-w .vs-l { color: #C62828; }
.lp-vs .vs-w span { text-decoration: line-through; text-decoration-color: rgba(198, 40, 40, .55); text-decoration-thickness: 3px; }
.lp-vs .vs-r { border-top: 8px solid #1E9E61; } .lp-vs .vs-r .vs-l { color: #177A4B; }
.has-fig .lp-vs { grid-template-columns: 1fr; font-size: 25px; gap: 10px; }
.lp-f .katex-display { margin: 0; }
.lp-f { padding-top: 18px; padding-bottom: 18px; max-width: 100%; box-sizing: border-box; }

@keyframes lpPop { 0% { transform: scale(.96); } 45% { transform: scale(1.04); } 100% { transform: none; } }

/* Câu hỏi giữa video */
.lsl-check { background: linear-gradient(135deg, #0A1A4E, #123A7A 60%, #0F848E); color: #fff; }
.lsl-check .lsl-h { color: #fff; font-size: 44px; }
.lsl-check .lsl-tag { background: var(--lc-yellow); color: var(--lc-navy); }
.lsl-check .lsl-body { justify-content: flex-start; gap: 16px; margin-top: 14px; }
.lsl-check .lp-q { background: rgba(255, 255, 255, .12); border: 2px solid rgba(255, 255, 255, .25); color: #fff; font-size: 30px; padding: 16px 24px; border-radius: 18px; opacity: 1; transform: none; }
.lk-opts { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.lk-o { display: flex; align-items: center; gap: 14px; text-align: left; font: inherit; font-size: 31px; font-weight: 600; color: var(--lc-navy); background: #fff; border: 3px solid transparent; border-radius: 18px; padding: 16px 20px; min-height: 100px; cursor: pointer; box-shadow: 0 6px 16px rgba(0, 0, 0, .18); transition: transform .15s, border-color .2s, background .2s; }
.lk-o:hover:not(:disabled) { transform: translateY(-2px); border-color: var(--lc-yellow); }
.lk-o b { flex: 0 0 52px; height: 52px; border-radius: 12px; display: grid; place-items: center; background: var(--lc-navy); color: #fff; font-size: 24px; }
.lk-o .katex { color: inherit; }
.lk-o.wrong { background: #FDE2E2; border-color: #E5484D; color: #8B1A1A; animation: lkShake .4s; cursor: default; }
.lk-o.wrong b { background: #E5484D; }
.lk-o.right { background: #DCFCE7; border-color: #16A34A; color: #14532D; }
.lk-o.right b { background: #16A34A; }
.lsl-check.solved .lk-o:not(.right):not(.wrong) { opacity: .55; }
.lsl-check.solved .lk-o { cursor: default; }
.lk-o.right, .lk-o.right:hover { border-color: #16A34A; }
.lsl-check.solved .lk-o { min-height: 0; padding-top: 8px; padding-bottom: 8px; transform: none; }
.lsl-check.solved .lsl-foot { display: none; }
@keyframes lkShake { 0%, 100% { transform: none; } 25% { transform: translateX(-8px); } 75% { transform: translateX(8px); } }
.lk-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; }
.lk-msg { flex: 1 1 100%; font-size: 24px; font-weight: 700; color: var(--lc-yellow); min-height: 30px; }
.lk-why { display: none; flex: 1; font-size: 22px; line-height: 1.45; background: rgba(255, 255, 255, .12); border-radius: 14px; padding: 10px 16px; }
.lk-why .katex { color: #fff; }
.lk-next { display: none; font: inherit; font-size: 24px; font-weight: 800; color: var(--lc-navy); background: var(--lc-yellow); border: 0; border-radius: 999px; padding: 14px 30px; cursor: pointer; box-shadow: 0 8px 20px rgba(0, 0, 0, .25); }
.lsl-check.solved .lk-why { display: block; }
.lsl-check.solved .lk-next { display: inline-block; animation: lpPop .6s; }
.lsl-check .lsl-foot { color: rgba(255, 255, 255, .55); }
.lsl-check .lsl-foot b { color: #fff; }
.lec.asking .lec-viewport { cursor: default; }
.lec-track i.lock { opacity: .35; cursor: not-allowed; }
.lec-toast { position: absolute; left: 50%; bottom: 18%; transform: translate(-50%, 10px); background: rgba(10, 26, 78, .92); color: #fff; font-weight: 700; font-size: 15px; padding: 10px 18px; border-radius: 999px; opacity: 0; pointer-events: none; transition: opacity .25s, transform .25s; white-space: nowrap; max-width: 92%; overflow: hidden; text-overflow: ellipsis; z-index: 5; }
.lec-toast.on { opacity: 1; transform: translate(-50%, 0); }

/* ===== Chủ đề sinh động theo lứa tuổi Tiểu học (Lớp 1–5) & Bìa đa dạng theo từng chương ===== */
.lsl-cover.has-art .lc-main { width: 57%; z-index: 2; }
.lsl-cover.has-art h1 { font-size: 56px; line-height: 1.14; }
.lsl-cover .lc-art { position: absolute; right: 44px; top: 54px; bottom: 72px; width: 37%; display: flex; align-items: center; justify-content: center; background: rgba(255, 255, 255, .95); border-radius: 28px; padding: 20px; box-shadow: 0 22px 50px rgba(0, 0, 0, .24), inset 0 0 0 4px rgba(255, 255, 255, .6); z-index: 2; }
.lsl-cover .lc-art svg { width: 100%; height: auto; max-height: 100%; display: block; }
.lsl-cover.has-art::after { content: ''; position: absolute; left: -90px; bottom: -110px; width: 340px; height: 340px; border-radius: 50%; background: rgba(255, 255, 255, .08); pointer-events: none; }

/* 10 bảng màu bìa & kiểm tra nhanh khác biệt cho từng chương/lớp */
.lc-pal-coral { background: linear-gradient(135deg, #D9465F 0%, #F43F5E 52%, #FB923C 100%) !important; }
.lc-pal-coral .lc-sub { color: #FFE4E6; } .lc-pal-coral .lc-badge { background: #FEF08A; color: #881337; }
.lc-pal-sunny { background: linear-gradient(135deg, #C2410C 0%, #EA580C 55%, #F59E0B 100%) !important; }
.lc-pal-sunny .lc-sub { color: #FEF3C7; } .lc-pal-sunny .lc-badge { background: #FFFBEB; color: #9A3412; }
.lc-pal-mint { background: linear-gradient(135deg, #047857 0%, #059669 52%, #14B8A6 100%) !important; }
.lc-pal-mint .lc-sub { color: #D1FAE5; } .lc-pal-mint .lc-badge { background: #FEF08A; color: #064E3B; }
.lc-pal-sky { background: linear-gradient(135deg, #0369A1 0%, #0284C7 55%, #38BDF8 100%) !important; }
.lc-pal-sky .lc-sub { color: #E0F2FE; } .lc-pal-sky .lc-badge { background: #FEF08A; color: #0C4A6E; }
.lc-pal-tangerine { background: linear-gradient(135deg, #B45309 0%, #D97706 50%, #F97316 100%) !important; }
.lc-pal-tangerine .lc-sub { color: #FFEDD5; } .lc-pal-tangerine .lc-badge { background: #FEF9C3; color: #78350F; }
.lc-pal-teal { background: linear-gradient(135deg, #0F766E 0%, #0D9488 52%, #06B6D4 100%) !important; }
.lc-pal-teal .lc-sub { color: #CCFBF1; } .lc-pal-teal .lc-badge { background: #FDE047; color: #134E4A; }
.lc-pal-violet { background: linear-gradient(135deg, #5B21B6 0%, #7C3AED 55%, #A855F7 100%) !important; }
.lc-pal-violet .lc-sub { color: #EDE9FE; } .lc-pal-violet .lc-badge { background: #FEF08A; color: #4C1D95; }
.lc-pal-ocean { background: linear-gradient(135deg, #1E3A8A 0%, #1D4ED8 55%, #0284C7 100%) !important; }
.lc-pal-ocean .lc-sub { color: #DBEAFE; } .lc-pal-ocean .lc-badge { background: #FDE047; color: #1E3A8A; }
.lc-pal-emerald { background: linear-gradient(135deg, #166534 0%, #16A34A 52%, #10B981 100%) !important; }
.lc-pal-emerald .lc-sub { color: #DCFCE7; } .lc-pal-emerald .lc-badge { background: #FEF08A; color: #14532D; }
.lc-pal-royal { background: linear-gradient(135deg, #1E1B4B 0%, #312E81 52%, #0E7490 100%) !important; }
.lc-pal-royal .lc-sub { color: #E0E7FF; } .lc-pal-royal .lc-badge { background: #FACC15; color: #1E1B4B; }

/* Tông màu bài giảng ấm áp, thân thiện cho từng khối Tiểu học */
.lec-g1 { --lc-cream: #FFF8F1; --lc-navy: #881337; --lc-teal: #E11D48; --lc-teal-2: #FFE4E6; --lc-yellow: #FACC15; --lc-ink: #271522; }
.lec-g2 { --lc-cream: #F3FBF7; --lc-navy: #065F46; --lc-teal: #059669; --lc-teal-2: #D1FAE5; --lc-yellow: #FBBF24; --lc-ink: #0F2920; }
.lec-g3 { --lc-cream: #F4F9FD; --lc-navy: #0C4A6E; --lc-teal: #0284C7; --lc-teal-2: #E0F2FE; --lc-yellow: #F59E0B; --lc-ink: #0F2338; }
.lec-g4 { --lc-cream: #F7F5FF; --lc-navy: #3B0764; --lc-teal: #7C3AED; --lc-teal-2: #EDE9FE; --lc-yellow: #FACC15; --lc-ink: #1F1235; }
.lec-g5 { --lc-cream: #F2F6FC; --lc-navy: #1E3A8A; --lc-teal: #0D9488; --lc-teal-2: #CCFBF1; --lc-yellow: #FACC15; --lc-ink: #0F1E3E; }

/* Tông màu học thuật hiện đại cho khối THCS (Lớp 6–9) */
.lec-g6 { --lc-cream: #F3F8F8; --lc-navy: #0F3D4C; --lc-teal: #0D9488; --lc-teal-2: #CCFBF1; --lc-yellow: #F59E0B; --lc-ink: #0B2530; }
.lec-g7 { --lc-cream: #F4F6FC; --lc-navy: #1E2952; --lc-teal: #2563EB; --lc-teal-2: #DBEAFE; --lc-yellow: #FBBF24; --lc-ink: #0F172A; }
.lec-g8 { --lc-cream: #F6F4FB; --lc-navy: #2E1065; --lc-teal: #7C3AED; --lc-teal-2: #EDE9FE; --lc-yellow: #FACC15; --lc-ink: #1E1038; }
.lec-g9 { --lc-cream: #F3EFE3; --lc-navy: #0A1A4E; --lc-teal: #0F848E; --lc-teal-2: #DDF0EF; --lc-yellow: #F9C708; --lc-ink: #0A1A4E; }

/* Tông màu chuyên sâu chuẩn luyện thi cho khối THPT (Lớp 10–12) */
.lec-g10 { --lc-cream: #F3F6FA; --lc-navy: #0F2942; --lc-teal: #0284C7; --lc-teal-2: #E0F2FE; --lc-yellow: #F59E0B; --lc-ink: #0B192C; }
.lec-g11 { --lc-cream: #F5F3FA; --lc-navy: #1E1B4B; --lc-teal: #6366F1; --lc-teal-2: #E0E7FF; --lc-yellow: #FACC15; --lc-ink: #131130; }
.lec-g12 { --lc-cream: #F6F5F0; --lc-navy: #111827; --lc-teal: #0F766E; --lc-teal-2: #CCFBF1; --lc-yellow: #EAB308; --lc-ink: #111827; }

.lec-g1 .lec-bar, .lec-g2 .lec-bar, .lec-g3 .lec-bar, .lec-g4 .lec-bar, .lec-g5 .lec-bar,
.lec-g6 .lec-bar, .lec-g7 .lec-bar, .lec-g8 .lec-bar, .lec-g9 .lec-bar,
.lec-g10 .lec-bar, .lec-g11 .lec-bar, .lec-g12 .lec-bar { background: var(--lc-navy); }
