/* ============================================================
 * 可愛巧虎島 list_shima.php / watch_shima.php（2026-10-30）
 * 全部以 shima- 開頭，不影響其他頁面
 * ============================================================ */
.shima-wrap{
	--shima-sky: #e8f7fb;
	--shima-sea: #2a9d8f;
	--shima-sea-dark: #1f7a6f;
	--shima-sun: #f4a62a;
	--shima-ink: #2b3440;
	--shima-muted: #6b7785;
	--shima-line: #e3edf0;
	background: #fff;
	border-radius: 14px;
	padding: 36px 40px 44px;
	margin: 24px 0 32px;
	color: var(--shima-ink);
	box-sizing: border-box;
	font-family: "Microsoft JhengHei", "微軟正黑體", "PingFang TC", "Noto Sans TC", sans-serif;
}
.shima-wrap *, .shima-wrap *::before, .shima-wrap *::after{ box-sizing: border-box; }

/* ---------- 標題區 ---------- */
.shima-head{ margin-bottom: 28px; }
.shima-back{
	display: inline-block;
	font-size: 15px;
	color: var(--shima-sea);
	text-decoration: none;
	margin-bottom: 10px;
}
.shima-back:hover{ color: var(--shima-sea-dark); text-decoration: underline; }
.shima-title{
	font-size: 34px;
	font-weight: bold;
	letter-spacing: 2px;
	margin: 0 0 10px;
	padding-left: 16px;
	border-left: 6px solid var(--shima-sun);
	line-height: 1.25;
}
.shima-title-sm{ font-size: 28px; letter-spacing: 1px; }
.shima-dash{ margin: 0 4px; color: var(--shima-muted); font-weight: normal; }
.shima-intro{
	font-size: 17px;
	line-height: 1.8;
	color: var(--shima-muted);
	margin: 0;
	max-width: 760px;
}

/* ---------- 語言區塊 ---------- */
.shima-langs{
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
	gap: 24px;
}
.shima-lang{
	background: var(--shima-sky);
	border-radius: 12px;
	padding: 22px 22px 18px;
}
.shima-lang-title{
	font-size: 22px;
	font-weight: bold;
	margin: 0 0 14px;
	color: var(--shima-ink);
}
.shima-eps{ list-style: none; margin: 0; padding: 0; }
.shima-eps li{ margin-bottom: 10px; }
.shima-eps li:last-child{ margin-bottom: 0; }
.shima-eps a{
	display: flex;
	align-items: center;
	gap: 14px;
	padding: 12px 16px;
	background: #fff;
	border: 1px solid var(--shima-line);
	border-radius: 10px;
	color: var(--shima-ink);
	text-decoration: none;
	transition: border-color .15s, box-shadow .15s, transform .15s;
}
.shima-eps a:hover, .shima-eps a:focus-visible{
	border-color: var(--shima-sea);
	box-shadow: 0 4px 12px rgba(42, 157, 143, .15);
	transform: translateY(-1px);
	outline: none;
}
.shima-ep-no{
	flex-shrink: 0;
	min-width: 44px;
	padding: 4px 0;
	border-radius: 8px;
	background: var(--shima-sun);
	color: #fff;
	font-size: 18px;
	font-weight: bold;
	text-align: center;
	letter-spacing: 1px;
}
.shima-ep-name{ flex: 1; font-size: 19px; }
.shima-ep-name em{
	font-style: normal;
	font-size: 13px;
	color: var(--shima-sea);
	margin-left: 10px;
}
/* 播放圖示 */
.shima-ep-play{
	flex-shrink: 0;
	width: 32px;
	height: 32px;
	border-radius: 50%;
	background: var(--shima-sea);
	position: relative;
	transition: background .15s;
}
.shima-ep-play::after{
	content: "";
	position: absolute;
	top: 50%;
	left: 55%;
	transform: translate(-50%, -50%);
	border-style: solid;
	border-width: 7px 0 7px 11px;
	border-color: transparent transparent transparent #fff;
}
.shima-eps a:hover .shima-ep-play{ background: var(--shima-sea-dark); }
.shima-eps li.current a{ border-color: var(--shima-sea); background: #f3fbfa; }
.shima-eps li.current .shima-ep-play{ background: var(--shima-sun); }

/* ---------- 播放頁 ---------- */
.shima-ep-badge{
	display: inline-block;
	margin-left: 12px;
	padding: 2px 12px;
	border-radius: 8px;
	background: var(--shima-sun);
	color: #fff;
	font-size: 20px;
	vertical-align: middle;
}
.shima-player{
	position: relative;
	background: #000;
	border-radius: 12px;
	overflow: hidden;
	max-width: 960px;
}
.shima-player video{
	display: block;
	width: 100%;
	aspect-ratio: 16 / 9;
	background: #000;
}
.shima-error{
	display: none;
	position: absolute;
	left: 0; right: 0; top: 50%;
	transform: translateY(-50%);
	text-align: center;
	color: #fff;
	font-size: 18px;
	pointer-events: none;
}
.shima-open{ max-width: 960px; margin-top: 8px; text-align: right; font-size: 14px; }
.shima-open a{ color: var(--shima-muted); text-decoration: none; }
.shima-open a:hover{ color: var(--shima-sea); text-decoration: underline; }
.shima-nav{
	display: flex;
	justify-content: space-between;
	gap: 12px;
	max-width: 960px;
	margin: 16px 0 28px;
}
.shima-nav-btn{
	display: inline-block;
	padding: 8px 18px;
	border-radius: 20px;
	border: 1px solid var(--shima-sea);
	color: var(--shima-sea);
	font-size: 16px;
	text-decoration: none;
	transition: background .15s, color .15s;
}
.shima-nav-btn:hover{ background: var(--shima-sea); color: #fff; }
.shima-lang-inline{ max-width: 960px; }

/* ---------- RWD ---------- */
@media screen and (max-width: 680px){
	.shima-wrap{ padding: 22px 16px 28px; margin: 3% 2%; border-radius: 10px; }
	.shima-title{ font-size: 26px; }
	.shima-title-sm{ font-size: 21px; }
	.shima-ep-badge{ font-size: 16px; margin-left: 8px; }
	.shima-intro{ font-size: 15px; }
	.shima-langs{ grid-template-columns: 1fr; gap: 16px; }
	.shima-lang{ padding: 16px 14px 14px; }
	.shima-lang-title{ font-size: 19px; }
	.shima-ep-name{ font-size: 17px; }
	.shima-player{ border-radius: 8px; }
}
