/**
 * Skillable — giao diện chi tiết học bài (Tutor LMS).
 * Màu sắc & spacing tham chiếu frame31.css (Figma) — đã chuẩn hoá selector thực tế.
 */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&display=swap');

:root {
	--sk-blue: #2952e1;
	--sk-blue-60: #0f2bb8;
	--sk-blue-dark: #1539d3;
	--sk-blue-10: #f3f8ff;
	--sk-blue-20: #d0def5;
	--sk-black: #2c2c2c;
	--sk-gray-10: #f7f7f7;
	--sk-gray-20: #e8e8e8;
	--sk-text: #242424;
	--sk-muted: #565656;
	--sk-line: #e0e0e0;
	--sk-radius-lg: 16px;
	--sk-radius: 12px;
	--sk-radius-sm: 8px;
	--sk-shadow-card: 0 2px 8px rgba(41, 82, 225, 0.15);
	--sk-page-bg: #f6f7f9;
}

/* Trang học / khóa học: nền & font */
body.tutor-body,
body.single-lesson,
body.single-tutor_quiz,
.tutorbase-site-main .skillable-course-single {
	background: var(--sk-page-bg);
}

.skillable-lms-player,
.skillable-lms-player .tutor-course-single-content-wrapper {
	font-family: 'Inter', system-ui, -apple-system, sans-serif;
}

/* ----- Layout 3 cột ----- */
.skillable-lms-player {
	padding: 0;
	max-width: 100%;
}

.skillable-lms-player__grid {
	display: grid;
	grid-template-columns: minmax(260px, 295px) minmax(0, 1fr) minmax(240px, 295px);
	gap: 20px;
	align-items: start;
	padding: 16px 20px 32px;
	max-width: 1440px;
	margin: 0 auto;
	box-sizing: border-box;
}

.skillable-lms-player__sidebar {
	background: transparent;
	width: 100% !important;
	max-width: none !important;
}

.skillable-lms-player__main {
	background: #fff;
	border-radius: var(--sk-radius-lg);
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
	min-width: 0;
}

