/* 9xMovies main stylesheet (loaded from functions.php) */

/* Inter (SIL OFL) – self-hosted, Latin subset */
@font-face { font-family: "Inter"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/inter-Regular.woff") format("woff"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/inter-SemiBold.woff") format("woff"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 700 800; font-display: swap; src: url("../fonts/inter-Bold.woff") format("woff"); }

:root {
	--nxm-primary: #FF9800;
	--nxm-secondary: #F57C00;
	--nxm-accent: #F57C00;
	--nxm-on-primary: #1a1206;
	--nxm-bg: #100e13;
	--nxm-header: #070708;
	--nxm-surface: #0b0a0d;
	--nxm-surface-2: #17141b;
	--nxm-text: #f4f4f5;
	--nxm-muted: #a1a1aa;
	--nxm-border: #2b2418;
	--nxm-line: rgba(255, 255, 255, .08);
	--nxm-radius: 14px;
	--nxm-font: "Inter", Roboto, system-ui, -apple-system, "Segoe UI", "Helvetica Neue", Arial, "Noto Sans Bengali", "Hind Siliguri", sans-serif;
	color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; font: 400 15px/1.65 var(--nxm-font); color: var(--nxm-text); background: var(--nxm-bg); overflow-x: hidden; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
img, video, iframe { max-width: 100%; height: auto; }
a { color: var(--nxm-primary); text-decoration: none; }
a:hover { color: color-mix(in srgb, var(--nxm-primary) 80%, #fff); }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible { outline: 3px solid color-mix(in srgb, var(--nxm-primary) 55%, transparent); outline-offset: 2px; }
h1, h2, h3, h4 { overflow-wrap: anywhere; }
h1, h2, h3 { font-weight: 700; line-height: 1.25; margin: 0 0 .5em; letter-spacing: -.015em; }
p { margin: 0 0 1em; }
::selection { background: var(--nxm-primary); color: var(--nxm-on-primary); }

.container { width: 100%; max-width: 1300px; margin-inline: auto; padding-inline: 16px; }
.screen-reader-text, .sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--nxm-primary); color: var(--nxm-on-primary); padding: 8px 14px; border-radius: 8px; font-weight: 600; }
.skip-link:focus { left: 8px; color: var(--nxm-on-primary); }
.text-center { text-align: center; }

/* ---------- Header ---------- */
.site-header { background: var(--nxm-header); border-bottom: 1px solid var(--nxm-line); z-index: 50; }
.has-sticky-header .site-header { position: sticky; top: 0; }
.admin-bar.has-sticky-header .site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar.has-sticky-header .site-header { top: 46px; } }

/* Mobile: [menu] [logo / name (center)] [search] */
.header-inner { display: grid; grid-template-columns: 44px minmax(0, 1fr) 44px; grid-template-areas: "menu brand search" "nav nav nav" "sbox sbox sbox"; align-items: center; column-gap: 10px; min-height: 64px; padding-block: 10px; }
.nav-toggle { grid-area: menu; }
.brand { grid-area: brand; justify-self: center; max-width: 100%; min-width: 0; text-align: center; }
.search-toggle { grid-area: search; }
.brand__text { display: block; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 1.3rem; font-weight: 800; letter-spacing: -.03em; color: var(--nxm-text); }
.brand__text:hover { color: var(--nxm-primary); }
.custom-logo { max-height: 40px; width: auto; display: block; margin-inline: auto; }
.brand .custom-logo-link { display: block; }

.nav-toggle, .search-toggle { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; padding: 0; border: 1px solid var(--nxm-line); background: var(--nxm-surface-2); color: var(--nxm-text); border-radius: 12px; cursor: pointer; transition: border-color .15s, color .15s; }
.nav-toggle:hover, .search-toggle:hover, .nav-toggle[aria-expanded="true"], .search-toggle[aria-expanded="true"] { border-color: var(--nxm-primary); color: var(--nxm-primary); }
.search-toggle svg { display: block; width: 22px; height: 22px; }
.nav-toggle__bars, .nav-toggle__bars::before, .nav-toggle__bars::after { display: block; width: 20px; height: 2px; background: currentColor; border-radius: 2px; content: ""; position: relative; }
.nav-toggle__bars::before { position: absolute; top: -6px; }
.nav-toggle__bars::after { position: absolute; top: 6px; }

