/*
Theme Name: Moviceleb Cinema
Description: A dark streaming-style theme for movie and celebrity stories. Sliding hero banner, horizontal rows of poster cards, clean reading page.
Version: 1.17.9
Requires at least: 6.0
Requires PHP: 7.4
Author: Moviceleb
License: GPL-2.0-or-later
Text Domain: moviceleb
*/

:root {
	--mc-bg: #ffffff;
	--mc-surface: #f5f6fa;
	--mc-surface-2: #e9ebf2;
	--mc-border: #e1e3ec;
	--mc-text: #15151c;
	--mc-muted: #666a7a;
	--mc-pink: #ff3d8b;
	--mc-orange: #ff8a3d;
	--mc-gradient: linear-gradient(90deg, #ff3d8b 0%, #ff8a3d 100%);
	--mc-radius: 10px;
	--mc-wrap: 1280px;
	--mc-heading: "Poppins", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	--mc-body: "Inter", -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
	margin: 0;
	background: var(--mc-bg);
	color: var(--mc-text);
	font-family: var(--mc-body);
	font-size: 16px;
	line-height: 1.65;
	-webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--mc-pink); text-decoration: none; }
a:hover { text-decoration: underline; }
button { font: inherit; }

h1, h2, h3, h4 {
	font-family: var(--mc-heading);
	font-weight: 700;
	line-height: 1.25;
	color: var(--mc-text);
	margin: 0 0 .6em;
}

.mc-wrap { max-width: var(--mc-wrap); margin: 0 auto; padding: 0 24px; }
@media (max-width: 600px) { .mc-wrap { padding: 0 16px; } }

.screen-reader-text {
	position: absolute; width: 1px; height: 1px; overflow: hidden;
	clip: rect(0 0 0 0); white-space: nowrap;
}

/* ---------- Header ---------- */

.mc-header {
	position: sticky; top: 0; z-index: 50;
	background: rgba(255, 255, 255, .92);
	backdrop-filter: blur(12px); border-bottom: 1px solid var(--mc-border);
}
.admin-bar .mc-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .mc-header { top: 46px; } }
@media (max-width: 600px) { .admin-bar .mc-header { top: 0; } }

.mc-header__row { display: flex; align-items: center; gap: 28px; min-height: 64px; }

.mc-logo {
	display: inline-flex; align-items: center; gap: 10px;
	font-family: var(--mc-heading); font-size: 24px; font-weight: 800;
	color: var(--mc-text); white-space: nowrap;
}
.mc-logo:hover { text-decoration: none; }
.mc-logo__mark {
	display: inline-flex; align-items: center; justify-content: center;
	width: 34px; height: 34px; border-radius: 9px;
	background: var(--mc-gradient); color: #fff; font-size: 15px; padding-left: 2px;
}
.mc-logo img { max-height: 42px; width: auto; }

