.youtube-playlist-block {
	margin: 2rem 0;
}

.youtube-playlist-container {
	display: flex;
	gap: 1.5rem;
	background-color: #1a1a1a; /* Dark black variation */
	border-radius: 8px;
	overflow: hidden;
}

.youtube-playlist-main {
	flex: 1;
	min-width: 0;
}

.youtube-playlist-video-wrapper {
	position: relative;
	width: 100%;
	background-color: #000000; /* Pure black */
}

.youtube-playlist-iframe {
	width: 100%;
	height: 100%;
	border: none;
	display: block;
}

.youtube-playlist-loading {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 300px;
	color: #ffffff;
}

.youtube-playlist-sidebar {
	width: 400px;
	background-color: #384369; /* Primary color */
	overflow-y: auto;
	max-height: calc(100vh - 4rem);
}

.youtube-playlist-list {
	display: flex;
	flex-direction: column;
}

.youtube-playlist-item {
	display: flex;
	gap: 1rem;
	padding: 1rem;
	cursor: pointer;
	transition: background-color 0.2s;
	border-bottom: 1px solid rgba(255, 255, 255, 0.1);
	background-color: #384369; /* Base color */
}

.youtube-playlist-item:hover {
	background-color: rgba(255, 255, 255, 0.1);
}

.youtube-playlist-item.active {
	background-color: rgba(255, 255, 255, 0.15);
	border-left: 3px solid #ffffff;
}

.youtube-playlist-item-thumbnail {
	position: relative;
	flex-shrink: 0;
	width: 160px;
	aspect-ratio: 16/9;
	overflow: hidden;
	border-radius: 4px;
	background-color: #2a2a2a; /* Dark gray variation */
}

.youtube-playlist-item-thumbnail img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.youtube-playlist-item-duration {
	position: absolute;
	bottom: 4px;
	right: 4px;
	background-color: rgba(0, 0, 0, 0.85); /* Black with transparency */
	color: #ffffff;
	padding: 2px 6px;
	border-radius: 2px;
	font-size: 12px;
	font-weight: 600;
	line-height: 1.4;
}

.youtube-playlist-item-content {
	flex: 1;
	min-width: 0;
	display: flex;
	flex-direction: column;
	justify-content: center;
}

.youtube-playlist-item-title {
	margin: 0;
	color: #ffffff;
	font-size: 14px;
	font-weight: 500;
	line-height: 1.4;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.youtube-playlist-empty {
	padding: 2rem;
	text-align: center;
	color: rgba(255, 255, 255, 0.7);
}

/* Responsive - Mobile: playlist below video */
@media (max-width: 768px) {
	.youtube-playlist-container {
		flex-direction: column;
		gap: 0;
	}

	.youtube-playlist-sidebar {
		width: 100%;
		max-height: 400px;
		border-top: 2px solid rgba(255, 255, 255, 0.1);
	}

	.youtube-playlist-item-thumbnail {
		width: 120px;
	}
}

/* Tablet adjustments */
@media (min-width: 769px) and (max-width: 1024px) {
	.youtube-playlist-sidebar {
		width: 320px;
	}

	.youtube-playlist-item-thumbnail {
		width: 140px;
	}
}
