/* ==========================================================================
   APKASHOW Enterprise Theme - Production Bootstrap 5 Hybrid & CSS System
   ========================================================================== */

:root {
	/* Palette */
	--primary-orange: #FF5722;
	--primary-orange-hover: #E64A19;
	--primary-orange-light: rgba(255, 87, 34, 0.12);
	--accent-gold: #FFB300;
	--accent-red: #E53935;
	--whatsapp-green: #25D366;
	
	/* Light Mode */
	--bg-body: #F4F6F9;
	--bg-card: #FFFFFF;
	--bg-card-hover: #FFFFFF;
	--bg-header: #FFFFFF;
	--bg-secondary: #EBEFF5;
	--text-primary: #12151C;
	--text-secondary: #5A6275;
	--text-muted: #8C96A6;
	--border-color: #E2E8F0;
	--shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.05);
	--shadow-md: 0 10px 28px rgba(0, 0, 0, 0.08);
	--shadow-lg: 0 18px 45px rgba(0, 0, 0, 0.12);
	
	/* Layout */
	--container-max: 1380px;
	--radius-sm: 8px;
	--radius-md: 14px;
	--radius-lg: 22px;
	--font-main: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
	--font-heading: 'Plus Jakarta Sans', var(--font-main);
	--transition-fast: 0.22s cubic-bezier(0.4, 0, 0.2, 1);
	--transition-smooth: 0.38s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Base Styles */
*, *::before, *::after {
	box-sizing: border-box;
	margin: 0;
	padding: 0;
}

html {
	font-size: 16px;
	scroll-behavior: smooth;
}

body {
	font-family: var(--font-main);
	background-color: var(--bg-body);
	color: var(--text-primary);
	line-height: 1.65;
	overflow-x: hidden;
}

/* Body Scroll Lock Rule when Mobile Menu is Active */
body.drawer-open {
	overflow: hidden !important;
	height: 100vh !important;
	touch-action: none;
}

a {
	color: inherit;
	text-decoration: none;
	transition: all var(--transition-fast);
}

img {
	max-width: 100%;
	height: auto;
	display: block;
}

ul, ol {
	list-style: none;
}

.container {
	width: 100%;
	max-width: var(--container-max);
	margin: 0 auto;
	padding: 0 24px;
}

/* Reading Progress Bar */
#cinemax-reading-progress {
	position: fixed;
	top: 0;
	left: 0;
	height: 4px;
	background: linear-gradient(90deg, var(--primary-orange), var(--accent-gold));
	width: 0%;
	z-index: 99999;
	transition: width 0.1s ease-out;
}

/* Header & Navigation */
.site-header {
	position: sticky;
	top: 0;
	z-index: 1000;
	background-color: var(--bg-header);
	border-bottom: 1px solid var(--border-color);
	box-shadow: var(--shadow-sm);
	transition: background-color var(--transition-smooth);
}

.header-top-bar {
	background-color: #0B0D13;
	color: #A0AEC0;
	font-size: 0.88rem;
	padding: 8px 0;
}

.header-top-inner {
	display: flex;
	justify-content: space-between;
	align-items: center;
}

.top-bar-left {
	display: flex;
	align-items: center;
	gap: 16px;
}

