/* =========================================================
   FlexMovie listing cards — professional redesign
   Targets .postItems / .postMain (home, archive, continue)
   Light + dark via [dark="true"]
   ========================================================= */

:root {
	--fm-card-bg: #ffffff;
	--fm-card-bg-2: #f4f5f7;
	--fm-card-ink: #1a1d26;
	--fm-card-muted: #5f6775;
	--fm-card-border: #e6e8ee;
	--fm-card-accent: #ff7830;
	--fm-card-accent-soft: rgba(255, 120, 48, .12);
	--fm-card-link: #2563eb;
	--fm-card-radius: 16px;
	--fm-card-shadow: 0 4px 18px rgba(26, 29, 38, .07);
	--fm-card-shadow-hover: 0 12px 32px rgba(26, 29, 38, .12);
}

html[dark="true"],
[dark="true"] {
	--fm-card-bg: #1c1d24;
	--fm-card-bg-2: #25262f;
	--fm-card-ink: #eef0f4;
	--fm-card-muted: #9aa1b0;
	--fm-card-border: #2e303a;
	--fm-card-accent: #ff8a4a;
	--fm-card-accent-soft: rgba(255, 120, 48, .16);
	--fm-card-link: #7db4ff;
	--fm-card-shadow: 0 6px 22px rgba(0, 0, 0, .35);
	--fm-card-shadow-hover: 0 14px 36px rgba(0, 0, 0, .45);
}

/* Outer article — listing cards only (not single post shell) */
body:not(.single):not(.fm-single-redesign) .postItems.bg-custom,
.home .postItems.bg-custom,
.blog .postItems.bg-custom,
.archive .postItems.bg-custom,
.search .postItems.bg-custom,
.category .postItems.bg-custom,
.tax-genre-movies .postItems.bg-custom,
.tax-genre-series .postItems.bg-custom {
	background: var(--fm-card-bg) !important;
	border: 1px solid var(--fm-card-border) !important;
	border-radius: var(--fm-card-radius) !important;
	box-shadow: var(--fm-card-shadow) !important;
	overflow: hidden;
	transition: box-shadow .22s ease, transform .22s ease, border-color .22s ease;
}

body:not(.single):not(.fm-single-redesign) .postItems.bg-custom:hover,
.home .postItems.bg-custom:hover,
.blog .postItems.bg-custom:hover,
.archive .postItems.bg-custom:hover,
.search .postItems.bg-custom:hover,
.category .postItems.bg-custom:hover {
	box-shadow: var(--fm-card-shadow-hover) !important;
	border-color: rgba(255, 120, 48, .28) !important;
	transform: translateY(-2px);
}

/* Prefer :has when available — precise to horizontal listing layout */
.postItems.bg-custom:has(> .postMain.d-flex),
.postItems.bg-custom:has(> .postMain.main2) {
	background: var(--fm-card-bg) !important;
	border: 1px solid var(--fm-card-border) !important;
	border-radius: var(--fm-card-radius) !important;
	box-shadow: var(--fm-card-shadow) !important;
	overflow: hidden;
	transition: box-shadow .22s ease, transform .22s ease, border-color .22s ease;
}

.postItems.bg-custom:has(> .postMain.d-flex):hover,
.postItems.bg-custom:has(> .postMain.main2):hover {
	box-shadow: var(--fm-card-shadow-hover) !important;
	border-color: rgba(255, 120, 48, .28) !important;
	transform: translateY(-2px);
}

/* Keep single shell clean */
body.fm-single-redesign > #wrapper .postItems.bg-custom,
body.single .postItems.bg-custom:not(:has(> .postMain.d-flex)):not(:has(> .postMain.main2)) {
	transform: none !important;
}

/* Main layout — poster locked to 2:3 (indexFilm), never stretched */
.postItems .postMain.d-flex {
	align-items: stretch;
	gap: 1rem;
	padding: 1rem 1.05rem !important;
	background: transparent;
}

.postItems .postMain .image-content {
	position: relative;
	flex: 0 0 220px !important;
	width: 220px !important;
	max-width: 220px !important;
	aspect-ratio: 2 / 3 !important;
	height: auto !important;
	min-height: 0 !important;
	max-height: none !important;
	align-self: flex-start !important;
	border-radius: 14px;
	overflow: hidden;
	background: var(--fm-card-bg-2);
	box-shadow: 0 8px 20px rgba(0, 0, 0, .12);
}

