/* ==========================================================================
   VIDEO XE CHAY DIEN - GIAO DIEN 3                                05/09/2026
   ==========================================================================
   Nap o: trang chu (khoi VIDEO), /video-xe-chay-dien/, /video-<muc>/,
   /videos-<alias>.html (inc/header.php). Tong vang-den (#ffc600 / #111).
   Cot phai trang xem video dung lai .gd3-tcp-* cua chuyen muc tin
   (css/category.css - luon duoc nap).
   ========================================================================== */

/* --- Khung phat nhe (anh + nut Play, bam moi nhung iframe) --- */
.gd3-yt {
	position: relative;
	width: 100%;
	padding-top: 56.25%;
	overflow: hidden;
	border-radius: 10px;
	background: #111;
	cursor: pointer;
}
.gd3-yt img, .gd3-yt iframe {
	position: absolute;
	top: 0; left: 0; right: 0; bottom: 0;
	width: 100%;
	height: 100%;
	border: 0;
}
.gd3-yt img { object-fit: cover; transition: transform .3s ease, opacity .3s ease; }
.gd3-yt:hover img { transform: scale(1.03); opacity: .9; }
.gd3-yt-play {
	position: absolute;
	left: 50%;
	top: 50%;
	width: 68px;
	height: 48px;
	margin: -24px 0 0 -34px;
	padding: 0;
	border: 0;
	border-radius: 14px;
	background: rgba(17, 17, 17, .85);
	color: #ffc600;
	font-size: 22px;
	cursor: pointer;
	box-shadow: 0 4px 16px rgba(0, 0, 0, .35);
	transition: background .15s ease, transform .15s ease;
}
.gd3-yt-play i { margin-left: 3px; }
.gd3-yt:hover .gd3-yt-play { background: #ffc600; color: #111; transform: scale(1.08); }
.gd3-yt.is-playing { cursor: default; }
.gd3-yt-loi { position: absolute; top: 0; left: 0; right: 0; bottom: 0; display: flex; align-items: center; justify-content: center; color: #ccc; font-size: 14px; padding: 20px; text-align: center; }

/* --- Khoi VIDEO tren trang chu --- */
.gd3-home-vd-ten {
	display: block;
	margin: 10px 0 8px;
	font-size: 15px;
	font-weight: 800;
	line-height: 1.35;
	color: #111;
	text-decoration: none;
}
.gd3-home-vd-ten:hover { color: #b58600; text-decoration: none; }
.gd3-home-vd-ds { display: flex; flex-direction: column; gap: 6px; }
.gd3-yt-chon {
	display: flex;
	gap: 10px;
	align-items: center;
	padding: 6px;
	border-radius: 8px;
	color: #222;
	text-decoration: none;
	transition: background .15s ease;
}
.gd3-yt-chon:hover { background: #fff6cc; color: #111; text-decoration: none; }
.gd3-yt-chon.is-active { background: #111; color: #fff; }
.gd3-yt-chon.is-active .gd3-yt-chon-ten { color: #ffc600; }
.gd3-yt-chon-anh {
	position: relative;
	flex: 0 0 96px;
	width: 96px;
	height: 54px;
	overflow: hidden;
	border-radius: 6px;
	background: #222;
}
.gd3-yt-chon-anh img { width: 100%; height: 100%; object-fit: cover; display: block; }
.gd3-yt-chon-anh i {
	position: absolute;
	left: 50%; top: 50%;
	width: 24px; height: 24px;
	margin: -12px 0 0 -12px;
	border-radius: 50%;
	background: rgba(0, 0, 0, .65);
	color: #ffc600;
	font-size: 10px;
	line-height: 24px;
	text-align: center;
}
.gd3-yt-chon-ten {
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
	font-size: 13px;
	font-weight: 600;
	line-height: 1.4;
}
/* 09/09/2026: meta duoi ten (chuyen muc · ngay · luot xem · ghim) + danh sach 2 dong. */
.gd3-home-vd-dau { font-size: 11.5px; font-weight: 800; color: #141414; text-transform: uppercase; letter-spacing: .3px; margin: 2px 0 8px; } .gd3-home-vd-dau i { color: #e0202c; } .gd3-home-vd-dau small { font-weight: 500; text-transform: none; letter-spacing: 0; color: #9aa1b2; }
.gd3-vd-nong { color: #e0202c; }
.gd3-home-vd-meta { font-size: 11.5px; color: #6b7280; margin: -2px 0 10px; line-height: 1.4; }
.gd3-home-vd-meta b, .gd3-yt-chon-meta b { color: #b48900; font-weight: 700; }
.gd3-home-vd-meta i, .gd3-yt-chon-meta i { font-size: 10px; }
.gd3-vd-ghim { color: #b48900; }
.gd3-yt-chon-than { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.gd3-yt-chon-meta { font-size: 11px; color: #6b7280; line-height: 1.35; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gd3-yt-chon.is-active .gd3-yt-chon-meta { color: #bbb; }
.gd3-yt-chon.is-active .gd3-yt-chon-meta b { color: #ffc600; }
.gd3-home-vd-them {
	display: inline-block;
	margin-top: 10px;
	font-size: 13px;
	font-weight: 700;
	color: #111;
	text-decoration: none;
}
.gd3-home-vd-them:hover { color: #b58600; text-decoration: none; }

/* --- Chip chuyen muc video (dung khung .gd3-subcat-wrap) --- */
.gd3-vd-chip li a span {
	display: inline-block;
	margin-left: 4px;
	padding: 0 6px;
	border-radius: 999px;
	background: #ffc600;
	color: #111;
	font-size: 11px;
	font-weight: 800;
	line-height: 18px;
}
.gd3-vd-chip li.is-active a { background: #111; color: #ffc600; }

/* --- The video trong luoi --- */
.gd3-vd-the {
	display: block;
	height: 100%;
	padding: 8px;
	border-radius: 10px;
	background: #fff;
	color: #111;
	text-decoration: none;
	transition: box-shadow .15s ease;
}
.gd3-vd-the:hover { color: #111; text-decoration: none; box-shadow: 0 2px 14px rgba(0, 0, 0, .12); }
.gd3-vd-anh {
	position: relative;
	display: block;
	width: 100%;
	padding-top: 56.25%;
	overflow: hidden;
	border-radius: 8px;
	background: #111;
}
.gd3-vd-anh img { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease; }
.gd3-vd-the:hover .gd3-vd-anh img { transform: scale(1.05); }
.gd3-vd-anh > i {
	position: absolute;
	left: 50%; top: 50%;
	width: 42px; height: 42px;
	margin: -21px 0 0 -21px;
	border-radius: 50%;
	background: rgba(17, 17, 17, .75);
	color: #ffc600;
	font-size: 15px;
	line-height: 42px;
	text-align: center;
	transition: background .15s ease, transform .15s ease;
}
.gd3-vd-anh > i::before { margin-left: 3px; }
.gd3-vd-the:hover .gd3-vd-anh > i { background: #ffc600; color: #111; transform: scale(1.1); }
.gd3-vd-nhan {
	position: absolute;
	left: 8px; top: 8px;
	padding: 2px 8px;
	border-radius: 999px;
	background: #ffc600;
	color: #111;
	font-size: 10.5px;
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: .2px;
}
.gd3-vd-ten {
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
	margin: 10px 0 6px;
	font-size: 14px;
	font-weight: 700;
	line-height: 1.4;
	min-height: 2.8em;
}
.gd3-vd-the:hover .gd3-vd-ten { color: #b58600; }
.gd3-vd-meta { display: flex; gap: 12px; font-size: 11.5px; color: #888; }
.gd3-vd-meta i { margin-right: 3px; }

/* --- Trang xem 1 video --- */
.gd3-vd-player { box-shadow: 0 6px 24px rgba(0, 0, 0, .18); }
.gd3-vd-tieude {
	margin: 18px 0 8px;
	font-size: 24px;
	font-weight: 800;
	line-height: 1.3;
	color: #111;
}
.gd3-vd-hang {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	align-items: center;
	gap: 8px 16px;
	padding: 10px 0;
	border-top: 1px solid #eee;
	border-bottom: 1px solid #eee;
	margin-bottom: 18px;
}
.gd3-vd-hang .gd3-vd-meta { font-size: 13px; color: #666; gap: 16px; align-items: center; }
.gd3-vd-dm-link { color: #111; font-weight: 600; text-decoration: none; }
.gd3-vd-dm-link:hover { color: #b58600; }
.gd3-vd-chiase { display: flex; gap: 8px; }
.gd3-vd-chiase a {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 6px 12px;
	border-radius: 999px;
	background: #111;
	color: #ffc600;
	font-size: 12.5px;
	font-weight: 700;
	text-decoration: none;
}
.gd3-vd-chiase a:hover { background: #ffc600; color: #111; text-decoration: none; }
.gd3-vd-mota { font-size: 15px; line-height: 1.7; color: #333; }
.gd3-vd-mota img { max-width: 100%; height: auto; }
/* Mo ta thu gon + nut "Xem them" (05/09/2026). .is-gon do js/video.js gan khi
   noi dung cao hon 220px; mo ra = bo class. */
.gd3-vd-mota-boc { position: relative; margin-bottom: 22px; }
.gd3-vd-mota-boc.is-gon .gd3-vd-mota { max-height: 220px; overflow: hidden; }
.gd3-vd-mota-boc.is-gon .gd3-vd-mota::after { content: ""; position: absolute; left: 0; right: 0; bottom: 38px; height: 90px; background: linear-gradient(rgba(255, 255, 255, 0), #fff 85%); pointer-events: none; }
.gd3-vd-mota-boc.is-gon .gd3-vd-mota { padding-bottom: 0; }
.gd3-vd-mota-boc.is-gon { padding-bottom: 38px; }
.gd3-vd-mota-nut {
	position: absolute;
	left: 0;
	bottom: 0;
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 6px 16px;
	border: 1px solid #111;
	border-radius: 999px;
	background: #fff;
	color: #111;
	font-size: 13px;
	font-weight: 800;
	cursor: pointer;
}
.gd3-vd-mota-nut:hover { background: #111; color: #ffc600; }
.gd3-vd-mota-boc:not(.is-gon) .gd3-vd-mota-nut { position: static; margin-top: 10px; }
/* Cot phai trang xem video: khoi cuoi (Xem nhieu) dinh theo khi cuon tren PC. */
.gd3-vd-xem .col-lg-4 > .gd3-vd-cot-phai { height: 100%; }
@media (min-width: 992px) {
	.gd3-vd-cp-dinh { position: sticky; top: 118px; }
}
.gd3-vd-khoi-tieude {
	position: relative;
	margin: 6px 0 14px;
	padding-bottom: 10px;
	border-bottom: 1px solid #eee;
	font-size: 18px;
	font-weight: 800;
	color: #111;
}
.gd3-vd-khoi-tieude::after { content: ""; position: absolute; left: 0; bottom: -1px; width: 56px; height: 3px; border-radius: 2px; background: #ffc600; }
.gd3-vd-khoi-tieude i { margin-right: 6px; color: #b58600; }
.gd3-vd-cot-phai { display: flex; flex-direction: column; gap: 18px; }
.gd3-vd-dm-luoi { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.gd3-vd-dong-anh { position: relative; flex: 0 0 84px; width: 84px; height: 60px; border-radius: 6px; overflow: hidden; background: #222; }
.gd3-vd-dong-anh img { width: 100%; height: 100%; object-fit: cover; display: block; }
.gd3-vd-dong-anh i { position: absolute; left: 50%; top: 50%; width: 22px; height: 22px; margin: -11px 0 0 -11px; border-radius: 50%; background: rgba(0, 0, 0, .65); color: #ffc600; font-size: 9px; line-height: 22px; text-align: center; }

/* --- Trang 1 /video-xe-chay-dien/ "do so": noi bat + xem nhieu + theo muc --- */
.gd3-vd-noibat { margin-bottom: 8px; }
.gd3-vd-khoi {
	height: 100%;
	padding: 16px 18px 14px;
	border-radius: 12px;
	background: #fff;
	border: 1px solid #eee;
	box-shadow: 0 2px 10px rgba(0, 0, 0, .05);
}
.gd3-vd-noibat .col-lg-8, .gd3-vd-noibat .col-lg-4 { margin-bottom: 20px; }
.gd3-vd-noibat .gd3-vd-khoi { display: flex; flex-direction: column; }
.gd3-vd-noibat-khung { box-shadow: 0 6px 20px rgba(0, 0, 0, .18); }
.gd3-vd-noibat-ten { font-size: 17px; margin: 12px 0 10px; }
/* 6 thumb 1 hang ngang duoi khung phat (thumb tren, ten duoi) - khong cuon. */
.gd3-vd-noibat-ds { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; margin-top: auto; }
.gd3-vd-noibat-ds .gd3-yt-chon { flex-direction: column; align-items: stretch; gap: 6px; padding: 4px; border: 1px solid #eee; }
.gd3-vd-noibat-ds .gd3-yt-chon.is-active { border-color: #111; }
.gd3-vd-noibat-ds .gd3-yt-chon-anh { flex: none; width: 100%; height: 0; padding-top: 56.25%; }
.gd3-vd-noibat-ds .gd3-yt-chon-anh img { position: absolute; top: 0; left: 0; }
.gd3-vd-noibat-ds .gd3-yt-chon-ten { font-size: 12px; line-height: 1.35; min-height: 2.7em; }
/* Cot phai: keo dan cho cao bang khoi trai, 8 dong chia deu (khong ho khoang trong). */
.gd3-vd-xn { display: flex; flex-direction: column; justify-content: space-between; flex: 1 1 auto; margin: 0; padding: 0; list-style: none; counter-reset: gd3vdxn; }
.gd3-vd-xn-muc { counter-increment: gd3vdxn; }
.gd3-vd-xn-muc + .gd3-vd-xn-muc { border-top: 1px dashed #eee; }
.gd3-vd-xn-muc a {
	display: flex;
	gap: 10px;
	align-items: center;
	padding: 8px 0;
	color: #111;
	text-decoration: none;
}
.gd3-vd-xn-muc a::before {
	content: counter(gd3vdxn);
	flex: 0 0 22px;
	width: 22px; height: 22px;
	border-radius: 50%;
	background: #111;
	color: #ffc600;
	font-size: 11px;
	font-weight: 800;
	line-height: 22px;
	text-align: center;
}
.gd3-vd-xn-muc:nth-child(-n+3) a::before { background: #ffc600; color: #111; }
.gd3-vd-xn-muc a:hover .gd3-vd-xn-ten { color: #b58600; }
.gd3-vd-xn-muc .gd3-vd-dong-anh { flex-basis: 72px; width: 72px; height: 50px; }
.gd3-vd-xn-chu { min-width: 0; }
.gd3-vd-xn-ten {
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
	font-size: 13px;
	font-weight: 700;
	line-height: 1.35;
}
.gd3-vd-xn-meta { display: block; margin-top: 2px; font-size: 11.5px; color: #888; }
.gd3-vd-muc { margin-bottom: 8px; }
.gd3-vd-muc-tieude { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; font-size: 20px; }
.gd3-vd-muc-tieude small { margin-left: 6px; font-size: 12px; font-weight: 600; color: #888; }
.gd3-vd-muc-them {
	flex: 0 0 auto;
	padding: 4px 12px;
	border-radius: 999px;
	background: #111;
	color: #ffc600;
	font-size: 12.5px;
	font-weight: 700;
	text-decoration: none;
	white-space: nowrap;
}
.gd3-vd-muc-them:hover { background: #ffc600; color: #111; text-decoration: none; }
.gd3-vd-muc-them i { margin: 0 0 0 3px; color: inherit; }

@media (max-width: 991.98px) {
	.gd3-vd-cot-phai { margin-top: 8px; }
	.gd3-vd-khoi { padding: 12px; }
}
@media (max-width: 767.98px) {
	.gd3-vd-noibat-ds { grid-template-columns: repeat(3, 1fr); gap: 6px; }
	.gd3-vd-noibat-ten { font-size: 15px; }
}
@media (max-width: 767.98px) {
	.gd3-vd-tieude { font-size: 18px; }
	.gd3-vd-ten { font-size: 13px; }
	.gd3-yt-play { width: 56px; height: 40px; margin: -20px 0 0 -28px; font-size: 18px; }
	.gd3-yt-chon-anh { flex-basis: 84px; width: 84px; height: 48px; }
}
