.ytpg-wrapper {
	width: 100%;
}

.ytpg-grid {
	display: grid;
	grid-template-columns: repeat(var(--ytpg-columns, 3), 1fr);
	gap: 20px;
}

@media (max-width: 1024px) {
	.ytpg-grid {
		grid-template-columns: repeat(min(2, var(--ytpg-columns, 3)), 1fr);
	}
}

@media (max-width: 600px) {
	.ytpg-grid {
		grid-template-columns: 1fr;
	}
}

.ytpg-item {
	display: flex;
	flex-direction: column;
}

.ytpg-thumb-wrap {
	position: relative;
	width: 100%;
	aspect-ratio: 16 / 9;
	background: #000;
	cursor: pointer;
	overflow: hidden;
}

.ytpg-thumb {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform 0.25s ease;
}

.ytpg-thumb-wrap:hover .ytpg-thumb,
.ytpg-thumb-wrap:focus .ytpg-thumb {
	transform: scale(1.04);
}

.ytpg-play-btn {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	display: flex;
	align-items: center;
	justify-content: center;
	opacity: 0.9;
	filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.5));
	pointer-events: none;
	transition: opacity 0.2s ease, transform 0.2s ease;
}

.ytpg-thumb-wrap:hover .ytpg-play-btn,
.ytpg-thumb-wrap:focus .ytpg-play-btn {
	opacity: 1;
	transform: translate(-50%, -50%) scale(1.08);
}

.ytpg-thumb-wrap iframe {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	border: 0;
}

.ytpg-title {
	margin-top: 10px;
	font-size: 15px;
	line-height: 1.4;
	font-weight: 500;
}

.ytpg-admin-notice {
	padding: 14px 18px;
	background: #fff8e5;
	border: 1px solid #f0c36d;
	border-radius: 6px;
	color: #8a6100;
	font-size: 14px;
}