.postItems .postMain .image-content > a {
	display: block;
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	z-index: 1;
	overflow: hidden;
}

.postItems .postMain .image-content > a img {
	width: 100% !important;
	height: 100% !important;
	object-fit: cover !important;
	object-position: center top !important;
}

.postItems .postMain .image-content .poster-overlay-top {
	position: absolute;
	top: 6px !important;
	left: 6px !important;
	right: 6px !important;
	z-index: 2;
	display: flex !important;
	flex-direction: column !important;
	align-items: flex-end !important; /* RTL: لبه چپ پوستر (کنار نشانک) */
	padding: 0 !important;
	gap: .3rem !important;
	pointer-events: none;
}

.postItems .postMain .image-content .poster-overlay-top > div[data-group="wish-qual"] {
	display: flex !important;
	flex-direction: row !important;
	justify-content: flex-end !important;
	align-items: center !important;
	width: auto;
	align-self: flex-end !important;
}

.postItems .postMain .image-content .poster-overlay-top > div[data-group="dub-sub"] {
	display: flex !important;
	flex-direction: column !important;
	align-items: flex-end !important;
	align-self: flex-end !important;
	gap: .28rem !important;
	margin: 0 !important;
	max-width: 85%;
}

.postItems .postMain .image-content .poster-overlay-top > div[data-group="dub-sub"] .g-subbed,
.postItems .postMain .image-content .poster-overlay-top > div[data-group="dub-sub"] .g-dubbed {
	margin: 0 !important;
	margin-bottom: 0 !important;
	display: inline-flex !important;
	align-items: center;
	gap: .25rem;
	white-space: nowrap;
}

.postItems .postMain .image-content .poster-overlay-top > div > button {
	pointer-events: auto;
}

.postItems .postMain .image-content img {
	display: block;
	width: 100% !important;
	height: 100% !important;
	max-width: 100% !important;
	max-height: 100% !important;
	min-height: 0 !important;
	object-fit: cover !important;
	object-position: center top !important;
	border-radius: 0 !important;
	transform: none;
	transition: transform .35s cubic-bezier(.22, 1, .36, 1);
}

.postItems.bg-custom:has(> .postMain.d-flex):hover .image-content img,
.home .postItems.bg-custom:hover .image-content img {
	transform: scale(1.04);
}

.postItems .postMain .image-content .poster-overlay-top > div[data-group="wish-qual"] span,
.postItems .postMain .image-content .poster-overlay-top > div[data-group="wish-qual"] > span {
	display: none !important; /* hide quality count badge (e.g. 3 کیفیت) */
}

