/* 與手機 APP 一致：底部「浮動」導覽（膠囊列，不貼齊螢幕邊） */
:root {
	--smp-app-bar-height: 56px;
	--smp-app-bar-float: 10px;
	/* 面板捲動到底時，與底欄之間留白（需與 .smp-app-bottom-bar 的 height、bottom 一致） */
	--smp-app-bar-sheet-pad-bottom: calc(
		20px + var(--smp-app-bar-height) + var(--smp-app-bar-float) + env(safe-area-inset-bottom, 0px)
	);
}

body.smp-has-app-bottom-bar {
	padding-bottom: calc(
		var(--smp-app-bar-height) + var(--smp-app-bar-float) + 14px + env(safe-area-inset-bottom, 0px)
	);
}

.smp-app-bottom-bar {
	position: fixed;
	left: 50%;
	transform: translateX(-50%);
	bottom: calc(10px + env(safe-area-inset-bottom, 0px));
	width: calc(100% - 24px);
	max-width: 420px;
	z-index: 100050;
	display: flex;
	justify-content: space-around;
	align-items: stretch;
	height: 56px;
	padding: 0 6px;
	box-sizing: border-box;
	background: rgba(28, 28, 30, 0.92);
	backdrop-filter: saturate(180%) blur(20px);
	-webkit-backdrop-filter: saturate(180%) blur(20px);
	border-radius: 28px;
	border: 1px solid rgba(255, 255, 255, 0.12);
	box-shadow:
		0 12px 40px rgba(0, 0, 0, 0.45),
		0 4px 12px rgba(0, 0, 0, 0.28),
		inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.smp-app-bar__item {
	flex: 1;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 2px;
	padding: 6px 4px 4px;
	background: transparent;
	border: none;
	color: #e0e0e0;
	font-size: 11px;
	cursor: pointer;
	-webkit-tap-highlight-color: transparent;
	text-decoration: none;
}

.smp-app-bar__item:hover,
.smp-app-bar__item:focus {
	color: #fff;
}

.smp-app-bar__item.is-active {
	color: #ff4081;
}

.smp-app-bar__icon {
	font-size: 22px;
	line-height: 1;
}

.smp-app-bar__icon--profile {
	display: inline-flex;
	align-items: center;
	justify-content: center;
}

.smp-app-bar__icon--profile .smp-app-bar__fa-icon--profile {
	font-size: 1em;
	line-height: 1;
}

.smp-app-bar__profile-fa--vip {
	color: #ffc107 !important;
	filter: drop-shadow(0 0 3px rgba(255, 193, 7, 0.4));
}

.smp-profile-tab--guest .smp-app-bar__icon--profile .smp-app-bar__fa-icon--profile {
	opacity: 0.88;
}

.smp-app-bar__label {
	line-height: 1.2;
}

.smp-app-bar__item--qr .smp-app-bar__icon {
	font-size: 18px;
}

.smp-join-qr-modal {
	position: fixed;
	inset: 0;
	z-index: 100090;
}

.smp-join-qr-modal__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.62);
}

.smp-join-qr-modal__panel {
	position: relative;
	z-index: 1;
	width: min(92vw, 360px);
	margin: 8vh auto 0;
	padding: 14px;
	border-radius: 14px;
	background: #1e1e1e;
	border: 1px solid rgba(255, 255, 255, 0.14);
	box-shadow: 0 14px 40px rgba(0, 0, 0, 0.45);
	color: #fff;
}

.smp-join-qr-modal__close {
	position: absolute;
	top: 6px;
	right: 6px;
	width: 30px;
	height: 30px;
	border: 0;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.12);
	color: #fff;
	font-size: 20px;
	line-height: 1;
	cursor: pointer;
}

.smp-join-qr-modal__title {
	margin: 2px 0 10px;
	font-size: 16px;
	text-align: center;
}

.smp-join-qr-modal__img {
	display: block;
	width: min(76vw, 280px);
	height: auto;
	margin: 0 auto 8px;
	border-radius: 8px;
	background: #fff;
	padding: 6px;
}

