/* =========================================================
   WatchWhere Playlist UI V3
   Complete Playlist Modal Styles
   ========================================================= */

/* ---------- Modal Overlay ---------- */

.ww-pl-modal {
	position: fixed;
	inset: 0;
	display: none;
	align-items: center;
	justify-content: center;
	background: rgba(0, 0, 0, 0.65);
	z-index: 99999;
	padding: 20px;
	box-sizing: border-box;
}


/* ---------- Main Modal Box ---------- */

.ww-pl-box {
	width: 420px;
	max-width: 95%;
	max-height: 90vh;
	background: #ffffff;
	border-radius: 12px;
	overflow: hidden;
	box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
	color: #222222;
}


/* ---------- Header ---------- */

.ww-pl-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 18px 20px;
	border-bottom: 1px solid #ececec;
	background: #ffffff;
}

.ww-pl-header h3 {
	margin: 0;
	padding: 0;
	font-size: 20px;
	line-height: 1.3;
	font-weight: 700;
	color: #222222 !important;
}

.ww-pl-close {
	background: transparent !important;
	border: 0 !important;
	font-size: 28px;
	line-height: 1;
	font-weight: 400;
	cursor: pointer;
	color: #444444 !important;
	padding: 2px 5px;
}


/* ---------- Loader ---------- */

.ww-pl-loader {
	padding: 20px;
	text-align: center;
	font-size: 14px;
	color: #666666 !important;
}


/* ---------- Playlist List ---------- */

.ww-pl-list {
	max-height: 320px;
	overflow-y: auto;
	padding: 15px 20px;
	background: #ffffff;
}


/* ---------- Individual Playlist ---------- */

.ww-pl-item {
	display: flex;
	align-items: center;
	justify-content: flex-start;
	width: 100%;
	padding: 12px 0;
	border-bottom: 1px solid #f2f2f2;
	box-sizing: border-box;
}

.ww-pl-item:last-child {
	border-bottom: none;
}


/* ---------- Playlist Name ---------- */

/*
 * IMPORTANT:
 * The JavaScript creates:
 *
 * <div class="ww-pl-item">
 *     <label>
 *         <input class="ww-pl-checkbox">
 *         playlist name
 *     </label>
 * </div>
 *
 * Therefore the correct selector is:
 * .ww-pl-item label
 *
 * NOT .ww-pl-name
 */

.ww-pl-item label {
	display: flex !important;
	align-items: center;
	width: 100%;
	margin: 0 !important;
	padding: 0 !important;

	font-size: 15px !important;
	line-height: 1.5;
	font-weight: 600 !important;

	color: #222222 !important;
	background: transparent !important;

	opacity: 1 !important;
	visibility: visible !important;

	cursor: pointer;
}


/* ---------- Checkbox ---------- */

.ww-pl-checkbox {
	width: 16px;
	height: 16px;
	min-width: 16px;
	margin: 0 9px 0 0 !important;

	cursor: pointer;
	accent-color: #ff2f7d;
}


/* ---------- Playlist Footer ---------- */

.ww-pl-footer {
	padding: 18px 20px;
	border-top: 1px solid #ececec;
	background: #ffffff;
}


/* ---------- New Playlist Button ---------- */

#ww-new-pl-trigger {
	display: block;
	width: 100%;
	padding: 10px 14px;

	border: 0 !important;
	border-radius: 8px;

	background: #ff2f7d !important;
	color: #ffffff !important;

	font-size: 14px;
	line-height: 1.4;
	font-weight: 700;

	cursor: pointer;
	text-align: center;
}

#ww-new-pl-trigger:hover {
	background: #e91f6d !important;
}


/* ---------- New Playlist Form ---------- */

#ww-new-pl-box {
	margin-top: 15px;
}


/* ---------- New Playlist Input ---------- */

#ww-new-pl-name {
	display: block;
	width: 100%;
	box-sizing: border-box;

	padding: 10px 12px;

	border: 1px solid #dddddd !important;
	border-radius: 8px;

	background: #ffffff !important;
	color: #222222 !important;

	font-size: 14px;
	line-height: 1.4;

	margin: 0 0 10px 0;
}

#ww-new-pl-name::placeholder {
	color: #888888 !important;
	opacity: 1;
}

#ww-new-pl-name:focus {
	outline: none;
	border-color: #ff2f7d !important;
	box-shadow: 0 0 0 2px rgba(255, 47, 125, 0.12);
}


/* ---------- Create Button ---------- */

#ww-create-playlist {
	display: block;
	width: 100%;
	padding: 10px 14px;

	border: 0 !important;
	border-radius: 8px;

	background: #111827 !important;
	color: #ffffff !important;

	font-size: 14px;
	line-height: 1.4;
	font-weight: 700;

	cursor: pointer;
	text-align: center;
}

#ww-create-playlist:hover {
	background: #000000 !important;
}


/* ---------- Status Message ---------- */

.ww-pl-status {
	padding: 15px 20px;

	font-size: 13px;
	line-height: 1.4;

	color: #16a34a !important;

	text-align: center;

	min-height: 22px;
	box-sizing: border-box;
}


/* ---------- Empty Playlist Message ---------- */

.ww-pl-list p {
	margin: 10px 0;
	padding: 10px 0;

	font-size: 14px;
	line-height: 1.5;

	color: #666666 !important;
	text-align: center;
}


/* ---------- Scrollbar ---------- */

.ww-pl-list::-webkit-scrollbar {
	width: 7px;
}

.ww-pl-list::-webkit-scrollbar-track {
	background: #f5f5f5;
}

.ww-pl-list::-webkit-scrollbar-thumb {
	background: #cccccc;
	border-radius: 10px;
}

.ww-pl-list::-webkit-scrollbar-thumb:hover {
	background: #aaaaaa;
}


/* ---------- Mobile ---------- */

@media (max-width: 480px) {

	.ww-pl-modal {
		padding: 12px;
	}

	.ww-pl-box {
		width: 94%;
		max-width: 94%;
		max-height: 90vh;
		border-radius: 10px;
	}

	.ww-pl-header {
		padding: 16px;
	}

	.ww-pl-header h3 {
		font-size: 18px;
	}

	.ww-pl-list {
		padding: 12px 16px;
		max-height: 280px;
	}

	.ww-pl-item {
		padding: 11px 0;
	}

	.ww-pl-item label {
		font-size: 14px !important;
	}

	.ww-pl-footer {
		padding: 16px;
	}

}