.postItems .postMain .image-content .poster-overlay-top .g-subbed {
	background: linear-gradient(165deg, #fbbf24, #f59e0b) !important;
	color: #1a1d26 !important;
	border-radius: 999px !important;
	padding: 4px 10px !important;
	font-size: 11px !important;
	font-weight: 800;
	box-shadow: 0 4px 12px rgba(245, 158, 11, .35);
}

.postItems .postMain .image-content .poster-overlay-top .g-dubbed {
	background: linear-gradient(165deg, #34d399, #10b981) !important;
	color: #fff !important;
	border-radius: 999px !important;
	padding: 4px 10px !important;
	font-size: 11px !important;
	font-weight: 800;
}

.postItems .postMain .image-content .poster-overlay-top > div > button,
.postItems .postMain .image-content .poster-overlay-top button.fm-overlay-item {
	display: inline-flex !important;
	align-items: center;
	justify-content: center;
	background: rgba(255, 255, 255, .94) !important;
	backdrop-filter: blur(8px);
	border: 1px solid rgba(255, 255, 255, .65) !important;
	color: #1a1d26 !important;
	border-radius: 50% !important;
	width: 36px !important;
	height: 36px !important;
	padding: 0 !important;
	box-shadow: 0 4px 14px rgba(0, 0, 0, .22);
	pointer-events: auto;
	cursor: pointer;
	transition: background .15s ease, transform .15s ease, color .15s ease;
}

.postItems .postMain .image-content .poster-overlay-top > div > button:hover,
.postItems .postMain .image-content .poster-overlay-top button.fm-overlay-item:hover {
	background: #fff !important;
	transform: scale(1.06);
}

.postItems .postMain .image-content .poster-overlay-top > div > button .svg-icon,
.postItems .postMain .image-content .poster-overlay-top > div > button svg,
.postItems .postMain .image-content .poster-overlay-top button.fm-overlay-item .svg-icon,
.postItems .postMain .image-content .poster-overlay-top button.fm-overlay-item svg {
	width: 16px !important;
	height: 16px !important;
	color: #1a1d26 !important;
	fill: currentColor !important;
	stroke: currentColor;
	display: block !important;
	opacity: 1 !important;
}

.postItems .postMain .image-content .poster-overlay-top > div > button.ajax-added,
.postItems .postMain .image-content .poster-overlay-top button.fm-overlay-item.ajax-added {
	background: var(--fm-card-accent) !important;
	border-color: transparent !important;
	color: #fff !important;
}

.postItems .postMain .image-content .poster-overlay-top > div > button.ajax-added .svg-icon,
.postItems .postMain .image-content .poster-overlay-top > div > button.ajax-added svg,
.postItems .postMain .image-content .poster-overlay-top button.fm-overlay-item.ajax-added .svg-icon,
.postItems .postMain .image-content .poster-overlay-top button.fm-overlay-item.ajax-added svg {
	color: #fff !important;
	fill: currentColor !important;
}

/* Info column */
.postItems .postMain .info-content {
	display: flex;
	flex-direction: column;
	gap: .45rem;
	min-width: 0;
	flex: 1 1 auto;
	padding: 0 !important;
}

.postItems .postMain .info-content .title {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: .85rem;
	margin: 0 !important;
}

.postItems .postMain .info-content .title h2 {
	margin: 0 !important;
	font-size: 1.05rem !important;
	font-weight: 800 !important;
	line-height: 1.55 !important;
	flex: 1;
	min-width: 0;
}

.postItems .postMain .info-content .title h2 a {
	color: var(--fm-card-ink) !important;
	text-decoration: none !important;
	transition: color .15s ease;
}

.postItems .postMain .info-content .title h2 a:hover {
	color: var(--fm-card-accent) !important;
}

.postItems .postMain .info-content .title .rating {
	flex: 0 0 auto;
	display: inline-flex;
	align-items: baseline;
	gap: 1px;
	padding: .35rem .7rem;
	border-radius: 10px;
	background: var(--fm-card-accent-soft);
	color: var(--fm-card-accent) !important;
	font-size: 1.15rem !important;
	font-weight: 800 !important;
	line-height: 1;
	white-space: nowrap;
}

.postItems .postMain .info-content .title .rating small {
	font-size: .72rem !important;
	font-weight: 700;
	opacity: .75;
}

/* Meta row */
.postItems .postMain .info-content .info {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: .35rem .15rem;
	margin: 0 !important;
	padding: 0 !important;
}

.postItems .postMain .info-content .info > div {
	display: inline-flex;
	align-items: center;
	gap: .25rem;
	margin: 0 !important;
	padding: .28rem .65rem !important;
	border-radius: 8px;
	background: var(--fm-card-bg-2);
	color: var(--fm-card-muted) !important;
	font-size: 12.5px !important;
	font-weight: 600;
}

.postItems .postMain .info-content .info > div::before {
	display: none !important;
	content: none !important;
}

.postItems .postMain .info-content .info div[data-post="rated"] {
	border: 1.5px solid #ef4444 !important;
	background: rgba(239, 68, 68, .08) !important;
	color: #ef4444 !important;
	font-weight: 800 !important;
	min-width: 2rem;
	justify-content: center;
}

.postItems .postMain .info-content .info div[data-post="year"],
.postItems .postMain .info-content .info a {
	color: var(--fm-card-link) !important;
}

/* Genres + update badge */
.postItems .postMain .info-content .genre {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-start;
	gap: .45rem;
	margin: 0 !important;
}

.postItems .postMain .info-content .genre a {
	display: inline-flex !important;
	align-items: center;
	padding: .32rem .75rem !important;
	border: 1.5px solid rgba(255, 120, 48, .45) !important;
	border-radius: 999px !important;
	background: transparent !important;
	color: var(--fm-card-accent) !important;
	font-size: 12px !important;
	font-weight: 700 !important;
	text-decoration: none !important;
	transition: background .15s ease, color .15s ease, border-color .15s ease;
}

.postItems .postMain .info-content .genre a:hover {
	background: var(--fm-card-accent) !important;
	border-color: var(--fm-card-accent) !important;
	color: #fff !important;
}

.postItems .postMain .info-content .genre div[data-post="updated"] {
	flex: 1 1 100%;
	width: 100%;
	margin: .15rem 0 0 !important;
}

.postItems .postMain .info-content .genre div[data-post="updated"]::before {
	display: none !important;
}

.postItems .postMain .info-content .genre div[data-post="updated"] span {
	display: block !important;
	width: 100%;
	max-width: 100%;
	box-sizing: border-box;
	padding: .55rem .85rem !important;
	border-radius: 12px !important;
	background: rgba(37, 99, 235, .1) !important;
	border: 1px solid rgba(37, 99, 235, .2);
	color: var(--fm-card-link) !important;
	font-size: 12.5px !important;
	font-weight: 600;
	line-height: 1.7;
	white-space: normal !important;
	overflow: visible !important;
	text-overflow: unset !important;
	word-wrap: break-word;
	overflow-wrap: anywhere;
}

html[dark="true"] .postItems .postMain .info-content .genre div[data-post="updated"] span,
[dark="true"] .postItems .postMain .info-content .genre div[data-post="updated"] span {
	background: rgba(125, 180, 255, .12) !important;
	border-color: rgba(125, 180, 255, .22);
}

/* Crew — hidden (actors shown separately without links) */
.postItems .postMain .info-content .crew {
	display: none !important;
}

/* Actors — plain text, no links */
.postItems .postMain .info-content .fm-card-actors {
	display: flex;
	align-items: baseline;
	gap: .45rem;
	margin-top: auto;
	margin-bottom: 0;
	min-width: 0;
	padding: .35rem 0 0;
}

.postItems .postMain .info-content .fm-card-actors span {
	flex: 0 0 auto;
	color: var(--fm-card-muted);
	font-size: 12px;
	font-weight: 700;
	white-space: nowrap;
}

.postItems .postMain .info-content .fm-card-actors .list {
	flex: 1 1 auto;
	min-width: 0;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	color: var(--fm-card-ink);
	font-size: 12.5px;
	font-weight: 600;
	line-height: 1.45;
	pointer-events: none;
}

/* Story — no box; label+text one line; CTA lower */
.postItems .postMain .info-content .story {
	display: flex;
	flex-direction: column;
	align-items: stretch;
	gap: .55rem;
	margin: 0 !important;
	margin-top: auto !important;
	padding: 0 !important;
	border: none !important;
	border-radius: 0 !important;
	background: transparent !important;
	box-shadow: none !important;
}

.postItems .postMain .info-content .fm-card-actors + .story {
	margin-top: .45rem !important;
}

.postItems .postMain .info-content .story .story-text {
	display: flex;
	flex-direction: row;
	flex-wrap: nowrap;
	align-items: baseline;
	gap: .4rem;
	min-width: 0;
}

.postItems .postMain .info-content .story .story-text strong,
.postItems .postMain .info-content .story strong {
	display: inline-flex;
	align-items: center;
	gap: .3rem;
	flex: 0 0 auto;
	margin: 0;
	white-space: nowrap;
	color: var(--fm-card-ink);
	font-size: 12.5px;
	font-weight: 800;
	line-height: 1.65;
}

.postItems .postMain .info-content .story .story-text strong::before,
.postItems .postMain .info-content .story strong::before {
	content: "";
	width: 3px;
	height: 11px;
	border-radius: 3px;
	background: var(--fm-card-accent);
	flex-shrink: 0;
}

.postItems .postMain .info-content .story .story-text strong::after,
.postItems .postMain .info-content .story strong::after {
	content: ":";
	margin-right: .05rem;
}

.postItems .postMain .info-content .story .story-text p,
.postItems .postMain .info-content .story p {
	flex: 1 1 auto;
	min-width: 0;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
	margin: 0 !important;
	padding: 0 !important;
	color: var(--fm-card-muted) !important;
	font-size: 13px !important;
	line-height: 1.65 !important;
}

.postItems .postMain .info-content .story a,
.postItems .postMain .info-content .story a.fm-story-more {
	display: inline-flex !important;
	align-items: center;
	align-self: flex-end; /* RTL: visual left */
	gap: .3rem;
	margin: .35rem 0 0 !important;
	padding: .42rem .95rem;
	border-radius: 999px;
	background: linear-gradient(165deg, #ff9348, #e85f18);
	color: #fff !important;
	font-size: 12.5px !important;
	font-weight: 700 !important;
	text-decoration: none !important;
	box-shadow: 0 6px 14px -6px rgba(255, 120, 48, .55);
	transition: transform .15s ease, filter .15s ease;
}

.postItems .postMain .info-content .story a:hover,
.postItems .postMain .info-content .story a.fm-story-more:hover {
	filter: brightness(1.05);
	transform: translateY(-1px);
	color: #fff !important;
}

.postItems .postMain .info-content .story a svg {
	width: 14px;
	height: 14px;
}

/* Best / top250 */
.postItems .postMain .info-content .best {
	display: inline-flex;
	align-items: center;
	gap: .4rem;
	padding: .4rem .75rem;
	border-radius: 10px;
	background: rgba(251, 191, 36, .12);
	color: #d97706;
	font-size: 12.5px;
	font-weight: 700;
}

/* Alternate main2 style */
.postItems .postMain.main2 {
	border-radius: 0;
	background: transparent;
}

/* Similar / related section cards on single */
.fm-sec--similar .section-item,
.fm-sec--similar .movie-item,
body.fm-single-redesign .related-posts .item {
	border-radius: 14px;
	overflow: hidden;
	border: 1px solid var(--fm-card-border);
	background: var(--fm-card-bg-2);
	transition: transform .2s ease, box-shadow .2s ease;
}

.fm-sec--similar .section-item:hover,
body.fm-single-redesign .related-posts .item:hover {
	transform: translateY(-3px);
	box-shadow: var(--fm-card-shadow-hover);
}

@media (max-width: 991px) {
	.postItems .postMain.d-flex {
		align-items: flex-start !important;
		gap: .85rem;
		padding: .9rem !important;
	}

	.postItems .postMain .image-content {
		flex: 0 0 180px !important;
		width: 180px !important;
		max-width: 180px !important;
		aspect-ratio: 2 / 3 !important;
		height: auto !important;
		min-height: 0 !important;
		max-height: none !important;
		align-self: flex-start !important;
	}
}

/* ========== Mobile card redesign ========== */
@media (max-width: 767px) {
	.postItems.bg-custom:has(> .postMain.d-flex),
	.home .postItems.bg-custom {
		border-radius: 14px !important;
	}

	.postItems .postMain.d-flex {
		display: flex !important;
		flex-direction: row !important;
		flex-wrap: nowrap !important;
		align-items: flex-start !important;
		gap: .75rem !important;
		padding: .75rem !important;
	}

	/* Clean poster — no text overlays, locked 2:3 */
	.postItems .postMain .image-content {
		flex: 0 0 128px !important;
		width: 128px !important;
		max-width: 128px !important;
		aspect-ratio: 2 / 3 !important;
		height: auto !important;
		min-height: 0 !important;
		max-height: none !important;
		margin: 0 !important;
		border-radius: 12px;
		align-self: flex-start !important;
		box-shadow: 0 6px 16px rgba(0, 0, 0, .12);
	}

	.postItems .postMain .image-content .poster-overlay-top [data-group="dub-sub"],
	.postItems .postMain .image-content .poster-overlay-top .g-dubbed,
	.postItems .postMain .image-content .poster-overlay-top .g-subbed,
	.postItems .postMain .image-content .poster-overlay-top span {
		display: none !important;
	}

	.postItems .postMain .image-content .poster-overlay-top {
		padding: 0 !important;
		top: 5px !important;
		left: 5px !important;
		right: 5px !important;
		align-items: flex-end !important;
	}

	.postItems .postMain .image-content .poster-overlay-top > div > button,
	.postItems .postMain .image-content .poster-overlay-top button.fm-overlay-item {
		width: 32px !important;
		height: 32px !important;
	}

	.postItems .postMain .image-content img,
	.postItems .postMain .image-content > a img {
		width: 100% !important;
		height: 100% !important;
		max-width: none !important;
		max-height: none !important;
		min-height: 0 !important;
		object-fit: cover !important;
		object-position: center top !important;
	}

	.postItems .postMain .info-content {
		flex: 1 1 auto !important;
		display: flex !important;
		flex-direction: column !important;
		gap: .4rem !important;
		width: auto !important;
		min-width: 0 !important;
		padding: 0 !important;
	}

	.postItems .postMain .info-content .title {
		display: flex !important;
		flex-direction: row !important;
		align-items: flex-start;
		justify-content: space-between;
		gap: .4rem;
		margin: 0 !important;
	}

	.postItems .postMain .info-content .title h2 {
		font-size: .92rem !important;
		line-height: 1.4 !important;
		margin: 0 !important;
		font-weight: 800 !important;
	}

	.postItems .postMain .info-content .title .rating {
		font-size: .75rem !important;
		padding: .2rem .4rem !important;
		flex-shrink: 0;
		border-radius: 8px;
	}

	.postItems .postMain .info-content .responsive-info {
		display: block !important;
		margin: 0 !important;
	}

	.postItems .postMain .info-content .responsive-info .row {
		display: flex !important;
		flex-wrap: wrap !important;
		gap: .3rem !important;
		margin: 0 !important;
	}

	.postItems .postMain .info-content .responsive-info .row > div {
		display: inline-flex !important;
		align-items: center;
		gap: .2rem;
		padding: .2rem .45rem !important;
		font-size: 11px !important;
		line-height: 1.3;
		border-radius: 8px;
		background: var(--fm-card-bg-2);
		color: var(--fm-card-muted) !important;
	}

	.postItems .postMain .info-content .responsive-info .row > div .svg-icon {
		width: 14px;
		height: 14px;
	}

	/* Drop clutter: duplicate chips, crew, update banner */
	.postItems .postMain .info-content .info,
	.postItems .postMain .info-content .crew,
	.postItems .postMain .info-content .best,
	.postItems .postMain .info-content .genre div[data-post="updated"] {
		display: none !important;
	}

	.postItems .postMain .info-content .genre {
		display: flex !important;
		flex-direction: row !important;
		flex-wrap: wrap !important;
		gap: .28rem !important;
		margin: 0 !important;
	}

	.postItems .postMain .info-content .genre a {
		padding: .22rem .5rem !important;
		font-size: 11px !important;
		border-radius: 8px !important;
	}

	.postItems .postMain .info-content .fm-card-actors {
		display: flex !important;
		margin-top: .15rem;
		padding-top: 0;
	}

	.postItems .postMain .info-content .fm-card-actors span {
		font-size: 11px;
	}

	.postItems .postMain .info-content .fm-card-actors .list {
		font-size: 11.5px;
	}

	.postItems .postMain .info-content .story {
		gap: .45rem !important;
		padding: 0 !important;
		margin: 0 !important;
		margin-top: .35rem !important;
		border: none !important;
		background: transparent !important;
	}

	.postItems .postMain .info-content .fm-card-actors + .story {
		margin-top: .35rem !important;
	}

	.postItems .postMain .info-content .story .story-text {
		display: flex !important;
		flex-direction: row !important;
		flex-wrap: nowrap !important;
		align-items: baseline !important;
		gap: .3rem !important;
		min-width: 0;
	}

	.postItems .postMain .info-content .story .story-text strong,
	.postItems .postMain .info-content .story strong {
		margin: 0 !important;
		font-size: 11px !important;
		line-height: 1.5 !important;
		flex-shrink: 0;
	}

	.postItems .postMain .info-content .story .story-text p,
	.postItems .postMain .info-content .story p {
		flex: 1 1 auto !important;
		min-width: 0 !important;
		-webkit-line-clamp: 2;
		font-size: 11.5px !important;
		line-height: 1.5 !important;
		margin: 0 !important;
	}

	.postItems .postMain .info-content .story a,
	.postItems .postMain .info-content .story a.fm-story-more {
		align-self: flex-end !important;
		margin: 0 !important;
		padding: .38rem .8rem !important;
		font-size: 11.5px !important;
	}
}

@media (max-width: 420px) {
	.postItems .postMain.d-flex {
		gap: .65rem !important;
		padding: .65rem !important;
	}

	.postItems .postMain .image-content {
		flex: 0 0 118px !important;
		width: 118px !important;
		max-width: 118px !important;
	}

	.postItems .postMain .info-content .title h2 {
		font-size: .86rem !important;
	}
}

/* ========== Sidebar: updated series + titles ========== */
.sidebar_left .updated-series-item,
#sidebar_fixed .updated-series-item {
	display: flex !important;
	align-items: flex-start;
	gap: 0;
	min-width: 0;
	max-width: 100%;
	overflow: hidden;
	box-sizing: border-box;
}

.sidebar_left .updated-series-item img,
#sidebar_fixed .updated-series-item img {
	flex: 0 0 56px !important;
	width: 56px !important;
	height: 56px !important;
	max-width: 56px !important;
	max-height: 56px !important;
	object-fit: cover !important;
	border-radius: 8px;
	margin-left: 10px;
}

.sidebar_left .updated-series-item .ups-body,
#sidebar_fixed .updated-series-item .ups-body {
	flex: 1 1 auto;
	min-width: 0;
	overflow: hidden;
}

