/* Video card container */
.video-card {
	position: relative;
	width: 100%;
	margin-bottom: 5px;
}

/* Video thumbnail with aspect ratio */
.video-card-thumbnail {
	position: relative;
	width: 100%;
	aspect-ratio: 16 / 9;
	overflow: hidden;
	border-radius: 12px;
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
	cursor: pointer;
	transition: transform 0.2s ease;
}

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

/* Play button overlay */
.video-card-thumbnail .play-button {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	width: 68px;
	height: 48px;
	background: rgba(0, 0, 0, 0.8);
	border-radius: 12px;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: background 0.2s ease;
}

.video-card-thumbnail:hover .play-button {
	background: rgba(255, 0, 0, 0.9);
}

.video-card-thumbnail .play-button::before {
	content: "";
	width: 0;
	height: 0;
	border-style: solid;
	border-width: 10px 0 10px 18px;
	border-color: transparent transparent transparent #fff;
	margin-left: 3px;
}

/* Video title underneath */
.video-card-title {
	margin: 0;
}

.video-card-title a {
	font-size: 14px;
	overflow: hidden;
	text-overflow: ellipsis;
}

/* Ensure grid spacing */
.video-grid-container {
	margin: 0;
}

.video-grid-container .grid_4 {
	padding: 0;
}

/* Videos section container height */
.videos-section .content-box-content {
	padding: 15px;
	min-height: auto;
	overflow: auto;
}

/* Clear floats after video grid */
.video-grid-container::after {
	content: "";
	display: table;
	clear: both;
}
