/* ============================================================
   StreamVideoPlayer.css
   影片播放器專屬樣式 - 右鍵保護 + 播放控制列
   主色：#ff9900 (品牌黃)
   ============================================================ */

/* --- 【CSS 層】右鍵 / 選取保護 --- */
.video-container {
	-webkit-user-select: none;
	-moz-user-select: none;
	user-select: none;
	-webkit-touch-callout: none; /* iOS Safari 長按選單 */
}

/* 隱藏 WebKit 原生控制列的下載按鈕 */
video::-webkit-media-controls-download-button {
	display: none !important;
}
video::-webkit-media-controls-enclosure {
	overflow: hidden;
}
video::-webkit-media-controls-panel {
	width: calc(100% + 30px);
}

/* --- 播放控制列容器 --- */
.ctrl-bar {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 20;
	display: flex;
	flex-direction: column;
	padding: 28px 12px 10px;
	background: linear-gradient(
		to top,
		rgba(0, 0, 0, 0.82) 0%,
		rgba(0, 0, 0, 0.15) 65%,
		transparent 100%
	);
}

/* --- 進度條 --- */
.ctrl-bar .progress-container {
	position: relative;
	height: 4px;
	background: rgba(255, 255, 255, 0.25);
	border-radius: 2px;
	cursor: pointer;
	margin-bottom: 8px;
	/* 預設隱藏，hover 才顯示 */
	opacity: 0;
	transition: opacity 0.3s;
}
.ctrl-bar:hover .progress-container {
	opacity: 1;
}
.ctrl-bar .progress-bar {
	position: absolute;
	left: 0;
	top: 0;
	height: 100%;
	background: #ff9900;
	border-radius: 2px;
}
.ctrl-bar .progress-thumb {
	position: absolute;
	width: 12px;
	height: 12px;
	background: #fff;
	border-radius: 50%;
	box-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
	top: 50%;
	transform: translate(-50%, -50%);
	opacity: 0;
	transition: opacity 0.2s;
	pointer-events: none;
}
.ctrl-bar:hover .progress-thumb {
	opacity: 1;
}

/* --- 控制按鈕列 --- */
.ctrl-buttons {
	display: flex;
	align-items: center;
	gap: 6px;
	opacity: 0;
	transition: opacity 0.3s;
}
.ctrl-bar:hover .ctrl-buttons {
	opacity: 1;
}

/* 時間顯示 */
.ctrl-bar .time-current,
.ctrl-bar .time-total {
	color: #fff;
	font-size: 12px;
	font-weight: 600;
	font-variant-numeric: tabular-nums;
	min-width: 28px;
	text-shadow: 0 1px 2px rgba(0, 0, 0, 0.6);
	white-space: nowrap;
}
.ctrl-bar .time-sep {
	color: rgba(255, 255, 255, 0.45);
	font-size: 12px;
}
.ctrl-spacer {
	flex: 1;
}

/* 控制圖示按鈕（音量、全螢幕） */
.ctrl-icon-btn {
	width: 28px;
	height: 28px;
	display: flex;
	align-items: center;
	justify-content: center;
	color: #fff;
	background: none;
	border: none;
	padding: 0;
	cursor: pointer;
	flex-shrink: 0;
	transition: color 0.15s;
}
.ctrl-icon-btn:hover {
	color: #ff9900;
}

/* 音量滑桿 */
.vol-slider {
	width: 68px;
	height: 4px;
	accent-color: #ff9900;
	cursor: pointer;
	vertical-align: middle;
	flex-shrink: 0;
}
