/* Loaded after player.css so older responsive overrides cannot disable scrolling. */
/* Mobile multi-track names: this file loads after every player.css reset. */
@media (max-width: 600px) {
	.ny-player-portal-host .ny-player-portal-menu.ny-track-select-menu .ny-track-select-option,
	.ny-musicxml-player.is-compact-toolbar > .at-wrap > .at-footer .at-primary-track .ny-track-select-option {
		display: flex !important;
		align-items: center !important;
		justify-content: flex-start !important;
		min-height: 44px !important;
		padding: 9px 14px 9px 42px !important;
		color: #334155 !important;
		font-family: Arial, Helvetica, sans-serif !important;
		font-size: 12px !important;
		font-weight: 650 !important;
		line-height: 1.3 !important;
		text-align: left !important;
		text-indent: 0 !important;
		white-space: normal !important;
		overflow: visible !important;
		overflow-wrap: anywhere !important;
		opacity: 1 !important;
		visibility: visible !important;
	}

	.ny-player-portal-host .ny-player-portal-menu.ny-track-select-menu .ny-track-select-option.is-selected,
	.ny-musicxml-player.is-compact-toolbar > .at-wrap > .at-footer .at-primary-track .ny-track-select-option.is-selected {
		color: #1769e0 !important;
	}
}

.ny-musicxml-player .at-profile-preference-note,
.ny-player-portal-host .at-profile-preference-note {
	display: flex;
	align-items: flex-start;
	gap: 8px;
	min-width: 0;
	width: calc(100% - 20px);
	max-width: calc(100% - 20px);
	margin: 10px 10px 8px;
	padding: 8px 12px 8px 20px;
	border: 1px solid #e5edf8;
	border-radius: 10px;
	background: #f5f9ff;
	color: #526174;
	font-size: 10px;
	line-height: 1.45;
	white-space: normal !important;
	overflow: hidden;
	box-sizing: border-box;
	text-align: left !important;
}

.ny-musicxml-player .at-profile-preference-note > i,
.ny-player-portal-host .at-profile-preference-note > i {
	margin-top: 2px;
	margin-left: 1px;
	color: #6592dc;
	font-size: 11px;
	flex: 0 0 auto;
}

@media (min-width: 601px) {
	.ny-musicxml-player .at-profile-preference-note,
	.ny-player-portal-host .at-profile-preference-note {
		--ny-profile-note-font-size: 12px;
		font-size: var(--ny-profile-note-font-size) !important;
	}

	.ny-musicxml-player .at-profile-preference-note > span,
	.ny-player-portal-host .at-profile-preference-note > span,
	.ny-musicxml-player .at-profile-preference-note a,
	.ny-player-portal-host .at-profile-preference-note a,
	.ny-musicxml-player .at-profile-preference-login,
	.ny-player-portal-host .at-profile-preference-login {
		font-size: var(--ny-profile-note-font-size) !important;
	}

	.ny-musicxml-player .at-profile-preference-note > i,
	.ny-player-portal-host .at-profile-preference-note > i {
		margin-left: 10px !important;
		font-size: 10px !important;
	}
}

.ny-musicxml-player .at-profile-preference-note > span,
.ny-player-portal-host .at-profile-preference-note > span {
	display: block;
	flex: 1 1 auto;
	min-width: 0;
	width: auto;
	max-width: 100%;
	white-space: normal !important;
	overflow-wrap: anywhere;
	word-break: normal;
	text-align: left !important;
}

.ny-musicxml-player .at-profile-preference-note a,
.ny-player-portal-host .at-profile-preference-note a,
.ny-musicxml-player .at-profile-preference-login,
.ny-player-portal-host .at-profile-preference-login {
	display: inline !important;
	width: auto !important;
	height: auto !important;
	min-width: 0 !important;
	min-height: 0 !important;
	margin: 0 !important;
	padding: 0 !important;
	border: 0 !important;
	background: transparent !important;
	font: inherit;
	color: #1769e0;
	font-weight: 700;
	line-height: inherit;
	white-space: normal !important;
	text-align: left !important;
	overflow-wrap: anywhere;
	text-decoration: none;
	cursor: pointer;
}

.ny-musicxml-player .at-profile-preference-note a:hover,
.ny-player-portal-host .at-profile-preference-note a:hover,
.ny-musicxml-player .at-profile-preference-login:hover,
.ny-player-portal-host .at-profile-preference-login:hover {
	text-decoration: underline;
}

@media (max-width: 600px) {
	.ny-musicxml-player .at-profile-preference-note,
	.ny-player-portal-host .at-profile-preference-note {
		gap: 7px;
		width: calc(100% - 16px);
		max-width: calc(100% - 16px);
		margin: 10px 8px 8px;
		padding: 10px 12px;
		font-size: 10.5px;
		line-height: 1.45;
	}

	.ny-musicxml-player .at-profile-preference-note > i,
	.ny-player-portal-host .at-profile-preference-note > i {
		margin-left: 0;
		font-size: 12px;
	}
}

@media (max-width: 768px), (max-width: 1024px) and (max-height: 520px) and (orientation: landscape) {
	.ny-musicxml-player.is-fullscreen-active > .at-wrap,
	.ny-musicxml-player:fullscreen > .at-wrap {
		display: flex !important;
		flex-direction: column !important;
		width: 100vw !important;
		height: 100vh !important;
		height: 100dvh !important;
		overflow: hidden !important;
		overscroll-behavior: none !important;
	}

	.ny-musicxml-player.is-fullscreen-active > .at-wrap > .at-footer,
	.ny-musicxml-player:fullscreen > .at-wrap > .at-footer {
		flex: 0 0 auto !important;
	}

	.ny-musicxml-player.is-fullscreen-active > .at-wrap > .at-content,
	.ny-musicxml-player:fullscreen > .at-wrap > .at-content {
		position: relative !important;
		inset: auto !important;
		display: block !important;
		flex: 1 1 auto !important;
		width: 100% !important;
		height: auto !important;
		min-height: 0 !important;
		overflow: hidden !important;
	}

	.ny-musicxml-player.is-fullscreen-active > .at-wrap > .at-content > .at-viewport,
	.ny-musicxml-player:fullscreen > .at-wrap > .at-content > .at-viewport {
		position: absolute !important;
		inset: 0 !important;
		display: block !important;
		width: 100% !important;
		height: 100% !important;
		min-width: 0 !important;
		min-height: 0 !important;
		overflow-x: auto !important;
		overflow-y: auto !important;
		overscroll-behavior-x: contain !important;
		overscroll-behavior-y: contain !important;
		-webkit-overflow-scrolling: touch !important;
		touch-action: pan-x pan-y !important;
		scrollbar-gutter: auto !important;
	}

	.ny-musicxml-player.is-fullscreen-active.has-visualizer > .at-wrap > .at-content > .at-viewport,
	.ny-musicxml-player:fullscreen.has-visualizer > .at-wrap > .at-content > .at-viewport {
		padding-bottom: calc(var(--ny-visualizer-pad, 286px) + env(safe-area-inset-bottom, 0px)) !important;
	}

	.ny-musicxml-player.is-fullscreen-active.is-horizontal .at-page,
	.ny-musicxml-player:fullscreen.is-horizontal .at-page,
	.ny-musicxml-player.is-fullscreen-active.is-horizontal .at-main,
	.ny-musicxml-player:fullscreen.is-horizontal .at-main {
		width: max-content !important;
		min-width: 100% !important;
		max-width: none !important;
	}
}