.sidebar_left .updated-series-item .ups-body h3,
#sidebar_fixed .updated-series-item .ups-body h3 {
	max-width: none !important;
	width: 100%;
	margin-bottom: .4rem !important;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	font-size: 13px !important;
	line-height: 1.35;
}

.sidebar_left .updated-series-item .ups-data,
#sidebar_fixed .updated-series-item .ups-data {
	flex-wrap: wrap;
	gap: .25rem;
	font-size: 12px !important;
}

.sidebar_left .updated-series-item .ups-data .badge,
#sidebar_fixed .updated-series-item .ups-data .badge {
	max-width: 100%;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.sidebar_left .box.up_series,
#sidebar_fixed .box.up_series {
	overflow: hidden;
	border-radius: 14px;
}

.sidebar_left .box.up_series .sideTitle,
#sidebar_fixed .box.up_series .sideTitle {
	display: flex !important;
	align-items: center !important;
	justify-content: space-between !important;
	gap: .65rem !important;
	float: none !important;
	width: 100% !important;
	min-width: 0;
	overflow: hidden;
	padding: .95rem 1rem .8rem !important;
	margin: 0 !important;
}

.sidebar_left .box.up_series .sideTitle .aside-txt,
#sidebar_fixed .box.up_series .sideTitle .aside-txt {
	display: flex !important;
	align-items: center !important;
	gap: .55rem !important;
	flex: 1 1 auto;
	min-width: 0;
	margin: 0 !important;
}

