:root {
	/* SLIGRO brand palette */
	--text: #ffffff;
	--dimmed-text: #cccccc;
	--primary: #006533;      /* Sligro green */
	--accent: #c5a45c;       /* Sligro gold */
	--background: #0b0f0d;   /* Dark premium background */
}

* {
	scrollbar-color: var(--dimmed-text) var(--background);
	user-select: none;
	-webkit-user-select: none;
	-webkit-touch-callout: none;
	-webkit-tap-highlight-color: transparent;
}

html {
	scroll-behavior: smooth;
	overscroll-behavior: none;
	-ms-overflow-style: none;
	scrollbar-width: none;
}

html::-webkit-scrollbar,
.playlist-wrapper::-webkit-scrollbar {
	display: none;
}

/* Typography: Corporate, calm, premium */
body {
	margin: 0;
	padding: 0;
	font-family: "Helvetica Neue", Arial, sans-serif;
	height: 100dvh;
	display: flex;
	flex-direction: column;
	font-size: 24px;
	background-color: var(--background);
	position: fixed;
	width: 100%;
	letter-spacing: 0.1px;
}

.window-container {
	background: transparent;
	height: 100%;
	display: flex;
	flex-direction: column;
}

.player-container {
	flex-grow: 1;
	display: flex;
	flex-direction: column;
	overflow: hidden;
	position: relative;
	padding-top: 10px;
}

/* --- CONTROLS --- */

.controls {
	display: flex;
	justify-content: center;
	background: transparent;
	position: absolute;
	bottom: 0;
	left: 0;
	right: 0;
	box-sizing: border-box;
	z-index: 3;
	pointer-events: none;
}

/* CORPORATE-style buttons: minimal, clean, premium shadow */
.control-button {
	width: clamp(60px, calc((100vw - 58px) / 3), 120px);
	aspect-ratio: 1 / 1;
	background-size: 55%;
	background-repeat: no-repeat;
	background-position: center;
	border: none;
	cursor: pointer;
	margin: 0;
	border-radius: 10px;
	background-color: var(--accent); /* Sligro yellow-gold */
	box-shadow:
		0 3px 10px rgba(0,0,0,0.4),
		inset 0 0 0 1px #1e2a25;
	pointer-events: auto;
	transition: transform 0.15s ease, background 0.15s ease;
}

@media (hover: hover) and (pointer: fine) {
	.control-button:hover {
		transform: scale(1.08);
		background-color: #1a231f;
	}
}

.controls-inner {
	display: flex;
	justify-content: space-between;
	padding: 10px 15px;
	pointer-events: auto;
	width: 100%;
	box-sizing: border-box;
}

@media (min-width: 420px) {
	.controls-inner {
		justify-content: center;
		gap: 14px;
		width: auto;
	}

	.control-button {
		width: 120px;
	}
}

/* --- PLAYLIST --- */

.playlist-wrapper {
	flex-grow: 1;
	position: relative;
	overflow-y: auto;
	padding-bottom: 70px;
	margin-top: -1px;
}

.playlist {
	padding-top: 0;
}

/* Sligro list style: clean, businesslike */
.playlist-item {
	display: flex;
	justify-content: space-between;
	align-items: center;
	color: var(--text);
	min-height: 55px;
	padding-left: 18px;
	padding-right: 15px;
	padding-top: 10px;
	padding-bottom: 10px;
	border-bottom: 1px solid #1a1f1d;
	background: #0b0f0d;
	transition: background 0.20s ease, color 0.20s ease;
}

.playlist-item-content {
	flex-grow: 1;
	display: flex;
	flex-direction: column;
	gap: 2px;
	transition: opacity 0.25s ease;
}

.playlist-item-content.uncached {
	opacity: 0.4;
}

.playlist-item-title {
	font-size: 21px;
	line-height: 1.2;
	font-weight: 600;
	font-family: "Rockwell", "Helvetica Neue", Arial, sans-serif;
}

.playlist-item-title.current {
	color: var(--primary);
	font-weight: 700;
}

.playlist-item-artist {
	font-size: 16px;
	color: var(--dimmed-text);
	line-height: 1.2;
}

.playlist-item-artist.current {
	color: var(--accent);
	font-weight: 600;
}

/* Hover: Subtle gold glow */
@media (hover: hover) and (pointer: fine) {
	.playlist-item:hover {
		background: #121716;
	}

	.playlist-item:hover .playlist-item-title {
		color: var(--accent);
	}

	.playlist-item:hover .playlist-item-artist {
		color: var(--accent);
	}
}

/* --- CURRENT SONG --- */

.current-song {
	text-align: left;
	padding-left: 18px;
	padding-bottom: 10px;
	font-weight: 700;
	color: var(--primary);
	min-height: 40px;
	display: flex;
	align-items: center;
	background-color: var(--background);
	z-index: 2;
	position: relative;
}

/* --- PROGRESS BAR --- */

.progress-container {
	width: 100%;
	font-size: 24px;
	cursor: grab;
	margin-top: 0;
	height: 40px;
	display: flex;
	align-items: center;
	padding: 0 18px 10px;
	box-sizing: border-box;
	position: relative;
	background-color: var(--background);
	z-index: 2;
}

/* Sligro line style: gold active progress */
.progress-bar {
	width: 100%;
	height: 6px;
	background-color: #2a2a2a;
	position: relative;
	border-radius: 3px;
	--progress: 0;
	--circle-size: 18px;
}

.progress-bar::before {
	content: "";
	position: absolute;
	left: 0;
	top: 0;
	height: 100%;
	width: calc((100% - var(--circle-size) + 2px) * var(--progress) / 100 + var(--circle-size) / 2);
	background-color: var(--accent);
	border-radius: 3px;
}

.progress-bar::after {
	content: "";
	position: absolute;
	left: calc((100% - var(--circle-size) + 2px) * var(--progress) / 100 - 1px);
	top: 50%;
	transform: translateY(-50%);
	width: var(--circle-size);
	height: var(--circle-size);
	background-color: var(--accent);
	border-radius: 50%;
	box-shadow: 0 3px 6px rgba(0,0,0,0.4);
}

/* Hide time text as before */
.progress-text,
.progress-text-left,
.progress-text-center {
	display: none;
}

/* Button images (unchanged, just inherits new style) */
#playPause {
	background-image: url('play.png');
}

#playPause.pause {
	background-image: url('pause.png');
}

#prev {
	background-image: url('prev.png');
}

#next {
	background-image: url('next.png');
}