/* Mobile drawer: menu */
.site-nav { grid-area: nav; display: none; width: 100%; margin-top: 10px; padding: 4px 0 8px; max-height: calc(100vh - 150px); max-height: calc(100dvh - 150px); overflow-y: auto; overscroll-behavior: contain; border-top: 1px solid var(--nxm-line); }
.site-nav.is-open { display: block; }
.primary-nav .menu { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.primary-nav a { display: block; padding: 13px 4px; color: var(--nxm-text); font-weight: 600; border-bottom: 1px solid var(--nxm-line); }
.primary-nav a:hover, .primary-nav .current-menu-item > a { color: var(--nxm-primary); }

/* Search panel (mobile: opened by the search icon) */
.header-search { grid-area: sbox; display: none; position: relative; padding: 10px 0 4px; }
.search-open .header-search { display: block; }

.search-form { display: flex; gap: 8px; }
.search-form input[type="search"] { flex: 1; min-width: 0; height: 44px; padding: 0 18px; border: 1px solid var(--nxm-line); border-radius: 999px; background: var(--nxm-surface-2); color: var(--nxm-text); font: inherit; -webkit-appearance: none; appearance: none; }
.search-form input[type="search"]::placeholder { color: var(--nxm-muted); }
.search-form input[type="search"]:focus { border-color: var(--nxm-primary); outline: 0; }
.search-form button, .btn, .comment-form .submit { display: inline-flex; align-items: center; justify-content: center; height: 44px; padding: 0 20px; border: 0; border-radius: 999px; background: var(--nxm-primary); color: var(--nxm-on-primary); font: inherit; font-weight: 700; cursor: pointer; transition: background-color .15s, transform .15s, box-shadow .15s; }
.search-form button:hover, .btn:hover, .comment-form .submit:hover { background: color-mix(in srgb, var(--nxm-primary) 85%, #fff); color: var(--nxm-on-primary); box-shadow: 0 6px 18px color-mix(in srgb, var(--nxm-primary) 35%, transparent); }
.btn--outline { background: transparent; color: var(--nxm-primary); box-shadow: inset 0 0 0 2px var(--nxm-primary); }
.btn--outline:hover { background: var(--nxm-primary); color: var(--nxm-on-primary); }

/* Live search results */
.live-results { position: absolute; left: 0; right: 0; top: calc(100% + 4px); z-index: 70; max-height: min(70vh, 480px); overflow-y: auto; overscroll-behavior: contain; padding: 6px; background: var(--nxm-surface-2); border: 1px solid var(--nxm-border); border-radius: 14px; box-shadow: 0 18px 40px rgba(0, 0, 0, .65); }
.live-results[hidden] { display: none; }
.live-item { display: flex; align-items: center; gap: 12px; padding: 8px; border-radius: 10px; color: var(--nxm-text); }
.live-item:hover, .live-item:focus-visible, .live-item.is-active { background: var(--nxm-surface); color: var(--nxm-text); }
.live-item img { flex: 0 0 44px; width: 44px; height: 66px; object-fit: cover; border-radius: 6px; background: var(--nxm-surface); }
.live-item__ph { flex: 0 0 44px; width: 44px; height: 66px; border-radius: 6px; background: var(--nxm-surface); }
.live-item__title { display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; font-size: .9rem; font-weight: 600; line-height: 1.35; }
.live-all { display: block; margin-top: 4px; padding: 11px 8px; text-align: center; font-weight: 700; font-size: .9rem; border-top: 1px solid var(--nxm-line); }
.live-empty { margin: 0; padding: 14px 10px; color: var(--nxm-muted); text-align: center; font-size: .9rem; }


/* ---------- Category navigation: shown on every screen size, ALL categories, max 1000px wide (main content stays 1300px) ---------- */
.catnav { background: var(--nxm-surface); border-bottom: 1px solid var(--nxm-line); }
.catnav__list { list-style: none; margin: 0 auto; padding: 12px 0; max-width: 1000px; display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; }
.catnav__list li { min-width: 0; }
.catnav__list a { display: block; max-width: 100%; padding: 6px 11px; border-radius: 9px; background: var(--nxm-surface-2); color: var(--nxm-text); font-size: .78rem; font-weight: 600; line-height: 1.3; border: 1px solid var(--nxm-line); overflow-wrap: anywhere; transition: all .15s; }
.catnav__list a:hover, .catnav__list a[aria-current] { background: var(--nxm-primary); border-color: var(--nxm-primary); color: var(--nxm-on-primary); }
@media (min-width: 576px) { .catnav__list { gap: 8px; padding: 14px 0; } .catnav__list a { padding: 7px 14px; font-size: .85rem; border-radius: 10px; white-space: nowrap; } }

/* ---------- Layout ---------- */
.site-main { padding: 24px 0 56px; min-height: 60vh; }
.layout--sidebar { display: grid; gap: 24px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 1024px) { .layout--sidebar { grid-template-columns: minmax(0, 1fr) 320px; align-items: start; } }
.panel { background: var(--nxm-surface); border: 1px solid var(--nxm-border); border-radius: var(--nxm-radius); padding: 20px; margin-bottom: 24px; }

.intro { margin-bottom: 28px; }
.intro__title { font-size: clamp(1.4rem, 3vw, 2rem); margin: 0 0 6px; }
.intro__text { color: var(--nxm-muted); max-width: 820px; }
.intro__text p:last-child { margin-bottom: 0; }

.section { margin-bottom: 40px; }
.section__title { display: flex; align-items: center; gap: 10px; font-size: 1.3rem; margin-bottom: 18px; }
.section__title::before { content: ""; width: 5px; height: 1.15em; border-radius: 4px; background: var(--nxm-primary); }
.section__title a { color: inherit; }
.page-head { margin-bottom: 22px; }
.page-title { font-size: clamp(1.4rem, 3vw, 1.9rem); margin: 0 0 6px; }
.page-desc { color: var(--nxm-muted); }

.breadcrumbs { font-size: .82rem; color: var(--nxm-muted); margin-bottom: 16px; }
.breadcrumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 0; }
.breadcrumbs li + li::before { content: "/"; margin: 0 8px; opacity: .45; }
.breadcrumbs a { color: var(--nxm-muted); }
.breadcrumbs a:hover { color: var(--nxm-primary); }

/* ---------- Poster grid: 2 / 3 / 4 / 5 / 6 columns ---------- */
.poster-grid { display: grid; gap: 14px 12px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 576px) { .poster-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; } }
@media (min-width: 768px) { .poster-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (min-width: 992px) { .poster-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 18px; } }
@media (min-width: 1200px) { .poster-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); } }
/* Related posts inside the narrower single-post column */
.layout--sidebar .poster-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 576px) { .layout--sidebar .poster-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 768px) and (max-width: 1023px) { .layout--sidebar .poster-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (min-width: 1200px) { .layout--sidebar .poster-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

.card { margin: 0; height: 100%; }
.card__link { display: flex; flex-direction: column; height: 100%; color: var(--nxm-text); background: var(--nxm-surface); border: 1px solid var(--nxm-border); border-radius: var(--nxm-radius); overflow: hidden; transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease; }
.card__poster { display: block; aspect-ratio: 2 / 3; overflow: hidden; background: var(--nxm-surface-2); }
.card__poster img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.card__poster:empty { background: linear-gradient(160deg, var(--nxm-surface-2), var(--nxm-surface)); }
.card__title { margin: 0 0 14px; padding: 12px 12px 0; font-size: .88rem; font-weight: 600; line-height: 1.4; letter-spacing: 0; display: -webkit-box; -webkit-line-clamp: 3; line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; min-height: calc(1.4em * 3 + 12px); max-height: calc(1.4em * 3 + 12px); }
.card__link:hover { transform: translateY(-4px); border-color: var(--nxm-primary); box-shadow: 0 12px 28px rgba(0, 0, 0, .45); }
.card__link:hover .card__poster img { transform: scale(1.04); }
.card__link:hover .card__title { color: var(--nxm-primary); }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }

/* ---------- Pagination ---------- */
.pagination { margin: 40px 0 12px; }
.pagination ul.page-numbers { list-style: none; margin: 0 auto; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; align-items: center; max-width: 100%; border: 0; background: none; height: auto; min-width: 0; }
.pagination li { margin: 0; padding: 0; }
.pagination li > .page-numbers { display: inline-flex; gap: 8px; min-width: 46px; height: 46px; padding: 0 16px; align-items: center; justify-content: center; border: 1px solid var(--nxm-border); border-radius: 12px; background: var(--nxm-surface-2); color: var(--nxm-text); font-weight: 700; font-size: .95rem; line-height: 1; transition: background-color .15s, border-color .15s, color .15s, transform .15s, box-shadow .15s; }
.pagination li > a.page-numbers:hover { border-color: var(--nxm-primary); color: var(--nxm-primary); transform: translateY(-2px); }
.pagination li > a.page-numbers:active { transform: translateY(0); }
.pagination li > .page-numbers.current { background: var(--nxm-primary); border-color: var(--nxm-primary); color: var(--nxm-on-primary); font-weight: 800; box-shadow: 0 6px 18px color-mix(in srgb, var(--nxm-primary) 35%, transparent); }
.pagination li > .page-numbers.dots { background: transparent; border-color: transparent; color: var(--nxm-muted); min-width: 24px; padding: 0 2px; }
.pagination li > .prev, .pagination li > .next { padding: 0 20px; }
.pagination li > .prev span:first-child, .pagination li > .next span:last-child { font-size: 1.3em; line-height: 1; }
@media (max-width: 480px) {
	.pagination ul.page-numbers { gap: 7px; }
	.pagination li > .page-numbers { min-width: 42px; height: 44px; padding: 0 10px; }
	.pagination li > .prev, .pagination li > .next { padding: 0 14px; }
	.pagination .pg-label { display: none; }
}

/* ---------- Single ---------- */
.entry__title { font-size: clamp(1.35rem, 3.2vw, 1.9rem); margin: 0 0 8px; }
.entry__meta { color: var(--nxm-muted); font-size: .88rem; margin-bottom: 18px; }
.entry__meta a { color: var(--nxm-primary); }

/* Premium poster thumbnail card (single post only; applied to the first
   content image and to the featured-image fallback, never to screenshots). */
.single-movie-poster { display: block; position: relative; width: 100%; max-width: 320px; aspect-ratio: 2 / 3; margin: 0 auto 28px; overflow: hidden; border: 1px solid var(--nxm-border); border-radius: 14px; background: var(--nxm-surface); box-shadow: 0 14px 36px rgba(0, 0, 0, .5), 0 2px 8px rgba(0, 0, 0, .35); transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease; }
.single-movie-poster:hover { transform: translateY(-3px); border-color: var(--nxm-primary); box-shadow: 0 18px 44px rgba(0, 0, 0, .6), 0 2px 8px rgba(0, 0, 0, .35); }
.single-movie-poster img, .single-movie-poster__img { display: block; width: 100%; max-width: 100%; height: 100%; margin: 0; object-fit: cover; border: 0; border-radius: 0; }
.single-movie-poster a { display: block; height: 100%; }
.entry__content .single-movie-poster { margin-top: 8px; }
@media (max-width: 575px) { .single-movie-poster { max-width: 260px; border-radius: 12px; } }

.entry__content { overflow-wrap: anywhere; color: #e4e4e7; }
.entry__content h2, .entry__content h3 { margin-top: 1.5em; color: #fff; }
.entry__content h2 { font-size: clamp(1.15rem, 2.6vw, 1.45rem); }
.entry__content h3 { font-size: clamp(1rem, 2.2vw, 1.15rem); }
.entry__content p { margin-bottom: 1.1em; }
.entry__content img:not(.single-movie-poster__img) { border-radius: 10px; border: 1px solid var(--nxm-border); background: var(--nxm-surface-2); }
.entry__content img.aligncenter { display: block; margin-inline: auto; }
.entry__content table { width: 100%; border-collapse: collapse; margin-bottom: 1em; display: block; overflow-x: auto; }
.entry__content th, .entry__content td { border: 1px solid var(--nxm-border); padding: 8px 12px; text-align: left; }
.entry__content th { background: var(--nxm-surface-2); }

/* Legacy post markup: article.article > #content_box > .single_post (scoped to the entry) */
.entry__content .article, .entry__content #content_box, .entry__content .single_post, .entry__content .post { margin: 0; padding: 0; border: 0; background: none; float: none; width: auto; max-width: 100%; }
.entry__content .post-single-content { margin: 1.4em 0 .8em; font-size: clamp(1rem, 2.4vw, 1.2rem); text-align: center; }
.entry__content .single_post h3 { text-align: center; }
.entry__content .a { color: var(--nxm-primary); font-weight: 700; }
.entry__content center { display: block; margin: 12px 0 20px; text-align: center; }
.entry__content center strong { display: block; }

/* Movie information panel */
.entry__content .fname { margin: 20px 0; padding: 18px 20px; background: var(--nxm-surface-2); border: 1px solid var(--nxm-border); border-radius: var(--nxm-radius); line-height: 1.8; overflow-wrap: anywhere; }
.entry__content .fname .fname { margin: 0; padding: 0; background: none; border: 0; border-radius: 0; }
.movie-info { display: grid; grid-template-columns: minmax(0, 1fr); margin: 0; }
.movie-info__row { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--nxm-border); min-width: 0; }
.movie-info__row:last-child { border-bottom: 0; }
.movie-info dt { color: var(--nxm-muted); font-size: .8rem; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; padding-top: .15em; }
.movie-info dd { margin: 0; font-weight: 500; overflow-wrap: anywhere; }
.movie-info__row--highlight dd { color: var(--nxm-primary); font-weight: 800; }
@media (min-width: 768px) {
	.movie-info { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 32px; }
	.movie-info__row:nth-last-child(2):nth-child(odd) { border-bottom: 0; }
}
@media (max-width: 480px) { .movie-info__row { grid-template-columns: minmax(0, 1fr); gap: 2px; } }

/* Story / synopsis */
.entry__content [data-testid="plot-xl"] { display: block; margin: 18px 0; padding: 16px 18px; background: var(--nxm-surface-2); border-left: 4px solid var(--nxm-primary); border-radius: 0 var(--nxm-radius) var(--nxm-radius) 0; color: #e4e4e7; }
.entry__content [data-testid="plot-xl"] strong { color: var(--nxm-primary); }

/* Access / download buttons from post content: always stacked with clear spacing */
.entry__content center br { display: none; }
.entry__content center, .entry__content .single_post p:has(> a.buttn), .entry__content .single_post p:has(> strong > a.buttn) { display: flex; flex-direction: column; align-items: center; gap: 12px; margin: 14px 0 26px; text-align: center; }
.entry__content center strong, .entry__content center b { display: flex; flex-direction: column; align-items: center; gap: 12px; width: 100%; font-weight: inherit; }
.entry__content a.buttn { display: flex; align-items: center; justify-content: center; width: min(100%, 380px); min-height: 50px; margin: 0 auto; padding: 12px 22px; border: 0; border-radius: 12px; background: var(--nxm-primary); color: var(--nxm-on-primary); font-weight: 800; font-size: .98rem; line-height: 1.3; text-align: center; text-decoration: none; overflow-wrap: anywhere; box-shadow: 0 6px 18px rgba(0, 0, 0, .35); transition: background-color .15s, transform .15s, box-shadow .15s; }
.entry__content a.buttn:hover { background: color-mix(in srgb, var(--nxm-primary) 85%, #fff); color: var(--nxm-on-primary); transform: translateY(-2px); box-shadow: 0 10px 24px rgba(0, 0, 0, .45); }
.entry__content a.buttn:active { transform: translateY(0); }
.entry__content a.buttn:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
@media (max-width: 480px) { .entry__content a.buttn { width: 100%; font-size: .92rem; padding: 12px 14px; } }

.wp-block-gallery, .gallery { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); margin: 1em 0; padding: 0; }
.wp-block-gallery .wp-block-image, .gallery-item { margin: 0; width: auto !important; }
.wp-block-gallery img, .gallery img { width: 100%; height: auto; display: block; }
.alignleft { float: left; margin: 0 1em 1em 0; } .alignright { float: right; margin: 0 0 1em 1em; } .aligncenter { display: block; margin-inline: auto; }
.wp-caption-text, figcaption { font-size: .85rem; color: var(--nxm-muted); text-align: center; }

.downloads { margin-top: 30px; padding-top: 22px; border-top: 1px solid var(--nxm-border); }
.downloads h2 { font-size: 1.15rem; }
.dl-item { display: flex; flex-direction: column; gap: 14px; padding: 16px; margin-bottom: 12px; background: var(--nxm-surface-2); border: 1px solid var(--nxm-border); border-radius: var(--nxm-radius); }
.dl-meta { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 16px; margin: 0; }
.dl-meta div { min-width: 0; }
.dl-meta dt { font-size: .7rem; text-transform: uppercase; letter-spacing: .07em; color: var(--nxm-muted); }
.dl-meta dd { margin: 0; font-weight: 600; overflow-wrap: anywhere; }
.dl-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.dl-actions .btn { min-height: 48px; border-radius: 12px; }
@media (min-width: 700px) { .dl-item { flex-direction: row; align-items: center; justify-content: space-between; } .dl-meta { grid-template-columns: repeat(4, auto); } }

/* ---------- Sidebar & widgets ---------- */
.sidebar { display: grid; gap: 20px; }
@media (min-width: 1024px) { .has-sticky-header .sidebar { position: sticky; top: 86px; } }
.widget { background: var(--nxm-surface); border: 1px solid var(--nxm-border); border-radius: var(--nxm-radius); padding: 18px; }
.widget-title { font-size: .95rem; text-transform: uppercase; letter-spacing: .06em; padding-bottom: 12px; margin-bottom: 8px; border-bottom: 2px solid var(--nxm-primary); }
.post-list, .widget ul { list-style: none; margin: 0; padding: 0; }
.post-list li, .widget li { padding: 9px 0; border-bottom: 1px solid var(--nxm-line); font-size: .9rem; }
.post-list li:last-child, .widget li:last-child { border-bottom: 0; }
.post-list a, .widget li a { color: var(--nxm-text); }
.post-list a:hover, .widget li a:hover { color: var(--nxm-primary); }

/* ---------- Comments ---------- */
.comments__title { font-size: 1.1rem; }
.comment-list { list-style: none; padding: 0; margin: 0 0 20px; }
.comment-list .children { list-style: none; padding-left: 20px; }
.comment-body { padding: 14px 0; border-bottom: 1px solid var(--nxm-line); }
.comment-author img { border-radius: 50%; vertical-align: middle; margin-right: 8px; }
.comment-metadata, .comment-metadata a { font-size: .8rem; color: var(--nxm-muted); }
.comment-form label { display: block; font-weight: 600; margin-bottom: 4px; }
.comment-form input[type="text"], .comment-form input[type="email"], .comment-form input[type="url"], .comment-form textarea { width: 100%; padding: 11px 14px; border: 1px solid var(--nxm-line); border-radius: 12px; font: inherit; background: var(--nxm-surface-2); color: var(--nxm-text); }
.comment-form input:focus, .comment-form textarea:focus { border-color: var(--nxm-primary); outline: 0; }

.seo-text { color: var(--nxm-muted); font-size: .92rem; }
.seo-text h2, .seo-text h3 { color: var(--nxm-text); font-size: 1.05rem; }

/* ---------- Footer ---------- */
.site-footer { background: var(--nxm-header); border-top: 1px solid var(--nxm-line); color: var(--nxm-muted); margin-top: 24px; }
.footer-inner { display: grid; gap: 26px; padding-block: 38px; }
@media (min-width: 800px) { .footer-inner { grid-template-columns: 2fr 1fr 1fr; } }
.footer-title { color: #fff; font-size: 1.2rem; font-weight: 800; margin-bottom: 8px; }
.footer-text { font-size: .9rem; }
.site-footer a { color: var(--nxm-muted); }
.site-footer a:hover { color: var(--nxm-primary); }
.footer-nav .menu, .social { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; align-content: start; }
.footer-bottom { border-top: 1px solid var(--nxm-line); padding: 16px 0; font-size: .82rem; text-align: center; }

/* ---------- Robustness: widgets, block search, small screens ---------- */
.widget { min-width: 0; overflow-wrap: anywhere; }
.widget .search-form, .widget .wp-block-search__inside-wrapper { flex-wrap: wrap; }
.widget .wp-block-search__input, .widget input[type="search"] { min-width: 0; width: 100%; flex: 1 1 140px; }
.widget .wp-block-search__button, .widget .search-form button { flex: 0 0 auto; }
.widget .wp-block-search__label { font-weight: 700; display: block; margin-bottom: 8px; }
.widget select { max-width: 100%; background: var(--nxm-surface-2); color: var(--nxm-text); border: 1px solid var(--nxm-line); border-radius: 10px; padding: 8px; }
.widget .wp-block-latest-comments { padding: 0; }
.panel .search-form { margin-top: 12px; }
.text-center .search-form { max-width: 420px; margin-inline: auto; }
@media (max-width: 480px) {
	.container { padding-inline: 12px; }
	.panel { padding: 16px; }
	.poster-grid { gap: 12px 10px; }
}
.breadcrumbs, .breadcrumbs li, .breadcrumbs span, .entry__meta, .post-list li { min-width: 0; overflow-wrap: anywhere; }

/* ---------- v1.6 Single movie post: centered reading column ---------- */
.layout--single { display: block; }
.layout--single .layout__main { width: 100%; max-width: 860px; margin-inline: auto; }
.layout--single .breadcrumbs, .single .container > .breadcrumbs { max-width: 860px; margin-inline: auto; }
.single .entry { padding: clamp(16px, 3vw, 32px); }
.single .entry__head { text-align: center; margin-bottom: 20px; }
.single .entry__title { font-size: clamp(1.45rem, 4vw, 2.1rem); line-height: 1.25; margin-bottom: 10px; text-wrap: balance; }
.single .entry__meta { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 4px 8px; margin-bottom: 0; }
.single .entry__content { font-size: 1rem; line-height: 1.75; }
.single .entry__content > * { max-width: 100%; }
.single .entry__content h2 { padding-bottom: .35em; border-bottom: 1px solid var(--nxm-line); }
.single .entry__content h2:first-child { margin-top: 0; }
.single .entry__content img { height: auto; }
.single .entry__content table { font-size: .92rem; }
.single .entry__content th { color: #fff; }
.single .section { max-width: 860px; margin-inline: auto; }
.layout--single .poster-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 576px) { .layout--single .poster-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 768px) { .layout--single .poster-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; } }
.single .downloads .btn { min-width: 140px; }
.single .comments { max-width: 860px; margin-inline: auto; }

/* ---------- v1.6 Accessibility: contrast, focus, targets ---------- */
:root { --nxm-muted: #b4b4bd; }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible { outline: 3px solid #fff; outline-offset: 2px; box-shadow: 0 0 0 5px color-mix(in srgb, var(--nxm-primary) 70%, transparent); }
.search-form input[type="search"]:focus-visible { outline: 3px solid #fff; }
.breadcrumbs a, .breadcrumbs span { color: var(--nxm-muted); }
.catnav__list a { min-height: 32px; }
@media (pointer: coarse) { .catnav__list a { min-height: 40px; display: flex; align-items: center; } .footer-nav a, .social a { display: inline-block; padding-block: 8px; } }
.live-item, .live-all { min-height: 44px; }
.card__link:focus-visible { border-color: var(--nxm-primary); }
.screen-reader-text:focus { position: static !important; width: auto; height: auto; clip: auto; }
@media (prefers-reduced-motion: reduce) { .card__link:hover, .single-movie-poster:hover { transform: none; } }

/* ---------- v1.6 One header on ALL screens: [menu] [logo centered] [search] ---------- */
.site-nav { max-height: calc(100dvh - 150px); }
.primary-nav a { min-height: 44px; display: flex; align-items: center; }
.live-results { left: 0; right: 0; width: auto; }
.header-search { max-width: 720px; margin-inline: auto; width: 100%; }
.site-nav .primary-nav { max-width: 720px; margin-inline: auto; }

/* Same dark design everywhere (no white flash / white desktop canvas) */
html { background: var(--nxm-bg); color-scheme: dark; }

/* Skip rendering work for off-screen sections */
.section, .site-footer { content-visibility: auto; contain-intrinsic-size: auto 600px; }
.section:first-of-type, .intro + .section { content-visibility: visible; }

/* Under-post sections: categories, related, popular */
.post-cats { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.post-cats a { display: block; padding: 7px 14px; border-radius: 10px; background: var(--nxm-surface-2); color: var(--nxm-text); border: 1px solid var(--nxm-line); font-size: .85rem; font-weight: 600; line-height: 1.3; min-height: 36px; }
.post-cats a:hover, .post-cats a[aria-current] { background: var(--nxm-primary); border-color: var(--nxm-primary); color: var(--nxm-on-primary); }
.post-extra { margin-top: 8px; }

/* ---------- v1.7 Single post: 70% / 30% two-column layout, 25px gap, centered ---------- */
.layout--sidebar { display: grid; gap: 25px; grid-template-columns: minmax(0, 1fr); width: 100%; margin-inline: auto; }
.layout--sidebar > .layout__main, .layout--sidebar > .sidebar { min-width: 0; max-width: 100%; }
@media (min-width: 1024px) {
	.layout--sidebar { grid-template-columns: calc((100% - 25px) * .7) calc((100% - 25px) * .3); align-items: start; }
	.has-sticky-header .sidebar { position: static; }
}
.layout--sidebar .layout__main .panel, .layout--sidebar .section { max-width: none; }
.sidebar { gap: 25px; }
.sidebar .widget { margin: 0; }
.movie-list { list-style: none; margin: 0; padding: 0; }
.widget .movie-list li { padding: 8px 0; }
.movie-list__item { display: flex; align-items: center; gap: 12px; min-height: 44px; color: var(--nxm-text); }
.movie-list__item:hover .movie-list__title { color: var(--nxm-primary); }
.movie-list__thumb { flex: 0 0 48px; width: 48px; aspect-ratio: 2 / 3; border-radius: 6px; overflow: hidden; background: var(--nxm-surface-2); }
.movie-list__thumb img { display: block; width: 100%; height: 100%; object-fit: cover; }
.movie-list__title { display: -webkit-box; -webkit-line-clamp: 3; line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; font-size: .9rem; font-weight: 600; line-height: 1.35; min-width: 0; }
.sidebar .post-cats { gap: 6px; }
.sidebar .post-cats a { padding: 5px 11px; font-size: .8rem; }

/* ---------- v1.8 Modern theme colors, section headings, 4-line card titles ---------- */
:root {
	--nxm-bg: #0c0b10;
	--nxm-header: #08070b;
	--nxm-surface: #131118;
	--nxm-surface-2: #1b1822;
	--nxm-border: #2a2632;
	--nxm-line: rgba(255, 255, 255, .09);
	--nxm-muted: #b8b6c2;
	--nxm-grad: linear-gradient(135deg, var(--nxm-primary), #ff6d00);
	--nxm-container: 1300px;
	--nxm-radius: 16px;
}
html, body { background: var(--nxm-bg); }
body { background: radial-gradient(1200px 500px at 50% -150px, rgba(255, 152, 0, .08), transparent 70%), var(--nxm-bg); }
.container { max-width: var(--nxm-container); }

/* Search: no white border, accent border + soft glow instead */
.search-form input[type="search"]:focus,
.search-form input[type="search"]:focus-visible { outline: 0; border-color: var(--nxm-primary); box-shadow: 0 0 0 3px rgba(255, 152, 0, .28); }
.search-form input[type="search"] { background: var(--nxm-surface-2); }

/* Poster cards */
.card__link { background: linear-gradient(180deg, var(--nxm-surface-2), var(--nxm-surface)); border-radius: var(--nxm-radius); }
.card__link:hover { border-color: rgba(255, 152, 0, .7); box-shadow: 0 14px 32px rgba(0, 0, 0, .5), 0 0 0 1px rgba(255, 152, 0, .25); }
.card__title { -webkit-line-clamp: 4; line-clamp: 4; min-height: calc(1.4em * 4 + 12px); max-height: calc(1.4em * 4 + 12px); text-overflow: ellipsis; }

/* Section headings */
.section__title { position: relative; gap: 12px; margin-bottom: 20px; padding-bottom: 12px; font-size: clamp(1.2rem, 2.6vw, 1.55rem); font-weight: 800; border-bottom: 1px solid var(--nxm-line); }
.section__title::before { width: 6px; height: 1.2em; border-radius: 6px; background: var(--nxm-grad); box-shadow: 0 0 14px rgba(255, 152, 0, .45); }
.section__title::after { content: ""; position: absolute; left: 0; bottom: -1px; width: 84px; height: 2px; border-radius: 2px; background: var(--nxm-grad); }

/* Buttons, widgets, pagination: gradient accent */
.search-form button, .btn, .comment-form .submit { background: var(--nxm-grad); }
.btn--outline { background: transparent; }
.widget { background: linear-gradient(180deg, var(--nxm-surface-2), var(--nxm-surface)); }
.widget-title { border-bottom-color: transparent; border-image: var(--nxm-grad) 1; }
.pagination li > .page-numbers.current { background: var(--nxm-grad); }

/* ---------- v1.9.1 Desktop header (900px+): [logo] [menu links ........] [search box] ----------
   Same colors, fonts and components as mobile; only the header bar shows everything inline. */
@media (min-width: 1100px) {
	.header-inner { grid-template-columns: auto minmax(0, 1fr) auto; grid-template-areas: "brand nav sbox"; column-gap: 24px; min-height: 68px; }
	.nav-toggle, .search-toggle { display: none; }
	.brand { justify-self: start; text-align: left; }
	.site-nav { display: block; margin: 0; padding: 0; max-height: none; overflow: visible; border-top: 0; }
	.site-nav .primary-nav { max-width: none; margin: 0; }
	.primary-nav .menu { flex-direction: row; flex-wrap: wrap; justify-content: flex-start; gap: 2px 4px; }
	.primary-nav a { padding: 8px 14px; min-height: 40px; border-bottom: 0; border-radius: 10px; font-size: .92rem; }
	.primary-nav a:hover { background: rgba(255, 255, 255, .06); }
	.primary-nav .current-menu-item > a { background: rgba(255, 152, 0, .12); }
	.header-search { display: block; width: 320px; max-width: 320px; margin: 0; padding: 0; }
	.live-results { left: auto; right: 0; width: min(440px, 90vw); }
}

/* ---------- v1.9.2 Join Telegram button (centered under the category chips) ---------- */
.catnav__join { display: flex; justify-content: center; margin: 0; padding: 4px 0 16px; }
.btn-telegram { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 46px; padding: 10px 26px; border-radius: 999px; background: #0f78ad; color: #fff; font-weight: 800; font-size: .95rem; box-shadow: 0 6px 18px rgba(15, 120, 173, .35); transition: transform .15s, background-color .15s; }
.btn-telegram:hover { background: #1388c4; color: #fff; text-decoration: none; transform: translateY(-2px); }
@media (prefers-reduced-motion: reduce) { .btn-telegram:hover { transform: none; } }

/* v1.9.3 responsive polish */
@media (min-width: 1100px) { .primary-nav .menu { flex-wrap: nowrap; } .primary-nav a { white-space: nowrap; padding-inline: 12px; } .header-search { width: clamp(240px, 24vw, 320px); } }
@media (max-width: 480px) { .btn-telegram { width: min(100%, 320px); } .catnav__join { padding-inline: 16px; } }

/* ---------- v1.10 Footer: one brand-colored bar (copyright left, links right) ---------- */
.site-footer { margin-top: 32px; border-top: 0; background: var(--nxm-header); color: var(--nxm-muted); }
.footer-extra { padding: 28px 0 24px; text-align: center; border-top: 1px solid var(--nxm-line); }
.footer-extra .footer-text { max-width: 720px; margin: 0 auto 14px; font-size: .9rem; }
.footer-extra .footer-text p { margin: 0 0 .6em; }
.footer-extra .social { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; list-style: none; margin: 0; padding: 0; }
.footer-extra .social a { display: block; padding: 7px 16px; border-radius: 999px; background: var(--nxm-surface-2); border: 1px solid var(--nxm-line); color: var(--nxm-text); font-weight: 600; font-size: .85rem; }
.footer-extra .social a:hover { background: var(--nxm-primary); color: var(--nxm-on-primary); text-decoration: none; }

.footer-bar { background: var(--nxm-grad); color: var(--nxm-on-primary); }
.footer-bar__inner { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px 28px; padding-block: 18px; }
.footer-copy { margin: 0; font-size: .95rem; font-weight: 500; }
.site-footer .footer-bar a { color: var(--nxm-on-primary); }
.footer-copy a { font-weight: 800; }
.footer-bar a:hover { color: var(--nxm-on-primary); text-decoration: underline; text-underline-offset: 3px; }
.footer-bar .footer-nav .menu { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 4px 6px; }
.footer-bar .footer-nav a { display: inline-flex; align-items: center; min-height: 40px; padding: 4px 10px; border-radius: 8px; font-weight: 700; font-size: .95rem; }
.footer-bar .footer-nav a:hover { background: rgba(26, 18, 6, .12); text-decoration: none; }
@media (max-width: 767px) {
	.footer-bar__inner { flex-direction: column; text-align: center; padding-block: 16px; }
	.footer-bar .footer-nav .menu { justify-content: center; }
}

/* ---------- v1.10.1 Footer copyright centered on all devices ---------- */
.footer-bar__inner { flex-direction: column; justify-content: center; text-align: center; gap: 6px; padding-block: 18px; }
.footer-copy { width: 100%; text-align: center; }
.footer-bar .footer-nav .menu { justify-content: center; }
.footer-bar .footer-nav { width: 100%; }

/* ---------- v1.10.2 Footer uses the same colors as the header ---------- */
.site-footer { background: var(--nxm-header); border-top: 1px solid var(--nxm-line); color: var(--nxm-text); }
.footer-bar { background: var(--nxm-header); color: var(--nxm-text); border-top: 1px solid var(--nxm-line); }
.footer-extra { border-top: 0; }
.footer-copy { color: var(--nxm-muted); }
.site-footer .footer-bar a { color: var(--nxm-text); }
.footer-copy a { color: var(--nxm-primary); }
.footer-bar a:hover, .site-footer .footer-bar a:hover { color: var(--nxm-primary); }
.footer-bar .footer-nav a:hover { background: rgba(255, 255, 255, .06); }

/* v1.11.1 Footer design credit */
.footer-credit { margin: 0; width: 100%; text-align: center; font-size: .85rem; color: var(--nxm-muted); }
.footer-credit a { color: var(--nxm-primary); font-weight: 700; }
.footer-credit a:hover { text-decoration: underline; text-underline-offset: 3px; }

/* v1.11.3 Footer credit: keep it visible and accent-colored (beats generic footer link rule) */
.site-footer .footer-bar .footer-credit { display: block; margin: 0; text-align: center; color: var(--nxm-muted); opacity: 1; visibility: visible; }
.site-footer .footer-bar .footer-credit a { color: var(--nxm-primary); font-weight: 700; }
