body {
	margin: 0;
	padding: 0;
	min-height: 100vh;
	display: flex;
	justify-content: center;
	align-items: center;
	background: #0a0a0a;
	color: #e0e0e0;
	font-family: 'Montserrat', sans-serif;
	overflow-x: hidden;
}

.logo-fullscreen {
	position: fixed;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	width: 250px;
	height: 250px;
	z-index: 100;
	opacity: 0;
	animation: moveLogoUp 2.5s ease-in-out forwards;
}

.logo-animation-container {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: #0a0a0a;
	z-index: 99;
	pointer-events: none;
	animation: fadeOutBackground 1.5s ease-out 2s forwards;
}

.container {
	width: 90%;
	max-width: 400px;
	padding: 30px 20px;
	text-align: center;
	display: flex;
	flex-direction: column;
	align-items: center;
	position: relative;
	opacity: 0;
	transform: translateY(20px);
	animation: fadeInContent 1s ease-out 2.5s forwards;
}

.background-particles {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	overflow: hidden;
	z-index: -100;
}

.particle {
	position: absolute;
	background-color: #ff3333;
	bottom: -20px;
	animation-timing-function: linear;
	animation-fill-mode: forwards;
}

@keyframes floatUp {
	0% {
		transform: translateY(0) translateX(0);
		opacity: 0.5;
	}
	50% {
		opacity: 0.2;
	}
	100% {
		transform: translateY(-100vh) translateX(var(--x-dest, 0));
		opacity: 0;
	}
}

@keyframes moveLogoUp {
	0% {
		opacity: 0;
		transform: translate(-50%, -50%) scale(0.8);
	}
	20% {
		opacity: 1;
		transform: translate(-50%, -50%) scale(1);
	}
	80% {
		opacity: 1;
		transform: translate(-50%, -50%) scale(1);
	}
	100% {
		opacity: 0;
		transform: translate(-50%, -150%) scale(0.8);
	}
}

@keyframes fadeOutBackground {
	from { opacity: 1; }
	to { opacity: 0; }
}

@keyframes fadeInContent {
	from {
		opacity: 0;
		transform: translateY(50px);
	}
	to {
		opacity: 1;
		transform: translateY(20px);
	}
}

.logo-img {
	width: 160px;
	height: 160px;
	margin-bottom: 20px;
	transition: transform 0.5s ease-out;
}

h1 {
	font-size: 2.2rem;
	font-weight: 700;
	color: #ff3333;
	text-transform: uppercase;
	letter-spacing: 2px;
	text-shadow: 0 0 8px rgba(255, 51, 51, 0.4);
	margin-bottom: 25px;
}

.input-wrapper {
	position: relative;
	width: 100%;
	display: flex;
	flex-direction: column;
}

.song-search {
	position: relative;
	width: 100%;
}

input {
	width: 100%;
	height: 50px;
	padding: 12px;
	margin: 12px 0;
	border: 1px solid #333;
	border-radius: 6px;
	background: #1c1c1c;
	color: #e0e0e0;
	font-size: 1rem;
	box-sizing: border-box;
	transition: border-color 0.3s, box-shadow 0.3s;
}

input:focus {
	outline: none;
	border-color: #ff3333;
	box-shadow: 0 0 6px rgba(255, 51, 51, 0.5);
}

#songTitle {
	border-radius: 25px;
}

button {
	width: min-content;
	padding: 12px;
	margin: 15px auto;
	border: none;
	border-radius: 6px;
	background: #cc0000;
	color: #fff;
	font-size: 1rem;
	font-weight: 700;
	text-transform: uppercase;
	cursor: pointer;
	transition: background 0.3s, box-shadow 0.3s, transform 0.2s;
}

button:disabled {
	opacity: 0.4;
	cursor: not-allowed;
}

button:hover:not(:disabled) {
	background: #ff3333;
	box-shadow: 0 0 10px rgba(255, 51, 51, 0.6);
	transform: translateY(-2px);
}

button:active:not(:disabled) {
	transform: translateY(0);
	box-shadow: none;
}

#message {
	min-height: 24px;
	font-size: 0.9rem;
	margin-top: 15px;
	transition: opacity 0.5s ease-in-out;
}

