.vdo-hero {
	position: relative;
	padding: 2.5rem 1.5rem;
	background:
		linear-gradient(110deg, rgba(30, 27, 75, .96) 0%, rgba(49, 46, 129, .93) 55%, rgba(79, 70, 229, .82) 100%),
		url('/assets/heroes/dony-translation.jpg') center / cover;
}

.vdo-hero::after {
	content: '';
	position: absolute;
	width: 18rem;
	height: 18rem;
	right: -5rem;
	top: -7rem;
	border-radius: 999px;
	background: rgba(165, 180, 252, .18);
	filter: blur(2px);
}

.vdo-kicker,
.vdo-count {
	display: inline-flex;
	align-items: center;
	gap: .5rem;
	border-radius: 999px;
	font-weight: 800;
}

.vdo-kicker {
	padding: .45rem .8rem;
	background: rgba(255, 255, 255, .14);
	color: #e0e7ff;
	font-size: .8rem;
}

.vdo-count {
	padding: .6rem .9rem;
	background: rgba(255, 255, 255, .14);
	color: #fff;
	font-size: .9rem;
}

.vdo-playlist-btn {
	display: inline-flex;
	align-items: center;
	gap: .5rem;
	padding: .65rem 1rem;
	border-radius: .8rem;
	background: #fff;
	color: #4338ca;
	font-size: .875rem;
	font-weight: 800;
	transition: transform .15s ease, background-color .15s ease;
}

.vdo-playlist-btn:hover {
	background: #eef2ff;
	transform: translateY(-1px);
}

.vdo-featured {
	display: grid;
	grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
	overflow: hidden;
	border: 1px solid #e0e7ff;
	border-radius: 1.5rem;
	background: linear-gradient(135deg, #eef2ff 0%, #fff 65%);
	box-shadow: 0 8px 24px rgba(79, 70, 229, .08);
}

.vdo-featured-media {
	position: relative;
	min-height: 270px;
	overflow: hidden;
	background: #c7d2fe;
}

.vdo-featured-media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform .35s ease;
}

.vdo-featured-media:hover img {
	transform: scale(1.04);
}

.vdo-featured-play {
	position: absolute;
	left: 50%;
	top: 50%;
	display: grid;
	width: 4rem;
	height: 4rem;
	place-items: center;
	border-radius: 999px;
	background: #4f46e5;
	color: #fff;
	font-size: 1.15rem;
	transform: translate(-50%, -50%);
	box-shadow: 0 8px 24px rgba(30, 27, 75, .28);
}

.vdo-featured-copy {
	display: flex;
	flex-direction: column;
	justify-content: center;
	padding: 2rem;
}

.vdo-section-label {
	display: inline-flex;
	align-items: center;
	gap: .45rem;
	color: #4f46e5;
	font-size: .875rem;
	font-weight: 800;
}

.vdo-featured-link {
	display: inline-flex;
	align-items: center;
	gap: .55rem;
	align-self: flex-start;
	margin-top: 1.25rem;
	padding: .65rem .9rem;
	border-radius: .75rem;
	background: #4f46e5;
	color: #fff;
	font-size: .875rem;
	font-weight: 800;
	transition: background-color .15s ease, transform .15s ease;
}

.vdo-featured-link:hover {
	background: #4338ca;
	transform: translateY(-1px);
}

.vdo-duration {
	color: #64748b;
	font-size: .8rem;
	font-weight: 700;
}

.vdo-duration {
	white-space: nowrap;
}

/* การ์ดเป็นคอลัมน์ ให้ลิงก์ดูคลิปยืดเต็มที่เหลือ แถวปุ่มสไลด์จึงถูกดันไปติดขอบล่างเสมอ
   — ปุ่มของทุกใบในแถวเดียวกันเลยตรงกันพอดี แม้ชื่อตอนยาวไม่เท่ากัน */
.vdo-card {
	display: flex;
	flex-direction: column;
	overflow: hidden;
	border-radius: 1.25rem;
	background: #fff;
	box-shadow: 0 1px 3px rgba(15, 23, 42, .08), 0 8px 24px rgba(15, 23, 42, .04);
	transition: transform .18s ease, box-shadow .18s ease;
}

.vdo-card-link {
	display: block;
	flex: 1 1 auto;
}

.vdo-card:hover {
	transform: translateY(-3px);
	box-shadow: 0 14px 30px rgba(15, 23, 42, .12);
}

.vdo-thumb {
	position: relative;
	aspect-ratio: 16 / 9;
	overflow: hidden;
	background: #e0e7ff;
}

