/**
 * Drama Studio - Header, Navigation & Responsive Stylesheet
 * 
 * Version: 1.0.0
 * Focus: Mobile Navigation Drawer, Search Dropdown, and Viewport Breakpoints
 */

/* ==========================================================================
   1. Site Header & Desktop Navigation
   ========================================================================== */
.site-header {
	position: sticky;
	top: 0;
	z-index: 1000;
	background: rgba(var(--color-bg-base-rgb, 8, 7, 19), 0.92);
	backdrop-filter: blur(20px);
	-webkit-backdrop-filter: blur(20px);
	border-bottom: 1px solid var(--color-border-subtle, rgba(139, 92, 246, 0.2));
	box-shadow: 0 4px 25px rgba(0, 0, 0, 0.55);
	transition: background-color var(--transition-normal);
}

.header-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	height: 72px;
	gap: 16px;
}

/* Site Branding */
.site-branding {
	display: flex;
	align-items: center;
	flex-shrink: 0;
}

.site-logo img {
	max-height: 44px;
	width: auto;
	transition: transform 0.25s ease;
}

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

.site-title {
	font-family: var(--font-heading);
	font-size: 1.625rem;
	font-weight: 800;
	letter-spacing: -0.02em;
	line-height: 1;
	margin: 0;
}

.site-title a {
	background: linear-gradient(135deg, #06b6d4 0%, #a855f7 50%, #ec4899 100%);
	-webkit-background-clip: text;
	background-clip: text;
	-webkit-text-fill-color: transparent;
	display: inline-block;
	text-decoration: none;
	text-shadow: 0 0 25px rgba(168, 85, 247, 0.35);
}

/* Desktop Primary Navigation: Clean Transparent Layout (No Outer Box) */
.main-navigation {
	display: flex;
	align-items: center;
}

.main-navigation .nav-menu {
	display: flex;
	align-items: center;
	gap: 6px;
	list-style: none;
	margin: 0;
	padding: 0;
	background: transparent !important;
	border: none !important;
	box-shadow: none !important;
	backdrop-filter: none !important;
	-webkit-backdrop-filter: none !important;
}

.main-navigation .menu-item {
	position: relative;
}

.main-navigation .menu-item a {
	display: inline-flex;
	align-items: center;
	padding: 8px 18px;
	border-radius: 9999px;
	font-family: 'Kantumruy Pro', 'Content', system-ui, -apple-system, sans-serif;
	font-size: 0.93rem;
	font-weight: 600;
	color: #94a3b8;
	text-decoration: none;
	border: 1px solid transparent;
	background: transparent;
	transition: all 0.22s cubic-bezier(0.18, 0.9, 0.28, 1);
	position: relative;
	white-space: nowrap;
	letter-spacing: 0.2px;
}

/* Remove Menu Icons completely */
.nav-item-icon {
	display: none !important;
}

.nav-item-label {
	display: inline-block;
	line-height: 1.3;
}

/* Menu Hover State: Subtle text glow without box */
.main-navigation .menu-item a:hover {
	color: #ffffff;
	background: rgba(255, 255, 255, 0.06);
	border-color: rgba(255, 255, 255, 0.1);
}

/* Menu Active / Clicked State: Only the active item gets the Violet Gradient Glassmorphism effect */
.main-navigation .menu-item.current-menu-item > a,
.main-navigation .menu-item.current_page_item > a,
.main-navigation .menu-item.active > a {
	color: #ffffff !important;
	font-weight: 700;
	background: linear-gradient(135deg, rgba(34, 13, 99, 0.92) 0%, rgba(21, 7, 69, 0.92) 50%, rgba(12, 4, 46, 0.95) 100%) !important;
	border: 1px solid rgba(139, 92, 246, 0.45) !important;
	backdrop-filter: blur(14px);
	-webkit-backdrop-filter: blur(14px);
	box-shadow: 0 4px 18px rgba(124, 58, 237, 0.35), inset 0 1px 1px rgba(255, 255, 255, 0.18) !important;
}

.main-navigation .menu-item.current-menu-item > a::after,
.main-navigation .menu-item.current_page_item > a::after,
.main-navigation .menu-item.active > a::after {
	content: '';
	position: absolute;
	bottom: 3px;
	left: 50%;
	transform: translateX(-50%);
	width: 22px;
	height: 2.5px;
	background: linear-gradient(90deg, #00f0ff, #ec4899);
	border-radius: 99px;
	box-shadow: 0 0 10px rgba(0, 240, 255, 0.9);
}

/* Dropdown Sub-menus */
.main-navigation .menu-item-has-children:hover > .sub-menu {
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
}

.main-navigation .sub-menu {
	position: absolute;
	top: calc(100% + 8px);
	left: 0;
	min-width: 200px;
	background: #0d0b1f;
	border: 1px solid rgba(168, 85, 247, 0.25);
	border-radius: 14px;
	box-shadow: 0 15px 35px rgba(0, 0, 0, 0.85);
	padding: 8px;
	list-style: none;
	margin: 0;
	opacity: 0;
	visibility: hidden;
	transform: translateY(6px);
	transition: all 0.2s cubic-bezier(0.18, 0.9, 0.28, 1);
	z-index: 1005;
	backdrop-filter: blur(14px);
}

.main-navigation .sub-menu li a {
	border-radius: 8px;
	width: 100%;
	padding: 8px 12px;
}

.mobile-nav-header {
	display: none;
}

/* ==========================================================================
   2. Desktop Right Group: Capsule Search & Auth Register Button
   ========================================================================== */
.header-right-group {
	display: flex;
	align-items: center;
	gap: 12px;
}

/* Desktop Capsule Search Bar (Sleek Glassmorphism with Neon Glow) */
.header-desktop-search {
	position: relative;
	display: flex;
	align-items: center;
	background: rgba(255, 255, 255, 0.05);
	border: 1px solid rgba(255, 255, 255, 0.12);
	border-radius: 9999px;
	height: 42px;
	width: 230px;
	padding: 0 14px 0 6px;
	transition: all 0.3s cubic-bezier(0.18, 0.9, 0.28, 1);
}

.header-desktop-search:focus-within {
	width: 285px;
	background: rgba(15, 12, 32, 0.95);
	border-color: rgba(168, 85, 247, 0.75);
	box-shadow: 0 0 20px rgba(168, 85, 247, 0.35), inset 0 0 10px rgba(168, 85, 247, 0.1);
}

.header-desktop-search .search-submit-btn {
	background: transparent;
	border: none;
	color: #94a3b8;
	width: 32px;
	height: 32px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	flex-shrink: 0;
	transition: all 0.2s ease;
	padding: 0;
}

.header-desktop-search:focus-within .search-submit-btn,
.header-desktop-search .search-submit-btn:hover {
	color: #38bdf8;
	transform: scale(1.1);
}

.header-desktop-search .desktop-search-input {
	background: transparent;
	border: none;
	outline: none;
	color: #ffffff;
	font-size: 0.875rem;
	font-family: inherit;
	width: 100%;
	padding-left: 6px;
}

.header-desktop-search .desktop-search-input::placeholder {
	color: #94a3b8;
	font-size: 0.8125rem;
}

/* Register & Auth Controls (Right of Search Bar) */
.header-auth-controls {
	display: flex;
	align-items: center;
	gap: 10px;
}

.header-login-btn {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	padding: 0 16px;
	height: 42px;
	border-radius: 9999px;
	background: rgba(124, 58, 237, 0.12);
	border: 1px solid rgba(139, 92, 246, 0.45);
	color: #ffffff !important;
	font-size: 0.875rem;
	font-weight: 700;
	cursor: pointer;
	text-decoration: none;
	backdrop-filter: blur(10px);
	transition: all 0.25s cubic-bezier(0.18, 0.9, 0.28, 1);
	white-space: nowrap;
}

.header-login-btn:hover {
	background: rgba(124, 58, 237, 0.25);
	border-color: rgba(168, 85, 247, 0.75);
	transform: translateY(-2px);
	box-shadow: 0 4px 20px rgba(139, 92, 246, 0.4);
	color: #ffffff !important;
}

.header-login-btn .auth-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	color: #c084fc;
	font-size: 1.15rem;
}

.header-login-btn .auth-icon svg {
	width: 1.15em;
	height: 1.15em;
}

.header-register-btn {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 0 18px;
	height: 42px;
	border-radius: 9999px;
	background: linear-gradient(135deg, #7c3aed 0%, #4f46e5 100%);
	border: 1px solid rgba(255, 255, 255, 0.22);
	color: #ffffff !important;
	font-size: 0.875rem;
	font-weight: 700;
	text-decoration: none;
	box-shadow: 0 4px 18px rgba(124, 58, 237, 0.45);
	transition: all 0.25s cubic-bezier(0.18, 0.9, 0.28, 1);
	white-space: nowrap;
}

.header-register-btn:hover {
	transform: translateY(-2px);
	box-shadow: 0 6px 24px rgba(124, 58, 237, 0.7), 0 0 15px rgba(6, 182, 212, 0.4);
	border-color: rgba(255, 255, 255, 0.4);
	color: #ffffff !important;
}

.header-register-btn .auth-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-size: 1.15rem;
}

.header-register-btn .auth-icon svg {
	width: 1.15em;
	height: 1.15em;
}

/* User Pill (When Logged In) */
.header-user-pill {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	height: 42px;
	padding: 0 14px;
	border-radius: 9999px;
	background: rgba(255, 255, 255, 0.06);
	border: 1px solid rgba(168, 85, 247, 0.3);
	color: #ffffff !important;
	text-decoration: none;
	font-size: 0.875rem;
	font-weight: 600;
	transition: all 0.2s ease;
}

.header-user-pill:hover {
	background: rgba(168, 85, 247, 0.15);
	border-color: #a855f7;
	box-shadow: 0 0 14px rgba(168, 85, 247, 0.3);
}

.header-user-pill .auth-icon {
	color: #38bdf8;
	font-size: 1.25rem;
	display: inline-flex;
}

.header-user-pill .auth-name {
	max-width: 120px;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.header-logout-icon-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.05);
	border: 1px solid rgba(255, 255, 255, 0.1);
	color: #94a3b8;
	text-decoration: none;
	transition: all 0.2s ease;
}

