/* ==========================================================================
   FILMYCAB — Site skin for every page EXCEPT the homepage  (fch-site.css)
   Loaded when ! is_front_page(). Every rule is scoped to body.fch-site.

   1. Base (navy background, shared header wrapper)
   2. Category / tag / search / archive listing (index.php → .fch-archive)
   3. Shared headings colours (header2 / header4 / side-header)
   4. Single post — COLOURS / minor styling only (no layout changes)
   ========================================================================== */

/* ---------- 1. Base ---------- */

/* Grid / glow overlays from the old header are replaced by the homepage navy background */
body.fch-site::before,
body.fch-site::after { display: none !important; }

/* The header wrapper must not create a box, so the header stays sticky for the whole page */
body.fch-site .fch-chrome { display: contents; }

/* Existing 4K promo printed by header.php: same spacing as on the homepage */
body.fch-site > .fmc-4k-btn { margin: 14px auto 6px; }

/* ---------- 2. Listing pages: category / tag / search / archive ---------- */
body.fch-site .fch-archive .fch-main { padding-top: 10px; }
body.fch-site .fch-archive__head { margin-bottom: 14px; }
body.fch-site .fch-archive__title {
	font-size: 20px !important;
	font-weight: 800 !important;
	line-height: 1.25 !important;
	color: #fff;
	overflow-wrap: anywhere;
}
body.fch-site .fch-archive__title::before {
	content: '';
	flex: 0 0 auto;
	width: 4px;
	height: 1.1em;
	border-radius: 4px;
	background: var(--fch-grad);
	box-shadow: 0 0 10px rgba(168, 85, 247, 0.8);
}
@media (min-width: 900px) {
	body.fch-site .fch-archive__title { font-size: 26px !important; }
}
body.fch-site .fch-archive .fch-empty { padding: 30px 0; color: var(--fch-muted); text-align: center; }

