/* Khu Video (v1.5.8) — chỉ nạp ở /videos/ và trang danh mục video. Khung thẻ dùng CSS sẵn có của child theme
   (.VideoWebsite, ._7kvg…); file này chỉ thêm phần mới. Font luôn inherit (Be Vietnam Pro + Oswald của web). */

.bff-video .bff-breadcrumb { font-size: 13px; color: #6b6b6b; margin: 0 0 10px; }
.bff-video .bff-breadcrumb a { color: inherit; }
.bff-video .bff-breadcrumb a:hover { color: #f58220; }

/* H1 thay cho <h2 class="_7kvg"> cũ: giữ đúng cỡ chữ của tiêu đề cũ, không để cỡ H1 mặc định của theme đè. */
.bff-video .ar_video_r1 ._7yob h1._7kvg { font-size: 36px; line-height: 1.25; }
@media (max-width: 849px) { .bff-video .ar_video_r1 ._7yob h1._7kvg { font-size: 26px; } }

/* Tiêu đề video: H2 → H3, chép kiểu ._9iih h2 của child theme. */
.bff-video .VideoWebsite ._9iih h3 {
	color: #212121; font-family: inherit; font-size: 16px; font-weight: 400; line-height: 24px;
	height: 48px; margin: 0 0 8px; text-transform: none; letter-spacing: 0;
}

/* Nhãn danh mục (trang tổng) + nhãn chất lượng */
.bff-video__nhan {
	display: inline-block; margin: 0 0 6px; padding: 2px 10px; border-radius: 999px;
	background: #fff1e6; color: #d56d14; font-size: 12px; font-weight: 600; line-height: 20px;
}
.bff-video__nhan:hover, .bff-video__nhan:focus-visible { background: #f58220; color: #fff; }
.bff-video__cl {
	position: absolute; top: 10px; right: 10px; z-index: 2; padding: 2px 8px; border-radius: 4px;
	background: rgba(0, 0, 0, .6); color: #fff; font-size: 12px; font-weight: 700; letter-spacing: .5px;
}

/* Giới thiệu · nhóm video · nút · FAQ (trang 1): 2 khung thẻ trắng dưới lưới video. */
.bff-video__them { max-width: 1170px; margin: 24px auto 48px; display: grid; gap: 24px; }
.bff-video__khoi, .bff-video__faq {
	background: #fff; border: 1px solid #f0e6dc; border-radius: 16px; padding: 32px 36px;
	box-shadow: 0 1px 2px rgba(0, 0, 0, .04), 0 8px 24px rgba(0, 0, 0, .04);
}
.bff-video__khoi { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 48px; align-items: start; }
.bff-video__khoi--mot { grid-template-columns: minmax(0, 1fr); }
.bff-video__kicker {
	display: inline-block; margin-bottom: 10px; color: #f58220; font-size: 13px; font-weight: 700;
	letter-spacing: 1.2px; text-transform: uppercase;
}
/* Giới thiệu nhiều đoạn: tối đa ~65 ký tự/dòng, đoạn cách đều (góp ý SEO 28/09). */
.bff-video__gt { max-width: 65ch; margin: 0 0 22px; }
.bff-video__gt p { margin: 0 0 14px; font-size: 16px; line-height: 1.75; color: #333; }
.bff-video__gt p:last-child { margin-bottom: 0; }
/* Khung bước tiếp theo: Đọc thêm + nút + hotline — cùng màu khung .next-step của bài blog. */
.bff-video__buoc { padding: 18px 20px; border: 1px solid #f3d7c4; border-radius: 12px; background: #fff7f0; }
/* Khung nằm ở cột phải, dưới danh sách nhóm (anh chốt 28/09 cho 2 cột cân). */
.bff-video__phai nav + .bff-video__buoc { margin-top: 28px; }
.bff-video__blog { margin: 0 0 14px; font-size: 15px; color: #555; }
.bff-video__hotline { margin: 12px 0 0; font-size: 15px; color: #555; }
.bff-video__hotline a { color: #d56d14; font-weight: 700; white-space: nowrap; }
.bff-video__blog a { color: #d56d14; font-weight: 500; text-decoration: underline; text-underline-offset: 3px; }
.bff-video__blog a:hover { color: #f58220; }
.bff-video__nut {
	display: inline-flex; align-items: center; gap: 8px; padding: 13px 28px; border-radius: 999px;
	background: #f58220; color: #fff; font-weight: 700; font-size: 15px; letter-spacing: .3px; text-transform: uppercase;
	box-shadow: 0 6px 16px rgba(245, 130, 32, .28); transition: background .15s, transform .15s;
}
.bff-video__nut:hover, .bff-video__nut:focus-visible { background: #d56d14; color: #fff; transform: translateY(-1px); }
.bff-video__h2 { margin: 0 0 14px; font-size: 22px; line-height: 1.3; color: #212121; }
/* Danh sách nhóm: dòng kẻ mảnh + mũi tên, như menu — gọn hơn chip. Bỏ thụt lề mặc định của ul/li theme. */
.bff-video__nhom { list-style: none; margin: 0; padding: 0; border-top: 1px solid #f0e6dc; }
/* Theme đặt margin-left cho ul li trong .col-inner với độ ưu tiên cao hơn → phải chỉ rõ .bff-video ul.… > li. */
.bff-video ul.bff-video__nhom > li { margin: 0; padding: 0; border-bottom: 1px solid #f0e6dc; }
.bff-video__nhom a {
	display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 13px 4px;
	color: #212121; font-size: 15.5px; font-weight: 500; transition: color .15s, padding .15s;
}
.bff-video__nhom a > span:first-child { display: block; }
.bff-video__nhom a > span:first-child::first-letter { text-transform: uppercase; }
.bff-video__mui { color: #f58220; font-size: 18px; line-height: 1; transition: transform .15s; }
.bff-video__nhom a:hover, .bff-video__nhom a:focus-visible { color: #d56d14; padding-left: 8px; }
.bff-video__nhom a:hover .bff-video__mui { transform: translateX(3px); }
/* FAQ xếp mở: dấu + / − tự vẽ, bỏ tam giác mặc định. */
.bff-video__faq details { border-bottom: 1px solid #f0e6dc; }
.bff-video__faq details:last-of-type { border-bottom: 0; }
.bff-video__faq summary {
	position: relative; list-style: none; cursor: pointer; padding: 16px 40px 16px 0;
	font-size: 16px; font-weight: 600; color: #212121; line-height: 1.5;
}
.bff-video__faq summary::-webkit-details-marker { display: none; }
.bff-video__faq summary::after {
	content: "+"; position: absolute; right: 0; top: 50%; transform: translateY(-50%);
	width: 28px; height: 28px; border-radius: 50%; background: #fff1e6; color: #d56d14;
	font-size: 20px; font-weight: 500; line-height: 28px; text-align: center;
}
.bff-video__faq details[open] summary::after { content: "−"; background: #f58220; color: #fff; }
.bff-video__faq summary:hover { color: #d56d14; }
.bff-video__faq details p { margin: 0 40px 16px 0; font-size: 15px; line-height: 1.75; color: #555; }
@media (max-width: 849px) {
	.bff-video__them { margin: 16px auto 32px; gap: 16px; }
	.bff-video__khoi, .bff-video__faq { padding: 22px 18px; border-radius: 12px; }
	.bff-video__khoi { grid-template-columns: minmax(0, 1fr); gap: 24px; }
	.bff-video__nut { display: flex; justify-content: center; }
	.bff-video__h2 { font-size: 20px; }
}

/* Popup phát video: nền đen phủ màn hình, khung theo hướng video. */
.bff-vp {
	/* z-index tối đa: thanh liên hệ đáy (Gọi / Nhắn tin / Zalo) + nút chat nổi của web đang nằm rất cao. */
	position: fixed; inset: 0; z-index: 2147483000; background: rgba(0, 0, 0, .92);
	display: flex; align-items: center; justify-content: center; padding: 52px 0 8px;
}
.bff-vp[hidden] { display: none; }
.bff-vp__khung { position: relative; background: #000; }
.bff-vp__khung iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
/* Ngang 16:9 · dọc 9:16 · vuông 1:1 — to hết mức vừa màn hình, không méo: điện thoại tràn hết bề ngang,
   máy tính chỉ chừa dải 52px trên cùng cho nút X. dvh (nếu trình duyệt có) trừ đúng thanh địa chỉ điện thoại. */
.bff-vp--ngang .bff-vp__khung { width: min(100vw, calc((100vh - 60px) * 16 / 9)); width: min(100vw, calc((100dvh - 60px) * 16 / 9)); aspect-ratio: 16 / 9; }
.bff-vp--doc .bff-vp__khung { height: min(calc(100vh - 60px), calc(100vw * 16 / 9)); height: min(calc(100dvh - 60px), calc(100vw * 16 / 9)); aspect-ratio: 9 / 16; }
.bff-vp--vuong .bff-vp__khung { width: min(100vw, calc(100vh - 60px)); width: min(100vw, calc(100dvh - 60px)); aspect-ratio: 1 / 1; }
.bff-vp__dong {
	position: absolute; top: 6px; right: 8px; width: 40px; height: 40px; border: 0; border-radius: 50%;
	background: rgba(255, 255, 255, .15); color: #fff; font-size: 26px; line-height: 40px; cursor: pointer; padding: 0;
	/* Flatsome đặt button { min-height: 2.5em } → 26px × 2,5 = 65px cao, nút méo thành bầu dục (anh báo 29/09). */
	min-height: 0; min-width: 0; margin: 0; box-sizing: border-box;
}
.bff-vp__dong:hover, .bff-vp__dong:focus-visible { background: #f58220; }
html.bff-vp-mo { overflow: hidden; }
/* Điện thoại: video ngang + dọc toàn màn hình (v1.5.11, anh chốt 29/09) — xem toanMan() trong bff-video.js. Nút X nổi
   trên video. Dọc phủ kín màn hình (máy dài hơn 9:16 thì YouTube tự chèn viền đen trong khung). */
.bff-vp:fullscreen, .bff-vp--day { padding: 0; }
.bff-vp--ngang:fullscreen .bff-vp__khung { width: min(100vw, 100vh * 16 / 9); }
.bff-vp--doc:fullscreen .bff-vp__khung, .bff-vp--doc.bff-vp--day .bff-vp__khung { width: 100vw; height: 100vh; height: 100dvh; aspect-ratio: auto; }
.bff-vp:fullscreen .bff-vp__dong, .bff-vp--xoay .bff-vp__dong, .bff-vp--day .bff-vp__dong { z-index: 1; background: rgba(0, 0, 0, .45); }
/* iPhone: xoay khung 90° cho video phủ kín màn hình khi máy đang dọc (máy tự xoay ngang thì về khung ngang thường).
   Xoay theo chiều kim đồng hồ → góc trên-phải của video nằm ở góc dưới-phải màn hình → đặt nút X ở đó. flex: none để
   khung rộng hơn màn hình (trước khi xoay) không bị co lại. */
@media (orientation: portrait) {
	.bff-vp--xoay { padding: 0; overflow: hidden; }
	.bff-vp--ngang.bff-vp--xoay .bff-vp__khung { flex: none; width: min(100vh, 100vw * 16 / 9); width: min(100dvh, 100vw * 16 / 9); transform: rotate(90deg); }
	.bff-vp--xoay .bff-vp__dong { top: auto; bottom: 8px; transform: rotate(90deg); }
}

/* Trang tổng /videos/: 6 mục lướt ngang như Blog tổng (anh chốt 28/09). Cỡ chữ, màu, nút chép theo .bff-cluster /
   .bff-slider / .bff-btn của bff-blog.css — trang video không nạp bff-blog.css nên chép giá trị, không gọi class. */
.bff-video__cac-muc { max-width: 1170px; margin: 0 auto; }
.bff-video__muc { margin-top: 26px; padding-top: 6px; scroll-margin-top: 96px; }
.bff-video__muc:first-child { margin-top: 8px; }
.bff-video__muc-dau {
	display: flex; justify-content: space-between; align-items: flex-end; gap: 16px;
	padding-bottom: 12px; margin-bottom: 18px; border-bottom: 1px solid #e8e3dc;
}
.bff-video .bff-video__muc-ten { font-size: 25px; line-height: 1.55; margin: 0; color: #141416; text-transform: none; letter-spacing: normal; }
.bff-video__muc-mt { font-size: 13px; line-height: 1.6; color: #77716b; margin: 5px 0 0; max-width: 780px; }
.bff-video__dem { font-size: 11px; font-weight: 900; color: #f58220; text-transform: uppercase; white-space: nowrap; }
.bff-video__ray {
	display: flex; gap: 18px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth;
	padding: 2px 4px 14px; scrollbar-width: none;
}
.bff-video__ray::-webkit-scrollbar { display: none; }
/* Thẻ video trong hàng lướt: 3 thẻ/hàng máy tính, 2 máy tính bảng, ~1,2 điện thoại (hé thẻ sau để biết lướt được).
   Ảnh + nền mờ + nút ▶ chép cỡ .VideoList .list-videos của child theme. */
.bff-video__ray > .VideoWebsite { flex: 0 0 calc((100% - 36px) / 3); scroll-snap-align: start; margin: 0; transition: transform .2s, box-shadow .2s; }
.bff-video__ray > .VideoWebsite:hover { transform: translateY(-3px); box-shadow: 0 14px 30px rgba(0, 0, 0, .08); }
.bff-video__ray .VideoWebsite .banner-video img._1arc { height: 240px; }
.bff-video__ray .VideoWebsite .banner-video::after { background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, .5) 100%); }
.bff-video__ray .VideoWebsite .banner-video .video-button-wrapper .icon img { width: 50px; }
.bff-video__muc-cuoi { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-top: 13px; min-height: 44px; }
.bff-video__xem {
	display: inline-flex; align-items: center; gap: 8px; padding: 12px 20px; border-radius: 9px;
	background: #f58220; color: #fff; font-size: 12px; font-weight: 900; line-height: 17px; text-transform: uppercase; transition: background .2s;
}
.bff-video__xem:hover, .bff-video__xem:focus-visible { background: #d56d14; color: #fff; }
.bff-video__lu { display: flex; gap: 8px; margin-left: auto; }
.bff-video__lu[hidden] { display: none; }
.bff-video .bff-video__lu-nut {
	display: grid; place-items: center; width: 36px; height: 36px; min-height: 0; margin: 0; padding: 0; border-radius: 50%;
	border: 1px solid #e8e3dc; background: #fff; color: #141416; font-size: 18px; line-height: 1; transition: .2s;
}
.bff-video .bff-video__lu-nut:hover:not(:disabled) { background: #141416; color: #fff; }
.bff-video .bff-video__lu-nut:disabled { opacity: .38; cursor: default; }
@media (max-width: 980px) {
	.bff-video__ray > .VideoWebsite { flex-basis: calc((100% - 18px) / 2); }
}
@media (max-width: 600px) {
	.bff-video .bff-video__muc-ten { font-size: clamp(22px, 6vw, 28px); line-height: 1.25; }
	.bff-video__muc-dau { flex-direction: column; align-items: flex-start; gap: 6px; }
	.bff-video__ray > .VideoWebsite { flex-basis: 82%; }
	.bff-video__ray .VideoWebsite .banner-video img._1arc { height: 210px; }
	.bff-video__muc-cuoi { flex-wrap: wrap; row-gap: 12px; }
	.bff-video__muc-cuoi .bff-video__lu { order: -1; width: 100%; justify-content: flex-end; }
}

/* Xem trước khi rê chuột (v1.5.23, bff-video.js): iframe tắt tiếng nằm trên ảnh bìa, dưới lớp tối (::after z 1) + nút ▶ (z 2). */
.bff-video__the .banner-video .bff-video__xt { position: absolute; left: 50%; top: 50%; z-index: 0; max-width: none; border: 0; pointer-events: none; opacity: 0; transform: translate(-50%, -50%); transition: opacity .6s; }
.bff-video__the .banner-video .bff-video__xt[data-on] { opacity: 1; }