.skillable-lms-player__transcript {
	min-width: 0;
	position: sticky;
	top: 16px;
	align-self: start;
	display: flex;
	flex-direction: column;
	align-items: center;
	box-sizing: border-box;
	padding: 20px;
	gap: 20px;
	background: #fff;
	border: 1px solid var(--sk-gray-20);
	border-radius: var(--sk-radius-lg);
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

@media (min-width: 1200px) {
	.skillable-lms-player__transcript {
		align-self: stretch;
	}
}

/* Tablet */
@media (max-width: 1199px) {
	.skillable-lms-player__grid {
		grid-template-columns: 1fr 1fr;
		grid-template-areas:
			'sidebar main'
			'transcript transcript';
	}
	.skillable-lms-player__sidebar {
		grid-area: sidebar;
	}
	.skillable-lms-player__main {
		grid-area: main;
	}
	.skillable-lms-player__transcript {
		grid-area: transcript;
		position: static;
		max-height: 360px;
	}
}

/* Mobile: sidebar → main → transcript */
@media (max-width: 767px) {
	.skillable-lms-player__grid {
		grid-template-columns: 1fr;
		grid-template-areas:
			'sidebar'
			'main'
			'transcript';
		padding: 12px 12px 24px;
		gap: 16px;
	}
	.skillable-lms-player__transcript {
		max-height: 280px;
	}
}

/* Sidebar Tutor trong layout skillable-lms-player — không áp global để tránh ghi đè padding sidebar bài học (3 cột child) */
.skillable-lms-player .tutor-course-single-sidebar-wrapper {
	padding: 0 !important;
}

/* ----- Chế độ học ----- */
.skillable-mode-card,
.skillable-curriculum-card {
	display: flex;
	flex-direction: column;
	align-items: center;
	width: 100%;
	max-width: 295px;
	margin: 0 auto 16px;
	padding: 20px;
	gap: 16px;
	box-sizing: border-box;
	background: #fff;
	border: 1px solid var(--sk-gray-20);
	border-radius: var(--sk-radius-lg);
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

.skillable-mode-card__title {
	width: 100%;
	max-width: 255px;
	height: 24px;
	margin: 0;
	font-size: 20px;
	font-weight: 600;
	color: var(--sk-black);
	line-height: 24px;
	display: flex;
	align-items: center;
}

.skillable-mode-card__list {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 12px;
	width: 100%;
	max-width: 255px;
}

.skillable-mode-btn {
	display: flex;
	flex-direction: row;
	align-items: center;
	gap: 8px;
	width: 100%;
	min-height: 68px;
	padding: 12px;
	border-radius: 12px;
	border: 1px solid #d0def5;
	background: #f3f8ff;
	color: #0f2bb8;
	font-size: 14px;
	font-weight: 600;
	text-align: left;
	cursor: pointer;
	transition: box-shadow 0.2s, transform 0.15s, border-color 0.2s, background-color 0.2s;
	position: relative;
	overflow: hidden;
	isolation: isolate;
}

.skillable-mode-btn::before {
	content: '';
	position: absolute;
	inset: 0;
	background: url('../images/menu-inactive.png') no-repeat left center / cover;
	opacity: 1;
	z-index: 0;
	/* mặc định để none, inactive sẽ set riêng theo Figma */
	background-image: none;
}

.skillable-mode-btn:not(.is-active)::before {
	/* Rectangle 2 inactive: cân trái/phải + hạ nhẹ để sóng cong vừa khung */
	content: '';
	position: absolute;
	width: 542.37px;
	height: 340.94px;
	left: -132px;
	top: 42px;
	background: linear-gradient(166.63deg, rgba(243, 248, 255, 0.3) 14.53%, rgba(92, 154, 239, 0.3) 34.56%);
	border-radius: 146px;
	transform: rotate(-8.97deg) translateX(4px);
	opacity: 1;
	z-index: 0;
	pointer-events: none;
}

.skillable-mode-btn:hover {
	box-shadow: 0 0 0 3px rgba(130, 156, 247, 0.25);
}

.skillable-mode-btn:focus-visible {
	outline: none;
	box-shadow: 0 0 0 3px rgba(130, 156, 247, 0.25);
}

.skillable-mode-btn.is-active {
	border: none;
	color: #fff;
	background: linear-gradient(90.27deg, #4495ff 0.27%, #2545e0 104.59%);
	box-shadow: 0 0 0 1px rgba(37, 69, 224, 0.3);
}

.skillable-mode-btn.is-active::before {
	/* overlay cong theo thiết kế */
	background-image: url('../images/menu-active.png');
	opacity: 1;
	/* canh lại vị trí để ra độ cong giống thiết kế — lệch nhẹ sang phải so với trước */
	background-position: calc(50% - 2px) calc(50% + 18px);
}

/* Tắt Rectangle 2 vì đã có menu-active.png khớp hơn với thiết kế thực tế */
.skillable-mode-btn.is-active::after {
	content: none;
}

.skillable-mode-btn.is-active:hover,
.skillable-mode-btn.is-active:focus-visible {
	/* Figma "Selector-Hover" */
	box-shadow: 0 0 1px 3px rgba(130, 156, 247, 0.25);
}

.skillable-mode-btn__icon {
	display: inline-flex;
	width: 36px;
	height: 36px;
	border-radius: 50%;
	align-items: center;
	justify-content: center;
	background: #fff;
	flex-shrink: 0;
	padding: 5px;
	box-sizing: border-box;
	position: relative;
	z-index: 1;
	/* fallback: nếu HTML vẫn là ký tự, ẩn ký tự đi */
	font-size: 0;
	line-height: 0;
}

.skillable-mode-btn__icon::before {
	content: '';
	display: block;
	width: 20px;
	height: 20px;
	background-repeat: no-repeat;
	background-position: center;
	background-size: contain;
}

.skillable-mode-btn__icon:has(.skillable-mode-btn__icon-img)::before {
	content: none;
	display: none;
}

.skillable-mode-btn[data-skillable-mode='standard'] .skillable-mode-btn__icon::before {
	background-image: url('../images/ngoi_sao.svg');
}
.skillable-mode-btn[data-skillable-mode='deaf'] .skillable-mode-btn__icon::before {
	background-image: url('../images/tai.svg');
}
.skillable-mode-btn[data-skillable-mode='blindness'] .skillable-mode-btn__icon::before {
	background-image: url('../images/mat.svg');
}
.skillable-mode-btn[data-skillable-mode='nerve'] .skillable-mode-btn__icon::before {
	background-image: url('../images/smile_happy.svg');
}

.skillable-mode-btn.is-active .skillable-mode-btn__icon {
	background: #559fff;
}

.skillable-mode-btn__text {
	position: relative;
	z-index: 1;
}

.skillable-mode-btn__icon-img {
	display: block;
	width: 20px;
	height: 20px;
	object-fit: contain;
}

.skillable-mode-btn:not(.is-active) .skillable-mode-btn__icon-img {
	filter: none;
}

.skillable-mode-btn.is-active .skillable-mode-btn__icon-img {
	/* SVG inactive: màu xanh trong file; active: trắng */
	filter: brightness(0) invert(1);
}

.skillable-mode-btn.is-active .skillable-mode-btn__icon::before {
	filter: brightness(0) invert(1);
}

/* Thẻ <a> dùng class giống nút: tránh màu/link mặc định của trình duyệt làm lệch icon & chữ */
.skillable-mode-card__list a.skillable-mode-btn {
	text-decoration: none;
	box-sizing: border-box;
	appearance: none;
	-webkit-appearance: none;
	color: #0f2bb8;
	cursor: pointer;
}

.skillable-mode-card__list a.skillable-mode-btn:visited {
	color: #0f2bb8;
}

.skillable-mode-card__list a.skillable-mode-btn.is-active,
.skillable-mode-card__list a.skillable-mode-btn.is-active:visited {
	color: #fff;
}

/* ----- Nội dung khóa học (Figma: episode + arco-menu) ----- */
.skillable-curriculum-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	width: 100%;
	max-width: 255px;
	margin: 0 !important;
}

.skillable-curriculum-head__title {
	font-size: 20px !important;
	font-weight: 600 !important;
	line-height: 24px !important;
	color: var(--sk-black) !important;
}

.skillable-curriculum-card .tutor-course-topic {
	width: 100%;
	max-width: 255px;
}

.skillable-curriculum-card .tutor-accordion {
	background: transparent;
	border-radius: 0;
	overflow: visible;
}

.skillable-curriculum-card .tutor-accordion-item {
	border: none;
	margin: 0 0 4px;
}

.skillable-curriculum-card .tutor-accordion-item-header {
	position: relative;
	display: flex;
	align-items: center;
	background: #f7f7f7;
	border-radius: var(--sk-radius-sm);
	padding: 10px 36px 10px 12px;
	font-size: 14px;
	font-weight: 600;
	line-height: 17px;
	color: var(--sk-black);
	border: none;
}

.skillable-curriculum-card .tutor-accordion-item-header .tutor-row {
	flex: 1 1 auto;
	min-width: 0;
	width: 100%;
	margin: 0;
}

.skillable-curriculum-card .tutor-accordion-item-header .tutor-col {
	min-width: 0;
}

.skillable-curriculum-card .tutor-accordion-item-header .tutor-col-auto {
	flex-shrink: 0;
}

.skillable-curriculum-card .tutor-course-topic-summary {
	white-space: nowrap;
	font-variant-numeric: tabular-nums;
	line-height: 1.25;
	letter-spacing: 0;
}

.skillable-curriculum-card .tutor-accordion-item-header:hover {
	background: #efefef;
}

.skillable-curriculum-card .tutor-accordion-item-header.is-active {
	background: #f7f7f7;
	color: var(--sk-black);
}

/* Font Awesome: chevron-right (đóng) / chevron-down (mở) — thay glyph Tutor */
.skillable-curriculum-card .tutor-accordion-item-header::after {
	content: '\f054' !important;
	font-family: 'Font Awesome 6 Free' !important;
	font-weight: 900 !important;
	font-style: normal;
	font-size: 12px;
	line-height: 1;
	display: block;
	width: auto;
	height: auto;
	position: absolute;
	right: 10px;
	top: 50%;
	transform: translateY(-50%);
	margin: 0;
	padding: 0;
	color: #565656;
	border: none;
	-webkit-font-smoothing: antialiased;
}

.skillable-curriculum-card .tutor-accordion-item-header.is-active::after {
	content: '\f078' !important;
	color: #565656;
	transform: translateY(-50%);
}

.skillable-curriculum-card .tutor-accordion-item-body {
	display: flex;
	flex-direction: column;
	gap: 4px;
	background: transparent;
	padding: 4px 0 0;
}

.skillable-curriculum-card .tutor-accordion-item-body-content {
	padding: 0;
}

.skillable-curriculum-card .tutor-course-topic-item {
	margin: 0;
}

.skillable-curriculum-card .tutor-course-topic-item a {
	display: flex;
	flex-direction: row;
	align-items: center;
	justify-content: space-between;
	width: 100%;
	min-height: 65px;
	padding: 10px 12px;
	gap: 12px;
	box-sizing: border-box;
	border-radius: var(--sk-radius-sm);
	background: #f7f7f7;
	border: 1px solid transparent;
	text-decoration: none;
	box-shadow: none;
	transition: background 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.skillable-curriculum-card .skillable-curriculum-item a {
	justify-content: flex-start;
}

.skillable-curriculum-card .skillable-curriculum-item.skillable-curriculum-item--pending a,
.skillable-curriculum-card .skillable-curriculum-item.skillable-curriculum-item--locked a {
	background: transparent;
	border-radius: 2px;
}

.skillable-curriculum-card .skillable-curriculum-item.skillable-curriculum-item--completed:not(.is-active) a {
	background: #f7f7f7;
	border-radius: var(--sk-radius-sm);
}

.skillable-curriculum-card .skillable-curriculum-item.is-active a {
	background: var(--sk-blue-10);
	border: 1px solid #fff;
	box-shadow: var(--sk-shadow-card);
	border-radius: var(--sk-radius-sm);
}

.skillable-curriculum-card .tutor-course-topic-item.is-active:not(.skillable-curriculum-item) a {
	background: var(--sk-blue-10);
	border: 1px solid #fff;
	box-shadow: var(--sk-shadow-card);
	border-radius: var(--sk-radius-sm);
}

.skillable-curriculum-card .tutor-course-topic-item:not(.is-active) a:hover {
	background: #efefef;
}

.skillable-curriculum-card .skillable-curriculum-item.skillable-curriculum-item--pending a:hover,
.skillable-curriculum-card .skillable-curriculum-item.skillable-curriculum-item--locked a:hover {
	background: rgba(0, 0, 0, 0.03);
}

.skillable-curriculum-card .skillable-curriculum-item__main {
	align-items: center;
	margin-right: 0 !important;
	flex: 1 1 auto;
	min-width: 0;
	gap: 12px;
}

.skillable-curriculum-card .skillable-curriculum-item__fa-wrap {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 20px;
	height: 20px;
	flex-shrink: 0;
}

.skillable-curriculum-card .skillable-curriculum-item__fa {
	font-size: 20px;
	line-height: 1;
	color: var(--sk-blue-60);
}

.skillable-curriculum-card .skillable-curriculum-item--pending .skillable-curriculum-item__fa,
.skillable-curriculum-card .skillable-curriculum-item--locked .skillable-curriculum-item__fa,
.skillable-curriculum-card .skillable-curriculum-item.skillable-curriculum-item--completed:not(.is-active) .skillable-curriculum-item__fa {
	color: #929292;
}

.skillable-curriculum-card .skillable-curriculum-item__ic {
	display: inline-flex !important;
	align-items: center;
	justify-content: center;
	width: 20px;
	height: 20px;
	margin: 0 !important;
	font-size: 20px;
	line-height: 1;
	flex-shrink: 0;
	color: var(--sk-blue-60);
}

.skillable-curriculum-card .skillable-curriculum-item__titles {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	justify-content: center;
	gap: 4px;
	margin: 0 !important;
	min-height: 45px;
}

.skillable-curriculum-card .skillable-curriculum-item__tap {
	font-size: 14px;
	font-weight: 600;
	line-height: 17px;
	color: #565656;
}

.skillable-curriculum-card .skillable-curriculum-item__name {
	font-size: 10px;
	font-weight: 400;
	line-height: 12px;
	color: #565656;
}

.skillable-curriculum-card .skillable-curriculum-item__topic {
	display: none;
}

.skillable-curriculum-card .skillable-curriculum-item.skillable-curriculum-item--completed:not(.is-active) .skillable-curriculum-item__tap,
.skillable-curriculum-card .skillable-curriculum-item.skillable-curriculum-item--completed:not(.is-active) .skillable-curriculum-item__name {
	color: #929292;
}

.skillable-curriculum-card .skillable-curriculum-item.skillable-curriculum-item--pending .skillable-curriculum-item__tap,
.skillable-curriculum-card .skillable-curriculum-item.skillable-curriculum-item--pending .skillable-curriculum-item__name,
.skillable-curriculum-card .skillable-curriculum-item.skillable-curriculum-item--locked .skillable-curriculum-item__tap,
.skillable-curriculum-card .skillable-curriculum-item.skillable-curriculum-item--locked .skillable-curriculum-item__name {
	color: #929292;
}

.skillable-curriculum-card .skillable-curriculum-item.is-active .skillable-curriculum-item__tap,
.skillable-curriculum-card .skillable-curriculum-item.is-active .skillable-curriculum-item__name {
	color: var(--sk-black);
}

.skillable-curriculum-card .tutor-course-topic-item:not(.skillable-curriculum-item) .tutor-course-topic-item-title {
	display: flex;
	flex-direction: column;
	gap: 4px;
	font-size: 14px;
	font-weight: 600;
	line-height: 17px;
	color: #565656;
}

.skillable-curriculum-card .tutor-course-topic-item.is-active:not(.skillable-curriculum-item) .tutor-course-topic-item-title {
	color: var(--sk-black);
}

.skillable-curriculum-card .tutor-course-topic-item-icon {
	font-size: 20px;
	width: 20px;
	height: 20px;
	display: inline-flex !important;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	color: var(--sk-blue-60);
}

.skillable-curriculum-card .tutor-course-topic-item:not(.skillable-curriculum-item) a > .tutor-d-flex:first-child {
	flex: 1 1 auto;
	min-width: 0;
	margin-right: 0 !important;
	align-items: center;
	gap: 12px;
}

/* ----- Khối Tải xuống + meta (Figma: info course) ----- */
.skillable-sidebar-info {
	display: flex;
	flex-direction: column;
	align-items: center;
	width: 100%;
	max-width: 295px;
	margin: 16px auto 0;
	padding: 20px;
	gap: 16px;
	box-sizing: border-box;
	background: #fff;
	border-radius: var(--sk-radius-lg);
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

.skillable-sidebar-info__btns {
	display: flex;
	flex-direction: column;
	align-items: center;
	width: 100%;
	max-width: 255px;
	gap: 12px;
}

.skillable-btn {
	display: inline-flex;
	flex-direction: row;
	align-items: center;
	justify-content: center;
	gap: 8px;
	width: 100%;
	padding: 12px 23px;
	border-radius: var(--sk-radius-sm);
	font-family: inherit;
	font-size: 16px;
	font-weight: 600;
	line-height: 19px;
	text-decoration: none;
	border: none;
	cursor: pointer;
	box-sizing: border-box;
}

.skillable-btn__label {
	flex: 0 1 auto;
	text-align: center;
}

.skillable-btn__icon {
	flex-shrink: 0;
	width: 24px;
	height: 24px;
	font-size: 18px;
	line-height: 24px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
}

.skillable-btn__icon--img {
	display: block;
	object-fit: contain;
	pointer-events: none;
}

.skillable-btn--primary {
	min-height: 56px;
	background: var(--sk-blue-dark);
	color: #fff;
}

.skillable-btn--primary:disabled {
	/*opacity: 0.45;*/
	cursor: not-allowed;
}

.skillable-btn--outline {
	min-height: 48px;
	background: #fff;
	color: var(--sk-blue);
	border: 1.6px solid var(--sk-blue);
}

.skillable-btn--outline .skillable-btn__icon:not(.skillable-btn__icon--img) {
	color: var(--sk-blue);
}

.skillable-btn--outline:disabled {
	/*opacity: 0.45;*/
	cursor: not-allowed;
}

.skillable-sidebar-info__meta {
	list-style: none;
	margin: 0;
	padding: 0 16px;
	width: 100%;
	max-width: 255px;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 10px;
	box-sizing: border-box;
}

.skillable-sidebar-info__meta li {
	display: flex;
	flex-direction: row;
	align-items: center;
	gap: 8px;
	min-height: 28px;
	margin: 0;
	padding: 0;
}

/* Icon Tutor — đồng bộ course-entry-box (footer: tutor-color-black + icon_class) */
.skillable-meta-ic {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 16px;
	height: 16px;
	flex-shrink: 0;
	font-size: 16px;
	line-height: 1;
}

.skillable-meta__text {
	font-size: 12px;
	font-weight: 400;
	line-height: 15px;
	color: var(--sk-text);
	flex: 1 1 auto;
	min-width: 0;
}

/* ----- Topbar ----- */
.skillable-lesson-topbar {
	display: flex;
	align-items: center;
	flex-wrap: nowrap;
	background: #fff;
	border-bottom: 1px solid var(--sk-gray-20);
	padding: 12px 20px !important;
	/* Dính ngay dưới header site cố định (z-index < .site-header) để không bị che khi cuộn */
	position: sticky;
	z-index: 998;
}
body.single-lesson:not(.admin-bar) .skillable-lesson-topbar {
	top: 70px;
}
body.admin-bar.single-lesson .skillable-lesson-topbar {
	top: 102px;
}
@media screen and (max-width: 782px) {
	body.admin-bar.single-lesson .skillable-lesson-topbar {
		top: 116px;
	}
}

/* Đồng bộ vị trí offcanvas sidebar với header + topbar sticky */
body.single-lesson:not(.admin-bar) .tutor-course-single-content-wrapper.tutorbase-lesson-3col {
	--skillable-lesson-topbar-offset: 130px;
}

body.admin-bar.single-lesson .tutor-course-single-content-wrapper.tutorbase-lesson-3col {
	--skillable-lesson-topbar-offset: 162px;
}

@media screen and (max-width: 782px) {
	body.admin-bar.single-lesson .tutor-course-single-content-wrapper.tutorbase-lesson-3col {
		--skillable-lesson-topbar-offset: 176px;
	}
}

/*
 * Tutor: .skillable-lesson-topbar__right chỉ tutor-d-xl-flex → dưới 1200px mất tiến độ + nút hoàn thành.
 * Từ tablet: hiển thị hàng phải (flex-wrap), ẩn hamburger trùng (đã có thanh tiến độ dưới trên mobile).
 */
@media (min-width: 768px) {
	.skillable-lesson-topbar {
		flex-wrap: wrap;
		row-gap: 8px;
	}
	.skillable-lesson-topbar .skillable-lesson-topbar__right {
		display: flex !important;
		align-items: center;
		flex-wrap: wrap;
		justify-content: flex-end;
		flex: 1 1 auto;
		min-width: 0;
		gap: 8px;
	}
	.skillable-lesson-topbar .skillable-lesson-topbar__right .tutor-fs-7 {
		max-width: 100%;
	}
	.skillable-lesson-topbar .skillable-lesson-topbar__actions {
		display: none !important;
	}
}
@media (max-width: 767px) {
	.skillable-lesson-topbar .skillable-lesson-topbar__right {
		display: none !important;
	}
	.skillable-lesson-topbar .skillable-lesson-topbar__actions {
		display: flex !important;
	}
}

.skillable-lesson-topbar__title {
	font-weight: 600;
	color: var(--sk-black);
	max-width: 40vw;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.tutor-course-single-content-wrapper #tutor-single-entry-content .skillable-lesson-topbar {
	--skillable-lesson-topbar-offset: 60px;
}

.skillable-lesson-topbar__mobile-actions {
	align-items: center;
	gap: 4px;
	flex-shrink: 0;
}

.skillable-lesson-topbar__actions {
	align-items: center;
	gap: 4px;
	flex-shrink: 0;
}

/* Responsive: giữ nguyên logic offcanvas mặc định của Tutor LMS. */

/* ----- Main: tiêu đề khóa học ----- */
.skillable-lesson-body {
	padding: 20px;
}

.skillable-lesson-heading__title {
	font-size: 24px;
	font-weight: 600;
	line-height: 1.2;
	margin: 0 0 12px;
	color: #000;
}

.skillable-lesson-heading__row {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	align-items: center;
	gap: 12px;
	margin-bottom: 20px;
}

.skillable-lesson-heading__category {
	margin: 0;
	font-size: 12px;
	color: var(--sk-text);
}

.skillable-lesson-heading__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 16px;
}

.skillable-icon-link {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 6px 8px;
	background: transparent;
	border: none;
	font-size: 12px;
	color: var(--sk-text);
	cursor: pointer;
	border-radius: var(--sk-radius-sm);
}

.skillable-icon-link:hover {
	background: var(--sk-gray-10);
}

.skillable-icon-link__ic {
	font-size: 14px;
	line-height: 1;
}

.skillable-share-btn[data-copied='1']::after {
	content: ' ✓';
	font-size: 11px;
	color: var(--sk-blue);
}

/* ----- Video ----- */
.skillable-lesson-video {
	position: relative;
	border-radius: var(--sk-radius-sm);
	overflow: hidden;
	margin-bottom: 24px;
}

.skillable-lesson-video .tutor-video-player,
.skillable-lesson-video video {
	border-radius: var(--sk-radius-sm);
}

/* Tránh nháy video / Plyr: ẩn khối player tới khi sẵn sàng (JS gỡ .skillable-lesson-video--loading) */
.skillable-lesson-video--loading .skillable-lesson-video__inner {
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
	contain: paint;
}

.skillable-lesson-video:not(.skillable-lesson-video--loading) .skillable-lesson-video__inner {
	opacity: 1;
	visibility: visible;
	transition: opacity 0.12s ease;
}

.skillable-lesson-video__loading {
	position: absolute;
	inset: 0;
	z-index: 3;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 12px;
	background: #eceff4;
	color: #151515;
	font-size: 14px;
	font-weight: 600;
}

.skillable-lesson-video:not(.skillable-lesson-video--loading) .skillable-lesson-video__loading {
	display: none;
	pointer-events: none;
}

.skillable-lesson-video__loading-spin {
	width: 36px;
	height: 36px;
	border: 3px solid rgba(15, 43, 184, 0.2);
	border-top-color: #0f2bb8;
	border-radius: 50%;
	animation: skillable-video-spin 0.75s linear infinite;
}

@keyframes skillable-video-spin {
	to {
		transform: rotate(360deg);
	}
}

/* ----- Accordions ----- */
.skillable-lesson-accordions {
	display: flex;
	flex-direction: column;
	border-top: 1px solid var(--sk-line);
}

.skillable-acc {
	border-bottom: 1px solid var(--sk-line);
	background: transparent;
}

.skillable-acc__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 14px 16px;
	cursor: pointer;
	list-style: none;
	font-size: 16px;
	font-weight: 600;
	color: #151515;
}

.skillable-acc[open] > .skillable-acc__head {
	color: #0f2bb8;
}

.skillable-acc__head::-webkit-details-marker {
	display: none;
}

.skillable-acc__lead {
	display: flex;
	align-items: center;
	gap: 12px;
	flex: 1 1 auto;
	min-width: 0;
}

.skillable-acc__label {
	color: inherit;
}

/* Icon SVG theme — dùng mask + currentColor (khớp cụp #151515 / mở #0F2BB8) */
.skillable-acc__ic {
	display: block;
	flex-shrink: 0;
	background-color: currentColor;
	-webkit-mask-repeat: no-repeat;
	mask-repeat: no-repeat;
	-webkit-mask-position: center;
	mask-position: center;
	-webkit-mask-size: contain;
	mask-size: contain;
}

.skillable-acc__ic--tom {
	width: 14px;
	height: 14px;
	-webkit-mask-image: url('../images/tom_tat.svg');
	mask-image: url('../images/tom_tat.svg');
}

.skillable-acc__ic--vidu {
	width: 12px;
	height: 14px;
	-webkit-mask-image: url('../images/vi_du.svg');
	mask-image: url('../images/vi_du.svg');
}

.skillable-acc__ic--giai {
	width: 10px;
	height: 14px;
	-webkit-mask-image: url('../images/giai_thich.svg');
	mask-image: url('../images/giai_thich.svg');
}

.skillable-acc__ic--quiz {
	width: 14px;
	height: 14px;
	-webkit-mask-image: url('../images/quiz.svg');
	mask-image: url('../images/quiz.svg');
}

.skillable-acc__chev {
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	width: 24px;
	height: 24px;
}

.skillable-acc__chev-img {
	display: block;
	background-color: currentColor;
	-webkit-mask-repeat: no-repeat;
	mask-repeat: no-repeat;
	-webkit-mask-position: center;
	mask-position: center;
	-webkit-mask-size: contain;
	mask-size: contain;
	width: 9px;
	height: 5px;
}

.skillable-acc__chev--down {
	-webkit-mask-image: url('../images/down-arrow.svg');
	mask-image: url('../images/down-arrow.svg');
}

.skillable-acc__chev--up {
	-webkit-mask-image: url('../images/up-arrow.svg');
	mask-image: url('../images/up-arrow.svg');
}

.skillable-acc:not([open]) .skillable-acc__chev--up {
	display: none;
}

.skillable-acc[open] .skillable-acc__chev--down {
	display: none;
}

/* Tệp đính kèm / bình luận — icon legacy */
.skillable-acc__icon {
	width: 16px;
	height: 16px;
	flex-shrink: 0;
	position: relative;
	border: 1px solid currentcolor;
	border-radius: 50%;
}

.skillable-acc__icon--clip::after {
	content: '⌁';
	font-size: 10px;
	position: absolute;
	left: 2px;
	top: -1px;
	color: inherit;
}
.skillable-acc__icon--chat::after {
	content: '💬';
	font-size: 10px;
	position: absolute;
	left: 0;
	top: -2px;
	border: none;
}

.skillable-acc__body {
	padding: 8px 16px 24px;
	font-size: 14px;
	line-height: 1.45;
	color: #1d2129;
}

.skillable-placeholder {
	color: var(--sk-muted);
}

.skillable-quiz-intro {
	margin-top: 0;
}

.skillable-quiz-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 12px 16px;
	margin: 12px 0;
	padding: 0 12px;
}

@media (max-width: 479px) {
	.skillable-quiz-grid {
		grid-template-columns: 1fr;
	}
}

.skillable-q {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 14px;
	cursor: default;
}

.skillable-lesson-quiz-root .skillable-q--radio,
.skillable-lesson-quiz-root .skillable-q--check {
	cursor: pointer;
}

.skillable-quiz-question {
	margin: 0 0 20px;
	padding: 0;
	border: 0;
	min-width: 0;
}

.skillable-quiz-question__prompt {
	display: flex;
	gap: 6px 10px;
	align-items: flex-start;
	margin-bottom: 10px;
	font-size: 15px;
	line-height: 1.45;
	font-weight: 600;
	color: #1d2129;
}

.skillable-quiz-question__num {
	flex-shrink: 0;
}

.skillable-quiz-question__text {
	flex: 1;
	min-width: 0;
	font-weight: 600;
}

.skillable-quiz-question__text p {
	margin: 0 0 0.5em;
}

.skillable-quiz-question__text p:last-child {
	margin-bottom: 0;
}

.skillable-quiz-grid--choices {
	margin-top: 4px;
}

/* Sau khi đóng popup kết quả: tô màu câu đúng/sai và viền đáp án (skillable-lesson-quiz.js) */
.skillable-lesson-quiz-root.skillable-quiz-root--review .skillable-quiz-question--correct .skillable-quiz-question__prompt {
	color: #0d7a3e;
}

.skillable-lesson-quiz-root.skillable-quiz-root--review .skillable-quiz-question--incorrect .skillable-quiz-question__prompt {
	color: #c41e1e;
}

.skillable-lesson-quiz-root.skillable-quiz-root--review .skillable-q.skillable-q--review-correct {
	border-color: #0d7a3e;
	border-width: 1px;
	background: rgba(13, 122, 62, 0.06);
}

.skillable-lesson-quiz-root.skillable-quiz-root--review .skillable-q.skillable-q--review-wrong {
	border-color: #c41e1e;
	border-width: 1px;
	background: rgba(196, 30, 30, 0.06);
}

.skillable-lesson-quiz-root.skillable-quiz-root--review .skillable-q.skillable-q--review-correct:hover {
	border-color: #0b6b36;
	background: rgba(13, 122, 62, 0.1);
}

.skillable-lesson-quiz-root.skillable-quiz-root--review .skillable-q.skillable-q--review-wrong:hover {
	border-color: #a81818;
	background: rgba(196, 30, 30, 0.1);
}

.skillable-quiz-sub {
	margin: 16px 0 8px;
	font-size: 14px;
}

.skillable-lesson-quiz-root .skillable-q input[type='radio'],
.skillable-lesson-quiz-root .skillable-q input[type='checkbox'] {
	-webkit-appearance: auto !important;
	appearance: auto !important;
	display: inline-block !important;
	visibility: visible !important;
	opacity: 1 !important;
	position: static !important;
	width: 18px;
	height: 18px;
	margin: 0;
	flex-shrink: 0;
	accent-color: var(--sk-blue);
	cursor: pointer;
}

.skillable-lesson-quiz-root .skillable-q {
	min-height: 36px;
	padding: 8px 10px;
	border: 1px solid var(--sk-gray-20);
	border-radius: 10px;
	background: #fff;
	cursor: pointer;
	font-weight: 400;
}

.skillable-lesson-quiz-root .skillable-q span {
	font-weight: 400;
}

.skillable-lesson-quiz-root .skillable-q:hover {
	border-color: var(--sk-blue-20);
	background: var(--sk-blue-10);
}

.skillable-quiz-actions {
	display: none;
	margin-top: 8px;
	padding: 0 12px 6px;
}

.skillable-quiz-submit {
	font-family: inherit;
	font-size: 15px;
	font-weight: 600;
	line-height: 1.2;
	border: 0;
	border-radius: var(--sk-radius-sm);
	padding: 10px 18px;
	background: var(--sk-blue);
	color: #fff;
	cursor: pointer;
	box-shadow: var(--sk-shadow-card);
}

.skillable-quiz-submit:hover {
	background: var(--sk-blue-60);
}

.skillable-quiz-submit:focus-visible {
	outline: 2px solid var(--sk-blue);
	outline-offset: 2px;
}

/* Popup kết quả quiz (skillable-lesson-quiz.js) */
body.skillable-quiz-result--open {
	overflow: hidden;
}

.skillable-quiz-result-overlay {
	position: fixed;
	inset: 0;
	z-index: 100000;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 20px;
	box-sizing: border-box;
}

.skillable-quiz-result__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(15, 23, 42, 0.55);
	backdrop-filter: blur(4px);
}

