/* Movie Home Blocks – single post layout (1.1.0) */
body.mhb-single { background: #0b0d12; overflow-x: clip; }

.mhb-single-wrap,
.mhb-progress {
	--mhb-bg: #0b0d12;
	--mhb-panel: #10141f;
	--mhb-card: #151a26;
	--mhb-line: #1e2435;
	--mhb-text: #d5d9e6;
	--mhb-muted: #8b93a7;
	--mhb-accent: #ff2d55;
}

/* Break out of narrow theme containers so the layout is always full-width */
.mhb-single-wrap {
	box-sizing: border-box;
	width: 100vw;
	max-width: 100vw;
	flex: 0 0 100vw;
	margin-left: calc(50% - 50vw);
	background: var(--mhb-bg);
	color: var(--mhb-text);
}
.mhb-single-wrap *, .mhb-single-wrap *::before, .mhb-single-wrap *::after { box-sizing: border-box; }
.mhb-single-wrap a { transition: color .2s, background .2s, border-color .2s; }

/* reading progress */
.mhb-progress { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 99999; pointer-events: none; }
.mhb-progress span { display: block; height: 100%; width: 0; background: var(--mhb-accent); box-shadow: 0 0 10px rgba(255,45,85,.6); }

/* ---------------- Hero ---------------- */
.mhb-hero { position: relative; overflow: hidden; isolation: isolate; background: var(--mhb-bg); }
.mhb-hero-bg {
	position: absolute;
	top: -40px; right: -40px; bottom: -40px; left: -40px;
	z-index: -2;
	background-size: cover;
	background-position: center;
	filter: blur(26px) saturate(1.15);
	opacity: .55;
	transform: scale(1.05);
}
.mhb-hero::after {
	content: "";
	position: absolute;
	top: 0; right: 0; bottom: 0; left: 0;
	z-index: -1;
	background: linear-gradient(180deg, rgba(11,13,18,.5) 0%, rgba(11,13,18,.82) 68%, var(--mhb-bg) 100%);
}
.mhb-hero-in {
	max-width: 1240px;
	margin: 0 auto;
	padding: 34px 20px 54px;
	display: grid;
	grid-template-columns: 260px minmax(0, 1fr);
	gap: 44px;
	align-items: center;
}
.mhb-hero.no-poster .mhb-hero-in { grid-template-columns: minmax(0, 1fr); padding-top: 44px; }
.mhb-hero-poster {
	position: relative;
	margin: 0;
	border-radius: 14px;
	overflow: hidden;
	background: var(--mhb-card);
	box-shadow: 0 22px 50px rgba(0,0,0,.65), 0 0 0 1px rgba(255,255,255,.06);
}
.mhb-hero-poster::before { content: ""; display: block; padding-top: 150%; }
.mhb-hero-poster img { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; display: block; margin: 0; }

.mhb-crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 13px; color: var(--mhb-muted); margin-bottom: 16px; }
.mhb-crumbs a { color: var(--mhb-muted); text-decoration: none; padding: 6px 0; }
.mhb-crumbs a:hover { color: #fff; }
.mhb-crumb-now { color: #c4c9d8; max-width: 38ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.mhb-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.mhb-single-wrap .mhb-chip {
	display: inline-block;
	background: var(--mhb-accent);
	color: #fff;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: .08em;
	text-transform: uppercase;
	padding: 8px 13px;
	border-radius: 6px;
	text-decoration: none;
}
.mhb-single-wrap .mhb-chip:hover { background: #fff; color: #0b0d12; }

.mhb-single-wrap .mhb-h1 {
	margin: 0 0 14px;
	font-size: clamp(28px, 4.2vw, 48px);
	line-height: 1.12;
	font-weight: 800;
	color: #fff;
	letter-spacing: -.01em;
}
.mhb-rate { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; margin-bottom: 18px; color: #e3e6f0; font-size: 15px; }
.mhb-rate > span + span::before { content: "•"; margin-right: 18px; color: #4a5270; }
.mhb-rate-star { color: #ffc83d; font-weight: 800; font-size: 20px; }
.mhb-rate-star small { color: var(--mhb-muted); font-size: 13px; font-weight: 500; margin-left: 2px; }

.mhb-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 30px; margin: 0 0 20px; max-width: 760px; }
.mhb-facts div { min-width: 0; }
.mhb-facts dt { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--mhb-muted); margin: 0 0 2px; }
.mhb-facts dd { margin: 0; color: #fff; font-size: 15px; line-height: 1.45; }

.mhb-byline { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; font-size: 14px; color: #aeb5c8; }
.mhb-byline a { color: #fff; text-decoration: none; font-weight: 600; }
.mhb-byline a:hover { color: var(--mhb-accent); }
.mhb-byline .mhb-avatar { width: 36px; height: 36px; border-radius: 50%; display: block; }
.mhb-dot { color: #4a5270; }

.mhb-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.mhb-single-wrap .mhb-btn {
	display: inline-block;
	padding: 12px 26px;
	border-radius: 999px;
	background: var(--mhb-accent);
	color: #fff;
	font-weight: 700;
	font-size: 15px;
	text-decoration: none;
	border: 2px solid var(--mhb-accent);
}
.mhb-single-wrap .mhb-btn:hover { box-shadow: 0 8px 22px rgba(255,45,85,.45); color: #fff; transform: translateY(-2px); }
.mhb-single-wrap .mhb-btn-ghost { background: transparent; border-color: rgba(255,255,255,.35); }
.mhb-single-wrap .mhb-btn-ghost:hover { border-color: #fff; box-shadow: none; }

/* ---------------- Layout ---------------- */
.mhb-layout {
	max-width: 1240px;
	margin: 0 auto;
	padding: 30px 20px 20px;
	display: grid;
	grid-template-columns: minmax(0, 1fr) 320px;
	gap: 46px;
	align-items: start;
}
.mhb-layout-solo { grid-template-columns: minmax(0, 780px); justify-content: center; }
.mhb-main { min-width: 0; }

/* Trailer facade */
.mhb-trailer { margin-bottom: 30px; scroll-margin-top: 90px; }
.mhb-single-wrap .mhb-block-title, .mhb-single-wrap .mhb-box-title {
	margin: 0 0 14px;
	padding-left: 12px;
	border-left: 4px solid var(--mhb-accent);
	font-size: 20px;
	line-height: 1.2;
	font-weight: 700;
	color: #fff;
}
.mhb-yt-wrap { position: relative; padding-top: 56.25%; border-radius: 14px; overflow: hidden; background: #000; box-shadow: 0 14px 34px rgba(0,0,0,.5); }
.mhb-yt {
	position: absolute;
	top: 0; left: 0;
	display: block;
	width: 100%;
	height: 100%;
	padding: 0;
	border: 0 !important;
	border-radius: 0 !important;
	overflow: hidden;
	cursor: pointer;
	background: #000 center / cover no-repeat;
}
.mhb-yt::after { content: ""; position: absolute; top: 0; right: 0; bottom: 0; left: 0; background: linear-gradient(0deg, rgba(0,0,0,.45), rgba(0,0,0,.1)); transition: opacity .25s; }
.mhb-yt:hover::after { opacity: .6; }
.mhb-yt .mhb-play {
	position: absolute;
	z-index: 2;
	left: 50%;
	top: 50%;
	width: 76px;
	height: 76px;
	margin: -38px 0 0 -38px;
	border-radius: 50%;
	background: var(--mhb-accent);
	box-shadow: 0 0 0 10px rgba(255,45,85,.25);
	transition: transform .2s;
}
.mhb-yt:hover .mhb-play { transform: scale(1.08); }
.mhb-yt .mhb-play::before {
	content: "";
	position: absolute;
	left: 50%;
	top: 50%;
	margin: -13px 0 0 -8px;
	border-style: solid;
	border-width: 13px 0 13px 22px;
	border-color: transparent transparent transparent #fff;
}
.mhb-yt-frame { position: absolute; top: 0; left: 0; width: 100%; height: 100%; border: 0; display: block; }

/* TOC */
.mhb-toc { margin: 0 0 28px; background: var(--mhb-panel); border: 1px solid var(--mhb-line); border-radius: 12px; }
.mhb-toc summary { cursor: pointer; padding: 14px 18px; font-weight: 700; color: #fff; font-size: 16px; list-style: none; display: flex; justify-content: space-between; align-items: center; }
.mhb-toc summary::-webkit-details-marker { display: none; }
.mhb-toc summary::after { content: "−"; color: var(--mhb-muted); font-size: 20px; }
.mhb-toc details:not([open]) summary::after { content: "+"; }
.mhb-toc ol { margin: 0; padding: 0 18px 16px; list-style: none; counter-reset: toc; }
.mhb-toc li { margin: 0; padding: 5px 0; counter-increment: none; }
.mhb-toc li.lvl-2 { counter-increment: toc; }
.mhb-toc li.lvl-2 a::before { content: counter(toc) ". "; color: var(--mhb-accent); font-weight: 700; }
.mhb-toc li.lvl-3 { padding-left: 24px; font-size: .94em; }
.mhb-toc a { color: #c4c9d8; text-decoration: none; }
.mhb-toc a:hover { color: #fff; }

/* ---------------- Theme overrides ----------------
   Many themes (Astra, GeneratePress, Kadence...) paint single posts white and add
   their own padding / text colours. Force our dark reading surface. */
body.mhb-single .mhb-single-wrap .mhb-main,
body.mhb-single .mhb-single-wrap .mhb-article,
body.mhb-single .mhb-single-wrap .mhb-content,
body.mhb-single .mhb-single-wrap .mhb-comments {
	background: transparent !important;
	background-image: none !important;
	border: 0 !important;
	box-shadow: none !important;
	margin-left: 0 !important;
	margin-right: 0 !important;
	padding-left: 0 !important;
	padding-right: 0 !important;
	max-width: none !important;
	width: auto !important;
}
body.mhb-single .mhb-single-wrap .mhb-article { padding-top: 0 !important; padding-bottom: 0 !important; margin-top: 0 !important; }
body.mhb-single .mhb-single-wrap .mhb-content,
body.mhb-single .mhb-single-wrap .mhb-content p,
body.mhb-single .mhb-single-wrap .mhb-content li,
body.mhb-single .mhb-single-wrap .mhb-content td,
body.mhb-single .mhb-single-wrap .mhb-content span,
body.mhb-single .mhb-single-wrap .mhb-content div { color: #d5d9e6 !important; }
body.mhb-single .mhb-single-wrap .mhb-content h1,
body.mhb-single .mhb-single-wrap .mhb-content h2,
body.mhb-single .mhb-single-wrap .mhb-content h3,
body.mhb-single .mhb-single-wrap .mhb-content h4,
body.mhb-single .mhb-single-wrap .mhb-content h5,
body.mhb-single .mhb-single-wrap .mhb-content h6,
body.mhb-single .mhb-single-wrap .mhb-content strong,
body.mhb-single .mhb-single-wrap .mhb-content b,
body.mhb-single .mhb-single-wrap .mhb-content th { color: #fff !important; }
body.mhb-single .mhb-single-wrap .mhb-content a { color: #ff6b8a !important; }
body.mhb-single .mhb-single-wrap .mhb-content a:hover { color: #fff !important; }
.mhb-content h1 { font-size: 34px; line-height: 1.2; font-weight: 800; margin: 0 0 .6em; }
.mhb-content h5, .mhb-content h6 { font-size: 17px; margin: 1.2em 0 .4em; font-weight: 700; }

/* ---------------- Article typography ---------------- */
.mhb-content { font-size: 18px; line-height: 1.85; color: var(--mhb-text); overflow-wrap: break-word; }
.mhb-content > *:first-child { margin-top: 0; }
.mhb-content p { margin: 0 0 1.35em; }
.mhb-content h2, .mhb-content h3, .mhb-content h4 { color: #fff; font-weight: 800; line-height: 1.25; scroll-margin-top: 90px; }
.mhb-content h2 { font-size: 30px; margin: 1.9em 0 .6em; padding-left: 14px; border-left: 4px solid var(--mhb-accent); }
.mhb-content h3 { font-size: 23px; margin: 1.6em 0 .5em; }
.mhb-content h4 { font-size: 19px; margin: 1.4em 0 .4em; }
.mhb-content a { color: #ff6b8a; text-decoration: underline; text-underline-offset: 3px; }
.mhb-content a:hover { color: #fff; }
.mhb-content strong { color: #fff; }
.mhb-content ul, .mhb-content ol { margin: 0 0 1.4em; padding-left: 1.4em; }
.mhb-content li { margin-bottom: .45em; }
.mhb-content li::marker { color: var(--mhb-accent); }
.mhb-content img { max-width: 100%; height: auto; border-radius: 10px; }
.mhb-content figure { margin: 1.8em 0; }
.mhb-content figcaption { margin-top: 8px; text-align: center; font-size: 14px; color: var(--mhb-muted); }
.mhb-content blockquote {
	margin: 1.8em 0;
	padding: 20px 24px;
	background: var(--mhb-panel);
	border-left: 4px solid var(--mhb-accent);
	border-radius: 0 12px 12px 0;
	font-size: 1.06em;
	font-style: italic;
	color: #e8ebf3;
}
.mhb-content blockquote p:last-child { margin-bottom: 0; }
.mhb-content hr { border: 0; height: 1px; background: var(--mhb-line); margin: 2.2em 0; }
.mhb-content table { display: block; width: 100%; overflow-x: auto; border-collapse: collapse; margin: 0 0 1.6em; font-size: 16px; }
.mhb-content th, .mhb-content td { padding: 10px 14px; border: 1px solid var(--mhb-line); text-align: left; }
.mhb-content th { background: var(--mhb-panel); color: #fff; }
.mhb-content pre, .mhb-content code { background: var(--mhb-panel); border-radius: 6px; font-size: .9em; }
.mhb-content code { padding: 2px 6px; }
.mhb-content pre { padding: 16px; overflow-x: auto; }
.mhb-content iframe, .mhb-content video { max-width: 100%; }
.mhb-content .wp-block-embed__wrapper iframe { width: 100%; min-height: 200px; }
.mhb-pages { margin: 20px 0; color: var(--mhb-muted); }

/* ads inside the single layout */
.mhb-single-wrap .mhb-ad-slot { max-width: 100%; margin: 28px auto; padding: 0; text-align: center; overflow: hidden; }
.mhb-single-wrap > .mhb-ad-slot { max-width: 1240px; padding: 0 20px; margin: 18px auto 0; }

/* tags */
.mhb-tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 26px 0 0; }
.mhb-tags a { padding: 9px 14px; border-radius: 999px; background: var(--mhb-card); color: #c4c9d8; font-size: 13.5px; text-decoration: none; border: 1px solid var(--mhb-line); }
.mhb-tags a:hover { background: var(--mhb-accent); border-color: var(--mhb-accent); color: #fff; }

/* share */
.mhb-share { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 28px 0; padding: 18px 20px; background: var(--mhb-panel); border: 1px solid var(--mhb-line); border-radius: 12px; }
.mhb-share-label { font-weight: 700; color: #fff; margin-right: 6px; }
.mhb-single-wrap .mhb-sh {
	display: inline-block;
	padding: 12px 20px;
	border: 0 !important;
	border-radius: 999px !important;
	font-size: 14px;
	font-weight: 600;
	line-height: 1.2;
	color: #fff !important;
	text-decoration: none;
	cursor: pointer;
	transition: transform .2s, filter .2s;
}
.mhb-single-wrap .mhb-sh:hover { transform: translateY(-2px); filter: brightness(1.12); color: #fff !important; }
.mhb-sh-wa { background: #1fa855 !important; }
.mhb-sh-fb { background: #1877f2 !important; }
.mhb-sh-x { background: #000 !important; box-shadow: inset 0 0 0 1px #3a4262; }
.mhb-sh-tg { background: #229ed9 !important; }
.mhb-sh-copy { background: #2a3150 !important; }

/* author */
.mhb-author { display: flex; gap: 18px; align-items: flex-start; margin: 0 0 28px; padding: 22px; background: var(--mhb-panel); border: 1px solid var(--mhb-line); border-radius: 12px; }
.mhb-author .mhb-avatar-lg { width: 84px; height: 84px; border-radius: 50%; flex: 0 0 84px; display: block; }
.mhb-author-label { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--mhb-muted); }
.mhb-single-wrap .mhb-author-name { margin: 2px 0 6px; font-size: 20px; color: #fff; }
.mhb-author-name a { color: #fff; text-decoration: none; }
.mhb-author-name a:hover { color: var(--mhb-accent); }
.mhb-author p { margin: 0; color: #aeb5c8; font-size: 15px; line-height: 1.65; }

/* prev / next */
.mhb-pn { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 34px; }
.mhb-pn a { display: block; padding: 16px 18px; background: var(--mhb-panel); border: 1px solid var(--mhb-line); border-radius: 12px; text-decoration: none; color: #fff; }
.mhb-pn a:hover { border-color: var(--mhb-accent); }
.mhb-pn small { display: block; margin-bottom: 4px; color: var(--mhb-accent); font-weight: 700; font-size: 12.5px; letter-spacing: .06em; text-transform: uppercase; }
.mhb-pn span { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-weight: 600; line-height: 1.35; }
.mhb-pn-next { text-align: right; grid-column: 2; }

/* comments */
.mhb-comments { color: var(--mhb-text); }
.mhb-comments h2, .mhb-comments h3 { color: #fff; }
.mhb-comments ol, .mhb-comments ul { list-style: none; padding-left: 0; }
.mhb-comments .children { padding-left: 24px; }
.mhb-comments .comment-body { padding: 16px 0; border-bottom: 1px solid var(--mhb-line); }
.mhb-comments a { color: #ff6b8a; }
.mhb-comments input[type="text"], .mhb-comments input[type="email"], .mhb-comments input[type="url"], .mhb-comments textarea {
	width: 100%;
	padding: 12px 14px;
	background: var(--mhb-panel);
	border: 1px solid #262e45;
	border-radius: 8px;
	color: #fff;
}
.mhb-comments input[type="submit"] { padding: 12px 26px; border: 0; border-radius: 999px; background: var(--mhb-accent); color: #fff; font-weight: 700; cursor: pointer; }

/* ---------------- Sidebar ---------------- */
.mhb-side { min-width: 0; }
.mhb-box { margin-bottom: 26px; padding: 20px; background: var(--mhb-panel); border: 1px solid var(--mhb-line); border-radius: 14px; }
.mhb-minis { display: grid; gap: 14px; }
.mhb-mini { display: flex; gap: 14px; align-items: center; text-decoration: none; color: #fff; }
.mhb-mini-th { position: relative; flex: 0 0 62px; width: 62px; border-radius: 8px; overflow: hidden; background: var(--mhb-card); display: block; }
.mhb-mini-th::before { content: ""; display: block; padding-top: 150%; }
.mhb-mini-th img { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; display: block; margin: 0; }
.mhb-mini-tx { min-width: 0; }
.mhb-mini-tx b { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: 15px; line-height: 1.35; font-weight: 600; transition: color .2s; }
.mhb-mini:hover b { color: var(--mhb-accent); }
.mhb-mini-tx small { display: block; margin-top: 4px; font-size: 12.5px; color: var(--mhb-muted); }
.mhb-pills { display: flex; flex-wrap: wrap; gap: 8px; }
.mhb-pills .mhb-pill { padding: 10px 15px; border-radius: 999px; background: var(--mhb-card); border: 1px solid #232a3d; color: var(--mhb-text); font-size: 13.5px; text-decoration: none; }
.mhb-pills .mhb-pill:hover { background: var(--mhb-accent); border-color: var(--mhb-accent); color: #fff; }

/* related */
.mhb-related { padding-bottom: 50px; }

/* ---------------- Responsive ---------------- */
@media (max-width: 1020px) {
	.mhb-layout { grid-template-columns: minmax(0, 1fr); gap: 20px; }
	.mhb-layout-solo { grid-template-columns: minmax(0, 1fr); }
	.mhb-side { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
	.mhb-side .mhb-box { margin-bottom: 0; }
	.mhb-side .mhb-ad-slot { grid-column: 1 / -1; }
}
@media (max-width: 760px) {
	.mhb-hero-in { grid-template-columns: minmax(0, 1fr); gap: 24px; padding: 24px 18px 40px; }
	.mhb-hero-poster { width: 150px; }
	.mhb-facts { grid-template-columns: minmax(0, 1fr); }
	.mhb-content { font-size: 17px; line-height: 1.8; }
	.mhb-content h2 { font-size: 25px; }
	.mhb-content h3 { font-size: 20px; }
	.mhb-side { grid-template-columns: minmax(0, 1fr); }
	.mhb-pn { grid-template-columns: 1fr; }
	.mhb-pn-next { grid-column: 1; text-align: left; }
	.mhb-author { flex-direction: column; }
	.mhb-layout { padding: 22px 16px 10px; }
	.mhb-crumb-now { max-width: 22ch; }
}
@media (prefers-reduced-motion: reduce) {
	.mhb-single-wrap * { transition: none !important; }
}