.sidebar_left .box.up_series .sideTitle .aside-icon,
#sidebar_fixed .box.up_series .sideTitle .aside-icon {
	flex: 0 0 auto;
	margin: 0 !important;
}

.sidebar_left .box.up_series .sideTitle .aside-icon .svg-icon,
#sidebar_fixed .box.up_series .sideTitle .aside-icon .svg-icon {
	margin: 0 !important;
	margin-left: 0 !important;
	background: rgba(255, 120, 48, .14) !important;
	box-shadow: 0 0 0 6px rgba(255, 120, 48, .1) !important;
	color: #ff7830 !important;
}

.sidebar_left .box.up_series .sideTitle .widget-title,
#sidebar_fixed .box.up_series .sideTitle .widget-title {
	flex: 1 1 auto;
	min-width: 0;
}

.sidebar_left .box.up_series .sideTitle .widget-title-txt,
#sidebar_fixed .box.up_series .sideTitle .widget-title-txt {
	display: block;
	min-width: 0;
	margin: 0 !important;
	font-size: 14px !important;
	font-weight: 800 !important;
	line-height: 1.35 !important;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.sidebar_left .box.up_series .sideTitle .widget-sub-txt,
#sidebar_fixed .box.up_series .sideTitle .widget-sub-txt {
	display: block;
	margin-top: .2rem !important;
	font-size: 11.5px !important;
	line-height: 1.35 !important;
	color: #6b7280 !important;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.sidebar_left .box.up_series .sideTitle .btn-highlight,
