.v-player-container {
	display: flex;
	width: 100%;
	max-width: 1600px;
	gap: 20px;
	margin: 20px auto; /* 置中，並與上下元素保持適當距離 */
	align-items: stretch;
}
.v-player-left {
	flex: 6;
	display: flex;
	flex-direction: column;
	gap: 15px;
	min-width: 300px;
}
.v-player-video-box {
	width: 100%;
	aspect-ratio: 16 / 9;
	background: #000;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 8px;
	overflow: hidden;
	box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}
.v-player-container video {
	width: 100%;
	height: 100%;
	object-fit: contain;
}
.v-player-download-btn {
	align-self: flex-start;
}

.v-player-transcript-wrapper {
	flex: 4;
	min-width: 250px;
	display: flex; 
}

.v-player-transcript-box {
    width: 100%;
    height: 540px;
    position: relative; /* 確保內部 .cue 的 offsetTop 是以這個盒子為起點計算 */
    background: #fff;
    border-radius: 8px;
    border: 1px solid #ddd;
    overflow-y: auto;
    padding: 20px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    scroll-behavior: smooth;
}
.v-player-container .cue {
    padding: 12px;
    margin-bottom: 8px;
    border-radius: 6px;
    cursor: pointer;
    color: #555;
    transition: all 0.2s ease;
    font-size: 1.1rem;
    line-height: 1.5;
    text-align: left; /* 確保字幕文字靠左對齊 */
}
.v-player-container .cue:hover {
	background-color: #f0f0f0;
	color: #000;
}
.v-player-container .cue.active {
	background-color: #e3f2fd;
	color: #0d47a1;
	font-weight: bold;
	border-left: 4px solid #1e88e5;
	transform: scale(1.02);
}
.v-player-loading-text {
	color: #999;
	text-align: center;
}
.v-player-error-text {
	color: #d32f2f;
	text-align: center;
	font-weight: bold;
}

@media (max-width: 768px) {
	.v-player-container {
		flex-direction: column;
		gap: 15px;
		padding: 0 10px;
	}
	.v-player-left {
		flex: none;
		width: 100%;
	}
	.v-player-download-btn {
		width: 100%;
		text-align: center;
	}
	.v-player-transcript-wrapper {
		flex: none;
		width: 100%;
		height: 350px; /* 手機版固定字幕盒子高度 */
	}
}