.vdo-thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform .35s ease;
}

.vdo-card:hover .vdo-thumb img {
	transform: scale(1.04);
}

.vdo-thumb::after {
	content: '';
	position: absolute;
	inset: 0;
	background: linear-gradient(to top, rgba(15, 23, 42, .55), transparent 45%);
	pointer-events: none;
}

.vdo-episode,
.vdo-play {
	position: absolute;
	z-index: 1;
}

.vdo-episode {
	top: .75rem;
	left: .75rem;
	padding: .35rem .6rem;
	border-radius: .6rem;
	background: rgba(30, 27, 75, .88);
	color: #fff;
	font-size: .75rem;
	font-weight: 800;
}

.vdo-play {
	left: 50%;
	top: 50%;
	display: grid;
	width: 3.25rem;
	height: 3.25rem;
	place-items: center;
	border-radius: 999px;
	background: rgba(79, 70, 229, .95);
	color: #fff;
	font-size: 1rem;
	transform: translate(-50%, -50%);
	box-shadow: 0 5px 16px rgba(30, 27, 75, .3);
	transition: transform .18s ease, background-color .18s ease;
}

.vdo-card:hover .vdo-play {
	background: #4338ca;
	transform: translate(-50%, -50%) scale(1.08);
}

/* ปุ่มโหลดสไลด์ PDF — ไฟล์อยู่บน Google Drive ของหลวงพี่ ไม่ได้เก็บในเซิร์ฟเวอร์เรา */
.vdo-slide-row {
	display: flex;
	flex: none;
	align-items: center;
	padding: .85rem 1.25rem 1.1rem;
	border-top: 1px dashed #e5e7eb;
}

.vdo-slide-btn {
	display: inline-flex;
	align-items: center;
	gap: .5rem;
	padding: .55rem .85rem;
	border: 1px solid #e0e7ff;
	border-radius: .75rem;
	background: #eef2ff;
	color: #4338ca;
	font-size: .85rem;
	font-weight: 800;
	transition: background-color .15s ease, border-color .15s ease, transform .15s ease;
}

.vdo-slide-btn:hover {
	border-color: #c7d2fe;
	background: #e0e7ff;
	transform: translateY(-1px);
}

/* ใช้กล่องขนาดเดียวกับปุ่มเป๊ะ (ต่างแค่ไม่มีพื้นและเส้นขอบ) เส้นประคั่นของทุกใบในแถว
   จะได้อยู่ระดับเดียวกัน ไม่ว่าตอนนั้นจะมีสไลด์หรือไม่ */
.vdo-slide-none {
	display: inline-flex;
	align-items: center;
	padding: .55rem .85rem;
	border: 1px solid transparent;
	border-radius: .75rem;
	color: #9ca3af;
	font-size: .85rem;
	font-weight: 700;
}

.vdo-featured-actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: .6rem;
	margin-top: 1.25rem;
}

.vdo-featured-actions .vdo-featured-link {
	margin-top: 0;
}

.vdo-featured-actions .vdo-slide-btn {
	padding: .65rem .9rem;
	border-color: #c7d2fe;
	background: #fff;
	font-size: .875rem;
}

@media (min-width: 640px) {
	.vdo-hero {
		padding: 3.5rem 3rem;
	}
}

@media (max-width: 767px) {
	.vdo-featured {
		grid-template-columns: 1fr;
	}

	.vdo-featured-media {
		min-height: 210px;
	}

	.vdo-featured-copy {
		padding: 1.5rem;
	}

}

/* แถวข้อมูลใต้ชื่อตอน — ยอดวิวเด่น ความยาวคลิปเป็นตัวรอง */
.vdo-meta {
	display: inline-flex;
	align-items: center;
	gap: .45rem;
	flex-wrap: wrap;
}

/* ยอดผู้ชมจาก YouTube — ป้ายสีชัด ให้สะดุดตากว่าความยาวคลิป
   ขึ้นเฉพาะเมื่อดึงข้อมูลได้ (ไม่มีคีย์/API ล่ม = ไม่มีป้ายนี้) */
.vdo-views {
	display: inline-flex;
	align-items: center;
	gap: .35rem;
	padding: .2rem .5rem;
	border-radius: 999px;
	background: #fee2e2;
	color: #b91c1c;
	font-size: .8rem;
	font-weight: 800;
	white-space: nowrap;
}

.vdo-views i {
	font-size: .75em;
	opacity: .85;
}

.vdo-views-lg {
	padding: .3rem .7rem;
	font-size: .875rem;
}