.smp-join-qr-modal__hint {
	margin: 0 0 8px;
	font-size: 12px;
	color: #d2d2d2;
	text-align: center;
}

.smp-join-qr-modal__actions {
	display: flex;
	gap: 8px;
	margin-bottom: 8px;
}

.smp-join-qr-modal__btn {
	flex: 1;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 8px 10px;
	border-radius: 8px;
	border: 1px solid rgba(255, 255, 255, 0.2);
	background: rgba(255, 255, 255, 0.06);
	color: #fff;
	font-size: 13px;
	text-decoration: none;
}

.smp-join-qr-modal__btn--primary {
	background: #f4596e;
	border-color: transparent;
}

.smp-join-qr-modal__payload {
	width: 100%;
	height: 72px;
	box-sizing: border-box;
	background: #121212;
	color: #d7d7d7;
	border: 1px solid rgba(255, 255, 255, 0.16);
	border-radius: 8px;
	font-family: monospace;
	font-size: 11px;
	padding: 8px;
	resize: vertical;
}

.smp-join-qr-sheet {
	text-align: center;
}

.smp-join-qr-sheet__img {
	display: block;
	width: min(76vw, 280px);
	height: auto;
	margin: 0 auto 8px;
	border-radius: 8px;
	background: #fff;
	padding: 6px;
}

.smp-join-qr-sheet__hint {
	margin: 0 0 8px;
	font-size: 12px;
	color: #d2d2d2;
}

.smp-join-qr-sheet__actions {
	display: flex;
	gap: 8px;
	margin-bottom: 8px;
}

.smp-join-qr-sheet__btn {
	flex: 1;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 8px 10px;
	border-radius: 8px;
	border: 1px solid rgba(255, 255, 255, 0.2);
	background: rgba(255, 255, 255, 0.06);
	color: #fff;
	font-size: 13px;
	text-decoration: none;
}

.smp-join-qr-sheet__btn--primary {
	background: #f4596e;
	border-color: transparent;
}

.smp-join-qr-sheet__payload {
	width: 100%;
	height: 72px;
	box-sizing: border-box;
	background: #121212;
	color: #d7d7d7;
	border: 1px solid rgba(255, 255, 255, 0.16);
	border-radius: 8px;
	font-family: monospace;
	font-size: 11px;
	padding: 8px;
	resize: vertical;
}

/* 列表／介紹頁頂部分類：目前項目 class="hover" 與滑過一致（佈景若已有 a:hover 可再微調） */
.typeMain > div a.hover {
	font-weight: 700;
	opacity: 1;
}

/* 遮罩與面板 */
.smp-app-overlay {
	display: none;
	position: fixed;
	inset: 0;
	z-index: 100040;
	background: rgba(0, 0, 0, 0.55);
}

.smp-app-overlay.is-open {
	display: block;
}

.smp-app-sheet {
	display: none;
	position: fixed;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 100045;
	max-height: 85vh;
	overflow: auto;
	background: #1e1e1e;
	border-radius: 16px 16px 0 0;
	/* 底欄 z-index 高於面板，內容需留白避免按鈕／表單被擋 */
	padding: 16px 16px var(--smp-app-bar-sheet-pad-bottom);
	color: #fff;
	box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.4);
}

.smp-app-sheet.is-open {
	display: block;
}

.smp-app-sheet__head {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 12px;
	padding-bottom: 8px;
	border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.smp-app-sheet__title {
	margin: 0;
	font-size: 18px;
	font-weight: 600;
}

.smp-app-sheet__close {
	background: none;
	border: none;
	color: #aaa;
	font-size: 24px;
	line-height: 1;
	cursor: pointer;
	padding: 4px 8px;
}

.smp-app-sheet__close:hover {
	color: #fff;
}

.smp-pay-success-panel {
	padding: 8px 0 4px;
	text-align: center;
}

.smp-pay-success-panel__icon {
	margin: 0 0 12px;
	font-size: 52px;
	line-height: 1;
	color: #4caf50;
}

.smp-pay-success-panel__text {
	margin: 0 0 20px;
	font-size: 15px;
	line-height: 1.5;
	color: rgba(255, 255, 255, 0.92);
}

.smp-app-profile__line1 {
	font-size: 15px;
	margin-bottom: 4px;
}

.smp-app-profile__line2 {
	font-size: 13px;
	color: #aaa;
	margin-bottom: 16px;
}

.smp-app-profile__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: calc(50% - 4px);
	padding: 10px 12px;
	margin: 0;
	border-radius: 999px;
	border: 1px solid rgba(255, 255, 255, 0.2);
	font-size: 14px;
	font-weight: 600;
	cursor: pointer;
	text-align: center;
	text-decoration: none;
	background: #333;
	color: #e8e8e8;
}

