@charset "utf-8";

/* Video center grid */
.video-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 24px;
	margin-bottom: 40px;
}

.video-card {
	position: relative;
	background: #fff;
	overflow: hidden;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
	transition: transform 0.3s ease, box-shadow 0.3s ease;
	cursor: pointer;
}

.video-card:hover {
	transform: translateY(-5px);
	box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.video-cover {
	position: relative;
	width: 100%;
	padding-bottom: 56.25%;
	overflow: hidden;
	background: #222;
}

.video-cover img {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.5s ease;
}

.video-card:hover .video-cover img {
	transform: scale(1.05);
}

.video-play {
	position: absolute;
	top: 50%;
	left: 50%;
	z-index: 2;
	width: 56px;
	height: 56px;
	margin: -28px 0 0 -28px;
	border-radius: 50%;
	background: rgba(46, 90, 163, 0.9);
	color: #fff;
	transition: transform 0.3s ease, background 0.3s ease;
}

.video-play::before {
	content: "";
	position: absolute;
	top: 50%;
	left: 50%;
	width: 0;
	height: 0;
	margin: -8px 0 0 -5px;
	border-style: solid;
	border-width: 8px 0 8px 14px;
	border-color: transparent transparent transparent #fff;
}

.video-card:hover .video-play {
	transform: scale(1.1);
	background: #2e5aa3;
}

.video-title {
	padding: 16px;
	color: #222;
	font-size: 16px;
	line-height: 1.5;
	text-align: left;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

/* Video modal */
.video-modal {
	display: none;
	position: fixed;
	top: 0;
	right: 0;
	bottom: 0;
	left: 0;
	z-index: 9999;
	align-items: center;
	justify-content: center;
}

.video-modal.active {
	display: flex;
}

.video-modal-overlay {
	position: absolute;
	top: 0;
	right: 0;
	bottom: 0;
	left: 0;
	background: rgba(0, 0, 0, 0.85);
}

.video-modal-content {
	position: relative;
	z-index: 1;
	width: 94%;
	max-width: 900px;
	max-height: 90vh;
	background: #fff;
	overflow: hidden;
	border-radius: 4px;
}

.video-modal-close {
	position: absolute;
	top: -40px;
	right: 0;
	width: 32px;
	height: 32px;
	border: none;
	background: transparent;
	color: #fff;
	font-size: 32px;
	line-height: 32px;
	cursor: pointer;
	transition: color 0.3s ease;
}

.video-modal-close:hover {
	color: #2e5aa3;
}

.video-modal-player {
	position: relative;
	width: 100%;
	background: #000;
}

.video-modal-player video {
	display: block;
	width: 100%;
	height: auto;
	max-height: 70vh;
}

.video-modal-info {
	padding: 20px;
	text-align: left;
}

.video-modal-title {
	margin-bottom: 10px;
	color: #222;
	font-size: 20px;
	line-height: 1.4;
}

.video-modal-desc {
	color: #666;
	font-size: 14px;
	line-height: 1.6;
}

.video-empty {
	padding: 40px 0;
	color: #666;
	font-size: 14px;
	text-align: center;
}
