/*
 * 嵌入式影片播放器（取代舊站 web.klokah.tw/video/song_embed.php）
 * 樣式照舊站 video/css/song_embed.css，全部限定在 .song-embed 底下，避免影響頁面其他元素。
 * 搭配 resources/views/components/video/song-embed.blade.php、public/js/components/song_embed.js
 */
.song-embed,
.song-embed *,
.song-embed *::before,
.song-embed *::after {
	box-sizing: border-box;
}
.song-embed {
	width: 100%;
	min-width: 0;
	background-color: #fff;
	text-align: left;
}
.song-embed #video-watch-top {
	display: block;
	width: 100%;
	max-width: 560px;
	margin: auto;
}
.song-embed #video-watch-meta {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
}
.song-embed #video-watch-language {
	display: flex;
	align-items: center;
	width: auto;
	min-width: 0;
	font-size: clamp(16px, 3.6vw, 20px);
	line-height: 34px;
	overflow-wrap: anywhere;
}
.song-embed #video-watch-language img {
	flex: 0 0 auto;
}
.song-embed #count {
	flex: 0 0 auto;
	width: auto;
	font-size: 15px;
	line-height: 34px;
	text-align: right;
	white-space: nowrap;
}
.song-embed #video-watch-player {
	width: 100%;
	overflow: hidden;
}
.song-embed #song-embed-player,
.song-embed #video-watch-player iframe {
	display: block;
	width: 100% !important;
	max-width: 100%;
	height: auto !important;
	aspect-ratio: 14 / 9;
}
.song-embed #video-watch-tool {
	display: flex;
	align-items: flex-start;
	width: 100%;
	background-color: #666;
	margin-top: -3px;
}
.song-embed #video-watch-tool > a {
	display: inline-block;
	flex: 0 1 59px;
	min-width: 0;
	width: 59px;
	height: auto;
	aspect-ratio: 59 / 33;
	background-repeat: no-repeat;
	background-position: center;
	background-size: 100% 100%;
}
.song-embed #video-watch-play-btn {
	background-image: url(../img/video/song_embed/button-play.png);
}
.song-embed #video-watch-pause-btn {
	background-image: url(../img/video/song_embed/button-pause.png);
}
.song-embed #video-watch-replay-btn {
	background-image: url(../img/video/song_embed/button-replay.png);
}
.song-embed #video-watch-prev-btn {
	background-image: url(../img/video/song_embed/button-prev-part.png);
}
.song-embed #video-watch-next-btn {
	background-image: url(../img/video/song_embed/button-next-part.png);
}
.song-embed #video-watch-title {
	font-size: clamp(20px, 4.5vw, 25px);
	margin: 10px 0px;
	overflow-wrap: anywhere;
}
.song-embed #video-watch-subtitle-tool {
	display: flex;
	justify-content: flex-end;
	flex-wrap: wrap;
	text-align: right;
}
.song-embed #video-watch-subtitle {
	display: block;
	width: 100%;
	max-width: 560px;
	margin: auto;
}
.song-embed #video-watch-verbatim-btn {
	display: inline-block;
	width: 76px;
	height: 36px;
	background-image: url(../img/video/song_embed/button-verbatim.png);
	background-repeat: no-repeat;
}
.song-embed #video-watch-verbatim-btn:hover {
	background-image: url(../img/video/song_embed/button-verbatim-hover.png);
}
.song-embed #video-watch-subtitle-ab {
	border-bottom: #999 dashed 5px;
	padding: 10px 0px;
}
.song-embed #video-watch-subtitle-inner-ab {
	font-size: clamp(24px, 6.25vw, 35px);
	overflow-wrap: anywhere;
}
.song-embed #video-watch-subtitle-inner-ab > div {
	display: inline-block;
	max-width: calc(100% - 10px);
	text-align: center;
	margin: 5px;
	padding: 0px 5px;
	font-size: clamp(18px, 5.35vw, 30px);
	min-height: 60px;
	vertical-align: top;
	background-color: #eee;
	border-radius: 5px;
	overflow-wrap: anywhere;
}
.song-embed #video-watch-subtitle-ch {
	padding: 10px 0px;
}
.song-embed #video-watch-subtitle-inner-ch {
	font-size: clamp(20px, 5.35vw, 30px);
	overflow-wrap: anywhere;
}

@media (max-width: 480px) {
	.song-embed #video-watch-top,
	.song-embed #video-watch-subtitle {
		padding-right: 8px;
		padding-left: 8px;
	}
	.song-embed #video-watch-meta {
		align-items: flex-start;
		flex-direction: column;
		gap: 0;
	}
	.song-embed #count {
		line-height: 24px;
		text-align: left;
	}
	.song-embed #video-watch-subtitle-ab,
	.song-embed #video-watch-subtitle-ch {
		padding-right: 2px;
		padding-left: 2px;
	}
}