.mc-nav { flex: 1; }
.mc-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 6px 26px; flex-wrap: wrap; }
.mc-nav a { display: block; padding: 6px 0; color: #3a3d4a; font-family: var(--mc-heading); font-size: 15px; font-weight: 600; }
.mc-nav a:hover,
.mc-nav .current-menu-item > a,
.mc-nav .mc-current > a { color: var(--mc-pink); text-decoration: none; }

/* Dropdown sub-menus */
.mc-nav li { position: relative; }
.mc-nav > ul > li > a { padding: 20px 0; }
.mc-nav .menu-item-has-children > a::after { content: "\25BE"; font-size: 11px; margin-left: 6px; opacity: .7; }
.mc-nav .sub-menu {
	position: absolute; top: 100%; left: -12px; z-index: 60; min-width: 210px;
	display: flex; flex-direction: column; gap: 2px; padding: 8px; margin: 0;
	background: #141414; border: 1px solid var(--mc-border); border-radius: 10px;
	box-shadow: 0 14px 34px rgba(0, 0, 0, .55);
	opacity: 0; visibility: hidden; transform: translateY(8px);
	transition: opacity .2s ease, transform .2s ease, visibility 0s linear .2s;
}
.mc-nav li:hover > .sub-menu,
.mc-nav li:focus-within > .sub-menu,
.mc-nav li.is-open > .sub-menu {
	opacity: 1; visibility: visible; transform: none; transition-delay: 0s;
}
.mc-nav .sub-menu li { width: 100%; }
.mc-nav .sub-menu a {
	padding: 9px 12px; border-radius: 6px; text-transform: none; letter-spacing: 0;
	font-size: 14px; font-weight: 500; white-space: nowrap;
}
.mc-nav .sub-menu a:hover { background: var(--mc-surface-2); color: var(--mc-pink); }
.mc-nav .sub-menu .menu-item-has-children > a::after { content: "\25B8"; float: right; }
.mc-nav .sub-menu .sub-menu { top: -9px; left: 100%; margin-left: 4px; }
.mc-nav__toggle { display: none; }

.mc-search { display: flex; }
.mc-search input[type="search"] {
	width: 200px; background: var(--mc-surface-2); color: var(--mc-text);
	border: 1px solid transparent; border-radius: 999px;
	padding: 8px 18px; font: inherit; font-size: 14px; outline: none;
}
.mc-search input[type="search"]:focus { border-color: var(--mc-pink); }
.mc-search button { display: none; }

/* Language picker next to the search box (plugin: auto-detected viewer language). */
.mc-lang { display: inline-flex; align-items: center; gap: 4px; color: var(--mc-muted, #aaa); font-size: 13px; margin-left: 10px; }
.mc-lang select {
	max-width: 120px; background: var(--mc-surface-2); color: var(--mc-text); border: 1px solid transparent;
	border-radius: 999px; padding: 7px 10px; font: inherit; font-size: 13px; outline: none; cursor: pointer;
}
.mc-lang select:focus { border-color: var(--mc-pink); }

.mc-nav-toggle,
.mc-nav-toggle__label { display: none; }

@media (max-width: 860px) {
	.mc-header__row { flex-wrap: wrap; gap: 0 12px; }
	.mc-logo { flex: 1; }
	.mc-nav-toggle__label {
		display: inline-flex; align-items: center; justify-content: center;
		width: 42px; height: 42px; border-radius: 8px; background: var(--mc-surface-2);
		cursor: pointer; font-size: 20px; color: var(--mc-text);
	}
	.mc-nav, .mc-search { display: none; flex-basis: 100%; }
	.mc-lang { margin-left: 0; margin-right: 8px; }
	.mc-lang select { max-width: 90px; }
	.mc-nav-toggle:checked ~ .mc-nav,
	.mc-nav-toggle:checked ~ .mc-search { display: block; padding-bottom: 14px; }
	.mc-nav ul { flex-direction: column; gap: 4px; }
	.mc-nav > ul > li > a { padding: 10px 0; }
	.mc-search input[type="search"] { width: 100%; }

	/* Accordion sub-menus: the arrow button opens them, nothing opens on hover. */
	.mc-nav .menu-item-has-children > a { padding-right: 48px; }
	.mc-nav .menu-item-has-children > a::after { content: none; }
	.mc-nav__toggle {
		display: flex; align-items: center; justify-content: center;
		position: absolute; top: 0; right: 0; width: 42px; height: 42px;
		background: none; border: 0; color: var(--mc-text); font-size: 16px; cursor: pointer;
		transition: transform .2s ease;
	}
	.mc-nav li.is-open > .mc-nav__toggle { transform: rotate(180deg); }
	.mc-nav .sub-menu,
	.mc-nav .sub-menu .sub-menu {
		position: static; display: none; min-width: 0; margin: 0 0 4px; padding: 4px 0 4px 14px;
		border: 0; border-left: 2px solid var(--mc-border); border-radius: 0; box-shadow: none;
		opacity: 1; visibility: visible; transform: none; transition: none;
	}
	.mc-nav li:hover > .sub-menu,
	.mc-nav li:focus-within > .sub-menu { display: none; }
	.mc-nav li.is-open > .sub-menu { display: flex; }
	.mc-nav .sub-menu a { white-space: normal; }
}

/* ---------- Buttons and tags ---------- */

.mc-btn {
	display: inline-flex; align-items: center; gap: 8px;
	background: var(--mc-gradient); color: #fff;
	font-family: var(--mc-heading); font-weight: 600; font-size: 15px;
	padding: 10px 24px; border-radius: 999px; border: 0; cursor: pointer;
}
.mc-btn:hover { text-decoration: none; filter: brightness(1.12); }
.mc-btn--ghost { background: rgba(255, 255, 255, .14); backdrop-filter: blur(6px); }

.mc-tag {
	display: inline-block; border: 1px solid rgba(255, 255, 255, .7); color: #fff;
	background: rgba(0, 0, 0, .45); border-radius: 6px;
	font-size: 11px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
	padding: 2px 8px; line-height: 1.5;
}
a.mc-tag:hover { text-decoration: none; border-color: var(--mc-pink); color: var(--mc-pink); }
/* Adult genre (18+): red label on posters and chips; the menu entry keeps the normal colour. */
.mc-tag--adult, a.mc-tag--adult:hover { background: #d90429; border-color: #ff4d6d; color: #fff; }
.mc-chip--adult { border-color: #ff4d6d; color: #ff4d6d; }
.mc-chip--adult.is-active, .mc-chip--adult:hover { background: #d90429; border-color: #d90429; color: #fff; }

/* ---------- Hero slider ---------- */

.mc-slider { position: relative; margin: 8px 0 40px; border-radius: 16px; overflow: hidden; background: var(--mc-surface); }
.mc-slider__track {
	display: flex; overflow-x: auto; scroll-snap-type: x mandatory;
	scrollbar-width: none; -ms-overflow-style: none;
}
.mc-slider__track::-webkit-scrollbar { display: none; }

.mc-slide {
	position: relative; flex: 0 0 100%; scroll-snap-align: start;
	min-height: 440px; display: flex; align-items: flex-end; overflow: hidden;
}
/* Blurred copy of the picture fills the banner, so any image shape works. */
.mc-slide::before {
	content: ""; position: absolute; inset: -40px;
	background: var(--mc-img, none) center / cover no-repeat;
	filter: blur(28px) brightness(.5) saturate(1.2);
}
.mc-slide__art {
	position: absolute; top: 0; right: 0; bottom: 0; width: 62%;
	background: var(--mc-img, none) center 20% / cover no-repeat;
	-webkit-mask-image: linear-gradient(to right, transparent 0%, #000 38%);
	mask-image: linear-gradient(to right, transparent 0%, #000 38%);
}
.mc-slide::after {
	content: ""; position: absolute; inset: 0;
	background: linear-gradient(to top, rgba(15, 15, 20, .95) 0%, rgba(15, 15, 20, 0) 55%);
}
.mc-slide__body { position: relative; z-index: 1; padding: 44px 48px 56px; max-width: 560px; }
.mc-slide__title { font-size: clamp(24px, 3.4vw, 40px); font-weight: 800; margin: 12px 0 18px; text-shadow: 0 2px 18px rgba(0, 0, 0, .6); }
.mc-slide__title a { color: #fff; }
.mc-slide__title a:hover { text-decoration: none; }
.mc-slide__actions { display: flex; flex-wrap: wrap; gap: 12px; }

.mc-slider__dots { position: absolute; left: 0; right: 0; bottom: 18px; z-index: 2; display: flex; justify-content: center; gap: 8px; }
.mc-slider__dots button {
	width: 8px; height: 8px; padding: 0; border: 0; border-radius: 999px;
	background: rgba(255, 255, 255, .4); cursor: pointer; transition: width .25s ease, background .25s ease;
}
.mc-slider__dots button.is-active { width: 26px; background: #fff; }

@media (max-width: 700px) {
	.mc-slide { min-height: 400px; }
	.mc-slide__art { width: 100%; -webkit-mask-image: linear-gradient(to top, transparent 8%, #000 60%); mask-image: linear-gradient(to top, transparent 8%, #000 60%); }
	.mc-slide__body { padding: 24px 20px 48px; }
}

/* ---------- Rows of posters ---------- */

.mc-row { margin: 0 0 40px; }
.mc-row__head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 16px; }
.mc-row__title { font-size: clamp(20px, 2.4vw, 26px); font-weight: 800; margin: 0; }
.mc-row__title a { color: var(--mc-text); }
.mc-row__title a:hover { color: var(--mc-pink); text-decoration: none; }
.mc-row__nav { display: flex; gap: 8px; }
.mc-row__nav button {
	width: 30px; height: 30px; border: 0; border-radius: 50%;
	background: var(--mc-surface-2); color: var(--mc-text); cursor: pointer; font-size: 16px; line-height: 1;
}
.mc-row__nav button:hover { background: var(--mc-pink); }

.mc-row__track {
	display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x proximity;
	scrollbar-width: none; -ms-overflow-style: none; padding-bottom: 4px;
}
.mc-row__track::-webkit-scrollbar { display: none; }
.mc-row__track .mc-poster { flex: 0 0 clamp(140px, 17vw, 208px); scroll-snap-align: start; }

.mc-grid {
	display: grid; gap: 26px 14px;
	grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
	margin-bottom: 40px;
}
@media (max-width: 480px) { .mc-grid { grid-template-columns: repeat(2, 1fr); } }

.mc-poster { min-width: 0; }
.mc-poster__img {
	position: relative; display: block; aspect-ratio: 3 / 4; overflow: hidden;
	border-radius: var(--mc-radius); background: linear-gradient(160deg, #e6e8f0, #d5d8e3);
}
.mc-poster__img img { width: 100%; height: 100%; object-fit: cover; object-position: center 20%; transition: transform .35s ease; }
.mc-poster:hover .mc-poster__img img { transform: scale(1.06); }
.mc-poster__img::after {
	content: ""; position: absolute; inset: 0; border-radius: inherit;
	box-shadow: inset 0 0 0 2px transparent; transition: box-shadow .2s ease;
}
.mc-poster:hover .mc-poster__img::after { box-shadow: inset 0 0 0 2px var(--mc-pink); }
.mc-poster__img .mc-tag { position: absolute; top: 8px; left: 8px; z-index: 1; max-width: calc(100% - 16px); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mc-poster__play {
	position: absolute; right: 8px; bottom: 8px; z-index: 1;
	width: 34px; height: 34px; border-radius: 50%; padding-left: 3px;
	display: flex; align-items: center; justify-content: center;
	background: var(--mc-gradient); color: #fff; font-size: 13px;
	box-shadow: 0 4px 14px rgba(0, 0, 0, .5);
}
.mc-poster__placeholder {
	position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
	padding: 12px; text-align: center; font-family: var(--mc-heading); font-weight: 800; color: #4a4a5c;
}
.mc-poster__title {
	font-family: var(--mc-heading); font-size: 15px; font-weight: 600; line-height: 1.35;
	margin: 10px 0 0;
	display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.mc-poster__title a { color: var(--mc-text); }
.mc-poster__title a:hover { color: var(--mc-pink); text-decoration: none; }

/* ---------- Page heads and pagination ---------- */

.mc-page-head { margin: 32px 0 26px; }
.mc-page-head h1 { font-size: clamp(24px, 3.4vw, 36px); font-weight: 800; margin: 0; }
.mc-page-head p { color: var(--mc-muted); margin: 8px 0 0; }

.mc-pagination { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin: 0 0 56px; }
.mc-pagination .page-numbers {
	min-width: 40px; height: 40px; padding: 0 12px;
	display: inline-flex; align-items: center; justify-content: center;
	background: var(--mc-surface-2); border-radius: 999px; color: var(--mc-text); font-weight: 600;
}
.mc-pagination a.page-numbers:hover { color: var(--mc-pink); text-decoration: none; }
.mc-pagination .page-numbers.current { background: var(--mc-gradient); color: #fff; }

/* ---------- Single article / page ---------- */

.mc-article { max-width: 780px; margin: 0 auto; padding: 36px 0 20px; }
.mc-article__title { font-size: clamp(26px, 4.2vw, 42px); font-weight: 800; margin: 14px 0 14px; }
.mc-article__meta { color: var(--mc-muted); font-size: 14px; margin-bottom: 26px; padding-bottom: 18px; border-bottom: 1px solid var(--mc-border); }
.mc-article__meta span + span::before { content: "•"; margin: 0 10px; color: var(--mc-border); }
.mc-article__thumb { margin: 0 0 28px; }
.mc-article__thumb img { width: 100%; border-radius: var(--mc-radius); }

.mc-content { font-size: 18px; line-height: 1.8; overflow-wrap: break-word; }
.mc-content > * { margin-top: 0; margin-bottom: 1.4em; }
.mc-content h2 { font-size: 27px; margin-top: 1.6em; }
.mc-content h3 { font-size: 22px; margin-top: 1.4em; }
.mc-content img { border-radius: var(--mc-radius); margin-left: auto; margin-right: auto; }
.mc-content figure { margin-left: 0; margin-right: 0; }
.mc-content figcaption { color: var(--mc-muted); font-size: 14px; text-align: center; margin-top: 8px; }
.mc-content blockquote {
	margin-left: 0; margin-right: 0; padding: 6px 0 6px 22px;
	border-left: 4px solid var(--mc-pink); color: #d6d6e0; font-style: italic;
}
.mc-content iframe, .mc-content video { max-width: 100%; }
.mc-content video { width: 100%; max-height: 82vh; background: #000; border-radius: var(--mc-radius); }
.mc-content .wp-block-video video { display: block; }
.mc-content .wp-block-embed iframe,
.mc-content > iframe,
.mc-content > p > iframe { width: 100%; height: auto; aspect-ratio: 16 / 9; border: 0; border-radius: var(--mc-radius); background: #000; }
.mc-content table { width: 100%; border-collapse: collapse; }
.mc-content th, .mc-content td { border: 1px solid var(--mc-border); padding: 8px 12px; }
.mc-content .alignwide, .mc-content .alignfull { max-width: 100%; }
.mc-content .aligncenter { text-align: center; margin-left: auto; margin-right: auto; }

.mc-tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 30px 0 0; }
.mc-tags a { background: var(--mc-surface-2); color: var(--mc-text); border-radius: 999px; padding: 4px 14px; font-size: 13px; }
.mc-tags a:hover { color: var(--mc-pink); text-decoration: none; }

.mc-related { padding: 34px 0 0; border-top: 1px solid var(--mc-border); margin-top: 36px; }

/* ---------- Comments ---------- */

.mc-comments { max-width: 780px; margin: 0 auto 50px; }
.mc-comments ol { list-style: none; padding: 0; }
.mc-comments ol ol { padding-left: 24px; }
.mc-comments .comment-body { background: var(--mc-surface); border-radius: var(--mc-radius); padding: 16px 18px; margin-bottom: 14px; }
.mc-comments .avatar { border-radius: 50%; float: left; margin-right: 12px; }
.mc-comments .comment-metadata { font-size: 13px; }
.mc-comments .comment-metadata a { color: var(--mc-muted); }
.mc-comments input[type="text"],
.mc-comments input[type="email"],
.mc-comments input[type="url"],
.mc-comments textarea {
	width: 100%; background: var(--mc-surface); color: var(--mc-text);
	border: 1px solid var(--mc-border); border-radius: 8px; padding: 10px 14px; font: inherit;
}
.mc-comments input[type="submit"] {
	background: var(--mc-gradient); color: #fff; border: 0; border-radius: 999px;
	padding: 11px 26px; font-weight: 700; cursor: pointer;
}

/* ---------- Misc ---------- */

.mc-empty { text-align: center; padding: 70px 0; color: var(--mc-muted); }
.mc-empty h1 {
	font-size: 80px; margin-bottom: 10px;
	background: var(--mc-gradient); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.mc-empty .mc-search { justify-content: center; margin-top: 20px; }
.mc-empty .mc-search input[type="search"] { width: 320px; max-width: 100%; }

/* ---------- Footer ---------- */

.mc-footer { background: var(--mc-surface); border-top: 1px solid var(--mc-border); margin-top: 30px; padding: 36px 0; color: var(--mc-muted); font-size: 14px; }
.mc-footer__row { display: flex; flex-wrap: wrap; gap: 18px 30px; align-items: center; justify-content: space-between; }
.mc-footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 22px; }
.mc-footer a { color: var(--mc-text); }
.mc-footer a:hover { color: var(--mc-pink); }
.mc-footer .mc-logo { font-size: 20px; }
.mc-footer__copy { flex-basis: 100%; margin: 0; }

/* ---------- [ai_film] player (vertical 9:16 by default) ---------- */

.mc-film {
	position: relative; aspect-ratio: 9 / 16; background: #000;
	border-radius: var(--mc-radius); overflow: hidden; outline: none;
	/* Desktop: never taller than 80% of the screen; width follows from the ratio. */
	height: min(80vh, 760px); width: auto; max-width: 100%;
	margin: 0 auto 18px; box-shadow: 0 14px 40px rgba(0, 0, 0, .55);
}
.mc-film--landscape { aspect-ratio: 16 / 9; width: 100%; height: auto; }
.mc-film:focus-visible { box-shadow: 0 0 0 2px var(--mc-pink); }
.mc-film__video { width: 100%; height: 100%; object-fit: contain; display: block; background: #000; cursor: pointer; }
.mc-film:fullscreen { border-radius: 0; height: 100%; width: 100%; max-width: none; }

@media (max-width: 700px) {
	.mc-film { width: 100%; height: auto; max-height: none; }
}

.mc-film__big {
	position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
	width: 76px; height: 76px; border: 0; border-radius: 50%; cursor: pointer;
	background: var(--mc-gradient); color: #fff; padding-left: 6px;
	display: flex; align-items: center; justify-content: center;
	box-shadow: 0 8px 30px rgba(0, 0, 0, .6); transition: opacity .2s ease, transform .2s ease;
}
.mc-film__big:hover { transform: translate(-50%, -50%) scale(1.06); }
.mc-film.is-playing .mc-film__big { opacity: 0; pointer-events: none; }

.mc-film__bar {
	position: absolute; left: 0; right: 0; bottom: 0; z-index: 2;
	display: flex; align-items: center; gap: 6px; padding: 28px 10px 10px;
	background: linear-gradient(to top, rgba(0, 0, 0, .8), rgba(0, 0, 0, 0));
	transition: opacity .25s ease;
}
.mc-film.is-idle .mc-film__bar { opacity: 0; pointer-events: none; }
.mc-film__btn {
	flex: 0 0 auto; width: 36px; height: 36px; border: 0; border-radius: 50%;
	background: transparent; color: #fff; cursor: pointer;
	display: inline-flex; align-items: center; justify-content: center;
}
.mc-film__btn:hover { background: rgba(255, 255, 255, .18); }
.mc-film__icon-pause, .mc-film__icon-muted { display: none; }
.mc-film.is-playing .mc-film__icon-play { display: none; }
.mc-film.is-playing .mc-film__icon-pause { display: block; }
.mc-film.is-muted .mc-film__icon-sound { display: none; }
.mc-film.is-muted .mc-film__icon-muted { display: block; }

.mc-film__progress {
	flex: 1; height: 18px; position: relative; cursor: pointer; touch-action: none;
}
.mc-film__progress::before {
	content: ""; position: absolute; left: 0; right: 0; top: 7px; height: 4px;
	border-radius: 999px; background: rgba(255, 255, 255, .25);
}
.mc-film__buffered, .mc-film__played {
	position: absolute; left: 0; top: 7px; height: 4px; width: 0; border-radius: 999px;
}
.mc-film__buffered { background: rgba(255, 255, 255, .4); }
.mc-film__played { background: var(--mc-gradient); }
.mc-film__time { flex: 0 0 auto; color: #fff; font-size: 12px; font-variant-numeric: tabular-nums; }
.mc-film__notice {
	position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
	padding: 20px; text-align: center; color: #fff; background: rgba(0, 0, 0, .75);
}
.mc-film__notice[hidden] { display: none; }
.mc-content p > .mc-film__notice { position: static; background: none; color: var(--mc-orange); }

/* ---------- Previous / next episode ---------- */

.mc-episodes {
	display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
	gap: 12px; margin: 0 0 30px;
}
.mc-episodes__prev, .mc-episodes__end { color: var(--mc-muted); font-size: 14px; }
.mc-episodes__prev:hover { color: var(--mc-pink); text-decoration: none; }
.mc-episodes__next {
	flex-direction: column; align-items: flex-start; gap: 2px;
	padding: 10px 22px; margin-left: auto; max-width: 100%;
}
.mc-episodes__next small { font-weight: 400; font-size: 12px; opacity: .9; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 260px; }
.mc-episodes__next.is-ready { animation: mc-pulse 1.2s ease-in-out 3; }
@keyframes mc-pulse { 50% { transform: scale(1.05); } }
@media (max-width: 480px) {
	.mc-episodes__next { width: 100%; margin-left: 0; }
	.mc-episodes__next small { max-width: 100%; }
}

/* ---------- Admin Quick Upload page ---------- */

.mc-upload { max-width: 720px; margin: 0 auto; padding-bottom: 50px; }
.mc-notice {
	padding: 14px 18px; border-radius: var(--mc-radius); margin: 0 0 18px;
	background: var(--mc-surface); border: 1px solid var(--mc-border); color: var(--mc-text);
}
.mc-notice a { font-weight: 700; margin-left: 6px; }
.mc-notice--success { border-color: #2fbf71; background: rgba(47, 191, 113, .12); }
.mc-notice--error { border-color: var(--mc-pink); background: rgba(255, 61, 139, .12); }

.mc-form { background: var(--mc-surface); border: 1px solid var(--mc-border); border-radius: 14px; padding: 26px; }
.mc-form__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 18px; }
@media (max-width: 560px) { .mc-form__grid { grid-template-columns: 1fr; } }
.mc-form__row { display: flex; flex-direction: column; gap: 6px; margin: 0 0 18px; }
.mc-form__row label { font-family: var(--mc-heading); font-weight: 600; font-size: 14px; color: var(--mc-text); }
.mc-form__row small { color: var(--mc-muted); font-size: 12px; }
.mc-form__row input[type="text"],
.mc-form__row input[type="url"],
.mc-form__row select {
	width: 100%; background: var(--mc-bg); color: var(--mc-text);
	border: 1px solid var(--mc-border); border-radius: 8px; padding: 11px 14px; font: inherit; font-size: 15px; outline: none;
}
.mc-form__row input:focus, .mc-form__row select:focus { border-color: var(--mc-pink); }
.mc-form__row select option { background: var(--mc-surface-2); }
.mc-form__row input[type="file"] {
	color: var(--mc-muted); font-size: 14px; padding: 10px; background: var(--mc-bg);
	border: 1px dashed var(--mc-border); border-radius: 8px;
}
.mc-form__row input[type="file"]::file-selector-button {
	background: var(--mc-surface-2); color: var(--mc-text); border: 0; border-radius: 999px;
	padding: 7px 14px; margin-right: 12px; font: inherit; font-size: 13px; cursor: pointer;
}
.mc-form__actions { margin: 6px 0 0; }
.mc-form__actions .mc-btn { font-size: 16px; padding: 12px 30px; }

/* ---------- Category pages ---------- */

.mc-page-head--category {
	padding: 30px 28px; border-radius: 16px; margin: 20px 0 28px;
	background:
		radial-gradient(60% 120% at 0% 0%, rgba(255, 61, 139, .22), transparent 60%),
		radial-gradient(50% 120% at 100% 100%, rgba(255, 138, 61, .16), transparent 60%),
		var(--mc-surface);
	border: 1px solid var(--mc-border);
}
.mc-page-head__parent { display: inline-block; color: var(--mc-muted); font-size: 13px; margin-bottom: 8px; }
.mc-page-head__parent:hover { color: var(--mc-pink); text-decoration: none; }
.mc-page-head__meta { color: var(--mc-pink); font-weight: 600; font-size: 13px; letter-spacing: .06em; text-transform: uppercase; }
.mc-page-head__desc { color: #c9c9d4; max-width: 720px; margin-top: 8px; }
.mc-page-head__desc p { margin: 0 0 .6em; }

.mc-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.mc-chip {
	display: inline-flex; align-items: center; gap: 6px;
	padding: 7px 14px; border-radius: 999px; font-size: 13px; font-weight: 600;
	background: var(--mc-surface-2); color: var(--mc-text); border: 1px solid transparent;
}
.mc-chip span { color: var(--mc-muted); font-weight: 400; }
.mc-chip:hover { border-color: var(--mc-pink); color: var(--mc-pink); text-decoration: none; }
.mc-chip.is-active { background: var(--mc-gradient); color: #fff; }
.mc-chip.is-active span { color: rgba(255, 255, 255, .8); }
@media (max-width: 600px) { .mc-page-head--category { padding: 22px 18px; } }

.mc-poster__meta { color: var(--mc-muted); font-size: 12px; margin-top: 4px; }

/* ---------- Genre bar in the header (desktop) ----------
   With many top-level items the menu becomes its own row under the logo:
   one line, scrolls sideways instead of wrapping into a tall header. */
@media (min-width: 861px) {
	.mc-header__row { flex-wrap: wrap; row-gap: 0; }
	.mc-logo { order: 1; }
	.mc-search { order: 2; margin-left: auto; }
	.mc-lang { order: 2; }
	.mc-nav { order: 3; flex: 1 1 100%; min-width: 0; margin: 0 -4px; }
	.mc-nav { position: relative; }
	.mc-nav > ul {
		flex-wrap: nowrap; gap: 0 4px; overflow-x: auto; overflow-y: hidden;
		scrollbar-width: none; -ms-overflow-style: none; padding: 0 4px; scroll-behavior: smooth;
	}
	/* Arrow buttons for mouse users: float over both ends of the genre bar. */
	.mc-nav__arrow {
		position: absolute; top: 0; bottom: 0; z-index: 2; width: 64px; border: 0; cursor: pointer;
		display: flex; align-items: center; color: var(--mc-text); font-size: 22px; line-height: 1; padding: 0;
	}
	.mc-nav__arrow--prev { left: -4px; justify-content: flex-start; padding-left: 8px; background: linear-gradient(to right, var(--mc-bg) 40%, rgba(255, 255, 255, 0)); }
	.mc-nav__arrow--next { right: -4px; justify-content: flex-end; padding-right: 8px; background: linear-gradient(to left, var(--mc-bg) 40%, rgba(255, 255, 255, 0)); }
	.mc-nav__arrow:hover { color: var(--mc-pink); }
	.mc-nav__arrow[hidden] { display: none; }
	.mc-nav > ul::-webkit-scrollbar { display: none; }
	.mc-nav > ul > li { flex: 0 0 auto; }
	.mc-nav > ul > li > a { padding: 10px 12px; font-size: 13px; white-space: nowrap; }
	/* Dropdowns inside the one-line scrolling bar: positioned by main.js (fixed) so the
	   bar's overflow does not clip them. */
	.mc-nav > ul > li > .sub-menu { left: 0; }
	.mc-nav > ul > li > .sub-menu.is-floating { position: fixed; top: auto; left: auto; }
	.mc-header__row { min-height: 0; padding-top: 6px; }
	.admin-bar .mc-header { top: 32px; }
}

/* Mobile menu with many genres: two columns, scrolls inside the header instead of
   growing taller than the screen. */
@media (max-width: 860px) {
	.mc-nav-toggle:checked ~ .mc-nav { max-height: calc(100vh - 80px); overflow-y: auto; }
	.mc-nav > ul { display: grid; grid-template-columns: 1fr 1fr; gap: 2px 10px; }
	.mc-nav > ul > li:first-child { grid-column: 1 / -1; }
	.mc-nav > ul > li > a { padding: 9px 0; font-size: 13px; }
}

@media (max-width: 860px) { .mc-nav__arrow { display: none !important; } }

/* ---------- Ad blocks (template-parts/ad-block.php) ---------- */

.moviceleb-ad-container {
	display: flex; flex-direction: column; align-items: center; justify-content: center;
	width: 100%; max-width: 970px; margin: 28px auto 36px; padding: 10px 0 0;
	overflow: hidden; text-align: center;
}
.moviceleb-ad-label {
	display: block; align-self: flex-start; margin: 0 0 6px;
	color: #6b6b78; font-size: 11px; letter-spacing: .12em; text-transform: uppercase;
}
.moviceleb-ad-inner { display: flex; justify-content: center; width: 100%; min-height: 90px; }
.moviceleb-ad-inner > * { max-width: 100%; }
.moviceleb-ad-inner:empty { min-height: 0; }
@media (max-width: 767px) {
	.moviceleb-ad-container { max-width: 100%; margin: 20px auto 26px; }
	.moviceleb-ad-inner { min-height: 50px; }
}
/* In-feed ad inside the poster grid: takes a full row. */
.mc-grid__ad { grid-column: 1 / -1; min-width: 0; }
.mc-grid__ad .moviceleb-ad-container { margin: 2px auto 6px; }
/* Device targeting (Customize > Ad blocks > "show on"). */
@media (max-width: 767px) { .moviceleb-ad--desktop { display: none !important; } }
@media (min-width: 768px) { .moviceleb-ad--mobile { display: none !important; } }
/* Article placements. */
.mc-article .moviceleb-ad-container { margin: 18px auto 22px; }

/* ---------- Anchor ad fixed at the bottom of the screen (placement 17) ---------- */
.mc-anchor {
	position: fixed; left: 0; right: 0; bottom: 0; z-index: 90; display: flex; justify-content: center;
	padding: 6px 8px calc(6px + env(safe-area-inset-bottom)); background: rgba(255, 255, 255, .97); border-top: 1px solid var(--mc-border); box-shadow: 0 -4px 16px rgba(0, 0, 0, .08);
}
.mc-anchor.is-pending { opacity: 0; pointer-events: none; }
.mc-anchor.is-empty, .mc-anchor.is-closed { display: none; }
.mc-anchor .moviceleb-ad-container { margin: 0; padding: 0; width: 100%; max-width: 728px; max-height: 110px; overflow: hidden; background: none; border: 0; }
.mc-anchor .moviceleb-ad-label { display: none; }
.mc-anchor .moviceleb-ad-inner { min-height: 0; display: block; }
.mc-anchor .moviceleb-ad-inner > * { width: 100%; min-height: 50px; }
.mc-anchor__close {
	position: absolute; top: -14px; right: 8px; width: 28px; height: 28px; border: 1px solid rgba(255, 255, 255, .2); border-radius: 50%;
	background: #fff; color: var(--mc-text); font-size: 13px; cursor: pointer; display: flex; align-items: center; justify-content: center;
}
body.mc-anchor-on .mc-footer { padding-bottom: 90px; }

/* ---------- "Post": scraped articles (category-post.php) ---------- */
.mc-articles { display: grid; gap: 22px 18px; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); margin-bottom: 40px; }
.mc-articles__ad { grid-column: 1 / -1; }
.mc-art { min-width: 0; background: var(--mc-surface); border: 1px solid var(--mc-border); border-radius: var(--mc-radius); overflow: hidden; }
.mc-art__thumb { display: block; aspect-ratio: 16 / 9; background: linear-gradient(160deg, #e6e8f0, #d5d8e3); overflow: hidden; }
.mc-art__thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.mc-art:hover .mc-art__thumb img { transform: scale(1.05); }
.mc-art__body { padding: 14px 16px 16px; }
.mc-art__title { margin: 0 0 8px; font-size: 17px; line-height: 1.35; }
.mc-art__title a { color: var(--mc-text); }
.mc-art__title a:hover { color: var(--mc-pink); }
.mc-art__excerpt { margin: 0; color: var(--mc-muted); font-size: 14px; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.mc-art__meta { margin-top: 10px; color: var(--mc-muted); font-size: 12px; }
@media (max-width: 480px) { .mc-articles { grid-template-columns: 1fr; } }

/* ---------- Advertisement placements: header & above film ---------- */
.mc-header-ad-area:empty { display: none; }
.mc-header-ad-area .moviceleb-ad-container--header { margin: 14px auto 18px; }
.mc-header-ad-area .moviceleb-ad-inner { min-height: 0; }
.moviceleb-ad-container--watch-top { margin: 12px auto 20px; }
@media (max-width: 767px) {
  .mc-header-ad-area .moviceleb-ad-container--header { margin: 10px auto 14px; }
  .moviceleb-ad-container--watch-top { margin: 10px auto 16px; }
}

/* Center-screen ad — homepage and posts. Hidden until triggered by JS. */
.mc-popup-ad[hidden]{display:none!important}
.mc-popup-ad{position:fixed;inset:0;z-index:2147483000;display:flex;align-items:center;justify-content:center;padding:16px}
.mc-popup-ad__backdrop{position:absolute;inset:0;background:rgba(0,0,0,.62)}
.mc-popup-ad__panel{position:relative;width:min(94vw,560px);max-height:min(85dvh,760px);overflow:auto;padding:34px 14px 14px;background:#fff;border-radius:14px;box-shadow:0 12px 45px rgba(0,0,0,.35);text-align:center;overscroll-behavior:contain}
.mc-popup-ad__panel .moviceleb-ad-container{max-width:100%;margin:0 auto}
.mc-popup-ad__panel iframe,.mc-popup-ad__panel img{max-width:100%}
.mc-popup-ad__close{position:absolute;right:8px;top:7px;z-index:2;display:grid;place-items:center;width:34px;height:34px;background:#f0f1f3;border:0;border-radius:50%;font-size:18px;color:#252525;cursor:pointer}
.mc-popup-ad__close:hover{background:#dedfe3}
@media(max-width:600px){.mc-popup-ad{padding:10px}.mc-popup-ad__panel{width:min(96vw,390px);padding:42px 8px 12px}}