.smp-app-profile__btn:hover:not(.smp-app-profile__btn--danger) {
	filter: none;
}

.smp-app-profile__btn--primary {
	background: linear-gradient(135deg, #f4596e, #e0407a);
	border-color: transparent;
	color: #fff;
}

.smp-app-profile__btn--danger {
	background: #3a2020;
	color: #ff8a80;
}

.smp-app-support__field {
	margin-bottom: 12px;
}

.smp-app-support__field label {
	display: block;
	font-size: 13px;
	margin-bottom: 4px;
	color: #bbb;
}

.smp-app-support__field input,
.smp-app-support__field textarea {
	width: 100%;
	padding: 10px 12px;
	border-radius: 8px;
	border: 1px solid #444;
	background: #2a2a2a;
	color: #fff;
	font-size: 14px;
	box-sizing: border-box;
}

.smp-app-support__field textarea {
	min-height: 100px;
	resize: vertical;
}

.smp-app-support__field input.smp-app-support__input--locked {
	opacity: 0.85;
	cursor: not-allowed;
	background: #252525;
}

.smp-app-pay__select {
	width: 100%;
	padding: 10px 12px;
	margin-bottom: 12px;
	border-radius: 8px;
	border: 1px solid #444;
	background: #2a2a2a;
	color: #fff;
	font-size: 14px;
}

.smp-app-msg {
	font-size: 13px;
	color: #ffab91;
	margin-top: 8px;
}

/* 客服面板內：聯絡客服 / 登入 / 註冊 / 忘記密碼 */
.smp-app-support-tabs {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin-bottom: 14px;
}

.smp-app-support-tab {
	flex: 1 1 calc(50% - 3px);
	min-width: 0;
	padding: 8px 8px;
	border-radius: 8px;
	border: 1px solid rgba(255, 255, 255, 0.14);
	background: #2a2a2a;
	color: #bbb;
	font-size: 12px;
	cursor: pointer;
	-webkit-tap-highlight-color: transparent;
}

.smp-app-support-tab.is-active {
	color: #fff;
	border-color: rgba(255, 64, 129, 0.55);
	background: rgba(255, 64, 129, 0.12);
}

/* 客服：未登入引導、子分頁、連絡紀錄 */
.smp-support-guest-hint {
	text-align: center;
	padding: 20px 12px 8px;
}
.smp-support-guest-hint__text {
	margin: 0 0 14px;
	font-size: 14px;
	line-height: 1.5;
	color: #ccc;
}
.smp-support-subtabs {
	display: flex;
	gap: 8px;
	margin-bottom: 16px;
}
.smp-support-subtab {
	flex: 1;
	padding: 10px 12px;
	border-radius: 999px;
	border: 1px solid rgba(255, 255, 255, 0.14);
	background: #242424;
	color: #aaa;
	font-size: 13px;
	font-weight: 600;
	cursor: pointer;
	-webkit-tap-highlight-color: transparent;
	transition:
		background 0.15s ease,
		color 0.15s ease,
		border-color 0.15s ease;
}
.smp-support-subtab.is-active {
	color: #fff;
	border-color: rgba(255, 64, 129, 0.65);
	background: linear-gradient(135deg, rgba(255, 64, 129, 0.35), rgba(255, 100, 120, 0.12));
	box-shadow: 0 4px 14px rgba(255, 64, 129, 0.2);
}
.smp-support-subpanel {
	display: none;
}
.smp-support-subpanel.is-active {
	display: block;
}
.smp-support-pill-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 10px 20px;
	border-radius: 999px;
	border: 1px solid rgba(255, 255, 255, 0.2);
	background: #333;
	color: #e8e8e8;
	font-size: 14px;
	font-weight: 600;
	cursor: pointer;
	font-family: inherit;
	-webkit-tap-highlight-color: transparent;
}
.smp-support-pill-btn--primary {
	background: linear-gradient(135deg, #f4596e, #e0407a);
	border-color: transparent;
	color: #fff;
}
.smp-support-pill-btn--block {
	width: 100%;
	box-sizing: border-box;
	margin-top: 4px;
}
.smp-support-history-list {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(280px, 320px));
	justify-content: center;
	gap: 10px 12px;
	max-height: min(52vh, 420px);
	overflow-y: auto;
	padding-bottom: 8px;
}
@media (max-width: 767px) {
	.smp-support-history-list {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}
@media (max-width: 399px) {
	.smp-support-history-list {
		grid-template-columns: 1fr;
	}
}
.smp-support-history-empty {
	margin: 12px 0;
	text-align: center;
	color: #888;
	font-size: 14px;
}
.smp-support-history-card {
	width: 100%;
	box-sizing: border-box;
	border-radius: 12px;
	padding: 12px 14px;
	background: rgba(38, 38, 40, 0.95);
	border: 1px solid rgba(255, 255, 255, 0.08);
}
.smp-support-history-card__subject {
	font-weight: 700;
	font-size: 14px;
	margin-bottom: 6px;
	color: #f5f5f5;
}
.smp-support-history-card__meta {
	font-size: 12px;
	color: #9e9e9e;
	margin-bottom: 8px;
}
.smp-support-history-card__body {
	font-size: 13px;
	line-height: 1.45;
	color: #c9c9c9;
	white-space: pre-wrap;
	word-break: break-word;
}
.smp-support-history-card__other {
	margin-top: 8px;
	font-size: 12px;
	color: #a5d6a7;
}
.smp-support-history-card__reply {
	margin-top: 10px;
	padding-top: 10px;
	border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.smp-support-history-card__reply-label {
	font-size: 12px;
	font-weight: 600;
	color: #81c784;
	margin-bottom: 4px;
}
.smp-support-history-card__reply-text {
	font-size: 13px;
	line-height: 1.45;
	color: #e8f5e9;
	white-space: pre-wrap;
	word-break: break-word;
}
.smp-support-history-card__attach,
.smp-support-history-card__reply-img {
	display: block;
	width: 72px;
	height: 72px;
	object-fit: cover;
	border-radius: 8px;
	margin-top: 8px;
	cursor: zoom-in;
	border: 1px solid rgba(255, 255, 255, 0.12);
}
.smp-support-image-preview {
	position: fixed;
	inset: 0;
	z-index: 100120;
	background: rgba(0, 0, 0, 0.8);
	display: none;
	align-items: center;
	justify-content: center;
	padding: 18px;
}
.smp-support-image-preview.is-open {
	display: flex;
}
.smp-support-image-preview__img {
	max-width: min(92vw, 920px);
	max-height: 86vh;
	border-radius: 10px;
	box-shadow: 0 8px 30px rgba(0, 0, 0, 0.35);
}
.smp-support-image-preview__close {
	position: absolute;
	top: 14px;
	right: 14px;
	width: 36px;
	height: 36px;
	border: 0;
	border-radius: 18px;
	background: rgba(255, 255, 255, 0.2);
	color: #fff;
	font-size: 24px;
	line-height: 1;
	cursor: pointer;
}

.smp-app-support-panel {
	display: none;
}

.smp-app-support-panel.is-active {
	display: block;
}

.smp-app-support-remember,
#smp-app-sheet-support .smp-auth-remember {
	display: flex;
	align-items: center;
	gap: 8px;
	margin-bottom: 12px;
}

.smp-app-support-remember input[type='checkbox'],
#smp-app-sheet-support .smp-auth-remember input[type='checkbox'] {
	width: auto;
	height: auto;
	margin: 0;
	accent-color: #ff4081;
}

