.ytpd-wrapper {
	display: flex;
	flex-wrap: nowrap;
	align-items: flex-start;
	gap: 16px;
	width: 100%;
	max-width: 100%;
	font-family: Roboto, Arial, sans-serif;
	color: #0f0f0f;
	box-sizing: border-box;
}

.ytpd-wrapper * {
	box-sizing: border-box;
}

.ytpd-player {
	order: 2;
	flex: 1 1 auto;
	min-width: 0;
	width: 100%;
	background: #000;
	border-radius: 12px;
	overflow: hidden;
	aspect-ratio: 16 / 9;
	height: auto;
	max-height: var(--ytpd-height, 480px);
}

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

.ytpd-sidebar {
	order: 1;
	flex: 0 0 340px;
	width: 340px;
	max-width: 340px;
	min-width: 260px;
	border: 1px solid #e5e5e5;
	border-radius: 12px;
	background: #fff;
	display: flex;
	flex-direction: column;
	max-height: var(--ytpd-height, 480px);
}

.ytpd-sidebar-header {
	padding: 14px 16px 10px;
	border-bottom: 1px solid #f1f1f1;
}

.ytpd-title {
	margin: 0 0 4px;
	font-size: 16px;
	font-weight: 700;
	line-height: 1.3;
}

.ytpd-meta {
	margin: 0;
	font-size: 13px;
	color: #606060;
}

.ytpd-dot {
	margin: 0 4px;
}

.ytpd-list {
	list-style: none;
	margin: 0;
	padding: 6px;
	overflow-y: auto;
	flex: 1 1 auto;
}

.ytpd-item {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 6px;
	border-radius: 8px;
	cursor: pointer;
	transition: background-color 0.15s ease;
}

.ytpd-item:hover {
	background: #f2f2f2;
}

.ytpd-item.is-active {
	background: #e8e8e8;
}

.ytpd-item-index {
	flex: 0 0 18px;
	font-size: 12px;
	color: #606060;
	text-align: center;
}

.ytpd-thumb-wrap {
	position: relative;
	flex: 0 0 120px;
	width: 120px;
	height: 68px;
	border-radius: 6px;
	overflow: hidden;
	background: #ddd;
}

.ytpd-thumb {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.ytpd-duration {
	position: absolute;
	right: 4px;
	bottom: 4px;
	background: rgba(0, 0, 0, 0.8);
	color: #fff;
	font-size: 11px;
	line-height: 1;
	padding: 3px 4px;
	border-radius: 3px;
	font-weight: 600;
}

.ytpd-item-info {
	display: flex;
	flex-direction: column;
	min-width: 0;
	gap: 2px;
}

.ytpd-item-title {
	font-size: 13px;
	font-weight: 600;
	line-height: 1.3;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.ytpd-item.is-active .ytpd-item-title {
	color: #0f0f0f;
}

.ytpd-item-channel {
	font-size: 12px;
	color: #606060;
}

.ytpd-notice {
	padding: 12px 16px;
	background: #fef7f1;
	border: 1px solid #f0b849;
	border-radius: 8px;
	color: #5a4400;
	font-size: 14px;
}

/* Stack the player above the list on narrow/mobile screens. */
@media (max-width: 700px) {
	.ytpd-wrapper {
		flex-direction: column;
	}

	.ytpd-player {
		order: 1;
		width: 100%;
		max-height: none;
	}

	.ytpd-sidebar {
		order: 2;
		width: 100%;
		max-width: 100%;
		min-width: 0;
		max-height: 420px;
	}
}
@media (max-width: 700px) {
	.ytpd-wrapper {
		flex-direction: column;
	}
 
	.ytpd-player {
		order: 1;
		flex: 0 0 auto;
		width: 100%;
		max-height: none;
	}
 
	.ytpd-sidebar {
		order: 2;
		flex: 1 1 auto;
		width: 100%;
		max-width: 100%;
		min-width: 0;
		max-height: 420px;
	}
}
 