.header-logout-icon-btn:hover {
	background: rgba(239, 68, 68, 0.2);
	border-color: rgba(239, 68, 68, 0.5);
	color: #ef4444;
}

/* ==========================================================================
   3. Header Actions & Mobile Search Controller
   ========================================================================== */
.header-actions {
	display: none;
	align-items: center;
	gap: var(--space-sm);
	position: relative;
}

.search-toggle-btn {
	background: transparent;
	border: 1px solid var(--color-border-subtle);
	color: var(--color-text-muted);
	width: 40px;
	height: 40px;
	border-radius: var(--radius-md);
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	transition: all var(--transition-fast);
}

.search-toggle-btn:hover,
.search-toggle-btn[aria-expanded="true"] {
	background-color: var(--color-bg-card);
	color: #ffffff;
	border-color: rgba(255, 255, 255, 0.2);
}

.header-search-container {
	position: absolute;
	top: calc(100% + 14px);
	right: 0;
	width: 320px;
	background-color: var(--color-bg-surface);
	border: 1px solid var(--color-border-subtle);
	border-radius: var(--radius-lg);
	padding: var(--space-sm);
	box-shadow: var(--shadow-lg);
	opacity: 0;
	visibility: hidden;
	transform: translateY(-8px);
	transition: all var(--transition-normal);
	z-index: 1005;
}

.header-search-container.is-open {
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
}

.header-search-form {
	display: flex;
	align-items: center;
	gap: var(--space-xs);
	position: relative;
}

.header-search-form .search-submit {
	position: absolute;
	right: 8px;
	top: 50%;
	transform: translateY(-50%);
	background: transparent;
	border: none;
	color: var(--color-text-muted);
	cursor: pointer;
	padding: 4px;
	display: flex;
	align-items: center;
	justify-content: center;
}

.header-search-form .search-submit:hover {
	color: var(--color-primary);
}

/* ==========================================================================
   3. Hamburger Toggle Button
   ========================================================================== */
.menu-toggle {
	display: none;
	background: transparent;
	border: 1px solid var(--color-border-subtle);
	border-radius: var(--radius-md);
	width: 42px;
	height: 42px;
	padding: 8px;
	cursor: pointer;
	align-items: center;
	justify-content: center;
	color: #ffffff;
	transition: background-color var(--transition-fast);
}

