/* NOXU Media v2.0.0
 * Developed for NOXU Music Group by Wessel Pingen, wpingen.com
 */


:root {
	--nx-surface-primary: #ffffff;
	--nx-surface-secondary: #f2f2f2;
	--nx-text-primary: #000000;
	--nx-text-secondary: #6f6f6f;
	--nx-border-color: #e7e7e7;
	--nx-border-focus-color: #cdcdcd;
	--nx-badge-surface: #303030;
	--nx-badge-text: #ffffff;
}

.nx_theme-dark {
	--nx-surface-primary: #151515;
	--nx-surface-secondary: #212122;
	--nx-text-primary: #ffffff;
	--nx-text-secondary: #6f6f6f;
	--nx-border-color: #414141;
	--nx-border-focus-color: #5b5b5b;
	--nx-badge-surface: #ffffff;
	--nx-badge-text: #000000;
}

/* Audio Player */
.nx_media-player {
	margin: 0;
	padding: 8px 14px 8px 6px;
	
	background: var(--nx-surface-secondary);
	color: var(--nx-text-primary);
	font-weight: normal;
	
	position: relative;
	
	box-sizing: border-box;
	
	display: flex;
	flex-flow: row nowrap;
	align-items: center;
	
	border-radius: 10px;
	
	touch-action: none;
	user-select: none;
	-webkit-user-select: none;
	-moz-user-select: none;
}

.nx_theme-dark .nx_media-player {
	box-shadow: inset 0 0 0 1px #242424;
}

.nx_media-player.disabled {
	display: none !important;
}

.nx_media-player .track-controls {
	margin: 0 8px;
	display: flex;
	align-items: center;
}

.nx_media-player .track-controls button {
	margin: 0;
	padding: 0;
	appearance: none;
	background-color: transparent;
	box-sizing: border-box;
	border: none;
	cursor: pointer;
}

.nx_media-player .track-controls svg {
	fill: var(--nx-text-primary);
}

.nx_media-player .track-controls .play-pause {
	width: 24px;
	height: 24px;
	flex: 0 0 24px;
}

.nx_media-player .track-controls .pause-icon,
.nx_media-player.playing .track-controls .play-icon {
	display: none;
}

.nx_media-player.playing .track-controls .pause-icon {
	display: block;
}

.nx_media-player .track-progress {
	margin: 0 6px;
	padding: 8px 0 21px 0;
	
	font-size: 0.875em;
	white-space: nowrap;
	position: relative;
	flex-grow: 1;
	cursor: pointer;
}

.nx_media-player.dragging .track-progress {
	cursor: ew-resize;
}

.nx_media-player .progress-bar {
	left: 0;
	right: 0;
	bottom: 8px;
	height: 6px;
	background: #cecece;
	position: absolute;
	border-radius: 6px;
	overflow: hidden;
}

.nx_theme-dark .nx_media-player .progress-bar {
	background: #404040;
}

.nx_media-player .progress-bar .progress-played,
.nx_media-player .progress-bar .progress-scrub,
.nx_media-player .progress-bar .progress-buffer {
	left: 0;
	height: inherit;
	position: absolute;
}

.nx_media-player .progress-bar .progress-played {
	background: #303030;
	z-index: 3;
}

.nx_theme-dark .nx_media-player .progress-bar .progress-played {
	background: #ffffff;
}

.nx_media-player .progress-bar .progress-scrub {
	background: #848484;
	visibility: hidden;
	z-index: 2;
}

.nx_theme-dark .nx_media-player .progress-bar .progress-scrub {
	background: #b4b4b4;
}

.nx_media-player.scrubbing .progress-bar .progress-scrub {
	visibility: visible;
}

.nx_media-player.dragging.scrubbing .progress-bar .progress-scrub {
	visibility: hidden;
}

.nx_media-player .progress-bar .progress-buffer {
	background: #bababa;
	z-index: 1;
}

.nx_theme-dark .nx_media-player .progress-bar .progress-buffer {
	background: #545454;
}

.nx_media-player .track-position {
	float: left;
}

.nx_media-player .track-duration {
	color: var(--nx-text-secondary);
	float: right;
}

.nx_media-player .track-position,
.nx_media-player .track-duration {
	opacity: 1;
	transition: opacity 0.2s ease-in-out 0.1s;
}

.nx_media-player.scrubbing .track-position,
.nx_media-player.scrubbing .track-duration {
	opacity: 0;
	transition: opacity 0.2s ease-in-out 0s;
}

