/* LTV Khóa học. Màu theo --an-primary / --an-cta của theme. */
:root { --anl: var(--an-primary, #16a34a); --anl-cta: var(--an-cta, #f59e0b); --anl-line: #e2e8f0; --anl-muted: #64748b; }

.anl-progress { min-width: 0; }
.anl-progress__bar { height: 8px; background: #eef2f7; border-radius: 99px; overflow: hidden; }
.anl-progress__bar span { display: block; height: 100%; background: var(--anl); border-radius: 99px; transition: width .3s; }
.anl-progress small { display: block; margin-top: 6px; color: var(--anl-muted); font-size: 13px; }

.anl-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin: 12px 0 18px; }
.anl-cta .anl-progress { flex: 1 1 100%; }
.anl-btn { min-height: 50px; padding: 0 26px !important; border-radius: 12px !important; background: var(--anl-cta) !important; color: #fff !important; font-weight: 700 !important; font-size: 16px !important; display: inline-flex !important; align-items: center; }
.anl-btn-ghost { min-height: 50px; display: inline-flex !important; align-items: center; border-radius: 12px !important; }

/* Danh sách chương / bài */
.anl-curr__sum { margin: 0 0 12px; color: var(--anl-muted); }
.anl-curr { border: 1px solid var(--anl-line); border-radius: 14px; overflow: hidden; background: #fff; }
.anl-sec + .anl-sec { border-top: 1px solid var(--anl-line); }
.anl-sec summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 18px; background: #f8fafc; font-weight: 700; cursor: pointer; list-style: none; }
.anl-sec summary::-webkit-details-marker { display: none; }
.anl-sec summary::after { content: "+"; flex: none; width: 22px; text-align: center; color: var(--anl-muted); font-size: 20px; font-weight: 400; }
.anl-sec[open] summary::after { content: "−"; }
.anl-sec summary span { flex: 1; min-width: 0; }
.anl-sec summary small { flex: none; color: var(--anl-muted); font-weight: 500; font-size: 13px; }
.anl-sec ol { margin: 0; padding: 4px 0; list-style: none; }
.anl-les { display: flex; align-items: center; gap: 12px; margin: 0; padding: 10px 18px; font-size: 15px; }
.anl-les__t { flex: 1; min-width: 0; }
.anl-les__t a { color: inherit; text-decoration: none; }
.anl-les__t a:hover { color: var(--anl); }
.anl-les small { flex: none; color: var(--anl-muted); font-size: 13px; }
.anl-les__ic { display: inline-flex; flex: none; align-items: center; justify-content: center; width: 24px; height: 24px; border-radius: 50%; background: #eef2f7; color: var(--anl-muted); font-size: 10px; }
.anl-les__ic.is-done { background: var(--anl); color: #fff; font-size: 12px; }
.anl-les.is-locked { color: #94a3b8; }
.anl-les.is-current { background: color-mix(in srgb, var(--anl) 10%, #fff); box-shadow: inset 3px 0 0 var(--anl); font-weight: 600; }
.anl-free { display: inline-block; margin-left: 6px; padding: 1px 8px; border-radius: 99px; background: color-mix(in srgb, var(--anl) 14%, #fff); color: var(--anl); font-size: 12px; font-style: normal; font-weight: 600; }

.anl-teacher { display: flex; gap: 16px; align-items: flex-start; }
.anl-teacher__av { display: inline-flex; flex: none; align-items: center; justify-content: center; width: 64px; height: 64px; border-radius: 50%; background: var(--anl); color: #fff; font-size: 26px; font-weight: 700; }
.anl-teacher h3 { margin: 0 0 6px; }
.anl-teacher p { margin: 0; color: #475569; }

/* Trang bài học */
.anl-lesson { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 28px; align-items: start; width: min(1320px, calc(100% - 32px)); margin: 24px auto 56px; }
.anl-lesson__main, .anl-lesson__side { min-width: 0; }
.anl-crumb { display: flex; justify-content: space-between; gap: 12px; margin-bottom: 12px; font-size: 14px; }
.anl-crumb a { color: var(--anl); font-weight: 600; text-decoration: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.anl-crumb span { flex: none; color: var(--anl-muted); }
.anl-player { position: relative; aspect-ratio: 16 / 9; background: #0b1220; border-radius: 16px; overflow: hidden; }
.anl-player iframe, .anl-player video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.anl-player__ph { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; background: linear-gradient(135deg, #0f172a, color-mix(in srgb, var(--anl) 55%, #0f172a)); color: #e2e8f0; text-align: center; padding: 16px; }
.anl-player__ph span { display: inline-flex; align-items: center; justify-content: center; width: 64px; height: 64px; border-radius: 50%; background: rgba(255, 255, 255, .15); font-size: 24px; }
.anl-player__ph p { margin: 0; }
.anl-locked { padding: 40px 24px; background: linear-gradient(135deg, #0f172a, #1e293b); border-radius: 16px; color: #e2e8f0; text-align: center; }
.anl-locked__ic { font-size: 40px; }
.anl-locked h2 { margin: 8px 0; color: #fff; }
.anl-locked p { max-width: 560px; margin: 0 auto 12px; }
.anl-locked__price { font-size: 22px; font-weight: 700; color: #fff; }
.anl-locked__price del { opacity: .6; font-size: .7em; }
.anl-locked__price ins { text-decoration: none; }
.anl-locked__acts { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.anl-locked__acts .button.alt { background: var(--anl-cta) !important; color: #fff !important; }
.anl-locked__login a { color: #fde68a; }
.anl-lesson__head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin: 20px 0 8px; }
.anl-lesson__head h1 { flex: 1 1 320px; min-width: 0; margin: 0; font-size: clamp(22px, 3vw, 30px); }
.anl-done-form { margin: 0; }
.anl-done { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 18px; border: 2px solid var(--anl); border-radius: 99px; background: #fff; color: var(--anl); font: inherit; font-weight: 700; cursor: pointer; }
.anl-done__ic { display: inline-flex; align-items: center; justify-content: center; width: 22px; height: 22px; border: 2px solid currentColor; border-radius: 50%; font-size: 12px; }
.anl-done.is-done { background: var(--anl); color: #fff; }
.anl-content { margin-top: 8px; font-size: 17px; line-height: 1.75; }
.anl-content--teaser { color: var(--anl-muted); }
.anl-pager { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 32px; }
.anl-pager a { display: block; min-width: 0; padding: 14px 16px; border: 1px solid var(--anl-line); border-radius: 12px; color: inherit; font-weight: 600; text-decoration: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.anl-pager a:hover { border-color: var(--anl); }
.anl-pager small { display: block; color: var(--anl-muted); font-weight: 500; }
.anl-pager__next { grid-column: 2; text-align: right; }
.anl-side { position: sticky; top: 90px; }
.anl-side__head { margin-bottom: 12px; padding: 16px; background: #fff; border: 1px solid var(--anl-line); border-radius: 14px; }
.anl-side__head strong { display: block; margin-bottom: 10px; }
.anl-cert-link { display: inline-block; margin-top: 10px; color: var(--anl); font-weight: 700; text-decoration: none; }
.anl-side .anl-curr { max-height: calc(100vh - 260px); overflow-y: auto; }
.anl-side .anl-les { padding: 10px 14px; font-size: 14px; }
.anl-side .anl-sec summary { padding: 12px 14px; font-size: 14px; }

/* Khóa học của tôi */
.anl-my { display: grid; gap: 16px; }
.anl-my__item { display: grid; grid-template-columns: 180px minmax(0, 1fr); gap: 16px; align-items: center; padding: 12px; border: 1px solid var(--anl-line); border-radius: 14px; }
.anl-my__img img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 10px; }
.anl-my__body h3 { margin: 0 0 10px; font-size: 17px; }
.anl-my__body h3 a { color: inherit; text-decoration: none; }
.anl-my__acts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.anl-empty-box { padding: 32px 16px; text-align: center; }

@media (max-width: 1024px) {
	.anl-lesson { grid-template-columns: minmax(0, 1fr); }
	.anl-side { position: static; }
	.anl-side .anl-curr { max-height: none; }
}
@media (max-width: 600px) {
	.anl-lesson { margin-top: 12px; }
	.anl-player { border-radius: 10px; margin: 0 -4px; }
	.anl-my__item { grid-template-columns: minmax(0, 1fr); }
	.anl-pager { grid-template-columns: minmax(0, 1fr); }
	.anl-pager__next { grid-column: 1; }
	.anl-les { padding: 10px 12px; }
	.anl-sec summary { padding: 12px; }
}
