/* WT Video Library: tab danh mục, thẻ video (list/grid) và popup phát video. */

/* ---------- Tabs ---------- */
.pwt-vl-tabs {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 32px;
	margin-bottom: 40px;
	border-bottom: 1px solid #e1e8f2;
}
.pwt-vl-tab {
	margin: 0 0 -1px;
	padding: 12px 0;
	border: 0;
	border-bottom: 2px solid transparent;
	border-radius: 0;
	background: none;
	font-size: 17px;
	font-weight: 500;
	line-height: 1.3;
	letter-spacing: normal;
	/* Theme viết hoa toàn bộ chữ trong <button> */
	text-transform: none;
	color: #64748b;
	cursor: pointer;
	transition: color 0.2s ease, border-color 0.2s ease;
}
.pwt-vl-tab:hover,
.pwt-vl-tab.is-active {
	border-color: var(--primary-color, #003c7f);
	background: none;
	color: var(--primary-color, #003c7f);
}
.pwt-vl-tab:focus-visible {
	outline: 2px solid var(--primary-color, #003c7f);
	outline-offset: 2px;
}

/* ---------- Thẻ video ---------- */
.pwt-vl-items {
	display: grid;
	gap: 32px;
}
.pwt-vl--grid .pwt-vl-items {
	--pwt-vl-columns: 3;
	grid-template-columns: repeat(var(--pwt-vl-columns), minmax(0, 1fr));
}
.pwt-vl-card {
	display: flex;
	flex-direction: column;
	overflow: hidden;
	border: 1px solid #e1e8f2;
	border-radius: 16px;
	background: #fff;
	transition: box-shadow 0.25s ease;
}
.pwt-vl-card:hover {
	box-shadow: 0 18px 40px -16px rgba(0, 35, 80, 0.22);
}
.pwt-vl-card.is-hidden {
	display: none;
}
/* List: ảnh trái ~40%, chữ phải (giống mẫu) */
.pwt-vl--list .pwt-vl-card {
	flex-direction: row;
	align-items: stretch;
}
.pwt-vl--list .pwt-vl-media {
	flex: 0 0 40%;
}
.pwt-vl--list .pwt-vl-body {
	justify-content: center;
	padding: 32px 40px;
}

.pwt-vl-media {
	position: relative;
	display: block;
	aspect-ratio: 16 / 9;
	overflow: hidden;
	background: #0b1b33;
}
.pwt-vl-media img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.5s ease;
}
.pwt-vl-card:hover .pwt-vl-media img {
	transform: scale(1.03);
}
.pwt-vl-play {
	position: absolute;
	top: 50%;
	left: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 64px;
	height: 64px;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.92);
	color: var(--primary-color, #003c7f);
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
	transform: translate(-50%, -50%);
	transition: transform 0.25s ease, background-color 0.25s ease, color 0.25s ease;
}
.pwt-vl-play svg {
	margin-left: 3px;
}
.pwt-vl-media:hover .pwt-vl-play,
.pwt-vl-media:focus-visible .pwt-vl-play {
	background: var(--primary-color, #003c7f);
	color: #fff;
	transform: translate(-50%, -50%) scale(1.08);
}
.pwt-vl-duration {
	position: absolute;
	right: 10px;
	bottom: 10px;
	padding: 3px 7px;
	border-radius: 4px;
	background: rgba(0, 0, 0, 0.75);
	font-size: 12px;
	font-weight: 600;
	line-height: 1.3;
	color: #fff;
}

.pwt-vl-body {
	display: flex;
	flex: 1 1 auto;
	flex-direction: column;
	padding: 24px 28px 28px;
}
.pwt-vl-cats {
	margin-bottom: 10px;
	font-size: 13px;
	font-weight: 500;
	color: #64748b;
}
.pwt-vl-title {
	margin: 0 0 12px;
	font-size: 22px;
	line-height: 1.3;
	text-transform: none;
	color: var(--e-global-color-primary, #003c7f);
}
.pwt-vl-title a {
	color: inherit;
	text-decoration: none;
}
.pwt-vl-title a:hover {
	color: var(--secondary-color, #1d4f82);
}
.pwt-vl-excerpt {
	line-height: 1.6;
	color: var(--third-color, #334155);
}

.pwt-vl-empty {
	padding: 24px;
	border: 1px dashed #c3cfdf;
	border-radius: 12px;
	text-align: center;
	color: #6b7a90;
}

/* ---------- Popup ---------- */
.pwt-vl-modal {
	position: fixed;
	inset: 0;
	z-index: 100000;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 24px;
	background: rgba(5, 15, 30, 0.85);
	opacity: 0;
	transition: opacity 0.25s ease;
}
.pwt-vl-modal.is-open {
	opacity: 1;
}
.pwt-vl-modal-dialog {
	position: relative;
	width: min(1100px, 100%);
	transform: scale(0.96);
	transition: transform 0.25s ease;
}
.pwt-vl-modal.is-open .pwt-vl-modal-dialog {
	transform: scale(1);
}
.pwt-vl-modal-frame {
	aspect-ratio: 16 / 9;
	overflow: hidden;
	border-radius: 12px;
	background: #000;
	box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
}
.pwt-vl-modal-frame iframe {
	display: block;
	width: 100%;
	height: 100%;
	border: 0;
}
.pwt-vl-modal-close {
	position: absolute;
	top: -48px;
	right: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.12);
	color: #fff;
	cursor: pointer;
	transition: background-color 0.2s ease;
}
.pwt-vl-modal-close:hover,
.pwt-vl-modal-close:focus-visible {
	background: rgba(255, 255, 255, 0.25);
}
body.pwt-vl-lock {
	overflow: hidden;
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
	.pwt-vl--list .pwt-vl-body {
		padding: 24px 28px;
	}
}
/* Điện thoại: list chuyển thành ảnh trên, chữ dưới; tab cuộn ngang */
@media (max-width: 767px) {
	.pwt-vl-tabs {
		flex-wrap: nowrap;
		gap: 24px;
		margin-bottom: 28px;
		overflow-x: auto;
		scrollbar-width: none;
	}
	.pwt-vl-tabs::-webkit-scrollbar {
		display: none;
	}
	.pwt-vl-tab {
		flex: 0 0 auto;
		font-size: 15px;
	}
	.pwt-vl--list .pwt-vl-card {
		flex-direction: column;
	}
	.pwt-vl--list .pwt-vl-media {
		flex-basis: auto;
	}
	.pwt-vl--list .pwt-vl-body,
	.pwt-vl-body {
		padding: 20px 20px 24px;
	}
	.pwt-vl-title {
		font-size: 19px;
	}
	.pwt-vl-modal {
		padding: 12px;
	}
}