.smp-app-support-remember label,
#smp-app-sheet-support .smp-auth-remember label {
	margin: 0;
	font-size: 13px;
	color: #bbb;
	cursor: pointer;
}

.smp-auth-field-hint {
	font-size: 12px;
	color: #888;
	margin: 6px 0 0;
	line-height: 1.4;
}

.smp-app-support-auth-links {
	display: flex;
	justify-content: space-between;
	align-items: center;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: 12px;
}

.smp-app-support-auth-links--center {
	justify-content: center;
}

.smp-app-support-auth-links__btn {
	background: none;
	border: none;
	padding: 0;
	color: #ffab91;
	font-size: 13px;
	cursor: pointer;
	text-decoration: underline;
	font-family: inherit;
}

.smp-app-support-auth-links__btn:hover {
	color: #ffccbc;
}

.smp-sheet-auth-alert {
	margin-top: 10px;
	padding: 10px 12px;
	border-radius: 8px;
	font-size: 14px;
	line-height: 1.45;
}

.smp-sheet-auth-alert--ok {
	background: rgba(76, 175, 80, 0.2);
	color: #a5d6a7;
}

.smp-sheet-auth-alert--err {
	background: rgba(244, 67, 54, 0.15);
	color: #ffab91;
}

/* 加入／取消收藏提示（全站） */
.smp-fav-toast {
	display: none;
	position: fixed;
	left: 50%;
	bottom: calc(88px + env(safe-area-inset-bottom, 0px));
	transform: translateX(-50%);
	z-index: 100060;
	max-width: min(92vw, 320px);
	padding: 10px 16px;
	border-radius: 10px;
	font-size: 14px;
	line-height: 1.45;
	text-align: center;
	box-shadow: 0 8px 28px rgba(0, 0, 0, 0.35);
	pointer-events: none;
}