/* Bootstrap 5 Style Gradient Buttons */
.whatsapp-community-btn, .btn-gradient-orange {
	background: linear-gradient(135deg, #25D366, #128C7E);
	color: #FFF !important;
	padding: 10px 22px;
	border-radius: 50px;
	font-weight: 700;
	font-size: 0.92rem;
	display: inline-flex;
	align-items: center;
	gap: 8px;
	border: none;
	cursor: pointer;
	box-shadow: 0 4px 15px rgba(37, 211, 102, 0.35);
	transition: all var(--transition-fast);
}

.whatsapp-community-btn:hover, .btn-gradient-orange:hover {
	transform: translateY(-3px) scale(1.02);
	box-shadow: 0 8px 22px rgba(37, 211, 102, 0.45);
}

.header-main {
	padding: 16px 0;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 30px;
	position: relative;
}

/* LARGER LOGO DISPLAY */
.site-logo img {
	height: 68px;
	max-height: 72px;
	width: auto;
	transition: transform var(--transition-fast);
}

.site-logo img:hover {
	transform: scale(1.03);
}

.mobile-menu-toggle {
	display: none;
	background: none;
	border: none;
	color: var(--text-primary);
	cursor: pointer;
	padding: 6px;
	z-index: 1005;
	position: relative;
}

/* ENLARGED MAIN MENU NAVIGATION */
.main-navigation {
	display: flex;
	align-items: center;
}

.main-menu {
	display: flex;
	align-items: center;
	gap: 28px;
}

.main-menu a {
	font-family: var(--font-heading);
	font-weight: 700;
	font-size: 1.12rem; /* ~18px */
	color: var(--text-primary);
	position: relative;
	padding: 12px 0;
	letter-spacing: -0.2px;
}

.main-menu a::after {
	content: '';
	position: absolute;
	bottom: 0;
	left: 0;
	width: 0;
	height: 3px;
	background: var(--primary-orange);
	transition: width var(--transition-fast);
	border-radius: 3px;
}

.main-menu a:hover::after, .main-menu .current-menu-item > a::after {
	width: 100%;
}

.main-menu a:hover {
	color: var(--primary-orange);
}

.main-menu .has-dropdown {
	position: relative;
}

.main-menu .has-dropdown:hover > .sub-menu {
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
}

.sub-menu {
	position: absolute;
	top: 100%;
	left: 0;
	min-width: 250px;
	background: var(--bg-card);
	border: 1px solid var(--border-color);
	border-radius: var(--radius-md);
	box-shadow: var(--shadow-lg);
	padding: 14px 0;
	opacity: 0;
	visibility: hidden;
	transform: translateY(12px);
	transition: all var(--transition-fast);
	z-index: 100;
}

.sub-menu a {
	display: block;
	padding: 10px 24px;
	font-size: 0.98rem;
	font-weight: 600;
}

.sub-menu a::after { display: none; }

.sub-menu a:hover {
	background: var(--primary-orange-light);
	color: var(--primary-orange);
}

/* Header Action Buttons */
.header-actions {
	display: flex;
	align-items: center;
	gap: 14px;
	z-index: 1005;
	position: relative;
}

.theme-toggle-btn, .search-trigger-btn {
	background: var(--bg-secondary);
	border: none;
	width: 46px;
	height: 46px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	color: var(--text-primary);
	cursor: pointer;
	transition: all var(--transition-fast);
}

.theme-toggle-btn:hover, .search-trigger-btn:hover {
	background: var(--primary-orange);
	color: #FFF;
	transform: scale(1.08);
}

/* MOBILE DRAWER OVERLAY & GPU TRANSLATE ENGINE (ZERO DISPLAY:NONE WEBKIT TRANSITION BUG) */
.mobile-drawer-overlay {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: rgba(0, 0, 0, 0.75);
	z-index: 999999;
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
	transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-drawer-overlay.active {
	opacity: 1 !important;
	visibility: visible !important;
	pointer-events: auto !important;
}

.mobile-drawer-content {
	position: absolute;
	top: 0;
	left: 0;
	bottom: 0;
	width: 320px;
	max-width: 85vw;
	background: var(--bg-card);
	padding: 30px 24px;
	overflow-y: auto;
	transform: translate3d(-100%, 0, 0);
	transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
	box-shadow: 0 0 35px rgba(0, 0, 0, 0.5);
	-webkit-overflow-scrolling: touch;
	will-change: transform;
}

.mobile-drawer-overlay.active .mobile-drawer-content {
	transform: translate3d(0, 0, 0) !important;
}

.mobile-drawer-close {
	position: absolute;
	top: 20px;
	right: 20px;
	background: none;
	border: none;
	font-size: 2rem;
	color: var(--text-primary);
	cursor: pointer;
}

.mobile-menu-list {
	display: flex;
	flex-direction: column;
	gap: 16px;
	font-size: 1.12rem;
	font-weight: 700;
}

.mobile-menu-list a {
	display: block;
	padding: 8px 0;
	color: var(--text-primary);
	border-bottom: 1px solid var(--border-color);
}

.mobile-menu-list a:hover {
	color: var(--primary-orange);
}

/* STRICTLY HIDE MOBILE DRAWER ON DESKTOP */
@media (min-width: 1025px) {
	.mobile-drawer-overlay, .mobile-menu-toggle {
		display: none !important;
		visibility: hidden !important;
		opacity: 0 !important;
		pointer-events: none !important;
	}
}

/* Breaking News Ticker */
.breaking-ticker-bar {
	background-color: var(--bg-card);
	border-bottom: 1px solid var(--border-color);
	padding: 10px 0;
	font-size: 0.92rem;
}

.ticker-inner {
	display: flex;
	align-items: center;
	gap: 16px;
	overflow: hidden;
}

.ticker-label {
	background-color: var(--accent-red);
	color: #FFF;
	font-weight: 800;
	font-size: 0.78rem;
	padding: 6px 14px;
	border-radius: var(--radius-sm);
	white-space: nowrap;
	animation: pulse-red 2s infinite;
}

@keyframes pulse-red {
	0% { opacity: 1; }
	50% { opacity: 0.75; }
	100% { opacity: 1; }
}

.ticker-content {
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	font-weight: 600;
}

/* RESTRUCTURED HERO BANNER (NO OVERLAPPING, FULLY RESPONSIVE) */
.hero-section {
	padding: 30px 0;
}

.hero-grid {
	display: grid;
	grid-template-columns: 1.8fr 1fr;
	gap: 28px;
	align-items: stretch;
}

.hero-main-card {
	background-color: var(--bg-card);
	border-radius: var(--radius-lg);
	overflow: hidden;
	border: 1px solid var(--border-color);
	box-shadow: var(--shadow-md);
	display: flex;
	flex-direction: column;
	transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.hero-main-card:hover {
	box-shadow: var(--shadow-lg);
}

.hero-media-wrapper {
	position: relative;
	width: 100%;
	aspect-ratio: 16 / 9;
	background-color: #0B0D13;
	overflow: hidden;
}

.hero-featured-image {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform var(--transition-smooth);
}

.hero-main-card:hover .hero-featured-image {
	transform: scale(1.04);
}

.hero-image-gradient {
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, rgba(0, 0, 0, 0) 50%, rgba(0, 0, 0, 0.4) 100%);
	pointer-events: none;
}

.hero-play-icon-center {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	z-index: 5;
	cursor: pointer;
}

.play-btn-circle-lg {
	width: 72px;
	height: 72px;
	background: var(--primary-orange);
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	color: #FFF;
	box-shadow: 0 6px 25px rgba(255, 87, 34, 0.55);
	transition: transform var(--transition-fast), background-color var(--transition-fast);
}

.hero-play-icon-center:hover .play-btn-circle-lg {
	transform: scale(1.12);
	background-color: var(--primary-orange-hover);
}

.hero-content-box {
	padding: 26px 30px;
	display: flex;
	flex-direction: column;
	justify-content: center;
	background-color: var(--bg-card);
	flex-grow: 1;
}

.hero-title {
	font-family: var(--font-heading);
	font-size: 1.85rem;
	font-weight: 800;
	line-height: 1.3;
	margin: 10px 0 14px;
	color: var(--text-primary);
}

.hero-title a {
	color: var(--text-primary);
	transition: color var(--transition-fast);
}

.hero-title a:hover {
	color: var(--primary-orange);
}

.hero-meta-row {
	display: flex;
	align-items: center;
	gap: 10px;
	font-size: 0.88rem;
	color: var(--text-muted);
	font-weight: 600;
}

.meta-dot {
	color: var(--primary-orange);
}

.hero-sidebar-grid {
	display: flex;
	flex-direction: column;
	gap: 16px;
	justify-content: space-between;
}

.hero-sidebar-card {
	background-color: var(--bg-card);
	border-radius: var(--radius-md);
	border: 1px solid var(--border-color);
	padding: 14px;
	display: flex;
	gap: 16px;
	align-items: center;
	box-shadow: var(--shadow-sm);
	transition: transform var(--transition-fast), border-color var(--transition-fast);
}

.hero-sidebar-card:hover {
	transform: translateY(-3px);
	border-color: var(--primary-orange);
}

.hero-sidebar-media {
	width: 125px;
	height: 85px;
	flex-shrink: 0;
	border-radius: var(--radius-sm);
	overflow: hidden;
	position: relative;
	background-color: #0B0D13;
}

.hero-sidebar-media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform var(--transition-smooth);
}

.hero-sidebar-card:hover .hero-sidebar-media img {
	transform: scale(1.08);
}

.hero-sidebar-info h4 {
	font-family: var(--font-heading);
	font-size: 1.02rem;
	font-weight: 700;
	line-height: 1.35;
	margin-bottom: 6px;
	color: var(--text-primary);
}

.hero-sidebar-info h4 a:hover {
	color: var(--primary-orange);
}

/* RESPONSIVE BREAKPOINTS FOR HERO BANNER */
@media (max-width: 1024px) {
	.hero-grid {
		grid-template-columns: 1fr;
		gap: 24px;
	}
	.hero-title {
		font-size: 1.6rem;
	}
}

@media (max-width: 640px) {
	.hero-content-box {
		padding: 18px 20px;
	}
	.hero-title {
		font-size: 1.35rem;
		line-height: 1.35;
	}
	.play-btn-circle-lg {
		width: 56px;
		height: 56px;
	}
	.hero-sidebar-card {
		padding: 10px;
	}
	.hero-sidebar-media {
		width: 100px;
		height: 72px;
	}
	.hero-sidebar-info h4 {
		font-size: 0.92rem;
	}
}

/* Cards */
.post-card {
	background-color: var(--bg-card);
	border-radius: var(--radius-md);
	overflow: hidden;
	border: 1px solid var(--border-color);
	box-shadow: var(--shadow-sm);
	transition: transform var(--transition-fast), box-shadow var(--transition-fast), border-color var(--transition-fast);
}

.post-card:hover {
	transform: translateY(-6px);
	box-shadow: var(--shadow-md);
	border-color: var(--primary-orange);
}

.card-media {
	position: relative;
	overflow: hidden;
	aspect-ratio: 16 / 9;
}

.card-media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform var(--transition-smooth);
}