.hamburger-box {
	width: 22px;
	height: 16px;
	display: inline-block;
	position: relative;
}

.hamburger-inner,
.hamburger-inner::before,
.hamburger-inner::after {
	width: 22px;
	height: 2px;
	background-color: currentColor;
	border-radius: 2px;
	position: absolute;
	transition: transform var(--transition-normal), opacity var(--transition-fast);
}

.hamburger-inner {
	top: 50%;
	transform: translateY(-50%);
}

.hamburger-inner::before,
.hamburger-inner::after {
	content: '';
}

.hamburger-inner::before {
	top: -7px;
}

.hamburger-inner::after {
	bottom: -7px;
}

/* Active hamburger animation */
.menu-toggle[aria-expanded="true"] .hamburger-inner {
	background-color: transparent;
}

.menu-toggle[aria-expanded="true"] .hamburger-inner::before {
	transform: translateY(7px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] .hamburger-inner::after {
	transform: translateY(-7px) rotate(-45deg);
}

/* Mobile Drawer Backdrop */
.site-backdrop-overlay {
	position: fixed;
	inset: 0;
	background: rgba(0, 0, 0, 0.75);
	backdrop-filter: blur(4px);
	z-index: 1010;
	opacity: 0;
	visibility: hidden;
	transition: opacity var(--transition-normal), visibility var(--transition-normal);
}

.site-backdrop-overlay.is-visible {
	opacity: 1;
	visibility: visible;
}

body.menu-is-open {
	overflow: hidden;
}

/* ==========================================================================
   4. Footer Layout & Styles
   ========================================================================== */
.site-footer {
	margin-top: 36px;
	background: #090814;
	border-top: 1px solid rgba(255, 255, 255, 0.08);
	padding: 24px 0;
	color: #94a3b8;
	position: relative;
}

.site-footer::before {
	display: none !important;
}

.footer-widgets-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
	gap: 28px;
	margin-bottom: 24px;
	padding-bottom: 20px;
	border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.footer-widget-column .widget-title {
	font-size: 1.05rem;
	margin-bottom: 12px;
	color: #ffffff;
	border-left: 3px solid #8b5cf6;
	padding-left: 8px;
}

.footer-disclaimer {
	padding: 12px 18px;
	background: rgba(0, 0, 0, 0.25);
	border-radius: 8px;
	border: 1px solid rgba(255, 255, 255, 0.06);
	margin-bottom: 20px;
}

.footer-disclaimer p {
	font-size: 0.8125rem;
	color: #64748b;
	line-height: 1.6;
	margin: 0;
}

/* Footer Bottom Bar: Single row, NO second divider line, tight clean spacing */
.footer-bottom {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding-top: 0 !important;
	border-top: none !important;
	gap: 16px;
}

.copyright-text {
	margin: 0;
	font-size: 0.85rem;
	color: #94a3b8;
	font-family: 'Kantumruy Pro', 'Content', system-ui, -apple-system, sans-serif;
}

.copyright-text a {
	color: #cbd5e1;
	text-decoration: none;
	font-weight: 600;
	transition: color 0.2s ease;
}

.copyright-text a:hover {
	color: #a855f7;
}

.footer-links-list {
	display: flex;
	align-items: center;
	gap: 20px;
	list-style: none;
	margin: 0;
	padding: 0;
}

.footer-links-list a {
	font-size: 0.86rem;
	font-weight: 500;
	color: #94a3b8;
	text-decoration: none;
	font-family: 'Kantumruy Pro', 'Content', system-ui, -apple-system, sans-serif;
	transition: color 0.2s ease;
}

.footer-links-list a:hover {
	color: #ffffff;
}

/* Remove bottom margin on the last section on homepage to avoid excessive gap */
.front-page-layout > .home-section:last-of-type {
	margin-bottom: 0 !important;
}

@media (max-width: 640px) {
	.site-footer {
		margin-top: 24px;
		padding: 20px 0;
	}
	.footer-bottom {
		flex-direction: column;
		text-align: center;
		gap: 12px;
	}
	.footer-links-list {
		justify-content: center;
		gap: 14px;
		flex-wrap: wrap;
	}
}

/* ==========================================================================
   5. Responsive Breakpoints & Mobile Drawer System (No Stuck Menu!)
   ========================================================================== */

/* Root Level Mobile Drawer Wrapper */
.mobile-drawer-wrapper {
	position: fixed;
	inset: 0;
	z-index: 999999; /* Always on top, completely detached from sticky headers */
	pointer-events: none;
	visibility: hidden;
	transition: visibility 0.3s ease;
}

.mobile-drawer-wrapper.is-active {
	pointer-events: auto;
	visibility: visible;
}

.mobile-drawer-backdrop {
	position: absolute;
	inset: 0;
	background: rgba(3, 2, 10, 0.78);
	opacity: 0;
	transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1);
	z-index: 1;
}

.mobile-drawer-wrapper.is-active .mobile-drawer-backdrop {
	opacity: 1;
}

/* Mobile Drawer Off-Canvas Container */
.mobile-navigation-drawer {
	position: absolute;
	top: 0;
	right: 0;
	width: 320px;
	max-width: 86vw;
	height: 100%;
	height: 100dvh;
	background: #0d0b21 !important; /* Solid, crisp dark cinema base - zero blur, zero transparency issues */
	border-left: 1px solid rgba(168, 85, 247, 0.4);
	box-shadow: -15px 0 45px rgba(0, 0, 0, 0.95), -2px 0 20px rgba(168, 85, 247, 0.3);
	display: flex;
	flex-direction: column;
	padding: 20px 18px 28px 18px;
	transform: translateX(105%);
	transition: transform 0.32s cubic-bezier(0.16, 1, 0.3, 1);
	overflow-y: auto;
	-webkit-overflow-scrolling: touch;
	z-index: 10;
}

.mobile-drawer-wrapper.is-active .mobile-navigation-drawer {
	transform: translateX(0);
}