.smp-fav-toast--loading {
	background: rgba(40, 40, 42, 0.95);
	color: #e0e0e0;
	border: 1px solid rgba(255, 255, 255, 0.12);
}

.smp-fav-toast--ok {
	background: rgba(46, 125, 50, 0.95);
	color: #fff;
	border: 1px solid rgba(255, 255, 255, 0.15);
}

.smp-fav-toast--err {
	background: rgba(183, 28, 28, 0.95);
	color: #fff;
	border: 1px solid rgba(255, 255, 255, 0.12);
}

.smp-fav-toast--info {
	background: rgba(40, 40, 42, 0.95);
	color: #e0e0e0;
	border: 1px solid rgba(255, 255, 255, 0.12);
}

/* 我的：收藏子面板 */
.smp-profile-panel {
	padding: 0 16px 16px;
	max-height: min(70vh, 520px);
	overflow-y: auto;
	padding-bottom: var(--smp-app-bar-sheet-pad-bottom, 96px);
}

.smp-profile-panel[data-smp-profile-panel='main'] {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 8px;
}

.smp-profile-panel[data-smp-profile-panel='main'] .smp-app-profile__line1,
.smp-profile-panel[data-smp-profile-panel='main'] .smp-app-profile__line2 {
	grid-column: 1 / -1;
}

/* 我的面板按鈕：與客服 pill 按鈕完全一致（僅保留兩欄寬度） */
.smp-profile-panel[data-smp-profile-panel='main'] .smp-app-profile__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: calc(50% - 4px);
	box-sizing: border-box;
	padding: 10px 20px;
	border-radius: 999px;
	border: 1px solid rgba(255, 255, 255, 0.2);
	background: #333;
	color: #e8e8e8;
	font-size: 14px;
	font-weight: 600;
	font-family: inherit;
	cursor: pointer;
	-webkit-tap-highlight-color: transparent;
	text-decoration: none;
}