#sidebar_fixed .box.up_series .sideTitle .btn-highlight {
	display: inline-flex !important;
	align-items: center;
	justify-content: center;
	flex: 0 0 auto;
	flex-direction: row-reverse;
	gap: .25rem;
	max-width: 46%;
	padding: .38rem .75rem !important;
	border-radius: 999px !important;
	border: 1px solid rgba(255, 120, 48, .28) !important;
	background: rgba(255, 120, 48, .1) !important;
	color: #e85f18 !important;
	font-size: 11.5px !important;
	font-weight: 700 !important;
	line-height: 1.2 !important;
	white-space: nowrap;
	text-decoration: none !important;
	z-index: 1;
}

.sidebar_left .box.up_series .sideTitle .btn-highlight .svg-icon,
#sidebar_fixed .box.up_series .sideTitle .btn-highlight .svg-icon {
	margin: 0 !important;
	width: 22px !important;
	height: 22px !important;
	padding: 3px !important;
	border-radius: 50% !important;
	background: rgba(255, 120, 48, .16) !important;
	color: #e85f18 !important;
	line-height: 1 !important;
}

.sidebar_left .box.up_series .sideTitle .btn-highlight .svg-icon svg,
#sidebar_fixed .box.up_series .sideTitle .btn-highlight .svg-icon svg {
	fill: currentColor !important;
	width: 12px;
	height: 12px;
}

