 *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
	--bg: #0c0c0c;
	--bg2: #171717;
	--border: #282828;
	--gold: #c9a84c;
	--gold-glow: rgba(201,168,76,0.25);
	--text: #f0ead6;
	--muted: #666;
	--h: 80px;
}

html, body { background: transparent; height: var(--h); overflow: hidden; }

#noir-player {
	position: relative;
	width: 100%;
	height: var(--h);
	background: linear-gradient(90deg, var(--bg) 0%, var(--bg2) 50%, var(--bg) 100%);
	border-top: 1px solid var(--border);
	display: flex;
	align-items: center;
	justify-content: center;
	font-family: 'Raleway', sans-serif;
}

#noir-player::before {
	content: '';
	position: absolute;
	top: 0; left: 0; right: 0;
	height: 2px;
	background: linear-gradient(90deg, transparent 0%, var(--gold) 50%, transparent 100%);
	opacity: 0.6;
}

.noir-belt {
	display: flex;
	align-items: center;
	width: 100%;
	max-width: 1200px;
	padding: 0 15px;
	gap: 10px;
}

.noir-art {
	flex-shrink: 0;
	width: 54px;
	height: 54px;
	border-radius: 50%;
	background: #222 center/cover no-repeat;
	border: 1.5px solid var(--gold);
	position: relative;
	transition: box-shadow 0.4s;
}

.noir-art::after {
	content: '';
	position: absolute;
	inset: 0;
	border-radius: 50%;
	background: radial-gradient(circle at 50%, transparent 25%, rgba(0,0,0,0.4) 100%);
}

#noir-player.is-playing .noir-art {
	box-shadow: 0 0 15px var(--gold-glow);
	animation: rotate-vinyl 4s linear infinite;
}

@keyframes rotate-vinyl { to { transform: rotate(360deg); } }

.noir-info {
	flex: 1;
	min-width: 0;
	padding: 0 10px;
	display: flex;
	flex-direction: column;
}

.noir-label {
	font-family: 'Cormorant Garamond', serif;
	font-style: italic;
	font-size: 10px;
	letter-spacing: 2.5px;
	text-transform: uppercase;
	color: var(--gold);
	margin-bottom: 2px;
	opacity: 0.9;
}

.noir-song {
	font-size: 14px;
	color: var(--text);
	white-space: nowrap;
	overflow: hidden;
	position: relative;
}

.noir-song::after {
	content: '';
	position: absolute;
	top: 0; right: 0;
	width: 25px; height: 100%;
	background: linear-gradient(to right, transparent, var(--bg2));
	pointer-events: none;
}

.noir-song-inner {
	display: inline-block;
	white-space: nowrap;
	padding-right: 50px;
}

.noir-song-inner.marquee-active {
	animation: noir-marquee linear infinite;
}

@keyframes noir-marquee {
	0% { transform: translateX(0); }
	100% { transform: translateX(-50%); }
}

.noir-eq {
	display: flex;
	align-items: flex-end;
	gap: 3px;
	height: 24px;
	flex-shrink: 0;
	margin: 0 10px;
}

.noir-eq span {
	width: 3px;
	height: 100%;
	background: var(--gold);
	border-radius: 1px;
	transform: scaleY(0.15);
	transform-origin: bottom;
	opacity: 0.4;
	animation: noir-wave 0.8s ease-in-out infinite alternate;
	animation-play-state: paused;
	will-change: transform;
}

#noir-player.is-playing .noir-eq span {
	animation-play-state: running;
	opacity: 1;
}

.noir-eq span:nth-child(1) { animation-duration: 0.7s; }
.noir-eq span:nth-child(2) { animation-duration: 0.9s; animation-delay: 0.1s; }
.noir-eq span:nth-child(3) { animation-duration: 0.6s; animation-delay: 0.2s; }
.noir-eq span:nth-child(4) { animation-duration: 0.8s; animation-delay: 0.15s; }

@keyframes noir-wave { from { transform: scaleY(0.15); } to { transform: scaleY(1); } }

.noir-play {
	flex-shrink: 0;
	width: 46px;
	height: 46px;
	border-radius: 50%;
	border: 1.5px solid var(--gold);
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	color: var(--gold);
	transition: all 0.3s;
}

.noir-play:hover {
	background: var(--gold);
	color: var(--bg);
	box-shadow: 0 0 15px var(--gold-glow);
}

#noir-player.is-playing .noir-play .i-play { display: none; }
#noir-player.is-playing .noir-play .i-pause { display: block; }
.noir-play .i-pause { display: none; }

.noir-vol {
	display: flex;
	align-items: center;
	gap: 10px;
	flex-shrink: 0;
	margin-left: 5px;
}

.noir-slider.ui-slider { width: 70px; height: 3px; background: var(--border); border: none; }
.noir-slider .ui-slider-range { background: var(--gold); }
.noir-slider .ui-slider-handle { width: 10px; height: 10px; border-radius: 50%; background: var(--gold); border: none; top: -4px; cursor: pointer; outline: none; }

@media (max-width: 850px) {
	.noir-eq { display: none; }
}

@media (max-width: 600px) {
	.noir-vol { display: none; }
	.noir-belt { padding: 0 10px; }
}

@media (max-width: 450px) {
	.noir-art { width: 40px; height: 40px; }
	.noir-label { font-size: 8px; letter-spacing: 1.5px; }
	.noir-song { font-size: 13px; }
}

@media (max-width: 350px) {
	.noir-art { display: none; }
}