/* ============================================================
   ROM.RS v4 — Gypsy Blue-Green Theme
   ============================================================ */

:root {
	--bg:          #07121a;
	--card:        #0b1d22;
	--card2:       #0d2228;
	--teal:        #00c9a7;
	--teal-dim:    #007a65;
	--teal-glow:   rgba(0, 201, 167, 0.35);
	--blue:        #1a8cff;
	--blue-dim:    #0a4a80;
	--gold:        #c9960a;
	--gold-light:  #e8b820;
	--text:        #d6f0ea;
	--text-dim:    #6aada0;
	--border:      rgba(0, 180, 140, 0.18);
}

* {
	box-sizing: border-box;
	margin: 0;
	padding: 0;
}

html, body {
	height: 100%;
}

body {
	background: var(--bg);
	background-image:
		radial-gradient(ellipse 80% 60% at 15% 40%, rgba(0, 60, 90, 0.45) 0%, transparent 70%),
		radial-gradient(ellipse 80% 60% at 85% 60%, rgba(0, 80, 60, 0.4) 0%, transparent 70%);
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 100vh;
	font-family: Georgia, 'Times New Roman', serif;
	color: var(--text);
}

/* ---- Player card ---- */
#player {
	width: min(360px, 96vw);
	background: linear-gradient(170deg, var(--card) 0%, var(--card2) 100%);
	border: 1px solid var(--border);
	border-radius: 20px;
	overflow: hidden;
	box-shadow:
		0 0 0 1px rgba(0, 180, 140, 0.08),
		0 0 50px rgba(0, 160, 120, 0.12),
		0 20px 60px rgba(0, 0, 0, 0.6);
	position: relative;
}

/* Rainbow stripe at top — gypsy colours */
#player::before {
	content: '';
	display: block;
	height: 3px;
	background: linear-gradient(90deg,
		var(--blue-dim),
		var(--blue),
		var(--teal),
		var(--gold-light),
		var(--teal),
		var(--blue),
		var(--blue-dim)
	);
}

/* ---- Cover art ---- */
#cover-wrap {
	position: relative;
	width: 100%;
	aspect-ratio: 1 / 1;
	background: #041010;
	overflow: hidden;
}

#cover {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	filter: saturate(1.15) contrast(1.05);
	transition: opacity 0.4s;
}

/* Fade out bottom of cover into card */
#cover-overlay {
	position: absolute;
	inset: 0;
	background: linear-gradient(
		to bottom,
		transparent 40%,
		rgba(11, 29, 34, 0.85) 80%,
		var(--card2) 100%
	);
	pointer-events: none;
}

/* ---- Song info ---- */
#info {
	padding: 18px 24px 10px;
	text-align: center;
	min-height: 68px;
	display: flex;
	flex-direction: column;
	gap: 6px;
	align-items: center;
	justify-content: center;
}

#artist {
	color: var(--teal);
	font-family: 'Segoe UI', Arial, sans-serif;
	font-size: 0.68rem;
	letter-spacing: 3.5px;
	text-transform: uppercase;
	opacity: 0.85;
}

#song-title {
	color: var(--text);
	font-size: 1.1rem;
	font-style: italic;
	line-height: 1.35;
	text-shadow: 0 1px 6px rgba(0, 0, 0, 0.5);
}

/* Decorative ornamental divider */
#info::after {
	content: '❧';
	display: block;
	color: var(--gold);
	font-size: 1rem;
	opacity: 0.5;
	margin-top: 4px;
}

/* ---- Progress / seek ---- */
#progress-wrap {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 4px 22px 14px;
}

#time-current,
#time-total {
	font-family: 'Courier New', monospace;
	font-size: 0.68rem;
	color: var(--text-dim);
	min-width: 32px;
	flex-shrink: 0;
}

#time-total { text-align: right; }

#seek {
	flex: 1;
	-webkit-appearance: none;
	appearance: none;
	height: 3px;
	background: rgba(0, 120, 100, 0.3);
	border-radius: 2px;
	cursor: pointer;
	outline: none;
}

#seek::-webkit-slider-thumb {
	-webkit-appearance: none;
	width: 13px;
	height: 13px;
	border-radius: 50%;
	background: var(--teal);
	box-shadow: 0 0 8px var(--teal-glow);
	cursor: pointer;
	transition: transform 0.15s;
}

#seek::-webkit-slider-thumb:hover { transform: scale(1.3); }
#seek::-moz-range-thumb {
	width: 13px;
	height: 13px;
	border-radius: 50%;
	background: var(--teal);
	border: none;
	box-shadow: 0 0 8px var(--teal-glow);
	cursor: pointer;
}

/* ---- Controls ---- */
#controls {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 24px;
	padding: 10px 24px 30px;
}

button {
	background: none;
	border: none;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 50%;
	transition: transform 0.15s, box-shadow 0.2s, background 0.2s;
	-webkit-tap-highlight-color: transparent;
}

button svg {
	fill: currentColor;
	pointer-events: none;
}

/* Prev / Next */
#btn-prev,
#btn-next {
	width: 46px;
	height: 46px;
	color: var(--text-dim);
	border: 1px solid rgba(0, 180, 140, 0.22);
}

#btn-prev svg,
#btn-next svg {
	width: 22px;
	height: 22px;
}

#btn-prev:hover,
#btn-next:hover {
	color: var(--teal);
	border-color: var(--teal-dim);
	background: rgba(0, 201, 167, 0.07);
	box-shadow: 0 0 14px rgba(0, 201, 167, 0.2);
}

#btn-prev:active,
#btn-next:active {
	transform: scale(0.92);
}

/* Play / Pause — big glowing teal button */
#btn-play {
	width: 68px;
	height: 68px;
	background: radial-gradient(circle at 40% 35%, #00e5c5, var(--teal-dim));
	border: 2px solid rgba(255, 255, 255, 0.12);
	color: #041410;
	box-shadow:
		0 0 0 6px rgba(0, 201, 167, 0.1),
		0 0 26px var(--teal-glow),
		inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

#btn-play svg {
	width: 30px;
	height: 30px;
}

#btn-play:hover {
	background: radial-gradient(circle at 40% 35%, #00ffda, #00c9a7);
	box-shadow:
		0 0 0 8px rgba(0, 201, 167, 0.14),
		0 0 36px rgba(0, 201, 167, 0.5),
		inset 0 1px 0 rgba(255, 255, 255, 0.25);
	transform: scale(1.06);
}

#btn-play:active {
	transform: scale(0.95);
}

/* ---- Decorative bottom border ---- */
#player::after {
	content: '';
	display: block;
	position: absolute;
	bottom: 0;
	left: 10%;
	right: 10%;
	height: 1px;
	background: linear-gradient(90deg, transparent, var(--gold), transparent);
	opacity: 0.3;
}

/* ---- Responsive tweaks ---- */
@media (max-width: 400px) {
	#cover-wrap { aspect-ratio: 4 / 3; }
	#song-title  { font-size: 1rem; }
}