.nx_media-player.dragging.scrubbing .track-position,
.nx_media-player.dragging.scrubbing .track-duration {
	opacity: 1;
	transition: opacity 0.2s ease-in-out 0s;
}

.nx_media-player .scrub-position {
	bottom: 20px;
	padding: 6px 12px;
	min-width: 38px;
	background: var(--nx-surface-primary);
	color: var(--nx-text-primary);
	text-align: center;
	white-space: nowrap;
	position: absolute;
	/* visibility: hidden; */
	border-radius: 30px;
	opacity: 0;
	transform: translateY(2px);
	transition: opacity 0.2s ease-in 0s, transform 0.2s ease-out 0s;
}

.nx_media-player.scrubbing .scrub-position {
	/* visibility: visible; */
	opacity: 1;
	transform: translateY(0px);
	transition: opacity 0.2s ease-in 0.1s, transform 0.2s ease-out 0.1s;
}

.nx_media-player.dragging.scrubbing .scrub-position {
	opacity: 0;
	transform: translateY(2px);
	transition: opacity 0s ease-in 0s, transform 0s ease-out 0.2s;
}

.nx_media-player .preview-badge {
	margin: 0 0 0 8px;
	padding: 0.5em;
	background: var(--nx-badge-surface);
	color: var(--nx-badge-text);
	white-space: nowrap;
	line-height: 0.75em;
	flex: 0 0;
	border-radius: 8px;
	cursor: default;
}

/* Links */
.nx_media-links a {
	margin: 10px 0;
	padding: 12px;
	
	color: var(--nx-text-primary);
	font-weight: normal;
	text-decoration: none;
	line-height: 1em;
	
	box-sizing: border-box;
	display: flex;
	flex-flow: row nowrap;
	align-items: center;
	
	border-radius: 10px;
	border: 1px solid var(--nx-border-color);
	
	transition: opacity 0.2s ease-in-out 0s, background 0.1s ease-in-out 0s;
	cursor: pointer;
}

.nx_media-links a:hover,
.nx_media-links a:focus {
	border: 1px solid var(--nx-border-focus-color);
}

.nx_media-links a:focus {
	outline: 3px solid Highlight;
}

.nx_media-links a:active {
	background: #f8f8f8;
}

.nx_theme-dark .nx_media-links a:active {
	background: #1c1c1c;
}

.nx_media-links a .link-icon {
	width: auto;
	height: 32px;
	margin-right: 8px;
	flex-grow: 0;
	vertical-align: middle;
	-webkit-user-drag: none;
}

.nx_media-links a .link-name {
	flex-grow: 1;
	text-overflow: ellipsis;
	white-space: nowrap;
	overflow: hidden;
}

.nx_media-links a .link-type {
	display: none;
}

.external-icon {
	margin-left: 10px;
	width: 24px;
	height: 24px;
	flex: 0 0 24px;
}

.external-icon svg {
	stroke: var(--nx-text-primary);
}

/* Tracklist */
.nx_media-tracklist {
	color: var(--nx-text-primary);
}

.nx_media-tracklist ul,
.nx_media-tracklist ol {
	margin: 0;
	padding: 0;
}

.nx_media-tracklist li {
	padding: 20px;
	list-style: none;
	display: flex;
	border-radius: 10px;
}

.nx_media-tracklist li:nth-child(odd) {
	background: var(--nx-surface-secondary);
}