.sidebar_left .box.up_series .sideTitle .btn-highlight:hover,
#sidebar_fixed .box.up_series .sideTitle .btn-highlight:hover {
	color: #fff !important;
	background: linear-gradient(165deg, #ff9348, #e85f18) !important;
	border-color: transparent !important;
}

.sidebar_left .box.up_series .sideTitle .btn-highlight:hover .svg-icon,
#sidebar_fixed .box.up_series .sideTitle .btn-highlight:hover .svg-icon {
	background: rgba(255, 255, 255, .2) !important;
	color: #fff !important;
}

html[dark="true"] .sidebar_left .box.up_series .sideTitle .btn-highlight,
[dark="true"] .sidebar_left .box.up_series .sideTitle .btn-highlight,
html[dark="true"] #sidebar_fixed .box.up_series .sideTitle .btn-highlight,
[dark="true"] #sidebar_fixed .box.up_series .sideTitle .btn-highlight {
	background: linear-gradient(165deg, #ff9348, #e85f18) !important;
	border-color: transparent !important;
	color: #fff !important;
	box-shadow: 0 4px 14px -4px rgba(255, 120, 48, .55);
}

html[dark="true"] .sidebar_left .box.up_series .sideTitle .btn-highlight .svg-icon,
[dark="true"] .sidebar_left .box.up_series .sideTitle .btn-highlight .svg-icon,
html[dark="true"] #sidebar_fixed .box.up_series .sideTitle .btn-highlight .svg-icon,
[dark="true"] #sidebar_fixed .box.up_series .sideTitle .btn-highlight .svg-icon {
	background: rgba(255, 255, 255, .18) !important;
	color: #fff !important;
}

html[dark="true"] .sidebar_left .box.up_series .sideTitle .btn-highlight .svg-icon svg,
[dark="true"] .sidebar_left .box.up_series .sideTitle .btn-highlight .svg-icon svg {
	fill: #fff !important;
}

.sidebar_left .box.up_series .fm-items-holder,
#sidebar_fixed .box.up_series .fm-items-holder {
	padding-top: 0 !important;
	padding-left: .85rem !important;
	padding-right: .85rem !important;
	padding-bottom: .9rem !important;
}

/* General sidebar titles (genres etc.) */
.sidebar_left .sideTitle,
#sidebar_fixed .sideTitle {
	min-width: 0;
	overflow: hidden;
}

.sidebar_left .sideTitle .aside-txt .widget-title-txt,
#sidebar_fixed .sideTitle .aside-txt .widget-title-txt {
	min-width: 0;
}

@media (prefers-reduced-motion: reduce) {
	.postItems.bg-custom,
	.postItems .postMain .image-content img,
	.postItems .postMain .info-content .story a {
		transition: none !important;
	}

	.postItems.bg-custom:hover {
		transform: none;
	}
}
