/**
 * Drama Studio - Main Stylesheet & Design System
 * 
 * Version: 1.0.0
 * Design System: Dark Cinematic Streaming UI
 * Localization: Dual-script optimization (Latin + Khmer)
 * Accessibility: WCAG 2.1 AA Compliant
 */

/* ==========================================================================
   1. Design Tokens & CSS Custom Properties (Neati Cinema Design System)
   ========================================================================== */
:root {
	/* Typography Stacks (Dual-script Latin + Khmer) */
	--font-sans: 'Inter', 'Kantumruy Pro', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Khmer OS Siemreap", "Khmer OS", sans-serif;
	--font-heading: 'Outfit', 'Battambang', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Khmer OS Muol", sans-serif;
	
	/* Color Palette (Neati Cosmic Violet & Neon Accents) */
	--color-primary: #8B5CF6;
	--color-primary-hover: #7C3AED;
	--color-primary-rgb: 139, 92, 246;
	--color-secondary: #06B6D4;
	--color-accent-pink: #EC4899;
	
	--color-bg-base: #080713;
	--color-bg-surface: #0E0D22;
	--color-bg-card: #13112C;
	--color-bg-input: #1A173B;
	
	--color-text-main: #F9FAFB;
	--color-text-muted: #94A3B8;
	--color-text-faint: #64748B;
	
	--color-accent-gold: #FBBF24;
	--color-status-completed: #10B981;
	--color-border-subtle: rgba(139, 92, 246, 0.15);
	--color-border-hover: rgba(139, 92, 246, 0.55);

	/* Neati Signature Gradients */
	--grad-brand-neon: linear-gradient(90deg, #06B6D4 0%, #8B5CF6 35%, #FFFFFF 50%, #D946EF 65%, #06B6D4 100%);
	--grad-section-header: linear-gradient(90deg, #220D63 0%, #150745 50%, rgba(12, 4, 46, 0.85) 100%);
	--grad-section-bar: linear-gradient(180deg, #06B6D4 0%, #A855F7 50%, #EC4899 100%);
	--grad-play-btn: linear-gradient(135deg, #9D1AFC 0%, #4F46E5 50%, #2EA6FC 100%);
	--grad-hero-ambient: radial-gradient(ellipse at 50% -20%, rgba(124, 58, 237, 0.28) 0%, rgba(8, 7, 19, 0) 70%);

	/* Spacing Scale */
	--space-2xs: 0.25rem;
	--space-xs: 0.5rem;
	--space-sm: 0.75rem;
	--space-md: 1rem;
	--space-lg: 1.5rem;
	--space-xl: 2rem;
	--space-2xl: 3rem;
	--space-3xl: 4.5rem;

	/* Border Radius (Neati Curved Aesthetics) */
	--radius-xs: 4px;
	--radius-sm: 8px;
	--radius-md: 12px;
	--radius-lg: 16px;
	--radius-xl: 22px;
	--radius-full: 9999px;

	/* Elevation & Shadows */
	--shadow-sm: 0 2px 6px rgba(0, 0, 0, 0.4);
	--shadow-md: 0 4px 16px rgba(0, 0, 0, 0.5);
	--shadow-lg: 0 12px 32px rgba(0, 0, 0, 0.65);
	--shadow-glow: 0 0 24px rgba(139, 92, 246, 0.45);
	--shadow-neon-pink: 0 0 20px rgba(236, 72, 153, 0.4);
	--shadow-play: 0 8px 25px rgba(124, 58, 237, 0.55);

	/* Transitions */
	--transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
	--transition-normal: 250ms cubic-bezier(0.4, 0, 0.2, 1);
	--transition-slow: 400ms cubic-bezier(0.4, 0, 0.2, 1);

	/* Layout Dimensions */
	--container-max-width: 1320px;
	--header-height: 72px;
}

/* ==========================================================================
   2. Reset & Base HTML Elements
   ========================================================================== */
*,
*::before,
*::after {
	box-sizing: border-box;
	margin: 0;
	padding: 0;
}

html {
	font-size: 16px;
	scroll-behavior: smooth;
	-webkit-text-size-adjust: 100%;
}

body {
	font-family: var(--font-sans);
	background-color: var(--color-bg-base);
	color: var(--color-text-main);
	line-height: 1.8;
	font-weight: 400;
	text-rendering: optimizeLegibility;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	min-height: 100vh;
	display: flex;
	flex-direction: column;
}

/* Accessible Skip Link */
.skip-link {
	position: absolute;
	top: -9999px;
	left: 1.5rem;
	background: var(--color-primary);
	color: #ffffff;
	padding: 0.75rem 1.25rem;
	font-weight: 700;
	z-index: 999999;
	border-radius: var(--radius-sm);
	box-shadow: var(--shadow-lg);
	text-decoration: none;
}

.skip-link:focus {
	top: 1.5rem;
}

/* Screen Reader Accessible Helper */
.screen-reader-text {
	border: 0;
	clip: rect(1px, 1px, 1px, 1px);
	clip-path: inset(50%);
	height: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute !important;
	width: 1px;
	word-wrap: normal !important;
}

.screen-reader-text:focus {
	background-color: var(--color-bg-surface);
	border-radius: var(--radius-sm);
	box-shadow: 0 0 2px 2px rgba(0, 0, 0, 0.6);
	clip: auto !important;
	clip-path: none;
	color: var(--color-text-main);
	display: block;
	font-size: 0.875rem;
	font-weight: 700;
	height: auto;
	left: 1rem;
	line-height: normal;
	padding: 1rem 1.5rem;
	text-decoration: none;
	top: 1rem;
	width: auto;
	z-index: 100000;
}

/* Universal Focus Visible Styling (A11y) */
:focus-visible {
	outline: 2px solid var(--color-primary);
	outline-offset: 3px;
}

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

a:hover {
	color: var(--color-primary);
}

img,
svg,
video,
iframe {
	display: block;
	max-width: 100%;
	height: auto;
}

h1, h2, h3, h4, h5, h6 {
	font-family: var(--font-heading);
	font-weight: 700;
	line-height: 1.3;
	color: #ffffff;
	letter-spacing: -0.015em;
}

h1 { font-size: 2.25rem; }
h2 { font-size: 1.75rem; }
h3 { font-size: 1.35rem; }
h4 { font-size: 1.15rem; }
h5 { font-size: 1rem; }
h6 { font-size: 0.875rem; }

/* ==========================================================================
   3. Layout Grid & Structure
   ========================================================================== */
.site-wrapper {
	min-height: 100vh;
	display: flex;
	flex-direction: column;
}

.site-main {
	flex: 1 0 auto;
	padding-bottom: var(--space-3xl);
}

.site-container {
	width: 100%;
	max-width: var(--container-max-width);
	margin-left: auto;
	margin-right: auto;
	padding-left: var(--space-lg);
	padding-right: var(--space-lg);
}

/* ==========================================================================
   4. Hero Sliders & Showcase Engines (5 Premium Visual Styles)
   ========================================================================== */

/* --------------------------------------------------------------------------
   STYLE 1: Neatidrama 3D Coverflow Perspective (Screenshot Match)
   -------------------------------------------------------------------------- */
.drama-hero-coverflow-slider {
	position: relative;
	min-height: 580px;
	padding: 44px 0 54px;
	margin-bottom: var(--space-3xl);
	overflow: hidden;
	background: #080713;
	border-bottom: 1px solid rgba(139, 92, 246, 0.22);
}

.coverflow-ambient-bg {
	position: absolute;
	inset: -30px;
	background-size: cover;
	background-position: center center;
	background-repeat: no-repeat;
	filter: blur(50px) brightness(0.24) saturate(1.3);
	opacity: 0.65;
	transition: background-image 0.7s cubic-bezier(0.25, 1, 0.5, 1);
	z-index: 0;
	pointer-events: none;
}

.coverflow-ambient-overlay {
	position: absolute;
	inset: 0;
	background: radial-gradient(ellipse at 50% 35%, rgba(139, 92, 246, 0.18) 0%, rgba(8, 7, 19, 0.88) 70%, #080713 100%),
	            linear-gradient(180deg, rgba(8, 7, 19, 0.3) 0%, rgba(8, 7, 19, 0.95) 85%, #080713 100%);
	z-index: 1;
	pointer-events: none;
}

.coverflow-stage-container {
	position: relative;
	z-index: 2;
	width: 100%;
	display: flex;
	flex-direction: column;
	align-items: center;
}

/* Coverflow Navigation Arrows */
.coverflow-arrow {
	position: absolute;
	top: 38%;
	transform: translateY(-50%);
	width: 44px;
	height: 44px;
	border-radius: 50%;
	background: rgba(15, 12, 33, 0.8);
	border: 1px solid rgba(255, 255, 255, 0.18);
	color: #ffffff;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	z-index: 10;
	backdrop-filter: blur(10px);
	-webkit-backdrop-filter: blur(10px);
	transition: all 0.25s cubic-bezier(0.25, 1, 0.5, 1);
	box-shadow: 0 4px 18px rgba(0, 0, 0, 0.5);
}

.coverflow-arrow:hover {
	background: rgba(139, 92, 246, 0.9);
	border-color: rgba(192, 132, 252, 0.9);
	color: #ffffff;
	box-shadow: 0 0 20px rgba(168, 85, 247, 0.65);
	transform: translateY(-50%) scale(1.1);
}

.coverflow-arrow-prev { left: 16px; }
.coverflow-arrow-next { right: 16px; }

/* 3D Track & Cards */
.coverflow-track-wrap {
	position: relative;
	width: 100%;
	height: 380px;
	perspective: 1200px;
	perspective-origin: 50% 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	margin-bottom: 18px;
}

.coverflow-track {
	position: relative;
	width: 230px;
	height: 330px;
	transform-style: preserve-3d;
	display: flex;
	align-items: center;
	justify-content: center;
}

.coverflow-card {
	position: absolute;
	top: 0;
	left: 0;
	width: 230px;
	height: 330px;
	transition: transform 0.55s cubic-bezier(0.25, 1, 0.5, 1), opacity 0.55s ease, filter 0.55s ease;
	cursor: pointer;
	user-select: none;
	will-change: transform, opacity;
}

.coverflow-card-inner {
	position: relative;
	width: 100%;
	height: 100%;
	border-radius: 18px;
	overflow: hidden;
	box-shadow: 0 16px 36px rgba(0, 0, 0, 0.85);
	border: 1.5px solid rgba(139, 92, 246, 0.35);
	background: #110c26;
	transition: border-color 0.4s ease, box-shadow 0.4s ease;
}

.coverflow-poster-img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

/* Exclusive Badge */
.coverflow-badge {
	position: absolute;
	bottom: 12px;
	left: 12px;
	background: linear-gradient(135deg, #7c3aed 0%, #a855f7 100%);
	color: #ffffff;
	font-size: 0.625rem;
	font-weight: 800;
	padding: 3px 8px;
	border-radius: 5px;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.6);
	z-index: 2;
	pointer-events: none;
}

/* Center Active Play Button */
.coverflow-play-btn {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	width: 60px;
	height: 60px;
	border-radius: 50%;
	background: linear-gradient(135deg, #7c3aed 0%, #ec4899 100%);
	display: flex;
	align-items: center;
	justify-content: center;
	color: #ffffff;
	z-index: 4;
	box-shadow: 0 4px 22px rgba(124, 58, 237, 0.75);
	opacity: 0;
	pointer-events: none;
	transition: opacity 0.35s ease, transform 0.3s ease, box-shadow 0.3s ease;
}

.coverflow-play-btn svg {
	margin-left: 3px;
}

.coverflow-play-btn:hover {
	transform: translate(-50%, -50%) scale(1.12);
	box-shadow: 0 6px 30px rgba(236, 72, 153, 0.85);
}

.play-pulse-ring {
	position: absolute;
	inset: -8px;
	border-radius: 50%;
	border: 2px solid rgba(236, 72, 153, 0.7);
	animation: coverflowPlayPulse 2s cubic-bezier(0.215, 0.61, 0.355, 1) infinite;
	pointer-events: none;
}

@keyframes coverflowPlayPulse {
	0% { transform: scale(0.9); opacity: 0.9; }
	50% { transform: scale(1.3); opacity: 0; }
	100% { transform: scale(0.9); opacity: 0; }
}

/* 3D Coverflow Card Positions & Rotations */
.coverflow-card.is-active {
	transform: translateX(0) translateZ(100px) scale(1.18);
	z-index: 6;
	opacity: 1;
	filter: none;
}

.coverflow-card.is-active .coverflow-card-inner {
	border-color: rgba(192, 132, 252, 0.85);
	box-shadow: 0 22px 52px rgba(0, 0, 0, 0.95), 0 0 35px rgba(139, 92, 246, 0.5);
}

.coverflow-card.is-active .coverflow-play-btn {
	opacity: 1;
	pointer-events: auto;
}

.coverflow-card.is-prev-1 {
	transform: translateX(-195px) translateZ(15px) rotateY(32deg) scale(0.95);
	z-index: 4;
	opacity: 0.74;
	filter: brightness(0.65);
}

.coverflow-card.is-next-1 {
	transform: translateX(195px) translateZ(15px) rotateY(-32deg) scale(0.95);
	z-index: 4;
	opacity: 0.74;
	filter: brightness(0.65);
}

.coverflow-card.is-prev-2 {
	transform: translateX(-355px) translateZ(-60px) rotateY(42deg) scale(0.82);
	z-index: 3;
	opacity: 0.45;
	filter: brightness(0.42);
}

.coverflow-card.is-next-2 {
	transform: translateX(355px) translateZ(-60px) rotateY(-42deg) scale(0.82);
	z-index: 3;
	opacity: 0.45;
	filter: brightness(0.42);
}

.coverflow-card.is-hidden-left {
	transform: translateX(-520px) translateZ(-150px) rotateY(52deg) scale(0.65);
	z-index: 1;
	opacity: 0;
	pointer-events: none;
}

.coverflow-card.is-hidden-right {
	transform: translateX(520px) translateZ(-150px) rotateY(-52deg) scale(0.65);
	z-index: 1;
	opacity: 0;
	pointer-events: none;
}

/* Curved Glowing Neon Arc with Dots (Screenshot Match) */
.coverflow-arc-wrap {
	position: relative;
	width: 100%;
	max-width: 760px;
	height: 48px;
	margin: 0 auto;
	display: flex;
	align-items: center;
	justify-content: center;
}

.coverflow-arc-svg {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	pointer-events: none;
	filter: drop-shadow(0 0 10px rgba(168, 85, 247, 0.75));
}

.coverflow-dots-list {
	position: relative;
	z-index: 3;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 22px;
	width: 100%;
}

.coverflow-dot {
	position: relative;
	width: 14px;
	height: 14px;
	background: transparent;
	border: none;
	padding: 0;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
}

.coverflow-dot .dot-core {
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.4);
	transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
}

.coverflow-dot:hover .dot-core {
	background: #ffffff;
	transform: scale(1.4);
}

.coverflow-dot.is-active .dot-core {
	background: #ffffff;
	width: 8px;
	height: 8px;
	box-shadow: 0 0 8px #ffffff;
}

.coverflow-dot.is-active .dot-halo {
	position: absolute;
	inset: -4px;
	border-radius: 50%;
	border: 2px solid var(--slider-accent-color, #c084fc);
	box-shadow: 0 0 14px var(--slider-accent-color, #a855f7);
	animation: dotHaloPulse 2s infinite;
}

@keyframes dotHaloPulse {
	0%, 100% { transform: scale(1); opacity: 1; }
	50% { transform: scale(1.22); opacity: 0.6; }
}

/* Active Drama Title & Meta Box (Screenshot Match) */
.coverflow-info-box {
	text-align: center;
	margin-top: 14px;
	z-index: 3;
	max-width: 720px;
	padding: 0 16px;
}

.coverflow-active-title {
	font-family: var(--font-heading);
	font-size: var(--slider-title-size, 2rem);
	font-weight: 800;
	margin: 0 0 10px;
	line-height: 1.2;
	text-shadow: 0 2px 14px rgba(0, 0, 0, 0.9);
}

.coverflow-title-link {
	color: var(--slider-title-color, #ffffff);
	text-decoration: none;
	transition: color var(--transition-fast);
}

.coverflow-title-link:hover {
	color: var(--slider-accent-color, #c4b5fd);
}

.coverflow-active-meta {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	font-size: 0.875rem;
	color: var(--slider-meta-color, #94a3b8);
}

.coverflow-genre-pill {
	background: linear-gradient(135deg, rgba(88, 28, 135, 0.8) 0%, rgba(124, 58, 237, 0.65) 100%);
	border: 1px solid rgba(168, 85, 247, 0.45);
	color: #e9d5ff;
	padding: 3px 12px;
	border-radius: var(--radius-full);
	font-weight: 600;
	font-size: 0.75rem;
	letter-spacing: 0.02em;
}

.coverflow-episode-tag {
	color: var(--slider-meta-color, #cbd5e1);
	font-weight: 600;
}

/* --------------------------------------------------------------------------
   STYLE 2: Cinematic Spotlight Banner
   -------------------------------------------------------------------------- */
.drama-hero-spotlight {
	position: relative;
	background-size: cover;
	background-position: center center;
	background-repeat: no-repeat;
	min-height: 560px;
	display: flex;
	align-items: center;
	border-bottom: 1px solid rgba(139, 92, 246, 0.2);
	margin-bottom: var(--space-3xl);
	overflow: hidden;
}

.hero-ambient-glow {
	position: absolute;
	inset: 0;
	background: radial-gradient(ellipse at 50% -10%, rgba(139, 92, 246, 0.3) 0%, rgba(8, 7, 19, 0) 70%),
	            linear-gradient(180deg, rgba(8, 7, 19, 0.3) 0%, rgba(8, 7, 19, 0.85) 75%, #080713 100%),
	            linear-gradient(90deg, #080713 25%, rgba(8, 7, 19, 0.6) 65%, transparent 100%);
	pointer-events: none;
	z-index: 1;
}

.hero-container {
	position: relative;
	z-index: 2;
	width: 100%;
}

.hero-grid-layout {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: var(--space-2xl);
	padding: var(--space-2xl) 0;
}

.hero-content-box {
	max-width: 680px;
	flex: 1 1 auto;
}

.hero-spotlight-tag {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	background: rgba(139, 92, 246, 0.15);
	border: 1px solid rgba(139, 92, 246, 0.45);
	padding: 0.35rem 0.95rem;
	border-radius: var(--radius-full);
	margin-bottom: var(--space-md);
	box-shadow: 0 0 12px rgba(139, 92, 246, 0.25);
}

.spotlight-indicator {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background-color: var(--color-secondary);
	box-shadow: 0 0 10px var(--color-secondary);
	animation: pulseGlow 2s infinite;
}

@keyframes pulseGlow {
	0%, 100% { opacity: 1; transform: scale(1); }
	50% { opacity: 0.4; transform: scale(0.85); }
}

.spotlight-label {
	font-size: 0.75rem;
	font-weight: 700;
	color: #ffffff;
	letter-spacing: 0.08em;
}

.hero-drama-title {
	font-size: var(--slider-title-size, 2.85rem);
	font-weight: 800;
	line-height: 1.15;
	margin-bottom: var(--space-md);
	text-shadow: 0 2px 14px rgba(0, 0, 0, 0.9);
}

.hero-drama-title a {
	color: var(--slider-title-color, #ffffff);
	transition: color var(--transition-fast);
}

.hero-drama-title a:hover {
	color: var(--slider-accent-color, #c4b5fd);
}

.hero-meta-row {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.65rem;
	margin-bottom: var(--space-lg);
}

.hero-excerpt {
	font-size: 1.0625rem;
	line-height: 1.7;
	color: var(--slider-meta-color, #94a3b8);
	margin-bottom: var(--space-xl);
	text-shadow: 0 1px 4px rgba(0, 0, 0, 0.8);
	max-width: 620px;
}

.hero-action-buttons {
	display: flex;
	align-items: center;
	gap: var(--space-md);
	flex-wrap: wrap;
}

.hero-poster-showcase {
	flex: 0 0 260px;
	display: flex;
	flex-direction: column;
	align-items: center;
	position: relative;
}

.hero-showcase-card {
	position: relative;
	width: 240px;
	aspect-ratio: 2 / 3;
	border-radius: var(--radius-lg);
	overflow: hidden;
	background-color: var(--color-bg-card);
	border: 1px solid rgba(139, 92, 246, 0.4);
	box-shadow: 0 16px 36px rgba(0, 0, 0, 0.7), 0 0 28px rgba(124, 58, 237, 0.35);
	transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}

.hero-showcase-card:hover {
	transform: translateY(-6px) scale(1.02);
	border-color: rgba(139, 92, 246, 0.8);
	box-shadow: 0 20px 42px rgba(0, 0, 0, 0.8), 0 0 35px rgba(139, 92, 246, 0.5);
}

.hero-showcase-img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

/* --------------------------------------------------------------------------
   STYLE 3: Horizon Multi-Card Carousel
   -------------------------------------------------------------------------- */
.drama-modern-carousel-slider {
	position: relative;
	padding: var(--space-2xl) 0;
	margin-bottom: var(--space-3xl);
	background: linear-gradient(180deg, rgba(17, 12, 38, 0.6) 0%, rgba(8, 7, 19, 0.95) 100%);
	border-bottom: 1px solid rgba(139, 92, 246, 0.2);
}

.modern-carousel-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: var(--space-lg);
}

.carousel-title-group {
	display: flex;
	align-items: center;
	gap: 10px;
}

.carousel-accent-pill {
	width: 5px;
	height: 22px;
	background: linear-gradient(180deg, #ec4899 0%, #8b5cf6 100%);
	border-radius: var(--radius-full);
}

.carousel-heading {
	font-family: var(--font-heading);
	font-size: 1.4rem;
	font-weight: 700;
	color: #ffffff;
	margin: 0;
}

.carousel-nav-arrows {
	display: flex;
	align-items: center;
	gap: 8px;
}

.carousel-arrow {
	width: 36px;
	height: 36px;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.08);
	border: 1px solid rgba(255, 255, 255, 0.15);
	color: #ffffff;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	transition: all 0.2s ease;
}

.carousel-arrow:hover {
	background: var(--color-primary);
	border-color: var(--color-primary);
}

.modern-carousel-viewport {
	overflow-x: auto;
	scroll-behavior: smooth;
	scrollbar-width: none;
	-ms-overflow-style: none;
}

.modern-carousel-viewport::-webkit-scrollbar {
	display: none;
}

.modern-carousel-track {
	display: flex;
	gap: 18px;
	padding: 8px 2px;
}

.modern-carousel-item {
	flex: 0 0 220px;
	transition: transform var(--transition-normal);
}

.modern-card-link {
	display: block;
	text-decoration: none;
}

.modern-card-media {
	position: relative;
	aspect-ratio: 2 / 3;
	border-radius: var(--radius-md);
	overflow: hidden;
	background: #15102a;
	border: 1px solid rgba(139, 92, 246, 0.25);
	box-shadow: 0 8px 20px rgba(0, 0, 0, 0.6);
}

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

.modern-carousel-item:hover .modern-card-media img {
	transform: scale(1.05);
}

.modern-badge {
	position: absolute;
	top: 10px;
	left: 10px;
	background: linear-gradient(135deg, #7c3aed 0%, #ec4899 100%);
	color: #ffffff;
	font-size: 0.625rem;
	font-weight: 800;
	padding: 2px 7px;
	border-radius: 4px;
	z-index: 2;
}

.modern-card-overlay {
	position: absolute;
	inset: 0;
	background: rgba(8, 7, 19, 0.45);
	display: flex;
	align-items: center;
	justify-content: center;
	opacity: 0;
	transition: opacity var(--transition-fast);
}

.modern-carousel-item:hover .modern-card-overlay {
	opacity: 1;
}

.modern-play-icon {
	width: 48px;
	height: 48px;
	border-radius: 50%;
	background: var(--color-primary);
	color: #fff;
	display: flex;
	align-items: center;
	justify-content: center;
	box-shadow: 0 4px 16px rgba(124, 58, 237, 0.6);
}

.modern-card-info {
	padding-top: 10px;
}

.modern-card-title {
	font-size: 0.95rem;
	font-weight: 700;
	color: #ffffff;
	margin: 0 0 4px;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.modern-card-meta {
	font-size: 0.75rem;
	color: #94a3b8;
	display: flex;
	gap: 6px;
}

/* --------------------------------------------------------------------------
   STYLE 4: Ambient Fullscreen Crossfade
   -------------------------------------------------------------------------- */
.drama-fullscreen-fade-slider {
	position: relative;
	min-height: 560px;
	margin-bottom: var(--space-3xl);
	overflow: hidden;
	background: #080713;
	border-bottom: 1px solid rgba(139, 92, 246, 0.2);
}

.fade-slides-container {
	position: relative;
	width: 100%;
	min-height: 560px;
}

.fade-slide {
	position: absolute;
	inset: 0;
	background-size: cover;
	background-position: center;
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.8s ease, visibility 0.8s ease;
	display: flex;
	align-items: center;
}

.fade-slide.is-active {
	opacity: 1;
	visibility: visible;
}

.fade-slide-overlay {
	position: absolute;
	inset: 0;
	background: linear-gradient(90deg, #080713 30%, rgba(8, 7, 19, 0.7) 65%, transparent 100%),
	            linear-gradient(180deg, transparent 60%, #080713 100%);
	z-index: 1;
}

.fade-slide-content {
	position: relative;
	z-index: 2;
}

.fade-content-inner {
	max-width: 650px;
}

.fade-badge {
	display: inline-block;
	background: rgba(139, 92, 246, 0.2);
	border: 1px solid rgba(139, 92, 246, 0.5);
	color: #c4b5fd;
	padding: 4px 12px;
	border-radius: var(--radius-full);
	font-size: 0.75rem;
	font-weight: 700;
	margin-bottom: 12px;
}

.fade-title {
	font-size: var(--slider-title-size, 3rem);
	font-weight: 800;
	color: var(--slider-title-color, #ffffff);
	line-height: 1.15;
	margin-bottom: 14px;
}

.fade-meta {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-bottom: 16px;
	color: var(--slider-meta-color, #cbd5e1);
}

.fade-excerpt {
	font-size: 1rem;
	line-height: 1.6;
	color: var(--slider-meta-color, #94a3b8);
	margin-bottom: 22px;
}

.fade-nav-arrow {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	width: 48px;
	height: 48px;
	border-radius: 50%;
	background: rgba(15, 12, 33, 0.75);
	border: 1px solid rgba(255, 255, 255, 0.15);
	color: #ffffff;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	z-index: 10;
	backdrop-filter: blur(8px);
	transition: all 0.2s ease;
}

.fade-nav-arrow:hover {
	background: var(--color-primary);
	border-color: var(--color-primary);
}

.fade-prev { left: 24px; }
.fade-next { right: 24px; }

.fade-pagination-dots {
	position: absolute;
	bottom: 24px;
	left: 50%;
	transform: translateX(-50%);
	display: flex;
	gap: 10px;
	z-index: 10;
}

.fade-dot {
	width: 10px;
	height: 10px;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.3);
	border: none;
	cursor: pointer;
	transition: all 0.3s ease;
}

.fade-dot.is-active {
	background: var(--slider-accent-color, #a855f7);
	width: 26px;
	border-radius: 6px;
}

/* --------------------------------------------------------------------------
   STYLE 5: Split Editorial Showcase with 3D Poster Stack
   -------------------------------------------------------------------------- */
.drama-split-showcase-slider {
	position: relative;
	padding: var(--space-3xl) 0;
	margin-bottom: var(--space-3xl);
	background: linear-gradient(135deg, #100b26 0%, #080713 100%);
	border-bottom: 1px solid rgba(139, 92, 246, 0.2);
}

.split-stage {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: var(--space-3xl);
}

.split-content-side {
	flex: 1 1 55%;
	max-width: 620px;
}

.split-tag {
	display: inline-block;
	background: linear-gradient(135deg, #7c3aed 0%, #ec4899 100%);
	color: #ffffff;
	font-size: 0.75rem;
	font-weight: 800;
	padding: 4px 12px;
	border-radius: var(--radius-full);
	margin-bottom: 14px;
}

.split-title {
	font-size: var(--slider-title-size, 2.75rem);
	font-weight: 800;
	color: var(--slider-title-color, #ffffff);
	line-height: 1.15;
	margin-bottom: 14px;
}

.split-meta {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-bottom: 16px;
	color: var(--slider-meta-color, #cbd5e1);
}

.split-excerpt {
	font-size: 1rem;
	line-height: 1.65;
	color: var(--slider-meta-color, #94a3b8);
	margin-bottom: 24px;
}

.split-visual-side {
	flex: 1 1 45%;
	display: flex;
	flex-direction: column;
	align-items: center;
	position: relative;
}

.split-stack-container {
	position: relative;
	width: 260px;
	height: 380px;
	perspective: 1000px;
}

.split-stack-card {
	position: absolute;
	top: 0;
	left: 0;
	width: 260px;
	height: 380px;
	border-radius: var(--radius-lg);
	overflow: hidden;
	box-shadow: 0 16px 36px rgba(0, 0, 0, 0.7);
	border: 1px solid rgba(139, 92, 246, 0.35);
	transition: all 0.5s cubic-bezier(0.25, 1, 0.5, 1);
	cursor: pointer;
}

.split-stack-card img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.split-stack-card.is-active {
	transform: translate(0, 0) scale(1);
	z-index: 3;
	border-color: rgba(168, 85, 247, 0.8);
	box-shadow: 0 20px 45px rgba(0, 0, 0, 0.85), 0 0 25px rgba(139, 92, 246, 0.4);
}

.split-stack-card.is-next {
	transform: translate(30px, -20px) rotate(6deg) scale(0.92);
	z-index: 2;
	opacity: 0.75;
	filter: brightness(0.65);
}

.split-stack-card.is-back {
	transform: translate(60px, -38px) rotate(12deg) scale(0.85);
	z-index: 1;
	opacity: 0.4;
	filter: brightness(0.4);
}

.split-nav {
	display: flex;
	gap: 12px;
	margin-top: 24px;
}

.split-arrow {
	width: 40px;
	height: 40px;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.08);
	border: 1px solid rgba(255, 255, 255, 0.18);
	color: #fff;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	transition: all 0.2s ease;
}

.split-arrow:hover {
	background: var(--color-primary);
	border-color: var(--color-primary);
}

@media (max-width: 991px) {
	.hero-poster-showcase {
		display: none;
	}
	.hero-drama-title {
		font-size: 2.15rem;
	}
	.split-stage {
		flex-direction: column;
		text-align: center;
	}
	.split-content-side {
		max-width: 100%;
	}
	.split-meta, .split-buttons {
		justify-content: center;
	}
	.coverflow-card.is-prev-2, .coverflow-card.is-next-2 {
		display: none;
	}
	.coverflow-card.is-prev-1 {
		transform: translateX(-140px) scale(0.9) rotateY(25deg);
	}
	.coverflow-card.is-next-1 {
		transform: translateX(140px) scale(0.9) rotateY(-25deg);
	}
}

@media (max-width: 640px) {
	.coverflow-track-wrap {
		height: 310px;
	}
	.coverflow-track, .coverflow-card {
		width: 190px;
		height: 275px;
	}
	.coverflow-card.is-prev-1 {
		transform: translateX(-100px) scale(0.88) rotateY(20deg);
		opacity: 0.55;
	}
	.coverflow-card.is-next-1 {
		transform: translateX(100px) scale(0.88) rotateY(-20deg);
		opacity: 0.55;
	}
	.coverflow-arrow {
		width: 36px;
		height: 36px;
	}
	.coverflow-dots-list {
		gap: 12px;
	}
	.coverflow-active-title {
		font-size: 1.35rem;
	}
}

/* ==========================================================================
   5. Sections & Section Headers
   ========================================================================== */
.home-section {
	margin-bottom: var(--space-3xl);
}

.section-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: var(--space-xl);
	padding: 0.85rem 1.4rem;
	background: linear-gradient(90deg, #160e33 0%, #110b29 100%);
	border: 1px solid rgba(139, 92, 246, 0.28);
	border-radius: 16px;
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.08);
	position: relative;
}

.section-title-wrap {
	display: flex;
	align-items: center;
	gap: 0.75rem;
}

.section-accent-bar {
	width: 5px;
	height: 22px;
	background: linear-gradient(180deg, #ec4899 0%, #8b5cf6 50%, #06b6d4 100%);
	border-radius: var(--radius-full);
	box-shadow: 0 0 12px rgba(168, 85, 247, 0.9);
	flex-shrink: 0;
}

.section-title {
	font-family: var(--font-heading);
	font-size: 1.25rem;
	font-weight: 700;
	color: #ffffff;
	letter-spacing: -0.01em;
	margin: 0;
	line-height: 1.2;
}

.section-header-actions {
	display: flex;
	align-items: center;
	gap: 0.75rem;
}

.section-view-all {
	display: inline-flex;
	align-items: center;
	gap: 0.35rem;
	font-size: 0.875rem;
	font-weight: 600;
	color: #c4b5fd;
	text-decoration: none;
	transition: color var(--transition-fast), transform var(--transition-fast);
}

.section-view-all:hover {
	color: #ffffff;
	transform: translateX(2px);
}

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

.slider-arrow-btn {
	width: 32px;
	height: 32px;
	border-radius: 8px;
	background: rgba(255, 255, 255, 0.04);
	border: 1px solid rgba(139, 92, 246, 0.3);
	color: #a78bfa;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	padding: 0;
	transition: all var(--transition-fast);
}

.slider-arrow-btn:hover {
	background: rgba(139, 92, 246, 0.25);
	border-color: rgba(139, 92, 246, 0.65);
	color: #ffffff;
	box-shadow: 0 0 12px rgba(139, 92, 246, 0.4);
}

/* ==========================================================================
   6. Drama Card Component (Neati 6-Col Poster Grid)
   ========================================================================== */
.drama-card-grid {
	display: grid;
	grid-template-columns: repeat(6, 1fr);
	gap: 16px;
}

@media (max-width: 1280px) {
	.drama-card-grid {
		grid-template-columns: repeat(5, 1fr);
	}
}

@media (max-width: 1024px) {
	.drama-card-grid {
		grid-template-columns: repeat(4, 1fr);
	}
}

@media (max-width: 768px) {
	.drama-card-grid {
		grid-template-columns: repeat(3, 1fr);
		gap: 12px;
	}
}

@media (max-width: 480px) {
	.drama-card-grid {
		grid-template-columns: repeat(2, 1fr);
		gap: 10px;
	}
}

.drama-card {
	background: transparent;
	border: none;
	border-radius: 0;
	overflow: visible;
	position: relative;
	transition: transform var(--transition-normal);
}

.drama-card-link {
	display: block;
	text-decoration: none;
	color: inherit;
}

.drama-card-thumbnail {
	position: relative;
	aspect-ratio: 2 / 3;
	border-radius: 12px;
	overflow: hidden;
	background-color: var(--color-bg-card);
	border: 1px solid rgba(139, 92, 246, 0.2);
	box-shadow: 0 6px 18px rgba(0, 0, 0, 0.4);
	transition: transform var(--transition-fast), border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.drama-card:hover .drama-card-thumbnail {
	transform: translateY(-5px);
	border-color: rgba(139, 92, 246, 0.6);
	box-shadow: 0 12px 28px rgba(0, 0, 0, 0.65), 0 0 18px rgba(139, 92, 246, 0.35);
}

.card-poster-img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform var(--transition-slow);
}

.drama-card:hover .card-poster-img {
	transform: scale(1.05);
}

.card-top-badges {
	position: absolute;
	top: 8px;
	left: 8px;
	right: 8px;
	display: flex;
	justify-content: space-between;
	align-items: center;
	z-index: 2;
	pointer-events: none;
}

.badge-rating {
	background: rgba(0, 0, 0, 0.78);
	color: #fbbf24;
	border: 1px solid rgba(251, 191, 36, 0.3);
	border-radius: 6px;
	padding: 2px 7px;
	font-size: 0.72rem;
	font-weight: 800;
	letter-spacing: 0.02em;
	display: inline-flex;
	align-items: center;
	gap: 3px;
	backdrop-filter: blur(6px);
	-webkit-backdrop-filter: blur(6px);
}

.badge-status {
	background: #10b981;
	color: #ffffff;
	border-radius: 6px;
	padding: 2px 7px;
	font-size: 0.6875rem;
	font-weight: 700;
	line-height: 1.3;
	box-shadow: 0 2px 8px rgba(16, 185, 129, 0.45);
	letter-spacing: 0.02em;
}

.card-play-action {
	position: absolute;
	inset: 0;
	background: rgba(8, 7, 19, 0.45);
	display: flex;
	align-items: center;
	justify-content: center;
	opacity: 0;
	transition: opacity var(--transition-normal);
	z-index: 3;
}

.card-play-button {
	width: 46px;
	height: 46px;
	border-radius: 50%;
	background: var(--grad-play-btn);
	color: #ffffff;
	display: flex;
	align-items: center;
	justify-content: center;
	box-shadow: 0 4px 18px rgba(124, 58, 237, 0.65);
	transform: scale(0.85);
	transition: transform var(--transition-normal);
}

.drama-card:hover .card-play-action {
	opacity: 1;
}

.drama-card:hover .card-play-button {
	transform: scale(1);
}

.card-details {
	padding: 8px 2px 0 2px;
}

.card-title {
	font-size: 0.9375rem;
	font-weight: 700;
	line-height: 1.35;
	margin: 0 0 3px 0;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	color: #ffffff;
	transition: color var(--transition-fast);
}

.drama-card:hover .card-title {
	color: #c4b5fd;
}

.card-meta {
	display: flex;
	align-items: center;
	gap: 0.5rem;
}

.card-year {
	font-size: 0.8125rem;
	color: #94a3b8;
	font-weight: 500;
}

/* ==========================================================================
   7. Episode Card Component (16:9 Ratio)
   ========================================================================== */
.episode-card-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
	gap: var(--space-lg);
}

.episode-card {
	background-color: var(--color-bg-surface);
	border-radius: var(--radius-md);
	border: 1px solid var(--color-border-subtle);
	overflow: hidden;
	transition: transform var(--transition-normal), border-color var(--transition-normal), box-shadow var(--transition-normal);
}

.episode-card:hover {
	transform: translateY(-4px);
	border-color: var(--color-border-hover);
	box-shadow: var(--shadow-md);
}

.episode-card-thumbnail {
	position: relative;
	aspect-ratio: 16 / 9;
	overflow: hidden;
	background-color: var(--color-bg-card);
}

.episode-thumb-img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform var(--transition-slow);
}

.episode-card:hover .episode-thumb-img {
	transform: scale(1.05);
}

.episode-badge-wrap {
	position: absolute;
	top: 8px;
	left: 8px;
	z-index: 2;
}

.badge-episode-num {
	background: var(--color-primary);
	color: #ffffff;
	font-weight: 800;
}

.episode-duration-wrap {
	position: absolute;
	bottom: 8px;
	right: 8px;
	z-index: 2;
}

.badge-duration {
	background: rgba(11, 12, 16, 0.85);
	color: #ffffff;
	font-size: 0.65rem;
}

.episode-play-hover {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.4);
	display: flex;
	align-items: center;
	justify-content: center;
	opacity: 0;
	transition: opacity var(--transition-normal);
	z-index: 3;
}

.episode-card:hover .episode-play-hover {
	opacity: 1;
}

.episode-card-content {
	padding: var(--space-md);
}

.episode-parent-name {
	font-size: 0.75rem;
	font-weight: 600;
	text-transform: uppercase;
	color: var(--color-primary);
	margin-bottom: 0.2rem;
	letter-spacing: 0.04em;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.episode-card-title {
	font-size: 0.9375rem;
	font-weight: 600;
	line-height: 1.4;
	margin-bottom: 0.4rem;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.episode-card-meta {
	font-size: 0.8125rem;
	color: var(--color-text-faint);
}

/* ==========================================================================
   8. Genre Tiles Grid
   ========================================================================== */
.genre-tiles-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
	gap: var(--space-md);
}

.genre-tile-item {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	background-color: var(--color-bg-surface);
	border: 1px solid var(--color-border-subtle);
	border-radius: var(--radius-md);
	padding: var(--space-md);
	transition: all var(--transition-fast);
}

.genre-tile-item:hover {
	background-color: var(--color-bg-card);
	border-color: var(--color-primary);
	transform: translateY(-3px);
	box-shadow: var(--shadow-sm);
}

.genre-tile-icon {
	font-size: 1.5rem;
	margin-bottom: 0.5rem;
}

.genre-tile-name {
	font-weight: 700;
	font-size: 1rem;
	color: #ffffff;
}

.genre-tile-count {
	font-size: 0.75rem;
	color: var(--color-text-muted);
}

/* ==========================================================================
   9. Accessible Numeric Pagination
   ========================================================================== */
.drama-pagination-nav {
	margin-top: var(--space-3xl);
	display: flex;
	justify-content: center;
}

.pagination-wrapper ul.page-numbers {
	display: flex;
	gap: 0.5rem;
	list-style: none;
	margin: 0;
	padding: 0;
}

.pagination-wrapper .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 40px;
	height: 40px;
	padding: 0 0.75rem;
	background-color: var(--color-bg-surface);
	border: 1px solid var(--color-border-subtle);
	border-radius: var(--radius-md);
	font-size: 0.875rem;
	font-weight: 600;
	color: var(--color-text-main);
	transition: all var(--transition-fast);
}

.pagination-wrapper a.page-numbers:hover {
	background-color: var(--color-bg-card);
	border-color: var(--color-primary);
	color: #ffffff;
}

.pagination-wrapper .page-numbers.current {
	background-color: var(--color-primary);
	border-color: var(--color-primary);
	color: #ffffff;
}

/* ==========================================================================
   10. Interactive Buttons, Badges & Forms
   ========================================================================== */
.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	font-family: var(--font-sans);
	font-weight: 600;
	font-size: 0.9375rem;
	line-height: 1.2;
	padding: 0.75rem 1.5rem;
	border-radius: var(--radius-md);
	cursor: pointer;
	border: 1px solid transparent;
	transition: background-color var(--transition-normal),
	            border-color var(--transition-normal),
	            box-shadow var(--transition-normal),
	            transform var(--transition-fast);
	user-select: none;
	white-space: nowrap;
}

.btn:active {
	transform: scale(0.98);
}

.btn-primary {
	background: var(--grad-play-btn);
	color: #ffffff;
	border: 1px solid rgba(255, 255, 255, 0.15);
	box-shadow: 0 4px 18px rgba(124, 58, 237, 0.4);
}

.btn-primary:hover {
	background: var(--grad-play-btn);
	color: #ffffff;
	box-shadow: 0 8px 26px rgba(124, 58, 237, 0.65);
	transform: translateY(-2px);
}

.btn-secondary {
	background-color: rgba(255, 255, 255, 0.06);
	color: var(--color-text-main);
	border: 1px solid rgba(139, 92, 246, 0.35);
	backdrop-filter: blur(8px);
}

.btn-secondary:hover {
	background-color: rgba(139, 92, 246, 0.2);
	border-color: rgba(139, 92, 246, 0.65);
	color: #ffffff;
	box-shadow: 0 0 16px rgba(139, 92, 246, 0.3);
}

.btn-lg {
	padding: 0.95rem 1.85rem;
	font-size: 1.0625rem;
	border-radius: var(--radius-lg);
}

.badge {
	display: inline-flex;
	align-items: center;
	gap: 0.35rem;
	font-size: 0.7rem;
	font-weight: 700;
	letter-spacing: 0.03em;
	padding: 0.22rem 0.55rem;
	border-radius: 6px;
	line-height: 1.3;
}

.badge-status {
	background: var(--color-status-completed);
	color: #ffffff;
	box-shadow: 0 2px 8px rgba(16, 185, 129, 0.35);
	text-transform: uppercase;
}

.badge-rating {
	background: rgba(8, 7, 19, 0.78);
	color: var(--color-accent-gold);
	border: 1px solid rgba(255, 255, 255, 0.12);
	backdrop-filter: blur(8px);
	-webkit-backdrop-filter: blur(8px);
	font-weight: 700;
}

.badge-quality,
.badge-sub {
	background: rgba(139, 92, 246, 0.22);
	color: #c4b5fd;
	border: 1px solid rgba(139, 92, 246, 0.38);
}

.badge-year {
	background: rgba(255, 255, 255, 0.08);
	color: var(--color-text-muted);
	border: 1px solid rgba(255, 255, 255, 0.08);
}

.badge-country {
	background: rgba(6, 182, 212, 0.15);
	color: var(--color-secondary);
	border: 1px solid rgba(6, 182, 212, 0.35);
}

.genre-pill {
	display: inline-block;
	background: rgba(139, 92, 246, 0.1);
	color: #c4b5fd;
	border: 1px solid rgba(139, 92, 246, 0.25);
	padding: 0.25rem 0.75rem;
	border-radius: var(--radius-full);
	font-size: 0.8125rem;
	line-height: 1.5;
	transition: all var(--transition-fast);
}

.genre-pill:hover {
	background: rgba(139, 92, 246, 0.25);
	border-color: rgba(139, 92, 246, 0.55);
	color: #ffffff;
	box-shadow: 0 0 10px rgba(139, 92, 246, 0.3);
}

/* Brand Text Gradient Utility */
.text-brand-gradient {
	background: var(--grad-brand-neon);
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	display: inline-block;
}

/* ==========================================================================
   11. Single Drama Layout & Hero Banner
   ========================================================================== */
.drama-detail-hero,
.drama-detail-banner {
	position: relative;
	background-size: cover;
	background-position: center top;
	background-repeat: no-repeat;
	padding: var(--space-3xl) 0;
	border-bottom: 1px solid rgba(139, 92, 246, 0.2);
	margin-bottom: var(--space-3xl);
	background-color: var(--color-bg-base);
}

.hero-backdrop-overlay {
	position: absolute;
	inset: 0;
	background: radial-gradient(ellipse at 50% -10%, rgba(139, 92, 246, 0.3) 0%, rgba(8, 7, 19, 0) 70%),
	            linear-gradient(180deg, rgba(8, 7, 19, 0.45) 0%, rgba(8, 7, 19, 0.92) 80%, #080713 100%),
	            linear-gradient(90deg, #080713 20%, rgba(8, 7, 19, 0.7) 60%, transparent 100%);
	z-index: 1;
}

.hero-details-container,
.drama-detail-hero-layout {
	position: relative;
	z-index: 2;
	display: flex;
	gap: var(--space-2xl);
	align-items: flex-start;
}

.drama-poster-column,
.drama-detail-poster-col {
	flex: 0 0 280px;
	display: flex;
	flex-direction: column;
	gap: var(--space-md);
}

.drama-poster-card,
.poster-frame {
	position: relative;
	aspect-ratio: 2 / 3;
	border-radius: var(--radius-lg);
	overflow: hidden;
	background-color: var(--color-bg-card);
	border: 1px solid rgba(139, 92, 246, 0.35);
	box-shadow: 0 16px 36px rgba(0, 0, 0, 0.75), 0 0 24px rgba(124, 58, 237, 0.25);
}

.drama-poster-card .badge-status {
	position: absolute;
	top: 10px;
	right: 10px;
	z-index: 3;
}

.poster-detail-img,
.detail-poster-img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.btn-trailer {
	width: 100%;
}

.drama-info-column,
.drama-detail-info-col {
	flex: 1 1 auto;
}

.drama-detail-title,
.drama-main-title {
	font-size: 2.75rem;
	font-weight: 800;
	line-height: 1.15;
	margin-bottom: var(--space-md);
	color: #ffffff;
}

.drama-meta-badges,
.drama-meta-badges-row {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.5rem;
	margin-bottom: var(--space-md);
}

.drama-genre-pills {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	margin-bottom: var(--space-xl);
}

.drama-synopsis-section {
	background: rgba(14, 13, 34, 0.75);
	border: 1px solid rgba(139, 92, 246, 0.2);
	border-radius: var(--radius-md);
	padding: var(--space-lg);
	backdrop-filter: blur(12px);
	-webkit-backdrop-filter: blur(12px);
}

.synopsis-heading {
	font-size: 1.25rem;
	margin-bottom: var(--space-sm);
	color: #ffffff;
}

.synopsis-body-text {
	color: var(--color-text-muted);
	font-size: 1rem;
	line-height: 1.8;
}

/* ==========================================================================
   12. Episode Selector Grid (Single Drama & Episode Views)
   ========================================================================== */
.drama-episodes-listing-section {
	margin-bottom: var(--space-3xl);
}

.episodes-selector-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(95px, 1fr));
	gap: 0.65rem;
	margin-top: var(--space-md);
}

.episode-pill-link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 5px;
	padding: 0.7rem 0.6rem;
	background-color: var(--color-bg-card);
	border: 1px solid rgba(139, 92, 246, 0.22);
	border-radius: var(--radius-sm);
	font-family: var(--font-heading);
	font-size: 0.875rem;
	font-weight: 700;
	color: #e2e8f0;
	transition: all var(--transition-fast);
	box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

.episode-pill-link:hover {
	background-color: rgba(139, 92, 246, 0.25);
	border-color: rgba(139, 92, 246, 0.65);
	color: #ffffff;
	transform: translateY(-2px);
	box-shadow: 0 4px 14px rgba(139, 92, 246, 0.35);
}

.episode-pill-link.is-current-playing {
	background: var(--grad-play-btn);
	border-color: transparent;
	color: #ffffff;
	box-shadow: 0 4px 18px rgba(124, 58, 237, 0.65);
	transform: translateY(-1px);
}

.playing-indicator {
	font-size: 0.7rem;
	margin-left: 2px;
	color: #ffffff;
	animation: pulseGlow 1.5s infinite;
}

.no-episodes-alert {
	padding: var(--space-lg);
	background-color: var(--color-bg-surface);
	border: 1px dashed rgba(139, 92, 246, 0.35);
	border-radius: var(--radius-md);
	color: var(--color-text-muted);
}

/* ==========================================================================
   12.1 Video Player Container & Controls (Neati Streaming UI)
   ========================================================================== */
.single-episode-container {
	padding-top: var(--space-xl);
}

.episode-header-nav {
	margin-bottom: var(--space-lg);
}

.episode-breadcrumbs {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	font-size: 0.8125rem;
	color: #94a3b8;
	margin-bottom: var(--space-xs);
	flex-wrap: wrap;
}

.episode-breadcrumbs a {
	color: #94a3b8;
	transition: color var(--transition-fast);
}

.episode-breadcrumbs a:hover {
	color: #c4b5fd;
}

.episode-breadcrumbs .current {
	color: #ffffff;
	font-weight: 600;
}

.episode-title {
	font-size: 1.85rem;
	font-weight: 800;
	color: #ffffff;
	line-height: 1.25;
}

.parent-title-prefix {
	color: #c4b5fd;
	margin-right: 0.35rem;
}

.video-player-wrapper {
	position: relative;
	width: 100%;
	border-radius: var(--radius-lg);
	overflow: hidden;
	background: #000000;
	border: 1px solid rgba(139, 92, 246, 0.3);
	box-shadow: 0 16px 40px rgba(0, 0, 0, 0.8), 0 0 30px rgba(124, 58, 237, 0.25);
	margin-bottom: var(--space-lg);
}

.drama-video-player-box {
	position: relative;
	width: 100%;
	aspect-ratio: 16 / 9;
	background: #000000;
}

.drama-video-player-box iframe,
.drama-video-player-box video {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	border: none;
}

.episode-control-bar {
	margin-bottom: var(--space-2xl);
	padding: var(--space-md);
	background: rgba(14, 13, 34, 0.85);
	border: 1px solid rgba(139, 92, 246, 0.2);
	border-radius: var(--radius-md);
}

.episode-actions-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: var(--space-md);
	flex-wrap: wrap;
}

.episode-nav-btn {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	font-size: 0.875rem;
}

.episode-nav-btn.is-disabled {
	opacity: 0.5;
	pointer-events: none;
}

.episode-all-btn {
	background: rgba(255, 255, 255, 0.05);
	border: 1px solid rgba(139, 92, 246, 0.35);
	color: #c4b5fd;
}

.episode-all-btn:hover {
	background: rgba(139, 92, 246, 0.2);
	border-color: rgba(139, 92, 246, 0.6);
	color: #ffffff;
}

.related-episodes-section {
	margin-top: var(--space-2xl);
	margin-bottom: var(--space-2xl);
}

.episode-editorial-notes {
	background: rgba(14, 13, 34, 0.7);
	border: 1px solid rgba(139, 92, 246, 0.2);
	border-radius: var(--radius-md);
	padding: var(--space-lg);
	margin-top: var(--space-xl);
}

/* ==========================================================================
   13. Archive Headers, Filters & Empty States
   ========================================================================== */
.archive-container {
	padding-top: var(--space-2xl);
}

.archive-header-banner {
	margin-bottom: var(--space-2xl);
	padding-bottom: var(--space-lg);
	border-bottom: 1px solid var(--color-border-subtle);
}

.archive-breadcrumb {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	font-size: 0.8125rem;
	color: var(--color-text-muted);
	margin-bottom: var(--space-sm);
}

.archive-breadcrumb .sep {
	color: var(--color-text-faint);
}

.archive-breadcrumb .current {
	color: #ffffff;
}

.archive-title {
	font-size: 2.25rem;
	font-weight: 800;
	margin-bottom: var(--space-xs);
}

.archive-subtitle {
	color: var(--color-text-muted);
	font-size: 1.0625rem;
	margin-bottom: var(--space-lg);
}

.archive-filter-toolbar {
	display: flex;
	flex-direction: column;
	gap: var(--space-md);
	background: var(--color-bg-surface);
	border: 1px solid var(--color-border-subtle);
	border-radius: var(--radius-md);
	padding: var(--space-md) var(--space-lg);
	margin-top: var(--space-md);
}

.filter-group {
	display: flex;
	align-items: center;
	gap: var(--space-sm);
	flex-wrap: wrap;
}

.filter-label {
	font-size: 0.8125rem;
	font-weight: 700;
	text-transform: uppercase;
	color: var(--color-text-muted);
	min-width: 65px;
}

.filter-pills {
	display: flex;
	flex-wrap: wrap;
	gap: 0.4rem;
}

.filter-pill {
	font-size: 0.8125rem;
	font-weight: 500;
	padding: 0.25rem 0.65rem;
	border-radius: var(--radius-sm);
	background: var(--color-bg-card);
	border: 1px solid var(--color-border-subtle);
	color: var(--color-text-muted);
	transition: all var(--transition-fast);
}

.filter-pill:hover,
.filter-pill.is-active {
	background: var(--color-primary);
	border-color: var(--color-primary);
	color: #ffffff;
}

.archive-empty-state {
	text-align: center;
	padding: var(--space-3xl) var(--space-lg);
	background: var(--color-bg-surface);
	border: 1px dashed var(--color-border-subtle);
	border-radius: var(--radius-lg);
	max-width: 600px;
	margin: var(--space-2xl) auto;
}

.empty-state-icon {
	font-size: 3rem;
	margin-bottom: var(--space-md);
}

.empty-state-title {
	font-size: 1.5rem;
	margin-bottom: var(--space-sm);
}

.empty-state-text {
	color: var(--color-text-muted);
	margin-bottom: var(--space-lg);
}

/* ==========================================================================
   14. 404 Error Page
   ========================================================================== */
.not-found-layout {
	padding: var(--space-3xl) var(--space-lg);
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 60vh;
}

.error-404-box {
	text-align: center;
	max-width: 600px;
	background: var(--color-bg-surface);
	border: 1px solid var(--color-border-subtle);
	border-radius: var(--radius-xl);
	padding: var(--space-3xl) var(--space-xl);
	box-shadow: var(--shadow-lg);
}

.error-badge {
	font-family: var(--font-heading);
	font-size: 5.5rem;
	font-weight: 900;
	line-height: 1;
	background: linear-gradient(135deg, var(--color-primary) 0%, #ff4d5a 100%);
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	margin-bottom: var(--space-md);
}

.error-description {
	color: var(--color-text-muted);
	font-size: 1.0625rem;
	line-height: 1.7;
}

/* ==========================================================================
   15. Standard Pages, Blog Posts & Comments
   ========================================================================== */
.page-content-layout,
.single-post-layout {
	max-width: 900px;
	margin: var(--space-2xl) auto;
	padding: 0 var(--space-md);
}

.page-article,
.single-article {
	background: var(--color-bg-surface);
	border: 1px solid var(--color-border-subtle);
	border-radius: var(--radius-lg);
	padding: var(--space-2xl) var(--space-xl);
	margin-bottom: var(--space-2xl);
}

.page-title,
.entry-title {
	font-size: 2.25rem;
	font-weight: 800;
	line-height: 1.3;
	margin-bottom: var(--space-md);
	color: #ffffff;
}

.entry-meta {
	font-size: 0.875rem;
	color: var(--color-text-muted);
	margin-bottom: var(--space-xl);
	display: flex;
	gap: var(--space-md);
}

.entry-thumbnail {
	margin-bottom: var(--space-xl);
	border-radius: var(--radius-md);
	overflow: hidden;
}

.entry-thumbnail img {
	width: 100%;
	height: auto;
	display: block;
}

.page-body-content,
.entry-content {
	font-size: 1.0625rem;
	line-height: 1.8;
	color: var(--color-text-body);
}

.page-body-content p,
.entry-content p {
	margin-bottom: var(--space-lg);
}

.page-body-content h2,
.page-body-content h3,
.page-body-content h4,
.entry-content h2,
.entry-content h3,
.entry-content h4 {
	margin-top: var(--space-xl);
	margin-bottom: var(--space-md);
	color: #ffffff;
}

.page-body-content ul,
.page-body-content ol,
.entry-content ul,
.entry-content ol {
	margin-bottom: var(--space-lg);
	padding-left: var(--space-xl);
}

.page-body-content blockquote,
.entry-content blockquote {
	border-left: 4px solid var(--color-primary);
	padding: var(--space-sm) var(--space-lg);
	margin: var(--space-lg) 0;
	background: rgba(229, 9, 20, 0.05);
	border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
	font-style: italic;
	color: var(--color-text-muted);
}

.page-links,
.tags-links {
	margin-top: var(--space-xl);
	padding-top: var(--space-md);
	border-top: 1px solid var(--color-border-subtle);
	font-size: 0.9375rem;
	color: var(--color-text-muted);
}

.tags-links a {
	color: var(--color-primary);
	text-decoration: underline;
}

/* Comments Area */
.comments-area {
	background: var(--color-bg-surface);
	border: 1px solid var(--color-border-subtle);
	border-radius: var(--radius-lg);
	padding: var(--space-2xl) var(--space-xl);
	margin-top: var(--space-2xl);
}

.comments-title,
.comment-reply-title {
	font-size: 1.5rem;
	font-weight: 700;
	margin-bottom: var(--space-xl);
	color: #ffffff;
}

.comment-list {
	list-style: none;
	padding: 0;
	margin: 0 0 var(--space-2xl) 0;
}

.comment-list .comment {
	border-bottom: 1px solid var(--color-border-subtle);
	padding: var(--space-lg) 0;
}

.comment-list .children {
	list-style: none;
	padding-left: var(--space-xl);
}

.comment-meta {
	font-size: 0.875rem;
	color: var(--color-text-muted);
	margin-bottom: var(--space-sm);
}

.comment-author .fn {
	font-weight: 700;
	color: #ffffff;
}

.comment-content {
	font-size: 0.9375rem;
	line-height: 1.7;
	color: var(--color-text-body);
}

.comment-reply-link {
	display: inline-block;
	margin-top: var(--space-xs);
	font-size: 0.8125rem;
	color: var(--color-primary);
	font-weight: 600;
}

.comment-respond form {
	display: flex;
	flex-direction: column;
	gap: var(--space-md);
}

.comment-form-comment label,
.comment-form-author label,
.comment-form-email label,
.comment-form-url label {
	display: block;
	font-size: 0.875rem;
	font-weight: 600;
	margin-bottom: var(--space-xs);
	color: var(--color-text-muted);
}

.comment-respond input[type="text"],
.comment-respond input[type="email"],
.comment-respond input[type="url"],
.comment-respond textarea {
	width: 100%;
	background: var(--color-bg-card);
	border: 1px solid var(--color-border-subtle);
	border-radius: var(--radius-sm);
	padding: var(--space-sm) var(--space-md);
	color: #ffffff;
	font-family: inherit;
}

.comment-respond input[type="submit"] {
	align-self: flex-start;
	background: var(--color-primary);
	color: #ffffff;
	border: none;
	padding: 0.6rem 1.5rem;
	border-radius: var(--radius-full);
	font-weight: 600;
	cursor: pointer;
	transition: background var(--transition-fast);
}

.comment-respond input[type="submit"]:hover {
	background: var(--color-primary-hover);
}

/* Custom Search Form (Widgets, 404, Empty States) */
.custom-search-form {
	width: 100%;
	max-width: 500px;
	margin: 0 auto;
}

.custom-search-form .search-input-wrap {
	display: flex;
	align-items: center;
	background: var(--color-bg-card);
	border: 1px solid var(--color-border-subtle);
	border-radius: var(--radius-full);
	padding: 0.25rem 0.35rem 0.25rem 1rem;
	transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.custom-search-form .search-input-wrap:focus-within {
	border-color: var(--color-primary);
	box-shadow: 0 0 0 3px rgba(229, 9, 20, 0.25);
}

.custom-search-form .search-field {
	flex: 1;
	background: transparent;
	border: none;
	outline: none;
	color: #ffffff;
	font-size: 0.9375rem;
	font-family: inherit;
}

.custom-search-form .search-submit {
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
	padding: 0.5rem 1.1rem;
	font-size: 0.875rem;
	border-radius: var(--radius-full);
}