.post-card:hover .card-media img {
	transform: scale(1.07);
}

.card-body {
	padding: 22px;
}

.card-title {
	font-family: var(--font-heading);
	font-size: 1.22rem;
	font-weight: 700;
	line-height: 1.35;
	margin-bottom: 12px;
}

.card-meta {
	display: flex;
	align-items: center;
	gap: 12px;
	font-size: 0.85rem;
	color: var(--text-muted);
}

/* Badges */
.cinemax-badges, .apkashow-badges {
	display: flex;
	gap: 6px;
	margin-bottom: 8px;
}

.badge {
	font-size: 0.72rem;
	font-weight: 800;
	padding: 5px 10px;
	border-radius: 4px;
	text-transform: uppercase;
	letter-spacing: 0.5px;
}

.badge-breaking { background: var(--accent-red); color: #FFF; }
.badge-trending { background: var(--primary-orange); color: #FFF; }
.badge-featured { background: #2196F3; color: #FFF; }
.badge-video { background: rgba(0,0,0,0.8); color: #FFF; backdrop-filter: blur(4px); }

/* Section Headers */
.section-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 26px;
	border-bottom: 2px solid var(--border-color);
	padding-bottom: 12px;
}

.section-title {
	font-family: var(--font-heading);
	font-size: 1.65rem;
	font-weight: 800;
	position: relative;
	display: flex;
	align-items: center;
	gap: 10px;
}

.section-title::after {
	content: '';
	position: absolute;
	bottom: -14px;
	left: 0;
	width: 70px;
	height: 3px;
	background: var(--primary-orange);
}

/* Short Videos Section Grid */
.videos-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
	gap: 22px;
}

.video-card {
	position: relative;
	border-radius: var(--radius-md);
	overflow: hidden;
	aspect-ratio: 9 / 16;
	cursor: pointer;
	box-shadow: var(--shadow-sm);
}

.video-card img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform var(--transition-smooth);
}

.video-card:hover img {
	transform: scale(1.08);
}

.play-icon-overlay {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.35);
	display: flex;
	align-items: center;
	justify-content: center;
	transition: background var(--transition-fast);
}