.smp-profile-panel[data-smp-profile-panel='main'] .smp-app-profile__btn--primary {
	background: linear-gradient(135deg, #f4596e, #e0407a);
	border-color: transparent;
	color: #fff;
}

/* 我的面板按鈕：沿用客服 tab 樣式與 is-active 行為 */
.smp-profile-panel[data-smp-profile-panel='main'] .smp-app-support-tab.smp-app-profile__btn {
	min-width: 0;
	width: 100%;
	padding: 8px 8px;
	border-radius: 8px;
	border: 1px solid rgba(255, 255, 255, 0.14);
	background: #2a2a2a;
	color: #bbb;
	font-size: 12px;
	font-weight: 400;
}

.smp-profile-panel[data-smp-profile-panel='main'] .smp-app-support-tab.smp-app-profile__btn.is-active {
	color: #fff;
	border-color: rgba(255, 64, 129, 0.55);
	background: rgba(255, 64, 129, 0.12);
}

.smp-profile-panel[data-smp-profile-panel='main'] .smp-app-profile__btn--primary,
.smp-profile-panel[data-smp-profile-panel='main'] .smp-app-profile__btn--danger {
	background: #2a2a2a;
	border-color: rgba(255, 255, 255, 0.14);
	color: #bbb;
}

.smp-profile-favorites-head {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-bottom: 12px;
}

.smp-profile-favorites-back {
	flex: 0 0 auto;
	background: transparent;
	border: none;
	color: #ffab91;
	font-size: 15px;
	cursor: pointer;
	padding: 6px 0;
	font-family: inherit;
	-webkit-tap-highlight-color: transparent;
}

.smp-profile-favorites-title {
	margin: 0;
	font-size: 16px;
	font-weight: 600;
	color: #fff;
}

/* 我的收藏：多欄換行；單卡為「縮圖 + 片名」橫向一列，片名約 6 字寬換行 */
.smp-favorites-list {
	display: flex;
	flex-direction: row;
	flex-wrap: wrap;
	align-items: flex-start;
	gap: 10px 12px;
}

.smp-favorites-card {
	display: inline-flex;
	flex-direction: row;
	align-items: flex-start;
	gap: 4px;
	max-width: 100%;
	background: rgba(255, 255, 255, 0.06);
	border-radius: 10px;
	border: 1px solid rgba(255, 255, 255, 0.1);
	padding: 6px 4px 6px 8px;
	box-sizing: border-box;
}

.smp-favorites-card__link {
	display: flex;
	flex-direction: row;
	align-items: flex-start;
	gap: 8px;
	min-width: 0;
	padding: 2px 0;
	color: #e8e8e8;
	text-decoration: none;
}

.smp-favorites-card__pic {
	flex: 0 0 44px;
	width: 44px;
	height: 58px;
	border-radius: 6px;
	overflow: hidden;
	background: #333;
}

.smp-favorites-card__pic--ph {
	background: linear-gradient(135deg, #444, #2a2a2a);
}

.smp-favorites-card__pic img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.smp-favorites-card__title {
	display: block;
	max-width: 6em;
	font-size: 13px;
	line-height: 1.4;
	word-break: break-all;
	overflow-wrap: anywhere;
	hyphens: auto;
}

.smp-favorites-card__remove {
	flex: 0 0 32px;
	width: 32px;
	min-height: 44px;
	border: none;
	background: rgba(244, 67, 54, 0.2);
	color: #ffab91;
	font-size: 18px;
	line-height: 1;
	cursor: pointer;
	font-family: inherit;
	border-radius: 6px;
	align-self: stretch;
	-webkit-tap-highlight-color: transparent;
}

.smp-favorites-empty {
	text-align: center;
	color: #888;
	font-size: 14px;
	margin: 24px 0;
}

/* 影片列表：外層改為 .movielist-item（與主題 .movielist a 卡片寬度一致） */
.movielist .movielist-item {
	display: flex;
	flex-direction: column;
	background-color: #ffffff;
	width: 19%;
	margin: 0.5%;
	box-sizing: border-box;
	border-radius: 13px 13px 10px 10px;
	position: relative;
}

.movielist .movielist-item > a {
	display: flex;
	flex-direction: column;
	flex: 1;
	width: 100%;
	min-height: 0;
	text-decoration: none;
	color: inherit;
}

.movielist .movielist-item > a .movie_pic {
	position: relative;
	width: 100%;
}

.movielist .movielist-item > a .movie_pic img {
	width: 100%;
	border-radius: 10px 10px 0 0;
	aspect-ratio: 3 / 4;
	object-fit: cover;
}

.movielist .movielist-item > a .movie_pic .now_ep {
	font-size: small;
	color: #ffffff;
	padding: 2px 2px;
	background: rgba(13, 13, 13, 0.4);
	border-radius: 4px;
	white-space: nowrap;
	font-weight: 600;
	position: absolute;
	top: 5px;
	left: 5px;
}

.movielist .movielist-item > a .movie_pic .start_date {
	font-size: small;
	color: #ffffff;
	padding: 2px 2px;
	background: rgba(13, 13, 13, 0.4);
	border-radius: 4px;
	white-space: nowrap;
	font-weight: 600;
	position: absolute;
	bottom: 5px;
	right: 5px;
}

.movielist .movielist-item > a .name {
	font-size: 105%;
	color: #333333;
	padding: 5px 10px;
	font-weight: 600;
	line-height: 110%;
}

.movielist .movielist-item > a .info {
	display: flex;
	flex-direction: row;
	justify-content: space-between;
	width: 100%;
	box-sizing: border-box;
	color: #999999;
	font-size: 90%;
	padding: 0px 10px 8px;
}

@media screen and (max-width: 1150px) {
	.movielist .movielist-item {
		width: 24%;
	}
}

@media screen and (max-width: 720px) {
	.movielist .movielist-item {
		width: 49%;
	}
}

.smp-movie-fav-btn.smp-fav-btn--guest-hidden,
.smp-view-fav-btn.smp-fav-btn--guest-hidden {
	display: none !important;
}

.movielist .smp-movie-fav-btn {
	position: absolute;
	top: 6px;
	right: 6px;
	z-index: 2;
	width: 32px;
	height: 32px;
	border-radius: 50%;
	border: 1px solid rgba(255, 255, 255, 0.35);
	background: rgba(0, 0, 0, 0.55);
	color: #ffab91;
	font-size: 16px;
	line-height: 1;
	padding: 0;
	cursor: pointer;
	-webkit-tap-highlight-color: transparent;
}

.movielist .smp-movie-fav-btn.is-favorited {
	background: rgba(255, 64, 129, 0.45);
	border-color: rgba(255, 64, 129, 0.8);
	color: #fff;
}

/* 影片介紹頁：收藏（空心／實心愛心，title 為瀏覽器原生提示） */
.viewmain .info .name.smp-view-name-row {
	display: flex;
	align-items: center;
	gap: 10px;
	flex-wrap: wrap;
}

.viewmain .info .name.smp-view-name-row .smp-view-name-text {
	flex: 1;
	min-width: 0;
}

.smp-view-fav-btn {
	flex: 0 0 auto;
	border: none;
	background: transparent;
	padding: 4px 8px;
	margin: 0;
	cursor: pointer;
	font-size: 1.25rem;
	line-height: 1;
	color: rgba(216, 227, 255, 0.75);
	border-radius: 8px;
	-webkit-tap-highlight-color: transparent;
	transition: color 0.15s ease, background 0.15s ease;
}

.smp-view-fav-btn:hover,
.smp-view-fav-btn:focus-visible {
	color: #ff4081;
	background: rgba(255, 64, 129, 0.12);
	outline: none;
}

.smp-view-fav-btn .smp-fav-icon-on {
	display: none;
}

.smp-view-fav-btn.is-favorited .smp-fav-icon-off {
	display: none;
}

.smp-view-fav-btn.is-favorited .smp-fav-icon-on {
	display: inline;
}

.smp-view-fav-btn.is-favorited {
	color: #ff4081;
}

/* 影片介紹頁播放清單：需 VIP 集數 */
.episodeslist a .smp-ep-vip-lock {
	margin-left: 0.3em;
	font-size: 0.88em;
	color: #ffc107;
	vertical-align: middle;
	opacity: 0.95;
}

.episodeslist a.smp-ep-vip-locked {
	cursor: pointer;
	text-decoration: none;
}

@media screen and (max-width: 720px) {
	.viewmain .info .name.smp-view-name-row {
		justify-content: center;
		text-align: center;
	}

	.viewmain .info .name.smp-view-name-row .smp-view-name-text {
		flex: 1 1 100%;
	}
}
