:root {
	--bg: #ffffff;
	--text: #1a1a1a;
	--accent: #ff6b6b;
}

@media (prefers-color-scheme: dark) {
	:root {
		--bg: #121212;
		--text: #e0e0e0;
		--accent: #ff8585;
	}
}

body {
	margin: 0;
	background: var(--bg);
	color: var(--text);
	font-family: system-ui, sans-serif;
	display: flex;
	justify-content: center;
	align-items: center;
	height: 100vh;
	overflow: hidden;
}

.player-container {
	text-align: center;
	width: 90%;
	max-width: 320px;
	position: relative;
}

.icon-btn {
	background: none;
	border: none;
	cursor: pointer;
	color: var(--accent);
	padding: 0;
	width: 60px;
	height: 60px;
}

.icon-btn svg {
	width: 100%;
	height: 100%;
}

.login-icon {
	position: absolute;
	top: -40px;
	right: 0;
	width: 40px;
	height: 40px;
	opacity: 0.5;
}

.info-panel h1 {
	font-size: 1.2rem;
	margin: 10px 0 5px;
}

.jump-box {
	display: flex;
	justify-content: center;
	gap: 5px;
	margin-bottom: 10px;
}

.jump-box input {
	width: 60px;
	padding: 4px;
	border-radius: 4px;
	border: 1px solid var(--text);
	background: transparent;
	color: var(--text);
}

.speed-controls {
	margin-top: 10px;
	font-size: 0.8rem;
}

.nav-controls {
	margin-top: 20px;
	display: flex;
	justify-content: center;
	gap: 20px;
}

.nav-controls button {
	background: transparent;
	border: 1px solid var(--text);
	color: var(--text);
	padding: 6px 12px;
	border-radius: 15px;
	cursor: pointer;
}

/* 登录弹窗动画 */
.modal {
	position: fixed;
	bottom: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(0, 0, 0, 0.5);
	display: none;
	justify-content: center;
	align-items: flex-end;
}

.modal.active {
	display: flex;
}

.modal-content {
	background: var(--bg);
	padding: 20px;
	border-radius: 20px 20px 0 0;
	width: 100%;
	max-width: 400px;
	transform: translateY(100%);
	transition: transform 0.3s ease-out;
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.modal.active .modal-content {
	transform: translateY(0);
}

.modal-content input {
	padding: 10px;
	border: 1px solid #ccc;
	border-radius: 5px;
}

.modal-content button {
	padding: 10px;
	border: none;
	border-radius: 5px;
	cursor: pointer;
	background: var(--accent);
	color: white;
}

.modal-content .cancel {
	background: #ccc;
	color: black;
}

@media (max-height: 300px) {

	.info-panel,
	.nav-controls,
	.login-icon {
		display: none;
	}
}