* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}

body {
	font-family: 'Roboto','Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
	/*font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;*/
	line-height: 1.6;
	color: #333;
	background: linear-gradient(135deg, #1a2a6c, #b21f1f, #fdbb2d);
	min-height: 100vh;
	display: flex;
	justify-content: center;
	align-items: center;
	padding: 20px;
	
	/* 阻止 iOS 和部分安卓浏览器的文本缩放 */
	-webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
	/*-webkit-text-size-adjust: none;
    text-size-adjust: none;*/
}

.container {
	max-width: 800px; /*900px  88vh*/
	width: 100%;
	background-color: rgba(255, 255, 255, 0.95);
	border-radius: 8px;
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
	overflow: hidden;
}

header {
	background: linear-gradient(to right, #219653, #1ad42c);
	color: white;
	padding: 20px;
	text-align: center;
	position: relative;
}

h1 {
	font-size: 2.0rem;
	margin-bottom: 10px;
}

.subtitle {
	font-size: 1.1rem;
	opacity: 0.9;
}

.radio-container {
	padding: 25px;
}

.display {
	background-color: #2c3e50;
	color: #4cd964;
	padding: 15px;
	border-radius: 10px;
	text-align: center;
	font-family: 'Courier New', monospace;
	font-size: 1.5rem;
	margin-bottom: 25px;
	min-height: 60px;
	display: flex;
	align-items: center;
	justify-content: center;
	box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.5);
}

.controls {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
	gap: 15px;
	margin-bottom: 25px;
}

.control-group {
	
	display: grid;
	/*
	display: flex;
	flex-direction: column;
	*/
	gap: 10px;
}

.control-label {
	font-weight: bold;
	color: #2c3e50;
}

.fm-label {
	float: left;
	grid-column: span 4; /* web */
	/*grid-column: span 2;*/ /* mobile */		
	text-align: center;
	width:60px;
	height:50px;
	line-height:50px;
	font-weight: bold;
	background: linear-gradient(to right, #2c3e50, #2c3e50);
	color: white;
	border: none;
	padding: 0px;
	border-radius: 6px;
	font-size: 10pt;
	transition: all 0.3s ease;
	box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

button {
	background: linear-gradient(to right, #3498db, #2980b9);
	color: white;
	border: none;
	padding: 12px 15px;
	border-radius: 8px;
	cursor: pointer;
	font-size: 0.9rem;
	transition: all 0.3s ease;
	box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
	/* margin-top: 6px; */
}

button:hover, button:focus {
	background: linear-gradient(to right, #2980b9, #2471a3);
	transform: translateY(-2px);
	box-shadow: 0 6px 8px rgba(0, 0, 0, 0.15);
	outline: none;
}

button:active {
	transform: translateY(0);
}

button:disabled {
	background: #95a5a6;
	cursor: not-allowed;
	transform: none;
	box-shadow: none;
}

.volume-control-label {
	grid-row: 1 / span 1; /*表示该元素将从第一行开始，跨越1行*/
}

.volume-control {
	grid-row: 2 / span 1; /*表示该元素将从第2行开始，跨越1行*/
	display: flex;
	align-items: center;
	gap: 10px;
	margin-top:8px;
}

input[type="range"] {
	flex: 1;
	height: 8px;
	border:0;
	border-radius: 5px;
	background: #ddd;
	outline: none;
	-webkit-appearance: none;
	margin-left:5px;
	margin-right:5px;
}

input[type="range"]::-webkit-slider-thumb {
	-webkit-appearance: none;
	width: 20px;
	height: 20px;
	border-radius: 50%;
	background: #3498db;
	cursor: pointer;
}

.channels {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
	gap: 10px;/* display: flex grid情况下配套属性*/
	margin-bottom: 25px;
}

.channel-btn {
	width:auto;
	height:60px;
	background: linear-gradient(to right, #9b59b6, #8e44ad);
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 6px;/* display: flex grid情况下配套属性*/
	padding: 4px 4px;
}

.channel-btn.active {
	background: linear-gradient(to right, #e74c3c, #c0392b);
	box-shadow: 0 0 0 3px rgba(231, 76, 60, 0.3);
}

.status-indicator {
	display: inline-block;
	width: 12px;
	height: 12px;
	border-radius: 100%;
	background-color: #e74c3c;
	margin-right:6px;
}

.status-indicator.connected {
	background-color: #2ecc71;
}

.time-section {
	background-color: #f8f9fa;
	padding: 15px;
	border-radius: 10px;
	margin-bottom: 25px;
	text-align: center;
}

.current-time {
	font-size: 2.2rem;
	font-weight: bold;
	color: #26d0ce; /*#2c3e50*/
	margin-bottom: 4px;
}

.current-date {
	font-size: 0.9 rem;
	font-weight: normal;
	color: #666;/*#2c3e50*/
	margin-bottom: 4px;
}

.accessibility-info {
	background-color: #e8f4fd;
	padding: 15px;
	border-radius: 10px;
	margin-bottom: 25px;
	border-left: 5px solid #3498db;
}

.accessibility-info h3 {
	color: #2c3e50;
	margin-bottom: 10px;
}

.accessibility-info ul {
	padding-left: 20px;
}

.accessibility-info li {
	margin-bottom: 5px;
}

.toTop-section {
	text-align: center;
	padding: 15px;
	background-color: #f1f2f6;
	border-radius: 10px;
	margin-top:6px;
}

.toTop-btn {
	background: linear-gradient(to right, #27ae60, #219653);
	padding: 12px 25px;
	font-size: 1.1rem;
}

footer {
	text-align: center;
	padding: 15px;
	background-color: #2c3e50;
	color: white;
	font-size: 0.8rem;
}

.audioplayer {
	visibility: hidden;
	/*通过将元素定位到屏幕之外（例如，将其 top 值设置为一个非常大的负值），你可以让元素不显示也不占用空间。这对于隐藏元素但仍保留其DOM结构很有用。使用 position: absolute; 时，元素相对于其最近的定位祖先元素定位；使用 position: fixed; 时，元素相对于视口定位。*/
	position: fixed; top: -9999px; 
	/*display:none;*/
}

.video-container {
	width: 0px;
	height: 0;
	overflow: hidden;
	position: absolute;
	top: -1000px;
}

.videoplayer {
	/*
	width:0px;
	height:0px;
	*/
	visibility: hidden;
	/*通过将元素定位到屏幕之外（例如，将其 top 值设置为一个非常大的负值），你可以让元素不显示也不占用空间。这对于隐藏元素但仍保留其DOM结构很有用。使用 position: absolute; 时，元素相对于其最近的定位祖先元素定位；使用 position: fixed; 时，元素相对于视口定位。*/
	position: fixed; top: -10999px; 
	/*后续测试看是否要不要 display:none;*/
}

/*CSS样式隐藏全屏控件*/		
video::-webkit-media-controls-fullscreen-button {
  display: none; /* Chrome, Safari, Opera */
}

@media (max-width: 600px) {
	.controls {
		grid-template-columns: 1fr;
	}
	
	.channels {
		grid-template-columns: 1fr 1fr;
	}
	
	h1 {
		font-size: 1.6rem;
	}
	
	.display {
		font-size: 1.2rem;
	}
	
	.fm-label {
		/*grid-column: span 4;*/ /* web */
		grid-column: span 2; /* mobile */
	}
}