#message p {
	margin: 0;
}

#suggestions {
	list-style: none;
	padding: 0;
	margin: 0;
	top: calc(100% + 6px);
	left: 0;
	background: #1c1c1c;
	border: 1px solid #333;
	border-radius: 6px;
	max-height: 200px;
	overflow-y: auto;
	position: absolute;
	z-index: 50;
	width: 100%;
	opacity: 0;
	visibility: hidden;
	transform: translateY(-10px);
	transition: opacity 0.3s, transform 0.3s, visibility 0s 0.3s;
}

#suggestions li {
	padding: 10px;
	border-bottom: 1px solid #333;
	cursor: pointer;
	touch-action: manipulation;
	-webkit-tap-highlight-color: rgba(255, 51, 51, 0.2);
	transition: background 0.3s;
	display: flex;
	align-items: center;
	gap: 10px;
	font-size: 0.9rem;
}

#suggestions li:hover {
	background: #ff3333;
}

#suggestions.show {
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
	transition-delay: 0s;
}

.input-field-icon {
	position: relative;
}

.input-field-icon i {
	position: absolute;
	right: 15px;
	top: 50%;
	transform: translateY(-50%);
	color: #888;
	transition: color 0.3s;
}

.input-field-icon input:focus + i,
.input-field-icon:hover i {
	color: #ff3333;
}

.button-icon {
	margin-right: 8px;
}

#message p i {
	margin-right: 5px;
}

@keyframes shake {
	10%, 90% { transform: translate3d(-1px, 0, 0); }
	20%, 80% { transform: translate3d(2px, 0, 0); }
	30%, 50%, 70% { transform: translate3d(-4px, 0, 0); }
	40%, 60% { transform: translate3d(4px, 0, 0); }
}

@keyframes flashGreen {
	0% { color: #00cc66; }
	50% { color: #fff; }
	100% { color: #00cc66; }
}

/* ── Selected Song Preview ── */
.selected-song {
	display: flex;
	align-items: center;
	gap: 12px;
	background: #1c1c1c;
	border: 1px solid #ff3333;
	border-radius: 10px;
	padding: 10px 14px;
	margin: 4px 0 8px;
	box-shadow: 0 0 8px rgba(255, 51, 51, 0.2);
}

.selected-song img {
	width: 48px;
	height: 48px;
	border-radius: 6px;
	object-fit: cover;
	flex-shrink: 0;
}

.selected-song div {
	flex: 1;
	text-align: left;
	min-width: 0;
}

.selected-song strong {
	display: block;
	font-size: 0.95rem;
	color: #fff;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.selected-song span {
	font-size: 0.8rem;
	color: #aaa;
}

.clear-btn {
	width: auto !important;
	padding: 6px 10px !important;
	margin: 0 !important;
	background: transparent !important;
	color: #666 !important;
	font-size: 1rem;
	box-shadow: none !important;
	transform: none !important;
	min-width: 0;
}

.clear-btn:hover:not(:disabled) {
	color: #ff3333 !important;
	background: transparent !important;
	box-shadow: none !important;
	transform: none !important;
}

.preview-btn {
	width: auto !important;
	padding: 6px 10px !important;
	margin: 0 4px 0 0 !important;
	border-radius: 8px !important;
	background: #2a0b0b !important;
	border: 1px solid #ff3333 !important;
	color: #ff8080 !important;
	font-size: 0.9rem;
	box-shadow: none !important;
	transform: none !important;
	min-width: 0;
}

.preview-btn:hover:not(:disabled) {
	background: #ff3333 !important;
	color: #fff !important;
	box-shadow: 0 0 8px rgba(255, 51, 51, 0.4) !important;
	transform: none !important;
}

/* message colors */
.msg-green { color: #00cc66; text-shadow: 0 0 4px rgba(0,204,102,0.4); animation: flashGreen 0.5s ease-in-out; }
.msg-red   { color: #ff4d4d; text-shadow: 0 0 4px rgba(255,77,77,0.4); animation: shake 0.5s; }
.msg-orange{ color: #ffcc00; text-shadow: 0 0 4px rgba(255,204,0,0.4); }
