/* Luyen nghe Video: content area only. Header/sidebar stay controlled by the active theme. */

.single-tndg_luyen_video #primary.content-area{
	background:#f7f9fc;
	border:0;
	box-shadow:none!important;
	padding:10px;
}

.tndg-lv-page{
	color:#111827;
}

.tndg-lv-header{
	display:flex;
	align-items:center;
	justify-content:space-between;
	gap:12px;
	margin:0 0 12px;
}

.tndg-lv-header .entry-title{
	margin:0;
	font-size:20px;
	font-weight:800;
	line-height:1.3;
	color:#111827;
}

.tndg-lv-level-badges{
	display:flex;
	gap:6px;
	flex-wrap:wrap;
	margin-top:0;
}

.tndg-lv-level-badge{
	display:inline-flex;
	align-items:center;
	min-height:24px;
	padding:3px 10px;
	border-radius:999px;
	background:#eaf2ff;
	color:#0b63f6;
	font-size:12px;
	font-weight:800;
}

.tndg-lv-intro{
	margin:0 0 14px;
	color:#64748b;
}

.tndg-lv-study-shell{
	display:grid;
	grid-template-columns:minmax(0,1fr) 380px;
	gap:20px;
	align-items:start;
}

.tndg-lv-study-main{
	min-width:0;
}

.tndg-lv-player-wrap{
	position:relative;
	width:100%;
	aspect-ratio:16/9;
	overflow:hidden;
	border-radius:8px;
	background:#0f172a;
	box-shadow:0 1px 2px rgba(15,23,42,.08);
}

.tndg-lv-player-wrap #tndg-lv-player,
.tndg-lv-player-wrap iframe{
	position:absolute;
	inset:0;
	width:100%;
	height:100%;
}

.tndg-lv-player-placeholder{
	position:absolute;
	inset:0;
	display:flex;
	align-items:center;
	justify-content:center;
	padding:24px;
	color:#e2e8f0;
	font-weight:700;
	text-align:center;
}

.tndg-lv-current-line{
	min-height:96px;
	display:flex;
	align-items:center;
	justify-content:center;
	margin-top:28px;
	padding:0 24px;
	font-size:20px;
	font-weight:800;
	line-height:1.9;
	letter-spacing:0;
	text-align:center;
	color:#111827;
}

.tndg-lv-current-placeholder{
	font-size:15px;
	font-weight:600;
	color:#94a3b8;
}

.tndg-lv-current-word{
	display:inline-block;
	margin:0 4px 4px;
	padding:0 1px 3px;
	border-bottom:2px solid #3b82f6;
	cursor:default;
}

.tndg-lv-practice-panel{
	min-width:0;
	border-radius:10px;
	background:#fff;
	box-shadow:0 1px 3px rgba(15,23,42,.08);
	overflow:hidden;
}

.tndg-lv-tabs{
	display:grid;
	grid-template-columns:repeat(3,minmax(0,1fr));
	gap:4px;
	padding:8px 8px 0;
	background:#fff;
}

.tndg-lv-tab{
	display:flex;
	align-items:center;
	justify-content:center;
	gap:6px;
	min-height:42px;
	border:1px solid transparent;
	border-bottom-color:#e5e7eb;
	border-radius:8px 8px 0 0;
	background:#f3f5f9;
	color:#94a3b8;
	font-size:12px;
	font-weight:800;
	cursor:pointer;
	white-space:nowrap;
}

.tndg-lv-tab:hover{
	color:#2563eb;
}

.tndg-lv-tab.is-active{
	background:#fff;
	border-color:#dbe7ff;
	border-bottom-color:#fff;
	color:#0b63f6;
	box-shadow:0 -1px 0 #0b63f6 inset;
}

.tndg-lv-panel-body{
	padding:10px 10px 12px;
}

.tndg-lv-listen-tools-top{
	display:flex;
	align-items:center;
	justify-content:space-between;
	gap:10px;
	margin-bottom:8px;
	color:#94a3b8;
	font-size:12px;
	font-weight:800;
}

.tndg-lv-toggle-row{
	display:flex;
	gap:5px;
	flex-wrap:wrap;
	justify-content:flex-end;
}

.tndg-lv-toggle-btn{
	min-width:30px;
	min-height:24px;
	border:1px solid #dbeafe;
	background:#fff;
	color:#64748b;
	border-radius:999px;
	padding:3px 9px;
	font-size:11px;
	font-weight:800;
	cursor:pointer;
	transition:background-color .15s,color .15s,border-color .15s;
}

