#reference-display {
	position: fixed;
	bottom: 10vh;
	width: 90%;
	display: flex;
	justify-content: center;
}

.lyric-reference {
	display: inline-flex;
	align-items: center;
	gap: 0.8rem;
	padding: 0.5rem 1.5rem;
	background: rgba(155, 77, 202, 0.1);
	border-radius: 20px;
	backdrop-filter: blur(5px);
	max-width: 100%;
	flex-wrap: wrap;
}

@media (max-width: 768px) {
	#reference-display {
		width: 95%;
	}

	.lyric-reference {
		gap: 0.6rem;
		padding: 0.4rem 1rem;
		border-radius: 16px;
	}
}

@media (max-width: 480px) {
	#reference-display {
		width: 100%;
	}

	.lyric-reference {
		gap: 0.5rem;
		padding: 0.3rem 0.8rem;
		border-radius: 12px;
	}
}

.reference-text {
	font-family: "Courier New", monospace;
	font-size: 1.2rem;
	color: var(--primary-color);
	letter-spacing: 1px;
	word-break: break-word;
}

@media (max-width: 768px) {
	.reference-text {
		font-size: 1rem;
		letter-spacing: 0.5px;
	}
}

@media (max-width: 480px) {
	.reference-text {
		font-size: 0.9rem;
		letter-spacing: 0.3px;
	}
}

.copy-button {
	width: 32px;
	height: 32px;
	padding: 6px;
	border: none;
	border-radius: 8px;
	background: rgba(155, 77, 202, 0.15);
	color: var(--primary-color);
	cursor: pointer;
	transition: all 0.2s ease;
	position: relative;
	flex-shrink: 0;
}

@media (max-width: 768px) {
	.copy-button {
		width: 28px;
		height: 28px;
		padding: 5px;
		border-radius: 6px;
	}
}

@media (max-width: 480px) {
	.copy-button {
		width: 24px;
		height: 24px;
		padding: 4px;
		border-radius: 4px;
	}
}

.copy-button:hover {
	background: rgba(155, 77, 202, 0.25);
	transform: scale(1.05);
}

.copy-button:active {
	transform: scale(0.95);
}

.copy-button svg {
	width: 100%;
	height: 100%;
	position: absolute;
	top: 0;
	left: 0;
	padding: 6px;
	transition: all 0.2s ease;
}

.copy-button .check-icon {
	opacity: 0;
	transform: scale(0.5);
}

.copy-button.copied .copy-icon {
	opacity: 0;
	transform: scale(0.5);
}

.copy-button.copied .check-icon {
	opacity: 1;
	transform: scale(1);
}
