/* Movie Home Blocks 1.0.0 */
.mhb-slider,
.mhb-section,
.mhb-genres,
.mhb-ad {
	--mhb-bg: #0b0d12;
	--mhb-card: #151a26;
	--mhb-text: #e8ebf3;
	--mhb-muted: #8b93a7;
	--mhb-accent: #ff2d55;
	box-sizing: border-box;
}
.mhb-slider *, .mhb-section *, .mhb-genres * { box-sizing: border-box; }

/* ---------------- Hero slider ---------------- */
.mhb-slider {
	position: relative;
	width: 100%;
	height: clamp(360px, 50vw, 600px);
	overflow: hidden;
	background: #000;
	color: #fff;
}
.mhb-track { position: absolute; top: 0; right: 0; bottom: 0; left: 0; }
.mhb-slide {
	position: absolute;
	top: 0; right: 0; bottom: 0; left: 0;
	opacity: 0;
	visibility: hidden;
	transition: opacity .9s ease, visibility .9s;
}
.mhb-slide.is-active { opacity: 1; visibility: visible; z-index: 1; }
.mhb-slide-img {
	position: absolute;
	top: 0; right: 0; bottom: 0; left: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center 22%;
	display: block;
	transform: scale(1.04);
}
.mhb-slide.is-active .mhb-slide-img { animation: mhbzoom 9s ease-out forwards; }
@keyframes mhbzoom { from { transform: scale(1.04); } to { transform: scale(1.12); } }
.mhb-shade {
	position: absolute;
	top: 0; right: 0; bottom: 0; left: 0;
	background:
		linear-gradient(90deg, rgba(11,13,18,.96) 0%, rgba(11,13,18,.72) 34%, rgba(11,13,18,.12) 70%, rgba(11,13,18,0) 100%),
		linear-gradient(0deg, #0b0d12 0%, rgba(11,13,18,0) 30%);
}
.mhb-body {
	position: absolute;
	z-index: 2;
	left: max(20px, calc((100% - 1300px) / 2 + 20px));
	right: 20px;
	bottom: 14%;
	max-width: 580px;
}
.mhb-chip {
	display: inline-block;
	background: var(--mhb-accent);
	color: #fff;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: .08em;
	text-transform: uppercase;
	padding: 4px 10px;
	border-radius: 4px;
}
.mhb-slider .mhb-slide-title {
	margin: 12px 0 10px;
	font-size: clamp(26px, 4.4vw, 54px);
	line-height: 1.08;
	font-weight: 800;
	color: #fff;
	text-shadow: 0 2px 14px rgba(0,0,0,.55);
}
.mhb-slider .mhb-slide-title a { color: #fff; text-decoration: none; }
.mhb-meta { display: flex; gap: 14px; align-items: center; margin-bottom: 12px; color: #cfd4e3; font-size: 14px; }
.mhb-meta .mhb-star { color: #ffc83d; font-weight: 700; }
.mhb-excerpt { margin: 0 0 18px; color: #cfd4e3; font-size: 16px; line-height: 1.55; }
.mhb-slider .mhb-btn {
	display: inline-block;
	background: var(--mhb-accent);
	color: #fff;
	padding: 12px 28px;
	border-radius: 999px;
	font-weight: 700;
	font-size: 15px;
	text-decoration: none;
	transition: transform .2s, box-shadow .2s;
}
.mhb-slider .mhb-btn:hover { color: #fff; transform: translateY(-2px); box-shadow: 0 8px 22px rgba(255,45,85,.45); }

.mhb-slider .mhb-nav {
	position: absolute;
	top: 50%;
	z-index: 3;
	width: 46px;
	height: 46px;
	margin-top: -23px;
	padding: 0;
	border: 0 !important;
	border-radius: 50% !important;
	background: rgba(0,0,0,.45) !important;
	color: #fff !important;
	font-size: 30px;
	line-height: 44px;
	text-align: center;
	cursor: pointer;
	opacity: 0;
	transition: opacity .25s, background .25s;
}
.mhb-slider:hover .mhb-nav, .mhb-slider .mhb-nav:focus { opacity: 1; }
.mhb-slider .mhb-nav:hover { background: var(--mhb-accent) !important; color: #fff !important; }
.mhb-slider .mhb-prev { left: 16px; }
.mhb-slider .mhb-next { right: 16px; }

.mhb-dots {
	position: absolute;
	z-index: 3;
	right: max(20px, calc((100% - 1300px) / 2 + 20px));
	bottom: 26px;
	display: flex;
	gap: 8px;
}
.mhb-slider .mhb-dots button {
	width: 10px;
	height: 10px;
	padding: 0;
	border: 0 !important;
	border-radius: 99px !important;
	background: rgba(255,255,255,.4) !important;
	cursor: pointer;
	transition: width .3s, background .3s;
}
.mhb-slider .mhb-dots button { position: relative; }
.mhb-slider .mhb-dots button::before { content: ""; position: absolute; top: -14px; bottom: -14px; left: -5px; right: -5px; }
.mhb-slider .mhb-dots button.is-active { width: 30px; background: var(--mhb-accent) !important; }

/* ---------------- Genre pills ---------------- */
.mhb-genres { background: var(--mhb-bg); padding: 14px 0 4px; }
.mhb-genres-in {
	max-width: 1300px;
	margin: 0 auto;
	padding: 0 20px;
	display: flex;
	align-items: center;
	gap: 10px;
	overflow-x: auto;
	scrollbar-width: none;
}
.mhb-genres-in::-webkit-scrollbar { display: none; }
.mhb-genres-label { color: var(--mhb-muted); font-size: 13px; text-transform: uppercase; letter-spacing: .1em; margin-right: 4px; white-space: nowrap; }
.mhb-genres .mhb-pill {
	flex: 0 0 auto;
	padding: 10px 18px;
	border-radius: 999px;
	background: var(--mhb-card);
	border: 1px solid #232a3d;
	color: var(--mhb-text);
	font-size: 14px;
	text-decoration: none;
	white-space: nowrap;
	transition: background .2s, border-color .2s, color .2s;
}
.mhb-genres .mhb-pill:hover { background: var(--mhb-accent); border-color: var(--mhb-accent); color: #fff; }

/* ---------------- Poster grid ---------------- */
.mhb-section {
	max-width: 1300px;
	margin: 0 auto;
	padding: 32px 20px 18px;
	color: var(--mhb-text);
}
.mhb-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin-bottom: 20px;
	padding-left: 12px;
	border-left: 4px solid var(--mhb-accent);
}
.mhb-section .mhb-title { margin: 0; font-size: clamp(20px, 2.4vw, 28px); line-height: 1.2; font-weight: 700; color: #fff; }
.mhb-section .mhb-more { color: var(--mhb-muted); font-size: 14px; text-decoration: none; white-space: nowrap; transition: color .2s; }
.mhb-section .mhb-more:hover { color: var(--mhb-accent); }

.mhb-grid {
	display: grid;
	grid-template-columns: repeat(var(--mhb-cols, 5), minmax(0, 1fr));
	gap: 26px 18px;
}
.mhb-card { min-width: 0; }
.mhb-poster {
	position: relative;
	display: block;
	border-radius: 10px;
	overflow: hidden;
	background: var(--mhb-card);
	box-shadow: 0 4px 14px rgba(0,0,0,.35);
	transition: transform .25s ease, box-shadow .25s ease;
}
.mhb-poster::before { content: ""; display: block; padding-top: 150%; }
.mhb-poster .mhb-img,
.mhb-poster img {
	position: absolute;
	top: 0; left: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	margin: 0;
	transition: transform .45s ease;
}
.mhb-poster::after {
	content: "";
	position: absolute;
	top: 0; right: 0; bottom: 0; left: 0;
	background: linear-gradient(0deg, rgba(11,13,18,.75) 0%, rgba(11,13,18,0) 45%);
	opacity: 0;
	transition: opacity .25s;
}
.mhb-card:hover .mhb-poster { transform: translateY(-5px); box-shadow: 0 14px 30px rgba(255,45,85,.28); }
.mhb-card:hover .mhb-poster img { transform: scale(1.06); }
.mhb-card:hover .mhb-poster::after { opacity: 1; }
.mhb-noposter { position: absolute; top: 0; right: 0; bottom: 0; left: 0; display: flex; align-items: center; justify-content: center; color: #4a5270; font-size: 15px; }
.mhb-badge {
	position: absolute;
	z-index: 2;
	top: 8px;
	left: 8px;
	background: rgba(0,0,0,.78);
	color: #ffc83d;
	font-size: 12px;
	font-weight: 700;
	padding: 3px 8px;
	border-radius: 6px;
}
.mhb-section .mhb-card-title {
	margin: 10px 0 3px;
	font-size: 15px;
	line-height: 1.35;
	font-weight: 600;
	color: #fff;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}
.mhb-section .mhb-card-title a { color: #fff; text-decoration: none; transition: color .2s; }
.mhb-section .mhb-card-title a:hover { color: var(--mhb-accent); }
.mhb-card-meta { font-size: 12.5px; color: var(--mhb-muted); }

/* pagination */
.mhb-pager { margin-top: 30px; text-align: center; }
.mhb-pager .page-numbers {
	display: inline-block;
	min-width: 44px;
	margin: 0 3px 8px;
	padding: 12px 14px;
	border-radius: 8px;
	background: var(--mhb-card);
	color: var(--mhb-text);
	font-size: 14px;
	text-decoration: none;
	transition: background .2s;
}
.mhb-pager a.page-numbers:hover { background: #232a3d; }
.mhb-pager .page-numbers.current { background: var(--mhb-accent); color: #fff; }
.mhb-pager .page-numbers.dots { background: transparent; }

/* editor-only helper */
.mhb-empty { margin: 16px auto; max-width: 1260px; padding: 14px 18px; border: 1px dashed #ff2d55; border-radius: 8px; color: #ff8aa0; background: rgba(255,45,85,.06); font-size: 14px; }

/* ---------------- Ad slots ---------------- */
.mhb-ad {
	max-width: 1300px;
	margin: 10px auto;
	padding: 0 20px;
	text-align: center;
	overflow: hidden;
}
.mhb-ad:empty { display: none; }
.mhb-ad:not(:empty)::before {
	content: "ADVERTISEMENT";
	display: block;
	margin-bottom: 4px;
	font-size: 10px;
	letter-spacing: .2em;
	color: #5b6480;
}
.elementor-editor-active .mhb-ad:empty {
	display: block;
	padding: 28px 20px;
	border: 2px dashed #3a4262;
	border-radius: 8px;
	color: #6b7597;
	font-size: 13px;
}
.elementor-editor-active .mhb-ad:empty::before { content: "AD SLOT — paste your AdSense code inside this HTML widget"; }

/* ---------------- Responsive ---------------- */
@media (max-width: 1100px) {
	.mhb-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 820px) {
	.mhb-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px 14px; }
	.mhb-excerpt { display: none; }
	.mhb-body { bottom: 16%; }
	.mhb-slider .mhb-nav { display: none; }
}
@media (max-width: 560px) {
	.mhb-slider { height: 420px; }
	.mhb-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 12px; }
	.mhb-section { padding: 24px 14px 12px; }
	.mhb-section .mhb-card-title { font-size: 14px; }
	.mhb-dots { right: 16px; bottom: 18px; gap: 12px; }
}
@media (prefers-reduced-motion: reduce) {
	.mhb-slide, .mhb-poster, .mhb-poster img { transition: none; }
	.mhb-slide.is-active .mhb-slide-img { animation: none; }
}
