/*
*	YouTube lejátszási lista styles
*/

.ytpl-wrap { margin-bottom: 40px; }

/* --- lista-fejléc --- */

.ytpl-lista { margin-bottom: 42px; }
.ytpl-lista:last-child { margin-bottom: 0; }

.ytpl-fejlec {
	display: flex;
	align-items: baseline;
	flex-wrap: wrap;
	gap: 4px 14px;
	margin-bottom: 16px;
	padding-bottom: 10px;
	border-bottom: 3px solid #ffbc68;
}

.ytpl-lista-cim { margin: 0; font-size: 22px; line-height: 1.3; }
.ytpl-lista-cim a { color: #1d1d1d; text-decoration: none; }
.ytpl-lista-cim a:hover { color: #b96f00; }

.ytpl-darab {
	font-size: 13px;
	color: #8a8578;
	white-space: nowrap;
}

/* --- videórács --- */

.ytpl-racs {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
	gap: 22px 18px;
}

.ytpl-video {
	background: #ffffff;
	border: 1px solid #f0ece4;
	border-radius: 8px;
	overflow: hidden;
	transition: box-shadow 0.15s ease, border-color 0.15s ease;
}
.ytpl-video:hover {
	border-color: #e5dfd4;
	box-shadow: 0 4px 14px rgba(80, 65, 35, 0.12);
}

.ytpl-thumb {
	position: relative;
	display: block;
	background: #1d1d1d;
}
.ytpl-thumb img {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 16 / 9;
	object-fit: cover; /* a hqdefault 4:3 képéről levágja a fekete sávokat */
	margin: 0;
}

.ytpl-hossz {
	position: absolute;
	right: 6px;
	bottom: 6px;
	padding: 2px 6px;
	background: rgba(0, 0, 0, 0.8);
	border-radius: 4px;
	font-size: 12px;
	font-weight: bold;
	line-height: 1.4;
	color: #ffffff;
}

.ytpl-play {
	position: absolute;
	top: 50%;
	left: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 46px;
	height: 46px;
	transform: translate(-50%, -50%);
	background: rgba(0, 0, 0, 0.65);
	border-radius: 50%;
	color: #ffffff;
	opacity: 0;
	transition: opacity 0.15s ease, background 0.15s ease;
}
.ytpl-play svg { margin-left: 3px; }
.ytpl-video:hover .ytpl-play { opacity: 1; background: #ffbc68; color: #1d1d1d; }

/* beágyazott lejátszó (kattintás után a JS teszi be) */
.ytpl-player {
	position: relative;
	aspect-ratio: 16 / 9;
	background: #000000;
}
.ytpl-player iframe {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	border: 0;
}

.ytpl-video-cim {
	margin: 0;
	padding: 10px 12px 12px;
	font-size: 14px;
	font-weight: bold;
	line-height: 1.4;
}
.ytpl-video-cim a { color: #333333; text-decoration: none; }
.ytpl-video-cim a:hover { color: #b96f00; }

/* --- hibaüzenet --- */

.ytpl-hiba {
	margin-bottom: 22px;
	padding: 14px 18px;
	background: #faf9f6;
	border: 1px solid #f0ece4;
	border-radius: 8px;
	font-size: 14px;
	color: #555555;
}
.ytpl-hiba a { margin-left: 6px; color: #b96f00; }

/* --- mobil --- */

@media only screen and (max-width: 480px) {
	.ytpl-racs { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 16px 12px; }
	.ytpl-lista-cim { font-size: 19px; }
	.ytpl-video-cim { font-size: 13px; padding: 8px 10px 10px; }
}