/* Pagination (nx_pagination / the_posts_pagination markup) */
body.fch-site .fch-archive__pager { margin-top: 26px; }
body.fch-site .fch-archive__pager .pagination-wrap { text-align: center; }
body.fch-site .fch-archive__pager ul.pagination,
body.fch-site .fch-archive__pager .nav-links {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	align-items: center;
	gap: 8px;
	margin: 0;
	padding: 0;
	list-style: none;
}
body.fch-site .fch-archive__pager ul.pagination > li { display: block; margin: 0; padding: 0; }
body.fch-site .fch-archive__pager .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 4px;
	min-width: 40px;
	height: 40px;
	padding: 0 12px;
	border-radius: 10px;
	background: var(--fch-card);
	border: 1px solid var(--fch-line-2);
	color: #e6e4f2;
	font-size: 14px;
	font-weight: 600;
	text-decoration: none;
	float: none;
	transition: border-color 0.2s, color 0.2s;
}
body.fch-site .fch-archive__pager a.page-numbers:hover { border-color: var(--fch-violet); color: #fff; }
body.fch-site .fch-archive__pager .page-numbers.current { background: var(--fch-grad); border-color: transparent; color: #fff; box-shadow: var(--fch-glow); }
body.fch-site .fch-archive__pager .page-numbers.dots { background: none; border-color: transparent; min-width: 20px; padding: 0 4px; }
body.fch-site .fch-archive__pager .page-numbers .material-icons { font-size: 18px; line-height: 1; }

/* ---------- 3. Shared heading bars (colours only) ---------- */
body.fch-site .header2 {
	background: linear-gradient(90deg, rgba(124, 58, 237, 0.22), rgba(20, 18, 31, 0.92) 60%) !important;
	border-left: 3px solid var(--fch-violet-2);
	color: #fff !important;
}

/* ---------- 4. Single post — colours & minor styling ONLY ---------- */
/* (Structure, order and content of single.php are unchanged.) */

/* Section headings: MOVIE INFO / SCREENSHOT / DOWNLOAD … / RELATED MOVIES / sidebar */
body.fch-site.single .header4,
body.fch-site.single .side-header {
	background: linear-gradient(90deg, rgba(124, 58, 237, 0.26) 0%, rgba(20, 18, 31, 0.95) 55%, rgba(124, 58, 237, 0.26) 100%) !important;
	border: 1px solid rgba(167, 139, 250, 0.32) !important;
	border-radius: 10px !important;
	box-shadow: 0 0 16px rgba(139, 92, 246, 0.14) !important;
	color: #fff !important;
	-webkit-backdrop-filter: none !important;
	backdrop-filter: none !important;
}
body.fch-site.single .header3 { color: #fff !important; }

/* Movie info rows */
body.fch-site.single .article .l1 { border-bottom-color: rgba(167, 139, 250, 0.16) !important; }

/* Poster / screenshots frames */
body.fch-site.single .thumbb p { border-color: rgba(167, 139, 250, 0.5) !important; box-shadow: 0 0 18px rgba(139, 92, 246, 0.3); }
body.fch-site.single .article .ss img { border-color: rgba(167, 139, 250, 0.35) !important; border-radius: 8px; }
body.fch-site.single .cover img { border-bottom-color: rgba(139, 92, 246, 0.45) !important; }

/* Download containers */
body.fch-site.single .multiple-downloads-container,
body.fch-site.single .season-download-container {
	background: var(--fch-bg-2) !important;
	border: 1px solid rgba(167, 139, 250, 0.18);
}
body.fch-site.single .season-download-container { border-left: 5px solid var(--fch-violet) !important; }
body.fch-site.single .season-title-red { color: var(--fch-violet-3) !important; }
body.fch-site.single .quality-download-box {
	background: linear-gradient(180deg, #1a1826 0%, #12111b 100%) !important;
	border: 1px solid var(--fch-line-2) !important;
}
body.fch-site.single .quality-download-box:hover {
	background: linear-gradient(180deg, #1f1c2e 0%, #15131f 100%) !important;
	border-color: var(--fch-violet) !important;
	box-shadow: 0 0 18px rgba(139, 92, 246, 0.3);
}

/* Download buttons: red → purple (links untouched; inline-coloured buttons keep their colour) */
body.fch-site.single .dlbtn-sm,
body.fch-site.single .bg1,
body.fch-site.single .custom-btn-red {
	background: var(--fch-grad);
	box-shadow: 0 0 0 1px rgba(196, 181, 253, 0.3) inset, 0 4px 16px rgba(139, 92, 246, 0.4);
}
body.fch-site.single .dlbtn-sm:hover,
body.fch-site.single .bg1:hover,
body.fch-site.single .custom-btn-red:hover {
	background: linear-gradient(135deg, #8b5cf6 0%, #c084fc 100%);
	box-shadow: 0 0 0 1px rgba(221, 214, 254, 0.45) inset, 0 6px 22px rgba(139, 92, 246, 0.6);
}

/* Inline red accents in the download area (file sizes) → light purple */
body.fch-site.single .desc [style*="color: #ff4444"] { color: var(--fch-violet-3) !important; }
body.fch-site.single .desc [style*="background: #1a1a1a"] {
	background: var(--fch-card) !important;
	border: 1px solid rgba(167, 139, 250, 0.3);
}

/* Related movies: same cards, cleaner frame + readable small titles (no markup change) */
body.fch-site.single .related-wrapper .thumb figure {
	background: var(--fch-card) !important;
	border: 1px solid rgba(167, 139, 250, 0.3) !important;
	border-radius: 12px !important;
	box-shadow: 0 0 12px rgba(139, 92, 246, 0.12);
}
body.fch-site.single .related-wrapper .thumb figure:hover { border-color: var(--fch-violet) !important; box-shadow: 0 0 18px rgba(139, 92, 246, 0.35); }
body.fch-site.single .related-wrapper .thumb img {
	height: auto !important;
	aspect-ratio: 2 / 3;
	object-fit: cover;
	display: block;
	border-radius: 11px;
}
body.fch-site.single .related-wrapper figcaption {
	background: linear-gradient(0deg, rgba(5, 5, 10, 0.95) 0%, rgba(5, 5, 10, 0.7) 60%, rgba(5, 5, 10, 0) 100%) !important;
	padding: 18px 4px 2px;
}
body.fch-site.single .related-wrapper figcaption p {
	font-size: 13px !important;
	font-weight: 600 !important;
	line-height: 1.35 !important;
	margin: 4px 4px 8px !important;
	padding: 0 !important;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}
body.fch-site.single .related-wrapper .quality,
body.fch-site.single .related-wrapper .lang {
	border-radius: 999px;
	padding: 2px 7px;
	font-weight: 700;
	max-width: calc(100% - 10px);
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	vertical-align: bottom;
}
body.fch-site.single .related-wrapper .quality { background: #166534; border: 1px solid rgba(134, 239, 172, 0.55); }
body.fch-site.single .related-wrapper .lang { background: #1e40af; border: 1px solid rgba(147, 197, 253, 0.35); }
body.fch-site.single .related-wrapper .thumb-hover .btn { background: var(--fch-grad); border: 0; }

/* Sidebar */
body.fch-site.single .share_btn a {
	background: var(--fch-card-2) !important;
	border: 1px solid var(--fch-line-2);
	border-radius: 10px;
}
body.fch-site.single .share_btn a:hover { border-color: var(--fch-violet); opacity: 1; }
body.fch-site.single .side-search input[type=search] { border: 1px solid var(--fch-line-2); background: #fff; }
body.fch-site.single .side-search input[type=submit] { background: var(--fch-grad); color: #fff; }
body.fch-site.single .side-cat-name {
	background: var(--fch-card-2) !important;
	border: 1px solid var(--fch-line-2);
	border-radius: 8px;
	color: #eceaf6;
	transition: border-color 0.2s;
}
body.fch-site.single a:hover .side-cat-name { border-color: var(--fch-violet); opacity: 1; }
body.fch-site.single .artist-mv {
	background: var(--fch-card) !important;
	border: 1px solid var(--fch-line);
	border-radius: 10px;
}
body.fch-site.single .artist-mv img { object-fit: cover; }
body.fch-site.single .fname { color: var(--fch-violet-3); }
body.fch-site.single .bcrumb {
	background: var(--fch-card) !important;
	border: 1px solid var(--fch-line);
	border-radius: 10px;
}
body.fch-site.single .bcrumb a { color: var(--fch-violet-3); }