.tndg-lv-toggle-btn:hover,
.tndg-lv-toggle-btn.is-active{
	background:#eaf2ff;
	border-color:#bfdbfe;
	color:#0b63f6;
}

.tndg-lv-transcript{
	display:flex;
	flex-direction:column;
	gap:2px;
	height:calc(100vh - 250px);
	min-height:430px;
	max-height:720px;
	overflow-y:auto;
	padding:0;
	background:#fff;
}

.tndg-lv-line{
	display:grid;
	grid-template-columns:28px minmax(0,1fr) 28px;
	gap:8px;
	align-items:start;
	padding:9px 8px;
	border-radius:6px;
	cursor:pointer;
	background:transparent;
}

.tndg-lv-line:hover{
	background:#f8fafc;
}

.tndg-lv-line.is-active{
	background:#eaf2ff;
}

.tndg-lv-line:focus-visible{
	outline:2px solid #3b82f6;
	outline-offset:2px;
}

.tndg-lv-line-number{
	width:22px;
	height:22px;
	display:inline-flex;
	align-items:center;
	justify-content:center;
	border-radius:50%;
	color:#94a3b8;
	font-size:11px;
	font-weight:800;
}

.tndg-lv-line.is-active .tndg-lv-line-number{
	background:#2563eb;
	color:#fff;
}

.tndg-lv-line-text{
	min-width:0;
	display:flex;
	flex-direction:column;
	gap:2px;
}

.tndg-lv-line-ja{
	color:#111827;
	font-size:15px;
	font-weight:800;
	line-height:1.65;
	overflow-wrap:anywhere;
}

.tndg-lv-line.is-active .tndg-lv-line-ja{
	color:#0b63f6;
}

.tndg-lv-line-vi{
	color:#64748b;
	font-size:13px;
	line-height:1.5;
}

.tndg-lv-line-time{
	display:inline-block;
	color:#94a3b8;
	font-size:10px;
	font-weight:700;
	font-variant-numeric:tabular-nums;
}

.tndg-lv-transcript[data-mode="ja"] .tndg-lv-line-vi{display:none}
.tndg-lv-transcript[data-mode="vi"] .tndg-lv-line-ja{display:none}
.tndg-lv-transcript[data-mode="off"] .tndg-lv-line-ja,
.tndg-lv-transcript[data-mode="off"] .tndg-lv-line-vi{display:none}

.tndg-lv-line-tts{
	width:28px;
	height:28px;
	border:0;
	background:transparent;
	color:#94a3b8;
	border-radius:50%;
	cursor:pointer;
	display:flex;
	align-items:center;
	justify-content:center;
}

.tndg-lv-line-tts:hover{
	background:#dbeafe;
	color:#0b63f6;
}

.tndg-lv-line-tts.is-loading{
	pointer-events:none;
	opacity:.6;
}

.tndg-lv-line-tts.is-loading i{
	animation:tv-tts-spin .8s linear infinite;
}

.tndg-lv-empty-panel{
	min-height:360px;
	display:flex;
	align-items:center;
	justify-content:center;
	padding:24px;
	border:1px dashed #dbe3ef;
	border-radius:8px;
	color:#94a3b8;
	font-size:14px;
	font-weight:700;
	text-align:center;
}

.tndg-lv-practice-mode{
	color:#111827;
}

.tndg-lv-progress-row{
	display:flex;
	justify-content:space-between;
	gap:12px;
	color:#94a3b8;
	font-size:12px;
	font-weight:800;
	margin:0 0 8px;
}

.tndg-lv-progress-track{
	height:6px;
	border-radius:999px;
	background:#eef2f7;
	overflow:hidden;
	margin-bottom:14px;
}

.tndg-lv-progress-track span{
	display:block;
	width:0;
	height:100%;
	border-radius:999px;
	background:#3b82f6;
}

.tndg-lv-pause-btn{
	display:inline-flex;
	align-items:center;
	gap:9px;
	min-height:38px;
	margin-bottom:12px;
	padding:0 16px;
	border:1px solid #dbe3ef;
	border-radius:8px;
	background:#fff;
	color:#111827;
	font-size:14px;
	font-weight:800;
	cursor:pointer;
}

.tndg-lv-answer-input{
	width:100%;
	min-height:80px;
	border:1px solid #dbe3ef;
	border-radius:8px;
	padding:12px 14px;
	resize:vertical;
	font-size:14px;
	color:#111827;
	box-shadow:none;
}