/* Neon Glow Effect along the left border of Drawer */
.mobile-navigation-drawer::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	bottom: 0;
	width: 2px;
	background: linear-gradient(180deg, #ec4899 0%, #a855f7 50%, #06b6d4 100%);
	box-shadow: 0 0 12px rgba(168, 85, 247, 0.9), 0 0 24px rgba(236, 72, 153, 0.5);
	pointer-events: none;
}

/* Mobile Drawer Header */
.mobile-nav-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding-bottom: 14px;
	margin-bottom: 16px;
	border-bottom: 1px solid rgba(168, 85, 247, 0.2);
}

.mobile-nav-brand {
	display: flex;
	align-items: center;
	gap: 8px;
}

.mobile-brand-glow-dot {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: #06b6d4;
	box-shadow: 0 0 10px #06b6d4, 0 0 20px #a855f7;
	animation: dsBrandPulse 2s infinite ease-in-out;
}

@keyframes dsBrandPulse {
	0%, 100% { opacity: 0.6; transform: scale(0.9); }
	50% { opacity: 1; transform: scale(1.25); box-shadow: 0 0 16px #06b6d4, 0 0 26px #ec4899; }
}

.mobile-nav-title {
	font-family: var(--font-heading);
	font-size: 1.15rem;
	font-weight: 800;
	letter-spacing: -0.01em;
	background: linear-gradient(135deg, #ffffff 0%, #cbd5e1 100%);
	-webkit-background-clip: text;
	background-clip: text;
	-webkit-text-fill-color: transparent;
	margin: 0;
}

.mobile-nav-close {
	background: rgba(255, 255, 255, 0.05);
	border: 1px solid rgba(255, 255, 255, 0.12);
	color: #94a3b8;
	width: 34px;
	height: 34px;
	border-radius: 10px;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	padding: 0;
	transition: all 0.2s ease;
}

.mobile-nav-close:hover {
	background: rgba(239, 68, 68, 0.2);
	border-color: rgba(239, 68, 68, 0.5);
	color: #ffffff;
	transform: rotate(90deg);
}

/* Mobile Drawer Nav List */
.mobile-navigation-drawer .nav-menu {
	display: flex;
	flex-direction: column;
	align-items: stretch;
	gap: 6px;
	list-style: none;
	margin: 0;
	padding: 0;
}

.mobile-navigation-drawer .menu-item {
	position: relative;
}

.mobile-navigation-drawer .menu-item a {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 12px 14px;
	border-radius: 12px;
	color: #cbd5e1;
	font-size: 0.9375rem;
	font-weight: 600;
	text-decoration: none;
	background: rgba(255, 255, 255, 0.02);
	border: 1px solid rgba(255, 255, 255, 0.04);
	position: relative;
	overflow: hidden;
	transition: all 0.25s cubic-bezier(0.18, 0.9, 0.28, 1);
}

.mobile-navigation-drawer .menu-item a:hover {
	color: #ffffff;
	background: rgba(168, 85, 247, 0.12);
	border-color: rgba(168, 85, 247, 0.3);
	transform: translateX(4px);
}

/* Neon Glow Effect on Active Nav Item in Drawer */
.mobile-navigation-drawer .menu-item.current-menu-item > a,
.mobile-navigation-drawer .menu-item.current_page_item > a {
	color: #ffffff;
	background: linear-gradient(90deg, rgba(168, 85, 247, 0.22) 0%, rgba(6, 182, 212, 0.1) 100%);
	border-color: rgba(168, 85, 247, 0.5);
	box-shadow: 0 0 20px rgba(168, 85, 247, 0.35), inset 0 0 10px rgba(168, 85, 247, 0.15);
}

.mobile-navigation-drawer .menu-item.current-menu-item > a::before,
.mobile-navigation-drawer .menu-item.current_page_item > a::before {
	content: '';
	position: absolute;
	left: 0;
	top: 6px;
	bottom: 6px;
	width: 3px;
	border-radius: 4px;
	background: linear-gradient(180deg, #ec4899, #a855f7);
	box-shadow: 0 0 8px #a855f7, 0 0 14px #ec4899;
}

.mobile-navigation-drawer .nav-item-icon {
	color: #c084fc;
	font-size: 1.15rem;
	transition: transform 0.2s ease, filter 0.2s ease;
}

.mobile-navigation-drawer .menu-item.current-menu-item .nav-item-icon {
	color: #38bdf8;
	filter: drop-shadow(0 0 8px rgba(56, 189, 248, 0.8));
}

/* Tablet & Mobile Breakpoints (<= 1024px) */
@media (max-width: 1024px) {
	.desktop-navigation {
		display: none !important;
	}

	.header-actions {
		display: flex;
	}

	.menu-toggle {
		display: flex;
		align-items: center;
		justify-content: center;
		width: 40px;
		height: 40px;
		border-radius: 12px;
		background: rgba(255, 255, 255, 0.05);
		border: 1px solid rgba(168, 85, 247, 0.3);
		color: #ffffff;
		box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
	}

	.menu-toggle:hover {
		border-color: rgba(168, 85, 247, 0.6);
		box-shadow: 0 0 14px rgba(168, 85, 247, 0.35);
	}

	.header-right-group {
		display: none;
	}

	.footer-widgets-grid {
		grid-template-columns: 1fr;
		gap: var(--space-xl);
	}
}

/* Hide mobile-drawer elements on Desktop (> 1024px) */
@media (min-width: 1025px) {
	.mobile-drawer-wrapper {
		display: none !important;
	}
}

@media (max-width: 767px) {
	.header-inner {
		height: 62px;
	}

	.header-search-container {
		width: calc(100vw - 2rem);
	}

	/* Mobile Edge-to-Edge Fluid Container: Remove wasted blank gutters and expand screen utilization */
	.site-container,
	.neatidrama-container,
	.hero-details-container,
	.archive-container {
		padding-left: 8px !important;
		padding-right: 8px !important;
		max-width: 100% !important;
		width: 100% !important;
		box-sizing: border-box !important;
	}

	.front-page-layout {
		padding-top: 4px !important;
	}

	.home-section {
		margin-bottom: 1.5rem !important;
	}

	/* Maximize Mobile Grid: Posters are bigger, bolder, and fill the screen */
	.drama-card-grid,
	.neatidrama-posters-grid-6 {
		grid-template-columns: repeat(2, 1fr) !important;
		gap: 8px !important; /* Tight, modern cinema grid gap */
		width: 100% !important;
	}

	/* Compact, Clean & Non-wrapping Section Headers for Mobile (Khmer Safe) */
	.section-header {
		padding: 0.65rem 0.85rem !important;
		margin-bottom: 0.85rem !important;
		border-radius: 12px !important;
		display: flex !important;
		flex-direction: row !important;
		flex-wrap: nowrap !important; /* STRICTLY 1 LINE - NEVER WRAP OR STACK OVER EACH OTHER */
		align-items: center !important;
		justify-content: space-between !important;
		gap: 8px !important;
		min-height: 52px !important;
		width: 100% !important;
		box-sizing: border-box !important;
		overflow: visible !important;
	}

	.section-title-wrap {
		display: inline-flex !important;
		align-items: center !important;
		gap: 0.5rem !important;
		min-width: 0 !important;
		flex: 1 1 auto !important; /* Take remaining space */
		overflow: visible !important; /* Never clip Khmer vowel or subscript foot */
	}

	.section-accent-bar {
		width: 4px !important;
		height: 22px !important;
		border-radius: 4px !important;
		flex-shrink: 0 !important;
	}

	.section-title {
		font-size: var(--home-section-title-size-mobile, 0.95rem) !important;
		font-weight: var(--home-section-title-weight, 700) !important;
		color: var(--home-section-title-color, #ffffff) !important;
		white-space: nowrap !important;
		overflow: visible !important; /* Never clip bottom or top Khmer glyphs */
		line-height: 1.65 !important; /* Generous height for full Khmer vowel and foot rendering */
		letter-spacing: normal !important;
		margin: 0 !important;
		padding: 4px 0 6px 0 !important;
		display: inline-block !important;
		vertical-align: middle !important;
	}

	.section-header-actions {
		display: inline-flex !important;
		align-items: center !important;
		gap: 6px !important;
		flex-shrink: 0 !important; /* Keep buttons intact on the right */
	}

	.section-view-all {
		font-size: 0.75rem !important;
		gap: 0.2rem !important;
		white-space: nowrap !important;
		color: #a855f7 !important;
		padding: 3px 6px !important;
		border-radius: 6px !important;
		background: rgba(168, 85, 247, 0.08) !important;
		border: 1px solid rgba(168, 85, 247, 0.2) !important;
	}

	.section-view-all:hover {
		background: rgba(168, 85, 247, 0.18) !important;
		color: #ffffff !important;
	}

	.section-slider-nav {
		display: inline-flex !important;
		align-items: center !important;
		gap: 4px !important;
	}

	.slider-arrow-btn {
		width: 26px !important;
		height: 26px !important;
		border-radius: 6px !important;
		padding: 0 !important;
	}

	.slider-arrow-btn svg {
		width: 11px !important;
		height: 11px !important;
	}

	/* Uniform 2:3 Poster Ratio & Balanced Card Details */
	.drama-card {
		width: 100% !important;
	}

	.drama-card-thumbnail {
		aspect-ratio: 2 / 3 !important;
		border-radius: 12px !important;
		width: 100% !important;
	}

	.card-poster-img {
		aspect-ratio: 2 / 3 !important;
		object-fit: cover !important;
		width: 100% !important;
		height: 100% !important;
		display: block !important;
	}

	.card-details {
		padding: 6px 1px 0 1px !important;
	}

	.card-title {
		font-size: 0.885rem !important;
		font-weight: 700 !important;
		line-height: 1.6 !important;
		margin: 4px 0 2px 0 !important;
		/* 2-line clamp with full Khmer vowel/subscript safety */
		display: -webkit-box !important;
		-webkit-line-clamp: 2 !important;
		line-clamp: 2 !important;
		-webkit-box-orient: vertical !important;
		overflow: hidden !important;
		word-break: break-word !important;
		padding-top: 2px !important;
		padding-bottom: 6px !important;
		min-height: 3.3em !important;
	}

	.card-meta {
		gap: 0.35rem !important;
	}

	.card-year {
		font-size: 0.725rem !important;
		color: #94a3b8;
	}

	.card-top-badges {
		top: 6px !important;
		left: 6px !important;
		right: 6px !important;
		gap: 4px !important;
	}

	.card-bottom-badges {
		bottom: 6px !important;
		right: 6px !important;
		gap: 4px !important;
	}

	.badge-rating,
	.badge-status {
		font-size: 0.625rem !important;
		padding: 2px 5px !important;
		border-radius: 4px !important;
	}

	.badge-episodes,
	.badge-sub,
	.badge-hd {
		font-size: 0.6rem !important;
		padding: 1px 5px !important;
		border-radius: 4px !important;
	}

	.footer-bottom {
		flex-direction: column;
		text-align: center;
		gap: var(--space-md);
	}

	.footer-links-list {
		justify-content: center;
		flex-wrap: wrap;
		gap: var(--space-md);
	}
}

/* ==========================================================================
   Mobile & Template Member Authentication UI System
   ========================================================================== */

/* 1. Mobile Header Auth & User Controls */
.mobile-header-auth-btn {
	display: none;
	align-items: center;
	gap: 6px;
	height: 38px;
	padding: 0 13px;
	border-radius: 9999px;
	background: linear-gradient(135deg, #7c3aed 0%, #4f46e5 100%);
	border: 1px solid rgba(255, 255, 255, 0.25);
	color: #ffffff !important;
	font-size: 0.8125rem;
	font-weight: 700;
	cursor: pointer;
	text-decoration: none;
	box-shadow: 0 3px 12px rgba(124, 58, 237, 0.4);
	transition: all 0.2s ease;
	white-space: nowrap;
}

.mobile-header-auth-btn:hover {
	transform: scale(1.03);
	box-shadow: 0 5px 16px rgba(124, 58, 237, 0.6);
}

.mobile-header-auth-btn .mobile-auth-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	line-height: 1;
}

.mobile-header-user-btn {
	display: none;
	align-items: center;
	gap: 6px;
	height: 38px;
	padding: 0 11px;
	border-radius: 9999px;
	background: rgba(124, 58, 237, 0.15);
	border: 1px solid rgba(139, 92, 246, 0.45);
	color: #ffffff !important;
	font-size: 0.8125rem;
	font-weight: 600;
	text-decoration: none;
	white-space: nowrap;
}

.mobile-header-user-btn .mobile-auth-icon {
	color: #c084fc;
	display: inline-flex;
	align-items: center;
}

@media (max-width: 1024px) {
	.mobile-header-auth-btn,
	.mobile-header-user-btn {
		display: inline-flex;
	}
}

/* 2. Mobile Drawer Member Profile / Promo Card */
.mobile-drawer-auth-card {
	display: none;
	margin-bottom: var(--space-lg);
	padding: 16px;
	border-radius: 16px;
	background: linear-gradient(145deg, rgba(19, 17, 44, 0.95), rgba(14, 13, 34, 0.9));
	border: 1px solid rgba(139, 92, 246, 0.3);
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

@media (max-width: 1024px) {
	.mobile-drawer-auth-card {
		display: block;
	}
}

.mobile-drawer-auth-promo {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.mobile-drawer-auth-head {
	display: flex;
	align-items: center;
	gap: 10px;
}

.mobile-drawer-auth-icon {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 38px;
	height: 38px;
	border-radius: 50%;
	background: rgba(124, 58, 237, 0.2);
	color: #a855f7;
	flex-shrink: 0;
	font-size: 1.25rem;
}

.mobile-drawer-auth-txt {
	display: flex;
	flex-direction: column;
	gap: 2px;
}

.mobile-drawer-auth-title {
	display: block;
	color: #ffffff;
	font-size: 0.9375rem;
	font-weight: 700;
	line-height: 1.3;
}

.mobile-drawer-auth-lead {
	color: #94a3b8;
	font-size: 0.775rem;
	margin: 0;
	line-height: 1.4;
}

.mobile-drawer-auth-actions {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 8px;
	margin-top: 4px;
}

.mobile-drawer-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	padding: 9px 10px;
	border-radius: 10px;
	font-size: 0.8125rem;
	font-weight: 700;
	cursor: pointer;
	border: none;
	text-decoration: none;
	transition: all 0.2s ease;
	white-space: nowrap;
}

.mobile-drawer-btn.btn-login {
	background: linear-gradient(135deg, #7c3aed 0%, #4f46e5 100%);
	color: #ffffff !important;
	box-shadow: 0 4px 12px rgba(124, 58, 237, 0.35);
}

.mobile-drawer-btn.btn-register {
	background: rgba(255, 255, 255, 0.08);
	color: #e2e8f0 !important;
	border: 1px solid rgba(255, 255, 255, 0.15);
}

.mobile-drawer-user-info {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-bottom: 12px;
}

.mobile-drawer-user-avatar img {
	width: 44px;
	height: 44px;
	border-radius: 50%;
	border: 2px solid #8b5cf6;
	object-fit: cover;
}

.mobile-drawer-user-meta {
	display: flex;
	flex-direction: column;
	gap: 2px;
}

.mobile-drawer-user-name {
	color: #ffffff;
	font-weight: 700;
	font-size: 0.95rem;
}

.mobile-drawer-user-badge {
	display: inline-block;
	color: #38bdf8;
	font-size: 0.725rem;
	font-weight: 600;
}

.mobile-drawer-logout-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	width: 100%;
	padding: 8px 12px;
	border-radius: 8px;
	background: rgba(239, 68, 68, 0.1);
	border: 1px solid rgba(239, 68, 68, 0.25);
	color: #f87171 !important;
	font-size: 0.8125rem;
	font-weight: 600;
	text-decoration: none;
}

/* 3. Native Mobile Bottom Navigation Bar with Neon Glow (<= 768px) */
.ds-mobile-bottom-bar {
	display: none;
	position: fixed;
	bottom: 0;
	left: 0;
	right: 0;
	height: 64px;
	background: rgba(10, 8, 26, 0.94);
	backdrop-filter: blur(24px);
	-webkit-backdrop-filter: blur(24px);
	border-top: 1px solid rgba(168, 85, 247, 0.28);
	z-index: 9999;
	align-items: center;
	justify-content: space-around;
	padding: 0 4px;
	padding-bottom: env(safe-area-inset-bottom, 0px);
	box-shadow: 0 -8px 28px rgba(0, 0, 0, 0.65), 0 -1px 12px rgba(168, 85, 247, 0.2);
}

@media (max-width: 768px) {
	.ds-mobile-bottom-bar {
		display: flex;
	}
	body {
		padding-bottom: calc(70px + env(safe-area-inset-bottom, 0px)) !important;
	}
	#ds-floating-install-app {
		bottom: calc(80px + env(safe-area-inset-bottom, 0px)) !important;
	}
}

.ds-m-nav-item {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 4px;
	flex: 1;
	height: 100%;
	background: transparent;
	border: none;
	color: #94a3b8;
	text-decoration: none !important;
	cursor: pointer;
	position: relative;
	transition: all 0.25s cubic-bezier(0.18, 0.9, 0.28, 1);
	padding: 6px 2px;
	outline: none;
}

/* Neon Glow Laser Indicator on top of Active Item */
.ds-m-nav-laser {
	position: absolute;
	top: 0;
	left: 50%;
	transform: translateX(-50%) scaleX(0);
	width: 32px;
	height: 3px;
	border-radius: 0 0 4px 4px;
	background: linear-gradient(90deg, #ec4899, #a855f7, #06b6d4);
	box-shadow: 0 0 12px #a855f7, 0 0 20px rgba(6, 182, 212, 0.8);
	transition: transform 0.28s cubic-bezier(0.18, 0.9, 0.28, 1), opacity 0.28s ease;
	opacity: 0;
}

.ds-m-nav-item.is-active .ds-m-nav-laser {
	transform: translateX(-50%) scaleX(1);
	opacity: 1;
}

.ds-m-nav-item:hover,
.ds-m-nav-item.is-active {
	color: #ffffff;
}

.ds-m-nav-item .ds-m-nav-icon {
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 1.25rem;
	line-height: 1;
	transition: transform 0.22s ease, color 0.22s ease, filter 0.22s ease;
	color: #94a3b8;
}

.ds-m-nav-item.is-active .ds-m-nav-icon {
	color: #38bdf8;
	transform: translateY(-2px);
	filter: drop-shadow(0 0 10px rgba(56, 189, 248, 0.95)) drop-shadow(0 0 18px rgba(168, 85, 247, 0.6));
}

.ds-m-nav-item:hover .ds-m-nav-icon {
	color: #c084fc;
	transform: translateY(-2px);
}

.ds-m-nav-item.ds-m-auth-item .ds-m-nav-icon {
	color: #a855f7;
}

.ds-m-nav-item.ds-m-auth-item.is-active .ds-m-nav-icon {
	color: #ec4899;
	filter: drop-shadow(0 0 10px rgba(236, 72, 153, 0.95));
}

.ds-m-nav-item .ds-m-avatar-icon img {
	width: 24px;
	height: 24px;
	border-radius: 50%;
	border: 1.5px solid #a855f7;
	object-fit: cover;
	box-shadow: 0 0 8px rgba(168, 85, 247, 0.5);
}

.ds-m-nav-item .ds-m-nav-label {
	font-size: 0.6875rem;
	font-weight: 600;
	letter-spacing: -0.01em;
	white-space: nowrap;
	transition: color 0.2s ease, text-shadow 0.2s ease;
}

.ds-m-nav-item.is-active .ds-m-nav-label {
	color: #ffffff;
	text-shadow: 0 0 8px rgba(168, 85, 247, 0.7);
}

/* 4. Single Drama / Single Episode Watch Template Auth Banner */
.neatidrama-auth-banner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding: 16px 20px;
	margin: 16px 0 24px 0;
	border-radius: 16px;
	background: linear-gradient(135deg, rgba(124, 58, 237, 0.15), rgba(6, 182, 212, 0.08));
	border: 1px solid rgba(139, 92, 246, 0.35);
	box-shadow: 0 8px 30px rgba(0, 0, 0, 0.35);
}

.auth-banner-left {
	display: flex;
	align-items: center;
	gap: 14px;
}

.auth-banner-icon {
	font-size: 1.75rem;
	line-height: 1;
	flex-shrink: 0;
}

.auth-banner-text strong {
	display: block;
	color: #ffffff;
	font-size: 0.95rem;
	font-weight: 700;
}

.auth-banner-text p {
	color: #94a3b8;
	font-size: 0.8125rem;
	margin: 2px 0 0 0;
	line-height: 1.4;
}

.auth-banner-right {
	display: flex;
	align-items: center;
	gap: 10px;
	flex-shrink: 0;
}

.auth-banner-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	padding: 9px 18px;
	border-radius: 999px;
	font-size: 0.825rem;
	font-weight: 700;
	cursor: pointer;
	border: none;
	text-decoration: none;
	transition: all 0.2s ease;
	white-space: nowrap;
}

.auth-banner-btn.btn-login {
	background: linear-gradient(135deg, #7c3aed 0%, #4f46e5 100%);
	color: #ffffff;
	box-shadow: 0 4px 15px rgba(124, 58, 237, 0.4);
}

.auth-banner-btn.btn-login:hover {
	transform: translateY(-2px);
	box-shadow: 0 6px 20px rgba(124, 58, 237, 0.6);
}

.auth-banner-btn.btn-tg {
	background: rgba(34, 158, 217, 0.15);
	border: 1px solid rgba(34, 158, 217, 0.4);
	color: #38bdf8;
}

.auth-banner-btn.btn-tg:hover {
	background: rgba(34, 158, 217, 0.3);
	transform: translateY(-2px);
}

@media (max-width: 768px) {
	.neatidrama-auth-banner {
		flex-direction: column;
		align-items: stretch;
		gap: 14px;
		padding: 14px;
	}
	.auth-banner-right {
		display: grid;
		grid-template-columns: 1fr 1fr;
		width: 100%;
	}

	/* Neo Player & Console Mobile Adjustments */
	.neatidrama-meta-bar {
		padding: 14px 16px;
		flex-direction: column;
		align-items: stretch;
		gap: 14px;
	}

	.meta-actions-col {
		display: flex;
		flex-wrap: wrap;
		gap: 8px;
		width: 100%;
	}

	.meta-actions-col .neatidrama-action-btn {
		flex: 1 1 auto;
		justify-content: center;
		padding: 9px 12px;
		font-size: 0.84rem;
	}

	.meta-actions-col .btn-bookmark-square {
		flex: 0 0 42px;
	}

	/* Enforce EXACTLY 1 single compact row for player controls on all mobile screens */
	.player-controls-row {
		display: flex !important;
		flex-direction: row !important;
		flex-wrap: nowrap !important;
		align-items: center !important;
		justify-content: space-between !important;
		gap: clamp(3px, 1.2vw, 8px) !important;
		width: 100% !important;
		box-sizing: border-box !important;
		overflow: hidden !important;
	}

	.controls-group-left,
	.controls-group-right {
		display: flex !important;
		flex-direction: row !important;
		flex-wrap: nowrap !important;
		align-items: center !important;
		gap: clamp(3px, 1vw, 6px) !important;
		flex-shrink: 0 !important;
	}

	.ctrl-play-capsule {
		width: clamp(30px, 8vw, 36px) !important;
		height: clamp(28px, 7vw, 34px) !important;
		border-radius: 8px !important;
		padding: 0 !important;
		flex-shrink: 0 !important;
	}

	.ctrl-play-capsule svg {
		width: clamp(14px, 3.5vw, 18px) !important;
		height: clamp(14px, 3.5vw, 18px) !important;
	}

	.ctrl-icon-btn {
		padding: 2px !important;
		flex-shrink: 0 !important;
	}

	.ctrl-icon-btn svg {
		width: clamp(16px, 4vw, 20px) !important;
		height: clamp(16px, 4vw, 20px) !important;
	}

	.player-time-display {
		font-size: clamp(10px, 2.4vw, 12px) !important;
		padding: 0 !important;
		margin: 0 !important;
		white-space: nowrap !important;
		flex-shrink: 0 !important;
	}

	.volume-slider-box {
		display: none !important;
	}

	.quality-capsule {
		height: clamp(28px, 7vw, 34px) !important;
		padding: 0 clamp(6px, 1.5vw, 10px) !important;
		border-radius: 8px !important;
		font-size: clamp(10px, 2.4vw, 12px) !important;
		flex-shrink: 0 !important;
	}

	.quality-capsule .gear-icon {
		display: none !important;
	}

	.quality-capsule .quality-label-text {
		font-size: clamp(10px, 2.4vw, 12px) !important;
	}

	.ctrl-speed-btn {
		height: clamp(28px, 7vw, 34px) !important;
		min-width: clamp(26px, 6vw, 32px) !important;
		padding: 0 clamp(4px, 1.2vw, 8px) !important;
		border-radius: 8px !important;
		font-size: clamp(10px, 2.4vw, 12px) !important;
		flex-shrink: 0 !important;
	}

	.ctrl-fs-capsule {
		width: clamp(28px, 7vw, 34px) !important;
		height: clamp(28px, 7vw, 34px) !important;
		border-radius: 8px !important;
		padding: 0 !important;
		flex-shrink: 0 !important;
	}

	.ctrl-fs-capsule svg {
		width: clamp(14px, 3.5vw, 16px) !important;
		height: clamp(14px, 3.5vw, 16px) !important;
	}
}

@media (max-width: 480px) {
	.neatidrama-controls-bar {
		padding: 16px 8px 10px;
	}

	.meta-actions-col {
		display: grid;
		grid-template-columns: 1fr 1fr;
		gap: 8px;
	}

	.meta-actions-col .btn-bookmark-square {
		grid-column: span 2;
		width: 100%;
		height: 38px;
	}
}



/* ===================================================
   NeatiDrama Style - Special Selection Section
   =================================================== */
.nd-special-section {
    width: 100%;
    margin-bottom: 32px;
}
.nd-section-header {
    background: #111026;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 10px 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}
.nd-header-left {
    display: flex;
    align-items: center;
    gap: 12px;
}
.nd-indicator-bar {
    display: inline-block;
    width: 4px;
    height: 20px;
    border-radius: 4px;
    background: linear-gradient(180deg, #ec4899 0%, #a855f7 50%, #3b82f6 100%);
    box-shadow: 0 0 8px rgba(236, 72, 153, 0.6);
}
.nd-section-title {
    font-size: 1.15rem;
    font-weight: 700;
    margin: 0;
    color: #ffffff;
    letter-spacing: 0.2px;
}
.nd-header-right {
    display: flex;
    align-items: center;
    gap: 16px;
}
.nd-view-all {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: #94a3b8;
    text-decoration: none;
    font-size: 0.88rem;
    font-weight: 500;
    transition: all 0.2s ease;
}
.nd-view-all:hover {
    color: #cbd5e1;
}
.nd-nav-buttons {
    display: flex;
    align-items: center;
    gap: 8px;
}
.nd-btn-nav {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: #17162e;
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #94a3b8;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}
.nd-btn-nav:hover {
    background: #232244;
    color: #fff;
    border-color: rgba(255, 255, 255, 0.25);
}
.nd-slider-wrapper {
    position: relative;
    width: 100%;
    overflow: hidden;
}
.nd-slider-track {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    scroll-behavior: smooth;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding: 10px 4px 18px 4px;
}
.nd-slider-track::-webkit-scrollbar {
    display: none;
}
.nd-card-item {
    flex: 0 0 calc(20% - 16px);
    min-width: 175px;
    position: relative;
}
.nd-card-inner {
    display: block;
    position: relative;
    border-radius: 18px;
    padding: 2.5px;
    background: transparent;
    text-decoration: none;
    overflow: hidden;
    box-shadow: 0 0 16px rgba(0, 240, 255, 0.3), 0 0 24px rgba(236, 72, 153, 0.25);
    transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1), box-shadow 0.3s ease;
}

/* Animated Running Neon Glowing Light Border (Cyan & Magenta Gradient) */
.nd-card-inner::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(
        from 0deg,
        #00f0ff 0deg,
        #00f0ff 40deg,
        transparent 80deg,
        #a855f7 160deg,
        #ec4899 220deg,
        transparent 280deg,
        #00f0ff 360deg
    );
    animation: ndRotateGlow 4s linear infinite;
    z-index: 0;
}

/* Inner card backdrop to protect image */
.nd-card-inner::after {
    content: '';
    position: absolute;
    inset: 2px;
    background: #0f101d;
    border-radius: 16px;
    z-index: 1;
}

@keyframes ndRotateGlow {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

.nd-card-inner:hover {
    transform: translateY(-5px) scale(1.025);
    box-shadow: 0 0 28px rgba(0, 240, 255, 0.6), 0 0 38px rgba(236, 72, 153, 0.5);
}
.nd-card-image-wrap {
    position: relative;
    z-index: 2;
    width: 100%;
    aspect-ratio: 9 / 13;
    border-radius: 15.5px;
    overflow: hidden;
    background: #1a1a2e;
}
.nd-card-image-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}
.nd-card-inner:hover .nd-card-image-wrap img {
    transform: scale(1.05);
}
.nd-rank-badge {
    position: absolute;
    top: 14px;
    right: 14px;
    background: #1d4ed8;
    color: #ffffff;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.8px;
    padding: 3.5px 9px;
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
    z-index: 3;
}
@media (max-width: 1200px) {
    .nd-card-item {
        flex: 0 0 calc(25% - 15px); /* 4 cards on medium laptops */
    }
}
@media (max-width: 900px) {
    .nd-card-item {
        flex: 0 0 calc(33.333% - 14px); /* 3 cards on tablets */
    }
}
@media (max-width: 640px) {
    .nd-card-item {
        flex: 0 0 calc(50% - 10px); /* 2 cards on mobile */
        min-width: 155px;
    }
    .nd-section-title {
        font-size: 1rem;
    }
    .nd-section-header {
        padding: 8px 14px;
    }
}
@media (max-width: 420px) {
    .nd-slider-track {
        gap: 12px;
    }
    .nd-card-item {
        flex: 0 0 68%;
    }
}


.nd-top-counter-badge {
    display: inline-flex;
    align-items: center;
    padding: 2px 8px;
    border-radius: 9999px;
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.2);
    margin-left: 8px;
}
.nd-trending-header {
    background: linear-gradient(90deg, #220d63 0%, #150745 50%, #0c042e 100%);
    border: 1px solid rgba(139, 92, 246, 0.25);
}