.nx_media-tracklist .title {
	flex-grow: 1;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.nx_media-tracklist .duration,
.nx_media-tracklist .bpm {
	padding-left: 12px;
	color: var(--nx-text-secondary);
	white-space: nowrap;
	flex-grow: 0;
}

.nx_media-tracklist .bpm {
	display: none;
}

/* Releases Slider */
.nx_media-releases-slider {
	margin: 0;
	padding: 0;
	background: var(--nx-surface-secondary);
	color: var(--nx-text-primary);
	overflow: hidden;
	display: block;
	border-radius: 10px;
}

.nx_theme-dark .nx_media-releases-slider {
	box-shadow: inset 0 0 0 1px #242424;
}

.nx_media-releases-slider a {
	color: inherit;
	text-decoration: none;
}

.nx_media-releases-slider h3 {
	margin: 0;
	padding: 0;
	font-size: 1.2em;
	font-weight: normal;
}

.nx_media-releases-slider .icon {
	width: 24px;
	height: 24px;
	flex: 0 0 24px;
}

.nx_media-releases-slider .icon svg {
	stroke: var(--nx-text-primary);
	transition: stroke 0.1s ease-out;
}

.nx_media-releases-slider .icon:disabled svg {
	stroke: #a7a7a7;
}

.nx_theme-dark .nx_media-releases-slider .icon:disabled svg {
	stroke: #6f6f6f;
}

.nx_media-releases-slider .slider-header {
	margin: 24px 20px 0 20px;
	display: flex;
	align-items: center;
	justify-content: end;
}

.nx_media-releases-slider .slider-header h3 {
	flex: 1;
	white-space: nowrap;
	text-overflow: ellipsis;
	overflow: hidden;
}

.nx_media-releases-slider .slider-controls {
	flex: 0 0 auto;
	display: flex;
}

.nx_media-releases-slider .slider-controls button {
	margin: 0;
	padding: 0;
	appearance: none;
	background-color: transparent;
	box-sizing: border-box;
	border: none;
	cursor: pointer;
}

.nx_media-releases-slider .slider-controls button:disabled {
	cursor: default;
}

.nx_media-releases-slider ul {
	margin: 0;
	padding: 24px 20px 24px 20px;
	display: flex;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	scroll-padding: 0 20px 0 20px;
	scroll-behavior: smooth;
	touch-action: pan-x;
}

.nx_media-releases-slider ul li {
	margin: 0 20px 0 0;
	width: 200px;
	flex: 0 0 200px;
	flex-flow: column;
	scroll-snap-align: start;
	list-style: none;
	border-radius: 6px;
}

.nx_media-releases-slider ul li:focus-within {
	outline: 3px solid Highlight;
}

.nx_media-releases-slider ul li a:focus {
	outline: none;
}

.nx_media-releases-slider img {
	width: 100%;
	height: auto;
	border-radius: 6px;
	vertical-align: top;
	-webkit-user-drag: none;
}

.nx_media-releases-slider .release-title {
	margin-top: 0.4em;
	padding: 0.2em 0;
	font-weight: normal;
	white-space: nowrap;
	text-overflow: ellipsis;
	overflow: hidden;
	display: block;
}

.nx_media-releases-slider .new-badge {
	top: -0.1em;
	margin: 0 0.5em 0 0;
	padding: 0.4em;
	background: var(--nx-badge-surface);
	color: var(--nx-badge-text);
	font-size: 0.75em;
	white-space: nowrap;
	line-height: 0.75em;
	border-radius: 6px;
	position: relative;
	display: inline-block;
}

/* Artist */
.nx_media-artist {
	padding: 20px;
	background: var(--nx-surface-secondary);
	color: var(--nx-text-primary);
	display: flex;
	border-radius: 10px;
}

.nx_theme-dark .nx_media-artist {
	box-shadow: inset 0 0 0 1px #242424;
}

.nx_media-artist a {
	color: inherit;
	text-decoration: none;
}

.nx_media-artist h3 {
	margin: 0;
	padding: 0;
	font-size: 1.2em;
	font-weight: normal;
}

.nx_media-artist ul {
	margin: 0;
	padding: 0;
	display: flex;
}

.nx_media-artist ul li {
	list-style: none;
}

.nx_media-artist .artist-image img {
	width: 100%;
	height: auto;
	border-radius: 6px;
	vertical-align: top;
	-webkit-user-drag: none;
}

/* Artists Grid */
.nx_media-artists-grid {
	color: var(--nx-text-primary);
}

.nx_media-artists-grid a {
	color: inherit;
	text-decoration: none;
}

.nx_media-artists-grid h3 {
	margin: 0.4em 0 0 0;
	padding: 0;
	font-size: 1.2em;
	font-weight: normal;
	white-space: nowrap;
	text-overflow: ellipsis;
	overflow: hidden;
}

.nx_media-artists-grid .artist-image img {
	width: 100%;
	height: auto;
	border-radius: 6px;
	vertical-align: top;
	-webkit-user-drag: none;
}

@media (prefers-reduced-motion) {
	/* Audio Player */
	.nx_media-player .track-position,
	.nx_media-player .track-duration,
	.nx_media-player .scrub-position {
		transition: none !important;
	}
	
	.nx_media-player.scrubbing .track-position,
	.nx_media-player.scrubbing .track-duration {
		opacity: 1;
	}
}

@media (min-width: 767px) {
	.nx_media-links a .link-type {
		color: var(--nx-text-secondary);
		text-align: right;
		display: block;
	}
	
	.nx_media-tracklist .bpm {
		display: block;
	}
}