/* ============================================================
   Profile Modal
   ============================================================ */

.Profile_Overlay {
	display: none;
	position: fixed;
	inset: 0;
	background: rgba(0, 0, 0, 0.85);
	z-index: 500;
	align-items: center;
	justify-content: center;
}

.Profile_Overlay.Open {
	display: flex;
}

.Profile_Modal {
	position: relative;
	background: var(--Color_Gray_20);
	border: 1px solid color-mix(in srgb, var(--color-cyan) 50%, black);
	border-radius: 8px;
	padding: 2.5rem 3rem;
	width: min(440px, 92vw);
	max-height: 90vh;
	overflow-y: auto;
	color: var(--color-white);
}

.Btn_Profile_Close {
	position: absolute;
	top: 0.75rem;
	right: 0.75rem;
	background: transparent;
	border: none;
	color: var(--color-gray);
	font-size: 1.75rem;
	line-height: 1;
	cursor: pointer;
	padding: 0;
}

.Btn_Profile_Close:hover {
	color: var(--color-white);
}

.Profile_Title {
	margin: 0 0 0.25rem;
	color: var(--color-cyan);
	font-size: 2rem;
	font-weight: normal;
	letter-spacing: 0.1em;
	text-transform: uppercase;
}

.Profile_Email_Display {
	margin: 0 0 1.75rem;
	color: var(--color-gray);
	font-size: 1.19rem;
}

#Form_Profile label {
	display: block;
	font-size: 1.06rem;
	color: var(--color-gray-light);
	margin-bottom: 0.35rem;
	letter-spacing: 0.04em;
}

#Form_Profile input[type="text"],
#Form_Profile input[type="tel"] {
	display: block;
	width: 100%;
	box-sizing: border-box;
	background: var(--color-bg-dark);
	border: 1px solid var(--color-gray-dark);
	color: var(--color-white);
	padding: 0.65rem 0.8rem;
	font-size: 1.25rem;
	margin-bottom: 1.25rem;
	outline: none;
}

#Form_Profile input[type="text"]:focus,
#Form_Profile input[type="tel"]:focus {
	border-color: var(--color-cyan);
}

.Profile_Checkboxes {
	display: flex;
	gap: 1.5rem;
	margin-bottom: 1.25rem;
}

.Profile_Check_Label {
	display: flex;
	align-items: center;
	gap: 0.45rem;
	font-size: 1.13rem;
	color: var(--color-gray-light);
	cursor: pointer;
}

.Profile_Check_Label input[type="checkbox"] {
	accent-color: var(--color-cyan);
	width: 1rem;
	height: 1rem;
	cursor: pointer;
}

/* --- Tabs --- */

.PM_Tabs {
	display: flex;
	gap: 0;
	margin-bottom: 1.75rem;
	border-bottom: 1px solid var(--color-gray-dark);
}

.PM_Tab {
	background: transparent;
	border: none;
	border-bottom: 2px solid transparent;
	color: var(--color-gray);
	font-size: 1.13rem;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	padding: 0.5rem 1.1rem;
	margin-bottom: -1px;
	cursor: pointer;
	transition: color 0.15s, border-color 0.15s;
}

.PM_Tab:hover {
	color: var(--color-white);
}

.PM_Tab.PM_Tab_Active {
	color: var(--color-cyan);
	border-bottom-color: var(--color-cyan);
}

.PM_Tab_Panel_Hidden {
	display: none;
}

.Profile_Fav_Songs {
	margin-bottom: 1.25rem;
}

.Profile_Fav_Songs label {
	display: block;
	font-size: 1.06rem;
	color: var(--color-gray-light);
	margin-bottom: 0.5rem;
	letter-spacing: 0.04em;
}

.Profile_Songs_Display {
	display: flex;
	flex-direction: column;
	gap: 0.4rem;
	margin-bottom: 0.6rem;
	min-height: 3rem;
	max-height: 13rem;
	overflow-y: auto;
	padding-right: 0.25rem;
}

.Profile_Songs_Empty {
	color: var(--color-gray-dark);
	font-size: 1.06rem;
}

.Profile_Song_Tag {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.35rem;
	border: 1px solid rgb(0, 125, 125);
	background: rgba(0, 250, 250, 0.06);
	color: var(--color-cyan);
	padding: 0.35rem 0.5rem;
	font-size: 1rem;
	border-radius: 3px;
}

.Profile_Song_Remove {
	background: transparent;
	border: none;
	color: rgb(220, 80, 80);
	cursor: pointer;
	font-size: 0.94rem;
	padding: 0;
	line-height: 1;
}

.Btn_Browse_Profile_Songs {
	display: block;
	background: rgba(255, 165, 85, 0.12);
	border: 1px solid rgb(255, 165, 85);
	color: rgb(255, 185, 105);
	padding: 0.5rem 1.25rem;
	font-size: 1.31rem;
	cursor: pointer;
	transition: border-color 0.15s, color 0.15s, background 0.15s;
	margin: 0 auto 0.75rem;
	border-radius: 8px;
}

.Btn_Browse_Profile_Songs:hover {
	border-color: rgb(255, 200, 120);
	color: rgb(255, 220, 145);
	background: rgba(255, 165, 85, 0.2);
}

.Profile_Success {
	margin-bottom: 0.75rem;
	color: var(--color-cover-bright);
	font-size: 1.19rem;
}

.Profile_Error {
	margin-bottom: 0.75rem;
	color: rgb(240, 80, 80);
	font-size: 1.13rem;
}

.Profile_Log_Out {
	display: block;
	text-align: center;
	font-size: 1.06rem;
	color: var(--color-gray);
	cursor: pointer;
	background: none;
	border: none;
	width: 100%;
	letter-spacing: 0.05em;
	padding: 0;
}

.Profile_Log_Out:hover {
	color: rgb(240, 80, 80);
}

@media (max-width: 768px) {
	.Profile_Modal {
		width: 90% !important;
		padding: 2rem 1.75rem;
	}

	.Profile_Title {
		font-size: 2.5rem;
	}

	.Profile_Email_Display {
		font-size: 1.5rem;
	}

	#Form_Profile label {
		font-size: 1.5rem;
	}

	#Form_Profile input[type="text"],
	#Form_Profile input[type="tel"] {
		font-size: 1.75rem;
		padding: 0.85rem 1rem;
	}

	.Profile_Check_Label {
		font-size: 1.5rem;
	}

	.PM_Tab {
		font-size: 1.38rem;
		padding: 0.6rem 1.25rem;
	}

	.Btn_Browse_Profile_Songs {
		font-size: 1.63rem;
		padding: 0.6rem 1.2rem;
	}

	.Profile_Song_Tag {
		font-size: 1.38rem;
	}

	.Profile_Log_Out {
		font-size: 1.38rem;
	}
}