.play-btn-circle {
	width: 62px;
	height: 62px;
	background: var(--primary-orange);
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	color: #FFF;
	box-shadow: 0 4px 20px rgba(255, 87, 34, 0.5);
	transition: transform var(--transition-fast);
}

.video-card:hover .play-btn-circle {
	transform: scale(1.15);
}

/* WhatsApp CTA Banner */
.whatsapp-cta-banner {
	background: linear-gradient(135deg, #111B21, #0B141A);
	border: 1px solid rgba(37, 211, 102, 0.25);
	border-radius: var(--radius-lg);
	padding: 45px;
	margin: 50px 0;
	text-align: center;
	color: #FFF;
	box-shadow: 0 12px 35px rgba(0,0,0,0.3);
}

.whatsapp-cta-banner h2 {
	font-family: var(--font-heading);
	font-size: 2.2rem;
	font-weight: 800;
	margin-bottom: 12px;
}

/* Footer */
.site-footer {
	background-color: #07080B;
	color: #A0AEC0;
	padding: 70px 0 35px;
	margin-top: 60px;
	border-top: 1px solid rgba(255,255,255,0.08);
}

.footer-grid {
	display: grid;
	grid-template-columns: 2fr 1fr 1fr 1.5fr;
	gap: 40px;
	margin-bottom: 45px;
}

.footer-col h4 {
	color: #FFF;
	font-family: var(--font-heading);
	font-size: 1.15rem;
	margin-bottom: 22px;
}

.footer-bottom {
	border-top: 1px solid rgba(255,255,255,0.08);
	padding-top: 26px;
	display: flex;
	justify-content: space-between;
	align-items: center;
	font-size: 0.9rem;
}

/* Video & Live Search Pop-up Modals (CLEAN OPACITY & VISIBILITY TRANSITIONS) */
.video-modal-overlay {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: rgba(0, 0, 0, 0.92);
	z-index: 1000000;
	display: flex;
	align-items: center;
	justify-content: center;
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
	transition: opacity 0.3s ease, visibility 0.3s ease;
}

.video-modal-overlay.active {
	opacity: 1 !important;
	visibility: visible !important;
	pointer-events: auto !important;
}

.video-modal-container {
	position: relative;
	width: 90%;
	max-width: 960px;
	aspect-ratio: 16 / 9;
	background: #000;
	border-radius: var(--radius-md);
	overflow: hidden;
}

.video-modal-close {
	position: absolute;
	top: -42px;
	right: 0;
	color: #FFF;
	font-size: 2.2rem;
	cursor: pointer;
	background: none;
	border: none;
}

/* Responsive Breakpoints */
@media (max-width: 1024px) {
	.footer-grid { grid-template-columns: 1fr 1fr; }
	.main-navigation { display: none; }
	.mobile-menu-toggle { display: block !important; visibility: visible !important; }
}

@media (max-width: 640px) {
	.footer-grid { grid-template-columns: 1fr; }
	.footer-bottom { flex-direction: column; gap: 16px; text-align: center; }
}
