/* Snazzy YouTube Playlist — list layout (thumbnail left, info right) */

.syp-playlist {
	display: flex;
	flex-direction: column;
	gap: 32px;
}

.syp-item {
	display: flex;
	align-items: flex-start;
	gap: 24px;
}

.syp-item.syp-hidden {
	display: none;
}

/* Thumbnail (left) */
.syp-thumb {
	position: relative;
	display: block;
	flex: 0 0 320px;
	max-width: 320px;
	aspect-ratio: 16 / 9;
	overflow: hidden;
	border-radius: 8px;
	background: #000;
	text-decoration: none;
}

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

.syp-thumb:hover img,
.syp-thumb:focus img {
	transform: scale(1.04);
}

/* Play button overlay */
.syp-play {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	pointer-events: none;
}

.syp-play::before {
	content: "";
	width: 56px;
	height: 40px;
	background: rgba(255, 0, 0, 0.85);
	border-radius: 12px;
	transition: background 0.2s ease;
}

.syp-play::after {
	content: "";
	position: absolute;
	width: 0;
	height: 0;
	border-style: solid;
	border-width: 9px 0 9px 16px;
	border-color: transparent transparent transparent #fff;
	margin-left: 3px;
}

.syp-thumb:hover .syp-play::before,
.syp-thumb:focus .syp-play::before {
	background: #f00;
}

/* Duration badge (bottom-right of thumbnail) */
.syp-duration {
	position: absolute;
	right: 8px;
	bottom: 8px;
	padding: 3px 8px;
	background: rgba(0, 0, 0, 0.8);
	color: #fff;
	font-size: 13px;
	font-weight: 500;
	line-height: 1.2;
	border-radius: 4px;
	letter-spacing: 0.02em;
}

/* Inline player (thumbnail swapped for iframe) */
.syp-embed {
	flex: 0 0 320px;
	max-width: 320px;
	aspect-ratio: 16 / 9;
	border-radius: 8px;
	overflow: hidden;
}

.syp-embed iframe {
	width: 100%;
	height: 100%;
	border: 0;
	display: block;
}

/* Info (right) */
.syp-info {
	flex: 1;
	min-width: 0;
}

.syp-title {
	margin: 0 0 0.35em;
	font-size: 1.25em;
	font-weight: 700;
	line-height: 1.3;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.syp-title a {
	text-decoration: none;
	color: inherit;
}

.syp-title a:hover,
.syp-title a:focus {
	text-decoration: underline;
}

.syp-date {
	margin-bottom: 0.75em;
	font-size: 0.95em;
	opacity: 0.75;
}

.syp-desc {
	margin: 0 0 0.75em;
	font-size: 1em;
	line-height: 1.6;
}

.syp-meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0 10px;
	font-size: 0.95em;
	opacity: 0.8;
}

.syp-meta .syp-dot {
	font-size: 0.7em;
	opacity: 0.7;
}

/* Load more (round chevron button, like the screenshot) */
.syp-more {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	align-self: center;
	min-width: 56px;
	min-height: 56px;
	padding: 0 18px;
	border: 0;
	border-radius: 999px;
	background: #fff;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
	cursor: pointer;
	transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.syp-more:hover,
.syp-more:focus {
	box-shadow: 0 4px 14px rgba(0, 0, 0, 0.22);
	transform: translateY(-1px);
}

.syp-more:empty,
.syp-more .syp-more-text:empty {
	padding: 0;
}

.syp-chevron {
	width: 12px;
	height: 12px;
	border-right: 2.5px solid #333;
	border-bottom: 2.5px solid #333;
	transform: rotate(45deg) translateY(-2px);
}

/* Editor-only error notice */
.syp-error {
	padding: 12px 16px;
	border-left: 4px solid #d63638;
	background: #fcf0f1;
	color: #3c434a;
	font-size: 0.9em;
}

/* Responsive: stack thumbnail above text on small screens */
@media (max-width: 640px) {
	.syp-item {
		flex-direction: column;
	}

	.syp-thumb,
	.syp-embed {
		flex-basis: auto !important;
		max-width: 100% !important;
		width: 100%;
	}

	.syp-title {
		white-space: normal;
	}
}