.tndg-lv-answer-input:focus{
	border-color:#93c5fd;
	outline:0;
	box-shadow:0 0 0 3px rgba(59,130,246,.14);
}

.tndg-lv-check-btn{
	width:100%;
	min-height:40px;
	margin-top:10px;
	border:0;
	border-radius:8px;
	background:#7fa2f7;
	color:#fff;
	font-size:14px;
	font-weight:800;
	cursor:pointer;
}

.tndg-lv-check-btn:hover{
	background:#6089ed;
}

.tndg-lv-step-row{
	display:flex;
	justify-content:space-between;
	align-items:center;
	margin:18px 0 14px;
	padding-bottom:14px;
	border-bottom:1px solid #e5e7eb;
}

.tndg-lv-step-btn{
	border:0;
	background:transparent;
	color:#94a3b8;
	font-size:14px;
	font-weight:800;
	cursor:pointer;
}

.tndg-lv-step-btn.is-next{
	color:#111827;
}

.tndg-lv-question-list-title{
	margin-bottom:8px;
	color:#94a3b8;
	font-size:12px;
	font-weight:800;
}

.tndg-lv-question-grid{
	display:grid;
	grid-template-columns:repeat(9,1fr);
	gap:8px;
}

.tndg-lv-question-btn{
	aspect-ratio:1;
	min-width:0;
	border:1px solid #dbe3ef;
	border-radius:50%;
	background:#fff;
	color:#334155;
	font-size:12px;
	font-weight:800;
	cursor:pointer;
}

.tndg-lv-question-btn.is-active{
	border-color:#2563eb;
	box-shadow:0 0 0 2px #bfdbfe;
	color:#0b63f6;
}

.tndg-lv-archive-header{margin-bottom:16px}
.tndg-lv-archive-desc{color:var(--color-text-secondary)}
.tndg-lv-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(240px,1fr));gap:16px}
.tndg-lv-card{display:block;border-radius:8px;overflow:hidden;background:var(--color-surface);border:1px solid var(--color-border);text-decoration:none;color:inherit;transition:box-shadow .15s,transform .15s}
.tndg-lv-card:hover{box-shadow:0 4px 14px rgba(0,0,0,.12);transform:translateY(-2px)}
.tndg-lv-card-thumb{position:relative;width:100%;padding-top:56.25%;background:var(--color-surface-alt)}
.tndg-lv-card-thumb img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.tndg-lv-card-play{position:absolute;inset:0;display:flex;align-items:center;justify-content:center}
.tndg-lv-card-play::before{content:"";width:0;height:0;border-style:solid;border-width:10px 0 10px 16px;border-color:transparent transparent transparent #fff;filter:drop-shadow(0 1px 3px rgba(0,0,0,.5))}
.tndg-lv-card-body{padding:10px 12px}
.tndg-lv-card-title{font-size:14px;font-weight:700;margin:0 0 4px;color:var(--color-text-primary);display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.tndg-lv-archive-pagination{margin-top:20px}

@media (max-width:1180px){
	.tndg-lv-study-shell{
		grid-template-columns:minmax(0,1fr);
	}

	.tndg-lv-practice-panel{
		max-width:none;
	}

	.tndg-lv-transcript{
		height:auto;
		min-height:320px;
		max-height:520px;
	}
}

@media (max-width:640px){
	.single-tndg_luyen_video #primary.content-area{
		padding:8px;
	}

	.tndg-lv-header{
		display:block;
	}

	.tndg-lv-header .entry-title{
		font-size:18px;
	}

	.tndg-lv-study-shell{
		gap:14px;
	}

	.tndg-lv-current-line{
		min-height:70px;
		margin-top:16px;
		padding:0 8px;
		font-size:17px;
	}

	.tndg-lv-tabs{
		gap:3px;
		padding:6px 6px 0;
	}

	.tndg-lv-tab{
		min-height:38px;
		font-size:11px;
	}

	.tndg-lv-tab span{
		white-space:normal;
		line-height:1.2;
	}

	.tndg-lv-line{
		grid-template-columns:24px minmax(0,1fr) 28px;
		gap:6px;
		padding:8px 6px;
	}

	.tndg-lv-line-ja{
		font-size:14px;
	}

	.tndg-lv-question-grid{
		grid-template-columns:repeat(6,1fr);
	}
}
