/* 只重置必要的元素，避免影响DPlayer内部样式 */
body, h1, p, div, header, footer, button {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}

body {
	font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
	background: linear-gradient(135deg, #1a2a6c, #b21f1f, #fdbb2d);
	color: #fff;
	min-height: 100vh;
	display: flex;
	flex-direction: column;
	align-items: center;
	padding: 20px;
}

.container {
	width: 100%;
	max-width: 1000px;
	margin: 0 auto;
}

header {
	text-align: center;
	padding: 20px 0;
	margin-bottom: 30px;
}

h1 {
	font-size: 2.5rem;
	margin-bottom: 10px;
	text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.description {
	font-size: 1.1rem;
	opacity: 0.9;
	max-width: 600px;
	margin: 0 auto;
}

.player-container {
	background: rgba(0, 0, 0, 0.4);
	border-radius: 12px;
	overflow: hidden;
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
	margin-bottom: 30px;
	position: relative;
}

#dplayer {
	border-radius: 8px;
	width: 100%;
	height: 500px;
}

.player-placeholder {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	display: flex;
	justify-content: center;
	align-items: center;
	background: rgba(0, 0, 0, 0.5);
	z-index: 10;
}

.stream-controls {
	background: rgba(0, 0, 0, 0.3);
	padding: 20px;
	border-radius: 10px;
	margin-bottom: 20px;
}

.stream-controls h3 {
	margin-bottom: 15px;
	border-bottom: 1px solid rgba(255, 255, 255, 0.2);
	padding-bottom: 8px;
}

.stream-buttons {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}

.stream-btn {
	background: rgba(255, 255, 255, 0.15);
	border: none;
	color: white;
	padding: 8px 15px;
	border-radius: 6px;
	cursor: pointer;
	transition: all 0.3s ease;
}

.stream-btn:hover {
	background: rgba(255, 255, 255, 0.25);
}

.stream-btn.active {
	background: rgba(255, 76, 76, 0.8);
	box-shadow: 0 0 10px rgba(255, 76, 76, 0.5);
}

.refresh-btn {
	background: rgba(76, 175, 80, 0.6);
	margin-top: 10px;
	padding: 8px 16px;
	border: none;
	border-radius: 6px;
	color: white;
	cursor: pointer;
	transition: background 0.3s;
}

.refresh-btn:hover {
	background: rgba(76, 175, 80, 0.8);
}

.stream-info {
	background: rgba(0, 0, 0, 0.3);
	padding: 20px;
	border-radius: 10px;
	margin-top: 20px;
}

.stream-info h3 {
	margin-bottom: 10px;
	border-bottom: 1px solid rgba(255, 255, 255, 0.2);
	padding-bottom: 8px;
}

footer {
	text-align: center;
	margin-top: 40px;
	padding: 20px;
	font-size: 0.9rem;
	opacity: 0.7;
	width: 100%;
}

.error-message {
	color: #ff4444;
	padding: 10px;
	margin: 10px 0;
	background: rgba(255, 0, 0, 0.1);
	border-radius: 6px;
}

.loading {
	color: #ffa500;
}

.success {
	color: #4CAF50;
}

.warning {
	color: #ff9800;
}

.error {
	color: #f44336;
}

@media (max-width: 768px) {
	h1 {
		font-size: 2rem;
	}
	
	.stream-buttons {
		justify-content: center;
	}
	
	#dplayer {
		height: 300px;
	}
}
