/**
 * Tutor External Video API - Player Styles
 */

/* 播放器容器 */
.tutor-external-api-player {
	position: relative;
	background: #000;
	border-radius: 8px;
	overflow: hidden;
	max-width: 100%;
}

/* HLS 影片元素 */
#tutor-external-hls-video {
	width: 100%;
	height: auto;
	display: block;
	background: #000;
}

/* 載入中指示器 */
.tutor-external-api-player .loading-spinner {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	z-index: 10;
}

.tutor-spinner {
	border: 4px solid rgba(255, 255, 255, 0.3);
	border-top: 4px solid #fff;
	border-radius: 50%;
	width: 40px;
	height: 40px;
	animation: tutor-spin 1s linear infinite;
}

@keyframes tutor-spin {
	0% { transform: rotate(0deg); }
	100% { transform: rotate(360deg); }
}

/* 轉碼中提示 */
.tutor-video-processing-notice {
	padding: 40px 20px;
	text-align: center;
	background: #f7f7f7;
	border-radius: 8px;
	margin: 20px 0;
}

.tutor-processing-icon {
	font-size: 48px;
	margin-bottom: 20px;
	color: #666;
}

.tutor-video-processing-notice h3 {
	margin: 0 0 10px 0;
	font-size: 20px;
	color: #333;
}

.tutor-video-processing-notice p {
	margin: 0;
	color: #666;
	font-size: 14px;
}

/* 令牌刷新通知 */
.tutor-token-refresh-notice {
	position: absolute;
	top: 10px;
	left: 50%;
	transform: translateX(-50%);
	background: rgba(0, 0, 0, 0.8);
	color: #fff;
	padding: 10px 20px;
	border-radius: 4px;
	font-size: 14px;
	z-index: 100;
	animation: fadeIn 0.3s ease;
}

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

/* 響應式設計 */
@media (max-width: 768px) {
	.tutor-video-processing-notice {
		padding: 30px 15px;
	}

	.tutor-processing-icon {
		font-size: 36px;
	}

	.tutor-video-processing-notice h3 {
		font-size: 18px;
	}
}
