@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');
.captfyt-card-list {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
	max-width: 1250px;
	gap: 20px;
}

.yt-card {
	background: #ffffff;
	border-radius: 14px;
	box-shadow: 0 2px 12px rgba(0, 0, 0, 0.07);
	overflow: hidden;
	width: 100%;
	min-width: 0;
	box-sizing: border-box;
	transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s ease;
	cursor: pointer;
	font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
	position: relative;
}

.yt-card:hover {
	transform: translateY(-6px);
	box-shadow: 0 16px 40px rgba(0, 0, 0, 0.14);
}

.yt-card-thumb-wrap {
	position: relative;
	overflow: hidden;
	display: block;
	line-height: 0;
}

.yt-card-thumbnail {
	width: 100% !important;
	height: 195px !important;
	object-fit: cover;
	display: block;
	transition: transform 0.4s ease;
}

.yt-card:hover .yt-card-thumbnail {
	transform: scale(1.04);
}

.yt-card-play-btn {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	background: rgba(0, 0, 0, 0.25);
	opacity: 0;
	transition: opacity 0.3s ease;
}

.yt-card:hover .yt-card-play-btn {
	opacity: 1;
}

.yt-card-icon-pause { display: none; }
.yt-card-thumb-wrap.captfyt-is-playing .yt-card-icon-play { display: none; }
.yt-card-thumb-wrap.captfyt-is-playing .yt-card-icon-pause { display: block; }
.yt-card-thumb-wrap.captfyt-is-playing .yt-card-play-btn { opacity: 1; }

.yt-card-play-btn svg {
	width: 52px;
	height: 52px;
	filter: drop-shadow(0 2px 8px rgba(0,0,0,0.4));
	transition: transform 0.2s ease;
}

.yt-card:hover .yt-card-play-btn svg {
	transform: scale(1.1);
}

.yt-card-content {
	padding: 14px 16px 16px;
}

.yt-card-title {
	margin: 0 0 7px;
	font-size: 15px;
	color: #0f0f0f;
	font-weight: 600;
	line-height: 1.45;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.yt-card-description {
	margin: 0 0 12px;
	font-size: 13px;
	color: #737373;
	line-height: 1.55;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.yt-channel-info {
	display: flex;
	align-items: center;
	gap: 8px;
	padding-top: 10px;
	border-top: 1px solid #f0f0f0;
}

.yt-channel-dot {
	width: 28px;
	height: 28px;
	border-radius: 50%;
	background: linear-gradient(135deg, #ff4e4e, #ff0000);
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
}

.yt-channel-dot svg {
	width: 13px;
	height: 13px;
	fill: #fff;
}

.yt-channel-name {
	font-size: 13px;
	color: #555;
	font-weight: 500;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

/* Inline play (added via Video Play Mode = "Play Inline on Page") */
.captfyt-inline-iframe { display: block; width: 100%; height: 100%; border: 0; background: #000; }
.captfyt-inline-close { position: absolute; top: 8px; right: 8px; width: 26px; height: 26px; padding: 0; border: 0; border-radius: 50%; background: rgba(0, 0, 0, 0.65); color: #fff; display: flex; align-items: center; justify-content: center; cursor: pointer; z-index: 5; line-height: 0; }
.captfyt-inline-close:hover { background: rgba(0, 0, 0, 0.85); }