.skillable-quiz-result__dialog {
	position: relative;
	width: 100%;
	max-width: 420px;
	background: #fff;
	border-radius: var(--sk-radius-lg);
	box-shadow: 0 20px 50px rgba(15, 43, 184, 0.18), 0 4px 16px rgba(0, 0, 0, 0.08);
	overflow: hidden;
	outline: none;
}

.skillable-quiz-result__head {
	padding: 22px 24px 12px;
	background: linear-gradient(135deg, var(--sk-blue-10) 0%, #fff 70%);
	border-bottom: 1px solid var(--sk-gray-20);
}

.skillable-quiz-result__title {
	margin: 0;
	font-size: 20px;
	font-weight: 700;
	color: var(--sk-black);
	line-height: 1.3;
}

.skillable-quiz-result__body {
	padding: 8px 24px 4px;
}

.skillable-quiz-result__stats {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 0;
}

.skillable-quiz-result__stats li {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding: 14px 0;
	border-bottom: 1px solid var(--sk-gray-20);
	font-size: 15px;
}

.skillable-quiz-result__stats li:last-child {
	border-bottom: 0;
}

.skillable-quiz-result__label {
	color: var(--sk-muted);
	font-weight: 500;
}

.skillable-quiz-result__value {
	font-size: 18px;
	font-weight: 700;
	color: var(--sk-black);
}

.skillable-quiz-result__value--ok {
	color: #0d7a3e;
}

.skillable-quiz-result__value--bad {
	color: #c41e1e;
}

.skillable-quiz-result__hint {
	margin: 12px 0 0;
	font-size: 13px;
	line-height: 1.45;
	color: var(--sk-muted);
}

.skillable-quiz-result__foot {
	padding: 16px 24px 22px;
	display: flex;
	justify-content: flex-end;
}

.skillable-quiz-result__btn {
	font-family: inherit;
	font-size: 15px;
	font-weight: 600;
	border-radius: var(--sk-radius-sm);
	padding: 10px 22px;
	cursor: pointer;
	border: 0;
}

.skillable-quiz-result__btn--primary {
	background: var(--sk-blue);
	color: #fff;
	box-shadow: var(--sk-shadow-card);
}

.skillable-quiz-result__btn--primary:hover {
	background: var(--sk-blue-60);
}

.skillable-quiz-result__btn--primary:focus-visible {
	outline: 2px solid var(--sk-blue);
	outline-offset: 2px;
}

/* ----- Transcript / Phụ đề (Figma: Transcript + Frame 8 + gradient Frame 32) ----- */
.skillable-transcript {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 10px;
	width: 100%;
	max-width: 255px;
	box-sizing: border-box;
}

@media (max-width: 767px) {
	.skillable-transcript {
		max-width: 100%;
	}
}

/* Video ngôn ngữ ký (YouTube) phía trên phụ đề — chỉ chế độ điếc */
.skillable-transcript__sign-video-block {
	display: flex;
	flex-direction: column;
	align-items: stretch;
	align-self: stretch;
	gap: 8px;
	width: 100%;
}

.skillable-transcript__sign-video-title {
	margin: 0;
	width: 100%;
	font-size: 16px;
	font-weight: 600;
	line-height: 1.2;
	color: var(--sk-black);
	text-align: left;
}

.skillable-transcript__sign-video {
	width: 100%;
	align-self: stretch;
	border: 1px solid var(--sk-gray-20);
	border-radius: var(--sk-radius-lg);
	overflow: hidden;
	background: var(--sk-white, #fff);
	box-sizing: border-box;
	aspect-ratio: 16 / 9;
}

.skillable-transcript__sign-video .wp-video,
.skillable-transcript__sign-video iframe {
	width: 100% !important;
	height: 100% !important;
	max-width: 100%;
	border: 0;
	border-radius: 0;
	display: block;
	vertical-align: middle;
}

.skillable-transcript__title {
	margin: 0;
	width: 100%;
	align-self: stretch;
	font-size: 16px;
	font-weight: 600;
	line-height: 19px;
	color: var(--sk-black);
}

.skillable-transcript__scroll {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: stretch;
	gap: 20px;
	width: 100%;
	min-height: 0;
	max-height: min(70vh, 884px);
	padding: 44px 20px 20px;
	overflow-x: hidden;
	overflow-y: auto;
	isolation: isolate;
	background: var(--sk-gray-10);
	border-radius: var(--sk-radius-lg);
	/* Tự cao theo nội dung; chỉ scroll khi vượt max-height */
	flex: 0 0 auto;
}

.skillable-transcript__scroll::before {
	content: '';
	position: absolute;
	left: 0;
	right: 0;
	top: 0;
	bottom: 0;
	z-index: 2;
	pointer-events: none;
	border-radius: inherit;
	background: linear-gradient(
		180deg,
		#f6f6f6 0%,
		rgba(246, 246, 246, 0) 8%,
		rgba(246, 246, 246, 0) 88%,
		#f6f6f6 100%
	);
}

.skillable-transcript__line {
	position: relative;
	z-index: 1;
	display: flex;
	flex-direction: row;
	align-items: flex-start;
	gap: 16px;
	width: 100%;
	text-align: left;
	background: none;
	border: none;
	padding: 0;
	cursor: pointer;
	font: inherit;
	/* Tránh bị "nén" chiều cao trong một số reset/theme */
	height: auto;
}

.skillable-transcript__time {
	flex: 0 0 auto;
	min-width: 26px;
	font-size: 12px;
	font-weight: 400;
	line-height: 1.3;
	color: #929292;
}

.skillable-transcript__text {
	flex: 1 1 auto;
	min-width: 0;
	font-size: 14px;
	font-weight: 400;
	/* Dùng line-height tương đối để không chồng chữ khi font/zoom thay đổi */
	line-height: 1.45;
	color: #333333;
	display: block;
	white-space: normal;
	overflow-wrap: anywhere;
	word-break: break-word;
}

.skillable-transcript__line.is-active .skillable-transcript__time {
	color: var(--sk-blue) !important;
	font-weight: 400;
}

.skillable-transcript__line.is-active .skillable-transcript__text {
	color: var(--sk-blue-60) !important;
	font-weight: 400;
	line-height: 1.45;
}

body.single-lesson .tutorbase-lesson-3col__col--aside .skillable-transcript__line.is-active .skillable-transcript__time {
	color: var(--sk-blue) !important;
	font-weight: 400;
}

body.single-lesson .tutorbase-lesson-3col__col--aside .skillable-transcript__line.is-active .skillable-transcript__text {
	color: var(--sk-blue-60) !important;
	font-weight: 400;
	line-height: 1.45;
}

/* Quiz wrapper trong cột giữa */
.skillable-lms-player__main .tutor-quiz-wrapper {
	padding: 0 8px 16px;
}

/* Ẩn tiêu đề trùng trên desktop nếu đã có skillable-lesson-heading */
@media (min-width: 1200px) {
	.skillable-lesson-topbar__title {
		/* Desktop: ẩn title trên thanh xanh cho gọn (vẫn giữ progress + hoàn thành) */
		display: none !important;
	}
}

/* ----- Trang chi tiết khóa học (video giới thiệu + curriculum + transcript) ----- */
.skillable-course-page.tutor-container {
	max-width: 1440px;
	width: 100%;
}

/*
 * Tutor (tutor-front.min.css): dưới 1200px ẩn .tutor-course-single-sidebar-wrapper (offcanvas + opacity:0).
 * Trang chi tiết khóa học Skillable không bọc .tutor-course-single-content-wrapper và không có nút mở sidebar
 * → cột curriculum / menu nội dung biến mất trên mobile & tablet.
 * Khôi phục hiển thị trong luồng grid (không áp cho trang bài học có offcanvas).
 */
@media (max-width: 1199px) {
	.skillable-course-page .skillable-lms-player__sidebar.tutor-course-single-sidebar-wrapper {
		opacity: 1 !important;
		z-index: 1 !important;
		position: relative !important;
		inset: auto !important;
		width: 100% !important;
		max-width: 100% !important;
		flex: 1 1 auto !important;
		height: auto !important;
		min-height: 0;
		padding-bottom: 0 !important;
		overflow: visible !important;
		pointer-events: auto !important;
		background-color: transparent !important;
		border-right: none !important;
	}

	/* Nút đóng sidebar của Tutor chỉ dùng với offcanvas — trang khóa học không có panel trượt */
	.skillable-course-page .skillable-curriculum-head .tutor-d-xl-none {
		display: none !important;
	}
}

.skillable-wishlist-link {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 6px 8px;
	font-size: 12px;
	color: var(--sk-text);
	text-decoration: none;
	border-radius: var(--sk-radius-sm);
}

.skillable-wishlist-link:hover {
	background: var(--sk-gray-10);
}

.skillable-course-rating {
	margin-bottom: 4px;
}

.skillable-course-legacy-sidebar {
	padding-top: 8px;
	border-top: 1px solid var(--sk-line);
}

.skillable-course-sidebar-entry .tutor-card,
.skillable-course-mobile-enroll .tutor-card {
	border-radius: var(--sk-radius-lg);
}

/* Tab điều hướng: list hợp lệ + flex — mobile xử lý riêng (cuộn ngang) */
.skillable-course-tabs .tutor-nav {
	display: flex;
	flex-wrap: wrap;
	align-items: stretch;
	gap: 4px 8px;
	list-style: none;
	margin: 0;
	padding: 0;
}

.skillable-course-tabs .tutor-nav-item {
	margin: 0;
}

.skillable-course-tabs .tutor-nav-link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 44px;
	padding: 8px 14px;
	border-radius: var(--sk-radius-sm);
	font-size: 14px;
	font-weight: 600;
	color: var(--sk-muted);
	text-decoration: none;
	border: 1px solid transparent;
	transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.skillable-course-tabs .tutor-nav-link:hover {
	color: var(--sk-black);
	background: var(--sk-gray-10);
}

.skillable-course-tabs .tutor-nav-link.is-active {
	color: var(--sk-blue-60);
	background: var(--sk-blue-10);
	border-color: var(--sk-blue-20);
}

/* Dropdown "More" của priority-nav */
.skillable-course-tabs .tutor-nav-more {
	position: relative;
}

.skillable-course-tabs .tutor-nav-more-list {
	min-width: 180px;
}

/* ----- Mobile / nhỏ: cuộn ngang một hàng — tránh priority-nav ẩn hết tab ----- */
@media (max-width: 767px) {
	.skillable-course-page.tutor-container {
		padding-left: 12px;
		padding-right: 12px;
	}

	.skillable-lms-player__grid {
		padding-left: 0;
		padding-right: 0;
	}

	.skillable-lesson-body {
		padding: 16px;
	}

	.skillable-lesson-heading__title {
		font-size: 1.25rem;
		line-height: 1.35;
	}

	.skillable-lesson-heading__row {
		flex-direction: column;
		align-items: flex-start;
		gap: 10px;
	}

	.skillable-lesson-heading__actions {
		width: 100%;
		justify-content: flex-start;
		flex-wrap: wrap;
	}

	.skillable-course-tabs.tutor-mt-32 {
		margin-top: 20px !important;
	}

	.skillable-course-tabs .tutor-tab.tutor-pt-24 {
		padding-top: 16px !important;
	}

	.skillable-course-tabs .tutor-is-sticky {
		position: relative;
		top: auto;
		margin: 0 -4px;
		padding: 0 4px 2px;
		overflow: visible;
	}

	.skillable-course-tabs .tutor-nav {
		flex-wrap: nowrap;
		gap: 6px;
		overflow-x: auto;
		overflow-y: hidden;
		-webkit-overflow-scrolling: touch;
		scroll-snap-type: x proximity;
		padding-bottom: 10px;
		margin: 0;
		border-bottom: 1px solid var(--sk-line);
		scrollbar-width: thin;
	}

	.skillable-course-tabs .tutor-nav::-webkit-scrollbar {
		height: 4px;
	}

	.skillable-course-tabs .tutor-nav::-webkit-scrollbar-thumb {
		background: var(--sk-gray-20);
		border-radius: 4px;
	}

	.skillable-course-tabs .tutor-nav-item {
		flex: 0 0 auto;
		scroll-snap-align: start;
	}

	.skillable-course-tabs .tutor-nav-link {
		white-space: nowrap;
		min-height: 42px;
		padding: 8px 12px;
		font-size: 13px;
	}

	.skillable-mode-card,
	.skillable-curriculum-card,
	.skillable-sidebar-info,
	.skillable-lesson-dl-card--lesson-sidebar {
		max-width: 100%;
	}

	.skillable-curriculum-card .tutor-course-topic,
	.skillable-curriculum-head,
	.skillable-mode-card__list,
	.skillable-mode-card__title {
		max-width: none;
		width: 100%;
	}

	.skillable-lms-player__transcript {
		max-height: min(50vh, 320px);
		padding: 16px;
	}

	.skillable-course-legacy-sidebar {
		padding-top: 16px;
		margin-top: 8px;
	}
}

/*
 * ---------------------------------------------------------------------------
 * Single lesson — chỉ tầng giao diện (ví dụ body: .wp-singular.single-lesson.lesson-template-default).
 * Logic LMS: giữ nguyên Tutor; tùy chỉnh layout/spacing thêm selector bên dưới khi cần.
 * Template liên quan: theme/tutor/single/lesson/complete_form.php; hook tutor_lesson/single/after/content trong inc.
 * ---------------------------------------------------------------------------
 */

/* ---------------------------------------------------------------------------
 * Khối chế độ học — chỉ sidebar bài học (tutorbase-lesson-3col), không đụng menu/course detail khác
 * --------------------------------------------------------------------------- */
body.single-lesson .tutorbase-lesson-3col__col--sidebar .skillable-mode-card--lesson-sidebar {
	max-width: 100%;
	width: 100%;
	margin-left: 0.875rem;
	margin-right: 0.875rem;
	margin-bottom: 0.75rem;
	padding: 1rem 0.75rem;
	background: #fff;
	border: 0;
	border-radius: 12px;
	box-shadow: none;
	box-sizing: border-box;
}

body.single-lesson .tutorbase-lesson-3col__col--sidebar .skillable-mode-card--lesson-sidebar .skillable-mode-card__title {
	max-width: none;
	width: 100%;
	height: auto;
	min-height: 0;
	white-space: normal;
	line-height: 1.25;
	font-size: 0.95rem;
	font-weight: 600;
	color: var(--tutor-color-text-primary, #1d2327);
}

body.single-lesson .tutorbase-lesson-3col__col--sidebar .skillable-mode-card--lesson-sidebar .skillable-mode-card__list {
	max-width: none;
	width: 100%;
}

/* Khối tải video / phụ đề — cùng nền trắng, bo góc, lề với khối chế độ học & nội dung khóa học */
body.single-lesson .tutorbase-lesson-3col__col--sidebar .skillable-lesson-dl-card--lesson-sidebar {
	margin-top: 0.875rem;
	margin-left: 0;
	margin-right: 0;
	margin-bottom: 0.875rem;
	width: 100%;
	max-width: 100%;
	padding: 1rem 0.9rem;
	background: #fff;
	border: 0;
	border-radius: 12px;
	box-shadow: none;
	box-sizing: border-box;
}

body.single-lesson .tutorbase-lesson-3col__col--sidebar .skillable-lesson-dl-card--lesson-sidebar .skillable-lesson-dl-panel {
	margin-top: 0;
	padding-top: 0;
	border-top: none;
}

body.single-lesson .tutorbase-lesson-3col__col--aside .skillable-transcript {
	max-width: 100%;
	margin-top: 0;
	gap: 12px;
}

body.single-lesson .tutorbase-lesson-3col__col--aside .skillable-transcript__title,
body.single-lesson .tutorbase-lesson-3col__col--aside .skillable-transcript__scroll {
	width: 100%;
}

body.single-lesson .tutorbase-lesson-3col__col--aside .skillable-transcript__sign-video-block {
	width: 100%;
}

body.single-lesson .tutorbase-lesson-3col__col--aside .tutorbase-lesson-3col__aside-inner {
	background: #fff;
	border: 0;
	border-radius: 0;
	box-shadow: none;
	padding: 12px;
}

body.single-lesson .tutorbase-lesson-3col__col--aside .skillable-transcript__scroll {
	background: #efefef;
	border-radius: 18px;
	padding: 20px 16px 18px;
}

/* Single lesson (cột aside): harden layout để không bị CSS global/minify ép chiều cao dòng */
body.single-lesson .tutorbase-lesson-3col__col--aside .skillable-transcript__scroll {
	line-height: 1.45;
	display: block !important;
}

body.single-lesson .tutorbase-lesson-3col__col--aside .skillable-transcript__line {
	display: flex !important;
	position: relative !important;
	inset: auto !important;
	top: auto !important;
	right: auto !important;
	bottom: auto !important;
	left: auto !important;
	transform: none !important;
	height: auto !important;
	min-height: 0 !important;
	padding: 6px 0 !important;
	margin: 0 !important;
	white-space: normal !important;
}

body.single-lesson .tutorbase-lesson-3col__col--aside .skillable-transcript__line:not(:last-child) {
	margin-bottom: 0 !important;
}

body.single-lesson .tutorbase-lesson-3col__col--aside .skillable-transcript__time {
	line-height: 1.3 !important;
}

body.single-lesson .tutorbase-lesson-3col__col--aside .skillable-transcript__text {
	position: static !important;
	display: block !important;
	line-height: 1.45 !important;
	white-space: normal !important;
	overflow-wrap: anywhere !important;
	word-break: break-word !important;
}

body.single-lesson .tutorbase-lesson-3col__col--aside .skillable-transcript__title {
	margin-top: 2px;
	margin-bottom: 4px;
}

body.single-lesson .tutorbase-lesson-3col__col--aside .skillable-transcript__scroll::before {
	display: none;
}

body.single-lesson .tutorbase-lesson-3col .tutorbase-lesson-3col__grid {
	background: #fff;
}

/* ----- Tải video / phụ đề + meta khóa học ----- */
.skillable-lesson-dl-panel {
	display: flex;
	flex-direction: column;
	gap: 1rem;
	width: 100%;
	max-width: 100%;
	box-sizing: border-box;
}

.skillable-lesson-dl-panel__actions {
	display: flex;
	flex-direction: column;
	gap: 0.625rem;
	width: 100%;
}

.skillable-lesson-dl-panel__actions .skillable-lesson-dl-panel__btn {
	width: 100%;
	max-width: 100%;
}

.skillable-lesson-dl-panel__btn {
	display: inline-flex;
	flex-direction: row;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	min-height: 3rem;
	padding: 0.6875rem 1.125rem;
	border-radius: var(--sk-radius);
	font-size: 0.9375rem;
	font-weight: 600;
	line-height: 1.25;
	letter-spacing: 0.01em;
	text-decoration: none;
	box-sizing: border-box;
	transition: background 0.15s ease, border-color 0.15s ease, opacity 0.15s ease;
}

/* Chữ và icon cùng hàng, căn giữa theo chiều dọc (optical alignment) */
.skillable-lesson-dl-panel__btn-txt {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	margin: 0;
	padding: 0;
	line-height: 1.25;
}

.skillable-lesson-dl-panel__btn--primary {
	background: var(--sk-blue);
	color: #fff;
	border: 2px solid var(--sk-blue);
}

.skillable-lesson-dl-panel__btn--primary:hover:not(.is-disabled) {
	background: var(--sk-blue-dark);
	border-color: var(--sk-blue-dark);
	color: #fff;
}

.skillable-lesson-dl-panel__btn--primary:visited {
	color: #fff;
}

.skillable-lesson-dl-panel__btn--ghost {
	background: #fff;
	color: var(--sk-blue);
	border: 2px solid var(--sk-blue);
}

.skillable-lesson-dl-panel__btn--ghost:hover:not(.is-disabled) {
	background: var(--sk-blue-10);
	color: var(--sk-blue);
}

.skillable-lesson-dl-panel__btn--ghost:visited {
	color: var(--sk-blue);
}

.skillable-lesson-dl-panel__btn.is-disabled {
	opacity: 0.45;
	cursor: not-allowed;
	pointer-events: none;
}

.skillable-lesson-dl-panel__btn-ic {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	line-height: 0;
}

/* Icon SVG nút: cùng kích thước hai nút, khớp chiều cao chữ (~1.25rem) */
.skillable-lesson-dl-panel__ic-img--btn-primary,
.skillable-lesson-dl-panel__ic-img--btn-ghost {
	width: 1.25rem;
	height: 1.25rem;
	max-width: 1.25rem;
	max-height: 1.25rem;
	object-fit: contain;
	object-position: center;
	vertical-align: middle;
}

.skillable-lesson-dl-panel__meta {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
}

.skillable-lesson-dl-panel__meta-item {
	display: flex;
	align-items: flex-start;
	gap: 0.625rem;
	font-size: 0.8125rem;
	line-height: 1.35;
	color: var(--sk-text);
}

.skillable-lesson-dl-panel__meta-ic {
	flex-shrink: 0;
	width: 22px;
	height: 22px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
}

.skillable-lesson-dl-panel__ic-img--meta {
	width: 20px;
	height: 20px;
	object-fit: contain;
	opacity: 0.9;
}

/* Ảnh / SVG dùng chung */
.skillable-lesson-dl-panel__ic-img {
	display: block;
	flex-shrink: 0;
	object-fit: contain;
}

.skillable-lesson-dl-panel__meta-txt {
	flex: 1;
	min-width: 0;
}
