/* Hạnh các thánh Playlist */

.xito-playlist-container {
	display: grid;
	grid-template-columns: minmax(0, 65fr) minmax(0, 35fr);
	width: 100%;
	margin: 40px auto;
	overflow: hidden;
	box-sizing: border-box;
	background: #f4eee6;
	border: 1px solid #e5d9c5;
	border-radius: 16px;
	box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
	color: #333333;
	font-family: 'Roboto', sans-serif;
}

.xito-playlist-container *,
.xito-playlist-container *::before,
.xito-playlist-container *::after {
	box-sizing: border-box;
}

.xito-playlist-container .xito-video-col {
	display: flex;
	flex-direction: column;
	padding: 24px;
}

.xito-playlist-container .xito-video-wrapper {
	position: relative;
	height: 0;
	padding-bottom: 56.25%;
	overflow: hidden;
	background: #000;
	border-radius: 12px;
	box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.xito-playlist-container .xito-video-wrapper iframe {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	border: 0;
}

.xito-playlist-container .xito-list-col {
	display: flex;
	flex-direction: column;
	min-width: 0;
	background: #fdfbfb;
	border-left: 1px solid #e5d9c5;
}

.xito-playlist-container .xito-list-header {
	margin: 0;
	padding: 20px 24px;
	border-bottom: 1px solid #e5d9c5;
	color: #7a110d;
	font-family: inherit;
	font-size: 1.1rem;
	font-weight: 700;
	line-height: 1.4;
}

/* 4 mục x 101px (ảnh 68 + padding 32 + viền 1) */
.xito-playlist-container .xito-list-items {
	flex: 1;
	max-height: 405px;
	margin: 0;
	padding: 0;
	overflow-y: auto;
	list-style: none;
	overscroll-behavior: contain;
	-webkit-overflow-scrolling: touch;
	scroll-behavior: smooth;
	scrollbar-width: thin;
	scrollbar-color: #c2a69b transparent;
}

.xito-playlist-container .xito-list-items::-webkit-scrollbar { width: 6px; }
.xito-playlist-container .xito-list-items::-webkit-scrollbar-track { background: transparent; }
.xito-playlist-container .xito-list-items::-webkit-scrollbar-thumb { background: #c2a69b; border-radius: 10px; }
.xito-playlist-container .xito-list-items::-webkit-scrollbar-thumb:hover { background: #7a110d; }

.xito-playlist-container .xito-list-items > li {
	margin: 0;
	padding: 0;
	list-style: none;
}

.xito-playlist-container .xito-list-items > li::before {
	content: none;
}

/* Đặt lại kiểu <button> mà theme thường can thiệp */
.xito-playlist-container .xito-item {
	display: flex;
	align-items: center;
	width: 100%;
	min-height: 0;
	margin: 0;
	padding: 16px 24px 16px 20px;
	background: transparent;
	border: 0;
	border-left: 4px solid transparent;
	border-bottom: 1px solid #e5d9c5;
	border-radius: 0;
	box-shadow: none;
	color: inherit;
	font: inherit;
	letter-spacing: normal;
	text-align: left;
	text-transform: none;
	cursor: pointer;
	transition: background-color 0.3s ease, border-color 0.3s ease;
}

.xito-playlist-container .xito-item:hover {
	background: #e8dcca;
}

.xito-playlist-container .xito-item:focus {
	outline: none;
}

.xito-playlist-container .xito-item:focus-visible {
	outline: 2px solid #7a110d;
	outline-offset: -2px;
}

.xito-playlist-container .xito-item.active {
	background: #ebdcd0;
	border-left-color: #7a110d;
}

.xito-playlist-container .xito-item.active .xito-item-title {
	color: #4e0007;
	font-weight: 700;
}

.xito-playlist-container .xito-item-thumb {
	display: block;
	flex: 0 0 120px;
	width: 120px;
	height: 68px;
	margin-right: 16px;
	overflow: hidden;
	background: #e5d9c5;
	border-radius: 8px;
	box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.xito-playlist-container .xito-item-thumb img {
	display: block;
	width: 100%;
	max-width: none;
	height: 100%;
	margin: 0;
	object-fit: cover;
}

.xito-playlist-container .xito-item-info {
	display: flex;
	flex: 1;
	flex-direction: column;
	justify-content: center;
	min-width: 0;
}

.xito-playlist-container .xito-item-title {
	display: -webkit-box;
	margin-bottom: 4px;
	overflow: hidden;
	color: #7a110d;
	font-size: 0.95rem;
	font-weight: 600;
	line-height: 1.4;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
}

.xito-playlist-container .xito-item-date {
	display: block;
	color: #666666;
	font-size: 0.8rem;
}

@media (max-width: 992px) {
	.xito-playlist-container {
		grid-template-columns: minmax(0, 1fr);
		margin: 20px auto;
	}

	.xito-playlist-container .xito-list-col {
		border-left: none;
		border-top: 1px solid #e5d9c5;
	}
}

@media (max-width: 480px) {
	.xito-playlist-container .xito-video-col {
		padding: 12px;
	}

	.xito-playlist-container .xito-item {
		padding: 12px 16px 12px 12px;
	}

	.xito-playlist-container .xito-item-thumb {
		flex-basis: 96px;
		width: 96px;
		height: 54px;
		margin-right: 12px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.xito-playlist-container .xito-list-items { scroll-behavior: auto; }
	.xito-playlist-container .xito-item { transition: none; }
}

.xito-hct-empty {
	text-align: center;
}

.xito-hct-notice {
	padding: 12px 16px;
	background: #fff4f4;
	border-left: 4px solid #7a110d;
	color: #4e0007;
}

.xito-hct-toast {
	position: fixed;
	right: 20px;
	bottom: 20px;
	z-index: 99999;
	padding: 12px 18px;
	background: #121212;
	border-left: 4px solid #7a110d;
	border-radius: 8px;
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
	color: #fdfbfb;
	font: 14px/1.4 Roboto, sans-serif;
}
